Merge from emacs--devo--0
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
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 ## --------------------- ##
12
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
26
27 fi
28
29
30
31
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
39
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=:
49 fi
50 rm -f conf$$.sh
51 fi
52
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
58 fi
59
60
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='
67 '
68 IFS=" "" $as_nl"
69
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
75 do
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
81
82 ;;
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
88 fi
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; }
92 fi
93
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='+ '
101
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
107 do
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
112 fi
113 done
114
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
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
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/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
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
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
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
218 :
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
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
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
234
235
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
251
252 fi
253
254
255 :
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
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
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; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
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+"$@"}
348 fi
349
350
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; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
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
419 }
420
421
422
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" || {
427
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 '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
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; }; }
456
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
463 }
464
465
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
470 fi
471
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;;
479 *)
480 ECHO_N='-n';;
481 esac
482
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
488 fi
489
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
496 fi
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'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
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
519 fi
520
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=
528 fi
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
540 '
541 fi
542 as_executable_p=$as_test_x
543
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'"
546
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'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
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`
558
559 #
560 # Initializations.
561 #
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}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
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"
616
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
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 LIBSOUND
683 PKG_CONFIG
684 ALSA_CFLAGS
685 ALSA_LIBS
686
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 GTK_CFLAGS
691 GTK_LIBS
692 XFT_CFLAGS
693 XFT_LIBS
694 FREETYPE_CFLAGS
695 FREETYPE_LIBS
696 FONTCONFIG_CFLAGS
697 FONTCONFIG_LIBS
698 HAVE_LIBOTF
699 LIBOTF_CFLAGS
700 LIBOTF_LIBS
701 ALLOCA
702 liblockfile
703 LIBOBJS
704 NEED_SETGID
705 KMEM_GROUP
706 GETLOADAVG_LIBS
707 GETOPT_H
708 GETOPTOBJS
709 version
710 configuration
711 canonical
712 srcdir
713 lispdir
714 locallisppath
715 lisppath
716 x_default_search_path
717 etcdir
718 archlibdir
719 bitmapdir
720 gamedir
721 gameuser
722 c_switch_system
723 c_switch_machine
724 LD_SWITCH_X_SITE
725 LD_SWITCH_X_SITE_AUX
726 C_SWITCH_X_SITE
727 X_TOOLKIT_TYPE
728 machfile
729 opsysfile
730 carbon_appdir
731 LTLIBOBJS'
732 ac_subst_files=''
733 ac_precious_vars='build_alias
734 host_alias
735 target_alias
736 CC
737 CFLAGS
738 LDFLAGS
739 LIBS
740 CPPFLAGS
741 CPP
742 XMKMF'
743
744
745 # Initialize some variables set by options.
746 ac_init_help=
747 ac_init_version=false
748 # The variables have the same names as the options, with
749 # dashes changed to underlines.
750 cache_file=/dev/null
751 exec_prefix=NONE
752 no_create=
753 no_recursion=
754 prefix=NONE
755 program_prefix=NONE
756 program_suffix=NONE
757 program_transform_name=s,x,x,
758 silent=
759 site=
760 srcdir=
761 verbose=
762 x_includes=NONE
763 x_libraries=NONE
764
765 # Installation directory options.
766 # These are left unexpanded so users can "make install exec_prefix=/foo"
767 # and all the variables that are supposed to be based on exec_prefix
768 # by default will actually change.
769 # Use braces instead of parens because sh, perl, etc. also accept them.
770 # (The list follows the same order as the GNU Coding Standards.)
771 bindir='${exec_prefix}/bin'
772 sbindir='${exec_prefix}/sbin'
773 libexecdir='${exec_prefix}/libexec'
774 datarootdir='${prefix}/share'
775 datadir='${datarootdir}'
776 sysconfdir='${prefix}/etc'
777 sharedstatedir='${prefix}/com'
778 localstatedir='${prefix}/var'
779 includedir='${prefix}/include'
780 oldincludedir='/usr/include'
781 docdir='${datarootdir}/doc/${PACKAGE}'
782 infodir='${datarootdir}/info'
783 htmldir='${docdir}'
784 dvidir='${docdir}'
785 pdfdir='${docdir}'
786 psdir='${docdir}'
787 libdir='${exec_prefix}/lib'
788 localedir='${datarootdir}/locale'
789 mandir='${datarootdir}/man'
790
791 ac_prev=
792 ac_dashdash=
793 for ac_option
794 do
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
797 eval $ac_prev=\$ac_option
798 ac_prev=
799 continue
800 fi
801
802 case $ac_option in
803 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 *) ac_optarg=yes ;;
805 esac
806
807 # Accept the important Cygnus configure options, so we can diagnose typos.
808
809 case $ac_dashdash$ac_option in
810 --)
811 ac_dashdash=yes ;;
812
813 -bindir | --bindir | --bindi | --bind | --bin | --bi)
814 ac_prev=bindir ;;
815 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
816 bindir=$ac_optarg ;;
817
818 -build | --build | --buil | --bui | --bu)
819 ac_prev=build_alias ;;
820 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
821 build_alias=$ac_optarg ;;
822
823 -cache-file | --cache-file | --cache-fil | --cache-fi \
824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
825 ac_prev=cache_file ;;
826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
828 cache_file=$ac_optarg ;;
829
830 --config-cache | -C)
831 cache_file=config.cache ;;
832
833 -datadir | --datadir | --datadi | --datad)
834 ac_prev=datadir ;;
835 -datadir=* | --datadir=* | --datadi=* | --datad=*)
836 datadir=$ac_optarg ;;
837
838 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
839 | --dataroo | --dataro | --datar)
840 ac_prev=datarootdir ;;
841 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
842 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
843 datarootdir=$ac_optarg ;;
844
845 -disable-* | --disable-*)
846 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850 { (exit 1); exit 1; }; }
851 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
852 eval enable_$ac_feature=no ;;
853
854 -docdir | --docdir | --docdi | --doc | --do)
855 ac_prev=docdir ;;
856 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
857 docdir=$ac_optarg ;;
858
859 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
860 ac_prev=dvidir ;;
861 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
862 dvidir=$ac_optarg ;;
863
864 -enable-* | --enable-*)
865 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
868 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
869 { (exit 1); exit 1; }; }
870 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
871 eval enable_$ac_feature=\$ac_optarg ;;
872
873 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
874 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
875 | --exec | --exe | --ex)
876 ac_prev=exec_prefix ;;
877 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
878 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
879 | --exec=* | --exe=* | --ex=*)
880 exec_prefix=$ac_optarg ;;
881
882 -gas | --gas | --ga | --g)
883 # Obsolete; use --with-gas.
884 with_gas=yes ;;
885
886 -help | --help | --hel | --he | -h)
887 ac_init_help=long ;;
888 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
889 ac_init_help=recursive ;;
890 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
891 ac_init_help=short ;;
892
893 -host | --host | --hos | --ho)
894 ac_prev=host_alias ;;
895 -host=* | --host=* | --hos=* | --ho=*)
896 host_alias=$ac_optarg ;;
897
898 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
899 ac_prev=htmldir ;;
900 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
901 | --ht=*)
902 htmldir=$ac_optarg ;;
903
904 -includedir | --includedir | --includedi | --included | --include \
905 | --includ | --inclu | --incl | --inc)
906 ac_prev=includedir ;;
907 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
908 | --includ=* | --inclu=* | --incl=* | --inc=*)
909 includedir=$ac_optarg ;;
910
911 -infodir | --infodir | --infodi | --infod | --info | --inf)
912 ac_prev=infodir ;;
913 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
914 infodir=$ac_optarg ;;
915
916 -libdir | --libdir | --libdi | --libd)
917 ac_prev=libdir ;;
918 -libdir=* | --libdir=* | --libdi=* | --libd=*)
919 libdir=$ac_optarg ;;
920
921 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
922 | --libexe | --libex | --libe)
923 ac_prev=libexecdir ;;
924 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
925 | --libexe=* | --libex=* | --libe=*)
926 libexecdir=$ac_optarg ;;
927
928 -localedir | --localedir | --localedi | --localed | --locale)
929 ac_prev=localedir ;;
930 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
931 localedir=$ac_optarg ;;
932
933 -localstatedir | --localstatedir | --localstatedi | --localstated \
934 | --localstate | --localstat | --localsta | --localst | --locals)
935 ac_prev=localstatedir ;;
936 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
937 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
938 localstatedir=$ac_optarg ;;
939
940 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
941 ac_prev=mandir ;;
942 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
943 mandir=$ac_optarg ;;
944
945 -nfp | --nfp | --nf)
946 # Obsolete; use --without-fp.
947 with_fp=no ;;
948
949 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
950 | --no-cr | --no-c | -n)
951 no_create=yes ;;
952
953 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
954 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
955 no_recursion=yes ;;
956
957 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
958 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
959 | --oldin | --oldi | --old | --ol | --o)
960 ac_prev=oldincludedir ;;
961 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
962 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
963 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
964 oldincludedir=$ac_optarg ;;
965
966 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
967 ac_prev=prefix ;;
968 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
969 prefix=$ac_optarg ;;
970
971 -program-prefix | --program-prefix | --program-prefi | --program-pref \
972 | --program-pre | --program-pr | --program-p)
973 ac_prev=program_prefix ;;
974 -program-prefix=* | --program-prefix=* | --program-prefi=* \
975 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
976 program_prefix=$ac_optarg ;;
977
978 -program-suffix | --program-suffix | --program-suffi | --program-suff \
979 | --program-suf | --program-su | --program-s)
980 ac_prev=program_suffix ;;
981 -program-suffix=* | --program-suffix=* | --program-suffi=* \
982 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
983 program_suffix=$ac_optarg ;;
984
985 -program-transform-name | --program-transform-name \
986 | --program-transform-nam | --program-transform-na \
987 | --program-transform-n | --program-transform- \
988 | --program-transform | --program-transfor \
989 | --program-transfo | --program-transf \
990 | --program-trans | --program-tran \
991 | --progr-tra | --program-tr | --program-t)
992 ac_prev=program_transform_name ;;
993 -program-transform-name=* | --program-transform-name=* \
994 | --program-transform-nam=* | --program-transform-na=* \
995 | --program-transform-n=* | --program-transform-=* \
996 | --program-transform=* | --program-transfor=* \
997 | --program-transfo=* | --program-transf=* \
998 | --program-trans=* | --program-tran=* \
999 | --progr-tra=* | --program-tr=* | --program-t=*)
1000 program_transform_name=$ac_optarg ;;
1001
1002 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1003 ac_prev=pdfdir ;;
1004 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1005 pdfdir=$ac_optarg ;;
1006
1007 -psdir | --psdir | --psdi | --psd | --ps)
1008 ac_prev=psdir ;;
1009 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1010 psdir=$ac_optarg ;;
1011
1012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013 | -silent | --silent | --silen | --sile | --sil)
1014 silent=yes ;;
1015
1016 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1017 ac_prev=sbindir ;;
1018 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1019 | --sbi=* | --sb=*)
1020 sbindir=$ac_optarg ;;
1021
1022 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1023 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1024 | --sharedst | --shareds | --shared | --share | --shar \
1025 | --sha | --sh)
1026 ac_prev=sharedstatedir ;;
1027 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1028 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1029 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1030 | --sha=* | --sh=*)
1031 sharedstatedir=$ac_optarg ;;
1032
1033 -site | --site | --sit)
1034 ac_prev=site ;;
1035 -site=* | --site=* | --sit=*)
1036 site=$ac_optarg ;;
1037
1038 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1039 ac_prev=srcdir ;;
1040 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1041 srcdir=$ac_optarg ;;
1042
1043 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1044 | --syscon | --sysco | --sysc | --sys | --sy)
1045 ac_prev=sysconfdir ;;
1046 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1047 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1048 sysconfdir=$ac_optarg ;;
1049
1050 -target | --target | --targe | --targ | --tar | --ta | --t)
1051 ac_prev=target_alias ;;
1052 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1053 target_alias=$ac_optarg ;;
1054
1055 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1056 verbose=yes ;;
1057
1058 -version | --version | --versio | --versi | --vers | -V)
1059 ac_init_version=: ;;
1060
1061 -with-* | --with-*)
1062 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid package name: $ac_package" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1068 eval with_$ac_package=\$ac_optarg ;;
1069
1070 -without-* | --without-*)
1071 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1074 { echo "$as_me: error: invalid package name: $ac_package" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1077 eval with_$ac_package=no ;;
1078
1079 --x)
1080 # Obsolete; use --with-x.
1081 with_x=yes ;;
1082
1083 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1084 | --x-incl | --x-inc | --x-in | --x-i)
1085 ac_prev=x_includes ;;
1086 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1087 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1088 x_includes=$ac_optarg ;;
1089
1090 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1091 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1092 ac_prev=x_libraries ;;
1093 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1094 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1095 x_libraries=$ac_optarg ;;
1096
1097 -*) { echo "$as_me: error: unrecognized option: $ac_option
1098 Try \`$0 --help' for more information." >&2
1099 { (exit 1); exit 1; }; }
1100 ;;
1101
1102 *=*)
1103 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1106 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1107 { (exit 1); exit 1; }; }
1108 eval $ac_envvar=\$ac_optarg
1109 export $ac_envvar ;;
1110
1111 *)
1112 # FIXME: should be removed in autoconf 3.0.
1113 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1114 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1116 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1117 ;;
1118
1119 esac
1120 done
1121
1122 if test -n "$ac_prev"; then
1123 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1124 { echo "$as_me: error: missing argument to $ac_option" >&2
1125 { (exit 1); exit 1; }; }
1126 fi
1127
1128 # Be sure to have absolute directory names.
1129 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir
1133 do
1134 eval ac_val=\$$ac_var
1135 case $ac_val in
1136 [\\/$]* | ?:[\\/]* ) continue;;
1137 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1138 esac
1139 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1140 { (exit 1); exit 1; }; }
1141 done
1142
1143 # There might be people who depend on the old broken behavior: `$host'
1144 # used to hold the argument of --host etc.
1145 # FIXME: To remove some day.
1146 build=$build_alias
1147 host=$host_alias
1148 target=$target_alias
1149
1150 # FIXME: To remove some day.
1151 if test "x$host_alias" != x; then
1152 if test "x$build_alias" = x; then
1153 cross_compiling=maybe
1154 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1155 If a cross compiler is detected then cross compile mode will be used." >&2
1156 elif test "x$build_alias" != "x$host_alias"; then
1157 cross_compiling=yes
1158 fi
1159 fi
1160
1161 ac_tool_prefix=
1162 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1163
1164 test "$silent" = yes && exec 6>/dev/null
1165
1166
1167 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1168 ac_ls_di=`ls -di .` &&
1169 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1170 { echo "$as_me: error: Working directory cannot be determined" >&2
1171 { (exit 1); exit 1; }; }
1172 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 { echo "$as_me: error: pwd does not report name of working directory" >&2
1174 { (exit 1); exit 1; }; }
1175
1176
1177 # Find the source files, if location was not specified.
1178 if test -z "$srcdir"; then
1179 ac_srcdir_defaulted=yes
1180 # Try the directory containing this script, then the parent directory.
1181 ac_confdir=`$as_dirname -- "$0" ||
1182 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1183 X"$0" : 'X\(//\)[^/]' \| \
1184 X"$0" : 'X\(//\)$' \| \
1185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1186 echo X"$0" |
1187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1188 s//\1/
1189 q
1190 }
1191 /^X\(\/\/\)[^/].*/{
1192 s//\1/
1193 q
1194 }
1195 /^X\(\/\/\)$/{
1196 s//\1/
1197 q
1198 }
1199 /^X\(\/\).*/{
1200 s//\1/
1201 q
1202 }
1203 s/.*/./; q'`
1204 srcdir=$ac_confdir
1205 if test ! -r "$srcdir/$ac_unique_file"; then
1206 srcdir=..
1207 fi
1208 else
1209 ac_srcdir_defaulted=no
1210 fi
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1213 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1214 { (exit 1); exit 1; }; }
1215 fi
1216 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1217 ac_abs_confdir=`(
1218 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1219 { (exit 1); exit 1; }; }
1220 pwd)`
1221 # When building in place, set srcdir=.
1222 if test "$ac_abs_confdir" = "$ac_pwd"; then
1223 srcdir=.
1224 fi
1225 # Remove unnecessary trailing slashes from srcdir.
1226 # Double slashes in file names in object file debugging info
1227 # mess up M-x gdb in Emacs.
1228 case $srcdir in
1229 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1230 esac
1231 for ac_var in $ac_precious_vars; do
1232 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_env_${ac_var}_value=\$${ac_var}
1234 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1236 done
1237
1238 #
1239 # Report the --help message.
1240 #
1241 if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh.
1244 cat <<_ACEOF
1245 \`configure' configures this package to adapt to many kinds of systems.
1246
1247 Usage: $0 [OPTION]... [VAR=VALUE]...
1248
1249 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250 VAR=VALUE. See below for descriptions of some of the useful variables.
1251
1252 Defaults for the options are specified in brackets.
1253
1254 Configuration:
1255 -h, --help display this help and exit
1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit
1259 -q, --quiet, --silent do not print \`checking...' messages
1260 --cache-file=FILE cache test results in FILE [disabled]
1261 -C, --config-cache alias for \`--cache-file=config.cache'
1262 -n, --no-create do not create output files
1263 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1264
1265 Installation directories:
1266 --prefix=PREFIX install architecture-independent files in PREFIX
1267 [$ac_default_prefix]
1268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1269 [PREFIX]
1270
1271 By default, \`make install' will install all the files in
1272 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274 for instance \`--prefix=\$HOME'.
1275
1276 For better control, use the options below.
1277
1278 Fine tuning of the installation directories:
1279 --bindir=DIR user executables [EPREFIX/bin]
1280 --sbindir=DIR system admin executables [EPREFIX/sbin]
1281 --libexecdir=DIR program executables [EPREFIX/libexec]
1282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285 --libdir=DIR object code libraries [EPREFIX/lib]
1286 --includedir=DIR C header files [PREFIX/include]
1287 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1288 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1289 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1290 --infodir=DIR info documentation [DATAROOTDIR/info]
1291 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1292 --mandir=DIR man documentation [DATAROOTDIR/man]
1293 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1294 --htmldir=DIR html documentation [DOCDIR]
1295 --dvidir=DIR dvi documentation [DOCDIR]
1296 --pdfdir=DIR pdf documentation [DOCDIR]
1297 --psdir=DIR ps documentation [DOCDIR]
1298 _ACEOF
1299
1300 cat <<\_ACEOF
1301
1302 Program names:
1303 --program-prefix=PREFIX prepend PREFIX to installed program names
1304 --program-suffix=SUFFIX append SUFFIX to installed program names
1305 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1306
1307 X features:
1308 --x-includes=DIR X include files are in DIR
1309 --x-libraries=DIR X library files are in DIR
1310
1311 System types:
1312 --build=BUILD configure for building on BUILD [guessed]
1313 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1314 _ACEOF
1315 fi
1316
1317 if test -n "$ac_init_help"; then
1318
1319 cat <<\_ACEOF
1320
1321 Optional Features:
1322 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1323 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1324 --enable-carbon-app[=DIR] [DIR=/Application]
1325 specify install directory for Emacs.app on Mac OS X
1326 --enable-font-backend compile code of font-backend support
1327 --enable-asserts compile code with asserts enabled
1328 --enable-maintainer-mode enable make rules and dependencies not useful
1329 (and sometimes confusing) to the casual installer
1330 --enable-locallisppath=PATH
1331 directories Emacs should search for lisp files
1332 specific to this site
1333 --disable-largefile omit support for large files
1334
1335 Optional Packages:
1336 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1337 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1338 --without-gcc don't use GCC to compile Emacs if GCC is found
1339 --without-pop don't support POP mail retrieval with movemail
1340 --with-kerberos support Kerberos-authenticated POP
1341 --with-kerberos5 support Kerberos version 5 authenticated POP
1342 --with-hesiod support Hesiod to get the POP server host
1343 --without-sound don't compile with sound support
1344 --with-x-toolkit=KIT use an X toolkit
1345 (KIT = yes/lucid/athena/motif/gtk/no)
1346 --with-xpm use -lXpm for displaying XPM images
1347 --with-jpeg use -ljpeg for displaying JPEG images
1348 --with-tiff use -ltiff for displaying TIFF images
1349 --with-gif use -lungif for displaying GIF images
1350 --with-png use -lpng for displaying PNG images
1351 --with-freetype use -lfreetype for local fonts support
1352 --with-xft use -lXft for anti aliased fonts
1353 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1354 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1355 --without-toolkit-scroll-bars
1356 don't use Motif or Xaw3d scroll bars
1357 --without-xim don't use X11 XIM
1358 --without-carbon don't use Carbon GUI on Mac OS X
1359 --with-x use the X Window System
1360
1361 Some influential environment variables:
1362 CC C compiler command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1365 nonstandard directory <lib dir>
1366 LIBS libraries to pass to the linker, e.g. -l<library>
1367 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1368 you have headers in a nonstandard directory <include dir>
1369 CPP C preprocessor
1370 XMKMF Path to xmkmf, Makefile generator for X Window System
1371
1372 Use these variables to override the choices made by `configure' or to help
1373 it to find libraries and programs with nonstandard names/locations.
1374
1375 _ACEOF
1376 ac_status=$?
1377 fi
1378
1379 if test "$ac_init_help" = "recursive"; then
1380 # If there are subdirs, report their specific --help.
1381 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1382 test -d "$ac_dir" || continue
1383 ac_builddir=.
1384
1385 case "$ac_dir" in
1386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387 *)
1388 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1389 # A ".." for each directory in $ac_dir_suffix.
1390 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1391 case $ac_top_builddir_sub in
1392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1394 esac ;;
1395 esac
1396 ac_abs_top_builddir=$ac_pwd
1397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398 # for backward compatibility:
1399 ac_top_builddir=$ac_top_build_prefix
1400
1401 case $srcdir in
1402 .) # We are building in place.
1403 ac_srcdir=.
1404 ac_top_srcdir=$ac_top_builddir_sub
1405 ac_abs_top_srcdir=$ac_pwd ;;
1406 [\\/]* | ?:[\\/]* ) # Absolute name.
1407 ac_srcdir=$srcdir$ac_dir_suffix;
1408 ac_top_srcdir=$srcdir
1409 ac_abs_top_srcdir=$srcdir ;;
1410 *) # Relative name.
1411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412 ac_top_srcdir=$ac_top_build_prefix$srcdir
1413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1414 esac
1415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1416
1417 cd "$ac_dir" || { ac_status=$?; continue; }
1418 # Check for guested configure.
1419 if test -f "$ac_srcdir/configure.gnu"; then
1420 echo &&
1421 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422 elif test -f "$ac_srcdir/configure"; then
1423 echo &&
1424 $SHELL "$ac_srcdir/configure" --help=recursive
1425 else
1426 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1427 fi || ac_status=$?
1428 cd "$ac_pwd" || { ac_status=$?; break; }
1429 done
1430 fi
1431
1432 test -n "$ac_init_help" && exit $ac_status
1433 if $ac_init_version; then
1434 cat <<\_ACEOF
1435 configure
1436 generated by GNU Autoconf 2.61
1437
1438 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1439 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1440 This configure script is free software; the Free Software Foundation
1441 gives unlimited permission to copy, distribute and modify it.
1442 _ACEOF
1443 exit
1444 fi
1445 cat >config.log <<_ACEOF
1446 This file contains any messages produced by compilers while
1447 running configure, to aid debugging if configure makes a mistake.
1448
1449 It was created by $as_me, which was
1450 generated by GNU Autoconf 2.61. Invocation command line was
1451
1452 $ $0 $@
1453
1454 _ACEOF
1455 exec 5>>config.log
1456 {
1457 cat <<_ASUNAME
1458 ## --------- ##
1459 ## Platform. ##
1460 ## --------- ##
1461
1462 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1463 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1464 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1465 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1466 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1467
1468 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1469 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1470
1471 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1472 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1473 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1474 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1475 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1476 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1477 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1478
1479 _ASUNAME
1480
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 for as_dir in $PATH
1483 do
1484 IFS=$as_save_IFS
1485 test -z "$as_dir" && as_dir=.
1486 echo "PATH: $as_dir"
1487 done
1488 IFS=$as_save_IFS
1489
1490 } >&5
1491
1492 cat >&5 <<_ACEOF
1493
1494
1495 ## ----------- ##
1496 ## Core tests. ##
1497 ## ----------- ##
1498
1499 _ACEOF
1500
1501
1502 # Keep a trace of the command line.
1503 # Strip out --no-create and --no-recursion so they do not pile up.
1504 # Strip out --silent because we don't want to record it for future runs.
1505 # Also quote any args containing shell meta-characters.
1506 # Make two passes to allow for proper duplicate-argument suppression.
1507 ac_configure_args=
1508 ac_configure_args0=
1509 ac_configure_args1=
1510 ac_must_keep_next=false
1511 for ac_pass in 1 2
1512 do
1513 for ac_arg
1514 do
1515 case $ac_arg in
1516 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1518 | -silent | --silent | --silen | --sile | --sil)
1519 continue ;;
1520 *\'*)
1521 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1522 esac
1523 case $ac_pass in
1524 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1525 2)
1526 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1527 if test $ac_must_keep_next = true; then
1528 ac_must_keep_next=false # Got value, back to normal.
1529 else
1530 case $ac_arg in
1531 *=* | --config-cache | -C | -disable-* | --disable-* \
1532 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1533 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1534 | -with-* | --with-* | -without-* | --without-* | --x)
1535 case "$ac_configure_args0 " in
1536 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1537 esac
1538 ;;
1539 -* ) ac_must_keep_next=true ;;
1540 esac
1541 fi
1542 ac_configure_args="$ac_configure_args '$ac_arg'"
1543 ;;
1544 esac
1545 done
1546 done
1547 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1548 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1549
1550 # When interrupted or exit'd, cleanup temporary files, and complete
1551 # config.log. We remove comments because anyway the quotes in there
1552 # would cause problems or look ugly.
1553 # WARNING: Use '\'' to represent an apostrophe within the trap.
1554 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1555 trap 'exit_status=$?
1556 # Save into config.log some information that might help in debugging.
1557 {
1558 echo
1559
1560 cat <<\_ASBOX
1561 ## ---------------- ##
1562 ## Cache variables. ##
1563 ## ---------------- ##
1564 _ASBOX
1565 echo
1566 # The following way of writing the cache mishandles newlines in values,
1567 (
1568 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1569 eval ac_val=\$$ac_var
1570 case $ac_val in #(
1571 *${as_nl}*)
1572 case $ac_var in #(
1573 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1574 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1575 esac
1576 case $ac_var in #(
1577 _ | IFS | as_nl) ;; #(
1578 *) $as_unset $ac_var ;;
1579 esac ;;
1580 esac
1581 done
1582 (set) 2>&1 |
1583 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1584 *${as_nl}ac_space=\ *)
1585 sed -n \
1586 "s/'\''/'\''\\\\'\'''\''/g;
1587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1588 ;; #(
1589 *)
1590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1591 ;;
1592 esac |
1593 sort
1594 )
1595 echo
1596
1597 cat <<\_ASBOX
1598 ## ----------------- ##
1599 ## Output variables. ##
1600 ## ----------------- ##
1601 _ASBOX
1602 echo
1603 for ac_var in $ac_subst_vars
1604 do
1605 eval ac_val=\$$ac_var
1606 case $ac_val in
1607 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1608 esac
1609 echo "$ac_var='\''$ac_val'\''"
1610 done | sort
1611 echo
1612
1613 if test -n "$ac_subst_files"; then
1614 cat <<\_ASBOX
1615 ## ------------------- ##
1616 ## File substitutions. ##
1617 ## ------------------- ##
1618 _ASBOX
1619 echo
1620 for ac_var in $ac_subst_files
1621 do
1622 eval ac_val=\$$ac_var
1623 case $ac_val in
1624 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1625 esac
1626 echo "$ac_var='\''$ac_val'\''"
1627 done | sort
1628 echo
1629 fi
1630
1631 if test -s confdefs.h; then
1632 cat <<\_ASBOX
1633 ## ----------- ##
1634 ## confdefs.h. ##
1635 ## ----------- ##
1636 _ASBOX
1637 echo
1638 cat confdefs.h
1639 echo
1640 fi
1641 test "$ac_signal" != 0 &&
1642 echo "$as_me: caught signal $ac_signal"
1643 echo "$as_me: exit $exit_status"
1644 } >&5
1645 rm -f core *.core core.conftest.* &&
1646 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1647 exit $exit_status
1648 ' 0
1649 for ac_signal in 1 2 13 15; do
1650 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1651 done
1652 ac_signal=0
1653
1654 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1655 rm -f -r conftest* confdefs.h
1656
1657 # Predefined preprocessor variables.
1658
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_NAME "$PACKAGE_NAME"
1661 _ACEOF
1662
1663
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1666 _ACEOF
1667
1668
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1671 _ACEOF
1672
1673
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_STRING "$PACKAGE_STRING"
1676 _ACEOF
1677
1678
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1681 _ACEOF
1682
1683
1684 # Let the site file select an alternate cache file if it wants to.
1685 # Prefer explicitly selected file to automatically selected ones.
1686 if test -n "$CONFIG_SITE"; then
1687 set x "$CONFIG_SITE"
1688 elif test "x$prefix" != xNONE; then
1689 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1690 else
1691 set x "$ac_default_prefix/share/config.site" \
1692 "$ac_default_prefix/etc/config.site"
1693 fi
1694 shift
1695 for ac_site_file
1696 do
1697 if test -r "$ac_site_file"; then
1698 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1699 echo "$as_me: loading site script $ac_site_file" >&6;}
1700 sed 's/^/| /' "$ac_site_file" >&5
1701 . "$ac_site_file"
1702 fi
1703 done
1704
1705 if test -r "$cache_file"; then
1706 # Some versions of bash will fail to source /dev/null (special
1707 # files actually), so we avoid doing that.
1708 if test -f "$cache_file"; then
1709 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1710 echo "$as_me: loading cache $cache_file" >&6;}
1711 case $cache_file in
1712 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1713 *) . "./$cache_file";;
1714 esac
1715 fi
1716 else
1717 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1718 echo "$as_me: creating cache $cache_file" >&6;}
1719 >$cache_file
1720 fi
1721
1722 ac_header_list="$ac_header_list sys/time.h"
1723 ac_header_list="$ac_header_list unistd.h"
1724 ac_func_list="$ac_func_list alarm"
1725 # Check that the precious variables saved in the cache have kept the same
1726 # value.
1727 ac_cache_corrupted=false
1728 for ac_var in $ac_precious_vars; do
1729 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1730 eval ac_new_set=\$ac_env_${ac_var}_set
1731 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1732 eval ac_new_val=\$ac_env_${ac_var}_value
1733 case $ac_old_set,$ac_new_set in
1734 set,)
1735 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1736 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1737 ac_cache_corrupted=: ;;
1738 ,set)
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1740 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1742 ,);;
1743 *)
1744 if test "x$ac_old_val" != "x$ac_new_val"; then
1745 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1746 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1747 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1748 echo "$as_me: former value: $ac_old_val" >&2;}
1749 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1750 echo "$as_me: current value: $ac_new_val" >&2;}
1751 ac_cache_corrupted=:
1752 fi;;
1753 esac
1754 # Pass precious variables to config.status.
1755 if test "$ac_new_set" = set; then
1756 case $ac_new_val in
1757 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1758 *) ac_arg=$ac_var=$ac_new_val ;;
1759 esac
1760 case " $ac_configure_args " in
1761 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1762 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1763 esac
1764 fi
1765 done
1766 if $ac_cache_corrupted; then
1767 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1768 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1769 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1770 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1771 { (exit 1); exit 1; }; }
1772 fi
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790 ac_ext=c
1791 ac_cpp='$CPP $CPPFLAGS'
1792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1795
1796
1797 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1798
1799
1800 test "$program_prefix" != NONE &&
1801 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1802 # Use a double $ so make ignores it.
1803 test "$program_suffix" != NONE &&
1804 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1805 # Double any \ or $. echo might interpret backslashes.
1806 # By default was `s,x,x', remove it if useless.
1807 cat <<\_ACEOF >conftest.sed
1808 s/[\\$]/&&/g;s/;s,x,x,$//
1809 _ACEOF
1810 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1811 rm -f conftest.sed
1812
1813
1814 lispdir='${datadir}/emacs/${version}/lisp'
1815 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1816 '${datadir}/emacs/site-lisp'
1817 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1818 etcdir='${datadir}/emacs/${version}/etc'
1819 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1820 docdir='${datadir}/emacs/${version}/etc'
1821 gamedir='${localstatedir}/games/emacs'
1822
1823 gameuser=games
1824
1825
1826 # Check whether --with-gcc was given.
1827 if test "${with_gcc+set}" = set; then
1828 withval=$with_gcc;
1829 fi
1830
1831
1832 # Check whether --with-pop was given.
1833 if test "${with_pop+set}" = set; then
1834 withval=$with_pop; if test "$withval" = yes; then
1835 cat >>confdefs.h <<\_ACEOF
1836 #define MAIL_USE_POP 1
1837 _ACEOF
1838
1839 else :
1840 fi
1841 else
1842 cat >>confdefs.h <<\_ACEOF
1843 #define MAIL_USE_POP 1
1844 _ACEOF
1845
1846 fi
1847
1848
1849
1850 # Check whether --with-kerberos was given.
1851 if test "${with_kerberos+set}" = set; then
1852 withval=$with_kerberos; cat >>confdefs.h <<\_ACEOF
1853 #define KERBEROS 1
1854 _ACEOF
1855
1856 fi
1857
1858
1859
1860 # Check whether --with-kerberos5 was given.
1861 if test "${with_kerberos5+set}" = set; then
1862 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1863 if test "${with_kerberos+set}" != set; then
1864 with_kerberos=yes
1865 cat >>confdefs.h <<\_ACEOF
1866 #define KERBEROS 1
1867 _ACEOF
1868
1869 fi
1870 fi
1871
1872 cat >>confdefs.h <<\_ACEOF
1873 #define KERBEROS5 1
1874 _ACEOF
1875
1876 fi
1877
1878
1879 # Check whether --with-hesiod was given.
1880 if test "${with_hesiod+set}" = set; then
1881 withval=$with_hesiod;
1882 cat >>confdefs.h <<\_ACEOF
1883 #define HESIOD 1
1884 _ACEOF
1885
1886 fi
1887
1888
1889
1890 # Check whether --with-sound was given.
1891 if test "${with_sound+set}" = set; then
1892 withval=$with_sound;
1893 fi
1894
1895
1896
1897 # Check whether --with-x-toolkit was given.
1898 if test "${with_x_toolkit+set}" = set; then
1899 withval=$with_x_toolkit; case "${withval}" in
1900 y | ye | yes ) val=athena ;;
1901 n | no ) val=no ;;
1902 l | lu | luc | luci | lucid ) val=lucid ;;
1903 a | at | ath | athe | athen | athena ) val=athena ;;
1904 m | mo | mot | moti | motif ) val=motif ;;
1905 g | gt | gtk ) val=gtk ;;
1906 * )
1907 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1908 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1909 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1910 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1911 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1912 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1913 { (exit 1); exit 1; }; }
1914 ;;
1915 esac
1916 with_x_toolkit=$val
1917
1918 fi
1919
1920
1921 # Check whether --with-xpm was given.
1922 if test "${with_xpm+set}" = set; then
1923 withval=$with_xpm;
1924 fi
1925
1926
1927 # Check whether --with-jpeg was given.
1928 if test "${with_jpeg+set}" = set; then
1929 withval=$with_jpeg;
1930 fi
1931
1932
1933 # Check whether --with-tiff was given.
1934 if test "${with_tiff+set}" = set; then
1935 withval=$with_tiff;
1936 fi
1937
1938
1939 # Check whether --with-gif was given.
1940 if test "${with_gif+set}" = set; then
1941 withval=$with_gif;
1942 fi
1943
1944
1945 # Check whether --with-png was given.
1946 if test "${with_png+set}" = set; then
1947 withval=$with_png;
1948 fi
1949
1950
1951 # Check whether --with-freetype was given.
1952 if test "${with_freetype+set}" = set; then
1953 withval=$with_freetype;
1954 fi
1955
1956
1957 # Check whether --with-xft was given.
1958 if test "${with_xft+set}" = set; then
1959 withval=$with_xft;
1960 fi
1961
1962
1963 # Check whether --with-gtk was given.
1964 if test "${with_gtk+set}" = set; then
1965 withval=$with_gtk;
1966 fi
1967
1968
1969 # Check whether --with-pkg-config-prog was given.
1970 if test "${with_pkg_config_prog+set}" = set; then
1971 withval=$with_pkg_config_prog;
1972 fi
1973
1974
1975 # Check whether --with-toolkit-scroll-bars was given.
1976 if test "${with_toolkit_scroll_bars+set}" = set; then
1977 withval=$with_toolkit_scroll_bars;
1978 fi
1979
1980
1981 # Check whether --with-xim was given.
1982 if test "${with_xim+set}" = set; then
1983 withval=$with_xim;
1984 fi
1985
1986
1987 # Check whether --with-carbon was given.
1988 if test "${with_carbon+set}" = set; then
1989 withval=$with_carbon;
1990 fi
1991
1992 # Check whether --enable-carbon-app was given.
1993 if test "${enable_carbon_app+set}" = set; then
1994 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1995 fi
1996
1997
1998 # Check whether --enable-font-backend was given.
1999 if test "${enable_font_backend+set}" = set; then
2000 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2001 else
2002 USE_FONT_BACKEND=no
2003 fi
2004
2005
2006 # Check whether --enable-asserts was given.
2007 if test "${enable_asserts+set}" = set; then
2008 enableval=$enable_asserts; USE_XASSERTS=$enableval
2009 else
2010 USE_XASSERTS=no
2011 fi
2012
2013
2014 # Check whether --enable-maintainer-mode was given.
2015 if test "${enable_maintainer_mode+set}" = set; then
2016 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2017 else
2018 USE_MAINTAINER_MODE=no
2019 fi
2020
2021 if test $USE_MAINTAINER_MODE = yes; then
2022 MAINT=
2023 else
2024 MAINT=#
2025 fi
2026
2027
2028 # Check whether --enable-locallisppath was given.
2029 if test "${enable_locallisppath+set}" = set; then
2030 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2031 locallisppath=
2032 elif test "${enableval}" != "yes"; then
2033 locallisppath=${enableval}
2034 fi
2035 fi
2036
2037
2038 #### Make srcdir absolute, if it isn't already. It's important to
2039 #### avoid running the path through pwd unnecessarily, since pwd can
2040 #### give you automounter prefixes, which can go away. We do all this
2041 #### so Emacs can find its files when run uninstalled.
2042 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2043 unset CDPATH
2044 case "${srcdir}" in
2045 /* ) ;;
2046 . )
2047 ## We may be able to use the $PWD environment variable to make this
2048 ## absolute. But sometimes PWD is inaccurate.
2049 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2050 ## but that tested only for a well-formed and valid PWD,
2051 ## it did not object when PWD was well-formed and valid but just wrong.
2052 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2053 then
2054 srcdir="$PWD"
2055 else
2056 srcdir="`(cd ${srcdir}; pwd)`"
2057 fi
2058 ;;
2059 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2060 esac
2061
2062 #### Check if the source directory already has a configured system in it.
2063 if test `pwd` != `(cd ${srcdir} && pwd)` \
2064 && test -f "${srcdir}/src/config.h" ; then
2065 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2066 as a build directory right now; it has been configured in its own
2067 right. To configure in another directory as well, you MUST
2068 use GNU make. If you do not have GNU make, then you must
2069 now do \`make distclean' in ${srcdir},
2070 and then run $0 again." >&5
2071 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2072 as a build directory right now; it has been configured in its own
2073 right. To configure in another directory as well, you MUST
2074 use GNU make. If you do not have GNU make, then you must
2075 now do \`make distclean' in ${srcdir},
2076 and then run $0 again." >&2;}
2077 fi
2078
2079 #### Given the configuration name, set machfile and opsysfile to the
2080 #### names of the m/*.h and s/*.h files we should use.
2081
2082 ### Canonicalize the configuration name.
2083
2084 ac_aux_dir=
2085 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2086 if test -f "$ac_dir/install-sh"; then
2087 ac_aux_dir=$ac_dir
2088 ac_install_sh="$ac_aux_dir/install-sh -c"
2089 break
2090 elif test -f "$ac_dir/install.sh"; then
2091 ac_aux_dir=$ac_dir
2092 ac_install_sh="$ac_aux_dir/install.sh -c"
2093 break
2094 elif test -f "$ac_dir/shtool"; then
2095 ac_aux_dir=$ac_dir
2096 ac_install_sh="$ac_aux_dir/shtool install -c"
2097 break
2098 fi
2099 done
2100 if test -z "$ac_aux_dir"; then
2101 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2102 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2103 { (exit 1); exit 1; }; }
2104 fi
2105
2106 # These three variables are undocumented and unsupported,
2107 # and are intended to be withdrawn in a future Autoconf release.
2108 # They can cause serious problems if a builder's source tree is in a directory
2109 # whose full name contains unusual characters.
2110 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2111 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2112 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2113
2114
2115 # Make sure we can run config.sub.
2116 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2117 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2118 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2119 { (exit 1); exit 1; }; }
2120
2121 { echo "$as_me:$LINENO: checking build system type" >&5
2122 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2123 if test "${ac_cv_build+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 else
2126 ac_build_alias=$build_alias
2127 test "x$ac_build_alias" = x &&
2128 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2129 test "x$ac_build_alias" = x &&
2130 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2131 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2132 { (exit 1); exit 1; }; }
2133 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2134 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2135 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2136 { (exit 1); exit 1; }; }
2137
2138 fi
2139 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2140 echo "${ECHO_T}$ac_cv_build" >&6; }
2141 case $ac_cv_build in
2142 *-*-*) ;;
2143 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2144 echo "$as_me: error: invalid value of canonical build" >&2;}
2145 { (exit 1); exit 1; }; };;
2146 esac
2147 build=$ac_cv_build
2148 ac_save_IFS=$IFS; IFS='-'
2149 set x $ac_cv_build
2150 shift
2151 build_cpu=$1
2152 build_vendor=$2
2153 shift; shift
2154 # Remember, the first character of IFS is used to create $*,
2155 # except with old shells:
2156 build_os=$*
2157 IFS=$ac_save_IFS
2158 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2159
2160
2161 { echo "$as_me:$LINENO: checking host system type" >&5
2162 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2163 if test "${ac_cv_host+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2165 else
2166 if test "x$host_alias" = x; then
2167 ac_cv_host=$ac_cv_build
2168 else
2169 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2170 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2171 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2172 { (exit 1); exit 1; }; }
2173 fi
2174
2175 fi
2176 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2177 echo "${ECHO_T}$ac_cv_host" >&6; }
2178 case $ac_cv_host in
2179 *-*-*) ;;
2180 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2181 echo "$as_me: error: invalid value of canonical host" >&2;}
2182 { (exit 1); exit 1; }; };;
2183 esac
2184 host=$ac_cv_host
2185 ac_save_IFS=$IFS; IFS='-'
2186 set x $ac_cv_host
2187 shift
2188 host_cpu=$1
2189 host_vendor=$2
2190 shift; shift
2191 # Remember, the first character of IFS is used to create $*,
2192 # except with old shells:
2193 host_os=$*
2194 IFS=$ac_save_IFS
2195 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2196
2197
2198 canonical=$host
2199 configuration=${host_alias-$host}
2200
2201
2202
2203 ### If you add support for a new configuration, add code to this
2204 ### switch statement to recognize your configuration name and select
2205 ### the appropriate operating system and machine description files.
2206
2207 ### You would hope that you could choose an m/*.h file pretty much
2208 ### based on the machine portion of the configuration name, and an s-
2209 ### file based on the operating system portion. However, it turns out
2210 ### that each m/*.h file is pretty manufacturer-specific - for
2211 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2212 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2213 ### machines. So we basically have to have a special case for each
2214 ### configuration name.
2215 ###
2216 ### As far as handling version numbers on operating systems is
2217 ### concerned, make sure things will fail in a fixable way. If
2218 ### /etc/MACHINES doesn't say anything about version numbers, be
2219 ### prepared to handle anything reasonably. If version numbers
2220 ### matter, be sure /etc/MACHINES says something about it.
2221 ###
2222 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2223 ### "System V Release 4"; he writes, "The old convention encouraged
2224 ### confusion between `system' and `release' levels'."
2225
2226 machine='' opsys='' unported=no
2227 case "${canonical}" in
2228
2229 ## FreeBSD ports
2230 *-*-freebsd* )
2231 opsys=freebsd
2232 case "${canonical}" in
2233 alpha*-*-freebsd*) machine=alpha ;;
2234 ia64-*-freebsd*) machine=ia64 ;;
2235 sparc64-*-freebsd*) machine=sparc ;;
2236 powerpc-*-freebsd*) machine=macppc ;;
2237 i[3456]86-*-freebsd*) machine=intel386 ;;
2238 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2239 esac
2240 ;;
2241
2242 ## NetBSD ports
2243 *-*-netbsd* )
2244 opsys=netbsd
2245 if test -f /usr/lib/crti.o; then
2246
2247 cat >>confdefs.h <<\_ACEOF
2248 #define HAVE_CRTIN
2249 _ACEOF
2250
2251 fi
2252
2253 case "${canonical}" in
2254 alpha*-*-netbsd*) machine=alpha ;;
2255 i[3456]86-*-netbsd*) machine=intel386 ;;
2256 m68k-*-netbsd*)
2257 # This is somewhat bogus.
2258 machine=hp9000s300 ;;
2259 mips-*-netbsd*) machine=pmax ;;
2260 mipsel-*-netbsd*) machine=pmax ;;
2261 mipseb-*-netbsd*) machine=pmax ;;
2262 ns32k-*-netbsd*) machine=ns32000 ;;
2263 powerpc-*-netbsd*) machine=macppc ;;
2264 sparc*-*-netbsd*) machine=sparc ;;
2265 vax-*-netbsd*) machine=vax ;;
2266 arm-*-netbsd*) machine=arm ;;
2267 x86_64-*-netbsd*) machine=amdx86-64 ;;
2268 hppa-*-netbsd*) machine=hp800 ;;
2269 shle-*-netbsd*) machine=sh3el ;;
2270 esac
2271 ;;
2272
2273 ## OpenBSD ports
2274 *-*-openbsd* )
2275 opsys=openbsd
2276 case "${canonical}" in
2277 alpha*-*-openbsd*) machine=alpha ;;
2278 i386-*-openbsd*) machine=intel386 ;;
2279 x86_64-*-openbsd*) machine=amdx86-64 ;;
2280 m68k-*-openbsd*) machine=hp9000s300 ;;
2281 mipsel-*-openbsd*) machine=pmax ;;
2282 ns32k-*-openbsd*) machine=ns32000 ;;
2283 sparc-*-openbsd*) machine=sparc ;;
2284 vax-*-openbsd*) machine=vax ;;
2285 esac
2286 ;;
2287
2288 ## LynxOS ports
2289 *-*-lynxos* )
2290 opsys=lynxos
2291 case "${canonical}" in
2292 i[3456]86-*-lynxos*) machine=intel386 ;;
2293 powerpc-*-lynxos*) machine=powerpc ;;
2294 esac
2295 ;;
2296
2297 ## Acorn RISCiX:
2298 arm-acorn-riscix1.1* )
2299 machine=acorn opsys=riscix1-1
2300 ;;
2301 arm-acorn-riscix1.2* | arm-acorn-riscix )
2302 ## This name is riscix12 instead of riscix1.2
2303 ## to avoid a file name conflict on MSDOS.
2304 machine=acorn opsys=riscix12
2305 ;;
2306
2307 ## BSDI ports
2308 *-*-bsdi* )
2309 opsys=bsdi
2310 case "${canonical}" in
2311 i[345]86-*-bsdi*) machine=intel386 ;;
2312 sparc-*-bsdi*) machine=sparc ;;
2313 powerpc-*-bsdi*) machine=macppc ;;
2314 esac
2315 case "${canonical}" in
2316 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2317 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2318 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2319 *-*-bsdi3* ) opsys=bsdos3 ;;
2320 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2321 esac
2322 ;;
2323
2324 ## Alliant machines
2325 ## Strictly speaking, we need the version of the alliant operating
2326 ## system to choose the right machine file, but currently the
2327 ## configuration name doesn't tell us enough to choose the right
2328 ## one; we need to give alliants their own operating system name to
2329 ## do this right. When someone cares, they can help us.
2330 fx80-alliant-* )
2331 machine=alliant4 opsys=bsd4-2
2332 ;;
2333 i860-alliant-* )
2334 machine=alliant-2800 opsys=bsd4-3
2335 ;;
2336
2337 ## Alpha (DEC) machines.
2338 alpha*-dec-osf* )
2339 machine=alpha opsys=osf1
2340 # This is needed to find X11R6.1 libraries for certain tests.
2341 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2342 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2343 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2344 # due to non-traditional preprocessing with the current compiler
2345 # defaults. OSF 4 can also have that compiler version, and there
2346 # seems always to have been a usable /usr/bin/cpp.
2347 NON_GNU_CPP=/usr/bin/cpp
2348 case "${canonical}" in
2349 alpha*-dec-osf[5-9]*)
2350 opsys=osf5-0 ;;
2351 esac
2352 ;;
2353
2354 alpha*-*-linux-gnu* )
2355 machine=alpha opsys=gnu-linux
2356 ;;
2357
2358 arm*-*-linux-gnu* )
2359 machine=arm opsys=gnu-linux
2360 ;;
2361
2362 ## Altos 3068
2363 m68*-altos-sysv* )
2364 machine=altos opsys=usg5-2
2365 ;;
2366
2367 ## Amdahl UTS
2368 580-amdahl-sysv* )
2369 machine=amdahl opsys=usg5-2-2
2370 ;;
2371
2372 ## Apollo, Domain/OS
2373 m68*-apollo-* )
2374 machine=apollo opsys=bsd4-3
2375 ;;
2376
2377 ## Apple Darwin / Mac OS X
2378 *-apple-darwin* )
2379 case "${canonical}" in
2380 i[3456]86-* ) machine=intel386 ;;
2381 powerpc-* ) machine=powermac ;;
2382 * ) unported=yes ;;
2383 esac
2384 opsys=darwin
2385 # Define CPP as follows to make autoconf work correctly.
2386 CPP="${CC-cc} -E -no-cpp-precomp"
2387 # Use fink packages if available.
2388 if test -d /sw/include && test -d /sw/lib; then
2389 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2390 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2391 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2392 fi
2393 ;;
2394
2395 ## AT&T 3b2, 3b5, 3b15, 3b20
2396 we32k-att-sysv* )
2397 machine=att3b opsys=usg5-2-2
2398 ;;
2399
2400 ## AT&T 3b1 - The Mighty Unix PC!
2401 m68*-att-sysv* )
2402 machine=7300 opsys=usg5-2-2
2403 ;;
2404
2405 ## Bull dpx20
2406 rs6000-bull-bosx* )
2407 machine=ibmrs6000 opsys=aix3-2
2408 ;;
2409
2410 ## Bull dpx2
2411 m68*-bull-sysv3* )
2412 machine=dpx2 opsys=usg5-3
2413 ;;
2414
2415 ## Bull sps7
2416 m68*-bull-sysv2* )
2417 machine=sps7 opsys=usg5-2
2418 ;;
2419
2420 ## CCI 5/32, 6/32 -- see "Tahoe".
2421
2422 ## Celerity
2423 ## I don't know what configuration name to use for this; config.sub
2424 ## doesn't seem to know anything about it. Hey, Celerity users, get
2425 ## in touch with us!
2426 celerity-celerity-bsd* )
2427 machine=celerity opsys=bsd4-2
2428 ;;
2429
2430 ## Clipper
2431 ## What operating systems does this chip run that Emacs has been
2432 ## tested on?
2433 clipper-* )
2434 machine=clipper
2435 ## We'll use the catch-all code at the bottom to guess the
2436 ## operating system.
2437 ;;
2438
2439 ## Compaq Nonstop
2440 mips-compaq-nonstopux* )
2441 machine=nonstopux opsys=nonstopux
2442 ;;
2443
2444 ## Convex
2445 *-convex-bsd* | *-convex-convexos* )
2446 machine=convex opsys=bsd4-3
2447 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2448 NON_GNU_CPP="cc -E -P"
2449 ;;
2450
2451 ## Cubix QBx/386
2452 i[3456]86-cubix-sysv* )
2453 machine=intel386 opsys=usg5-3
2454 ;;
2455
2456 ## Cydra 5
2457 cydra*-cydrome-sysv* )
2458 machine=cydra5 opsys=usg5-3
2459 ;;
2460
2461 ## Data General AViiON Machines
2462 ## DG changed naming conventions with the release of 5.4.4.10, they
2463 ## dropped the initial 5.4 but left the intervening R. Because of the
2464 ## R this shouldn't conflict with older versions of the OS (which I
2465 ## think were named like dgux4.*). In addition, DG new AViiONs series
2466 ## uses either Motorola M88k or Intel Pentium CPUs.
2467 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2468 machine=aviion opsys=dgux4
2469 ;;
2470 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2471 ## This name is dgux5-4-3 instead of dgux5-4r3
2472 ## to avoid a file name conflict on MSDOS.
2473 machine=aviion opsys=dgux5-4-3
2474 ;;
2475 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2476 machine=aviion opsys=dgux5-4r2
2477 ;;
2478 m88k-dg-dgux* )
2479 machine=aviion opsys=dgux
2480 ;;
2481
2482 ## Data General AViiON Intel (x86) Machines
2483 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2484 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2485 i[345]86-dg-dguxR4* )
2486 machine=aviion-intel opsys=dgux4
2487 ;;
2488
2489 ## DECstations
2490 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2491 machine=pmax opsys=bsd4-2
2492 ;;
2493 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2494 machine=pmax opsys=bsd4-3
2495 ;;
2496 mips-dec-ultrix* )
2497 machine=pmax opsys=ultrix4-3
2498 ;;
2499 mips-dec-osf* )
2500 machine=pmax opsys=osf1
2501 ;;
2502 mips-dec-mach_bsd4.3* )
2503 machine=pmax opsys=mach-bsd4-3
2504 ;;
2505
2506 ## Motorola Delta machines
2507 m68k-motorola-sysv* | m68000-motorola-sysv* )
2508 machine=delta opsys=usg5-3
2509 if test -z "`type gnucc | grep 'not found'`"
2510 then
2511 if test -s /etc/167config
2512 then CC="gnucc -m68040"
2513 else CC="gnucc -m68881"
2514 fi
2515 else
2516 if test -z "`type gcc | grep 'not found'`"
2517 then CC=gcc
2518 else CC=cc
2519 fi
2520 fi
2521 ;;
2522 m88k-motorola-sysv4* )
2523 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2524 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2525 # I hope there are not other 4.0 versions for this machine
2526 # which really need usg5-4 instead.
2527 machine=delta88k opsys=usg5-4-2
2528 ;;
2529 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2530 machine=delta88k opsys=usg5-3
2531 ;;
2532
2533 ## Dual machines
2534 m68*-dual-sysv* )
2535 machine=dual opsys=usg5-2
2536 ;;
2537 m68*-dual-uniplus* )
2538 machine=dual opsys=unipl5-2
2539 ;;
2540
2541 ## Elxsi 6400
2542 elxsi-elxsi-sysv* )
2543 machine=elxsi opsys=usg5-2
2544 ;;
2545
2546 ## Encore machines
2547 ns16k-encore-bsd* )
2548 machine=ns16000 opsys=umax
2549 ;;
2550
2551 ## The GEC 63 - apparently, this port isn't really finished yet.
2552 # I'm sure we finished off the last of the machines, though. -- fx
2553
2554 ## Gould Power Node and NP1
2555 pn-gould-bsd4.2* )
2556 machine=gould opsys=bsd4-2
2557 ;;
2558 pn-gould-bsd4.3* )
2559 machine=gould opsys=bsd4-3
2560 ;;
2561 np1-gould-bsd* )
2562 machine=gould-np1 opsys=bsd4-3
2563 ;;
2564
2565 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2566 ## as far as Emacs is concerned).
2567 m88k-harris-cxux* )
2568 # Build needs to be different on 7.0 and later releases
2569 case "`uname -r`" in
2570 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2571 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2572 esac
2573 NON_GNU_CPP="/lib/cpp"
2574 ;;
2575 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2576 m68k-harris-cxux* )
2577 machine=nh3000 opsys=cxux
2578 ;;
2579 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2580 powerpc-harris-powerunix )
2581 machine=nh6000 opsys=powerunix
2582 NON_GNU_CPP="cc -Xo -E -P"
2583 ;;
2584 ## Honeywell XPS100
2585 xps*-honeywell-sysv* )
2586 machine=xps100 opsys=usg5-2
2587 ;;
2588
2589 ## HP 9000 series 200 or 300
2590 m68*-hp-bsd* )
2591 machine=hp9000s300 opsys=bsd4-3
2592 ;;
2593 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2594 m68*-hp-hpux* )
2595 case "`uname -r`" in
2596 ## Someone's system reports A.B8.05 for this.
2597 ## I wonder what other possibilities there are.
2598 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2599 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2600 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2601 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2602 *) machine=hp9000s300 opsys=hpux ;;
2603 esac
2604 ;;
2605
2606 hppa*-*-linux-gnu* )
2607 machine=hp800 opsys=gnu-linux
2608 ;;
2609
2610 hppa*-*-nextstep* )
2611 machine=hp800 opsys=nextstep
2612 ;;
2613
2614 ## Orion machines
2615 orion-orion-bsd* )
2616 machine=orion opsys=bsd4-2
2617 ;;
2618 clipper-orion-bsd* )
2619 machine=orion105 opsys=bsd4-2
2620 ;;
2621
2622 ## IBM machines
2623 i[3456]86-ibm-aix1.1* )
2624 machine=ibmps2-aix opsys=usg5-2-2
2625 ;;
2626 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2627 machine=ibmps2-aix opsys=usg5-3
2628 ;;
2629 i370-ibm-aix*)
2630 machine=ibm370aix opsys=usg5-3
2631 ;;
2632 s390-*-linux-gnu* )
2633 machine=ibms390 opsys=gnu-linux
2634 ;;
2635 s390x-*-linux-gnu* )
2636 machine=ibms390x opsys=gnu-linux
2637 ;;
2638 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2639 machine=ibmrs6000 opsys=aix3-1
2640 ;;
2641 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2642 machine=ibmrs6000 opsys=aix3-2-5
2643 ;;
2644 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2645 machine=ibmrs6000 opsys=aix4-1
2646 ;;
2647 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2648 machine=ibmrs6000 opsys=aix4-2
2649 ;;
2650 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2651 machine=ibmrs6000 opsys=aix4-2
2652 ;;
2653 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2654 machine=ibmrs6000 opsys=aix4
2655 ;;
2656 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2657 machine=ibmrs6000 opsys=aix4-1
2658 ;;
2659 rs6000-ibm-aix* | powerpc-ibm-aix* )
2660 machine=ibmrs6000 opsys=aix3-2
2661 ;;
2662 romp-ibm-bsd4.3* )
2663 machine=ibmrt opsys=bsd4-3
2664 ;;
2665 romp-ibm-bsd4.2* )
2666 machine=ibmrt opsys=bsd4-2
2667 ;;
2668 romp-ibm-aos4.3* )
2669 machine=ibmrt opsys=bsd4-3
2670 ;;
2671 romp-ibm-aos4.2* )
2672 machine=ibmrt opsys=bsd4-2
2673 ;;
2674 romp-ibm-aos* )
2675 machine=ibmrt opsys=bsd4-3
2676 ;;
2677 romp-ibm-bsd* )
2678 machine=ibmrt opsys=bsd4-3
2679 ;;
2680 romp-ibm-aix* )
2681 machine=ibmrt-aix opsys=usg5-2-2
2682 ;;
2683
2684 ## Integrated Solutions `Optimum V'
2685 m68*-isi-bsd4.2* )
2686 machine=isi-ov opsys=bsd4-2
2687 ;;
2688 m68*-isi-bsd4.3* )
2689 machine=isi-ov opsys=bsd4-3
2690 ;;
2691
2692 ## Intel 386 machines where we do care about the manufacturer
2693 i[3456]86-intsys-sysv* )
2694 machine=is386 opsys=usg5-2-2
2695 ;;
2696
2697 ## Prime EXL
2698 i[3456]86-prime-sysv* )
2699 machine=i386 opsys=usg5-3
2700 ;;
2701
2702 ## Sequent Symmetry running Dynix
2703 i[3456]86-sequent-bsd* )
2704 machine=symmetry opsys=bsd4-3
2705 ;;
2706
2707 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2708 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2709 machine=sequent-ptx opsys=ptx4
2710 NON_GNU_CPP=/lib/cpp
2711 ;;
2712
2713 ## Sequent Symmetry running DYNIX/ptx
2714 ## Use the old cpp rather than the newer ANSI one.
2715 i[3456]86-sequent-ptx* )
2716 machine=sequent-ptx opsys=ptx
2717 NON_GNU_CPP="/lib/cpp"
2718 ;;
2719
2720 ## ncr machine running svr4.3.
2721 i[3456]86-ncr-sysv4.3 )
2722 machine=ncr386 opsys=usg5-4-3
2723 ;;
2724
2725 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2726 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2727 i[3456]86-ncr-sysv* )
2728 machine=ncr386 opsys=usg5-4-2
2729 ;;
2730
2731 ## Intel Paragon OSF/1
2732 i860-intel-osf1* )
2733 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2734 ;;
2735
2736 ## Intel 860
2737 i860-*-sysv4* )
2738 machine=i860 opsys=usg5-4
2739 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2740 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2741 ;;
2742
2743 ## Macintosh PowerPC
2744 powerpc*-*-linux-gnu* )
2745 machine=macppc opsys=gnu-linux
2746 ;;
2747
2748 ## Masscomp machines
2749 m68*-masscomp-rtu* )
2750 machine=masscomp opsys=rtu
2751 ;;
2752
2753 ## Megatest machines
2754 m68*-megatest-bsd* )
2755 machine=mega68 opsys=bsd4-2
2756 ;;
2757
2758 ## Workstations sold by MIPS
2759 ## This is not necessarily all workstations using the MIPS processor -
2760 ## Irises are produced by SGI, and DECstations by DEC.
2761
2762 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2763 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2764 ## it gives for choosing between the alternatives seems to be "Use
2765 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2766 ## the BSD world." I'll assume that these are instructions for
2767 ## handling two odd situations, and that every other situation
2768 ## should use mips.h and usg5-2-2, they being listed first.
2769 mips-mips-usg* )
2770 machine=mips4
2771 ## Fall through to the general code at the bottom to decide on the OS.
2772 ;;
2773 mips-mips-riscos4* )
2774 machine=mips4 opsys=bsd4-3
2775 NON_GNU_CC="cc -systype bsd43"
2776 NON_GNU_CPP="cc -systype bsd43 -E"
2777 ;;
2778 mips-mips-riscos5* )
2779 machine=mips4 opsys=riscos5
2780 NON_GNU_CC="cc -systype bsd43"
2781 NON_GNU_CPP="cc -systype bsd43 -E"
2782 ;;
2783 mips-mips-bsd* )
2784 machine=mips opsys=bsd4-3
2785 ;;
2786 mips-mips-* )
2787 machine=mips opsys=usg5-2-2
2788 ;;
2789
2790 ## NeXT
2791 m68*-next-* | m68k-*-nextstep* )
2792 machine=m68k opsys=nextstep
2793 ;;
2794
2795 ## The complete machine from National Semiconductor
2796 ns32k-ns-genix* )
2797 machine=ns32000 opsys=usg5-2
2798 ;;
2799
2800 ## NCR machines
2801 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2802 machine=tower32 opsys=usg5-2-2
2803 ;;
2804 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2805 machine=tower32v3 opsys=usg5-3
2806 ;;
2807
2808 ## NEC EWS4800
2809 mips-nec-sysv4*)
2810 machine=ews4800 opsys=ux4800
2811 ;;
2812
2813 ## Nixdorf Targon 31
2814 m68*-nixdorf-sysv* )
2815 machine=targon31 opsys=usg5-2-2
2816 ;;
2817
2818 ## Nu (TI or LMI)
2819 m68*-nu-sysv* )
2820 machine=nu opsys=usg5-2
2821 ;;
2822
2823 ## Plexus
2824 m68*-plexus-sysv* )
2825 machine=plexus opsys=usg5-2
2826 ;;
2827
2828 ## Pyramid machines
2829 ## I don't really have any idea what sort of processor the Pyramid has,
2830 ## so I'm assuming it is its own architecture.
2831 pyramid-pyramid-bsd* )
2832 machine=pyramid opsys=bsd4-2
2833 ;;
2834
2835 ## Sequent Balance
2836 ns32k-sequent-bsd4.2* )
2837 machine=sequent opsys=bsd4-2
2838 ;;
2839 ns32k-sequent-bsd4.3* )
2840 machine=sequent opsys=bsd4-3
2841 ;;
2842
2843 ## Siemens Nixdorf
2844 mips-siemens-sysv* | mips-sni-sysv*)
2845 machine=mips-siemens opsys=usg5-4
2846 NON_GNU_CC=/usr/ccs/bin/cc
2847 NON_GNU_CPP=/usr/ccs/lib/cpp
2848 ;;
2849
2850 ## Silicon Graphics machines
2851 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2852 m68*-sgi-iris3.5* )
2853 machine=irist opsys=iris3-5
2854 ;;
2855 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2856 machine=irist opsys=iris3-6
2857 ;;
2858 ## Iris 4D
2859 mips-sgi-irix3* )
2860 machine=iris4d opsys=irix3-3
2861 ;;
2862 mips-sgi-irix4* )
2863 machine=iris4d opsys=irix4-0
2864 ;;
2865 mips-sgi-irix6.5 )
2866 machine=iris4d opsys=irix6-5
2867 # Without defining _LANGUAGE_C, things get masked out in the headers
2868 # so that, for instance, grepping for `free' in stdlib.h fails and
2869 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2870 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2871 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2872 ;;
2873 mips-sgi-irix6* )
2874 machine=iris4d opsys=irix6-0
2875 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2876 # but presumably it does no harm.
2877 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2878 # -32 probably isn't necessary in later v.6s -- anyone know which?
2879 NON_GCC_TEST_OPTIONS=-32
2880 ;;
2881 mips-sgi-irix5.[01]* )
2882 machine=iris4d opsys=irix5-0
2883 ;;
2884 mips-sgi-irix5* | mips-sgi-irix* )
2885 machine=iris4d opsys=irix5-2
2886 ;;
2887
2888 ## SONY machines
2889 m68*-sony-bsd4.2* )
2890 machine=news opsys=bsd4-2
2891 ;;
2892 m68*-sony-bsd4.3* )
2893 machine=news opsys=bsd4-3
2894 ;;
2895 m68*-sony-newsos3* | m68*-sony-news3*)
2896 machine=news opsys=bsd4-3
2897 ;;
2898 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2899 machine=news-risc opsys=bsd4-3
2900 ;;
2901 mips-sony-newsos6* )
2902 machine=news-r6 opsys=newsos6
2903 ;;
2904 mips-sony-news* )
2905 machine=news-risc opsys=newsos5
2906 ;;
2907
2908 ## Stride
2909 m68*-stride-sysv* )
2910 machine=stride opsys=usg5-2
2911 ;;
2912
2913 ## Suns
2914 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2915 machine=sparc opsys=gnu-linux
2916 ;;
2917
2918 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2919 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2920 | rs6000-*-solaris2*)
2921 case "${canonical}" in
2922 m68*-sunos1* ) machine=sun1 ;;
2923 m68*-sunos2* ) machine=sun2 ;;
2924 m68* ) machine=sun3 ;;
2925 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2926 i[3456]86-*-* ) machine=intel386 ;;
2927 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2928 powerpcle* ) machine=powerpcle ;;
2929 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2930 sparc* ) machine=sparc ;;
2931 * ) unported=yes ;;
2932 esac
2933 case "${canonical}" in
2934 ## The Sun386 didn't get past 4.0.
2935 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2936 *-sunos4.0* ) opsys=sunos4-0 ;;
2937 *-sunos4.1.[3-9]*noshare )
2938 ## This name is sunos413 instead of sunos4-1-3
2939 ## to avoid a file name conflict on MSDOS.
2940 opsys=sunos413
2941 NON_GNU_CPP=/usr/lib/cpp
2942 NON_GCC_TEST_OPTIONS=-Bstatic
2943 GCC_TEST_OPTIONS=-static
2944 ;;
2945 *-sunos4.1.[3-9]* | *-sunos4shr*)
2946 opsys=sunos4shr
2947 NON_GNU_CPP=/usr/lib/cpp
2948 ;;
2949 *-sunos4* | *-sunos )
2950 opsys=sunos4-1
2951 NON_GCC_TEST_OPTIONS=-Bstatic
2952 GCC_TEST_OPTIONS=-static
2953 ;;
2954 *-sunos5.3* | *-solaris2.3* )
2955 opsys=sol2-3
2956 NON_GNU_CPP=/usr/ccs/lib/cpp
2957 ;;
2958 *-sunos5.4* | *-solaris2.4* )
2959 opsys=sol2-4
2960 NON_GNU_CPP=/usr/ccs/lib/cpp
2961 RANLIB="ar -ts"
2962 ;;
2963 *-sunos5.5* | *-solaris2.5* )
2964 opsys=sol2-5
2965 NON_GNU_CPP=/usr/ccs/lib/cpp
2966 RANLIB="ar -ts"
2967 ;;
2968 *-sunos5.6* | *-solaris2.6* )
2969 opsys=sol2-6
2970 NON_GNU_CPP=/usr/ccs/lib/cpp
2971 RANLIB="ar -ts"
2972 ;;
2973 *-sunos5* | *-solaris* )
2974 opsys=sol2-6
2975 NON_GNU_CPP=/usr/ccs/lib/cpp
2976 ;;
2977 * ) opsys=bsd4-2 ;;
2978 esac
2979 ## Watch out for a compiler that we know will not work.
2980 case "${canonical}" in
2981 *-solaris* | *-sunos5* )
2982 if [ "x$CC" = x/usr/ucb/cc ]; then
2983 ## /usr/ucb/cc doesn't work;
2984 ## we should find some other compiler that does work.
2985 unset CC
2986 fi
2987 ;;
2988 *) ;;
2989 esac
2990 ;;
2991 sparc-*-nextstep* )
2992 machine=sparc opsys=nextstep
2993 ;;
2994
2995 ## Tadpole 68k
2996 m68*-tadpole-sysv* )
2997 machine=tad68k opsys=usg5-3
2998 ;;
2999
3000 ## Tahoe machines
3001 tahoe-tahoe-bsd4.2* )
3002 machine=tahoe opsys=bsd4-2
3003 ;;
3004 tahoe-tahoe-bsd4.3* )
3005 machine=tahoe opsys=bsd4-3
3006 ;;
3007
3008 ## Tandem Integrity S2
3009 mips-tandem-sysv* )
3010 machine=tandem-s2 opsys=usg5-3
3011 ;;
3012
3013 ## Tektronix XD88
3014 m88k-tektronix-sysv3* )
3015 machine=tekxd88 opsys=usg5-3
3016 ;;
3017
3018 ## Tektronix 16000 box (6130?)
3019 ns16k-tektronix-bsd* )
3020 machine=ns16000 opsys=bsd4-2
3021 ;;
3022 ## Tektronix 4300
3023 ## src/m/tek4300.h hints that this is a m68k machine.
3024 m68*-tektronix-bsd* )
3025 machine=tek4300 opsys=bsd4-3
3026 ;;
3027
3028 ## Titan P2 or P3
3029 ## We seem to have lost the machine-description file titan.h!
3030 titan-titan-sysv* )
3031 machine=titan opsys=usg5-3
3032 ;;
3033
3034 ## Ustation E30 (SS5E)
3035 m68*-unisys-uniplus* )
3036 machine=ustation opsystem=unipl5-2
3037 ;;
3038
3039 ## Vaxen.
3040 vax-dec-* )
3041 machine=vax
3042 case "${canonical}" in
3043 *-bsd4.1* ) opsys=bsd4-1 ;;
3044 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3045 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3046 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3047 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3048 *-vms* ) opsys=vms ;;
3049 * ) unported=yes
3050 esac
3051 ;;
3052
3053 ## Whitechapel MG1
3054 ns16k-whitechapel-* )
3055 machine=mg1
3056 ## We don't know what sort of OS runs on these; we'll let the
3057 ## operating system guessing code below try.
3058 ;;
3059
3060 ## Wicat
3061 m68*-wicat-sysv* )
3062 machine=wicat opsys=usg5-2
3063 ;;
3064
3065 ## IA-64
3066 ia64*-*-linux* )
3067 machine=ia64 opsys=gnu-linux
3068 ;;
3069
3070 ## Intel 386 machines where we don't care about the manufacturer
3071 i[3456]86-*-* )
3072 machine=intel386
3073 case "${canonical}" in
3074 *-cygwin ) opsys=cygwin ;;
3075 *-darwin* ) opsys=darwin
3076 CPP="${CC-cc} -E -no-cpp-precomp"
3077 ;;
3078 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3079 *-isc2.2* ) opsys=isc2-2 ;;
3080 *-isc4.0* ) opsys=isc4-0 ;;
3081 *-isc4.* ) opsys=isc4-1
3082 GCC_TEST_OPTIONS=-posix
3083 NON_GCC_TEST_OPTIONS=-Xp
3084 ;;
3085 *-isc* ) opsys=isc3-0 ;;
3086 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3087 *-esix* ) opsys=esix ;;
3088 *-xenix* ) opsys=xenix ;;
3089 *-linux-gnu* ) opsys=gnu-linux ;;
3090 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3091 *-sco3.2v5* ) opsys=sco5
3092 NON_GNU_CPP=/lib/cpp
3093 # Prevent -belf from being passed to $CPP.
3094 # /lib/cpp does not accept it.
3095 OVERRIDE_CPPFLAGS=" "
3096 ;;
3097 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3098 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3099 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3100 *-386bsd* ) opsys=386bsd ;;
3101 *-nextstep* ) opsys=nextstep ;;
3102 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3103 esac
3104 ;;
3105
3106 ## m68k Linux-based GNU system
3107 m68k-*-linux-gnu* )
3108 machine=m68k opsys=gnu-linux
3109 ;;
3110
3111 ## Mips Linux-based GNU system
3112 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3113 machine=mips opsys=gnu-linux
3114 ;;
3115
3116 ## UXP/DS
3117 sparc-fujitsu-sysv4* )
3118 machine=sparc opsys=uxpds
3119 NON_GNU_CPP=/usr/ccs/lib/cpp
3120 RANLIB="ar -ts"
3121 ;;
3122
3123 ## UXP/V
3124 f301-fujitsu-uxpv4.1)
3125 machine=f301 opsys=uxpv
3126 ;;
3127
3128 ## AMD x86-64 Linux-based GNU system
3129 x86_64-*-linux-gnu* )
3130 machine=amdx86-64 opsys=gnu-linux
3131 ;;
3132
3133 ## Tensilica Xtensa Linux-based GNU system
3134 xtensa-*-linux-gnu* )
3135 machine=xtensa opsys=gnu-linux
3136 ;;
3137
3138 * )
3139 unported=yes
3140 ;;
3141 esac
3142
3143 ### If the code above didn't choose an operating system, just choose
3144 ### an operating system based on the configuration name. You really
3145 ### only want to use this when you have no idea what the right
3146 ### operating system is; if you know what operating systems a machine
3147 ### runs, it's cleaner to make it explicit in the case statement
3148 ### above.
3149 if test x"${opsys}" = x; then
3150 case "${canonical}" in
3151 *-gnu* ) opsys=gnu ;;
3152 *-bsd4.[01] ) opsys=bsd4-1 ;;
3153 *-bsd4.2 ) opsys=bsd4-2 ;;
3154 *-bsd4.3 ) opsys=bsd4-3 ;;
3155 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3156 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3157 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3158 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3159 *-sysv4.2uw* ) opsys=unixware ;;
3160 *-sysv5uw* ) opsys=unixware ;;
3161 *-sysv5OpenUNIX* ) opsys=unixware ;;
3162 *-sysv4.1* | *-sysvr4.1* )
3163 NON_GNU_CPP=/usr/lib/cpp
3164 opsys=usg5-4 ;;
3165 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3166 if [ x$NON_GNU_CPP = x ]; then
3167 if [ -f /usr/ccs/lib/cpp ]; then
3168 NON_GNU_CPP=/usr/ccs/lib/cpp
3169 else
3170 NON_GNU_CPP=/lib/cpp
3171 fi
3172 fi
3173 opsys=usg5-4-2 ;;
3174 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3175 * )
3176 unported=yes
3177 ;;
3178 esac
3179 fi
3180
3181
3182
3183 if test $unported = yes; then
3184 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3185 Check \`etc/MACHINES' for recognized configuration names." >&5
3186 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3187 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3188 { (exit 1); exit 1; }; }
3189 fi
3190
3191 machfile="m/${machine}.h"
3192 opsysfile="s/${opsys}.h"
3193
3194
3195 #### Choose a compiler.
3196 test -n "$CC" && cc_specified=yes
3197
3198 # Save the value of CFLAGS that the user specified.
3199 SPECIFIED_CFLAGS="$CFLAGS"
3200
3201 case ${with_gcc} in
3202 "yes" ) CC="gcc" GCC=yes ;;
3203 "no" ) : ${CC=cc} ;;
3204 * )
3205 esac
3206 ac_ext=c
3207 ac_cpp='$CPP $CPPFLAGS'
3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 if test -n "$ac_tool_prefix"; then
3212 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3213 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3216 if test "${ac_cv_prog_CC+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 else
3219 if test -n "$CC"; then
3220 ac_cv_prog_CC="$CC" # Let the user override the test.
3221 else
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 for as_dir in $PATH
3224 do
3225 IFS=$as_save_IFS
3226 test -z "$as_dir" && as_dir=.
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3229 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3231 break 2
3232 fi
3233 done
3234 done
3235 IFS=$as_save_IFS
3236
3237 fi
3238 fi
3239 CC=$ac_cv_prog_CC
3240 if test -n "$CC"; then
3241 { echo "$as_me:$LINENO: result: $CC" >&5
3242 echo "${ECHO_T}$CC" >&6; }
3243 else
3244 { echo "$as_me:$LINENO: result: no" >&5
3245 echo "${ECHO_T}no" >&6; }
3246 fi
3247
3248
3249 fi
3250 if test -z "$ac_cv_prog_CC"; then
3251 ac_ct_CC=$CC
3252 # Extract the first word of "gcc", so it can be a program name with args.
3253 set dummy gcc; ac_word=$2
3254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3256 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259 if test -n "$ac_ct_CC"; then
3260 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3261 else
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $PATH
3264 do
3265 IFS=$as_save_IFS
3266 test -z "$as_dir" && as_dir=.
3267 for ac_exec_ext in '' $ac_executable_extensions; do
3268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3269 ac_cv_prog_ac_ct_CC="gcc"
3270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3271 break 2
3272 fi
3273 done
3274 done
3275 IFS=$as_save_IFS
3276
3277 fi
3278 fi
3279 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3280 if test -n "$ac_ct_CC"; then
3281 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3282 echo "${ECHO_T}$ac_ct_CC" >&6; }
3283 else
3284 { echo "$as_me:$LINENO: result: no" >&5
3285 echo "${ECHO_T}no" >&6; }
3286 fi
3287
3288 if test "x$ac_ct_CC" = x; then
3289 CC=""
3290 else
3291 case $cross_compiling:$ac_tool_warned in
3292 yes:)
3293 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3294 whose name does not start with the host triplet. If you think this
3295 configuration is useful to you, please write to autoconf@gnu.org." >&5
3296 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3297 whose name does not start with the host triplet. If you think this
3298 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3299 ac_tool_warned=yes ;;
3300 esac
3301 CC=$ac_ct_CC
3302 fi
3303 else
3304 CC="$ac_cv_prog_CC"
3305 fi
3306
3307 if test -z "$CC"; then
3308 if test -n "$ac_tool_prefix"; then
3309 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3310 set dummy ${ac_tool_prefix}cc; ac_word=$2
3311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3313 if test "${ac_cv_prog_CC+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316 if test -n "$CC"; then
3317 ac_cv_prog_CC="$CC" # Let the user override the test.
3318 else
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3321 do
3322 IFS=$as_save_IFS
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3326 ac_cv_prog_CC="${ac_tool_prefix}cc"
3327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 break 2
3329 fi
3330 done
3331 done
3332 IFS=$as_save_IFS
3333
3334 fi
3335 fi
3336 CC=$ac_cv_prog_CC
3337 if test -n "$CC"; then
3338 { echo "$as_me:$LINENO: result: $CC" >&5
3339 echo "${ECHO_T}$CC" >&6; }
3340 else
3341 { echo "$as_me:$LINENO: result: no" >&5
3342 echo "${ECHO_T}no" >&6; }
3343 fi
3344
3345
3346 fi
3347 fi
3348 if test -z "$CC"; then
3349 # Extract the first word of "cc", so it can be a program name with args.
3350 set dummy cc; ac_word=$2
3351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3353 if test "${ac_cv_prog_CC+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356 if test -n "$CC"; then
3357 ac_cv_prog_CC="$CC" # Let the user override the test.
3358 else
3359 ac_prog_rejected=no
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3362 do
3363 IFS=$as_save_IFS
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3367 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3368 ac_prog_rejected=yes
3369 continue
3370 fi
3371 ac_cv_prog_CC="cc"
3372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 break 2
3374 fi
3375 done
3376 done
3377 IFS=$as_save_IFS
3378
3379 if test $ac_prog_rejected = yes; then
3380 # We found a bogon in the path, so make sure we never use it.
3381 set dummy $ac_cv_prog_CC
3382 shift
3383 if test $# != 0; then
3384 # We chose a different compiler from the bogus one.
3385 # However, it has the same basename, so the bogon will be chosen
3386 # first if we set CC to just the basename; use the full file name.
3387 shift
3388 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3389 fi
3390 fi
3391 fi
3392 fi
3393 CC=$ac_cv_prog_CC
3394 if test -n "$CC"; then
3395 { echo "$as_me:$LINENO: result: $CC" >&5
3396 echo "${ECHO_T}$CC" >&6; }
3397 else
3398 { echo "$as_me:$LINENO: result: no" >&5
3399 echo "${ECHO_T}no" >&6; }
3400 fi
3401
3402
3403 fi
3404 if test -z "$CC"; then
3405 if test -n "$ac_tool_prefix"; then
3406 for ac_prog in cl.exe
3407 do
3408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3412 if test "${ac_cv_prog_CC+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415 if test -n "$CC"; then
3416 ac_cv_prog_CC="$CC" # Let the user override the test.
3417 else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3420 do
3421 IFS=$as_save_IFS
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 break 2
3428 fi
3429 done
3430 done
3431 IFS=$as_save_IFS
3432
3433 fi
3434 fi
3435 CC=$ac_cv_prog_CC
3436 if test -n "$CC"; then
3437 { echo "$as_me:$LINENO: result: $CC" >&5
3438 echo "${ECHO_T}$CC" >&6; }
3439 else
3440 { echo "$as_me:$LINENO: result: no" >&5
3441 echo "${ECHO_T}no" >&6; }
3442 fi
3443
3444
3445 test -n "$CC" && break
3446 done
3447 fi
3448 if test -z "$CC"; then
3449 ac_ct_CC=$CC
3450 for ac_prog in cl.exe
3451 do
3452 # Extract the first word of "$ac_prog", so it can be a program name with args.
3453 set dummy $ac_prog; ac_word=$2
3454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3456 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 else
3459 if test -n "$ac_ct_CC"; then
3460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3461 else
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 for as_dir in $PATH
3464 do
3465 IFS=$as_save_IFS
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469 ac_cv_prog_ac_ct_CC="$ac_prog"
3470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 break 2
3472 fi
3473 done
3474 done
3475 IFS=$as_save_IFS
3476
3477 fi
3478 fi
3479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3480 if test -n "$ac_ct_CC"; then
3481 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3482 echo "${ECHO_T}$ac_ct_CC" >&6; }
3483 else
3484 { echo "$as_me:$LINENO: result: no" >&5
3485 echo "${ECHO_T}no" >&6; }
3486 fi
3487
3488
3489 test -n "$ac_ct_CC" && break
3490 done
3491
3492 if test "x$ac_ct_CC" = x; then
3493 CC=""
3494 else
3495 case $cross_compiling:$ac_tool_warned in
3496 yes:)
3497 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3498 whose name does not start with the host triplet. If you think this
3499 configuration is useful to you, please write to autoconf@gnu.org." >&5
3500 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3501 whose name does not start with the host triplet. If you think this
3502 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3503 ac_tool_warned=yes ;;
3504 esac
3505 CC=$ac_ct_CC
3506 fi
3507 fi
3508
3509 fi
3510
3511
3512 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3513 See \`config.log' for more details." >&5
3514 echo "$as_me: error: no acceptable C compiler found in \$PATH
3515 See \`config.log' for more details." >&2;}
3516 { (exit 1); exit 1; }; }
3517
3518 # Provide some information about the compiler.
3519 echo "$as_me:$LINENO: checking for C compiler version" >&5
3520 ac_compiler=`set X $ac_compile; echo $2`
3521 { (ac_try="$ac_compiler --version >&5"
3522 case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525 esac
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527 (eval "$ac_compiler --version >&5") 2>&5
3528 ac_status=$?
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }
3531 { (ac_try="$ac_compiler -v >&5"
3532 case "(($ac_try" in
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3535 esac
3536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3537 (eval "$ac_compiler -v >&5") 2>&5
3538 ac_status=$?
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }
3541 { (ac_try="$ac_compiler -V >&5"
3542 case "(($ac_try" in
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3545 esac
3546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547 (eval "$ac_compiler -V >&5") 2>&5
3548 ac_status=$?
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }
3551
3552 cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h. */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3558
3559 int
3560 main ()
3561 {
3562
3563 ;
3564 return 0;
3565 }
3566 _ACEOF
3567 ac_clean_files_save=$ac_clean_files
3568 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3569 # Try to create an executable without -o first, disregard a.out.
3570 # It will help us diagnose broken compilers, and finding out an intuition
3571 # of exeext.
3572 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3573 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3574 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3575 #
3576 # List of possible output files, starting from the most likely.
3577 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3578 # only as a last resort. b.out is created by i960 compilers.
3579 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3580 #
3581 # The IRIX 6 linker writes into existing files which may not be
3582 # executable, retaining their permissions. Remove them first so a
3583 # subsequent execution test works.
3584 ac_rmfiles=
3585 for ac_file in $ac_files
3586 do
3587 case $ac_file in
3588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3589 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3590 esac
3591 done
3592 rm -f $ac_rmfiles
3593
3594 if { (ac_try="$ac_link_default"
3595 case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598 esac
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_link_default") 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; then
3604 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3605 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3606 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3607 # so that the user can short-circuit this test for compilers unknown to
3608 # Autoconf.
3609 for ac_file in $ac_files ''
3610 do
3611 test -f "$ac_file" || continue
3612 case $ac_file in
3613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3614 ;;
3615 [ab].out )
3616 # We found the default executable, but exeext='' is most
3617 # certainly right.
3618 break;;
3619 *.* )
3620 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3621 then :; else
3622 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3623 fi
3624 # We set ac_cv_exeext here because the later test for it is not
3625 # safe: cross compilers may not add the suffix if given an `-o'
3626 # argument, so we may need to know it at that point already.
3627 # Even if this section looks crufty: it has the advantage of
3628 # actually working.
3629 break;;
3630 * )
3631 break;;
3632 esac
3633 done
3634 test "$ac_cv_exeext" = no && ac_cv_exeext=
3635
3636 else
3637 ac_file=''
3638 fi
3639
3640 { echo "$as_me:$LINENO: result: $ac_file" >&5
3641 echo "${ECHO_T}$ac_file" >&6; }
3642 if test -z "$ac_file"; then
3643 echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3645
3646 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3647 See \`config.log' for more details." >&5
3648 echo "$as_me: error: C compiler cannot create executables
3649 See \`config.log' for more details." >&2;}
3650 { (exit 77); exit 77; }; }
3651 fi
3652
3653 ac_exeext=$ac_cv_exeext
3654
3655 # Check that the compiler produces executables we can run. If not, either
3656 # the compiler is broken, or we cross compile.
3657 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3658 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3659 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3660 # If not cross compiling, check that we can run a simple program.
3661 if test "$cross_compiling" != yes; then
3662 if { ac_try='./$ac_file'
3663 { (case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3666 esac
3667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3668 (eval "$ac_try") 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; }; then
3672 cross_compiling=no
3673 else
3674 if test "$cross_compiling" = maybe; then
3675 cross_compiling=yes
3676 else
3677 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3678 If you meant to cross compile, use \`--host'.
3679 See \`config.log' for more details." >&5
3680 echo "$as_me: error: cannot run C compiled programs.
3681 If you meant to cross compile, use \`--host'.
3682 See \`config.log' for more details." >&2;}
3683 { (exit 1); exit 1; }; }
3684 fi
3685 fi
3686 fi
3687 { echo "$as_me:$LINENO: result: yes" >&5
3688 echo "${ECHO_T}yes" >&6; }
3689
3690 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3691 ac_clean_files=$ac_clean_files_save
3692 # Check that the compiler produces executables we can run. If not, either
3693 # the compiler is broken, or we cross compile.
3694 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3695 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3696 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3697 echo "${ECHO_T}$cross_compiling" >&6; }
3698
3699 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3700 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3701 if { (ac_try="$ac_link"
3702 case "(($ac_try" in
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3705 esac
3706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3707 (eval "$ac_link") 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; then
3711 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3712 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3713 # work properly (i.e., refer to `conftest.exe'), while it won't with
3714 # `rm'.
3715 for ac_file in conftest.exe conftest conftest.*; do
3716 test -f "$ac_file" || continue
3717 case $ac_file in
3718 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3719 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3720 break;;
3721 * ) break;;
3722 esac
3723 done
3724 else
3725 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3726 See \`config.log' for more details." >&5
3727 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3728 See \`config.log' for more details." >&2;}
3729 { (exit 1); exit 1; }; }
3730 fi
3731
3732 rm -f conftest$ac_cv_exeext
3733 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3734 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3735
3736 rm -f conftest.$ac_ext
3737 EXEEXT=$ac_cv_exeext
3738 ac_exeext=$EXEEXT
3739 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3740 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3741 if test "${ac_cv_objext+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 else
3744 cat >conftest.$ac_ext <<_ACEOF
3745 /* confdefs.h. */
3746 _ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3750
3751 int
3752 main ()
3753 {
3754
3755 ;
3756 return 0;
3757 }
3758 _ACEOF
3759 rm -f conftest.o conftest.obj
3760 if { (ac_try="$ac_compile"
3761 case "(($ac_try" in
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3764 esac
3765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3766 (eval "$ac_compile") 2>&5
3767 ac_status=$?
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); }; then
3770 for ac_file in conftest.o conftest.obj conftest.*; do
3771 test -f "$ac_file" || continue;
3772 case $ac_file in
3773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3774 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3775 break;;
3776 esac
3777 done
3778 else
3779 echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3781
3782 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3783 See \`config.log' for more details." >&5
3784 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3785 See \`config.log' for more details." >&2;}
3786 { (exit 1); exit 1; }; }
3787 fi
3788
3789 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3790 fi
3791 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3792 echo "${ECHO_T}$ac_cv_objext" >&6; }
3793 OBJEXT=$ac_cv_objext
3794 ac_objext=$OBJEXT
3795 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3796 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3797 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 else
3800 cat >conftest.$ac_ext <<_ACEOF
3801 /* confdefs.h. */
3802 _ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h. */
3806
3807 int
3808 main ()
3809 {
3810 #ifndef __GNUC__
3811 choke me
3812 #endif
3813
3814 ;
3815 return 0;
3816 }
3817 _ACEOF
3818 rm -f conftest.$ac_objext
3819 if { (ac_try="$ac_compile"
3820 case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3823 esac
3824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3825 (eval "$ac_compile") 2>conftest.er1
3826 ac_status=$?
3827 grep -v '^ *+' conftest.er1 >conftest.err
3828 rm -f conftest.er1
3829 cat conftest.err >&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); } && {
3832 test -z "$ac_c_werror_flag" ||
3833 test ! -s conftest.err
3834 } && test -s conftest.$ac_objext; then
3835 ac_compiler_gnu=yes
3836 else
3837 echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3839
3840 ac_compiler_gnu=no
3841 fi
3842
3843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3844 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3845
3846 fi
3847 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3848 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3849 GCC=`test $ac_compiler_gnu = yes && echo yes`
3850 ac_test_CFLAGS=${CFLAGS+set}
3851 ac_save_CFLAGS=$CFLAGS
3852 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3853 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3854 if test "${ac_cv_prog_cc_g+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857 ac_save_c_werror_flag=$ac_c_werror_flag
3858 ac_c_werror_flag=yes
3859 ac_cv_prog_cc_g=no
3860 CFLAGS="-g"
3861 cat >conftest.$ac_ext <<_ACEOF
3862 /* confdefs.h. */
3863 _ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3867
3868 int
3869 main ()
3870 {
3871
3872 ;
3873 return 0;
3874 }
3875 _ACEOF
3876 rm -f conftest.$ac_objext
3877 if { (ac_try="$ac_compile"
3878 case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881 esac
3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_compile") 2>conftest.er1
3884 ac_status=$?
3885 grep -v '^ *+' conftest.er1 >conftest.err
3886 rm -f conftest.er1
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } && {
3890 test -z "$ac_c_werror_flag" ||
3891 test ! -s conftest.err
3892 } && test -s conftest.$ac_objext; then
3893 ac_cv_prog_cc_g=yes
3894 else
3895 echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3897
3898 CFLAGS=""
3899 cat >conftest.$ac_ext <<_ACEOF
3900 /* confdefs.h. */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3905
3906 int
3907 main ()
3908 {
3909
3910 ;
3911 return 0;
3912 }
3913 _ACEOF
3914 rm -f conftest.$ac_objext
3915 if { (ac_try="$ac_compile"
3916 case "(($ac_try" in
3917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3919 esac
3920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3921 (eval "$ac_compile") 2>conftest.er1
3922 ac_status=$?
3923 grep -v '^ *+' conftest.er1 >conftest.err
3924 rm -f conftest.er1
3925 cat conftest.err >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } && {
3928 test -z "$ac_c_werror_flag" ||
3929 test ! -s conftest.err
3930 } && test -s conftest.$ac_objext; then
3931 :
3932 else
3933 echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3935
3936 ac_c_werror_flag=$ac_save_c_werror_flag
3937 CFLAGS="-g"
3938 cat >conftest.$ac_ext <<_ACEOF
3939 /* confdefs.h. */
3940 _ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h. */
3944
3945 int
3946 main ()
3947 {
3948
3949 ;
3950 return 0;
3951 }
3952 _ACEOF
3953 rm -f conftest.$ac_objext
3954 if { (ac_try="$ac_compile"
3955 case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958 esac
3959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960 (eval "$ac_compile") 2>conftest.er1
3961 ac_status=$?
3962 grep -v '^ *+' conftest.er1 >conftest.err
3963 rm -f conftest.er1
3964 cat conftest.err >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); } && {
3967 test -z "$ac_c_werror_flag" ||
3968 test ! -s conftest.err
3969 } && test -s conftest.$ac_objext; then
3970 ac_cv_prog_cc_g=yes
3971 else
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3974
3975
3976 fi
3977
3978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979 fi
3980
3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982 fi
3983
3984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985 ac_c_werror_flag=$ac_save_c_werror_flag
3986 fi
3987 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3988 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3989 if test "$ac_test_CFLAGS" = set; then
3990 CFLAGS=$ac_save_CFLAGS
3991 elif test $ac_cv_prog_cc_g = yes; then
3992 if test "$GCC" = yes; then
3993 CFLAGS="-g -O2"
3994 else
3995 CFLAGS="-g"
3996 fi
3997 else
3998 if test "$GCC" = yes; then
3999 CFLAGS="-O2"
4000 else
4001 CFLAGS=
4002 fi
4003 fi
4004 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4005 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4006 if test "${ac_cv_prog_cc_c89+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009 ac_cv_prog_cc_c89=no
4010 ac_save_CC=$CC
4011 cat >conftest.$ac_ext <<_ACEOF
4012 /* confdefs.h. */
4013 _ACEOF
4014 cat confdefs.h >>conftest.$ac_ext
4015 cat >>conftest.$ac_ext <<_ACEOF
4016 /* end confdefs.h. */
4017 #include <stdarg.h>
4018 #include <stdio.h>
4019 #include <sys/types.h>
4020 #include <sys/stat.h>
4021 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4022 struct buf { int x; };
4023 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4024 static char *e (p, i)
4025 char **p;
4026 int i;
4027 {
4028 return p[i];
4029 }
4030 static char *f (char * (*g) (char **, int), char **p, ...)
4031 {
4032 char *s;
4033 va_list v;
4034 va_start (v,p);
4035 s = g (p, va_arg (v,int));
4036 va_end (v);
4037 return s;
4038 }
4039
4040 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4041 function prototypes and stuff, but not '\xHH' hex character constants.
4042 These don't provoke an error unfortunately, instead are silently treated
4043 as 'x'. The following induces an error, until -std is added to get
4044 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4045 array size at least. It's necessary to write '\x00'==0 to get something
4046 that's true only with -std. */
4047 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4048
4049 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4050 inside strings and character constants. */
4051 #define FOO(x) 'x'
4052 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4053
4054 int test (int i, double x);
4055 struct s1 {int (*f) (int a);};
4056 struct s2 {int (*f) (double a);};
4057 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4058 int argc;
4059 char **argv;
4060 int
4061 main ()
4062 {
4063 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4064 ;
4065 return 0;
4066 }
4067 _ACEOF
4068 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4069 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4070 do
4071 CC="$ac_save_CC $ac_arg"
4072 rm -f conftest.$ac_objext
4073 if { (ac_try="$ac_compile"
4074 case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077 esac
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_compile") 2>conftest.er1
4080 ac_status=$?
4081 grep -v '^ *+' conftest.er1 >conftest.err
4082 rm -f conftest.er1
4083 cat conftest.err >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } && {
4086 test -z "$ac_c_werror_flag" ||
4087 test ! -s conftest.err
4088 } && test -s conftest.$ac_objext; then
4089 ac_cv_prog_cc_c89=$ac_arg
4090 else
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4093
4094
4095 fi
4096
4097 rm -f core conftest.err conftest.$ac_objext
4098 test "x$ac_cv_prog_cc_c89" != "xno" && break
4099 done
4100 rm -f conftest.$ac_ext
4101 CC=$ac_save_CC
4102
4103 fi
4104 # AC_CACHE_VAL
4105 case "x$ac_cv_prog_cc_c89" in
4106 x)
4107 { echo "$as_me:$LINENO: result: none needed" >&5
4108 echo "${ECHO_T}none needed" >&6; } ;;
4109 xno)
4110 { echo "$as_me:$LINENO: result: unsupported" >&5
4111 echo "${ECHO_T}unsupported" >&6; } ;;
4112 *)
4113 CC="$CC $ac_cv_prog_cc_c89"
4114 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4115 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4116 esac
4117
4118
4119 ac_ext=c
4120 ac_cpp='$CPP $CPPFLAGS'
4121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4124
4125
4126 # On Suns, sometimes $CPP names a directory.
4127 if test -n "$CPP" && test -d "$CPP"; then
4128 CPP=
4129 fi
4130
4131 #### Some systems specify a CPP to use unless we are using GCC.
4132 #### Now that we know whether we are using GCC, we can decide whether
4133 #### to use that one.
4134 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4135 then
4136 CPP="$NON_GNU_CPP"
4137 fi
4138
4139 #### Some systems specify a CC to use unless we are using GCC.
4140 #### Now that we know whether we are using GCC, we can decide whether
4141 #### to use that one.
4142 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4143 test x$cc_specified != xyes
4144 then
4145 CC="$NON_GNU_CC"
4146 fi
4147
4148 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4149 then
4150 CC="$CC $GCC_TEST_OPTIONS"
4151 fi
4152
4153 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4154 then
4155 CC="$CC $NON_GCC_TEST_OPTIONS"
4156 fi
4157
4158
4159 ac_ext=c
4160 ac_cpp='$CPP $CPPFLAGS'
4161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4164 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4165 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4166 # On Suns, sometimes $CPP names a directory.
4167 if test -n "$CPP" && test -d "$CPP"; then
4168 CPP=
4169 fi
4170 if test -z "$CPP"; then
4171 if test "${ac_cv_prog_CPP+set}" = set; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 else
4174 # Double quotes because CPP needs to be expanded
4175 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4176 do
4177 ac_preproc_ok=false
4178 for ac_c_preproc_warn_flag in '' yes
4179 do
4180 # Use a header file that comes with gcc, so configuring glibc
4181 # with a fresh cross-compiler works.
4182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4183 # <limits.h> exists even on freestanding compilers.
4184 # On the NeXT, cc -E runs the code through the compiler's parser,
4185 # not just through cpp. "Syntax error" is here to catch this case.
4186 cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h. */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4192 #ifdef __STDC__
4193 # include <limits.h>
4194 #else
4195 # include <assert.h>
4196 #endif
4197 Syntax error
4198 _ACEOF
4199 if { (ac_try="$ac_cpp conftest.$ac_ext"
4200 case "(($ac_try" in
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4203 esac
4204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4206 ac_status=$?
4207 grep -v '^ *+' conftest.er1 >conftest.err
4208 rm -f conftest.er1
4209 cat conftest.err >&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); } >/dev/null && {
4212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4213 test ! -s conftest.err
4214 }; then
4215 :
4216 else
4217 echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4219
4220 # Broken: fails on valid input.
4221 continue
4222 fi
4223
4224 rm -f conftest.err conftest.$ac_ext
4225
4226 # OK, works on sane cases. Now check whether nonexistent headers
4227 # can be detected and how.
4228 cat >conftest.$ac_ext <<_ACEOF
4229 /* confdefs.h. */
4230 _ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h. */
4234 #include <ac_nonexistent.h>
4235 _ACEOF
4236 if { (ac_try="$ac_cpp conftest.$ac_ext"
4237 case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4240 esac
4241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4243 ac_status=$?
4244 grep -v '^ *+' conftest.er1 >conftest.err
4245 rm -f conftest.er1
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } >/dev/null && {
4249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4250 test ! -s conftest.err
4251 }; then
4252 # Broken: success on invalid input.
4253 continue
4254 else
4255 echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4257
4258 # Passes both tests.
4259 ac_preproc_ok=:
4260 break
4261 fi
4262
4263 rm -f conftest.err conftest.$ac_ext
4264
4265 done
4266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4267 rm -f conftest.err conftest.$ac_ext
4268 if $ac_preproc_ok; then
4269 break
4270 fi
4271
4272 done
4273 ac_cv_prog_CPP=$CPP
4274
4275 fi
4276 CPP=$ac_cv_prog_CPP
4277 else
4278 ac_cv_prog_CPP=$CPP
4279 fi
4280 { echo "$as_me:$LINENO: result: $CPP" >&5
4281 echo "${ECHO_T}$CPP" >&6; }
4282 ac_preproc_ok=false
4283 for ac_c_preproc_warn_flag in '' yes
4284 do
4285 # Use a header file that comes with gcc, so configuring glibc
4286 # with a fresh cross-compiler works.
4287 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4288 # <limits.h> exists even on freestanding compilers.
4289 # On the NeXT, cc -E runs the code through the compiler's parser,
4290 # not just through cpp. "Syntax error" is here to catch this case.
4291 cat >conftest.$ac_ext <<_ACEOF
4292 /* confdefs.h. */
4293 _ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h. */
4297 #ifdef __STDC__
4298 # include <limits.h>
4299 #else
4300 # include <assert.h>
4301 #endif
4302 Syntax error
4303 _ACEOF
4304 if { (ac_try="$ac_cpp conftest.$ac_ext"
4305 case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308 esac
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4311 ac_status=$?
4312 grep -v '^ *+' conftest.er1 >conftest.err
4313 rm -f conftest.er1
4314 cat conftest.err >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); } >/dev/null && {
4317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4318 test ! -s conftest.err
4319 }; then
4320 :
4321 else
4322 echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4324
4325 # Broken: fails on valid input.
4326 continue
4327 fi
4328
4329 rm -f conftest.err conftest.$ac_ext
4330
4331 # OK, works on sane cases. Now check whether nonexistent headers
4332 # can be detected and how.
4333 cat >conftest.$ac_ext <<_ACEOF
4334 /* confdefs.h. */
4335 _ACEOF
4336 cat confdefs.h >>conftest.$ac_ext
4337 cat >>conftest.$ac_ext <<_ACEOF
4338 /* end confdefs.h. */
4339 #include <ac_nonexistent.h>
4340 _ACEOF
4341 if { (ac_try="$ac_cpp conftest.$ac_ext"
4342 case "(($ac_try" in
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4345 esac
4346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4348 ac_status=$?
4349 grep -v '^ *+' conftest.er1 >conftest.err
4350 rm -f conftest.er1
4351 cat conftest.err >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } >/dev/null && {
4354 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4355 test ! -s conftest.err
4356 }; then
4357 # Broken: success on invalid input.
4358 continue
4359 else
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4362
4363 # Passes both tests.
4364 ac_preproc_ok=:
4365 break
4366 fi
4367
4368 rm -f conftest.err conftest.$ac_ext
4369
4370 done
4371 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4372 rm -f conftest.err conftest.$ac_ext
4373 if $ac_preproc_ok; then
4374 :
4375 else
4376 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4377 See \`config.log' for more details." >&5
4378 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4379 See \`config.log' for more details." >&2;}
4380 { (exit 1); exit 1; }; }
4381 fi
4382
4383 ac_ext=c
4384 ac_cpp='$CPP $CPPFLAGS'
4385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4388
4389
4390 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4391 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4392 if test "${ac_cv_path_GREP+set}" = set; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 else
4395 # Extract the first word of "grep ggrep" to use in msg output
4396 if test -z "$GREP"; then
4397 set dummy grep ggrep; ac_prog_name=$2
4398 if test "${ac_cv_path_GREP+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401 ac_path_GREP_found=false
4402 # Loop through the user's path and test for each of PROGNAME-LIST
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4405 do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_prog in grep ggrep; do
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4411 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4412 # Check for GNU ac_path_GREP and select it if it is found.
4413 # Check for GNU $ac_path_GREP
4414 case `"$ac_path_GREP" --version 2>&1` in
4415 *GNU*)
4416 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4417 *)
4418 ac_count=0
4419 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4420 while :
4421 do
4422 cat "conftest.in" "conftest.in" >"conftest.tmp"
4423 mv "conftest.tmp" "conftest.in"
4424 cp "conftest.in" "conftest.nl"
4425 echo 'GREP' >> "conftest.nl"
4426 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4427 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4428 ac_count=`expr $ac_count + 1`
4429 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4430 # Best one so far, save it but keep looking for a better one
4431 ac_cv_path_GREP="$ac_path_GREP"
4432 ac_path_GREP_max=$ac_count
4433 fi
4434 # 10*(2^10) chars as input seems more than enough
4435 test $ac_count -gt 10 && break
4436 done
4437 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4438 esac
4439
4440
4441 $ac_path_GREP_found && break 3
4442 done
4443 done
4444
4445 done
4446 IFS=$as_save_IFS
4447
4448
4449 fi
4450
4451 GREP="$ac_cv_path_GREP"
4452 if test -z "$GREP"; then
4453 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4454 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4455 { (exit 1); exit 1; }; }
4456 fi
4457
4458 else
4459 ac_cv_path_GREP=$GREP
4460 fi
4461
4462
4463 fi
4464 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4465 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4466 GREP="$ac_cv_path_GREP"
4467
4468
4469 { echo "$as_me:$LINENO: checking for egrep" >&5
4470 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4471 if test "${ac_cv_path_EGREP+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 else
4474 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4475 then ac_cv_path_EGREP="$GREP -E"
4476 else
4477 # Extract the first word of "egrep" to use in msg output
4478 if test -z "$EGREP"; then
4479 set dummy egrep; ac_prog_name=$2
4480 if test "${ac_cv_path_EGREP+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483 ac_path_EGREP_found=false
4484 # Loop through the user's path and test for each of PROGNAME-LIST
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4487 do
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
4490 for ac_prog in egrep; do
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4493 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4494 # Check for GNU ac_path_EGREP and select it if it is found.
4495 # Check for GNU $ac_path_EGREP
4496 case `"$ac_path_EGREP" --version 2>&1` in
4497 *GNU*)
4498 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4499 *)
4500 ac_count=0
4501 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4502 while :
4503 do
4504 cat "conftest.in" "conftest.in" >"conftest.tmp"
4505 mv "conftest.tmp" "conftest.in"
4506 cp "conftest.in" "conftest.nl"
4507 echo 'EGREP' >> "conftest.nl"
4508 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4509 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4510 ac_count=`expr $ac_count + 1`
4511 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4512 # Best one so far, save it but keep looking for a better one
4513 ac_cv_path_EGREP="$ac_path_EGREP"
4514 ac_path_EGREP_max=$ac_count
4515 fi
4516 # 10*(2^10) chars as input seems more than enough
4517 test $ac_count -gt 10 && break
4518 done
4519 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4520 esac
4521
4522
4523 $ac_path_EGREP_found && break 3
4524 done
4525 done
4526
4527 done
4528 IFS=$as_save_IFS
4529
4530
4531 fi
4532
4533 EGREP="$ac_cv_path_EGREP"
4534 if test -z "$EGREP"; then
4535 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4536 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4537 { (exit 1); exit 1; }; }
4538 fi
4539
4540 else
4541 ac_cv_path_EGREP=$EGREP
4542 fi
4543
4544
4545 fi
4546 fi
4547 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4548 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4549 EGREP="$ac_cv_path_EGREP"
4550
4551
4552
4553 { echo "$as_me:$LINENO: checking for AIX" >&5
4554 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4555 cat >conftest.$ac_ext <<_ACEOF
4556 /* confdefs.h. */
4557 _ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h. */
4561 #ifdef _AIX
4562 yes
4563 #endif
4564
4565 _ACEOF
4566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4567 $EGREP "yes" >/dev/null 2>&1; then
4568 { echo "$as_me:$LINENO: result: yes" >&5
4569 echo "${ECHO_T}yes" >&6; }
4570 cat >>confdefs.h <<\_ACEOF
4571 #define _ALL_SOURCE 1
4572 _ACEOF
4573
4574 else
4575 { echo "$as_me:$LINENO: result: no" >&5
4576 echo "${ECHO_T}no" >&6; }
4577 fi
4578 rm -f conftest*
4579
4580
4581
4582 cat >>confdefs.h <<\_ACEOF
4583 #define _GNU_SOURCE 1
4584 _ACEOF
4585
4586
4587
4588 ### Use -Wno-pointer-sign if the compiler supports it
4589 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4590 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4591 SAVE_CFLAGS="$CFLAGS"
4592 CFLAGS="$CFLAGS -Wno-pointer-sign"
4593 cat >conftest.$ac_ext <<_ACEOF
4594 /* confdefs.h. */
4595 _ACEOF
4596 cat confdefs.h >>conftest.$ac_ext
4597 cat >>conftest.$ac_ext <<_ACEOF
4598 /* end confdefs.h. */
4599
4600 int
4601 main ()
4602 {
4603
4604 ;
4605 return 0;
4606 }
4607 _ACEOF
4608 rm -f conftest.$ac_objext
4609 if { (ac_try="$ac_compile"
4610 case "(($ac_try" in
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4613 esac
4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615 (eval "$ac_compile") 2>conftest.er1
4616 ac_status=$?
4617 grep -v '^ *+' conftest.er1 >conftest.err
4618 rm -f conftest.er1
4619 cat conftest.err >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } && {
4622 test -z "$ac_c_werror_flag" ||
4623 test ! -s conftest.err
4624 } && test -s conftest.$ac_objext; then
4625 has_option=yes
4626 else
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630 has_option=no
4631 fi
4632
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 if test $has_option = yes; then
4635 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4636 fi
4637 { echo "$as_me:$LINENO: result: $has_option" >&5
4638 echo "${ECHO_T}$has_option" >&6; }
4639 CFLAGS="$SAVE_CFLAGS"
4640 unset has_option
4641 unset SAVE_CFLAGS
4642
4643 #### Some other nice autoconf tests.
4644
4645 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4646 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4647 LN_S=$as_ln_s
4648 if test "$LN_S" = "ln -s"; then
4649 { echo "$as_me:$LINENO: result: yes" >&5
4650 echo "${ECHO_T}yes" >&6; }
4651 else
4652 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4653 echo "${ECHO_T}no, using $LN_S" >&6; }
4654 fi
4655
4656 ac_ext=c
4657 ac_cpp='$CPP $CPPFLAGS'
4658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4661 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4662 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4663 # On Suns, sometimes $CPP names a directory.
4664 if test -n "$CPP" && test -d "$CPP"; then
4665 CPP=
4666 fi
4667 if test -z "$CPP"; then
4668 if test "${ac_cv_prog_CPP+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4670 else
4671 # Double quotes because CPP needs to be expanded
4672 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4673 do
4674 ac_preproc_ok=false
4675 for ac_c_preproc_warn_flag in '' yes
4676 do
4677 # Use a header file that comes with gcc, so configuring glibc
4678 # with a fresh cross-compiler works.
4679 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4680 # <limits.h> exists even on freestanding compilers.
4681 # On the NeXT, cc -E runs the code through the compiler's parser,
4682 # not just through cpp. "Syntax error" is here to catch this case.
4683 cat >conftest.$ac_ext <<_ACEOF
4684 /* confdefs.h. */
4685 _ACEOF
4686 cat confdefs.h >>conftest.$ac_ext
4687 cat >>conftest.$ac_ext <<_ACEOF
4688 /* end confdefs.h. */
4689 #ifdef __STDC__
4690 # include <limits.h>
4691 #else
4692 # include <assert.h>
4693 #endif
4694 Syntax error
4695 _ACEOF
4696 if { (ac_try="$ac_cpp conftest.$ac_ext"
4697 case "(($ac_try" in
4698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699 *) ac_try_echo=$ac_try;;
4700 esac
4701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4703 ac_status=$?
4704 grep -v '^ *+' conftest.er1 >conftest.err
4705 rm -f conftest.er1
4706 cat conftest.err >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } >/dev/null && {
4709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4710 test ! -s conftest.err
4711 }; then
4712 :
4713 else
4714 echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4716
4717 # Broken: fails on valid input.
4718 continue
4719 fi
4720
4721 rm -f conftest.err conftest.$ac_ext
4722
4723 # OK, works on sane cases. Now check whether nonexistent headers
4724 # can be detected and how.
4725 cat >conftest.$ac_ext <<_ACEOF
4726 /* confdefs.h. */
4727 _ACEOF
4728 cat confdefs.h >>conftest.$ac_ext
4729 cat >>conftest.$ac_ext <<_ACEOF
4730 /* end confdefs.h. */
4731 #include <ac_nonexistent.h>
4732 _ACEOF
4733 if { (ac_try="$ac_cpp conftest.$ac_ext"
4734 case "(($ac_try" in
4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736 *) ac_try_echo=$ac_try;;
4737 esac
4738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4740 ac_status=$?
4741 grep -v '^ *+' conftest.er1 >conftest.err
4742 rm -f conftest.er1
4743 cat conftest.err >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } >/dev/null && {
4746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4747 test ! -s conftest.err
4748 }; then
4749 # Broken: success on invalid input.
4750 continue
4751 else
4752 echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4754
4755 # Passes both tests.
4756 ac_preproc_ok=:
4757 break
4758 fi
4759
4760 rm -f conftest.err conftest.$ac_ext
4761
4762 done
4763 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4764 rm -f conftest.err conftest.$ac_ext
4765 if $ac_preproc_ok; then
4766 break
4767 fi
4768
4769 done
4770 ac_cv_prog_CPP=$CPP
4771
4772 fi
4773 CPP=$ac_cv_prog_CPP
4774 else
4775 ac_cv_prog_CPP=$CPP
4776 fi
4777 { echo "$as_me:$LINENO: result: $CPP" >&5
4778 echo "${ECHO_T}$CPP" >&6; }
4779 ac_preproc_ok=false
4780 for ac_c_preproc_warn_flag in '' yes
4781 do
4782 # Use a header file that comes with gcc, so configuring glibc
4783 # with a fresh cross-compiler works.
4784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4785 # <limits.h> exists even on freestanding compilers.
4786 # On the NeXT, cc -E runs the code through the compiler's parser,
4787 # not just through cpp. "Syntax error" is here to catch this case.
4788 cat >conftest.$ac_ext <<_ACEOF
4789 /* confdefs.h. */
4790 _ACEOF
4791 cat confdefs.h >>conftest.$ac_ext
4792 cat >>conftest.$ac_ext <<_ACEOF
4793 /* end confdefs.h. */
4794 #ifdef __STDC__
4795 # include <limits.h>
4796 #else
4797 # include <assert.h>
4798 #endif
4799 Syntax error
4800 _ACEOF
4801 if { (ac_try="$ac_cpp conftest.$ac_ext"
4802 case "(($ac_try" in
4803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4804 *) ac_try_echo=$ac_try;;
4805 esac
4806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4808 ac_status=$?
4809 grep -v '^ *+' conftest.er1 >conftest.err
4810 rm -f conftest.er1
4811 cat conftest.err >&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } >/dev/null && {
4814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4815 test ! -s conftest.err
4816 }; then
4817 :
4818 else
4819 echo "$as_me: failed program was:" >&5
4820 sed 's/^/| /' conftest.$ac_ext >&5
4821
4822 # Broken: fails on valid input.
4823 continue
4824 fi
4825
4826 rm -f conftest.err conftest.$ac_ext
4827
4828 # OK, works on sane cases. Now check whether nonexistent headers
4829 # can be detected and how.
4830 cat >conftest.$ac_ext <<_ACEOF
4831 /* confdefs.h. */
4832 _ACEOF
4833 cat confdefs.h >>conftest.$ac_ext
4834 cat >>conftest.$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4836 #include <ac_nonexistent.h>
4837 _ACEOF
4838 if { (ac_try="$ac_cpp conftest.$ac_ext"
4839 case "(($ac_try" in
4840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4841 *) ac_try_echo=$ac_try;;
4842 esac
4843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4845 ac_status=$?
4846 grep -v '^ *+' conftest.er1 >conftest.err
4847 rm -f conftest.er1
4848 cat conftest.err >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); } >/dev/null && {
4851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4852 test ! -s conftest.err
4853 }; then
4854 # Broken: success on invalid input.
4855 continue
4856 else
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4859
4860 # Passes both tests.
4861 ac_preproc_ok=:
4862 break
4863 fi
4864
4865 rm -f conftest.err conftest.$ac_ext
4866
4867 done
4868 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4869 rm -f conftest.err conftest.$ac_ext
4870 if $ac_preproc_ok; then
4871 :
4872 else
4873 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4874 See \`config.log' for more details." >&5
4875 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4876 See \`config.log' for more details." >&2;}
4877 { (exit 1); exit 1; }; }
4878 fi
4879
4880 ac_ext=c
4881 ac_cpp='$CPP $CPPFLAGS'
4882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4885
4886 # Find a good install program. We prefer a C program (faster),
4887 # so one script is as good as another. But avoid the broken or
4888 # incompatible versions:
4889 # SysV /etc/install, /usr/sbin/install
4890 # SunOS /usr/etc/install
4891 # IRIX /sbin/install
4892 # AIX /bin/install
4893 # AmigaOS /C/install, which installs bootblocks on floppy discs
4894 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4895 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4896 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4897 # OS/2's system install, which has a completely different semantic
4898 # ./install, which can be erroneously created by make from ./install.sh.
4899 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4900 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4901 if test -z "$INSTALL"; then
4902 if test "${ac_cv_path_install+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 # Account for people who put trailing slashes in PATH elements.
4911 case $as_dir/ in
4912 ./ | .// | /cC/* | \
4913 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4914 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4915 /usr/ucb/* ) ;;
4916 *)
4917 # OSF1 and SCO ODT 3.0 have their own names for install.
4918 # Don't use installbsd from OSF since it installs stuff as root
4919 # by default.
4920 for ac_prog in ginstall scoinst install; do
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4923 if test $ac_prog = install &&
4924 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4925 # AIX install. It has an incompatible calling convention.
4926 :
4927 elif test $ac_prog = install &&
4928 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4929 # program-specific install script used by HP pwplus--don't use.
4930 :
4931 else
4932 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4933 break 3
4934 fi
4935 fi
4936 done
4937 done
4938 ;;
4939 esac
4940 done
4941 IFS=$as_save_IFS
4942
4943
4944 fi
4945 if test "${ac_cv_path_install+set}" = set; then
4946 INSTALL=$ac_cv_path_install
4947 else
4948 # As a last resort, use the slow shell script. Don't cache a
4949 # value for INSTALL within a source directory, because that will
4950 # break other packages using the cache if that directory is
4951 # removed, or if the value is a relative name.
4952 INSTALL=$ac_install_sh
4953 fi
4954 fi
4955 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4956 echo "${ECHO_T}$INSTALL" >&6; }
4957
4958 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4959 # It thinks the first close brace ends the variable substitution.
4960 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4961
4962 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4963
4964 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4965
4966 if test "x$RANLIB" = x; then
4967 if test -n "$ac_tool_prefix"; then
4968 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4969 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4972 if test "${ac_cv_prog_RANLIB+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975 if test -n "$RANLIB"; then
4976 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4980 do
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4985 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 break 2
4988 fi
4989 done
4990 done
4991 IFS=$as_save_IFS
4992
4993 fi
4994 fi
4995 RANLIB=$ac_cv_prog_RANLIB
4996 if test -n "$RANLIB"; then
4997 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4998 echo "${ECHO_T}$RANLIB" >&6; }
4999 else
5000 { echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6; }
5002 fi
5003
5004
5005 fi
5006 if test -z "$ac_cv_prog_RANLIB"; then
5007 ac_ct_RANLIB=$RANLIB
5008 # Extract the first word of "ranlib", so it can be a program name with args.
5009 set dummy ranlib; ac_word=$2
5010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5012 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5014 else
5015 if test -n "$ac_ct_RANLIB"; then
5016 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5017 else
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH
5020 do
5021 IFS=$as_save_IFS
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5025 ac_cv_prog_ac_ct_RANLIB="ranlib"
5026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 break 2
5028 fi
5029 done
5030 done
5031 IFS=$as_save_IFS
5032
5033 fi
5034 fi
5035 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5036 if test -n "$ac_ct_RANLIB"; then
5037 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5038 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5039 else
5040 { echo "$as_me:$LINENO: result: no" >&5
5041 echo "${ECHO_T}no" >&6; }
5042 fi
5043
5044 if test "x$ac_ct_RANLIB" = x; then
5045 RANLIB=":"
5046 else
5047 case $cross_compiling:$ac_tool_warned in
5048 yes:)
5049 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5050 whose name does not start with the host triplet. If you think this
5051 configuration is useful to you, please write to autoconf@gnu.org." >&5
5052 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5053 whose name does not start with the host triplet. If you think this
5054 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5055 ac_tool_warned=yes ;;
5056 esac
5057 RANLIB=$ac_ct_RANLIB
5058 fi
5059 else
5060 RANLIB="$ac_cv_prog_RANLIB"
5061 fi
5062
5063 fi
5064 # Extract the first word of "install-info", so it can be a program name with args.
5065 set dummy install-info; ac_word=$2
5066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5068 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 else
5071 case $INSTALL_INFO in
5072 [\\/]* | ?:[\\/]*)
5073 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5074 ;;
5075 *)
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH
5078 do
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5083 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 break 2
5086 fi
5087 done
5088 done
5089 IFS=$as_save_IFS
5090
5091 ;;
5092 esac
5093 fi
5094 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5095 if test -n "$INSTALL_INFO"; then
5096 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5097 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5098 else
5099 { echo "$as_me:$LINENO: result: no" >&5
5100 echo "${ECHO_T}no" >&6; }
5101 fi
5102
5103
5104 # Extract the first word of "install-info", so it can be a program name with args.
5105 set dummy install-info; ac_word=$2
5106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5108 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 else
5111 case $INSTALL_INFO in
5112 [\\/]* | ?:[\\/]*)
5113 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5114 ;;
5115 *)
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in /usr/sbin
5118 do
5119 IFS=$as_save_IFS
5120 test -z "$as_dir" && as_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5123 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 break 2
5126 fi
5127 done
5128 done
5129 IFS=$as_save_IFS
5130
5131 ;;
5132 esac
5133 fi
5134 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5135 if test -n "$INSTALL_INFO"; then
5136 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5137 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5138 else
5139 { echo "$as_me:$LINENO: result: no" >&5
5140 echo "${ECHO_T}no" >&6; }
5141 fi
5142
5143
5144 # Extract the first word of "install-info", so it can be a program name with args.
5145 set dummy install-info; ac_word=$2
5146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5148 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151 case $INSTALL_INFO in
5152 [\\/]* | ?:[\\/]*)
5153 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5154 ;;
5155 *)
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in /sbin
5158 do
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5163 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 break 2
5166 fi
5167 done
5168 done
5169 IFS=$as_save_IFS
5170
5171 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5172 ;;
5173 esac
5174 fi
5175 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5176 if test -n "$INSTALL_INFO"; then
5177 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5178 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5179 else
5180 { echo "$as_me:$LINENO: result: no" >&5
5181 echo "${ECHO_T}no" >&6; }
5182 fi
5183
5184
5185 # Extract the first word of "gzip", so it can be a program name with args.
5186 set dummy gzip; ac_word=$2
5187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5189 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5191 else
5192 case $GZIP_PROG in
5193 [\\/]* | ?:[\\/]*)
5194 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5195 ;;
5196 *)
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH
5199 do
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5204 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 break 2
5207 fi
5208 done
5209 done
5210 IFS=$as_save_IFS
5211
5212 ;;
5213 esac
5214 fi
5215 GZIP_PROG=$ac_cv_path_GZIP_PROG
5216 if test -n "$GZIP_PROG"; then
5217 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5218 echo "${ECHO_T}$GZIP_PROG" >&6; }
5219 else
5220 { echo "$as_me:$LINENO: result: no" >&5
5221 echo "${ECHO_T}no" >&6; }
5222 fi
5223
5224
5225
5226
5227 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5228 then
5229 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5230 fi
5231
5232 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5233 then
5234 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5235 fi
5236
5237
5238 late_LDFLAGS=$LDFLAGS
5239 if test "$GCC" = yes; then
5240 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5241 else
5242 LDFLAGS="$LDFLAGS -znocombreloc"
5243 fi
5244
5245 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5246 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5247 cat >conftest.$ac_ext <<_ACEOF
5248 main(){return 0;}
5249 _ACEOF
5250 rm -f conftest.$ac_objext conftest$ac_exeext
5251 if { (ac_try="$ac_link"
5252 case "(($ac_try" in
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5255 esac
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_link") 2>conftest.er1
5258 ac_status=$?
5259 grep -v '^ *+' conftest.er1 >conftest.err
5260 rm -f conftest.er1
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } && {
5264 test -z "$ac_c_werror_flag" ||
5265 test ! -s conftest.err
5266 } && test -s conftest$ac_exeext &&
5267 $as_test_x conftest$ac_exeext; then
5268 { echo "$as_me:$LINENO: result: yes" >&5
5269 echo "${ECHO_T}yes" >&6; }
5270 else
5271 echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5273
5274 LDFLAGS=$late_LDFLAGS
5275 { echo "$as_me:$LINENO: result: no" >&5
5276 echo "${ECHO_T}no" >&6; }
5277 fi
5278
5279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5280 conftest$ac_exeext conftest.$ac_ext
5281
5282 #### Extract some information from the operating system and machine files.
5283
5284 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5285 - which libraries the lib-src programs will want, and
5286 - whether the GNU malloc routines are usable..." >&5
5287 echo "$as_me: checking the machine- and system-dependent files to find out
5288 - which libraries the lib-src programs will want, and
5289 - whether the GNU malloc routines are usable..." >&6;}
5290
5291 ### First figure out CFLAGS (which we use for running the compiler here)
5292 ### and REAL_CFLAGS (which we use for real compilation).
5293 ### The two are the same except on a few systems, where they are made
5294 ### different to work around various lossages. For example,
5295 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5296 ### as implying static linking.
5297
5298 ### If the CFLAGS env var is specified, we use that value
5299 ### instead of the default.
5300
5301 ### It's not important that this name contain the PID; you can't run
5302 ### two configures in the same directory and have anything work
5303 ### anyway.
5304 tempcname="conftest.c"
5305
5306 echo '
5307 #include "'${srcdir}'/src/'${opsysfile}'"
5308 #include "'${srcdir}'/src/'${machfile}'"
5309 #ifndef LIBS_MACHINE
5310 #define LIBS_MACHINE
5311 #endif
5312 #ifndef LIBS_SYSTEM
5313 #define LIBS_SYSTEM
5314 #endif
5315 #ifndef C_SWITCH_SYSTEM
5316 #define C_SWITCH_SYSTEM
5317 #endif
5318 #ifndef C_SWITCH_MACHINE
5319 #define C_SWITCH_MACHINE
5320 #endif
5321 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5322 configure___ c_switch_system=C_SWITCH_SYSTEM
5323 configure___ c_switch_machine=C_SWITCH_MACHINE
5324
5325 #ifndef LIB_X11_LIB
5326 #define LIB_X11_LIB -lX11
5327 #endif
5328
5329 #ifndef LIBX11_MACHINE
5330 #define LIBX11_MACHINE
5331 #endif
5332
5333 #ifndef LIBX11_SYSTEM
5334 #define LIBX11_SYSTEM
5335 #endif
5336 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5337
5338 #ifdef UNEXEC
5339 configure___ unexec=UNEXEC
5340 #else
5341 configure___ unexec=unexec.o
5342 #endif
5343
5344 #ifdef SYSTEM_MALLOC
5345 configure___ system_malloc=yes
5346 #else
5347 configure___ system_malloc=no
5348 #endif
5349
5350 #ifdef USE_MMAP_FOR_BUFFERS
5351 configure___ use_mmap_for_buffers=yes
5352 #else
5353 configure___ use_mmap_for_buffers=no
5354 #endif
5355
5356 #ifndef C_DEBUG_SWITCH
5357 #define C_DEBUG_SWITCH -g
5358 #endif
5359
5360 #ifndef C_OPTIMIZE_SWITCH
5361 #ifdef __GNUC__
5362 #define C_OPTIMIZE_SWITCH -O2
5363 #else
5364 #define C_OPTIMIZE_SWITCH -O
5365 #endif
5366 #endif
5367
5368 #ifndef C_WARNINGS_SWITCH
5369 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5370 #endif
5371
5372 #ifndef LD_SWITCH_MACHINE
5373 #define LD_SWITCH_MACHINE
5374 #endif
5375
5376 #ifndef LD_SWITCH_SYSTEM
5377 #define LD_SWITCH_SYSTEM
5378 #endif
5379
5380 #ifndef LD_SWITCH_X_SITE_AUX
5381 #define LD_SWITCH_X_SITE_AUX
5382 #endif
5383
5384 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5385 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5386
5387 #ifdef THIS_IS_CONFIGURE
5388
5389 /* Get the CFLAGS for tests in configure. */
5390 #ifdef __GNUC__
5391 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5392 #else
5393 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5394 #endif
5395
5396 #else /* not THIS_IS_CONFIGURE */
5397
5398 /* Get the CFLAGS for real compilation. */
5399 #ifdef __GNUC__
5400 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5401 #else
5402 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5403 #endif
5404
5405 #endif /* not THIS_IS_CONFIGURE */
5406 ' > ${tempcname}
5407
5408 # The value of CPP is a quoted variable reference, so we need to do this
5409 # to get its actual value...
5410 CPP=`eval "echo $CPP"`
5411 eval `${CPP} -Isrc ${tempcname} \
5412 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5413 if test "x$SPECIFIED_CFLAGS" = x; then
5414 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5415 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5416 else
5417 REAL_CFLAGS="$CFLAGS"
5418 fi
5419 rm ${tempcname}
5420
5421 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5422
5423 ### Make sure subsequent tests use flags consistent with the build flags.
5424
5425 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5426 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5427 else
5428 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5429 fi
5430
5431
5432
5433 # Check whether --enable-largefile was given.
5434 if test "${enable_largefile+set}" = set; then
5435 enableval=$enable_largefile;
5436 fi
5437
5438 if test "$enable_largefile" != no; then
5439
5440 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5441 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5442 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5444 else
5445 ac_cv_sys_largefile_CC=no
5446 if test "$GCC" != yes; then
5447 ac_save_CC=$CC
5448 while :; do
5449 # IRIX 6.2 and later do not support large files by default,
5450 # so use the C compiler's -n32 option if that helps.
5451 cat >conftest.$ac_ext <<_ACEOF
5452 /* confdefs.h. */
5453 _ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5457 #include <sys/types.h>
5458 /* Check that off_t can represent 2**63 - 1 correctly.
5459 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5460 since some C++ compilers masquerading as C compilers
5461 incorrectly reject 9223372036854775807. */
5462 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5463 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5464 && LARGE_OFF_T % 2147483647 == 1)
5465 ? 1 : -1];
5466 int
5467 main ()
5468 {
5469
5470 ;
5471 return 0;
5472 }
5473 _ACEOF
5474 rm -f conftest.$ac_objext
5475 if { (ac_try="$ac_compile"
5476 case "(($ac_try" in
5477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5478 *) ac_try_echo=$ac_try;;
5479 esac
5480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5481 (eval "$ac_compile") 2>conftest.er1
5482 ac_status=$?
5483 grep -v '^ *+' conftest.er1 >conftest.err
5484 rm -f conftest.er1
5485 cat conftest.err >&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } && {
5488 test -z "$ac_c_werror_flag" ||
5489 test ! -s conftest.err
5490 } && test -s conftest.$ac_objext; then
5491 break
5492 else
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5495
5496
5497 fi
5498
5499 rm -f core conftest.err conftest.$ac_objext
5500 CC="$CC -n32"
5501 rm -f conftest.$ac_objext
5502 if { (ac_try="$ac_compile"
5503 case "(($ac_try" in
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5506 esac
5507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_compile") 2>conftest.er1
5509 ac_status=$?
5510 grep -v '^ *+' conftest.er1 >conftest.err
5511 rm -f conftest.er1
5512 cat conftest.err >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } && {
5515 test -z "$ac_c_werror_flag" ||
5516 test ! -s conftest.err
5517 } && test -s conftest.$ac_objext; then
5518 ac_cv_sys_largefile_CC=' -n32'; break
5519 else
5520 echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5522
5523
5524 fi
5525
5526 rm -f core conftest.err conftest.$ac_objext
5527 break
5528 done
5529 CC=$ac_save_CC
5530 rm -f conftest.$ac_ext
5531 fi
5532 fi
5533 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5534 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5535 if test "$ac_cv_sys_largefile_CC" != no; then
5536 CC=$CC$ac_cv_sys_largefile_CC
5537 fi
5538
5539 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5540 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5541 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5543 else
5544 while :; do
5545 cat >conftest.$ac_ext <<_ACEOF
5546 /* confdefs.h. */
5547 _ACEOF
5548 cat confdefs.h >>conftest.$ac_ext
5549 cat >>conftest.$ac_ext <<_ACEOF
5550 /* end confdefs.h. */
5551 #include <sys/types.h>
5552 /* Check that off_t can represent 2**63 - 1 correctly.
5553 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5554 since some C++ compilers masquerading as C compilers
5555 incorrectly reject 9223372036854775807. */
5556 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5557 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5558 && LARGE_OFF_T % 2147483647 == 1)
5559 ? 1 : -1];
5560 int
5561 main ()
5562 {
5563
5564 ;
5565 return 0;
5566 }
5567 _ACEOF
5568 rm -f conftest.$ac_objext
5569 if { (ac_try="$ac_compile"
5570 case "(($ac_try" in
5571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572 *) ac_try_echo=$ac_try;;
5573 esac
5574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575 (eval "$ac_compile") 2>conftest.er1
5576 ac_status=$?
5577 grep -v '^ *+' conftest.er1 >conftest.err
5578 rm -f conftest.er1
5579 cat conftest.err >&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } && {
5582 test -z "$ac_c_werror_flag" ||
5583 test ! -s conftest.err
5584 } && test -s conftest.$ac_objext; then
5585 ac_cv_sys_file_offset_bits=no; break
5586 else
5587 echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5589
5590
5591 fi
5592
5593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594 cat >conftest.$ac_ext <<_ACEOF
5595 /* confdefs.h. */
5596 _ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5600 #define _FILE_OFFSET_BITS 64
5601 #include <sys/types.h>
5602 /* Check that off_t can represent 2**63 - 1 correctly.
5603 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5604 since some C++ compilers masquerading as C compilers
5605 incorrectly reject 9223372036854775807. */
5606 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5607 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5608 && LARGE_OFF_T % 2147483647 == 1)
5609 ? 1 : -1];
5610 int
5611 main ()
5612 {
5613
5614 ;
5615 return 0;
5616 }
5617 _ACEOF
5618 rm -f conftest.$ac_objext
5619 if { (ac_try="$ac_compile"
5620 case "(($ac_try" in
5621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5622 *) ac_try_echo=$ac_try;;
5623 esac
5624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5625 (eval "$ac_compile") 2>conftest.er1
5626 ac_status=$?
5627 grep -v '^ *+' conftest.er1 >conftest.err
5628 rm -f conftest.er1
5629 cat conftest.err >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } && {
5632 test -z "$ac_c_werror_flag" ||
5633 test ! -s conftest.err
5634 } && test -s conftest.$ac_objext; then
5635 ac_cv_sys_file_offset_bits=64; break
5636 else
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5639
5640
5641 fi
5642
5643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5644 ac_cv_sys_file_offset_bits=unknown
5645 break
5646 done
5647 fi
5648 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5649 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5650 case $ac_cv_sys_file_offset_bits in #(
5651 no | unknown) ;;
5652 *)
5653 cat >>confdefs.h <<_ACEOF
5654 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5655 _ACEOF
5656 ;;
5657 esac
5658 rm -f conftest*
5659 if test $ac_cv_sys_file_offset_bits = unknown; then
5660 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5661 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5662 if test "${ac_cv_sys_large_files+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 else
5665 while :; do
5666 cat >conftest.$ac_ext <<_ACEOF
5667 /* confdefs.h. */
5668 _ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5672 #include <sys/types.h>
5673 /* Check that off_t can represent 2**63 - 1 correctly.
5674 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5675 since some C++ compilers masquerading as C compilers
5676 incorrectly reject 9223372036854775807. */
5677 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5678 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5679 && LARGE_OFF_T % 2147483647 == 1)
5680 ? 1 : -1];
5681 int
5682 main ()
5683 {
5684
5685 ;
5686 return 0;
5687 }
5688 _ACEOF
5689 rm -f conftest.$ac_objext
5690 if { (ac_try="$ac_compile"
5691 case "(($ac_try" in
5692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693 *) ac_try_echo=$ac_try;;
5694 esac
5695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5696 (eval "$ac_compile") 2>conftest.er1
5697 ac_status=$?
5698 grep -v '^ *+' conftest.er1 >conftest.err
5699 rm -f conftest.er1
5700 cat conftest.err >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } && {
5703 test -z "$ac_c_werror_flag" ||
5704 test ! -s conftest.err
5705 } && test -s conftest.$ac_objext; then
5706 ac_cv_sys_large_files=no; break
5707 else
5708 echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.$ac_ext >&5
5710
5711
5712 fi
5713
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715 cat >conftest.$ac_ext <<_ACEOF
5716 /* confdefs.h. */
5717 _ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5721 #define _LARGE_FILES 1
5722 #include <sys/types.h>
5723 /* Check that off_t can represent 2**63 - 1 correctly.
5724 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5725 since some C++ compilers masquerading as C compilers
5726 incorrectly reject 9223372036854775807. */
5727 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5728 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5729 && LARGE_OFF_T % 2147483647 == 1)
5730 ? 1 : -1];
5731 int
5732 main ()
5733 {
5734
5735 ;
5736 return 0;
5737 }
5738 _ACEOF
5739 rm -f conftest.$ac_objext
5740 if { (ac_try="$ac_compile"
5741 case "(($ac_try" in
5742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743 *) ac_try_echo=$ac_try;;
5744 esac
5745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5746 (eval "$ac_compile") 2>conftest.er1
5747 ac_status=$?
5748 grep -v '^ *+' conftest.er1 >conftest.err
5749 rm -f conftest.er1
5750 cat conftest.err >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } && {
5753 test -z "$ac_c_werror_flag" ||
5754 test ! -s conftest.err
5755 } && test -s conftest.$ac_objext; then
5756 ac_cv_sys_large_files=1; break
5757 else
5758 echo "$as_me: failed program was:" >&5
5759 sed 's/^/| /' conftest.$ac_ext >&5
5760
5761
5762 fi
5763
5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765 ac_cv_sys_large_files=unknown
5766 break
5767 done
5768 fi
5769 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5770 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5771 case $ac_cv_sys_large_files in #(
5772 no | unknown) ;;
5773 *)
5774 cat >>confdefs.h <<_ACEOF
5775 #define _LARGE_FILES $ac_cv_sys_large_files
5776 _ACEOF
5777 ;;
5778 esac
5779 rm -f conftest*
5780 fi
5781 fi
5782
5783
5784
5785 ### The standard library on x86-64 GNU/Linux distributions can
5786 ### be located in either /usr/lib64 or /usr/lib.
5787 case "${canonical}" in
5788 x86_64-*-linux-gnu* )
5789 if test -d /usr/lib64; then
5790
5791 cat >>confdefs.h <<\_ACEOF
5792 #define HAVE_X86_64_LIB64_DIR 1
5793 _ACEOF
5794
5795 fi
5796 esac
5797
5798
5799
5800
5801 if test "${with_sound}" != "no"; then
5802 # Sound support for GNU/Linux and the free BSDs.
5803 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5804 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5805 if test "${ac_cv_header_stdc+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808 cat >conftest.$ac_ext <<_ACEOF
5809 /* confdefs.h. */
5810 _ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5814 #include <stdlib.h>
5815 #include <stdarg.h>
5816 #include <string.h>
5817 #include <float.h>
5818
5819 int
5820 main ()
5821 {
5822
5823 ;
5824 return 0;
5825 }
5826 _ACEOF
5827 rm -f conftest.$ac_objext
5828 if { (ac_try="$ac_compile"
5829 case "(($ac_try" in
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5832 esac
5833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834 (eval "$ac_compile") 2>conftest.er1
5835 ac_status=$?
5836 grep -v '^ *+' conftest.er1 >conftest.err
5837 rm -f conftest.er1
5838 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } && {
5841 test -z "$ac_c_werror_flag" ||
5842 test ! -s conftest.err
5843 } && test -s conftest.$ac_objext; then
5844 ac_cv_header_stdc=yes
5845 else
5846 echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5848
5849 ac_cv_header_stdc=no
5850 fi
5851
5852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853
5854 if test $ac_cv_header_stdc = yes; then
5855 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5856 cat >conftest.$ac_ext <<_ACEOF
5857 /* confdefs.h. */
5858 _ACEOF
5859 cat confdefs.h >>conftest.$ac_ext
5860 cat >>conftest.$ac_ext <<_ACEOF
5861 /* end confdefs.h. */
5862 #include <string.h>
5863
5864 _ACEOF
5865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5866 $EGREP "memchr" >/dev/null 2>&1; then
5867 :
5868 else
5869 ac_cv_header_stdc=no
5870 fi
5871 rm -f conftest*
5872
5873 fi
5874
5875 if test $ac_cv_header_stdc = yes; then
5876 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5877 cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h. */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5883 #include <stdlib.h>
5884
5885 _ACEOF
5886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5887 $EGREP "free" >/dev/null 2>&1; then
5888 :
5889 else
5890 ac_cv_header_stdc=no
5891 fi
5892 rm -f conftest*
5893
5894 fi
5895
5896 if test $ac_cv_header_stdc = yes; then
5897 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5898 if test "$cross_compiling" = yes; then
5899 :
5900 else
5901 cat >conftest.$ac_ext <<_ACEOF
5902 /* confdefs.h. */
5903 _ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5907 #include <ctype.h>
5908 #include <stdlib.h>
5909 #if ((' ' & 0x0FF) == 0x020)
5910 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5911 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5912 #else
5913 # define ISLOWER(c) \
5914 (('a' <= (c) && (c) <= 'i') \
5915 || ('j' <= (c) && (c) <= 'r') \
5916 || ('s' <= (c) && (c) <= 'z'))
5917 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5918 #endif
5919
5920 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5921 int
5922 main ()
5923 {
5924 int i;
5925 for (i = 0; i < 256; i++)
5926 if (XOR (islower (i), ISLOWER (i))
5927 || toupper (i) != TOUPPER (i))
5928 return 2;
5929 return 0;
5930 }
5931 _ACEOF
5932 rm -f conftest$ac_exeext
5933 if { (ac_try="$ac_link"
5934 case "(($ac_try" in
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5937 esac
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_link") 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5943 { (case "(($ac_try" in
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5946 esac
5947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_try") 2>&5
5949 ac_status=$?
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; }; then
5952 :
5953 else
5954 echo "$as_me: program exited with status $ac_status" >&5
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5957
5958 ( exit $ac_status )
5959 ac_cv_header_stdc=no
5960 fi
5961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5962 fi
5963
5964
5965 fi
5966 fi
5967 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5968 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5969 if test $ac_cv_header_stdc = yes; then
5970
5971 cat >>confdefs.h <<\_ACEOF
5972 #define STDC_HEADERS 1
5973 _ACEOF
5974
5975 fi
5976
5977 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5988 inttypes.h stdint.h unistd.h
5989 do
5990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996 cat >conftest.$ac_ext <<_ACEOF
5997 /* confdefs.h. */
5998 _ACEOF
5999 cat confdefs.h >>conftest.$ac_ext
6000 cat >>conftest.$ac_ext <<_ACEOF
6001 /* end confdefs.h. */
6002 $ac_includes_default
6003
6004 #include <$ac_header>
6005 _ACEOF
6006 rm -f conftest.$ac_objext
6007 if { (ac_try="$ac_compile"
6008 case "(($ac_try" in
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6011 esac
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013 (eval "$ac_compile") 2>conftest.er1
6014 ac_status=$?
6015 grep -v '^ *+' conftest.er1 >conftest.err
6016 rm -f conftest.er1
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } && {
6020 test -z "$ac_c_werror_flag" ||
6021 test ! -s conftest.err
6022 } && test -s conftest.$ac_objext; then
6023 eval "$as_ac_Header=yes"
6024 else
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6027
6028 eval "$as_ac_Header=no"
6029 fi
6030
6031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6032 fi
6033 ac_res=`eval echo '${'$as_ac_Header'}'`
6034 { echo "$as_me:$LINENO: result: $ac_res" >&5
6035 echo "${ECHO_T}$ac_res" >&6; }
6036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6037 cat >>confdefs.h <<_ACEOF
6038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6039 _ACEOF
6040
6041 fi
6042
6043 done
6044
6045
6046
6047
6048
6049 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6050 do
6051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 fi
6058 ac_res=`eval echo '${'$as_ac_Header'}'`
6059 { echo "$as_me:$LINENO: result: $ac_res" >&5
6060 echo "${ECHO_T}$ac_res" >&6; }
6061 else
6062 # Is the header compilable?
6063 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6065 cat >conftest.$ac_ext <<_ACEOF
6066 /* confdefs.h. */
6067 _ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6071 $ac_includes_default
6072 #include <$ac_header>
6073 _ACEOF
6074 rm -f conftest.$ac_objext
6075 if { (ac_try="$ac_compile"
6076 case "(($ac_try" in
6077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6079 esac
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_compile") 2>conftest.er1
6082 ac_status=$?
6083 grep -v '^ *+' conftest.er1 >conftest.err
6084 rm -f conftest.er1
6085 cat conftest.err >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } && {
6088 test -z "$ac_c_werror_flag" ||
6089 test ! -s conftest.err
6090 } && test -s conftest.$ac_objext; then
6091 ac_header_compiler=yes
6092 else
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6095
6096 ac_header_compiler=no
6097 fi
6098
6099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6101 echo "${ECHO_T}$ac_header_compiler" >&6; }
6102
6103 # Is the header present?
6104 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6106 cat >conftest.$ac_ext <<_ACEOF
6107 /* confdefs.h. */
6108 _ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6112 #include <$ac_header>
6113 _ACEOF
6114 if { (ac_try="$ac_cpp conftest.$ac_ext"
6115 case "(($ac_try" in
6116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6117 *) ac_try_echo=$ac_try;;
6118 esac
6119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6121 ac_status=$?
6122 grep -v '^ *+' conftest.er1 >conftest.err
6123 rm -f conftest.er1
6124 cat conftest.err >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } >/dev/null && {
6127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6128 test ! -s conftest.err
6129 }; then
6130 ac_header_preproc=yes
6131 else
6132 echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.$ac_ext >&5
6134
6135 ac_header_preproc=no
6136 fi
6137
6138 rm -f conftest.err conftest.$ac_ext
6139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6140 echo "${ECHO_T}$ac_header_preproc" >&6; }
6141
6142 # So? What about this header?
6143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6144 yes:no: )
6145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6149 ac_header_preproc=yes
6150 ;;
6151 no:yes:* )
6152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6159 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6164
6165 ;;
6166 esac
6167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172 eval "$as_ac_Header=\$ac_header_preproc"
6173 fi
6174 ac_res=`eval echo '${'$as_ac_Header'}'`
6175 { echo "$as_me:$LINENO: result: $ac_res" >&5
6176 echo "${ECHO_T}$ac_res" >&6; }
6177
6178 fi
6179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6180 cat >>confdefs.h <<_ACEOF
6181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6182 _ACEOF
6183
6184 fi
6185
6186 done
6187
6188 # Emulation library used on NetBSD.
6189 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6190 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6191 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194 ac_check_lib_save_LIBS=$LIBS
6195 LIBS="-lossaudio $LIBS"
6196 cat >conftest.$ac_ext <<_ACEOF
6197 /* confdefs.h. */
6198 _ACEOF
6199 cat confdefs.h >>conftest.$ac_ext
6200 cat >>conftest.$ac_ext <<_ACEOF
6201 /* end confdefs.h. */
6202
6203 /* Override any GCC internal prototype to avoid an error.
6204 Use char because int might match the return type of a GCC
6205 builtin and then its argument prototype would still apply. */
6206 #ifdef __cplusplus
6207 extern "C"
6208 #endif
6209 char _oss_ioctl ();
6210 int
6211 main ()
6212 {
6213 return _oss_ioctl ();
6214 ;
6215 return 0;
6216 }
6217 _ACEOF
6218 rm -f conftest.$ac_objext conftest$ac_exeext
6219 if { (ac_try="$ac_link"
6220 case "(($ac_try" in
6221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6222 *) ac_try_echo=$ac_try;;
6223 esac
6224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6225 (eval "$ac_link") 2>conftest.er1
6226 ac_status=$?
6227 grep -v '^ *+' conftest.er1 >conftest.err
6228 rm -f conftest.er1
6229 cat conftest.err >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); } && {
6232 test -z "$ac_c_werror_flag" ||
6233 test ! -s conftest.err
6234 } && test -s conftest$ac_exeext &&
6235 $as_test_x conftest$ac_exeext; then
6236 ac_cv_lib_ossaudio__oss_ioctl=yes
6237 else
6238 echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.$ac_ext >&5
6240
6241 ac_cv_lib_ossaudio__oss_ioctl=no
6242 fi
6243
6244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6245 conftest$ac_exeext conftest.$ac_ext
6246 LIBS=$ac_check_lib_save_LIBS
6247 fi
6248 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6249 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6250 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6251 LIBSOUND=-lossaudio
6252 else
6253 LIBSOUND=
6254 fi
6255
6256
6257
6258 ALSA_REQUIRED=1.0.0
6259 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6260 if test "X${with_pkg_config_prog}" != X; then
6261 PKG_CONFIG="${with_pkg_config_prog}"
6262 fi
6263
6264 succeeded=no
6265
6266 if test -z "$PKG_CONFIG"; then
6267 # Extract the first word of "pkg-config", so it can be a program name with args.
6268 set dummy pkg-config; ac_word=$2
6269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6271 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 else
6274 case $PKG_CONFIG in
6275 [\\/]* | ?:[\\/]*)
6276 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6277 ;;
6278 *)
6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280 for as_dir in $PATH
6281 do
6282 IFS=$as_save_IFS
6283 test -z "$as_dir" && as_dir=.
6284 for ac_exec_ext in '' $ac_executable_extensions; do
6285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6286 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6288 break 2
6289 fi
6290 done
6291 done
6292 IFS=$as_save_IFS
6293
6294 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6295 ;;
6296 esac
6297 fi
6298 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6299 if test -n "$PKG_CONFIG"; then
6300 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6301 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6302 else
6303 { echo "$as_me:$LINENO: result: no" >&5
6304 echo "${ECHO_T}no" >&6; }
6305 fi
6306
6307
6308 fi
6309
6310 if test "$PKG_CONFIG" = "no" ; then
6311 HAVE_ALSA=no
6312 else
6313 PKG_CONFIG_MIN_VERSION=0.9.0
6314 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6315 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6316 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6317
6318 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6319 { echo "$as_me:$LINENO: result: yes" >&5
6320 echo "${ECHO_T}yes" >&6; }
6321 succeeded=yes
6322
6323 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6324 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6325 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6326 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6327 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6328
6329 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6330 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6331 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6332 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6333 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6334 else
6335 { echo "$as_me:$LINENO: result: no" >&5
6336 echo "${ECHO_T}no" >&6; }
6337 ALSA_CFLAGS=""
6338 ALSA_LIBS=""
6339 ## If we have a custom action on failure, don't print errors, but
6340 ## do set a variable so people can do so.
6341 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6342
6343 fi
6344
6345
6346
6347 else
6348 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6349 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6350 fi
6351 fi
6352
6353 if test $succeeded = yes; then
6354 HAVE_ALSA=yes
6355 else
6356 HAVE_ALSA=no
6357 fi
6358
6359 if test $HAVE_ALSA = yes; then
6360 SAVE_CFLAGS="$CFLAGS"
6361 SAVE_LDFLAGS="$LDFLAGS"
6362 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6363 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6364 cat >conftest.$ac_ext <<_ACEOF
6365 /* confdefs.h. */
6366 _ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 #include <asoundlib.h>
6371 int
6372 main ()
6373 {
6374 snd_lib_error_set_handler (0);
6375 ;
6376 return 0;
6377 }
6378 _ACEOF
6379 rm -f conftest.$ac_objext
6380 if { (ac_try="$ac_compile"
6381 case "(($ac_try" in
6382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6383 *) ac_try_echo=$ac_try;;
6384 esac
6385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6386 (eval "$ac_compile") 2>conftest.er1
6387 ac_status=$?
6388 grep -v '^ *+' conftest.er1 >conftest.err
6389 rm -f conftest.er1
6390 cat conftest.err >&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } && {
6393 test -z "$ac_c_werror_flag" ||
6394 test ! -s conftest.err
6395 } && test -s conftest.$ac_objext; then
6396 emacs_alsa_normal=yes
6397 else
6398 echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.$ac_ext >&5
6400
6401 emacs_alsa_normal=no
6402 fi
6403
6404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405 if test "$emacs_alsa_normal" != yes; then
6406 cat >conftest.$ac_ext <<_ACEOF
6407 /* confdefs.h. */
6408 _ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h. */
6412 #include <alsa/asoundlib.h>
6413 int
6414 main ()
6415 {
6416 snd_lib_error_set_handler (0);
6417 ;
6418 return 0;
6419 }
6420 _ACEOF
6421 rm -f conftest.$ac_objext
6422 if { (ac_try="$ac_compile"
6423 case "(($ac_try" in
6424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6425 *) ac_try_echo=$ac_try;;
6426 esac
6427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6428 (eval "$ac_compile") 2>conftest.er1
6429 ac_status=$?
6430 grep -v '^ *+' conftest.er1 >conftest.err
6431 rm -f conftest.er1
6432 cat conftest.err >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } && {
6435 test -z "$ac_c_werror_flag" ||
6436 test ! -s conftest.err
6437 } && test -s conftest.$ac_objext; then
6438 emacs_alsa_subdir=yes
6439 else
6440 echo "$as_me: failed program was:" >&5
6441 sed 's/^/| /' conftest.$ac_ext >&5
6442
6443 emacs_alsa_subdir=no
6444 fi
6445
6446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447 if test "$emacs_alsa_subdir" != yes; then
6448 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6449 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6450 { (exit 1); exit 1; }; }
6451 fi
6452 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6453 fi
6454
6455 CFLAGS="$SAVE_CFLAGS"
6456 LDFLAGS="$SAVE_LDFLAGS"
6457 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6458 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6459
6460 cat >>confdefs.h <<\_ACEOF
6461 #define HAVE_ALSA 1
6462 _ACEOF
6463
6464
6465 fi
6466
6467 fi
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6495 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6496 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6497 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6498 sys/utsname.h pwd.h
6499 do
6500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 fi
6507 ac_res=`eval echo '${'$as_ac_Header'}'`
6508 { echo "$as_me:$LINENO: result: $ac_res" >&5
6509 echo "${ECHO_T}$ac_res" >&6; }
6510 else
6511 # Is the header compilable?
6512 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6514 cat >conftest.$ac_ext <<_ACEOF
6515 /* confdefs.h. */
6516 _ACEOF
6517 cat confdefs.h >>conftest.$ac_ext
6518 cat >>conftest.$ac_ext <<_ACEOF
6519 /* end confdefs.h. */
6520 $ac_includes_default
6521 #include <$ac_header>
6522 _ACEOF
6523 rm -f conftest.$ac_objext
6524 if { (ac_try="$ac_compile"
6525 case "(($ac_try" in
6526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6527 *) ac_try_echo=$ac_try;;
6528 esac
6529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6530 (eval "$ac_compile") 2>conftest.er1
6531 ac_status=$?
6532 grep -v '^ *+' conftest.er1 >conftest.err
6533 rm -f conftest.er1
6534 cat conftest.err >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } && {
6537 test -z "$ac_c_werror_flag" ||
6538 test ! -s conftest.err
6539 } && test -s conftest.$ac_objext; then
6540 ac_header_compiler=yes
6541 else
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6544
6545 ac_header_compiler=no
6546 fi
6547
6548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6550 echo "${ECHO_T}$ac_header_compiler" >&6; }
6551
6552 # Is the header present?
6553 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6555 cat >conftest.$ac_ext <<_ACEOF
6556 /* confdefs.h. */
6557 _ACEOF
6558 cat confdefs.h >>conftest.$ac_ext
6559 cat >>conftest.$ac_ext <<_ACEOF
6560 /* end confdefs.h. */
6561 #include <$ac_header>
6562 _ACEOF
6563 if { (ac_try="$ac_cpp conftest.$ac_ext"
6564 case "(($ac_try" in
6565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6566 *) ac_try_echo=$ac_try;;
6567 esac
6568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6570 ac_status=$?
6571 grep -v '^ *+' conftest.er1 >conftest.err
6572 rm -f conftest.er1
6573 cat conftest.err >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } >/dev/null && {
6576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6577 test ! -s conftest.err
6578 }; then
6579 ac_header_preproc=yes
6580 else
6581 echo "$as_me: failed program was:" >&5
6582 sed 's/^/| /' conftest.$ac_ext >&5
6583
6584 ac_header_preproc=no
6585 fi
6586
6587 rm -f conftest.err conftest.$ac_ext
6588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6589 echo "${ECHO_T}$ac_header_preproc" >&6; }
6590
6591 # So? What about this header?
6592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6593 yes:no: )
6594 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6598 ac_header_preproc=yes
6599 ;;
6600 no:yes:* )
6601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6604 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6605 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6607 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6608 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6611 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6613
6614 ;;
6615 esac
6616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621 eval "$as_ac_Header=\$ac_header_preproc"
6622 fi
6623 ac_res=`eval echo '${'$as_ac_Header'}'`
6624 { echo "$as_me:$LINENO: result: $ac_res" >&5
6625 echo "${ECHO_T}$ac_res" >&6; }
6626
6627 fi
6628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6629 cat >>confdefs.h <<_ACEOF
6630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6631 _ACEOF
6632
6633 fi
6634
6635 done
6636
6637
6638 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6639 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6640 cat >conftest.$ac_ext <<_ACEOF
6641 /* confdefs.h. */
6642 _ACEOF
6643 cat confdefs.h >>conftest.$ac_ext
6644 cat >>conftest.$ac_ext <<_ACEOF
6645 /* end confdefs.h. */
6646 #include <sys/personality.h>
6647 int
6648 main ()
6649 {
6650 personality (PER_LINUX32)
6651 ;
6652 return 0;
6653 }
6654 _ACEOF
6655 rm -f conftest.$ac_objext
6656 if { (ac_try="$ac_compile"
6657 case "(($ac_try" in
6658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6659 *) ac_try_echo=$ac_try;;
6660 esac
6661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6662 (eval "$ac_compile") 2>conftest.er1
6663 ac_status=$?
6664 grep -v '^ *+' conftest.er1 >conftest.err
6665 rm -f conftest.er1
6666 cat conftest.err >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); } && {
6669 test -z "$ac_c_werror_flag" ||
6670 test ! -s conftest.err
6671 } && test -s conftest.$ac_objext; then
6672 emacs_cv_personality_linux32=yes
6673 else
6674 echo "$as_me: failed program was:" >&5
6675 sed 's/^/| /' conftest.$ac_ext >&5
6676
6677 emacs_cv_personality_linux32=no
6678 fi
6679
6680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6681 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6682 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6683
6684 if test $emacs_cv_personality_linux32 = yes; then
6685
6686 cat >>confdefs.h <<\_ACEOF
6687 #define HAVE_PERSONALITY_LINUX32 1
6688 _ACEOF
6689
6690 fi
6691
6692
6693 for ac_header in term.h
6694 do
6695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701 cat >conftest.$ac_ext <<_ACEOF
6702 /* confdefs.h. */
6703 _ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6707 #include <$ac_header>
6708 _ACEOF
6709 if { (ac_try="$ac_cpp conftest.$ac_ext"
6710 case "(($ac_try" in
6711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6712 *) ac_try_echo=$ac_try;;
6713 esac
6714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6716 ac_status=$?
6717 grep -v '^ *+' conftest.er1 >conftest.err
6718 rm -f conftest.er1
6719 cat conftest.err >&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } >/dev/null && {
6722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6723 test ! -s conftest.err
6724 }; then
6725 eval "$as_ac_Header=yes"
6726 else
6727 echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6729
6730 eval "$as_ac_Header=no"
6731 fi
6732
6733 rm -f conftest.err conftest.$ac_ext
6734 fi
6735 ac_res=`eval echo '${'$as_ac_Header'}'`
6736 { echo "$as_me:$LINENO: result: $ac_res" >&5
6737 echo "${ECHO_T}$ac_res" >&6; }
6738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6739 cat >>confdefs.h <<_ACEOF
6740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6741 _ACEOF
6742
6743 fi
6744
6745 done
6746
6747 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6748 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6749 if test "${ac_cv_header_stdc+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6751 else
6752 cat >conftest.$ac_ext <<_ACEOF
6753 /* confdefs.h. */
6754 _ACEOF
6755 cat confdefs.h >>conftest.$ac_ext
6756 cat >>conftest.$ac_ext <<_ACEOF
6757 /* end confdefs.h. */
6758 #include <stdlib.h>
6759 #include <stdarg.h>
6760 #include <string.h>
6761 #include <float.h>
6762
6763 int
6764 main ()
6765 {
6766
6767 ;
6768 return 0;
6769 }
6770 _ACEOF
6771 rm -f conftest.$ac_objext
6772 if { (ac_try="$ac_compile"
6773 case "(($ac_try" in
6774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6775 *) ac_try_echo=$ac_try;;
6776 esac
6777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6778 (eval "$ac_compile") 2>conftest.er1
6779 ac_status=$?
6780 grep -v '^ *+' conftest.er1 >conftest.err
6781 rm -f conftest.er1
6782 cat conftest.err >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); } && {
6785 test -z "$ac_c_werror_flag" ||
6786 test ! -s conftest.err
6787 } && test -s conftest.$ac_objext; then
6788 ac_cv_header_stdc=yes
6789 else
6790 echo "$as_me: failed program was:" >&5
6791 sed 's/^/| /' conftest.$ac_ext >&5
6792
6793 ac_cv_header_stdc=no
6794 fi
6795
6796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797
6798 if test $ac_cv_header_stdc = yes; then
6799 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6800 cat >conftest.$ac_ext <<_ACEOF
6801 /* confdefs.h. */
6802 _ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h. */
6806 #include <string.h>
6807
6808 _ACEOF
6809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6810 $EGREP "memchr" >/dev/null 2>&1; then
6811 :
6812 else
6813 ac_cv_header_stdc=no
6814 fi
6815 rm -f conftest*
6816
6817 fi
6818
6819 if test $ac_cv_header_stdc = yes; then
6820 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6821 cat >conftest.$ac_ext <<_ACEOF
6822 /* confdefs.h. */
6823 _ACEOF
6824 cat confdefs.h >>conftest.$ac_ext
6825 cat >>conftest.$ac_ext <<_ACEOF
6826 /* end confdefs.h. */
6827 #include <stdlib.h>
6828
6829 _ACEOF
6830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6831 $EGREP "free" >/dev/null 2>&1; then
6832 :
6833 else
6834 ac_cv_header_stdc=no
6835 fi
6836 rm -f conftest*
6837
6838 fi
6839
6840 if test $ac_cv_header_stdc = yes; then
6841 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6842 if test "$cross_compiling" = yes; then
6843 :
6844 else
6845 cat >conftest.$ac_ext <<_ACEOF
6846 /* confdefs.h. */
6847 _ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6851 #include <ctype.h>
6852 #include <stdlib.h>
6853 #if ((' ' & 0x0FF) == 0x020)
6854 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6855 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6856 #else
6857 # define ISLOWER(c) \
6858 (('a' <= (c) && (c) <= 'i') \
6859 || ('j' <= (c) && (c) <= 'r') \
6860 || ('s' <= (c) && (c) <= 'z'))
6861 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6862 #endif
6863
6864 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6865 int
6866 main ()
6867 {
6868 int i;
6869 for (i = 0; i < 256; i++)
6870 if (XOR (islower (i), ISLOWER (i))
6871 || toupper (i) != TOUPPER (i))
6872 return 2;
6873 return 0;
6874 }
6875 _ACEOF
6876 rm -f conftest$ac_exeext
6877 if { (ac_try="$ac_link"
6878 case "(($ac_try" in
6879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6880 *) ac_try_echo=$ac_try;;
6881 esac
6882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6883 (eval "$ac_link") 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6887 { (case "(($ac_try" in
6888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6889 *) ac_try_echo=$ac_try;;
6890 esac
6891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6892 (eval "$ac_try") 2>&5
6893 ac_status=$?
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); }; }; then
6896 :
6897 else
6898 echo "$as_me: program exited with status $ac_status" >&5
6899 echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6901
6902 ( exit $ac_status )
6903 ac_cv_header_stdc=no
6904 fi
6905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6906 fi
6907
6908
6909 fi
6910 fi
6911 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6912 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6913 if test $ac_cv_header_stdc = yes; then
6914
6915 cat >>confdefs.h <<\_ACEOF
6916 #define STDC_HEADERS 1
6917 _ACEOF
6918
6919 fi
6920
6921 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6922 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6923 if test "${ac_cv_header_time+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 else
6926 cat >conftest.$ac_ext <<_ACEOF
6927 /* confdefs.h. */
6928 _ACEOF
6929 cat confdefs.h >>conftest.$ac_ext
6930 cat >>conftest.$ac_ext <<_ACEOF
6931 /* end confdefs.h. */
6932 #include <sys/types.h>
6933 #include <sys/time.h>
6934 #include <time.h>
6935
6936 int
6937 main ()
6938 {
6939 if ((struct tm *) 0)
6940 return 0;
6941 ;
6942 return 0;
6943 }
6944 _ACEOF
6945 rm -f conftest.$ac_objext
6946 if { (ac_try="$ac_compile"
6947 case "(($ac_try" in
6948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6949 *) ac_try_echo=$ac_try;;
6950 esac
6951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6952 (eval "$ac_compile") 2>conftest.er1
6953 ac_status=$?
6954 grep -v '^ *+' conftest.er1 >conftest.err
6955 rm -f conftest.er1
6956 cat conftest.err >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); } && {
6959 test -z "$ac_c_werror_flag" ||
6960 test ! -s conftest.err
6961 } && test -s conftest.$ac_objext; then
6962 ac_cv_header_time=yes
6963 else
6964 echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6966
6967 ac_cv_header_time=no
6968 fi
6969
6970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6971 fi
6972 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6973 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6974 if test $ac_cv_header_time = yes; then
6975
6976 cat >>confdefs.h <<\_ACEOF
6977 #define TIME_WITH_SYS_TIME 1
6978 _ACEOF
6979
6980 fi
6981
6982 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6983 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6984 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987 cat >conftest.$ac_ext <<_ACEOF
6988 /* confdefs.h. */
6989 _ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 $ac_includes_default
6994 int
6995 main ()
6996 {
6997 #ifndef sys_siglist
6998 (void) sys_siglist;
6999 #endif
7000
7001 ;
7002 return 0;
7003 }
7004 _ACEOF
7005 rm -f conftest.$ac_objext
7006 if { (ac_try="$ac_compile"
7007 case "(($ac_try" in
7008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7009 *) ac_try_echo=$ac_try;;
7010 esac
7011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7012 (eval "$ac_compile") 2>conftest.er1
7013 ac_status=$?
7014 grep -v '^ *+' conftest.er1 >conftest.err
7015 rm -f conftest.er1
7016 cat conftest.err >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); } && {
7019 test -z "$ac_c_werror_flag" ||
7020 test ! -s conftest.err
7021 } && test -s conftest.$ac_objext; then
7022 ac_cv_have_decl_sys_siglist=yes
7023 else
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7026
7027 ac_cv_have_decl_sys_siglist=no
7028 fi
7029
7030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7031 fi
7032 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7033 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7034 if test $ac_cv_have_decl_sys_siglist = yes; then
7035
7036 cat >>confdefs.h <<_ACEOF
7037 #define HAVE_DECL_SYS_SIGLIST 1
7038 _ACEOF
7039
7040
7041 else
7042 cat >>confdefs.h <<_ACEOF
7043 #define HAVE_DECL_SYS_SIGLIST 0
7044 _ACEOF
7045
7046
7047 fi
7048
7049
7050 if test $ac_cv_have_decl_sys_siglist != yes; then
7051 # For Tru64, at least:
7052 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7053 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7054 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 else
7057 cat >conftest.$ac_ext <<_ACEOF
7058 /* confdefs.h. */
7059 _ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7063 $ac_includes_default
7064 int
7065 main ()
7066 {
7067 #ifndef __sys_siglist
7068 (void) __sys_siglist;
7069 #endif
7070
7071 ;
7072 return 0;
7073 }
7074 _ACEOF
7075 rm -f conftest.$ac_objext
7076 if { (ac_try="$ac_compile"
7077 case "(($ac_try" in
7078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079 *) ac_try_echo=$ac_try;;
7080 esac
7081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7082 (eval "$ac_compile") 2>conftest.er1
7083 ac_status=$?
7084 grep -v '^ *+' conftest.er1 >conftest.err
7085 rm -f conftest.er1
7086 cat conftest.err >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } && {
7089 test -z "$ac_c_werror_flag" ||
7090 test ! -s conftest.err
7091 } && test -s conftest.$ac_objext; then
7092 ac_cv_have_decl___sys_siglist=yes
7093 else
7094 echo "$as_me: failed program was:" >&5
7095 sed 's/^/| /' conftest.$ac_ext >&5
7096
7097 ac_cv_have_decl___sys_siglist=no
7098 fi
7099
7100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7101 fi
7102 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7103 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7104 if test $ac_cv_have_decl___sys_siglist = yes; then
7105
7106 cat >>confdefs.h <<_ACEOF
7107 #define HAVE_DECL___SYS_SIGLIST 1
7108 _ACEOF
7109
7110
7111 else
7112 cat >>confdefs.h <<_ACEOF
7113 #define HAVE_DECL___SYS_SIGLIST 0
7114 _ACEOF
7115
7116
7117 fi
7118
7119
7120 if test $ac_cv_have_decl___sys_siglist = yes; then
7121
7122 cat >>confdefs.h <<\_ACEOF
7123 #define sys_siglist __sys_siglist
7124 _ACEOF
7125
7126 fi
7127 fi
7128 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7129 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7130 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7132 else
7133 cat >conftest.$ac_ext <<_ACEOF
7134 /* confdefs.h. */
7135 _ACEOF
7136 cat confdefs.h >>conftest.$ac_ext
7137 cat >>conftest.$ac_ext <<_ACEOF
7138 /* end confdefs.h. */
7139 #include <sys/types.h>
7140 #include <sys/wait.h>
7141 #ifndef WEXITSTATUS
7142 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7143 #endif
7144 #ifndef WIFEXITED
7145 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7146 #endif
7147
7148 int
7149 main ()
7150 {
7151 int s;
7152 wait (&s);
7153 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7154 ;
7155 return 0;
7156 }
7157 _ACEOF
7158 rm -f conftest.$ac_objext
7159 if { (ac_try="$ac_compile"
7160 case "(($ac_try" in
7161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7162 *) ac_try_echo=$ac_try;;
7163 esac
7164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7165 (eval "$ac_compile") 2>conftest.er1
7166 ac_status=$?
7167 grep -v '^ *+' conftest.er1 >conftest.err
7168 rm -f conftest.er1
7169 cat conftest.err >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } && {
7172 test -z "$ac_c_werror_flag" ||
7173 test ! -s conftest.err
7174 } && test -s conftest.$ac_objext; then
7175 ac_cv_header_sys_wait_h=yes
7176 else
7177 echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
7179
7180 ac_cv_header_sys_wait_h=no
7181 fi
7182
7183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184 fi
7185 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7186 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7187 if test $ac_cv_header_sys_wait_h = yes; then
7188
7189 cat >>confdefs.h <<\_ACEOF
7190 #define HAVE_SYS_WAIT_H 1
7191 _ACEOF
7192
7193 fi
7194
7195
7196 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7197 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7198 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 else
7201 cat >conftest.$ac_ext <<_ACEOF
7202 /* confdefs.h. */
7203 _ACEOF
7204 cat confdefs.h >>conftest.$ac_ext
7205 cat >>conftest.$ac_ext <<_ACEOF
7206 /* end confdefs.h. */
7207 #ifdef TIME_WITH_SYS_TIME
7208 #include <sys/time.h>
7209 #include <time.h>
7210 #else
7211 #ifdef HAVE_SYS_TIME_H
7212 #include <sys/time.h>
7213 #else
7214 #include <time.h>
7215 #endif
7216 #endif
7217 #ifdef HAVE_UTIME_H
7218 #include <utime.h>
7219 #endif
7220 int
7221 main ()
7222 {
7223 static struct utimbuf x; x.actime = x.modtime;
7224 ;
7225 return 0;
7226 }
7227 _ACEOF
7228 rm -f conftest.$ac_objext
7229 if { (ac_try="$ac_compile"
7230 case "(($ac_try" in
7231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7232 *) ac_try_echo=$ac_try;;
7233 esac
7234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7235 (eval "$ac_compile") 2>conftest.er1
7236 ac_status=$?
7237 grep -v '^ *+' conftest.er1 >conftest.err
7238 rm -f conftest.er1
7239 cat conftest.err >&5
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); } && {
7242 test -z "$ac_c_werror_flag" ||
7243 test ! -s conftest.err
7244 } && test -s conftest.$ac_objext; then
7245 emacs_cv_struct_utimbuf=yes
7246 else
7247 echo "$as_me: failed program was:" >&5
7248 sed 's/^/| /' conftest.$ac_ext >&5
7249
7250 emacs_cv_struct_utimbuf=no
7251 fi
7252
7253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7254 fi
7255 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7256 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7257 if test $emacs_cv_struct_utimbuf = yes; then
7258
7259 cat >>confdefs.h <<\_ACEOF
7260 #define HAVE_STRUCT_UTIMBUF 1
7261 _ACEOF
7262
7263 fi
7264
7265 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7266 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7267 if test "${ac_cv_type_signal+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 else
7270 cat >conftest.$ac_ext <<_ACEOF
7271 /* confdefs.h. */
7272 _ACEOF
7273 cat confdefs.h >>conftest.$ac_ext
7274 cat >>conftest.$ac_ext <<_ACEOF
7275 /* end confdefs.h. */
7276 #include <sys/types.h>
7277 #include <signal.h>
7278
7279 int
7280 main ()
7281 {
7282 return *(signal (0, 0)) (0) == 1;
7283 ;
7284 return 0;
7285 }
7286 _ACEOF
7287 rm -f conftest.$ac_objext
7288 if { (ac_try="$ac_compile"
7289 case "(($ac_try" in
7290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7291 *) ac_try_echo=$ac_try;;
7292 esac
7293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7294 (eval "$ac_compile") 2>conftest.er1
7295 ac_status=$?
7296 grep -v '^ *+' conftest.er1 >conftest.err
7297 rm -f conftest.er1
7298 cat conftest.err >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } && {
7301 test -z "$ac_c_werror_flag" ||
7302 test ! -s conftest.err
7303 } && test -s conftest.$ac_objext; then
7304 ac_cv_type_signal=int
7305 else
7306 echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7308
7309 ac_cv_type_signal=void
7310 fi
7311
7312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7313 fi
7314 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7315 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7316
7317 cat >>confdefs.h <<_ACEOF
7318 #define RETSIGTYPE $ac_cv_type_signal
7319 _ACEOF
7320
7321
7322
7323 { echo "$as_me:$LINENO: checking for speed_t" >&5
7324 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7325 if test "${emacs_cv_speed_t+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 else
7328 cat >conftest.$ac_ext <<_ACEOF
7329 /* confdefs.h. */
7330 _ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h. */
7334 #include <termios.h>
7335 int
7336 main ()
7337 {
7338 speed_t x = 1;
7339 ;
7340 return 0;
7341 }
7342 _ACEOF
7343 rm -f conftest.$ac_objext
7344 if { (ac_try="$ac_compile"
7345 case "(($ac_try" in
7346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7347 *) ac_try_echo=$ac_try;;
7348 esac
7349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7350 (eval "$ac_compile") 2>conftest.er1
7351 ac_status=$?
7352 grep -v '^ *+' conftest.er1 >conftest.err
7353 rm -f conftest.er1
7354 cat conftest.err >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } && {
7357 test -z "$ac_c_werror_flag" ||
7358 test ! -s conftest.err
7359 } && test -s conftest.$ac_objext; then
7360 emacs_cv_speed_t=yes
7361 else
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7364
7365 emacs_cv_speed_t=no
7366 fi
7367
7368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7369 fi
7370 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7371 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7372 if test $emacs_cv_speed_t = yes; then
7373
7374 cat >>confdefs.h <<\_ACEOF
7375 #define HAVE_SPEED_T 1
7376 _ACEOF
7377
7378 fi
7379
7380 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7381 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7382 if test "${emacs_cv_struct_timeval+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 else
7385 cat >conftest.$ac_ext <<_ACEOF
7386 /* confdefs.h. */
7387 _ACEOF
7388 cat confdefs.h >>conftest.$ac_ext
7389 cat >>conftest.$ac_ext <<_ACEOF
7390 /* end confdefs.h. */
7391 #ifdef TIME_WITH_SYS_TIME
7392 #include <sys/time.h>
7393 #include <time.h>
7394 #else
7395 #ifdef HAVE_SYS_TIME_H
7396 #include <sys/time.h>
7397 #else
7398 #include <time.h>
7399 #endif
7400 #endif
7401 int
7402 main ()
7403 {
7404 static struct timeval x; x.tv_sec = x.tv_usec;
7405 ;
7406 return 0;
7407 }
7408 _ACEOF
7409 rm -f conftest.$ac_objext
7410 if { (ac_try="$ac_compile"
7411 case "(($ac_try" in
7412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7413 *) ac_try_echo=$ac_try;;
7414 esac
7415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7416 (eval "$ac_compile") 2>conftest.er1
7417 ac_status=$?
7418 grep -v '^ *+' conftest.er1 >conftest.err
7419 rm -f conftest.er1
7420 cat conftest.err >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } && {
7423 test -z "$ac_c_werror_flag" ||
7424 test ! -s conftest.err
7425 } && test -s conftest.$ac_objext; then
7426 emacs_cv_struct_timeval=yes
7427 else
7428 echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7430
7431 emacs_cv_struct_timeval=no
7432 fi
7433
7434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7435 fi
7436 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7437 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7438 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7439 if test $emacs_cv_struct_timeval = yes; then
7440
7441 cat >>confdefs.h <<\_ACEOF
7442 #define HAVE_TIMEVAL 1
7443 _ACEOF
7444
7445 fi
7446
7447 { echo "$as_me:$LINENO: checking for struct exception" >&5
7448 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7449 if test "${emacs_cv_struct_exception+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 else
7452 cat >conftest.$ac_ext <<_ACEOF
7453 /* confdefs.h. */
7454 _ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h. */
7458 #include <math.h>
7459 int
7460 main ()
7461 {
7462 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7463 ;
7464 return 0;
7465 }
7466 _ACEOF
7467 rm -f conftest.$ac_objext
7468 if { (ac_try="$ac_compile"
7469 case "(($ac_try" in
7470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7471 *) ac_try_echo=$ac_try;;
7472 esac
7473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7474 (eval "$ac_compile") 2>conftest.er1
7475 ac_status=$?
7476 grep -v '^ *+' conftest.er1 >conftest.err
7477 rm -f conftest.er1
7478 cat conftest.err >&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } && {
7481 test -z "$ac_c_werror_flag" ||
7482 test ! -s conftest.err
7483 } && test -s conftest.$ac_objext; then
7484 emacs_cv_struct_exception=yes
7485 else
7486 echo "$as_me: failed program was:" >&5
7487 sed 's/^/| /' conftest.$ac_ext >&5
7488
7489 emacs_cv_struct_exception=no
7490 fi
7491
7492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7493 fi
7494 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7495 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7496 HAVE_EXCEPTION=$emacs_cv_struct_exception
7497 if test $emacs_cv_struct_exception != yes; then
7498
7499 cat >>confdefs.h <<\_ACEOF
7500 #define NO_MATHERR 1
7501 _ACEOF
7502
7503 fi
7504
7505
7506 for ac_header in sys/socket.h
7507 do
7508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 fi
7515 ac_res=`eval echo '${'$as_ac_Header'}'`
7516 { echo "$as_me:$LINENO: result: $ac_res" >&5
7517 echo "${ECHO_T}$ac_res" >&6; }
7518 else
7519 # Is the header compilable?
7520 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7522 cat >conftest.$ac_ext <<_ACEOF
7523 /* confdefs.h. */
7524 _ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h. */
7528 $ac_includes_default
7529 #include <$ac_header>
7530 _ACEOF
7531 rm -f conftest.$ac_objext
7532 if { (ac_try="$ac_compile"
7533 case "(($ac_try" in
7534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7536 esac
7537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7538 (eval "$ac_compile") 2>conftest.er1
7539 ac_status=$?
7540 grep -v '^ *+' conftest.er1 >conftest.err
7541 rm -f conftest.er1
7542 cat conftest.err >&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } && {
7545 test -z "$ac_c_werror_flag" ||
7546 test ! -s conftest.err
7547 } && test -s conftest.$ac_objext; then
7548 ac_header_compiler=yes
7549 else
7550 echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7552
7553 ac_header_compiler=no
7554 fi
7555
7556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7558 echo "${ECHO_T}$ac_header_compiler" >&6; }
7559
7560 # Is the header present?
7561 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7563 cat >conftest.$ac_ext <<_ACEOF
7564 /* confdefs.h. */
7565 _ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7569 #include <$ac_header>
7570 _ACEOF
7571 if { (ac_try="$ac_cpp conftest.$ac_ext"
7572 case "(($ac_try" in
7573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7574 *) ac_try_echo=$ac_try;;
7575 esac
7576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7578 ac_status=$?
7579 grep -v '^ *+' conftest.er1 >conftest.err
7580 rm -f conftest.er1
7581 cat conftest.err >&5
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); } >/dev/null && {
7584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7585 test ! -s conftest.err
7586 }; then
7587 ac_header_preproc=yes
7588 else
7589 echo "$as_me: failed program was:" >&5
7590 sed 's/^/| /' conftest.$ac_ext >&5
7591
7592 ac_header_preproc=no
7593 fi
7594
7595 rm -f conftest.err conftest.$ac_ext
7596 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7597 echo "${ECHO_T}$ac_header_preproc" >&6; }
7598
7599 # So? What about this header?
7600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7601 yes:no: )
7602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7606 ac_header_preproc=yes
7607 ;;
7608 no:yes:* )
7609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7612 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7616 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7621
7622 ;;
7623 esac
7624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629 eval "$as_ac_Header=\$ac_header_preproc"
7630 fi
7631 ac_res=`eval echo '${'$as_ac_Header'}'`
7632 { echo "$as_me:$LINENO: result: $ac_res" >&5
7633 echo "${ECHO_T}$ac_res" >&6; }
7634
7635 fi
7636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7637 cat >>confdefs.h <<_ACEOF
7638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7639 _ACEOF
7640
7641 fi
7642
7643 done
7644
7645
7646 for ac_header in net/if.h
7647 do
7648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 else
7654 cat >conftest.$ac_ext <<_ACEOF
7655 /* confdefs.h. */
7656 _ACEOF
7657 cat confdefs.h >>conftest.$ac_ext
7658 cat >>conftest.$ac_ext <<_ACEOF
7659 /* end confdefs.h. */
7660 $ac_includes_default
7661 #if HAVE_SYS_SOCKET_H
7662 #include <sys/socket.h>
7663 #endif
7664
7665 #include <$ac_header>
7666 _ACEOF
7667 rm -f conftest.$ac_objext
7668 if { (ac_try="$ac_compile"
7669 case "(($ac_try" in
7670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671 *) ac_try_echo=$ac_try;;
7672 esac
7673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674 (eval "$ac_compile") 2>conftest.er1
7675 ac_status=$?
7676 grep -v '^ *+' conftest.er1 >conftest.err
7677 rm -f conftest.er1
7678 cat conftest.err >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); } && {
7681 test -z "$ac_c_werror_flag" ||
7682 test ! -s conftest.err
7683 } && test -s conftest.$ac_objext; then
7684 eval "$as_ac_Header=yes"
7685 else
7686 echo "$as_me: failed program was:" >&5
7687 sed 's/^/| /' conftest.$ac_ext >&5
7688
7689 eval "$as_ac_Header=no"
7690 fi
7691
7692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693 fi
7694 ac_res=`eval echo '${'$as_ac_Header'}'`
7695 { echo "$as_me:$LINENO: result: $ac_res" >&5
7696 echo "${ECHO_T}$ac_res" >&6; }
7697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7698 cat >>confdefs.h <<_ACEOF
7699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7700 _ACEOF
7701
7702 fi
7703
7704 done
7705
7706
7707 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7708 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7709 if test "${ac_cv_struct_tm+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 else
7712 cat >conftest.$ac_ext <<_ACEOF
7713 /* confdefs.h. */
7714 _ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h. */
7718 #include <sys/types.h>
7719 #include <time.h>
7720
7721 int
7722 main ()
7723 {
7724 struct tm tm;
7725 int *p = &tm.tm_sec;
7726 return !p;
7727 ;
7728 return 0;
7729 }
7730 _ACEOF
7731 rm -f conftest.$ac_objext
7732 if { (ac_try="$ac_compile"
7733 case "(($ac_try" in
7734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7736 esac
7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738 (eval "$ac_compile") 2>conftest.er1
7739 ac_status=$?
7740 grep -v '^ *+' conftest.er1 >conftest.err
7741 rm -f conftest.er1
7742 cat conftest.err >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } && {
7745 test -z "$ac_c_werror_flag" ||
7746 test ! -s conftest.err
7747 } && test -s conftest.$ac_objext; then
7748 ac_cv_struct_tm=time.h
7749 else
7750 echo "$as_me: failed program was:" >&5
7751 sed 's/^/| /' conftest.$ac_ext >&5
7752
7753 ac_cv_struct_tm=sys/time.h
7754 fi
7755
7756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757 fi
7758 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7759 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7760 if test $ac_cv_struct_tm = sys/time.h; then
7761
7762 cat >>confdefs.h <<\_ACEOF
7763 #define TM_IN_SYS_TIME 1
7764 _ACEOF
7765
7766 fi
7767
7768 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7769 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7770 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7771 echo $ECHO_N "(cached) $ECHO_C" >&6
7772 else
7773 cat >conftest.$ac_ext <<_ACEOF
7774 /* confdefs.h. */
7775 _ACEOF
7776 cat confdefs.h >>conftest.$ac_ext
7777 cat >>conftest.$ac_ext <<_ACEOF
7778 /* end confdefs.h. */
7779 #include <sys/types.h>
7780 #include <$ac_cv_struct_tm>
7781
7782
7783 int
7784 main ()
7785 {
7786 static struct tm ac_aggr;
7787 if (ac_aggr.tm_zone)
7788 return 0;
7789 ;
7790 return 0;
7791 }
7792 _ACEOF
7793 rm -f conftest.$ac_objext
7794 if { (ac_try="$ac_compile"
7795 case "(($ac_try" in
7796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797 *) ac_try_echo=$ac_try;;
7798 esac
7799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7800 (eval "$ac_compile") 2>conftest.er1
7801 ac_status=$?
7802 grep -v '^ *+' conftest.er1 >conftest.err
7803 rm -f conftest.er1
7804 cat conftest.err >&5
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); } && {
7807 test -z "$ac_c_werror_flag" ||
7808 test ! -s conftest.err
7809 } && test -s conftest.$ac_objext; then
7810 ac_cv_member_struct_tm_tm_zone=yes
7811 else
7812 echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7814
7815 cat >conftest.$ac_ext <<_ACEOF
7816 /* confdefs.h. */
7817 _ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h. */
7821 #include <sys/types.h>
7822 #include <$ac_cv_struct_tm>
7823
7824
7825 int
7826 main ()
7827 {
7828 static struct tm ac_aggr;
7829 if (sizeof ac_aggr.tm_zone)
7830 return 0;
7831 ;
7832 return 0;
7833 }
7834 _ACEOF
7835 rm -f conftest.$ac_objext
7836 if { (ac_try="$ac_compile"
7837 case "(($ac_try" in
7838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839 *) ac_try_echo=$ac_try;;
7840 esac
7841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7842 (eval "$ac_compile") 2>conftest.er1
7843 ac_status=$?
7844 grep -v '^ *+' conftest.er1 >conftest.err
7845 rm -f conftest.er1
7846 cat conftest.err >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); } && {
7849 test -z "$ac_c_werror_flag" ||
7850 test ! -s conftest.err
7851 } && test -s conftest.$ac_objext; then
7852 ac_cv_member_struct_tm_tm_zone=yes
7853 else
7854 echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.$ac_ext >&5
7856
7857 ac_cv_member_struct_tm_tm_zone=no
7858 fi
7859
7860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7861 fi
7862
7863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7864 fi
7865 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7866 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7867 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7868
7869 cat >>confdefs.h <<_ACEOF
7870 #define HAVE_STRUCT_TM_TM_ZONE 1
7871 _ACEOF
7872
7873
7874 fi
7875
7876 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7877
7878 cat >>confdefs.h <<\_ACEOF
7879 #define HAVE_TM_ZONE 1
7880 _ACEOF
7881
7882 else
7883 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7884 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7885 if test "${ac_cv_have_decl_tzname+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 else
7888 cat >conftest.$ac_ext <<_ACEOF
7889 /* confdefs.h. */
7890 _ACEOF
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h. */
7894 #include <time.h>
7895
7896 int
7897 main ()
7898 {
7899 #ifndef tzname
7900 (void) tzname;
7901 #endif
7902
7903 ;
7904 return 0;
7905 }
7906 _ACEOF
7907 rm -f conftest.$ac_objext
7908 if { (ac_try="$ac_compile"
7909 case "(($ac_try" in
7910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911 *) ac_try_echo=$ac_try;;
7912 esac
7913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914 (eval "$ac_compile") 2>conftest.er1
7915 ac_status=$?
7916 grep -v '^ *+' conftest.er1 >conftest.err
7917 rm -f conftest.er1
7918 cat conftest.err >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } && {
7921 test -z "$ac_c_werror_flag" ||
7922 test ! -s conftest.err
7923 } && test -s conftest.$ac_objext; then
7924 ac_cv_have_decl_tzname=yes
7925 else
7926 echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7928
7929 ac_cv_have_decl_tzname=no
7930 fi
7931
7932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7933 fi
7934 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7935 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7936 if test $ac_cv_have_decl_tzname = yes; then
7937
7938 cat >>confdefs.h <<_ACEOF
7939 #define HAVE_DECL_TZNAME 1
7940 _ACEOF
7941
7942
7943 else
7944 cat >>confdefs.h <<_ACEOF
7945 #define HAVE_DECL_TZNAME 0
7946 _ACEOF
7947
7948
7949 fi
7950
7951
7952 { echo "$as_me:$LINENO: checking for tzname" >&5
7953 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7954 if test "${ac_cv_var_tzname+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7956 else
7957 cat >conftest.$ac_ext <<_ACEOF
7958 /* confdefs.h. */
7959 _ACEOF
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h. */
7963 #include <time.h>
7964 #if !HAVE_DECL_TZNAME
7965 extern char *tzname[];
7966 #endif
7967
7968 int
7969 main ()
7970 {
7971 return tzname[0][0];
7972 ;
7973 return 0;
7974 }
7975 _ACEOF
7976 rm -f conftest.$ac_objext conftest$ac_exeext
7977 if { (ac_try="$ac_link"
7978 case "(($ac_try" in
7979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7980 *) ac_try_echo=$ac_try;;
7981 esac
7982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7983 (eval "$ac_link") 2>conftest.er1
7984 ac_status=$?
7985 grep -v '^ *+' conftest.er1 >conftest.err
7986 rm -f conftest.er1
7987 cat conftest.err >&5
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); } && {
7990 test -z "$ac_c_werror_flag" ||
7991 test ! -s conftest.err
7992 } && test -s conftest$ac_exeext &&
7993 $as_test_x conftest$ac_exeext; then
7994 ac_cv_var_tzname=yes
7995 else
7996 echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7998
7999 ac_cv_var_tzname=no
8000 fi
8001
8002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8003 conftest$ac_exeext conftest.$ac_ext
8004 fi
8005 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8006 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8007 if test $ac_cv_var_tzname = yes; then
8008
8009 cat >>confdefs.h <<\_ACEOF
8010 #define HAVE_TZNAME 1
8011 _ACEOF
8012
8013 fi
8014 fi
8015
8016 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8017 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8018 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 else
8021 cat >conftest.$ac_ext <<_ACEOF
8022 /* confdefs.h. */
8023 _ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8027 #include <time.h>
8028
8029 int
8030 main ()
8031 {
8032 static struct tm ac_aggr;
8033 if (ac_aggr.tm_gmtoff)
8034 return 0;
8035 ;
8036 return 0;
8037 }
8038 _ACEOF
8039 rm -f conftest.$ac_objext
8040 if { (ac_try="$ac_compile"
8041 case "(($ac_try" in
8042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043 *) ac_try_echo=$ac_try;;
8044 esac
8045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8046 (eval "$ac_compile") 2>conftest.er1
8047 ac_status=$?
8048 grep -v '^ *+' conftest.er1 >conftest.err
8049 rm -f conftest.er1
8050 cat conftest.err >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } && {
8053 test -z "$ac_c_werror_flag" ||
8054 test ! -s conftest.err
8055 } && test -s conftest.$ac_objext; then
8056 ac_cv_member_struct_tm_tm_gmtoff=yes
8057 else
8058 echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8060
8061 cat >conftest.$ac_ext <<_ACEOF
8062 /* confdefs.h. */
8063 _ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8067 #include <time.h>
8068
8069 int
8070 main ()
8071 {
8072 static struct tm ac_aggr;
8073 if (sizeof ac_aggr.tm_gmtoff)
8074 return 0;
8075 ;
8076 return 0;
8077 }
8078 _ACEOF
8079 rm -f conftest.$ac_objext
8080 if { (ac_try="$ac_compile"
8081 case "(($ac_try" in
8082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083 *) ac_try_echo=$ac_try;;
8084 esac
8085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8086 (eval "$ac_compile") 2>conftest.er1
8087 ac_status=$?
8088 grep -v '^ *+' conftest.er1 >conftest.err
8089 rm -f conftest.er1
8090 cat conftest.err >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } && {
8093 test -z "$ac_c_werror_flag" ||
8094 test ! -s conftest.err
8095 } && test -s conftest.$ac_objext; then
8096 ac_cv_member_struct_tm_tm_gmtoff=yes
8097 else
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8100
8101 ac_cv_member_struct_tm_tm_gmtoff=no
8102 fi
8103
8104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8105 fi
8106
8107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8108 fi
8109 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8110 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8111 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8112
8113 cat >>confdefs.h <<\_ACEOF
8114 #define HAVE_TM_GMTOFF 1
8115 _ACEOF
8116
8117 fi
8118
8119 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8120 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8121 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 else
8124 cat >conftest.$ac_ext <<_ACEOF
8125 /* confdefs.h. */
8126 _ACEOF
8127 cat confdefs.h >>conftest.$ac_ext
8128 cat >>conftest.$ac_ext <<_ACEOF
8129 /* end confdefs.h. */
8130 $ac_includes_default
8131 #if HAVE_SYS_SOCKET_H
8132 #include <sys/socket.h>
8133 #endif
8134 #if HAVE_NET_IF_H
8135 #include <net/if.h>
8136 #endif
8137
8138 int
8139 main ()
8140 {
8141 static struct ifreq ac_aggr;
8142 if (ac_aggr.ifr_flags)
8143 return 0;
8144 ;
8145 return 0;
8146 }
8147 _ACEOF
8148 rm -f conftest.$ac_objext
8149 if { (ac_try="$ac_compile"
8150 case "(($ac_try" in
8151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8152 *) ac_try_echo=$ac_try;;
8153 esac
8154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8155 (eval "$ac_compile") 2>conftest.er1
8156 ac_status=$?
8157 grep -v '^ *+' conftest.er1 >conftest.err
8158 rm -f conftest.er1
8159 cat conftest.err >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); } && {
8162 test -z "$ac_c_werror_flag" ||
8163 test ! -s conftest.err
8164 } && test -s conftest.$ac_objext; then
8165 ac_cv_member_struct_ifreq_ifr_flags=yes
8166 else
8167 echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.$ac_ext >&5
8169
8170 cat >conftest.$ac_ext <<_ACEOF
8171 /* confdefs.h. */
8172 _ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h. */
8176 $ac_includes_default
8177 #if HAVE_SYS_SOCKET_H
8178 #include <sys/socket.h>
8179 #endif
8180 #if HAVE_NET_IF_H
8181 #include <net/if.h>
8182 #endif
8183
8184 int
8185 main ()
8186 {
8187 static struct ifreq ac_aggr;
8188 if (sizeof ac_aggr.ifr_flags)
8189 return 0;
8190 ;
8191 return 0;
8192 }
8193 _ACEOF
8194 rm -f conftest.$ac_objext
8195 if { (ac_try="$ac_compile"
8196 case "(($ac_try" in
8197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198 *) ac_try_echo=$ac_try;;
8199 esac
8200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201 (eval "$ac_compile") 2>conftest.er1
8202 ac_status=$?
8203 grep -v '^ *+' conftest.er1 >conftest.err
8204 rm -f conftest.er1
8205 cat conftest.err >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } && {
8208 test -z "$ac_c_werror_flag" ||
8209 test ! -s conftest.err
8210 } && test -s conftest.$ac_objext; then
8211 ac_cv_member_struct_ifreq_ifr_flags=yes
8212 else
8213 echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8215
8216 ac_cv_member_struct_ifreq_ifr_flags=no
8217 fi
8218
8219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220 fi
8221
8222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 fi
8224 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8225 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8226 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8227
8228 cat >>confdefs.h <<_ACEOF
8229 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8230 _ACEOF
8231
8232
8233 fi
8234 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8235 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8236 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8238 else
8239 cat >conftest.$ac_ext <<_ACEOF
8240 /* confdefs.h. */
8241 _ACEOF
8242 cat confdefs.h >>conftest.$ac_ext
8243 cat >>conftest.$ac_ext <<_ACEOF
8244 /* end confdefs.h. */
8245 $ac_includes_default
8246 #if HAVE_SYS_SOCKET_H
8247 #include <sys/socket.h>
8248 #endif
8249 #if HAVE_NET_IF_H
8250 #include <net/if.h>
8251 #endif
8252
8253 int
8254 main ()
8255 {
8256 static struct ifreq ac_aggr;
8257 if (ac_aggr.ifr_hwaddr)
8258 return 0;
8259 ;
8260 return 0;
8261 }
8262 _ACEOF
8263 rm -f conftest.$ac_objext
8264 if { (ac_try="$ac_compile"
8265 case "(($ac_try" in
8266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267 *) ac_try_echo=$ac_try;;
8268 esac
8269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8270 (eval "$ac_compile") 2>conftest.er1
8271 ac_status=$?
8272 grep -v '^ *+' conftest.er1 >conftest.err
8273 rm -f conftest.er1
8274 cat conftest.err >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); } && {
8277 test -z "$ac_c_werror_flag" ||
8278 test ! -s conftest.err
8279 } && test -s conftest.$ac_objext; then
8280 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8281 else
8282 echo "$as_me: failed program was:" >&5
8283 sed 's/^/| /' conftest.$ac_ext >&5
8284
8285 cat >conftest.$ac_ext <<_ACEOF
8286 /* confdefs.h. */
8287 _ACEOF
8288 cat confdefs.h >>conftest.$ac_ext
8289 cat >>conftest.$ac_ext <<_ACEOF
8290 /* end confdefs.h. */
8291 $ac_includes_default
8292 #if HAVE_SYS_SOCKET_H
8293 #include <sys/socket.h>
8294 #endif
8295 #if HAVE_NET_IF_H
8296 #include <net/if.h>
8297 #endif
8298
8299 int
8300 main ()
8301 {
8302 static struct ifreq ac_aggr;
8303 if (sizeof ac_aggr.ifr_hwaddr)
8304 return 0;
8305 ;
8306 return 0;
8307 }
8308 _ACEOF
8309 rm -f conftest.$ac_objext
8310 if { (ac_try="$ac_compile"
8311 case "(($ac_try" in
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8314 esac
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 (eval "$ac_compile") 2>conftest.er1
8317 ac_status=$?
8318 grep -v '^ *+' conftest.er1 >conftest.err
8319 rm -f conftest.er1
8320 cat conftest.err >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); } && {
8323 test -z "$ac_c_werror_flag" ||
8324 test ! -s conftest.err
8325 } && test -s conftest.$ac_objext; then
8326 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8327 else
8328 echo "$as_me: failed program was:" >&5
8329 sed 's/^/| /' conftest.$ac_ext >&5
8330
8331 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8332 fi
8333
8334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335 fi
8336
8337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8338 fi
8339 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8340 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8341 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8342
8343 cat >>confdefs.h <<_ACEOF
8344 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8345 _ACEOF
8346
8347
8348 fi
8349 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8350 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8351 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 else
8354 cat >conftest.$ac_ext <<_ACEOF
8355 /* confdefs.h. */
8356 _ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8360 $ac_includes_default
8361 #if HAVE_SYS_SOCKET_H
8362 #include <sys/socket.h>
8363 #endif
8364 #if HAVE_NET_IF_H
8365 #include <net/if.h>
8366 #endif
8367
8368 int
8369 main ()
8370 {
8371 static struct ifreq ac_aggr;
8372 if (ac_aggr.ifr_netmask)
8373 return 0;
8374 ;
8375 return 0;
8376 }
8377 _ACEOF
8378 rm -f conftest.$ac_objext
8379 if { (ac_try="$ac_compile"
8380 case "(($ac_try" in
8381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8382 *) ac_try_echo=$ac_try;;
8383 esac
8384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8385 (eval "$ac_compile") 2>conftest.er1
8386 ac_status=$?
8387 grep -v '^ *+' conftest.er1 >conftest.err
8388 rm -f conftest.er1
8389 cat conftest.err >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } && {
8392 test -z "$ac_c_werror_flag" ||
8393 test ! -s conftest.err
8394 } && test -s conftest.$ac_objext; then
8395 ac_cv_member_struct_ifreq_ifr_netmask=yes
8396 else
8397 echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.$ac_ext >&5
8399
8400 cat >conftest.$ac_ext <<_ACEOF
8401 /* confdefs.h. */
8402 _ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h. */
8406 $ac_includes_default
8407 #if HAVE_SYS_SOCKET_H
8408 #include <sys/socket.h>
8409 #endif
8410 #if HAVE_NET_IF_H
8411 #include <net/if.h>
8412 #endif
8413
8414 int
8415 main ()
8416 {
8417 static struct ifreq ac_aggr;
8418 if (sizeof ac_aggr.ifr_netmask)
8419 return 0;
8420 ;
8421 return 0;
8422 }
8423 _ACEOF
8424 rm -f conftest.$ac_objext
8425 if { (ac_try="$ac_compile"
8426 case "(($ac_try" in
8427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8428 *) ac_try_echo=$ac_try;;
8429 esac
8430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8431 (eval "$ac_compile") 2>conftest.er1
8432 ac_status=$?
8433 grep -v '^ *+' conftest.er1 >conftest.err
8434 rm -f conftest.er1
8435 cat conftest.err >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } && {
8438 test -z "$ac_c_werror_flag" ||
8439 test ! -s conftest.err
8440 } && test -s conftest.$ac_objext; then
8441 ac_cv_member_struct_ifreq_ifr_netmask=yes
8442 else
8443 echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8445
8446 ac_cv_member_struct_ifreq_ifr_netmask=no
8447 fi
8448
8449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8450 fi
8451
8452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8453 fi
8454 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8455 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8456 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8457
8458 cat >>confdefs.h <<_ACEOF
8459 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8460 _ACEOF
8461
8462
8463 fi
8464 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8465 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8466 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8467 echo $ECHO_N "(cached) $ECHO_C" >&6
8468 else
8469 cat >conftest.$ac_ext <<_ACEOF
8470 /* confdefs.h. */
8471 _ACEOF
8472 cat confdefs.h >>conftest.$ac_ext
8473 cat >>conftest.$ac_ext <<_ACEOF
8474 /* end confdefs.h. */
8475 $ac_includes_default
8476 #if HAVE_SYS_SOCKET_H
8477 #include <sys/socket.h>
8478 #endif
8479 #if HAVE_NET_IF_H
8480 #include <net/if.h>
8481 #endif
8482
8483 int
8484 main ()
8485 {
8486 static struct ifreq ac_aggr;
8487 if (ac_aggr.ifr_broadaddr)
8488 return 0;
8489 ;
8490 return 0;
8491 }
8492 _ACEOF
8493 rm -f conftest.$ac_objext
8494 if { (ac_try="$ac_compile"
8495 case "(($ac_try" in
8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8498 esac
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500 (eval "$ac_compile") 2>conftest.er1
8501 ac_status=$?
8502 grep -v '^ *+' conftest.er1 >conftest.err
8503 rm -f conftest.er1
8504 cat conftest.err >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } && {
8507 test -z "$ac_c_werror_flag" ||
8508 test ! -s conftest.err
8509 } && test -s conftest.$ac_objext; then
8510 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8511 else
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8514
8515 cat >conftest.$ac_ext <<_ACEOF
8516 /* confdefs.h. */
8517 _ACEOF
8518 cat confdefs.h >>conftest.$ac_ext
8519 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h. */
8521 $ac_includes_default
8522 #if HAVE_SYS_SOCKET_H
8523 #include <sys/socket.h>
8524 #endif
8525 #if HAVE_NET_IF_H
8526 #include <net/if.h>
8527 #endif
8528
8529 int
8530 main ()
8531 {
8532 static struct ifreq ac_aggr;
8533 if (sizeof ac_aggr.ifr_broadaddr)
8534 return 0;
8535 ;
8536 return 0;
8537 }
8538 _ACEOF
8539 rm -f conftest.$ac_objext
8540 if { (ac_try="$ac_compile"
8541 case "(($ac_try" in
8542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543 *) ac_try_echo=$ac_try;;
8544 esac
8545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546 (eval "$ac_compile") 2>conftest.er1
8547 ac_status=$?
8548 grep -v '^ *+' conftest.er1 >conftest.err
8549 rm -f conftest.er1
8550 cat conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } && {
8553 test -z "$ac_c_werror_flag" ||
8554 test ! -s conftest.err
8555 } && test -s conftest.$ac_objext; then
8556 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8557 else
8558 echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8560
8561 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8562 fi
8563
8564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8565 fi
8566
8567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568 fi
8569 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8570 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8571 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8572
8573 cat >>confdefs.h <<_ACEOF
8574 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8575 _ACEOF
8576
8577
8578 fi
8579 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8580 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8581 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8582 echo $ECHO_N "(cached) $ECHO_C" >&6
8583 else
8584 cat >conftest.$ac_ext <<_ACEOF
8585 /* confdefs.h. */
8586 _ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h. */
8590 $ac_includes_default
8591 #if HAVE_SYS_SOCKET_H
8592 #include <sys/socket.h>
8593 #endif
8594 #if HAVE_NET_IF_H
8595 #include <net/if.h>
8596 #endif
8597
8598 int
8599 main ()
8600 {
8601 static struct ifreq ac_aggr;
8602 if (ac_aggr.ifr_addr)
8603 return 0;
8604 ;
8605 return 0;
8606 }
8607 _ACEOF
8608 rm -f conftest.$ac_objext
8609 if { (ac_try="$ac_compile"
8610 case "(($ac_try" in
8611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8612 *) ac_try_echo=$ac_try;;
8613 esac
8614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8615 (eval "$ac_compile") 2>conftest.er1
8616 ac_status=$?
8617 grep -v '^ *+' conftest.er1 >conftest.err
8618 rm -f conftest.er1
8619 cat conftest.err >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); } && {
8622 test -z "$ac_c_werror_flag" ||
8623 test ! -s conftest.err
8624 } && test -s conftest.$ac_objext; then
8625 ac_cv_member_struct_ifreq_ifr_addr=yes
8626 else
8627 echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8629
8630 cat >conftest.$ac_ext <<_ACEOF
8631 /* confdefs.h. */
8632 _ACEOF
8633 cat confdefs.h >>conftest.$ac_ext
8634 cat >>conftest.$ac_ext <<_ACEOF
8635 /* end confdefs.h. */
8636 $ac_includes_default
8637 #if HAVE_SYS_SOCKET_H
8638 #include <sys/socket.h>
8639 #endif
8640 #if HAVE_NET_IF_H
8641 #include <net/if.h>
8642 #endif
8643
8644 int
8645 main ()
8646 {
8647 static struct ifreq ac_aggr;
8648 if (sizeof ac_aggr.ifr_addr)
8649 return 0;
8650 ;
8651 return 0;
8652 }
8653 _ACEOF
8654 rm -f conftest.$ac_objext
8655 if { (ac_try="$ac_compile"
8656 case "(($ac_try" in
8657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8658 *) ac_try_echo=$ac_try;;
8659 esac
8660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8661 (eval "$ac_compile") 2>conftest.er1
8662 ac_status=$?
8663 grep -v '^ *+' conftest.er1 >conftest.err
8664 rm -f conftest.er1
8665 cat conftest.err >&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); } && {
8668 test -z "$ac_c_werror_flag" ||
8669 test ! -s conftest.err
8670 } && test -s conftest.$ac_objext; then
8671 ac_cv_member_struct_ifreq_ifr_addr=yes
8672 else
8673 echo "$as_me: failed program was:" >&5
8674 sed 's/^/| /' conftest.$ac_ext >&5
8675
8676 ac_cv_member_struct_ifreq_ifr_addr=no
8677 fi
8678
8679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8680 fi
8681
8682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8683 fi
8684 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8685 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8686 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8687
8688 cat >>confdefs.h <<_ACEOF
8689 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8690 _ACEOF
8691
8692
8693 fi
8694
8695
8696
8697 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8698 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8699 if test "$ac_cv_prog_cc_c89" != no; then
8700 { echo "$as_me:$LINENO: result: yes" >&5
8701 echo "${ECHO_T}yes" >&6; }
8702
8703 cat >>confdefs.h <<\_ACEOF
8704 #define PROTOTYPES 1
8705 _ACEOF
8706
8707
8708 cat >>confdefs.h <<\_ACEOF
8709 #define __PROTOTYPES 1
8710 _ACEOF
8711
8712 else
8713 { echo "$as_me:$LINENO: result: no" >&5
8714 echo "${ECHO_T}no" >&6; }
8715 fi
8716
8717 { echo "$as_me:$LINENO: checking for working volatile" >&5
8718 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8719 if test "${ac_cv_c_volatile+set}" = set; then
8720 echo $ECHO_N "(cached) $ECHO_C" >&6
8721 else
8722 cat >conftest.$ac_ext <<_ACEOF
8723 /* confdefs.h. */
8724 _ACEOF
8725 cat confdefs.h >>conftest.$ac_ext
8726 cat >>conftest.$ac_ext <<_ACEOF
8727 /* end confdefs.h. */
8728
8729 int
8730 main ()
8731 {
8732
8733 volatile int x;
8734 int * volatile y = (int *) 0;
8735 return !x && !y;
8736 ;
8737 return 0;
8738 }
8739 _ACEOF
8740 rm -f conftest.$ac_objext
8741 if { (ac_try="$ac_compile"
8742 case "(($ac_try" in
8743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8744 *) ac_try_echo=$ac_try;;
8745 esac
8746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8747 (eval "$ac_compile") 2>conftest.er1
8748 ac_status=$?
8749 grep -v '^ *+' conftest.er1 >conftest.err
8750 rm -f conftest.er1
8751 cat conftest.err >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } && {
8754 test -z "$ac_c_werror_flag" ||
8755 test ! -s conftest.err
8756 } && test -s conftest.$ac_objext; then
8757 ac_cv_c_volatile=yes
8758 else
8759 echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8761
8762 ac_cv_c_volatile=no
8763 fi
8764
8765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8766 fi
8767 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8768 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8769 if test $ac_cv_c_volatile = no; then
8770
8771 cat >>confdefs.h <<\_ACEOF
8772 #define volatile
8773 _ACEOF
8774
8775 fi
8776
8777 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8778 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8779 if test "${ac_cv_c_const+set}" = set; then
8780 echo $ECHO_N "(cached) $ECHO_C" >&6
8781 else
8782 cat >conftest.$ac_ext <<_ACEOF
8783 /* confdefs.h. */
8784 _ACEOF
8785 cat confdefs.h >>conftest.$ac_ext
8786 cat >>conftest.$ac_ext <<_ACEOF
8787 /* end confdefs.h. */
8788
8789 int
8790 main ()
8791 {
8792 /* FIXME: Include the comments suggested by Paul. */
8793 #ifndef __cplusplus
8794 /* Ultrix mips cc rejects this. */
8795 typedef int charset[2];
8796 const charset cs;
8797 /* SunOS 4.1.1 cc rejects this. */
8798 char const *const *pcpcc;
8799 char **ppc;
8800 /* NEC SVR4.0.2 mips cc rejects this. */
8801 struct point {int x, y;};
8802 static struct point const zero = {0,0};
8803 /* AIX XL C 1.02.0.0 rejects this.
8804 It does not let you subtract one const X* pointer from another in
8805 an arm of an if-expression whose if-part is not a constant
8806 expression */
8807 const char *g = "string";
8808 pcpcc = &g + (g ? g-g : 0);
8809 /* HPUX 7.0 cc rejects these. */
8810 ++pcpcc;
8811 ppc = (char**) pcpcc;
8812 pcpcc = (char const *const *) ppc;
8813 { /* SCO 3.2v4 cc rejects this. */
8814 char *t;
8815 char const *s = 0 ? (char *) 0 : (char const *) 0;
8816
8817 *t++ = 0;
8818 if (s) return 0;
8819 }
8820 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8821 int x[] = {25, 17};
8822 const int *foo = &x[0];
8823 ++foo;
8824 }
8825 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8826 typedef const int *iptr;
8827 iptr p = 0;
8828 ++p;
8829 }
8830 { /* AIX XL C 1.02.0.0 rejects this saying
8831 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8832 struct s { int j; const int *ap[3]; };
8833 struct s *b; b->j = 5;
8834 }
8835 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8836 const int foo = 10;
8837 if (!foo) return 0;
8838 }
8839 return !cs[0] && !zero.x;
8840 #endif
8841
8842 ;
8843 return 0;
8844 }
8845 _ACEOF
8846 rm -f conftest.$ac_objext
8847 if { (ac_try="$ac_compile"
8848 case "(($ac_try" in
8849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850 *) ac_try_echo=$ac_try;;
8851 esac
8852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853 (eval "$ac_compile") 2>conftest.er1
8854 ac_status=$?
8855 grep -v '^ *+' conftest.er1 >conftest.err
8856 rm -f conftest.er1
8857 cat conftest.err >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } && {
8860 test -z "$ac_c_werror_flag" ||
8861 test ! -s conftest.err
8862 } && test -s conftest.$ac_objext; then
8863 ac_cv_c_const=yes
8864 else
8865 echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8867
8868 ac_cv_c_const=no
8869 fi
8870
8871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8872 fi
8873 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8874 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8875 if test $ac_cv_c_const = no; then
8876
8877 cat >>confdefs.h <<\_ACEOF
8878 #define const
8879 _ACEOF
8880
8881 fi
8882
8883 { echo "$as_me:$LINENO: checking for void * support" >&5
8884 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8885 if test "${emacs_cv_void_star+set}" = set; then
8886 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 else
8888 cat >conftest.$ac_ext <<_ACEOF
8889 /* confdefs.h. */
8890 _ACEOF
8891 cat confdefs.h >>conftest.$ac_ext
8892 cat >>conftest.$ac_ext <<_ACEOF
8893 /* end confdefs.h. */
8894
8895 int
8896 main ()
8897 {
8898 void * foo;
8899 ;
8900 return 0;
8901 }
8902 _ACEOF
8903 rm -f conftest.$ac_objext
8904 if { (ac_try="$ac_compile"
8905 case "(($ac_try" in
8906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8907 *) ac_try_echo=$ac_try;;
8908 esac
8909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8910 (eval "$ac_compile") 2>conftest.er1
8911 ac_status=$?
8912 grep -v '^ *+' conftest.er1 >conftest.err
8913 rm -f conftest.er1
8914 cat conftest.err >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); } && {
8917 test -z "$ac_c_werror_flag" ||
8918 test ! -s conftest.err
8919 } && test -s conftest.$ac_objext; then
8920 emacs_cv_void_star=yes
8921 else
8922 echo "$as_me: failed program was:" >&5
8923 sed 's/^/| /' conftest.$ac_ext >&5
8924
8925 emacs_cv_void_star=no
8926 fi
8927
8928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8929 fi
8930 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8931 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8932 if test $emacs_cv_void_star = yes; then
8933 cat >>confdefs.h <<\_ACEOF
8934 #define POINTER_TYPE void
8935 _ACEOF
8936
8937 else
8938 cat >>confdefs.h <<\_ACEOF
8939 #define POINTER_TYPE char
8940 _ACEOF
8941
8942 fi
8943
8944
8945
8946
8947
8948 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8949 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8950 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8951 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8953 else
8954 cat >conftest.make <<\_ACEOF
8955 SHELL = /bin/sh
8956 all:
8957 @echo '@@@%%%=$(MAKE)=@@@%%%'
8958 _ACEOF
8959 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8960 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8961 *@@@%%%=?*=@@@%%%*)
8962 eval ac_cv_prog_make_${ac_make}_set=yes;;
8963 *)
8964 eval ac_cv_prog_make_${ac_make}_set=no;;
8965 esac
8966 rm -f conftest.make
8967 fi
8968 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8969 { echo "$as_me:$LINENO: result: yes" >&5
8970 echo "${ECHO_T}yes" >&6; }
8971 SET_MAKE=
8972 else
8973 { echo "$as_me:$LINENO: result: no" >&5
8974 echo "${ECHO_T}no" >&6; }
8975 SET_MAKE="MAKE=${MAKE-make}"
8976 fi
8977
8978
8979 { echo "$as_me:$LINENO: checking for long file names" >&5
8980 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8981 if test "${ac_cv_sys_long_file_names+set}" = set; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 else
8984 ac_cv_sys_long_file_names=yes
8985 # Test for long file names in all the places we know might matter:
8986 # . the current directory, where building will happen
8987 # $prefix/lib where we will be installing things
8988 # $exec_prefix/lib likewise
8989 # $TMPDIR if set, where it might want to write temporary files
8990 # /tmp where it might want to write temporary files
8991 # /var/tmp likewise
8992 # /usr/tmp likewise
8993 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8994 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8995 # in the usual case where exec_prefix is '${prefix}'.
8996 case $ac_dir in #(
8997 . | /* | ?:[\\/]*) ;; #(
8998 *) continue;;
8999 esac
9000 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9001 ac_xdir=$ac_dir/cf$$
9002 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9003 ac_tf1=$ac_xdir/conftest9012345
9004 ac_tf2=$ac_xdir/conftest9012346
9005 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9006 ac_cv_sys_long_file_names=no
9007 rm -f -r "$ac_xdir" 2>/dev/null
9008 test $ac_cv_sys_long_file_names = no && break
9009 done
9010 fi
9011 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9012 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9013 if test $ac_cv_sys_long_file_names = yes; then
9014
9015 cat >>confdefs.h <<\_ACEOF
9016 #define HAVE_LONG_FILE_NAMES 1
9017 _ACEOF
9018
9019 fi
9020
9021
9022 #### Choose a window system.
9023
9024 { echo "$as_me:$LINENO: checking for X" >&5
9025 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9026
9027
9028 # Check whether --with-x was given.
9029 if test "${with_x+set}" = set; then
9030 withval=$with_x;
9031 fi
9032
9033 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9034 if test "x$with_x" = xno; then
9035 # The user explicitly disabled X.
9036 have_x=disabled
9037 else
9038 case $x_includes,$x_libraries in #(
9039 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9040 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9041 { (exit 1); exit 1; }; };; #(
9042 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9044 else
9045 # One or both of the vars are not set, and there is no cached value.
9046 ac_x_includes=no ac_x_libraries=no
9047 rm -f -r conftest.dir
9048 if mkdir conftest.dir; then
9049 cd conftest.dir
9050 cat >Imakefile <<'_ACEOF'
9051 incroot:
9052 @echo incroot='${INCROOT}'
9053 usrlibdir:
9054 @echo usrlibdir='${USRLIBDIR}'
9055 libdir:
9056 @echo libdir='${LIBDIR}'
9057 _ACEOF
9058 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9059 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9060 for ac_var in incroot usrlibdir libdir; do
9061 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9062 done
9063 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9064 for ac_extension in a so sl; do
9065 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9066 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9067 ac_im_usrlibdir=$ac_im_libdir; break
9068 fi
9069 done
9070 # Screen out bogus values from the imake configuration. They are
9071 # bogus both because they are the default anyway, and because
9072 # using them would break gcc on systems where it needs fixed includes.
9073 case $ac_im_incroot in
9074 /usr/include) ac_x_includes= ;;
9075 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9076 esac
9077 case $ac_im_usrlibdir in
9078 /usr/lib | /lib) ;;
9079 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9080 esac
9081 fi
9082 cd ..
9083 rm -f -r conftest.dir
9084 fi
9085
9086 # Standard set of common directories for X headers.
9087 # Check X11 before X11Rn because it is often a symlink to the current release.
9088 ac_x_header_dirs='
9089 /usr/X11/include
9090 /usr/X11R6/include
9091 /usr/X11R5/include
9092 /usr/X11R4/include
9093
9094 /usr/include/X11
9095 /usr/include/X11R6
9096 /usr/include/X11R5
9097 /usr/include/X11R4
9098
9099 /usr/local/X11/include
9100 /usr/local/X11R6/include
9101 /usr/local/X11R5/include
9102 /usr/local/X11R4/include
9103
9104 /usr/local/include/X11
9105 /usr/local/include/X11R6
9106 /usr/local/include/X11R5
9107 /usr/local/include/X11R4
9108
9109 /usr/X386/include
9110 /usr/x386/include
9111 /usr/XFree86/include/X11
9112
9113 /usr/include
9114 /usr/local/include
9115 /usr/unsupported/include
9116 /usr/athena/include
9117 /usr/local/x11r5/include
9118 /usr/lpp/Xamples/include
9119
9120 /usr/openwin/include
9121 /usr/openwin/share/include'
9122
9123 if test "$ac_x_includes" = no; then
9124 # Guess where to find include files, by looking for Xlib.h.
9125 # First, try using that file with no special directory specified.
9126 cat >conftest.$ac_ext <<_ACEOF
9127 /* confdefs.h. */
9128 _ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h. */
9132 #include <X11/Xlib.h>
9133 _ACEOF
9134 if { (ac_try="$ac_cpp conftest.$ac_ext"
9135 case "(($ac_try" in
9136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9137 *) ac_try_echo=$ac_try;;
9138 esac
9139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9141 ac_status=$?
9142 grep -v '^ *+' conftest.er1 >conftest.err
9143 rm -f conftest.er1
9144 cat conftest.err >&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); } >/dev/null && {
9147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9148 test ! -s conftest.err
9149 }; then
9150 # We can compile using X headers with no special include directory.
9151 ac_x_includes=
9152 else
9153 echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.$ac_ext >&5
9155
9156 for ac_dir in $ac_x_header_dirs; do
9157 if test -r "$ac_dir/X11/Xlib.h"; then
9158 ac_x_includes=$ac_dir
9159 break
9160 fi
9161 done
9162 fi
9163
9164 rm -f conftest.err conftest.$ac_ext
9165 fi # $ac_x_includes = no
9166
9167 if test "$ac_x_libraries" = no; then
9168 # Check for the libraries.
9169 # See if we find them without any special options.
9170 # Don't add to $LIBS permanently.
9171 ac_save_LIBS=$LIBS
9172 LIBS="-lX11 $LIBS"
9173 cat >conftest.$ac_ext <<_ACEOF
9174 /* confdefs.h. */
9175 _ACEOF
9176 cat confdefs.h >>conftest.$ac_ext
9177 cat >>conftest.$ac_ext <<_ACEOF
9178 /* end confdefs.h. */
9179 #include <X11/Xlib.h>
9180 int
9181 main ()
9182 {
9183 XrmInitialize ()
9184 ;
9185 return 0;
9186 }
9187 _ACEOF
9188 rm -f conftest.$ac_objext conftest$ac_exeext
9189 if { (ac_try="$ac_link"
9190 case "(($ac_try" in
9191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9192 *) ac_try_echo=$ac_try;;
9193 esac
9194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9195 (eval "$ac_link") 2>conftest.er1
9196 ac_status=$?
9197 grep -v '^ *+' conftest.er1 >conftest.err
9198 rm -f conftest.er1
9199 cat conftest.err >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } && {
9202 test -z "$ac_c_werror_flag" ||
9203 test ! -s conftest.err
9204 } && test -s conftest$ac_exeext &&
9205 $as_test_x conftest$ac_exeext; then
9206 LIBS=$ac_save_LIBS
9207 # We can link X programs with no special library path.
9208 ac_x_libraries=
9209 else
9210 echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9212
9213 LIBS=$ac_save_LIBS
9214 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9215 do
9216 # Don't even attempt the hair of trying to link an X program!
9217 for ac_extension in a so sl; do
9218 if test -r "$ac_dir/libX11.$ac_extension"; then
9219 ac_x_libraries=$ac_dir
9220 break 2
9221 fi
9222 done
9223 done
9224 fi
9225
9226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9227 conftest$ac_exeext conftest.$ac_ext
9228 fi # $ac_x_libraries = no
9229
9230 case $ac_x_includes,$ac_x_libraries in #(
9231 no,* | *,no | *\'*)
9232 # Didn't find X, or a directory has "'" in its name.
9233 ac_cv_have_x="have_x=no";; #(
9234 *)
9235 # Record where we found X for the cache.
9236 ac_cv_have_x="have_x=yes\
9237 ac_x_includes='$ac_x_includes'\
9238 ac_x_libraries='$ac_x_libraries'"
9239 esac
9240 fi
9241 ;; #(
9242 *) have_x=yes;;
9243 esac
9244 eval "$ac_cv_have_x"
9245 fi # $with_x != no
9246
9247 if test "$have_x" != yes; then
9248 { echo "$as_me:$LINENO: result: $have_x" >&5
9249 echo "${ECHO_T}$have_x" >&6; }
9250 no_x=yes
9251 else
9252 # If each of the values was on the command line, it overrides each guess.
9253 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9254 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9255 # Update the cache value to reflect the command line values.
9256 ac_cv_have_x="have_x=yes\
9257 ac_x_includes='$x_includes'\
9258 ac_x_libraries='$x_libraries'"
9259 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9260 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9261 fi
9262
9263 if test "$no_x" = yes; then
9264 window_system=none
9265 else
9266 window_system=x11
9267 fi
9268
9269 if test "${x_libraries}" != NONE; then
9270 if test -n "${x_libraries}"; then
9271 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9272 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9273 fi
9274 x_default_search_path=""
9275 x_search_path=${x_libraries}
9276 if test -z "${x_search_path}"; then
9277 x_search_path=/usr/lib
9278 fi
9279 for x_library in `echo ${x_search_path}: | \
9280 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9281 x_search_path="\
9282 ${x_library}/X11/%L/%T/%N%C%S:\
9283 ${x_library}/X11/%l/%T/%N%C%S:\
9284 ${x_library}/X11/%T/%N%C%S:\
9285 ${x_library}/X11/%L/%T/%N%S:\
9286 ${x_library}/X11/%l/%T/%N%S:\
9287 ${x_library}/X11/%T/%N%S"
9288 if test x"${x_default_search_path}" = x; then
9289 x_default_search_path=${x_search_path}
9290 else
9291 x_default_search_path="${x_search_path}:${x_default_search_path}"
9292 fi
9293 done
9294 fi
9295 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9296 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9297 fi
9298
9299 if test x"${x_includes}" = x; then
9300 bitmapdir=/usr/include/X11/bitmaps
9301 else
9302 # accumulate include directories that have X11 bitmap subdirectories
9303 bmd_acc="dummyval"
9304 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9305 if test -d "${bmd}/X11/bitmaps"; then
9306 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9307 fi
9308 if test -d "${bmd}/bitmaps"; then
9309 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9310 fi
9311 done
9312 if test ${bmd_acc} != "dummyval"; then
9313 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9314 fi
9315 fi
9316
9317 HAVE_CARBON=no
9318 if test "${with_carbon}" != no; then
9319 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9320 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9321 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9322 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 fi
9325 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9326 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9327 else
9328 # Is the header compilable?
9329 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9330 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9331 cat >conftest.$ac_ext <<_ACEOF
9332 /* confdefs.h. */
9333 _ACEOF
9334 cat confdefs.h >>conftest.$ac_ext
9335 cat >>conftest.$ac_ext <<_ACEOF
9336 /* end confdefs.h. */
9337 $ac_includes_default
9338 #include <Carbon/Carbon.h>
9339 _ACEOF
9340 rm -f conftest.$ac_objext
9341 if { (ac_try="$ac_compile"
9342 case "(($ac_try" in
9343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344 *) ac_try_echo=$ac_try;;
9345 esac
9346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347 (eval "$ac_compile") 2>conftest.er1
9348 ac_status=$?
9349 grep -v '^ *+' conftest.er1 >conftest.err
9350 rm -f conftest.er1
9351 cat conftest.err >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } && {
9354 test -z "$ac_c_werror_flag" ||
9355 test ! -s conftest.err
9356 } && test -s conftest.$ac_objext; then
9357 ac_header_compiler=yes
9358 else
9359 echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.$ac_ext >&5
9361
9362 ac_header_compiler=no
9363 fi
9364
9365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9367 echo "${ECHO_T}$ac_header_compiler" >&6; }
9368
9369 # Is the header present?
9370 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9371 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9372 cat >conftest.$ac_ext <<_ACEOF
9373 /* confdefs.h. */
9374 _ACEOF
9375 cat confdefs.h >>conftest.$ac_ext
9376 cat >>conftest.$ac_ext <<_ACEOF
9377 /* end confdefs.h. */
9378 #include <Carbon/Carbon.h>
9379 _ACEOF
9380 if { (ac_try="$ac_cpp conftest.$ac_ext"
9381 case "(($ac_try" in
9382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9383 *) ac_try_echo=$ac_try;;
9384 esac
9385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9387 ac_status=$?
9388 grep -v '^ *+' conftest.er1 >conftest.err
9389 rm -f conftest.er1
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } >/dev/null && {
9393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9394 test ! -s conftest.err
9395 }; then
9396 ac_header_preproc=yes
9397 else
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9400
9401 ac_header_preproc=no
9402 fi
9403
9404 rm -f conftest.err conftest.$ac_ext
9405 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9406 echo "${ECHO_T}$ac_header_preproc" >&6; }
9407
9408 # So? What about this header?
9409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9410 yes:no: )
9411 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9412 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9413 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9414 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9415 ac_header_preproc=yes
9416 ;;
9417 no:yes:* )
9418 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9419 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9420 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9421 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9422 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9423 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9424 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9425 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9426 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9427 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9428 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9429 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9430
9431 ;;
9432 esac
9433 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9434 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9435 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9436 echo $ECHO_N "(cached) $ECHO_C" >&6
9437 else
9438 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9439 fi
9440 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9441 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9442
9443 fi
9444 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9445 HAVE_CARBON=yes
9446 fi
9447
9448
9449 fi
9450 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9451 if test "${with_carbon+set}" != set \
9452 && test "${carbon_appdir_x+set}" != set; then
9453 for var in with_x with_x_toolkit with_gtk with_xim \
9454 with_xpm with_jpeg with_tiff with_gif with_png; do
9455 if eval test \"\${$var+set}\" = set; then
9456 HAVE_CARBON=no
9457 break
9458 fi
9459 done
9460 fi
9461 fi
9462 if test "${HAVE_CARBON}" = yes; then
9463 window_system=mac
9464 fi
9465
9466 case "${window_system}" in
9467 x11 )
9468 HAVE_X_WINDOWS=yes
9469 HAVE_X11=yes
9470 case "${with_x_toolkit}" in
9471 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9472 motif ) USE_X_TOOLKIT=MOTIF ;;
9473 gtk ) with_gtk=yes
9474 USE_X_TOOLKIT=none ;;
9475 no ) USE_X_TOOLKIT=none ;;
9476 * ) USE_X_TOOLKIT=maybe ;;
9477 esac
9478 ;;
9479 mac | none )
9480 HAVE_X_WINDOWS=no
9481 HAVE_X11=no
9482 USE_X_TOOLKIT=none
9483 ;;
9484 esac
9485
9486 ### If we're using X11, we should use the X menu package.
9487 HAVE_MENUS=no
9488 case ${HAVE_X11} in
9489 yes ) HAVE_MENUS=yes ;;
9490 esac
9491
9492 if test "${opsys}" = "hpux9"; then
9493 case "${x_libraries}" in
9494 *X11R4* )
9495 opsysfile="s/hpux9-x11r4.h"
9496 ;;
9497 esac
9498 fi
9499
9500 if test "${opsys}" = "hpux9shr"; then
9501 case "${x_libraries}" in
9502 *X11R4* )
9503 opsysfile="s/hpux9shxr4.h"
9504 ;;
9505 esac
9506 fi
9507
9508 ### Compute the unexec source name from the object name.
9509 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9510
9511 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9512 # Assume not, until told otherwise.
9513 GNU_MALLOC=yes
9514 doug_lea_malloc=yes
9515 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9516 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9517 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9519 else
9520 cat >conftest.$ac_ext <<_ACEOF
9521 /* confdefs.h. */
9522 _ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9526 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9528 #define malloc_get_state innocuous_malloc_get_state
9529
9530 /* System header to define __stub macros and hopefully few prototypes,
9531 which can conflict with char malloc_get_state (); below.
9532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9533 <limits.h> exists even on freestanding compilers. */
9534
9535 #ifdef __STDC__
9536 # include <limits.h>
9537 #else
9538 # include <assert.h>
9539 #endif
9540
9541 #undef malloc_get_state
9542
9543 /* Override any GCC internal prototype to avoid an error.
9544 Use char because int might match the return type of a GCC
9545 builtin and then its argument prototype would still apply. */
9546 #ifdef __cplusplus
9547 extern "C"
9548 #endif
9549 char malloc_get_state ();
9550 /* The GNU C library defines this for functions which it implements
9551 to always fail with ENOSYS. Some functions are actually named
9552 something starting with __ and the normal name is an alias. */
9553 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9554 choke me
9555 #endif
9556
9557 int
9558 main ()
9559 {
9560 return malloc_get_state ();
9561 ;
9562 return 0;
9563 }
9564 _ACEOF
9565 rm -f conftest.$ac_objext conftest$ac_exeext
9566 if { (ac_try="$ac_link"
9567 case "(($ac_try" in
9568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569 *) ac_try_echo=$ac_try;;
9570 esac
9571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572 (eval "$ac_link") 2>conftest.er1
9573 ac_status=$?
9574 grep -v '^ *+' conftest.er1 >conftest.err
9575 rm -f conftest.er1
9576 cat conftest.err >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } && {
9579 test -z "$ac_c_werror_flag" ||
9580 test ! -s conftest.err
9581 } && test -s conftest$ac_exeext &&
9582 $as_test_x conftest$ac_exeext; then
9583 ac_cv_func_malloc_get_state=yes
9584 else
9585 echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9587
9588 ac_cv_func_malloc_get_state=no
9589 fi
9590
9591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9592 conftest$ac_exeext conftest.$ac_ext
9593 fi
9594 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9595 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9596 if test $ac_cv_func_malloc_get_state = yes; then
9597 :
9598 else
9599 doug_lea_malloc=no
9600 fi
9601
9602 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9603 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9604 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9605 echo $ECHO_N "(cached) $ECHO_C" >&6
9606 else
9607 cat >conftest.$ac_ext <<_ACEOF
9608 /* confdefs.h. */
9609 _ACEOF
9610 cat confdefs.h >>conftest.$ac_ext
9611 cat >>conftest.$ac_ext <<_ACEOF
9612 /* end confdefs.h. */
9613 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9615 #define malloc_set_state innocuous_malloc_set_state
9616
9617 /* System header to define __stub macros and hopefully few prototypes,
9618 which can conflict with char malloc_set_state (); below.
9619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9620 <limits.h> exists even on freestanding compilers. */
9621
9622 #ifdef __STDC__
9623 # include <limits.h>
9624 #else
9625 # include <assert.h>
9626 #endif
9627
9628 #undef malloc_set_state
9629
9630 /* Override any GCC internal prototype to avoid an error.
9631 Use char because int might match the return type of a GCC
9632 builtin and then its argument prototype would still apply. */
9633 #ifdef __cplusplus
9634 extern "C"
9635 #endif
9636 char malloc_set_state ();
9637 /* The GNU C library defines this for functions which it implements
9638 to always fail with ENOSYS. Some functions are actually named
9639 something starting with __ and the normal name is an alias. */
9640 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9641 choke me
9642 #endif
9643
9644 int
9645 main ()
9646 {
9647 return malloc_set_state ();
9648 ;
9649 return 0;
9650 }
9651 _ACEOF
9652 rm -f conftest.$ac_objext conftest$ac_exeext
9653 if { (ac_try="$ac_link"
9654 case "(($ac_try" in
9655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9656 *) ac_try_echo=$ac_try;;
9657 esac
9658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9659 (eval "$ac_link") 2>conftest.er1
9660 ac_status=$?
9661 grep -v '^ *+' conftest.er1 >conftest.err
9662 rm -f conftest.er1
9663 cat conftest.err >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } && {
9666 test -z "$ac_c_werror_flag" ||
9667 test ! -s conftest.err
9668 } && test -s conftest$ac_exeext &&
9669 $as_test_x conftest$ac_exeext; then
9670 ac_cv_func_malloc_set_state=yes
9671 else
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9674
9675 ac_cv_func_malloc_set_state=no
9676 fi
9677
9678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9679 conftest$ac_exeext conftest.$ac_ext
9680 fi
9681 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9682 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9683 if test $ac_cv_func_malloc_set_state = yes; then
9684 :
9685 else
9686 doug_lea_malloc=no
9687 fi
9688
9689 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9690 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9691 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 else
9694 cat >conftest.$ac_ext <<_ACEOF
9695 /* confdefs.h. */
9696 _ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h. */
9700 extern void (* __after_morecore_hook)();
9701 int
9702 main ()
9703 {
9704 __after_morecore_hook = 0
9705 ;
9706 return 0;
9707 }
9708 _ACEOF
9709 rm -f conftest.$ac_objext conftest$ac_exeext
9710 if { (ac_try="$ac_link"
9711 case "(($ac_try" in
9712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9713 *) ac_try_echo=$ac_try;;
9714 esac
9715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9716 (eval "$ac_link") 2>conftest.er1
9717 ac_status=$?
9718 grep -v '^ *+' conftest.er1 >conftest.err
9719 rm -f conftest.er1
9720 cat conftest.err >&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); } && {
9723 test -z "$ac_c_werror_flag" ||
9724 test ! -s conftest.err
9725 } && test -s conftest$ac_exeext &&
9726 $as_test_x conftest$ac_exeext; then
9727 emacs_cv_var___after_morecore_hook=yes
9728 else
9729 echo "$as_me: failed program was:" >&5
9730 sed 's/^/| /' conftest.$ac_ext >&5
9731
9732 emacs_cv_var___after_morecore_hook=no
9733 fi
9734
9735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9736 conftest$ac_exeext conftest.$ac_ext
9737 fi
9738 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9739 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9740 if test $emacs_cv_var___after_morecore_hook = no; then
9741 doug_lea_malloc=no
9742 fi
9743 if test "${system_malloc}" = "yes"; then
9744 GNU_MALLOC=no
9745 GNU_MALLOC_reason="
9746 (The GNU allocators don't work with this system configuration.)"
9747 fi
9748 if test "$doug_lea_malloc" = "yes" ; then
9749 if test "$GNU_MALLOC" = yes ; then
9750 GNU_MALLOC_reason="
9751 (Using Doug Lea's new malloc from the GNU C Library.)"
9752 fi
9753
9754 cat >>confdefs.h <<\_ACEOF
9755 #define DOUG_LEA_MALLOC 1
9756 _ACEOF
9757
9758 fi
9759
9760 if test x"${REL_ALLOC}" = x; then
9761 REL_ALLOC=${GNU_MALLOC}
9762 fi
9763
9764
9765
9766
9767 for ac_header in stdlib.h unistd.h
9768 do
9769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9771 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9774 echo $ECHO_N "(cached) $ECHO_C" >&6
9775 fi
9776 ac_res=`eval echo '${'$as_ac_Header'}'`
9777 { echo "$as_me:$LINENO: result: $ac_res" >&5
9778 echo "${ECHO_T}$ac_res" >&6; }
9779 else
9780 # Is the header compilable?
9781 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9783 cat >conftest.$ac_ext <<_ACEOF
9784 /* confdefs.h. */
9785 _ACEOF
9786 cat confdefs.h >>conftest.$ac_ext
9787 cat >>conftest.$ac_ext <<_ACEOF
9788 /* end confdefs.h. */
9789 $ac_includes_default
9790 #include <$ac_header>
9791 _ACEOF
9792 rm -f conftest.$ac_objext
9793 if { (ac_try="$ac_compile"
9794 case "(($ac_try" in
9795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796 *) ac_try_echo=$ac_try;;
9797 esac
9798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799 (eval "$ac_compile") 2>conftest.er1
9800 ac_status=$?
9801 grep -v '^ *+' conftest.er1 >conftest.err
9802 rm -f conftest.er1
9803 cat conftest.err >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } && {
9806 test -z "$ac_c_werror_flag" ||
9807 test ! -s conftest.err
9808 } && test -s conftest.$ac_objext; then
9809 ac_header_compiler=yes
9810 else
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9813
9814 ac_header_compiler=no
9815 fi
9816
9817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9819 echo "${ECHO_T}$ac_header_compiler" >&6; }
9820
9821 # Is the header present?
9822 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9824 cat >conftest.$ac_ext <<_ACEOF
9825 /* confdefs.h. */
9826 _ACEOF
9827 cat confdefs.h >>conftest.$ac_ext
9828 cat >>conftest.$ac_ext <<_ACEOF
9829 /* end confdefs.h. */
9830 #include <$ac_header>
9831 _ACEOF
9832 if { (ac_try="$ac_cpp conftest.$ac_ext"
9833 case "(($ac_try" in
9834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9836 esac
9837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9839 ac_status=$?
9840 grep -v '^ *+' conftest.er1 >conftest.err
9841 rm -f conftest.er1
9842 cat conftest.err >&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); } >/dev/null && {
9845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9846 test ! -s conftest.err
9847 }; then
9848 ac_header_preproc=yes
9849 else
9850 echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9852
9853 ac_header_preproc=no
9854 fi
9855
9856 rm -f conftest.err conftest.$ac_ext
9857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9858 echo "${ECHO_T}$ac_header_preproc" >&6; }
9859
9860 # So? What about this header?
9861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9862 yes:no: )
9863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9867 ac_header_preproc=yes
9868 ;;
9869 no:yes:* )
9870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9873 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9877 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9882
9883 ;;
9884 esac
9885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9888 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 else
9890 eval "$as_ac_Header=\$ac_header_preproc"
9891 fi
9892 ac_res=`eval echo '${'$as_ac_Header'}'`
9893 { echo "$as_me:$LINENO: result: $ac_res" >&5
9894 echo "${ECHO_T}$ac_res" >&6; }
9895
9896 fi
9897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9898 cat >>confdefs.h <<_ACEOF
9899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9900 _ACEOF
9901
9902 fi
9903
9904 done
9905
9906
9907 for ac_func in getpagesize
9908 do
9909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9910 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9912 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9913 echo $ECHO_N "(cached) $ECHO_C" >&6
9914 else
9915 cat >conftest.$ac_ext <<_ACEOF
9916 /* confdefs.h. */
9917 _ACEOF
9918 cat confdefs.h >>conftest.$ac_ext
9919 cat >>conftest.$ac_ext <<_ACEOF
9920 /* end confdefs.h. */
9921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9923 #define $ac_func innocuous_$ac_func
9924
9925 /* System header to define __stub macros and hopefully few prototypes,
9926 which can conflict with char $ac_func (); below.
9927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9928 <limits.h> exists even on freestanding compilers. */
9929
9930 #ifdef __STDC__
9931 # include <limits.h>
9932 #else
9933 # include <assert.h>
9934 #endif
9935
9936 #undef $ac_func
9937
9938 /* Override any GCC internal prototype to avoid an error.
9939 Use char because int might match the return type of a GCC
9940 builtin and then its argument prototype would still apply. */
9941 #ifdef __cplusplus
9942 extern "C"
9943 #endif
9944 char $ac_func ();
9945 /* The GNU C library defines this for functions which it implements
9946 to always fail with ENOSYS. Some functions are actually named
9947 something starting with __ and the normal name is an alias. */
9948 #if defined __stub_$ac_func || defined __stub___$ac_func
9949 choke me
9950 #endif
9951
9952 int
9953 main ()
9954 {
9955 return $ac_func ();
9956 ;
9957 return 0;
9958 }
9959 _ACEOF
9960 rm -f conftest.$ac_objext conftest$ac_exeext
9961 if { (ac_try="$ac_link"
9962 case "(($ac_try" in
9963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964 *) ac_try_echo=$ac_try;;
9965 esac
9966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967 (eval "$ac_link") 2>conftest.er1
9968 ac_status=$?
9969 grep -v '^ *+' conftest.er1 >conftest.err
9970 rm -f conftest.er1
9971 cat conftest.err >&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } && {
9974 test -z "$ac_c_werror_flag" ||
9975 test ! -s conftest.err
9976 } && test -s conftest$ac_exeext &&
9977 $as_test_x conftest$ac_exeext; then
9978 eval "$as_ac_var=yes"
9979 else
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9982
9983 eval "$as_ac_var=no"
9984 fi
9985
9986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9987 conftest$ac_exeext conftest.$ac_ext
9988 fi
9989 ac_res=`eval echo '${'$as_ac_var'}'`
9990 { echo "$as_me:$LINENO: result: $ac_res" >&5
9991 echo "${ECHO_T}$ac_res" >&6; }
9992 if test `eval echo '${'$as_ac_var'}'` = yes; then
9993 cat >>confdefs.h <<_ACEOF
9994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9995 _ACEOF
9996
9997 fi
9998 done
9999
10000 { echo "$as_me:$LINENO: checking for working mmap" >&5
10001 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10002 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10004 else
10005 if test "$cross_compiling" = yes; then
10006 ac_cv_func_mmap_fixed_mapped=no
10007 else
10008 cat >conftest.$ac_ext <<_ACEOF
10009 /* confdefs.h. */
10010 _ACEOF
10011 cat confdefs.h >>conftest.$ac_ext
10012 cat >>conftest.$ac_ext <<_ACEOF
10013 /* end confdefs.h. */
10014 $ac_includes_default
10015 /* malloc might have been renamed as rpl_malloc. */
10016 #undef malloc
10017
10018 /* Thanks to Mike Haertel and Jim Avera for this test.
10019 Here is a matrix of mmap possibilities:
10020 mmap private not fixed
10021 mmap private fixed at somewhere currently unmapped
10022 mmap private fixed at somewhere already mapped
10023 mmap shared not fixed
10024 mmap shared fixed at somewhere currently unmapped
10025 mmap shared fixed at somewhere already mapped
10026 For private mappings, we should verify that changes cannot be read()
10027 back from the file, nor mmap's back from the file at a different
10028 address. (There have been systems where private was not correctly
10029 implemented like the infamous i386 svr4.0, and systems where the
10030 VM page cache was not coherent with the file system buffer cache
10031 like early versions of FreeBSD and possibly contemporary NetBSD.)
10032 For shared mappings, we should conversely verify that changes get
10033 propagated back to all the places they're supposed to be.
10034
10035 Grep wants private fixed already mapped.
10036 The main things grep needs to know about mmap are:
10037 * does it exist and is it safe to write into the mmap'd area
10038 * how to use it (BSD variants) */
10039
10040 #include <fcntl.h>
10041 #include <sys/mman.h>
10042
10043 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10044 char *malloc ();
10045 #endif
10046
10047 /* This mess was copied from the GNU getpagesize.h. */
10048 #ifndef HAVE_GETPAGESIZE
10049 /* Assume that all systems that can run configure have sys/param.h. */
10050 # ifndef HAVE_SYS_PARAM_H
10051 # define HAVE_SYS_PARAM_H 1
10052 # endif
10053
10054 # ifdef _SC_PAGESIZE
10055 # define getpagesize() sysconf(_SC_PAGESIZE)
10056 # else /* no _SC_PAGESIZE */
10057 # ifdef HAVE_SYS_PARAM_H
10058 # include <sys/param.h>
10059 # ifdef EXEC_PAGESIZE
10060 # define getpagesize() EXEC_PAGESIZE
10061 # else /* no EXEC_PAGESIZE */
10062 # ifdef NBPG
10063 # define getpagesize() NBPG * CLSIZE
10064 # ifndef CLSIZE
10065 # define CLSIZE 1
10066 # endif /* no CLSIZE */
10067 # else /* no NBPG */
10068 # ifdef NBPC
10069 # define getpagesize() NBPC
10070 # else /* no NBPC */
10071 # ifdef PAGESIZE
10072 # define getpagesize() PAGESIZE
10073 # endif /* PAGESIZE */
10074 # endif /* no NBPC */
10075 # endif /* no NBPG */
10076 # endif /* no EXEC_PAGESIZE */
10077 # else /* no HAVE_SYS_PARAM_H */
10078 # define getpagesize() 8192 /* punt totally */
10079 # endif /* no HAVE_SYS_PARAM_H */
10080 # endif /* no _SC_PAGESIZE */
10081
10082 #endif /* no HAVE_GETPAGESIZE */
10083
10084 int
10085 main ()
10086 {
10087 char *data, *data2, *data3;
10088 int i, pagesize;
10089 int fd;
10090
10091 pagesize = getpagesize ();
10092
10093 /* First, make a file with some known garbage in it. */
10094 data = (char *) malloc (pagesize);
10095 if (!data)
10096 return 1;
10097 for (i = 0; i < pagesize; ++i)
10098 *(data + i) = rand ();
10099 umask (0);
10100 fd = creat ("conftest.mmap", 0600);
10101 if (fd < 0)
10102 return 1;
10103 if (write (fd, data, pagesize) != pagesize)
10104 return 1;
10105 close (fd);
10106
10107 /* Next, try to mmap the file at a fixed address which already has
10108 something else allocated at it. If we can, also make sure that
10109 we see the same garbage. */
10110 fd = open ("conftest.mmap", O_RDWR);
10111 if (fd < 0)
10112 return 1;
10113 data2 = (char *) malloc (2 * pagesize);
10114 if (!data2)
10115 return 1;
10116 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10117 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10118 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10119 return 1;
10120 for (i = 0; i < pagesize; ++i)
10121 if (*(data + i) != *(data2 + i))
10122 return 1;
10123
10124 /* Finally, make sure that changes to the mapped area do not
10125 percolate back to the file as seen by read(). (This is a bug on
10126 some variants of i386 svr4.0.) */
10127 for (i = 0; i < pagesize; ++i)
10128 *(data2 + i) = *(data2 + i) + 1;
10129 data3 = (char *) malloc (pagesize);
10130 if (!data3)
10131 return 1;
10132 if (read (fd, data3, pagesize) != pagesize)
10133 return 1;
10134 for (i = 0; i < pagesize; ++i)
10135 if (*(data + i) != *(data3 + i))
10136 return 1;
10137 close (fd);
10138 return 0;
10139 }
10140 _ACEOF
10141 rm -f conftest$ac_exeext
10142 if { (ac_try="$ac_link"
10143 case "(($ac_try" in
10144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145 *) ac_try_echo=$ac_try;;
10146 esac
10147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10148 (eval "$ac_link") 2>&5
10149 ac_status=$?
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10152 { (case "(($ac_try" in
10153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154 *) ac_try_echo=$ac_try;;
10155 esac
10156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10157 (eval "$ac_try") 2>&5
10158 ac_status=$?
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; }; then
10161 ac_cv_func_mmap_fixed_mapped=yes
10162 else
10163 echo "$as_me: program exited with status $ac_status" >&5
10164 echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10166
10167 ( exit $ac_status )
10168 ac_cv_func_mmap_fixed_mapped=no
10169 fi
10170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10171 fi
10172
10173
10174 fi
10175 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10176 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10177 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10178
10179 cat >>confdefs.h <<\_ACEOF
10180 #define HAVE_MMAP 1
10181 _ACEOF
10182
10183 fi
10184 rm -f conftest.mmap
10185
10186 if test $use_mmap_for_buffers = yes; then
10187 REL_ALLOC=no
10188 fi
10189
10190 LIBS="$libsrc_libs $LIBS"
10191
10192
10193 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10194 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10195 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10196 echo $ECHO_N "(cached) $ECHO_C" >&6
10197 else
10198 ac_check_lib_save_LIBS=$LIBS
10199 LIBS="-ldnet $LIBS"
10200 cat >conftest.$ac_ext <<_ACEOF
10201 /* confdefs.h. */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10206
10207 /* Override any GCC internal prototype to avoid an error.
10208 Use char because int might match the return type of a GCC
10209 builtin and then its argument prototype would still apply. */
10210 #ifdef __cplusplus
10211 extern "C"
10212 #endif
10213 char dnet_ntoa ();
10214 int
10215 main ()
10216 {
10217 return dnet_ntoa ();
10218 ;
10219 return 0;
10220 }
10221 _ACEOF
10222 rm -f conftest.$ac_objext conftest$ac_exeext
10223 if { (ac_try="$ac_link"
10224 case "(($ac_try" in
10225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10226 *) ac_try_echo=$ac_try;;
10227 esac
10228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10229 (eval "$ac_link") 2>conftest.er1
10230 ac_status=$?
10231 grep -v '^ *+' conftest.er1 >conftest.err
10232 rm -f conftest.er1
10233 cat conftest.err >&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } && {
10236 test -z "$ac_c_werror_flag" ||
10237 test ! -s conftest.err
10238 } && test -s conftest$ac_exeext &&
10239 $as_test_x conftest$ac_exeext; then
10240 ac_cv_lib_dnet_dnet_ntoa=yes
10241 else
10242 echo "$as_me: failed program was:" >&5
10243 sed 's/^/| /' conftest.$ac_ext >&5
10244
10245 ac_cv_lib_dnet_dnet_ntoa=no
10246 fi
10247
10248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10249 conftest$ac_exeext conftest.$ac_ext
10250 LIBS=$ac_check_lib_save_LIBS
10251 fi
10252 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10253 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10254 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10255 cat >>confdefs.h <<_ACEOF
10256 #define HAVE_LIBDNET 1
10257 _ACEOF
10258
10259 LIBS="-ldnet $LIBS"
10260
10261 fi
10262
10263
10264 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10265 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10266 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 else
10269 ac_check_lib_save_LIBS=$LIBS
10270 LIBS="-lXbsd $LIBS"
10271 cat >conftest.$ac_ext <<_ACEOF
10272 /* confdefs.h. */
10273 _ACEOF
10274 cat confdefs.h >>conftest.$ac_ext
10275 cat >>conftest.$ac_ext <<_ACEOF
10276 /* end confdefs.h. */
10277
10278
10279 int
10280 main ()
10281 {
10282 return main ();
10283 ;
10284 return 0;
10285 }
10286 _ACEOF
10287 rm -f conftest.$ac_objext conftest$ac_exeext
10288 if { (ac_try="$ac_link"
10289 case "(($ac_try" in
10290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10291 *) ac_try_echo=$ac_try;;
10292 esac
10293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10294 (eval "$ac_link") 2>conftest.er1
10295 ac_status=$?
10296 grep -v '^ *+' conftest.er1 >conftest.err
10297 rm -f conftest.er1
10298 cat conftest.err >&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } && {
10301 test -z "$ac_c_werror_flag" ||
10302 test ! -s conftest.err
10303 } && test -s conftest$ac_exeext &&
10304 $as_test_x conftest$ac_exeext; then
10305 ac_cv_lib_Xbsd_main=yes
10306 else
10307 echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10309
10310 ac_cv_lib_Xbsd_main=no
10311 fi
10312
10313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10314 conftest$ac_exeext conftest.$ac_ext
10315 LIBS=$ac_check_lib_save_LIBS
10316 fi
10317 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10318 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10319 if test $ac_cv_lib_Xbsd_main = yes; then
10320 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10321 fi
10322
10323
10324
10325 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10326 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10327 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10329 else
10330 ac_check_lib_save_LIBS=$LIBS
10331 LIBS="-lpthreads $LIBS"
10332 cat >conftest.$ac_ext <<_ACEOF
10333 /* confdefs.h. */
10334 _ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h. */
10338
10339 /* Override any GCC internal prototype to avoid an error.
10340 Use char because int might match the return type of a GCC
10341 builtin and then its argument prototype would still apply. */
10342 #ifdef __cplusplus
10343 extern "C"
10344 #endif
10345 char cma_open ();
10346 int
10347 main ()
10348 {
10349 return cma_open ();
10350 ;
10351 return 0;
10352 }
10353 _ACEOF
10354 rm -f conftest.$ac_objext conftest$ac_exeext
10355 if { (ac_try="$ac_link"
10356 case "(($ac_try" in
10357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10358 *) ac_try_echo=$ac_try;;
10359 esac
10360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10361 (eval "$ac_link") 2>conftest.er1
10362 ac_status=$?
10363 grep -v '^ *+' conftest.er1 >conftest.err
10364 rm -f conftest.er1
10365 cat conftest.err >&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); } && {
10368 test -z "$ac_c_werror_flag" ||
10369 test ! -s conftest.err
10370 } && test -s conftest$ac_exeext &&
10371 $as_test_x conftest$ac_exeext; then
10372 ac_cv_lib_pthreads_cma_open=yes
10373 else
10374 echo "$as_me: failed program was:" >&5
10375 sed 's/^/| /' conftest.$ac_ext >&5
10376
10377 ac_cv_lib_pthreads_cma_open=no
10378 fi
10379
10380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10381 conftest$ac_exeext conftest.$ac_ext
10382 LIBS=$ac_check_lib_save_LIBS
10383 fi
10384 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10385 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10386 if test $ac_cv_lib_pthreads_cma_open = yes; then
10387 cat >>confdefs.h <<_ACEOF
10388 #define HAVE_LIBPTHREADS 1
10389 _ACEOF
10390
10391 LIBS="-lpthreads $LIBS"
10392
10393 fi
10394
10395
10396 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10397 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10398 if test -d /usr/X386/include; then
10399 HAVE_XFREE386=yes
10400 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10401 else
10402 HAVE_XFREE386=no
10403 fi
10404 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10405 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10406
10407
10408 case ${host_os} in
10409 aix*)
10410 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10411 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10412 if test "${gdb_cv_bigtoc+set}" = set; then
10413 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 else
10415
10416 case $GCC in
10417 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10418 *) gdb_cv_bigtoc=-bbigtoc ;;
10419 esac
10420
10421 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10422 cat >conftest.$ac_ext <<_ACEOF
10423 /* confdefs.h. */
10424 _ACEOF
10425 cat confdefs.h >>conftest.$ac_ext
10426 cat >>conftest.$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10428
10429 int
10430 main ()
10431 {
10432 int i;
10433 ;
10434 return 0;
10435 }
10436 _ACEOF
10437 rm -f conftest.$ac_objext conftest$ac_exeext
10438 if { (ac_try="$ac_link"
10439 case "(($ac_try" in
10440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10441 *) ac_try_echo=$ac_try;;
10442 esac
10443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10444 (eval "$ac_link") 2>conftest.er1
10445 ac_status=$?
10446 grep -v '^ *+' conftest.er1 >conftest.err
10447 rm -f conftest.er1
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } && {
10451 test -z "$ac_c_werror_flag" ||
10452 test ! -s conftest.err
10453 } && test -s conftest$ac_exeext &&
10454 $as_test_x conftest$ac_exeext; then
10455 :
10456 else
10457 echo "$as_me: failed program was:" >&5
10458 sed 's/^/| /' conftest.$ac_ext >&5
10459
10460 gdb_cv_bigtoc=
10461 fi
10462
10463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10464 conftest$ac_exeext conftest.$ac_ext
10465
10466 fi
10467 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10468 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10469 ;;
10470 esac
10471
10472 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10473 # used for the tests that follow. We set them back to REAL_CFLAGS and
10474 # REAL_CPPFLAGS later on.
10475
10476 REAL_CPPFLAGS="$CPPFLAGS"
10477
10478 if test "${HAVE_X11}" = "yes"; then
10479 DEFS="$C_SWITCH_X_SITE $DEFS"
10480 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10481 LIBS="$LIBX $LIBS"
10482 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10483 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10484
10485 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10486 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10487 # but it's more convenient here to set LD_RUN_PATH
10488 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10489 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10490 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10491 export LD_RUN_PATH
10492 fi
10493
10494 if test "${opsys}" = "gnu-linux"; then
10495 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10496 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10497 cat >conftest.$ac_ext <<_ACEOF
10498 /* confdefs.h. */
10499 _ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h. */
10503
10504 int
10505 main ()
10506 {
10507 XOpenDisplay ("foo");
10508 ;
10509 return 0;
10510 }
10511 _ACEOF
10512 rm -f conftest.$ac_objext conftest$ac_exeext
10513 if { (ac_try="$ac_link"
10514 case "(($ac_try" in
10515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10516 *) ac_try_echo=$ac_try;;
10517 esac
10518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10519 (eval "$ac_link") 2>conftest.er1
10520 ac_status=$?
10521 grep -v '^ *+' conftest.er1 >conftest.err
10522 rm -f conftest.er1
10523 cat conftest.err >&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); } && {
10526 test -z "$ac_c_werror_flag" ||
10527 test ! -s conftest.err
10528 } && test -s conftest$ac_exeext &&
10529 $as_test_x conftest$ac_exeext; then
10530 xlinux_first_failure=no
10531 else
10532 echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10534
10535 xlinux_first_failure=yes
10536 fi
10537
10538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10539 conftest$ac_exeext conftest.$ac_ext
10540 if test "${xlinux_first_failure}" = "yes"; then
10541 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10542 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10543 OLD_CPPFLAGS="$CPPFLAGS"
10544 OLD_LIBS="$LIBS"
10545 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10546 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10547 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10548 LIBS="$LIBS -b i486-linuxaout"
10549 cat >conftest.$ac_ext <<_ACEOF
10550 /* confdefs.h. */
10551 _ACEOF
10552 cat confdefs.h >>conftest.$ac_ext
10553 cat >>conftest.$ac_ext <<_ACEOF
10554 /* end confdefs.h. */
10555
10556 int
10557 main ()
10558 {
10559 XOpenDisplay ("foo");
10560 ;
10561 return 0;
10562 }
10563 _ACEOF
10564 rm -f conftest.$ac_objext conftest$ac_exeext
10565 if { (ac_try="$ac_link"
10566 case "(($ac_try" in
10567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568 *) ac_try_echo=$ac_try;;
10569 esac
10570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10571 (eval "$ac_link") 2>conftest.er1
10572 ac_status=$?
10573 grep -v '^ *+' conftest.er1 >conftest.err
10574 rm -f conftest.er1
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } && {
10578 test -z "$ac_c_werror_flag" ||
10579 test ! -s conftest.err
10580 } && test -s conftest$ac_exeext &&
10581 $as_test_x conftest$ac_exeext; then
10582 xlinux_second_failure=no
10583 else
10584 echo "$as_me: failed program was:" >&5
10585 sed 's/^/| /' conftest.$ac_ext >&5
10586
10587 xlinux_second_failure=yes
10588 fi
10589
10590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10591 conftest$ac_exeext conftest.$ac_ext
10592 if test "${xlinux_second_failure}" = "yes"; then
10593 # If we get the same failure with -b, there is no use adding -b.
10594 # So take it out. This plays safe.
10595 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10596 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10597 CPPFLAGS="$OLD_CPPFLAGS"
10598 LIBS="$OLD_LIBS"
10599 { echo "$as_me:$LINENO: result: no" >&5
10600 echo "${ECHO_T}no" >&6; }
10601 else
10602 { echo "$as_me:$LINENO: result: yes" >&5
10603 echo "${ECHO_T}yes" >&6; }
10604 fi
10605 else
10606 { echo "$as_me:$LINENO: result: no" >&5
10607 echo "${ECHO_T}no" >&6; }
10608 fi
10609 fi
10610
10611 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10612 # header files included from there.
10613 { echo "$as_me:$LINENO: checking for Xkb" >&5
10614 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10615 cat >conftest.$ac_ext <<_ACEOF
10616 /* confdefs.h. */
10617 _ACEOF
10618 cat confdefs.h >>conftest.$ac_ext
10619 cat >>conftest.$ac_ext <<_ACEOF
10620 /* end confdefs.h. */
10621 #include <X11/Xlib.h>
10622 #include <X11/XKBlib.h>
10623 int
10624 main ()
10625 {
10626 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10627 ;
10628 return 0;
10629 }
10630 _ACEOF
10631 rm -f conftest.$ac_objext conftest$ac_exeext
10632 if { (ac_try="$ac_link"
10633 case "(($ac_try" in
10634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10635 *) ac_try_echo=$ac_try;;
10636 esac
10637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10638 (eval "$ac_link") 2>conftest.er1
10639 ac_status=$?
10640 grep -v '^ *+' conftest.er1 >conftest.err
10641 rm -f conftest.er1
10642 cat conftest.err >&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } && {
10645 test -z "$ac_c_werror_flag" ||
10646 test ! -s conftest.err
10647 } && test -s conftest$ac_exeext &&
10648 $as_test_x conftest$ac_exeext; then
10649 emacs_xkb=yes
10650 else
10651 echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.$ac_ext >&5
10653
10654 emacs_xkb=no
10655 fi
10656
10657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10658 conftest$ac_exeext conftest.$ac_ext
10659 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10660 echo "${ECHO_T}$emacs_xkb" >&6; }
10661 if test $emacs_xkb = yes; then
10662
10663 cat >>confdefs.h <<\_ACEOF
10664 #define HAVE_XKBGETKEYBOARD 1
10665 _ACEOF
10666
10667 fi
10668
10669
10670
10671
10672
10673 for ac_func in XrmSetDatabase XScreenResourceString \
10674 XScreenNumberOfScreen XSetWMProtocols
10675 do
10676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10677 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10679 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 else
10682 cat >conftest.$ac_ext <<_ACEOF
10683 /* confdefs.h. */
10684 _ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10690 #define $ac_func innocuous_$ac_func
10691
10692 /* System header to define __stub macros and hopefully few prototypes,
10693 which can conflict with char $ac_func (); below.
10694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10695 <limits.h> exists even on freestanding compilers. */
10696
10697 #ifdef __STDC__
10698 # include <limits.h>
10699 #else
10700 # include <assert.h>
10701 #endif
10702
10703 #undef $ac_func
10704
10705 /* Override any GCC internal prototype to avoid an error.
10706 Use char because int might match the return type of a GCC
10707 builtin and then its argument prototype would still apply. */
10708 #ifdef __cplusplus
10709 extern "C"
10710 #endif
10711 char $ac_func ();
10712 /* The GNU C library defines this for functions which it implements
10713 to always fail with ENOSYS. Some functions are actually named
10714 something starting with __ and the normal name is an alias. */
10715 #if defined __stub_$ac_func || defined __stub___$ac_func
10716 choke me
10717 #endif
10718
10719 int
10720 main ()
10721 {
10722 return $ac_func ();
10723 ;
10724 return 0;
10725 }
10726 _ACEOF
10727 rm -f conftest.$ac_objext conftest$ac_exeext
10728 if { (ac_try="$ac_link"
10729 case "(($ac_try" in
10730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731 *) ac_try_echo=$ac_try;;
10732 esac
10733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734 (eval "$ac_link") 2>conftest.er1
10735 ac_status=$?
10736 grep -v '^ *+' conftest.er1 >conftest.err
10737 rm -f conftest.er1
10738 cat conftest.err >&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); } && {
10741 test -z "$ac_c_werror_flag" ||
10742 test ! -s conftest.err
10743 } && test -s conftest$ac_exeext &&
10744 $as_test_x conftest$ac_exeext; then
10745 eval "$as_ac_var=yes"
10746 else
10747 echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10749
10750 eval "$as_ac_var=no"
10751 fi
10752
10753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10754 conftest$ac_exeext conftest.$ac_ext
10755 fi
10756 ac_res=`eval echo '${'$as_ac_var'}'`
10757 { echo "$as_me:$LINENO: result: $ac_res" >&5
10758 echo "${ECHO_T}$ac_res" >&6; }
10759 if test `eval echo '${'$as_ac_var'}'` = yes; then
10760 cat >>confdefs.h <<_ACEOF
10761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10762 _ACEOF
10763
10764 fi
10765 done
10766
10767 fi
10768
10769 if test "${window_system}" = "x11"; then
10770 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10771 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10772 if test "${emacs_cv_x11_version_6+set}" = set; then
10773 echo $ECHO_N "(cached) $ECHO_C" >&6
10774 else
10775 cat >conftest.$ac_ext <<_ACEOF
10776 /* confdefs.h. */
10777 _ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10781 #include <X11/Xlib.h>
10782 int
10783 main ()
10784 {
10785 #if XlibSpecificationRelease < 6
10786 fail;
10787 #endif
10788
10789 ;
10790 return 0;
10791 }
10792 _ACEOF
10793 rm -f conftest.$ac_objext conftest$ac_exeext
10794 if { (ac_try="$ac_link"
10795 case "(($ac_try" in
10796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797 *) ac_try_echo=$ac_try;;
10798 esac
10799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800 (eval "$ac_link") 2>conftest.er1
10801 ac_status=$?
10802 grep -v '^ *+' conftest.er1 >conftest.err
10803 rm -f conftest.er1
10804 cat conftest.err >&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } && {
10807 test -z "$ac_c_werror_flag" ||
10808 test ! -s conftest.err
10809 } && test -s conftest$ac_exeext &&
10810 $as_test_x conftest$ac_exeext; then
10811 emacs_cv_x11_version_6=yes
10812 else
10813 echo "$as_me: failed program was:" >&5
10814 sed 's/^/| /' conftest.$ac_ext >&5
10815
10816 emacs_cv_x11_version_6=no
10817 fi
10818
10819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10820 conftest$ac_exeext conftest.$ac_ext
10821 fi
10822
10823 if test $emacs_cv_x11_version_6 = yes; then
10824 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10825 echo "${ECHO_T}6 or newer" >&6; }
10826
10827 cat >>confdefs.h <<\_ACEOF
10828 #define HAVE_X11R6 1
10829 _ACEOF
10830
10831 else
10832 { echo "$as_me:$LINENO: result: before 6" >&5
10833 echo "${ECHO_T}before 6" >&6; }
10834 fi
10835 fi
10836
10837 if test "${window_system}" = "x11"; then
10838 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10839 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10840 if test "${emacs_cv_x11_version_5+set}" = set; then
10841 echo $ECHO_N "(cached) $ECHO_C" >&6
10842 else
10843 cat >conftest.$ac_ext <<_ACEOF
10844 /* confdefs.h. */
10845 _ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h. */
10849 #include <X11/Xlib.h>
10850 int
10851 main ()
10852 {
10853 #if XlibSpecificationRelease < 5
10854 fail;
10855 #endif
10856
10857 ;
10858 return 0;
10859 }
10860 _ACEOF
10861 rm -f conftest.$ac_objext conftest$ac_exeext
10862 if { (ac_try="$ac_link"
10863 case "(($ac_try" in
10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865 *) ac_try_echo=$ac_try;;
10866 esac
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868 (eval "$ac_link") 2>conftest.er1
10869 ac_status=$?
10870 grep -v '^ *+' conftest.er1 >conftest.err
10871 rm -f conftest.er1
10872 cat conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } && {
10875 test -z "$ac_c_werror_flag" ||
10876 test ! -s conftest.err
10877 } && test -s conftest$ac_exeext &&
10878 $as_test_x conftest$ac_exeext; then
10879 emacs_cv_x11_version_5=yes
10880 else
10881 echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10883
10884 emacs_cv_x11_version_5=no
10885 fi
10886
10887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10888 conftest$ac_exeext conftest.$ac_ext
10889 fi
10890
10891 if test $emacs_cv_x11_version_5 = yes; then
10892 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10893 echo "${ECHO_T}5 or newer" >&6; }
10894 HAVE_X11R5=yes
10895
10896 cat >>confdefs.h <<\_ACEOF
10897 #define HAVE_X11R5 1
10898 _ACEOF
10899
10900 else
10901 HAVE_X11R5=no
10902 { echo "$as_me:$LINENO: result: before 5" >&5
10903 echo "${ECHO_T}before 5" >&6; }
10904 fi
10905 fi
10906
10907 HAVE_GTK=no
10908 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10909 USE_X_TOOLKIT=none
10910 fi
10911 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10912 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10913 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10914 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10915 { (exit 1); exit 1; }; };
10916 fi
10917 GLIB_REQUIRED=2.4
10918 GTK_REQUIRED=2.4
10919 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10920
10921 if test "X${with_pkg_config_prog}" != X; then
10922 PKG_CONFIG="${with_pkg_config_prog}"
10923 fi
10924
10925 succeeded=no
10926
10927 if test -z "$PKG_CONFIG"; then
10928 # Extract the first word of "pkg-config", so it can be a program name with args.
10929 set dummy pkg-config; ac_word=$2
10930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10932 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
10934 else
10935 case $PKG_CONFIG in
10936 [\\/]* | ?:[\\/]*)
10937 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10938 ;;
10939 *)
10940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941 for as_dir in $PATH
10942 do
10943 IFS=$as_save_IFS
10944 test -z "$as_dir" && as_dir=.
10945 for ac_exec_ext in '' $ac_executable_extensions; do
10946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10947 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10949 break 2
10950 fi
10951 done
10952 done
10953 IFS=$as_save_IFS
10954
10955 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10956 ;;
10957 esac
10958 fi
10959 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10960 if test -n "$PKG_CONFIG"; then
10961 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10962 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10963 else
10964 { echo "$as_me:$LINENO: result: no" >&5
10965 echo "${ECHO_T}no" >&6; }
10966 fi
10967
10968
10969 fi
10970
10971 if test "$PKG_CONFIG" = "no" ; then
10972 { { echo "$as_me:$LINENO: error:
10973 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
10974 echo "$as_me: error:
10975 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
10976 { (exit 1); exit 1; }; }
10977 else
10978 PKG_CONFIG_MIN_VERSION=0.9.0
10979 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10980 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10981 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10982
10983 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10984 { echo "$as_me:$LINENO: result: yes" >&5
10985 echo "${ECHO_T}yes" >&6; }
10986 succeeded=yes
10987
10988 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10989 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10990 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10991 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10992 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10993
10994 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10995 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10996 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10997 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10998 echo "${ECHO_T}$GTK_LIBS" >&6; }
10999 else
11000 { echo "$as_me:$LINENO: result: no" >&5
11001 echo "${ECHO_T}no" >&6; }
11002 GTK_CFLAGS=""
11003 GTK_LIBS=""
11004 ## If we have a custom action on failure, don't print errors, but
11005 ## do set a variable so people can do so.
11006 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11007 echo $GTK_PKG_ERRORS
11008 fi
11009
11010
11011
11012 else
11013 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11014 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11015 fi
11016 fi
11017
11018 if test $succeeded = yes; then
11019 :
11020 else
11021 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
11022 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
11023 { (exit 1); exit 1; }; }
11024 fi
11025
11026
11027
11028 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11029 CFLAGS="$CFLAGS $GTK_CFLAGS"
11030 LIBS="$GTK_LIBS $LIBS"
11031 GTK_COMPILES=no
11032
11033 for ac_func in gtk_main
11034 do
11035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11036 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11039 echo $ECHO_N "(cached) $ECHO_C" >&6
11040 else
11041 cat >conftest.$ac_ext <<_ACEOF
11042 /* confdefs.h. */
11043 _ACEOF
11044 cat confdefs.h >>conftest.$ac_ext
11045 cat >>conftest.$ac_ext <<_ACEOF
11046 /* end confdefs.h. */
11047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11049 #define $ac_func innocuous_$ac_func
11050
11051 /* System header to define __stub macros and hopefully few prototypes,
11052 which can conflict with char $ac_func (); below.
11053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11054 <limits.h> exists even on freestanding compilers. */
11055
11056 #ifdef __STDC__
11057 # include <limits.h>
11058 #else
11059 # include <assert.h>
11060 #endif
11061
11062 #undef $ac_func
11063
11064 /* Override any GCC internal prototype to avoid an error.
11065 Use char because int might match the return type of a GCC
11066 builtin and then its argument prototype would still apply. */
11067 #ifdef __cplusplus
11068 extern "C"
11069 #endif
11070 char $ac_func ();
11071 /* The GNU C library defines this for functions which it implements
11072 to always fail with ENOSYS. Some functions are actually named
11073 something starting with __ and the normal name is an alias. */
11074 #if defined __stub_$ac_func || defined __stub___$ac_func
11075 choke me
11076 #endif
11077
11078 int
11079 main ()
11080 {
11081 return $ac_func ();
11082 ;
11083 return 0;
11084 }
11085 _ACEOF
11086 rm -f conftest.$ac_objext conftest$ac_exeext
11087 if { (ac_try="$ac_link"
11088 case "(($ac_try" in
11089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090 *) ac_try_echo=$ac_try;;
11091 esac
11092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11093 (eval "$ac_link") 2>conftest.er1
11094 ac_status=$?
11095 grep -v '^ *+' conftest.er1 >conftest.err
11096 rm -f conftest.er1
11097 cat conftest.err >&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); } && {
11100 test -z "$ac_c_werror_flag" ||
11101 test ! -s conftest.err
11102 } && test -s conftest$ac_exeext &&
11103 $as_test_x conftest$ac_exeext; then
11104 eval "$as_ac_var=yes"
11105 else
11106 echo "$as_me: failed program was:" >&5
11107 sed 's/^/| /' conftest.$ac_ext >&5
11108
11109 eval "$as_ac_var=no"
11110 fi
11111
11112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11113 conftest$ac_exeext conftest.$ac_ext
11114 fi
11115 ac_res=`eval echo '${'$as_ac_var'}'`
11116 { echo "$as_me:$LINENO: result: $ac_res" >&5
11117 echo "${ECHO_T}$ac_res" >&6; }
11118 if test `eval echo '${'$as_ac_var'}'` = yes; then
11119 cat >>confdefs.h <<_ACEOF
11120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11121 _ACEOF
11122 GTK_COMPILES=yes
11123 fi
11124 done
11125
11126 if test "${GTK_COMPILES}" != "yes"; then
11127 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11128 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11129 { (exit 1); exit 1; }; };
11130 fi
11131
11132 HAVE_GTK=yes
11133
11134 cat >>confdefs.h <<\_ACEOF
11135 #define HAVE_GTK 1
11136 _ACEOF
11137
11138 USE_X_TOOLKIT=none
11139
11140 if test "$with_toolkit_scroll_bars" != no; then
11141 with_toolkit_scroll_bars=yes
11142 fi
11143
11144 HAVE_GTK_MULTIDISPLAY=no
11145
11146 for ac_func in gdk_display_open
11147 do
11148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11153 else
11154 cat >conftest.$ac_ext <<_ACEOF
11155 /* confdefs.h. */
11156 _ACEOF
11157 cat confdefs.h >>conftest.$ac_ext
11158 cat >>conftest.$ac_ext <<_ACEOF
11159 /* end confdefs.h. */
11160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11162 #define $ac_func innocuous_$ac_func
11163
11164 /* System header to define __stub macros and hopefully few prototypes,
11165 which can conflict with char $ac_func (); below.
11166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11167 <limits.h> exists even on freestanding compilers. */
11168
11169 #ifdef __STDC__
11170 # include <limits.h>
11171 #else
11172 # include <assert.h>
11173 #endif
11174
11175 #undef $ac_func
11176
11177 /* Override any GCC internal prototype to avoid an error.
11178 Use char because int might match the return type of a GCC
11179 builtin and then its argument prototype would still apply. */
11180 #ifdef __cplusplus
11181 extern "C"
11182 #endif
11183 char $ac_func ();
11184 /* The GNU C library defines this for functions which it implements
11185 to always fail with ENOSYS. Some functions are actually named
11186 something starting with __ and the normal name is an alias. */
11187 #if defined __stub_$ac_func || defined __stub___$ac_func
11188 choke me
11189 #endif
11190
11191 int
11192 main ()
11193 {
11194 return $ac_func ();
11195 ;
11196 return 0;
11197 }
11198 _ACEOF
11199 rm -f conftest.$ac_objext conftest$ac_exeext
11200 if { (ac_try="$ac_link"
11201 case "(($ac_try" in
11202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203 *) ac_try_echo=$ac_try;;
11204 esac
11205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11206 (eval "$ac_link") 2>conftest.er1
11207 ac_status=$?
11208 grep -v '^ *+' conftest.er1 >conftest.err
11209 rm -f conftest.er1
11210 cat conftest.err >&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); } && {
11213 test -z "$ac_c_werror_flag" ||
11214 test ! -s conftest.err
11215 } && test -s conftest$ac_exeext &&
11216 $as_test_x conftest$ac_exeext; then
11217 eval "$as_ac_var=yes"
11218 else
11219 echo "$as_me: failed program was:" >&5
11220 sed 's/^/| /' conftest.$ac_ext >&5
11221
11222 eval "$as_ac_var=no"
11223 fi
11224
11225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11226 conftest$ac_exeext conftest.$ac_ext
11227 fi
11228 ac_res=`eval echo '${'$as_ac_var'}'`
11229 { echo "$as_me:$LINENO: result: $ac_res" >&5
11230 echo "${ECHO_T}$ac_res" >&6; }
11231 if test `eval echo '${'$as_ac_var'}'` = yes; then
11232 cat >>confdefs.h <<_ACEOF
11233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11234 _ACEOF
11235 HAVE_GTK_MULTIDISPLAY=yes
11236 fi
11237 done
11238
11239 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11240
11241 cat >>confdefs.h <<\_ACEOF
11242 #define HAVE_GTK_MULTIDISPLAY 1
11243 _ACEOF
11244
11245 fi
11246 HAVE_GTK_FILE_SELECTION=no
11247
11248 for ac_func in gtk_file_selection_new
11249 do
11250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11251 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 else
11256 cat >conftest.$ac_ext <<_ACEOF
11257 /* confdefs.h. */
11258 _ACEOF
11259 cat confdefs.h >>conftest.$ac_ext
11260 cat >>conftest.$ac_ext <<_ACEOF
11261 /* end confdefs.h. */
11262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11264 #define $ac_func innocuous_$ac_func
11265
11266 /* System header to define __stub macros and hopefully few prototypes,
11267 which can conflict with char $ac_func (); below.
11268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11269 <limits.h> exists even on freestanding compilers. */
11270
11271 #ifdef __STDC__
11272 # include <limits.h>
11273 #else
11274 # include <assert.h>
11275 #endif
11276
11277 #undef $ac_func
11278
11279 /* Override any GCC internal prototype to avoid an error.
11280 Use char because int might match the return type of a GCC
11281 builtin and then its argument prototype would still apply. */
11282 #ifdef __cplusplus
11283 extern "C"
11284 #endif
11285 char $ac_func ();
11286 /* The GNU C library defines this for functions which it implements
11287 to always fail with ENOSYS. Some functions are actually named
11288 something starting with __ and the normal name is an alias. */
11289 #if defined __stub_$ac_func || defined __stub___$ac_func
11290 choke me
11291 #endif
11292
11293 int
11294 main ()
11295 {
11296 return $ac_func ();
11297 ;
11298 return 0;
11299 }
11300 _ACEOF
11301 rm -f conftest.$ac_objext conftest$ac_exeext
11302 if { (ac_try="$ac_link"
11303 case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11306 esac
11307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308 (eval "$ac_link") 2>conftest.er1
11309 ac_status=$?
11310 grep -v '^ *+' conftest.er1 >conftest.err
11311 rm -f conftest.er1
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } && {
11315 test -z "$ac_c_werror_flag" ||
11316 test ! -s conftest.err
11317 } && test -s conftest$ac_exeext &&
11318 $as_test_x conftest$ac_exeext; then
11319 eval "$as_ac_var=yes"
11320 else
11321 echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11323
11324 eval "$as_ac_var=no"
11325 fi
11326
11327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11328 conftest$ac_exeext conftest.$ac_ext
11329 fi
11330 ac_res=`eval echo '${'$as_ac_var'}'`
11331 { echo "$as_me:$LINENO: result: $ac_res" >&5
11332 echo "${ECHO_T}$ac_res" >&6; }
11333 if test `eval echo '${'$as_ac_var'}'` = yes; then
11334 cat >>confdefs.h <<_ACEOF
11335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11336 _ACEOF
11337 HAVE_GTK_FILE_SELECTION=yes
11338 fi
11339 done
11340
11341
11342 HAVE_GTK_FILE_CHOOSER=no
11343
11344 for ac_func in gtk_file_chooser_dialog_new
11345 do
11346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11347 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11349 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11350 echo $ECHO_N "(cached) $ECHO_C" >&6
11351 else
11352 cat >conftest.$ac_ext <<_ACEOF
11353 /* confdefs.h. */
11354 _ACEOF
11355 cat confdefs.h >>conftest.$ac_ext
11356 cat >>conftest.$ac_ext <<_ACEOF
11357 /* end confdefs.h. */
11358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11360 #define $ac_func innocuous_$ac_func
11361
11362 /* System header to define __stub macros and hopefully few prototypes,
11363 which can conflict with char $ac_func (); below.
11364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11365 <limits.h> exists even on freestanding compilers. */
11366
11367 #ifdef __STDC__
11368 # include <limits.h>
11369 #else
11370 # include <assert.h>
11371 #endif
11372
11373 #undef $ac_func
11374
11375 /* Override any GCC internal prototype to avoid an error.
11376 Use char because int might match the return type of a GCC
11377 builtin and then its argument prototype would still apply. */
11378 #ifdef __cplusplus
11379 extern "C"
11380 #endif
11381 char $ac_func ();
11382 /* The GNU C library defines this for functions which it implements
11383 to always fail with ENOSYS. Some functions are actually named
11384 something starting with __ and the normal name is an alias. */
11385 #if defined __stub_$ac_func || defined __stub___$ac_func
11386 choke me
11387 #endif
11388
11389 int
11390 main ()
11391 {
11392 return $ac_func ();
11393 ;
11394 return 0;
11395 }
11396 _ACEOF
11397 rm -f conftest.$ac_objext conftest$ac_exeext
11398 if { (ac_try="$ac_link"
11399 case "(($ac_try" in
11400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11401 *) ac_try_echo=$ac_try;;
11402 esac
11403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11404 (eval "$ac_link") 2>conftest.er1
11405 ac_status=$?
11406 grep -v '^ *+' conftest.er1 >conftest.err
11407 rm -f conftest.er1
11408 cat conftest.err >&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); } && {
11411 test -z "$ac_c_werror_flag" ||
11412 test ! -s conftest.err
11413 } && test -s conftest$ac_exeext &&
11414 $as_test_x conftest$ac_exeext; then
11415 eval "$as_ac_var=yes"
11416 else
11417 echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11419
11420 eval "$as_ac_var=no"
11421 fi
11422
11423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11424 conftest$ac_exeext conftest.$ac_ext
11425 fi
11426 ac_res=`eval echo '${'$as_ac_var'}'`
11427 { echo "$as_me:$LINENO: result: $ac_res" >&5
11428 echo "${ECHO_T}$ac_res" >&6; }
11429 if test `eval echo '${'$as_ac_var'}'` = yes; then
11430 cat >>confdefs.h <<_ACEOF
11431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11432 _ACEOF
11433 HAVE_GTK_FILE_CHOOSER=yes
11434 fi
11435 done
11436
11437
11438 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11439 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11440
11441 cat >>confdefs.h <<\_ACEOF
11442 #define HAVE_GTK_FILE_BOTH 1
11443 _ACEOF
11444
11445 fi
11446
11447 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11448 HAVE_GTK_AND_PTHREAD=no
11449
11450 for ac_header in pthread.h
11451 do
11452 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11457 echo $ECHO_N "(cached) $ECHO_C" >&6
11458 fi
11459 ac_res=`eval echo '${'$as_ac_Header'}'`
11460 { echo "$as_me:$LINENO: result: $ac_res" >&5
11461 echo "${ECHO_T}$ac_res" >&6; }
11462 else
11463 # Is the header compilable?
11464 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11466 cat >conftest.$ac_ext <<_ACEOF
11467 /* confdefs.h. */
11468 _ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h. */
11472 $ac_includes_default
11473 #include <$ac_header>
11474 _ACEOF
11475 rm -f conftest.$ac_objext
11476 if { (ac_try="$ac_compile"
11477 case "(($ac_try" in
11478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479 *) ac_try_echo=$ac_try;;
11480 esac
11481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482 (eval "$ac_compile") 2>conftest.er1
11483 ac_status=$?
11484 grep -v '^ *+' conftest.er1 >conftest.err
11485 rm -f conftest.er1
11486 cat conftest.err >&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } && {
11489 test -z "$ac_c_werror_flag" ||
11490 test ! -s conftest.err
11491 } && test -s conftest.$ac_objext; then
11492 ac_header_compiler=yes
11493 else
11494 echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11496
11497 ac_header_compiler=no
11498 fi
11499
11500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11501 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11502 echo "${ECHO_T}$ac_header_compiler" >&6; }
11503
11504 # Is the header present?
11505 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11507 cat >conftest.$ac_ext <<_ACEOF
11508 /* confdefs.h. */
11509 _ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h. */
11513 #include <$ac_header>
11514 _ACEOF
11515 if { (ac_try="$ac_cpp conftest.$ac_ext"
11516 case "(($ac_try" in
11517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518 *) ac_try_echo=$ac_try;;
11519 esac
11520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11522 ac_status=$?
11523 grep -v '^ *+' conftest.er1 >conftest.err
11524 rm -f conftest.er1
11525 cat conftest.err >&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } >/dev/null && {
11528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11529 test ! -s conftest.err
11530 }; then
11531 ac_header_preproc=yes
11532 else
11533 echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11535
11536 ac_header_preproc=no
11537 fi
11538
11539 rm -f conftest.err conftest.$ac_ext
11540 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11541 echo "${ECHO_T}$ac_header_preproc" >&6; }
11542
11543 # So? What about this header?
11544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11545 yes:no: )
11546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11547 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11549 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11550 ac_header_preproc=yes
11551 ;;
11552 no:yes:* )
11553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11558 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11559 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11560 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11563 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11564 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11565
11566 ;;
11567 esac
11568 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11572 else
11573 eval "$as_ac_Header=\$ac_header_preproc"
11574 fi
11575 ac_res=`eval echo '${'$as_ac_Header'}'`
11576 { echo "$as_me:$LINENO: result: $ac_res" >&5
11577 echo "${ECHO_T}$ac_res" >&6; }
11578
11579 fi
11580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11581 cat >>confdefs.h <<_ACEOF
11582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11583 _ACEOF
11584
11585 fi
11586
11587 done
11588
11589 if test "$ac_cv_header_pthread_h"; then
11590 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11591 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11592 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11593 echo $ECHO_N "(cached) $ECHO_C" >&6
11594 else
11595 ac_check_lib_save_LIBS=$LIBS
11596 LIBS="-lpthread $LIBS"
11597 cat >conftest.$ac_ext <<_ACEOF
11598 /* confdefs.h. */
11599 _ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h. */
11603
11604 /* Override any GCC internal prototype to avoid an error.
11605 Use char because int might match the return type of a GCC
11606 builtin and then its argument prototype would still apply. */
11607 #ifdef __cplusplus
11608 extern "C"
11609 #endif
11610 char pthread_self ();
11611 int
11612 main ()
11613 {
11614 return pthread_self ();
11615 ;
11616 return 0;
11617 }
11618 _ACEOF
11619 rm -f conftest.$ac_objext conftest$ac_exeext
11620 if { (ac_try="$ac_link"
11621 case "(($ac_try" in
11622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11623 *) ac_try_echo=$ac_try;;
11624 esac
11625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11626 (eval "$ac_link") 2>conftest.er1
11627 ac_status=$?
11628 grep -v '^ *+' conftest.er1 >conftest.err
11629 rm -f conftest.er1
11630 cat conftest.err >&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); } && {
11633 test -z "$ac_c_werror_flag" ||
11634 test ! -s conftest.err
11635 } && test -s conftest$ac_exeext &&
11636 $as_test_x conftest$ac_exeext; then
11637 ac_cv_lib_pthread_pthread_self=yes
11638 else
11639 echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11641
11642 ac_cv_lib_pthread_pthread_self=no
11643 fi
11644
11645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11646 conftest$ac_exeext conftest.$ac_ext
11647 LIBS=$ac_check_lib_save_LIBS
11648 fi
11649 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11650 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11651 if test $ac_cv_lib_pthread_pthread_self = yes; then
11652 HAVE_GTK_AND_PTHREAD=yes
11653 fi
11654
11655 fi
11656 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11657 GTK_LIBS="$GTK_LIBS -lpthread"
11658
11659 cat >>confdefs.h <<\_ACEOF
11660 #define HAVE_GTK_AND_PTHREAD 1
11661 _ACEOF
11662
11663 fi
11664 fi
11665 fi
11666
11667 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11668 if test x"${HAVE_X11R5}" = xyes; then
11669 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11670 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11671 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11673 else
11674 cat >conftest.$ac_ext <<_ACEOF
11675 /* confdefs.h. */
11676 _ACEOF
11677 cat confdefs.h >>conftest.$ac_ext
11678 cat >>conftest.$ac_ext <<_ACEOF
11679 /* end confdefs.h. */
11680
11681 #include <X11/Intrinsic.h>
11682 #include <X11/Xaw/Simple.h>
11683 int
11684 main ()
11685 {
11686
11687 ;
11688 return 0;
11689 }
11690 _ACEOF
11691 rm -f conftest.$ac_objext conftest$ac_exeext
11692 if { (ac_try="$ac_link"
11693 case "(($ac_try" in
11694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695 *) ac_try_echo=$ac_try;;
11696 esac
11697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11698 (eval "$ac_link") 2>conftest.er1
11699 ac_status=$?
11700 grep -v '^ *+' conftest.er1 >conftest.err
11701 rm -f conftest.er1
11702 cat conftest.err >&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } && {
11705 test -z "$ac_c_werror_flag" ||
11706 test ! -s conftest.err
11707 } && test -s conftest$ac_exeext &&
11708 $as_test_x conftest$ac_exeext; then
11709 emacs_cv_x11_version_5_with_xaw=yes
11710 else
11711 echo "$as_me: failed program was:" >&5
11712 sed 's/^/| /' conftest.$ac_ext >&5
11713
11714 emacs_cv_x11_version_5_with_xaw=no
11715 fi
11716
11717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11718 conftest$ac_exeext conftest.$ac_ext
11719 fi
11720
11721 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11722 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11723 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11724 USE_X_TOOLKIT=LUCID
11725 else
11726 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11727 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11728 USE_X_TOOLKIT=none
11729 fi
11730 else
11731 USE_X_TOOLKIT=none
11732 fi
11733 fi
11734
11735 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11736
11737 if test "${USE_X_TOOLKIT}" != "none"; then
11738 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11739 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11740 if test "${emacs_cv_x11_toolkit_version_6+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 #include <X11/Intrinsic.h>
11750 int
11751 main ()
11752 {
11753 #if XtSpecificationRelease < 6
11754 fail;
11755 #endif
11756
11757 ;
11758 return 0;
11759 }
11760 _ACEOF
11761 rm -f conftest.$ac_objext conftest$ac_exeext
11762 if { (ac_try="$ac_link"
11763 case "(($ac_try" in
11764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765 *) ac_try_echo=$ac_try;;
11766 esac
11767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768 (eval "$ac_link") 2>conftest.er1
11769 ac_status=$?
11770 grep -v '^ *+' conftest.er1 >conftest.err
11771 rm -f conftest.er1
11772 cat conftest.err >&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } && {
11775 test -z "$ac_c_werror_flag" ||
11776 test ! -s conftest.err
11777 } && test -s conftest$ac_exeext &&
11778 $as_test_x conftest$ac_exeext; then
11779 emacs_cv_x11_toolkit_version_6=yes
11780 else
11781 echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11783
11784 emacs_cv_x11_toolkit_version_6=no
11785 fi
11786
11787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11788 conftest$ac_exeext conftest.$ac_ext
11789 fi
11790
11791 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11792 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11793 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11794 echo "${ECHO_T}6 or newer" >&6; }
11795
11796 cat >>confdefs.h <<\_ACEOF
11797 #define HAVE_X11XTR6 1
11798 _ACEOF
11799
11800 else
11801 { echo "$as_me:$LINENO: result: before 6" >&5
11802 echo "${ECHO_T}before 6" >&6; }
11803 fi
11804
11805 OLDLIBS="$LIBS"
11806 if test x$HAVE_X11XTR6 = xyes; then
11807 LIBS="-lXt -lSM -lICE $LIBS"
11808 else
11809 LIBS="-lXt $LIBS"
11810 fi
11811
11812 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11813 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11814 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11815 echo $ECHO_N "(cached) $ECHO_C" >&6
11816 else
11817 ac_check_lib_save_LIBS=$LIBS
11818 LIBS="-lXmu $LIBS"
11819 cat >conftest.$ac_ext <<_ACEOF
11820 /* confdefs.h. */
11821 _ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h. */
11825
11826 /* Override any GCC internal prototype to avoid an error.
11827 Use char because int might match the return type of a GCC
11828 builtin and then its argument prototype would still apply. */
11829 #ifdef __cplusplus
11830 extern "C"
11831 #endif
11832 char XmuConvertStandardSelection ();
11833 int
11834 main ()
11835 {
11836 return XmuConvertStandardSelection ();
11837 ;
11838 return 0;
11839 }
11840 _ACEOF
11841 rm -f conftest.$ac_objext conftest$ac_exeext
11842 if { (ac_try="$ac_link"
11843 case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11846 esac
11847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848 (eval "$ac_link") 2>conftest.er1
11849 ac_status=$?
11850 grep -v '^ *+' conftest.er1 >conftest.err
11851 rm -f conftest.er1
11852 cat conftest.err >&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } && {
11855 test -z "$ac_c_werror_flag" ||
11856 test ! -s conftest.err
11857 } && test -s conftest$ac_exeext &&
11858 $as_test_x conftest$ac_exeext; then
11859 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11860 else
11861 echo "$as_me: failed program was:" >&5
11862 sed 's/^/| /' conftest.$ac_ext >&5
11863
11864 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11865 fi
11866
11867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11868 conftest$ac_exeext conftest.$ac_ext
11869 LIBS=$ac_check_lib_save_LIBS
11870 fi
11871 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11872 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11873 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11874 cat >>confdefs.h <<_ACEOF
11875 #define HAVE_LIBXMU 1
11876 _ACEOF
11877
11878 LIBS="-lXmu $LIBS"
11879
11880 fi
11881
11882 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11883 fi
11884
11885 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11886 if test "${HAVE_X11}" = "yes"; then
11887 if test "${USE_X_TOOLKIT}" != "none"; then
11888
11889 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11890 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11891 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11893 else
11894 ac_check_lib_save_LIBS=$LIBS
11895 LIBS="-lXext $LIBS"
11896 cat >conftest.$ac_ext <<_ACEOF
11897 /* confdefs.h. */
11898 _ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11902
11903 /* Override any GCC internal prototype to avoid an error.
11904 Use char because int might match the return type of a GCC
11905 builtin and then its argument prototype would still apply. */
11906 #ifdef __cplusplus
11907 extern "C"
11908 #endif
11909 char XShapeQueryExtension ();
11910 int
11911 main ()
11912 {
11913 return XShapeQueryExtension ();
11914 ;
11915 return 0;
11916 }
11917 _ACEOF
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (ac_try="$ac_link"
11920 case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11923 esac
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_link") 2>conftest.er1
11926 ac_status=$?
11927 grep -v '^ *+' conftest.er1 >conftest.err
11928 rm -f conftest.er1
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } && {
11932 test -z "$ac_c_werror_flag" ||
11933 test ! -s conftest.err
11934 } && test -s conftest$ac_exeext &&
11935 $as_test_x conftest$ac_exeext; then
11936 ac_cv_lib_Xext_XShapeQueryExtension=yes
11937 else
11938 echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11940
11941 ac_cv_lib_Xext_XShapeQueryExtension=no
11942 fi
11943
11944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11945 conftest$ac_exeext conftest.$ac_ext
11946 LIBS=$ac_check_lib_save_LIBS
11947 fi
11948 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11949 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11950 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11951 cat >>confdefs.h <<_ACEOF
11952 #define HAVE_LIBXEXT 1
11953 _ACEOF
11954
11955 LIBS="-lXext $LIBS"
11956
11957 fi
11958
11959 fi
11960 fi
11961
11962 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11963 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11964 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
11965 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11967 else
11968 cat >conftest.$ac_ext <<_ACEOF
11969 /* confdefs.h. */
11970 _ACEOF
11971 cat confdefs.h >>conftest.$ac_ext
11972 cat >>conftest.$ac_ext <<_ACEOF
11973 /* end confdefs.h. */
11974 #include <Xm/Xm.h>
11975 int
11976 main ()
11977 {
11978 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11979 int x = 5;
11980 #else
11981 Motif version prior to 2.1.
11982 #endif
11983 ;
11984 return 0;
11985 }
11986 _ACEOF
11987 rm -f conftest.$ac_objext
11988 if { (ac_try="$ac_compile"
11989 case "(($ac_try" in
11990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991 *) ac_try_echo=$ac_try;;
11992 esac
11993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994 (eval "$ac_compile") 2>conftest.er1
11995 ac_status=$?
11996 grep -v '^ *+' conftest.er1 >conftest.err
11997 rm -f conftest.er1
11998 cat conftest.err >&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } && {
12001 test -z "$ac_c_werror_flag" ||
12002 test ! -s conftest.err
12003 } && test -s conftest.$ac_objext; then
12004 emacs_cv_motif_version_2_1=yes
12005 else
12006 echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12008
12009 emacs_cv_motif_version_2_1=no
12010 fi
12011
12012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12013 fi
12014 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12015 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12016 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12017 if test $emacs_cv_motif_version_2_1 = yes; then
12018 HAVE_LIBXP=no
12019
12020 cat >>confdefs.h <<\_ACEOF
12021 #define HAVE_MOTIF_2_1 1
12022 _ACEOF
12023
12024 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12025 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12026 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12027 echo $ECHO_N "(cached) $ECHO_C" >&6
12028 else
12029 ac_check_lib_save_LIBS=$LIBS
12030 LIBS="-lXp $LIBS"
12031 cat >conftest.$ac_ext <<_ACEOF
12032 /* confdefs.h. */
12033 _ACEOF
12034 cat confdefs.h >>conftest.$ac_ext
12035 cat >>conftest.$ac_ext <<_ACEOF
12036 /* end confdefs.h. */
12037
12038 /* Override any GCC internal prototype to avoid an error.
12039 Use char because int might match the return type of a GCC
12040 builtin and then its argument prototype would still apply. */
12041 #ifdef __cplusplus
12042 extern "C"
12043 #endif
12044 char XpCreateContext ();
12045 int
12046 main ()
12047 {
12048 return XpCreateContext ();
12049 ;
12050 return 0;
12051 }
12052 _ACEOF
12053 rm -f conftest.$ac_objext conftest$ac_exeext
12054 if { (ac_try="$ac_link"
12055 case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12058 esac
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_link") 2>conftest.er1
12061 ac_status=$?
12062 grep -v '^ *+' conftest.er1 >conftest.err
12063 rm -f conftest.er1
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } && {
12067 test -z "$ac_c_werror_flag" ||
12068 test ! -s conftest.err
12069 } && test -s conftest$ac_exeext &&
12070 $as_test_x conftest$ac_exeext; then
12071 ac_cv_lib_Xp_XpCreateContext=yes
12072 else
12073 echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.$ac_ext >&5
12075
12076 ac_cv_lib_Xp_XpCreateContext=no
12077 fi
12078
12079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12080 conftest$ac_exeext conftest.$ac_ext
12081 LIBS=$ac_check_lib_save_LIBS
12082 fi
12083 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12084 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12085 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12086 HAVE_LIBXP=yes
12087 fi
12088
12089 if test ${HAVE_LIBXP} = yes; then
12090
12091 cat >>confdefs.h <<\_ACEOF
12092 #define HAVE_LIBXP 1
12093 _ACEOF
12094
12095 fi
12096 else
12097 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12098 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12099 if test "${emacs_cv_lesstif+set}" = set; then
12100 echo $ECHO_N "(cached) $ECHO_C" >&6
12101 else
12102 # We put this in CFLAGS temporarily to precede other -I options
12103 # that might be in CFLAGS temporarily.
12104 # We put this in CPPFLAGS where it precedes the other -I options.
12105 OLD_CPPFLAGS=$CPPFLAGS
12106 OLD_CFLAGS=$CFLAGS
12107 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12108 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12109 cat >conftest.$ac_ext <<_ACEOF
12110 /* confdefs.h. */
12111 _ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h. */
12115 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12116 int
12117 main ()
12118 {
12119 int x = 5;
12120 ;
12121 return 0;
12122 }
12123 _ACEOF
12124 rm -f conftest.$ac_objext
12125 if { (ac_try="$ac_compile"
12126 case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12129 esac
12130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_compile") 2>conftest.er1
12132 ac_status=$?
12133 grep -v '^ *+' conftest.er1 >conftest.err
12134 rm -f conftest.er1
12135 cat conftest.err >&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } && {
12138 test -z "$ac_c_werror_flag" ||
12139 test ! -s conftest.err
12140 } && test -s conftest.$ac_objext; then
12141 emacs_cv_lesstif=yes
12142 else
12143 echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.$ac_ext >&5
12145
12146 emacs_cv_lesstif=no
12147 fi
12148
12149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12150 fi
12151 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12152 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12153 if test $emacs_cv_lesstif = yes; then
12154 # Make sure this -I option remains in CPPFLAGS after it is set
12155 # back to REAL_CPPFLAGS.
12156 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12157 # have those other -I options anyway. Ultimately, having this
12158 # directory ultimately in CPPFLAGS will be enough.
12159 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12160 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12161 else
12162 CFLAGS=$OLD_CFLAGS
12163 CPPFLAGS=$OLD_CPPFLAGS
12164 fi
12165 fi
12166 fi
12167
12168 ### Is -lXaw3d available?
12169 HAVE_XAW3D=no
12170 if test "${HAVE_X11}" = "yes"; then
12171 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12172 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12173 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12174 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 else
12177 cat >conftest.$ac_ext <<_ACEOF
12178 /* confdefs.h. */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12183 #include <X11/Xaw3d/Scrollbar.h>
12184 _ACEOF
12185 if { (ac_try="$ac_cpp conftest.$ac_ext"
12186 case "(($ac_try" in
12187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188 *) ac_try_echo=$ac_try;;
12189 esac
12190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12192 ac_status=$?
12193 grep -v '^ *+' conftest.er1 >conftest.err
12194 rm -f conftest.er1
12195 cat conftest.err >&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } >/dev/null && {
12198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12199 test ! -s conftest.err
12200 }; then
12201 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12202 else
12203 echo "$as_me: failed program was:" >&5
12204 sed 's/^/| /' conftest.$ac_ext >&5
12205
12206 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12207 fi
12208
12209 rm -f conftest.err conftest.$ac_ext
12210 fi
12211 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12212 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12213 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12214 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12215 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12216 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12217 echo $ECHO_N "(cached) $ECHO_C" >&6
12218 else
12219 ac_check_lib_save_LIBS=$LIBS
12220 LIBS="-lXaw3d $LIBS"
12221 cat >conftest.$ac_ext <<_ACEOF
12222 /* confdefs.h. */
12223 _ACEOF
12224 cat confdefs.h >>conftest.$ac_ext
12225 cat >>conftest.$ac_ext <<_ACEOF
12226 /* end confdefs.h. */
12227
12228 /* Override any GCC internal prototype to avoid an error.
12229 Use char because int might match the return type of a GCC
12230 builtin and then its argument prototype would still apply. */
12231 #ifdef __cplusplus
12232 extern "C"
12233 #endif
12234 char XawScrollbarSetThumb ();
12235 int
12236 main ()
12237 {
12238 return XawScrollbarSetThumb ();
12239 ;
12240 return 0;
12241 }
12242 _ACEOF
12243 rm -f conftest.$ac_objext conftest$ac_exeext
12244 if { (ac_try="$ac_link"
12245 case "(($ac_try" in
12246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247 *) ac_try_echo=$ac_try;;
12248 esac
12249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250 (eval "$ac_link") 2>conftest.er1
12251 ac_status=$?
12252 grep -v '^ *+' conftest.er1 >conftest.err
12253 rm -f conftest.er1
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } && {
12257 test -z "$ac_c_werror_flag" ||
12258 test ! -s conftest.err
12259 } && test -s conftest$ac_exeext &&
12260 $as_test_x conftest$ac_exeext; then
12261 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12262 else
12263 echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12265
12266 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12267 fi
12268
12269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12270 conftest$ac_exeext conftest.$ac_ext
12271 LIBS=$ac_check_lib_save_LIBS
12272 fi
12273 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12274 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12275 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12276 HAVE_XAW3D=yes
12277 fi
12278
12279 fi
12280
12281
12282 if test "${HAVE_XAW3D}" = "yes"; then
12283
12284 cat >>confdefs.h <<\_ACEOF
12285 #define HAVE_XAW3D 1
12286 _ACEOF
12287
12288 fi
12289 fi
12290 fi
12291
12292
12293
12294 USE_TOOLKIT_SCROLL_BARS=no
12295 if test "${with_toolkit_scroll_bars}" != "no"; then
12296 if test "${USE_X_TOOLKIT}" != "none"; then
12297 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12298 cat >>confdefs.h <<\_ACEOF
12299 #define USE_TOOLKIT_SCROLL_BARS 1
12300 _ACEOF
12301
12302 HAVE_XAW3D=no
12303 USE_TOOLKIT_SCROLL_BARS=yes
12304 elif test "${HAVE_XAW3D}" = "yes"; then
12305 cat >>confdefs.h <<\_ACEOF
12306 #define USE_TOOLKIT_SCROLL_BARS 1
12307 _ACEOF
12308
12309 USE_TOOLKIT_SCROLL_BARS=yes
12310 fi
12311 elif test "${HAVE_GTK}" = "yes"; then
12312 cat >>confdefs.h <<\_ACEOF
12313 #define USE_TOOLKIT_SCROLL_BARS 1
12314 _ACEOF
12315
12316 USE_TOOLKIT_SCROLL_BARS=yes
12317 elif test "${HAVE_CARBON}" = "yes"; then
12318 cat >>confdefs.h <<\_ACEOF
12319 #define USE_TOOLKIT_SCROLL_BARS 1
12320 _ACEOF
12321
12322 USE_TOOLKIT_SCROLL_BARS=yes
12323 fi
12324 fi
12325
12326 cat >conftest.$ac_ext <<_ACEOF
12327 /* confdefs.h. */
12328 _ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12332
12333 #include <X11/Xlib.h>
12334 #include <X11/Xresource.h>
12335 int
12336 main ()
12337 {
12338 XIMProc callback;
12339 ;
12340 return 0;
12341 }
12342 _ACEOF
12343 rm -f conftest.$ac_objext
12344 if { (ac_try="$ac_compile"
12345 case "(($ac_try" in
12346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347 *) ac_try_echo=$ac_try;;
12348 esac
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350 (eval "$ac_compile") 2>conftest.er1
12351 ac_status=$?
12352 grep -v '^ *+' conftest.er1 >conftest.err
12353 rm -f conftest.er1
12354 cat conftest.err >&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } && {
12357 test -z "$ac_c_werror_flag" ||
12358 test ! -s conftest.err
12359 } && test -s conftest.$ac_objext; then
12360 HAVE_XIM=yes
12361
12362 cat >>confdefs.h <<\_ACEOF
12363 #define HAVE_XIM 1
12364 _ACEOF
12365
12366 else
12367 echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12369
12370 HAVE_XIM=no
12371 fi
12372
12373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12374
12375
12376 if test "${with_xim}" != "no"; then
12377
12378 cat >>confdefs.h <<\_ACEOF
12379 #define USE_XIM 1
12380 _ACEOF
12381
12382 fi
12383
12384
12385 if test "${HAVE_XIM}" != "no"; then
12386 late_CFLAGS=$CFLAGS
12387 if test "$GCC" = yes; then
12388 CFLAGS="$CFLAGS --pedantic-errors"
12389 fi
12390 cat >conftest.$ac_ext <<_ACEOF
12391 /* confdefs.h. */
12392 _ACEOF
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h. */
12396
12397 #include <X11/Xlib.h>
12398 #include <X11/Xresource.h>
12399 int
12400 main ()
12401 {
12402 Display *display;
12403 XrmDatabase db;
12404 char *res_name;
12405 char *res_class;
12406 XIMProc callback;
12407 XPointer *client_data;
12408 #ifndef __GNUC__
12409 /* If we're not using GCC, it's probably not XFree86, and this is
12410 probably right, but we can't use something like --pedantic-errors. */
12411 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12412 char*, XIMProc, XPointer*);
12413 #endif
12414 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12415 client_data);
12416 ;
12417 return 0;
12418 }
12419 _ACEOF
12420 rm -f conftest.$ac_objext
12421 if { (ac_try="$ac_compile"
12422 case "(($ac_try" in
12423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424 *) ac_try_echo=$ac_try;;
12425 esac
12426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427 (eval "$ac_compile") 2>conftest.er1
12428 ac_status=$?
12429 grep -v '^ *+' conftest.er1 >conftest.err
12430 rm -f conftest.er1
12431 cat conftest.err >&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } && {
12434 test -z "$ac_c_werror_flag" ||
12435 test ! -s conftest.err
12436 } && test -s conftest.$ac_objext; then
12437 emacs_cv_arg6_star=yes
12438 else
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12441
12442
12443 fi
12444
12445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12446
12447 if test "$emacs_cv_arg6_star" = yes; then
12448 cat >>confdefs.h <<\_ACEOF
12449 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12450 _ACEOF
12451
12452 else
12453 cat >>confdefs.h <<\_ACEOF
12454 #define XRegisterIMInstantiateCallback_arg6 XPointer
12455 _ACEOF
12456
12457 fi
12458 CFLAGS=$late_CFLAGS
12459 fi
12460
12461 ### For font-backend
12462 if test "${USE_FONT_BACKEND}" = "yes"; then
12463
12464
12465 cat >>confdefs.h <<\_ACEOF
12466 #define USE_FONT_BACKEND 1
12467 _ACEOF
12468
12469
12470 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12471 HAVE_XFT=maybe
12472 if test "${HAVE_X11}" = "yes"; then
12473 if test "x${with_freetype}" = "xno"; then
12474 with_xft="no";
12475 fi
12476 if test "x${with_xft}" != "xno"; then
12477
12478 if test "X${with_pkg_config_prog}" != X; then
12479 PKG_CONFIG="${with_pkg_config_prog}"
12480 fi
12481
12482
12483 succeeded=no
12484
12485 if test -z "$PKG_CONFIG"; then
12486 # Extract the first word of "pkg-config", so it can be a program name with args.
12487 set dummy pkg-config; ac_word=$2
12488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12490 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12491 echo $ECHO_N "(cached) $ECHO_C" >&6
12492 else
12493 case $PKG_CONFIG in
12494 [\\/]* | ?:[\\/]*)
12495 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12496 ;;
12497 *)
12498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12499 for as_dir in $PATH
12500 do
12501 IFS=$as_save_IFS
12502 test -z "$as_dir" && as_dir=.
12503 for ac_exec_ext in '' $ac_executable_extensions; do
12504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12505 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12507 break 2
12508 fi
12509 done
12510 done
12511 IFS=$as_save_IFS
12512
12513 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12514 ;;
12515 esac
12516 fi
12517 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12518 if test -n "$PKG_CONFIG"; then
12519 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12520 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12521 else
12522 { echo "$as_me:$LINENO: result: no" >&5
12523 echo "${ECHO_T}no" >&6; }
12524 fi
12525
12526
12527 fi
12528
12529 if test "$PKG_CONFIG" = "no" ; then
12530 HAVE_XFT=no
12531 else
12532 PKG_CONFIG_MIN_VERSION=0.9.0
12533 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12534 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12535 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12536
12537 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12538 { echo "$as_me:$LINENO: result: yes" >&5
12539 echo "${ECHO_T}yes" >&6; }
12540 succeeded=yes
12541
12542 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12543 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12544 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12545 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12546 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12547
12548 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12549 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12550 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12551 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12552 echo "${ECHO_T}$XFT_LIBS" >&6; }
12553 else
12554 { echo "$as_me:$LINENO: result: no" >&5
12555 echo "${ECHO_T}no" >&6; }
12556 XFT_CFLAGS=""
12557 XFT_LIBS=""
12558 ## If we have a custom action on failure, don't print errors, but
12559 ## do set a variable so people can do so.
12560 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12561
12562 fi
12563
12564
12565
12566 else
12567 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12568 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12569 fi
12570 fi
12571
12572 if test $succeeded = yes; then
12573 :
12574 else
12575 HAVE_XFT=no
12576 fi
12577
12578 if test "$HAVE_XFT" != no; then
12579 OLD_CPPFLAGS="$CPPFLAGS"
12580 OLD_CFLAGS="$CFLAGS"
12581 OLD_LIBS="$LIBS"
12582 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12583 CFLAGS="$CFLAGS $XFT_CFLAGS"
12584 LIBS="$XFT_LIBS $LIBS"
12585 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12586 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12587 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12588 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12590 fi
12591 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12592 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12593 else
12594 # Is the header compilable?
12595 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12596 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12597 cat >conftest.$ac_ext <<_ACEOF
12598 /* confdefs.h. */
12599 _ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12603 $ac_includes_default
12604 #include <X11/Xft/Xft.h>
12605 _ACEOF
12606 rm -f conftest.$ac_objext
12607 if { (ac_try="$ac_compile"
12608 case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12611 esac
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_compile") 2>conftest.er1
12614 ac_status=$?
12615 grep -v '^ *+' conftest.er1 >conftest.err
12616 rm -f conftest.er1
12617 cat conftest.err >&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } && {
12620 test -z "$ac_c_werror_flag" ||
12621 test ! -s conftest.err
12622 } && test -s conftest.$ac_objext; then
12623 ac_header_compiler=yes
12624 else
12625 echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12627
12628 ac_header_compiler=no
12629 fi
12630
12631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12632 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12633 echo "${ECHO_T}$ac_header_compiler" >&6; }
12634
12635 # Is the header present?
12636 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12637 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12638 cat >conftest.$ac_ext <<_ACEOF
12639 /* confdefs.h. */
12640 _ACEOF
12641 cat confdefs.h >>conftest.$ac_ext
12642 cat >>conftest.$ac_ext <<_ACEOF
12643 /* end confdefs.h. */
12644 #include <X11/Xft/Xft.h>
12645 _ACEOF
12646 if { (ac_try="$ac_cpp conftest.$ac_ext"
12647 case "(($ac_try" in
12648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649 *) ac_try_echo=$ac_try;;
12650 esac
12651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12653 ac_status=$?
12654 grep -v '^ *+' conftest.er1 >conftest.err
12655 rm -f conftest.er1
12656 cat conftest.err >&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } >/dev/null && {
12659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12660 test ! -s conftest.err
12661 }; then
12662 ac_header_preproc=yes
12663 else
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12666
12667 ac_header_preproc=no
12668 fi
12669
12670 rm -f conftest.err conftest.$ac_ext
12671 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12672 echo "${ECHO_T}$ac_header_preproc" >&6; }
12673
12674 # So? What about this header?
12675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12676 yes:no: )
12677 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12678 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12679 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12680 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12681 ac_header_preproc=yes
12682 ;;
12683 no:yes:* )
12684 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12685 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12686 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12687 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12688 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12689 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12690 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12691 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12692 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12693 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12694 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12695 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12696
12697 ;;
12698 esac
12699 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12700 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12701 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12703 else
12704 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12705 fi
12706 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12707 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12708
12709 fi
12710 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12711 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12712 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12713 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12715 else
12716 ac_check_lib_save_LIBS=$LIBS
12717 LIBS="-lXft $XFT_LIBS $LIBS"
12718 cat >conftest.$ac_ext <<_ACEOF
12719 /* confdefs.h. */
12720 _ACEOF
12721 cat confdefs.h >>conftest.$ac_ext
12722 cat >>conftest.$ac_ext <<_ACEOF
12723 /* end confdefs.h. */
12724
12725 /* Override any GCC internal prototype to avoid an error.
12726 Use char because int might match the return type of a GCC
12727 builtin and then its argument prototype would still apply. */
12728 #ifdef __cplusplus
12729 extern "C"
12730 #endif
12731 char XftFontOpen ();
12732 int
12733 main ()
12734 {
12735 return XftFontOpen ();
12736 ;
12737 return 0;
12738 }
12739 _ACEOF
12740 rm -f conftest.$ac_objext conftest$ac_exeext
12741 if { (ac_try="$ac_link"
12742 case "(($ac_try" in
12743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12744 *) ac_try_echo=$ac_try;;
12745 esac
12746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747 (eval "$ac_link") 2>conftest.er1
12748 ac_status=$?
12749 grep -v '^ *+' conftest.er1 >conftest.err
12750 rm -f conftest.er1
12751 cat conftest.err >&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } && {
12754 test -z "$ac_c_werror_flag" ||
12755 test ! -s conftest.err
12756 } && test -s conftest$ac_exeext &&
12757 $as_test_x conftest$ac_exeext; then
12758 ac_cv_lib_Xft_XftFontOpen=yes
12759 else
12760 echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.$ac_ext >&5
12762
12763 ac_cv_lib_Xft_XftFontOpen=no
12764 fi
12765
12766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12767 conftest$ac_exeext conftest.$ac_ext
12768 LIBS=$ac_check_lib_save_LIBS
12769 fi
12770 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12771 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12772 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12773 HAVE_XFT=yes
12774 fi
12775
12776 fi
12777
12778
12779
12780 if test "${HAVE_XFT}" = "yes"; then
12781
12782 cat >>confdefs.h <<\_ACEOF
12783 #define HAVE_XFT 1
12784 _ACEOF
12785
12786
12787 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12788 else
12789 CFLAGS="$OLD_CPPFLAGS"
12790 CFLAGS="$OLD_CFLAGS"
12791 LIBS="$OLD_LIBS"
12792 fi
12793 fi
12794 fi
12795 fi
12796
12797 HAVE_FREETYPE=no
12798 ### Use -lfreetype if available, unless `--with-freetype=no'.
12799 if test "${HAVE_XFT}" = "yes"; then
12800 HAVE_FREETYPE=yes
12801 elif test "x${with_freetype}" != "xno"; then
12802 if test "X${with_pkg_config_prog}" != X; then
12803 PKG_CONFIG="${with_pkg_config_prog}"
12804 fi
12805
12806
12807 succeeded=no
12808
12809 if test -z "$PKG_CONFIG"; then
12810 # Extract the first word of "pkg-config", so it can be a program name with args.
12811 set dummy pkg-config; ac_word=$2
12812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12814 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12815 echo $ECHO_N "(cached) $ECHO_C" >&6
12816 else
12817 case $PKG_CONFIG in
12818 [\\/]* | ?:[\\/]*)
12819 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12820 ;;
12821 *)
12822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12823 for as_dir in $PATH
12824 do
12825 IFS=$as_save_IFS
12826 test -z "$as_dir" && as_dir=.
12827 for ac_exec_ext in '' $ac_executable_extensions; do
12828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12829 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12831 break 2
12832 fi
12833 done
12834 done
12835 IFS=$as_save_IFS
12836
12837 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12838 ;;
12839 esac
12840 fi
12841 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12842 if test -n "$PKG_CONFIG"; then
12843 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12844 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12845 else
12846 { echo "$as_me:$LINENO: result: no" >&5
12847 echo "${ECHO_T}no" >&6; }
12848 fi
12849
12850
12851 fi
12852
12853 if test "$PKG_CONFIG" = "no" ; then
12854 HAVE_FREETYPE=no
12855 else
12856 PKG_CONFIG_MIN_VERSION=0.9.0
12857 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12858 { echo "$as_me:$LINENO: checking for freetype2" >&5
12859 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12860
12861 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12862 { echo "$as_me:$LINENO: result: yes" >&5
12863 echo "${ECHO_T}yes" >&6; }
12864 succeeded=yes
12865
12866 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12867 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12868 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
12869 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12870 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12871
12872 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12873 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12874 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"`
12875 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12876 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12877 else
12878 { echo "$as_me:$LINENO: result: no" >&5
12879 echo "${ECHO_T}no" >&6; }
12880 FREETYPE_CFLAGS=""
12881 FREETYPE_LIBS=""
12882 ## If we have a custom action on failure, don't print errors, but
12883 ## do set a variable so people can do so.
12884 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12885
12886 fi
12887
12888
12889
12890 else
12891 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12892 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12893 fi
12894 fi
12895
12896 if test $succeeded = yes; then
12897 HAVE_FREETYPE=yes
12898 else
12899 HAVE_FREETYPE=no
12900 fi
12901
12902 if test "${HAVE_FREETYPE}" = "yes"; then
12903
12904 succeeded=no
12905
12906 if test -z "$PKG_CONFIG"; then
12907 # Extract the first word of "pkg-config", so it can be a program name with args.
12908 set dummy pkg-config; ac_word=$2
12909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12911 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12912 echo $ECHO_N "(cached) $ECHO_C" >&6
12913 else
12914 case $PKG_CONFIG in
12915 [\\/]* | ?:[\\/]*)
12916 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12917 ;;
12918 *)
12919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12920 for as_dir in $PATH
12921 do
12922 IFS=$as_save_IFS
12923 test -z "$as_dir" && as_dir=.
12924 for ac_exec_ext in '' $ac_executable_extensions; do
12925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12926 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12928 break 2
12929 fi
12930 done
12931 done
12932 IFS=$as_save_IFS
12933
12934 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12935 ;;
12936 esac
12937 fi
12938 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12939 if test -n "$PKG_CONFIG"; then
12940 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12941 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12942 else
12943 { echo "$as_me:$LINENO: result: no" >&5
12944 echo "${ECHO_T}no" >&6; }
12945 fi
12946
12947
12948 fi
12949
12950 if test "$PKG_CONFIG" = "no" ; then
12951 HAVE_FC=no
12952 else
12953 PKG_CONFIG_MIN_VERSION=0.9.0
12954 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12955 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12956 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12957
12958 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12959 { echo "$as_me:$LINENO: result: yes" >&5
12960 echo "${ECHO_T}yes" >&6; }
12961 succeeded=yes
12962
12963 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12964 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12965 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"`
12966 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12967 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12968
12969 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12970 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12971 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"`
12972 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12973 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12974 else
12975 { echo "$as_me:$LINENO: result: no" >&5
12976 echo "${ECHO_T}no" >&6; }
12977 FONTCONFIG_CFLAGS=""
12978 FONTCONFIG_LIBS=""
12979 ## If we have a custom action on failure, don't print errors, but
12980 ## do set a variable so people can do so.
12981 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12982
12983 fi
12984
12985
12986
12987 else
12988 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12989 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12990 fi
12991 fi
12992
12993 if test $succeeded = yes; then
12994 HAVE_FC=yes
12995 else
12996 HAVE_FC=no
12997 fi
12998
12999 if test "${HAVE_FC}" = "no"; then
13000 HAVE_FREETYPE=no
13001 fi
13002 fi
13003 fi
13004 if test "${HAVE_FREETYPE}" = "yes"; then
13005
13006 cat >>confdefs.h <<\_ACEOF
13007 #define HAVE_FREETYPE 1
13008 _ACEOF
13009
13010 # Extract the first word of "libotf-config", so it can be a program name with args.
13011 set dummy libotf-config; ac_word=$2
13012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13014 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13016 else
13017 if test -n "$HAVE_LIBOTF"; then
13018 ac_cv_prog_HAVE_LIBOTF="$HAVE_LIBOTF" # Let the user override the test.
13019 else
13020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13021 for as_dir in $PATH
13022 do
13023 IFS=$as_save_IFS
13024 test -z "$as_dir" && as_dir=.
13025 for ac_exec_ext in '' $ac_executable_extensions; do
13026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13027 ac_cv_prog_HAVE_LIBOTF="yes"
13028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13029 break 2
13030 fi
13031 done
13032 done
13033 IFS=$as_save_IFS
13034
13035 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF="no"
13036 fi
13037 fi
13038 HAVE_LIBOTF=$ac_cv_prog_HAVE_LIBOTF
13039 if test -n "$HAVE_LIBOTF"; then
13040 { echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
13041 echo "${ECHO_T}$HAVE_LIBOTF" >&6; }
13042 else
13043 { echo "$as_me:$LINENO: result: no" >&5
13044 echo "${ECHO_T}no" >&6; }
13045 fi
13046
13047
13048 if test "${HAVE_LIBOTF}" = "yes"; then
13049
13050 cat >>confdefs.h <<\_ACEOF
13051 #define HAVE_LIBOTF 1
13052 _ACEOF
13053
13054 LIBOTF_CFLAGS=`libotf-config --cflags`
13055 LIBOTF_LIBS=`libotf-config --libs`
13056 fi
13057 fi
13058
13059
13060
13061
13062
13063
13064
13065 fi
13066
13067 ### Use -lXpm if available, unless `--with-xpm=no'.
13068 HAVE_XPM=no
13069 if test "${HAVE_X11}" = "yes"; then
13070 if test "${with_xpm}" != "no"; then
13071 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13072 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13073 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13074 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13076 fi
13077 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13078 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13079 else
13080 # Is the header compilable?
13081 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13082 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13083 cat >conftest.$ac_ext <<_ACEOF
13084 /* confdefs.h. */
13085 _ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h. */
13089 $ac_includes_default
13090 #include <X11/xpm.h>
13091 _ACEOF
13092 rm -f conftest.$ac_objext
13093 if { (ac_try="$ac_compile"
13094 case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13097 esac
13098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13099 (eval "$ac_compile") 2>conftest.er1
13100 ac_status=$?
13101 grep -v '^ *+' conftest.er1 >conftest.err
13102 rm -f conftest.er1
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } && {
13106 test -z "$ac_c_werror_flag" ||
13107 test ! -s conftest.err
13108 } && test -s conftest.$ac_objext; then
13109 ac_header_compiler=yes
13110 else
13111 echo "$as_me: failed program was:" >&5
13112 sed 's/^/| /' conftest.$ac_ext >&5
13113
13114 ac_header_compiler=no
13115 fi
13116
13117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13119 echo "${ECHO_T}$ac_header_compiler" >&6; }
13120
13121 # Is the header present?
13122 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13123 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13124 cat >conftest.$ac_ext <<_ACEOF
13125 /* confdefs.h. */
13126 _ACEOF
13127 cat confdefs.h >>conftest.$ac_ext
13128 cat >>conftest.$ac_ext <<_ACEOF
13129 /* end confdefs.h. */
13130 #include <X11/xpm.h>
13131 _ACEOF
13132 if { (ac_try="$ac_cpp conftest.$ac_ext"
13133 case "(($ac_try" in
13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135 *) ac_try_echo=$ac_try;;
13136 esac
13137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13139 ac_status=$?
13140 grep -v '^ *+' conftest.er1 >conftest.err
13141 rm -f conftest.er1
13142 cat conftest.err >&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } >/dev/null && {
13145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13146 test ! -s conftest.err
13147 }; then
13148 ac_header_preproc=yes
13149 else
13150 echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13152
13153 ac_header_preproc=no
13154 fi
13155
13156 rm -f conftest.err conftest.$ac_ext
13157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13158 echo "${ECHO_T}$ac_header_preproc" >&6; }
13159
13160 # So? What about this header?
13161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13162 yes:no: )
13163 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13164 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13165 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13166 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13167 ac_header_preproc=yes
13168 ;;
13169 no:yes:* )
13170 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13171 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13172 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13173 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13174 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13175 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13176 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13177 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13178 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13179 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13180 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13181 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13182
13183 ;;
13184 esac
13185 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13186 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13187 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 else
13190 ac_cv_header_X11_xpm_h=$ac_header_preproc
13191 fi
13192 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13193 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13194
13195 fi
13196 if test $ac_cv_header_X11_xpm_h = yes; then
13197 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13198 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13199 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13201 else
13202 ac_check_lib_save_LIBS=$LIBS
13203 LIBS="-lXpm -lX11 $LIBS"
13204 cat >conftest.$ac_ext <<_ACEOF
13205 /* confdefs.h. */
13206 _ACEOF
13207 cat confdefs.h >>conftest.$ac_ext
13208 cat >>conftest.$ac_ext <<_ACEOF
13209 /* end confdefs.h. */
13210
13211 /* Override any GCC internal prototype to avoid an error.
13212 Use char because int might match the return type of a GCC
13213 builtin and then its argument prototype would still apply. */
13214 #ifdef __cplusplus
13215 extern "C"
13216 #endif
13217 char XpmReadFileToPixmap ();
13218 int
13219 main ()
13220 {
13221 return XpmReadFileToPixmap ();
13222 ;
13223 return 0;
13224 }
13225 _ACEOF
13226 rm -f conftest.$ac_objext conftest$ac_exeext
13227 if { (ac_try="$ac_link"
13228 case "(($ac_try" in
13229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13230 *) ac_try_echo=$ac_try;;
13231 esac
13232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13233 (eval "$ac_link") 2>conftest.er1
13234 ac_status=$?
13235 grep -v '^ *+' conftest.er1 >conftest.err
13236 rm -f conftest.er1
13237 cat conftest.err >&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); } && {
13240 test -z "$ac_c_werror_flag" ||
13241 test ! -s conftest.err
13242 } && test -s conftest$ac_exeext &&
13243 $as_test_x conftest$ac_exeext; then
13244 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13245 else
13246 echo "$as_me: failed program was:" >&5
13247 sed 's/^/| /' conftest.$ac_ext >&5
13248
13249 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13250 fi
13251
13252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13253 conftest$ac_exeext conftest.$ac_ext
13254 LIBS=$ac_check_lib_save_LIBS
13255 fi
13256 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13257 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13258 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13259 HAVE_XPM=yes
13260 fi
13261
13262 fi
13263
13264
13265 if test "${HAVE_XPM}" = "yes"; then
13266 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13267 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13268 cat >conftest.$ac_ext <<_ACEOF
13269 /* confdefs.h. */
13270 _ACEOF
13271 cat confdefs.h >>conftest.$ac_ext
13272 cat >>conftest.$ac_ext <<_ACEOF
13273 /* end confdefs.h. */
13274 #include "X11/xpm.h"
13275 #ifndef XpmReturnAllocPixels
13276 no_return_alloc_pixels
13277 #endif
13278
13279 _ACEOF
13280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13281 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13282 HAVE_XPM=no
13283 else
13284 HAVE_XPM=yes
13285 fi
13286 rm -f conftest*
13287
13288
13289 if test "${HAVE_XPM}" = "yes"; then
13290 { echo "$as_me:$LINENO: result: yes" >&5
13291 echo "${ECHO_T}yes" >&6; }
13292 else
13293 { echo "$as_me:$LINENO: result: no" >&5
13294 echo "${ECHO_T}no" >&6; }
13295 fi
13296 fi
13297 fi
13298
13299 if test "${HAVE_XPM}" = "yes"; then
13300
13301 cat >>confdefs.h <<\_ACEOF
13302 #define HAVE_XPM 1
13303 _ACEOF
13304
13305 fi
13306 fi
13307
13308 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13309 HAVE_JPEG=no
13310 if test "${HAVE_X11}" = "yes"; then
13311 if test "${with_jpeg}" != "no"; then
13312 if test "${ac_cv_header_jerror_h+set}" = set; then
13313 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13314 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13315 if test "${ac_cv_header_jerror_h+set}" = set; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13317 fi
13318 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13319 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13320 else
13321 # Is the header compilable?
13322 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13323 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13324 cat >conftest.$ac_ext <<_ACEOF
13325 /* confdefs.h. */
13326 _ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h. */
13330 $ac_includes_default
13331 #include <jerror.h>
13332 _ACEOF
13333 rm -f conftest.$ac_objext
13334 if { (ac_try="$ac_compile"
13335 case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13338 esac
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_compile") 2>conftest.er1
13341 ac_status=$?
13342 grep -v '^ *+' conftest.er1 >conftest.err
13343 rm -f conftest.er1
13344 cat conftest.err >&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); } && {
13347 test -z "$ac_c_werror_flag" ||
13348 test ! -s conftest.err
13349 } && test -s conftest.$ac_objext; then
13350 ac_header_compiler=yes
13351 else
13352 echo "$as_me: failed program was:" >&5
13353 sed 's/^/| /' conftest.$ac_ext >&5
13354
13355 ac_header_compiler=no
13356 fi
13357
13358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13360 echo "${ECHO_T}$ac_header_compiler" >&6; }
13361
13362 # Is the header present?
13363 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13364 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13365 cat >conftest.$ac_ext <<_ACEOF
13366 /* confdefs.h. */
13367 _ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h. */
13371 #include <jerror.h>
13372 _ACEOF
13373 if { (ac_try="$ac_cpp conftest.$ac_ext"
13374 case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13377 esac
13378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13380 ac_status=$?
13381 grep -v '^ *+' conftest.er1 >conftest.err
13382 rm -f conftest.er1
13383 cat conftest.err >&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } >/dev/null && {
13386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13387 test ! -s conftest.err
13388 }; then
13389 ac_header_preproc=yes
13390 else
13391 echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13393
13394 ac_header_preproc=no
13395 fi
13396
13397 rm -f conftest.err conftest.$ac_ext
13398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13399 echo "${ECHO_T}$ac_header_preproc" >&6; }
13400
13401 # So? What about this header?
13402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13403 yes:no: )
13404 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13405 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13406 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13407 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13408 ac_header_preproc=yes
13409 ;;
13410 no:yes:* )
13411 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13412 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13414 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13415 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13416 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13417 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13418 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13419 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13420 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13421 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13422 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13423
13424 ;;
13425 esac
13426 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13427 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13428 if test "${ac_cv_header_jerror_h+set}" = set; then
13429 echo $ECHO_N "(cached) $ECHO_C" >&6
13430 else
13431 ac_cv_header_jerror_h=$ac_header_preproc
13432 fi
13433 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13434 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13435
13436 fi
13437 if test $ac_cv_header_jerror_h = yes; then
13438 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13439 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13440 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13442 else
13443 ac_check_lib_save_LIBS=$LIBS
13444 LIBS="-ljpeg $LIBS"
13445 cat >conftest.$ac_ext <<_ACEOF
13446 /* confdefs.h. */
13447 _ACEOF
13448 cat confdefs.h >>conftest.$ac_ext
13449 cat >>conftest.$ac_ext <<_ACEOF
13450 /* end confdefs.h. */
13451
13452 /* Override any GCC internal prototype to avoid an error.
13453 Use char because int might match the return type of a GCC
13454 builtin and then its argument prototype would still apply. */
13455 #ifdef __cplusplus
13456 extern "C"
13457 #endif
13458 char jpeg_destroy_compress ();
13459 int
13460 main ()
13461 {
13462 return jpeg_destroy_compress ();
13463 ;
13464 return 0;
13465 }
13466 _ACEOF
13467 rm -f conftest.$ac_objext conftest$ac_exeext
13468 if { (ac_try="$ac_link"
13469 case "(($ac_try" in
13470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471 *) ac_try_echo=$ac_try;;
13472 esac
13473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13474 (eval "$ac_link") 2>conftest.er1
13475 ac_status=$?
13476 grep -v '^ *+' conftest.er1 >conftest.err
13477 rm -f conftest.er1
13478 cat conftest.err >&5
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); } && {
13481 test -z "$ac_c_werror_flag" ||
13482 test ! -s conftest.err
13483 } && test -s conftest$ac_exeext &&
13484 $as_test_x conftest$ac_exeext; then
13485 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13486 else
13487 echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.$ac_ext >&5
13489
13490 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13491 fi
13492
13493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13494 conftest$ac_exeext conftest.$ac_ext
13495 LIBS=$ac_check_lib_save_LIBS
13496 fi
13497 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13498 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13499 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13500 HAVE_JPEG=yes
13501 fi
13502
13503 fi
13504
13505
13506 fi
13507
13508
13509 if test "${HAVE_JPEG}" = "yes"; then
13510 cat >>confdefs.h <<\_ACEOF
13511 #define HAVE_JPEG 1
13512 _ACEOF
13513
13514 cat >conftest.$ac_ext <<_ACEOF
13515 /* confdefs.h. */
13516 _ACEOF
13517 cat confdefs.h >>conftest.$ac_ext
13518 cat >>conftest.$ac_ext <<_ACEOF
13519 /* end confdefs.h. */
13520 #include <jpeglib.h>
13521 version=JPEG_LIB_VERSION
13522
13523 _ACEOF
13524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13525 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13526 cat >>confdefs.h <<\_ACEOF
13527 #define HAVE_JPEG 1
13528 _ACEOF
13529
13530 else
13531 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13532 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13533 HAVE_JPEG=no
13534 fi
13535 rm -f conftest*
13536
13537 fi
13538 fi
13539
13540 ### Use -lpng if available, unless `--with-png=no'.
13541 HAVE_PNG=no
13542 if test "${HAVE_X11}" = "yes"; then
13543 if test "${with_png}" != "no"; then
13544 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13545 # in /usr/include/libpng.
13546
13547
13548 for ac_header in png.h libpng/png.h
13549 do
13550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13555 echo $ECHO_N "(cached) $ECHO_C" >&6
13556 fi
13557 ac_res=`eval echo '${'$as_ac_Header'}'`
13558 { echo "$as_me:$LINENO: result: $ac_res" >&5
13559 echo "${ECHO_T}$ac_res" >&6; }
13560 else
13561 # Is the header compilable?
13562 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13564 cat >conftest.$ac_ext <<_ACEOF
13565 /* confdefs.h. */
13566 _ACEOF
13567 cat confdefs.h >>conftest.$ac_ext
13568 cat >>conftest.$ac_ext <<_ACEOF
13569 /* end confdefs.h. */
13570 $ac_includes_default
13571 #include <$ac_header>
13572 _ACEOF
13573 rm -f conftest.$ac_objext
13574 if { (ac_try="$ac_compile"
13575 case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13578 esac
13579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580 (eval "$ac_compile") 2>conftest.er1
13581 ac_status=$?
13582 grep -v '^ *+' conftest.er1 >conftest.err
13583 rm -f conftest.er1
13584 cat conftest.err >&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); } && {
13587 test -z "$ac_c_werror_flag" ||
13588 test ! -s conftest.err
13589 } && test -s conftest.$ac_objext; then
13590 ac_header_compiler=yes
13591 else
13592 echo "$as_me: failed program was:" >&5
13593 sed 's/^/| /' conftest.$ac_ext >&5
13594
13595 ac_header_compiler=no
13596 fi
13597
13598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13600 echo "${ECHO_T}$ac_header_compiler" >&6; }
13601
13602 # Is the header present?
13603 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13605 cat >conftest.$ac_ext <<_ACEOF
13606 /* confdefs.h. */
13607 _ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h. */
13611 #include <$ac_header>
13612 _ACEOF
13613 if { (ac_try="$ac_cpp conftest.$ac_ext"
13614 case "(($ac_try" in
13615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616 *) ac_try_echo=$ac_try;;
13617 esac
13618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13620 ac_status=$?
13621 grep -v '^ *+' conftest.er1 >conftest.err
13622 rm -f conftest.er1
13623 cat conftest.err >&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } >/dev/null && {
13626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13627 test ! -s conftest.err
13628 }; then
13629 ac_header_preproc=yes
13630 else
13631 echo "$as_me: failed program was:" >&5
13632 sed 's/^/| /' conftest.$ac_ext >&5
13633
13634 ac_header_preproc=no
13635 fi
13636
13637 rm -f conftest.err conftest.$ac_ext
13638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13639 echo "${ECHO_T}$ac_header_preproc" >&6; }
13640
13641 # So? What about this header?
13642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13643 yes:no: )
13644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13648 ac_header_preproc=yes
13649 ;;
13650 no:yes:* )
13651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13663
13664 ;;
13665 esac
13666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13669 echo $ECHO_N "(cached) $ECHO_C" >&6
13670 else
13671 eval "$as_ac_Header=\$ac_header_preproc"
13672 fi
13673 ac_res=`eval echo '${'$as_ac_Header'}'`
13674 { echo "$as_me:$LINENO: result: $ac_res" >&5
13675 echo "${ECHO_T}$ac_res" >&6; }
13676
13677 fi
13678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13679 cat >>confdefs.h <<_ACEOF
13680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13681 _ACEOF
13682
13683 fi
13684
13685 done
13686
13687 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13688 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13689 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13690 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13691 echo $ECHO_N "(cached) $ECHO_C" >&6
13692 else
13693 ac_check_lib_save_LIBS=$LIBS
13694 LIBS="-lpng -lz -lm $LIBS"
13695 cat >conftest.$ac_ext <<_ACEOF
13696 /* confdefs.h. */
13697 _ACEOF
13698 cat confdefs.h >>conftest.$ac_ext
13699 cat >>conftest.$ac_ext <<_ACEOF
13700 /* end confdefs.h. */
13701
13702 /* Override any GCC internal prototype to avoid an error.
13703 Use char because int might match the return type of a GCC
13704 builtin and then its argument prototype would still apply. */
13705 #ifdef __cplusplus
13706 extern "C"
13707 #endif
13708 char png_get_channels ();
13709 int
13710 main ()
13711 {
13712 return png_get_channels ();
13713 ;
13714 return 0;
13715 }
13716 _ACEOF
13717 rm -f conftest.$ac_objext conftest$ac_exeext
13718 if { (ac_try="$ac_link"
13719 case "(($ac_try" in
13720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13721 *) ac_try_echo=$ac_try;;
13722 esac
13723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13724 (eval "$ac_link") 2>conftest.er1
13725 ac_status=$?
13726 grep -v '^ *+' conftest.er1 >conftest.err
13727 rm -f conftest.er1
13728 cat conftest.err >&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); } && {
13731 test -z "$ac_c_werror_flag" ||
13732 test ! -s conftest.err
13733 } && test -s conftest$ac_exeext &&
13734 $as_test_x conftest$ac_exeext; then
13735 ac_cv_lib_png_png_get_channels=yes
13736 else
13737 echo "$as_me: failed program was:" >&5
13738 sed 's/^/| /' conftest.$ac_ext >&5
13739
13740 ac_cv_lib_png_png_get_channels=no
13741 fi
13742
13743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13744 conftest$ac_exeext conftest.$ac_ext
13745 LIBS=$ac_check_lib_save_LIBS
13746 fi
13747 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13748 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13749 if test $ac_cv_lib_png_png_get_channels = yes; then
13750 HAVE_PNG=yes
13751 fi
13752
13753 fi
13754 fi
13755
13756 if test "${HAVE_PNG}" = "yes"; then
13757
13758 cat >>confdefs.h <<\_ACEOF
13759 #define HAVE_PNG 1
13760 _ACEOF
13761
13762 fi
13763 fi
13764
13765 ### Use -ltiff if available, unless `--with-tiff=no'.
13766 HAVE_TIFF=no
13767 if test "${HAVE_X11}" = "yes"; then
13768 if test "${with_tiff}" != "no"; then
13769 if test "${ac_cv_header_tiffio_h+set}" = set; then
13770 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13771 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13772 if test "${ac_cv_header_tiffio_h+set}" = set; then
13773 echo $ECHO_N "(cached) $ECHO_C" >&6
13774 fi
13775 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13776 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13777 else
13778 # Is the header compilable?
13779 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13780 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13781 cat >conftest.$ac_ext <<_ACEOF
13782 /* confdefs.h. */
13783 _ACEOF
13784 cat confdefs.h >>conftest.$ac_ext
13785 cat >>conftest.$ac_ext <<_ACEOF
13786 /* end confdefs.h. */
13787 $ac_includes_default
13788 #include <tiffio.h>
13789 _ACEOF
13790 rm -f conftest.$ac_objext
13791 if { (ac_try="$ac_compile"
13792 case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13795 esac
13796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797 (eval "$ac_compile") 2>conftest.er1
13798 ac_status=$?
13799 grep -v '^ *+' conftest.er1 >conftest.err
13800 rm -f conftest.er1
13801 cat conftest.err >&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } && {
13804 test -z "$ac_c_werror_flag" ||
13805 test ! -s conftest.err
13806 } && test -s conftest.$ac_objext; then
13807 ac_header_compiler=yes
13808 else
13809 echo "$as_me: failed program was:" >&5
13810 sed 's/^/| /' conftest.$ac_ext >&5
13811
13812 ac_header_compiler=no
13813 fi
13814
13815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13816 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13817 echo "${ECHO_T}$ac_header_compiler" >&6; }
13818
13819 # Is the header present?
13820 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13821 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13822 cat >conftest.$ac_ext <<_ACEOF
13823 /* confdefs.h. */
13824 _ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13828 #include <tiffio.h>
13829 _ACEOF
13830 if { (ac_try="$ac_cpp conftest.$ac_ext"
13831 case "(($ac_try" in
13832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13833 *) ac_try_echo=$ac_try;;
13834 esac
13835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13837 ac_status=$?
13838 grep -v '^ *+' conftest.er1 >conftest.err
13839 rm -f conftest.er1
13840 cat conftest.err >&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); } >/dev/null && {
13843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13844 test ! -s conftest.err
13845 }; then
13846 ac_header_preproc=yes
13847 else
13848 echo "$as_me: failed program was:" >&5
13849 sed 's/^/| /' conftest.$ac_ext >&5
13850
13851 ac_header_preproc=no
13852 fi
13853
13854 rm -f conftest.err conftest.$ac_ext
13855 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13856 echo "${ECHO_T}$ac_header_preproc" >&6; }
13857
13858 # So? What about this header?
13859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13860 yes:no: )
13861 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13862 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13863 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13864 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13865 ac_header_preproc=yes
13866 ;;
13867 no:yes:* )
13868 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13869 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13870 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13871 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13872 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13873 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13874 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13875 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13876 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13877 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13878 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13879 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13880
13881 ;;
13882 esac
13883 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13884 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13885 if test "${ac_cv_header_tiffio_h+set}" = set; then
13886 echo $ECHO_N "(cached) $ECHO_C" >&6
13887 else
13888 ac_cv_header_tiffio_h=$ac_header_preproc
13889 fi
13890 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13891 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13892
13893 fi
13894 if test $ac_cv_header_tiffio_h = yes; then
13895 tifflibs="-lz -lm"
13896 # At least one tiff package requires the jpeg library.
13897 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13898 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13899 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13900 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13902 else
13903 ac_check_lib_save_LIBS=$LIBS
13904 LIBS="-ltiff $tifflibs $LIBS"
13905 cat >conftest.$ac_ext <<_ACEOF
13906 /* confdefs.h. */
13907 _ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h. */
13911
13912 /* Override any GCC internal prototype to avoid an error.
13913 Use char because int might match the return type of a GCC
13914 builtin and then its argument prototype would still apply. */
13915 #ifdef __cplusplus
13916 extern "C"
13917 #endif
13918 char TIFFGetVersion ();
13919 int
13920 main ()
13921 {
13922 return TIFFGetVersion ();
13923 ;
13924 return 0;
13925 }
13926 _ACEOF
13927 rm -f conftest.$ac_objext conftest$ac_exeext
13928 if { (ac_try="$ac_link"
13929 case "(($ac_try" in
13930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13931 *) ac_try_echo=$ac_try;;
13932 esac
13933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13934 (eval "$ac_link") 2>conftest.er1
13935 ac_status=$?
13936 grep -v '^ *+' conftest.er1 >conftest.err
13937 rm -f conftest.er1
13938 cat conftest.err >&5
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); } && {
13941 test -z "$ac_c_werror_flag" ||
13942 test ! -s conftest.err
13943 } && test -s conftest$ac_exeext &&
13944 $as_test_x conftest$ac_exeext; then
13945 ac_cv_lib_tiff_TIFFGetVersion=yes
13946 else
13947 echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13949
13950 ac_cv_lib_tiff_TIFFGetVersion=no
13951 fi
13952
13953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13954 conftest$ac_exeext conftest.$ac_ext
13955 LIBS=$ac_check_lib_save_LIBS
13956 fi
13957 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13958 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13959 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13960 HAVE_TIFF=yes
13961 fi
13962
13963 fi
13964
13965
13966 fi
13967
13968 if test "${HAVE_TIFF}" = "yes"; then
13969
13970 cat >>confdefs.h <<\_ACEOF
13971 #define HAVE_TIFF 1
13972 _ACEOF
13973
13974 fi
13975 fi
13976
13977 ### Use -lgif if available, unless `--with-gif=no'.
13978 HAVE_GIF=no
13979 if test "${HAVE_X11}" = "yes"; then
13980 if test "${with_gif}" != "no"; then
13981 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13982 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13983 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13984 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13985 echo $ECHO_N "(cached) $ECHO_C" >&6
13986 fi
13987 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13988 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13989 else
13990 # Is the header compilable?
13991 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13992 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13993 cat >conftest.$ac_ext <<_ACEOF
13994 /* confdefs.h. */
13995 _ACEOF
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h. */
13999 $ac_includes_default
14000 #include <gif_lib.h>
14001 _ACEOF
14002 rm -f conftest.$ac_objext
14003 if { (ac_try="$ac_compile"
14004 case "(($ac_try" in
14005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006 *) ac_try_echo=$ac_try;;
14007 esac
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_compile") 2>conftest.er1
14010 ac_status=$?
14011 grep -v '^ *+' conftest.er1 >conftest.err
14012 rm -f conftest.er1
14013 cat conftest.err >&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); } && {
14016 test -z "$ac_c_werror_flag" ||
14017 test ! -s conftest.err
14018 } && test -s conftest.$ac_objext; then
14019 ac_header_compiler=yes
14020 else
14021 echo "$as_me: failed program was:" >&5
14022 sed 's/^/| /' conftest.$ac_ext >&5
14023
14024 ac_header_compiler=no
14025 fi
14026
14027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14029 echo "${ECHO_T}$ac_header_compiler" >&6; }
14030
14031 # Is the header present?
14032 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14033 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14034 cat >conftest.$ac_ext <<_ACEOF
14035 /* confdefs.h. */
14036 _ACEOF
14037 cat confdefs.h >>conftest.$ac_ext
14038 cat >>conftest.$ac_ext <<_ACEOF
14039 /* end confdefs.h. */
14040 #include <gif_lib.h>
14041 _ACEOF
14042 if { (ac_try="$ac_cpp conftest.$ac_ext"
14043 case "(($ac_try" in
14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045 *) ac_try_echo=$ac_try;;
14046 esac
14047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14049 ac_status=$?
14050 grep -v '^ *+' conftest.er1 >conftest.err
14051 rm -f conftest.er1
14052 cat conftest.err >&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } >/dev/null && {
14055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14056 test ! -s conftest.err
14057 }; then
14058 ac_header_preproc=yes
14059 else
14060 echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.$ac_ext >&5
14062
14063 ac_header_preproc=no
14064 fi
14065
14066 rm -f conftest.err conftest.$ac_ext
14067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14068 echo "${ECHO_T}$ac_header_preproc" >&6; }
14069
14070 # So? What about this header?
14071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14072 yes:no: )
14073 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14074 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14075 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14076 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14077 ac_header_preproc=yes
14078 ;;
14079 no:yes:* )
14080 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14081 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14082 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14083 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14084 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14085 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14086 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14087 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14088 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14089 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14090 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14091 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14092
14093 ;;
14094 esac
14095 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14096 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14097 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14098 echo $ECHO_N "(cached) $ECHO_C" >&6
14099 else
14100 ac_cv_header_gif_lib_h=$ac_header_preproc
14101 fi
14102 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14103 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14104
14105 fi
14106 if test $ac_cv_header_gif_lib_h = yes; then
14107 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14108 # Earlier versions can crash Emacs.
14109 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14110 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14111 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14113 else
14114 ac_check_lib_save_LIBS=$LIBS
14115 LIBS="-lungif $LIBS"
14116 cat >conftest.$ac_ext <<_ACEOF
14117 /* confdefs.h. */
14118 _ACEOF
14119 cat confdefs.h >>conftest.$ac_ext
14120 cat >>conftest.$ac_ext <<_ACEOF
14121 /* end confdefs.h. */
14122
14123 /* Override any GCC internal prototype to avoid an error.
14124 Use char because int might match the return type of a GCC
14125 builtin and then its argument prototype would still apply. */
14126 #ifdef __cplusplus
14127 extern "C"
14128 #endif
14129 char EGifPutExtensionLast ();
14130 int
14131 main ()
14132 {
14133 return EGifPutExtensionLast ();
14134 ;
14135 return 0;
14136 }
14137 _ACEOF
14138 rm -f conftest.$ac_objext conftest$ac_exeext
14139 if { (ac_try="$ac_link"
14140 case "(($ac_try" in
14141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14142 *) ac_try_echo=$ac_try;;
14143 esac
14144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145 (eval "$ac_link") 2>conftest.er1
14146 ac_status=$?
14147 grep -v '^ *+' conftest.er1 >conftest.err
14148 rm -f conftest.er1
14149 cat conftest.err >&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); } && {
14152 test -z "$ac_c_werror_flag" ||
14153 test ! -s conftest.err
14154 } && test -s conftest$ac_exeext &&
14155 $as_test_x conftest$ac_exeext; then
14156 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14157 else
14158 echo "$as_me: failed program was:" >&5
14159 sed 's/^/| /' conftest.$ac_ext >&5
14160
14161 ac_cv_lib_ungif_EGifPutExtensionLast=no
14162 fi
14163
14164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14165 conftest$ac_exeext conftest.$ac_ext
14166 LIBS=$ac_check_lib_save_LIBS
14167 fi
14168 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14169 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14170 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14171 HAVE_GIF=yes
14172 fi
14173
14174 fi
14175
14176
14177 fi
14178
14179 if test "${HAVE_GIF}" = "yes"; then
14180
14181 cat >>confdefs.h <<\_ACEOF
14182 #define HAVE_GIF 1
14183 _ACEOF
14184
14185 fi
14186 fi
14187
14188 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14189 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14190 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14191 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14192 echo $ECHO_N "(cached) $ECHO_C" >&6
14193 fi
14194 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14195 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14196 else
14197 # Is the header compilable?
14198 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14199 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14200 cat >conftest.$ac_ext <<_ACEOF
14201 /* confdefs.h. */
14202 _ACEOF
14203 cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h. */
14206 $ac_includes_default
14207 #include <malloc/malloc.h>
14208 _ACEOF
14209 rm -f conftest.$ac_objext
14210 if { (ac_try="$ac_compile"
14211 case "(($ac_try" in
14212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14213 *) ac_try_echo=$ac_try;;
14214 esac
14215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14216 (eval "$ac_compile") 2>conftest.er1
14217 ac_status=$?
14218 grep -v '^ *+' conftest.er1 >conftest.err
14219 rm -f conftest.er1
14220 cat conftest.err >&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); } && {
14223 test -z "$ac_c_werror_flag" ||
14224 test ! -s conftest.err
14225 } && test -s conftest.$ac_objext; then
14226 ac_header_compiler=yes
14227 else
14228 echo "$as_me: failed program was:" >&5
14229 sed 's/^/| /' conftest.$ac_ext >&5
14230
14231 ac_header_compiler=no
14232 fi
14233
14234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14236 echo "${ECHO_T}$ac_header_compiler" >&6; }
14237
14238 # Is the header present?
14239 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14240 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14241 cat >conftest.$ac_ext <<_ACEOF
14242 /* confdefs.h. */
14243 _ACEOF
14244 cat confdefs.h >>conftest.$ac_ext
14245 cat >>conftest.$ac_ext <<_ACEOF
14246 /* end confdefs.h. */
14247 #include <malloc/malloc.h>
14248 _ACEOF
14249 if { (ac_try="$ac_cpp conftest.$ac_ext"
14250 case "(($ac_try" in
14251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14252 *) ac_try_echo=$ac_try;;
14253 esac
14254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14256 ac_status=$?
14257 grep -v '^ *+' conftest.er1 >conftest.err
14258 rm -f conftest.er1
14259 cat conftest.err >&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } >/dev/null && {
14262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14263 test ! -s conftest.err
14264 }; then
14265 ac_header_preproc=yes
14266 else
14267 echo "$as_me: failed program was:" >&5
14268 sed 's/^/| /' conftest.$ac_ext >&5
14269
14270 ac_header_preproc=no
14271 fi
14272
14273 rm -f conftest.err conftest.$ac_ext
14274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14275 echo "${ECHO_T}$ac_header_preproc" >&6; }
14276
14277 # So? What about this header?
14278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14279 yes:no: )
14280 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14281 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14282 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14283 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14284 ac_header_preproc=yes
14285 ;;
14286 no:yes:* )
14287 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14288 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14289 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14290 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14291 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14292 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14293 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14294 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14295 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14296 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14297 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14298 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14299
14300 ;;
14301 esac
14302 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14303 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14304 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14305 echo $ECHO_N "(cached) $ECHO_C" >&6
14306 else
14307 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14308 fi
14309 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14310 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14311
14312 fi
14313 if test $ac_cv_header_malloc_malloc_h = yes; then
14314
14315 cat >>confdefs.h <<\_ACEOF
14316 #define HAVE_MALLOC_MALLOC_H 1
14317 _ACEOF
14318
14319 fi
14320
14321
14322
14323 ### Use Mac OS X Carbon API to implement GUI.
14324 if test "${HAVE_CARBON}" = "yes"; then
14325
14326 cat >>confdefs.h <<\_ACEOF
14327 #define HAVE_CARBON 1
14328 _ACEOF
14329
14330 ## Specify the install directory
14331 carbon_appdir=
14332 if test "${carbon_appdir_x}" != ""; then
14333 case ${carbon_appdir_x} in
14334 y | ye | yes) carbon_appdir=/Applications ;;
14335 * ) carbon_appdir=${carbon_appdir_x} ;;
14336 esac
14337 fi
14338 # We also have mouse menus.
14339 HAVE_MENUS=yes
14340 fi
14341
14342 ### Use session management (-lSM -lICE) if available
14343 HAVE_X_SM=no
14344 if test "${HAVE_X11}" = "yes"; then
14345 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14346 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14347 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14348 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14350 fi
14351 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14352 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14353 else
14354 # Is the header compilable?
14355 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14356 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14357 cat >conftest.$ac_ext <<_ACEOF
14358 /* confdefs.h. */
14359 _ACEOF
14360 cat confdefs.h >>conftest.$ac_ext
14361 cat >>conftest.$ac_ext <<_ACEOF
14362 /* end confdefs.h. */
14363 $ac_includes_default
14364 #include <X11/SM/SMlib.h>
14365 _ACEOF
14366 rm -f conftest.$ac_objext
14367 if { (ac_try="$ac_compile"
14368 case "(($ac_try" in
14369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370 *) ac_try_echo=$ac_try;;
14371 esac
14372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373 (eval "$ac_compile") 2>conftest.er1
14374 ac_status=$?
14375 grep -v '^ *+' conftest.er1 >conftest.err
14376 rm -f conftest.er1
14377 cat conftest.err >&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); } && {
14380 test -z "$ac_c_werror_flag" ||
14381 test ! -s conftest.err
14382 } && test -s conftest.$ac_objext; then
14383 ac_header_compiler=yes
14384 else
14385 echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.$ac_ext >&5
14387
14388 ac_header_compiler=no
14389 fi
14390
14391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14393 echo "${ECHO_T}$ac_header_compiler" >&6; }
14394
14395 # Is the header present?
14396 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14397 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14398 cat >conftest.$ac_ext <<_ACEOF
14399 /* confdefs.h. */
14400 _ACEOF
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h. */
14404 #include <X11/SM/SMlib.h>
14405 _ACEOF
14406 if { (ac_try="$ac_cpp conftest.$ac_ext"
14407 case "(($ac_try" in
14408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409 *) ac_try_echo=$ac_try;;
14410 esac
14411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14413 ac_status=$?
14414 grep -v '^ *+' conftest.er1 >conftest.err
14415 rm -f conftest.er1
14416 cat conftest.err >&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } >/dev/null && {
14419 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14420 test ! -s conftest.err
14421 }; then
14422 ac_header_preproc=yes
14423 else
14424 echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14426
14427 ac_header_preproc=no
14428 fi
14429
14430 rm -f conftest.err conftest.$ac_ext
14431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14432 echo "${ECHO_T}$ac_header_preproc" >&6; }
14433
14434 # So? What about this header?
14435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14436 yes:no: )
14437 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14438 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14439 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14440 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14441 ac_header_preproc=yes
14442 ;;
14443 no:yes:* )
14444 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14445 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14446 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14447 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14448 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14449 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14450 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14451 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14452 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14453 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14454 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14455 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14456
14457 ;;
14458 esac
14459 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14460 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14461 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14463 else
14464 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14465 fi
14466 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14467 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14468
14469 fi
14470 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14471 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14472 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14473 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14474 echo $ECHO_N "(cached) $ECHO_C" >&6
14475 else
14476 ac_check_lib_save_LIBS=$LIBS
14477 LIBS="-lSM -lICE $LIBS"
14478 cat >conftest.$ac_ext <<_ACEOF
14479 /* confdefs.h. */
14480 _ACEOF
14481 cat confdefs.h >>conftest.$ac_ext
14482 cat >>conftest.$ac_ext <<_ACEOF
14483 /* end confdefs.h. */
14484
14485 /* Override any GCC internal prototype to avoid an error.
14486 Use char because int might match the return type of a GCC
14487 builtin and then its argument prototype would still apply. */
14488 #ifdef __cplusplus
14489 extern "C"
14490 #endif
14491 char SmcOpenConnection ();
14492 int
14493 main ()
14494 {
14495 return SmcOpenConnection ();
14496 ;
14497 return 0;
14498 }
14499 _ACEOF
14500 rm -f conftest.$ac_objext conftest$ac_exeext
14501 if { (ac_try="$ac_link"
14502 case "(($ac_try" in
14503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14504 *) ac_try_echo=$ac_try;;
14505 esac
14506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14507 (eval "$ac_link") 2>conftest.er1
14508 ac_status=$?
14509 grep -v '^ *+' conftest.er1 >conftest.err
14510 rm -f conftest.er1
14511 cat conftest.err >&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } && {
14514 test -z "$ac_c_werror_flag" ||
14515 test ! -s conftest.err
14516 } && test -s conftest$ac_exeext &&
14517 $as_test_x conftest$ac_exeext; then
14518 ac_cv_lib_SM_SmcOpenConnection=yes
14519 else
14520 echo "$as_me: failed program was:" >&5
14521 sed 's/^/| /' conftest.$ac_ext >&5
14522
14523 ac_cv_lib_SM_SmcOpenConnection=no
14524 fi
14525
14526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14527 conftest$ac_exeext conftest.$ac_ext
14528 LIBS=$ac_check_lib_save_LIBS
14529 fi
14530 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14531 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14532 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14533 HAVE_X_SM=yes
14534 fi
14535
14536 fi
14537
14538
14539
14540 if test "${HAVE_X_SM}" = "yes"; then
14541
14542 cat >>confdefs.h <<\_ACEOF
14543 #define HAVE_X_SM 1
14544 _ACEOF
14545
14546 case "$LIBS" in
14547 *-lSM*) ;;
14548 *) LIBS="-lSM -lICE $LIBS" ;;
14549 esac
14550 fi
14551 fi
14552
14553 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14554 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14555 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14556 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14557 echo $ECHO_N "(cached) $ECHO_C" >&6
14558 else
14559 cat >conftest.$ac_ext <<_ACEOF
14560 /* confdefs.h. */
14561 _ACEOF
14562 cat confdefs.h >>conftest.$ac_ext
14563 cat >>conftest.$ac_ext <<_ACEOF
14564 /* end confdefs.h. */
14565 #include <netdb.h>
14566 int
14567 main ()
14568 {
14569 return h_errno;
14570 ;
14571 return 0;
14572 }
14573 _ACEOF
14574 rm -f conftest.$ac_objext conftest$ac_exeext
14575 if { (ac_try="$ac_link"
14576 case "(($ac_try" in
14577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14578 *) ac_try_echo=$ac_try;;
14579 esac
14580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14581 (eval "$ac_link") 2>conftest.er1
14582 ac_status=$?
14583 grep -v '^ *+' conftest.er1 >conftest.err
14584 rm -f conftest.er1
14585 cat conftest.err >&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); } && {
14588 test -z "$ac_c_werror_flag" ||
14589 test ! -s conftest.err
14590 } && test -s conftest$ac_exeext &&
14591 $as_test_x conftest$ac_exeext; then
14592 emacs_cv_netdb_declares_h_errno=yes
14593 else
14594 echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14596
14597 emacs_cv_netdb_declares_h_errno=no
14598 fi
14599
14600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14601 conftest$ac_exeext conftest.$ac_ext
14602 fi
14603 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14604 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14605 if test $emacs_cv_netdb_declares_h_errno = yes; then
14606
14607 cat >>confdefs.h <<\_ACEOF
14608 #define HAVE_H_ERRNO 1
14609 _ACEOF
14610
14611 fi
14612
14613 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14614 # for constant arguments. Useless!
14615 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14616 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14617 if test "${ac_cv_working_alloca_h+set}" = set; then
14618 echo $ECHO_N "(cached) $ECHO_C" >&6
14619 else
14620 cat >conftest.$ac_ext <<_ACEOF
14621 /* confdefs.h. */
14622 _ACEOF
14623 cat confdefs.h >>conftest.$ac_ext
14624 cat >>conftest.$ac_ext <<_ACEOF
14625 /* end confdefs.h. */
14626 #include <alloca.h>
14627 int
14628 main ()
14629 {
14630 char *p = (char *) alloca (2 * sizeof (int));
14631 if (p) return 0;
14632 ;
14633 return 0;
14634 }
14635 _ACEOF
14636 rm -f conftest.$ac_objext conftest$ac_exeext
14637 if { (ac_try="$ac_link"
14638 case "(($ac_try" in
14639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640 *) ac_try_echo=$ac_try;;
14641 esac
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643 (eval "$ac_link") 2>conftest.er1
14644 ac_status=$?
14645 grep -v '^ *+' conftest.er1 >conftest.err
14646 rm -f conftest.er1
14647 cat conftest.err >&5
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); } && {
14650 test -z "$ac_c_werror_flag" ||
14651 test ! -s conftest.err
14652 } && test -s conftest$ac_exeext &&
14653 $as_test_x conftest$ac_exeext; then
14654 ac_cv_working_alloca_h=yes
14655 else
14656 echo "$as_me: failed program was:" >&5
14657 sed 's/^/| /' conftest.$ac_ext >&5
14658
14659 ac_cv_working_alloca_h=no
14660 fi
14661
14662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14663 conftest$ac_exeext conftest.$ac_ext
14664 fi
14665 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14666 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14667 if test $ac_cv_working_alloca_h = yes; then
14668
14669 cat >>confdefs.h <<\_ACEOF
14670 #define HAVE_ALLOCA_H 1
14671 _ACEOF
14672
14673 fi
14674
14675 { echo "$as_me:$LINENO: checking for alloca" >&5
14676 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14677 if test "${ac_cv_func_alloca_works+set}" = set; then
14678 echo $ECHO_N "(cached) $ECHO_C" >&6
14679 else
14680 cat >conftest.$ac_ext <<_ACEOF
14681 /* confdefs.h. */
14682 _ACEOF
14683 cat confdefs.h >>conftest.$ac_ext
14684 cat >>conftest.$ac_ext <<_ACEOF
14685 /* end confdefs.h. */
14686 #ifdef __GNUC__
14687 # define alloca __builtin_alloca
14688 #else
14689 # ifdef _MSC_VER
14690 # include <malloc.h>
14691 # define alloca _alloca
14692 # else
14693 # ifdef HAVE_ALLOCA_H
14694 # include <alloca.h>
14695 # else
14696 # ifdef _AIX
14697 #pragma alloca
14698 # else
14699 # ifndef alloca /* predefined by HP cc +Olibcalls */
14700 char *alloca ();
14701 # endif
14702 # endif
14703 # endif
14704 # endif
14705 #endif
14706
14707 int
14708 main ()
14709 {
14710 char *p = (char *) alloca (1);
14711 if (p) return 0;
14712 ;
14713 return 0;
14714 }
14715 _ACEOF
14716 rm -f conftest.$ac_objext conftest$ac_exeext
14717 if { (ac_try="$ac_link"
14718 case "(($ac_try" in
14719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720 *) ac_try_echo=$ac_try;;
14721 esac
14722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14723 (eval "$ac_link") 2>conftest.er1
14724 ac_status=$?
14725 grep -v '^ *+' conftest.er1 >conftest.err
14726 rm -f conftest.er1
14727 cat conftest.err >&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } && {
14730 test -z "$ac_c_werror_flag" ||
14731 test ! -s conftest.err
14732 } && test -s conftest$ac_exeext &&
14733 $as_test_x conftest$ac_exeext; then
14734 ac_cv_func_alloca_works=yes
14735 else
14736 echo "$as_me: failed program was:" >&5
14737 sed 's/^/| /' conftest.$ac_ext >&5
14738
14739 ac_cv_func_alloca_works=no
14740 fi
14741
14742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14743 conftest$ac_exeext conftest.$ac_ext
14744 fi
14745 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14746 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14747
14748 if test $ac_cv_func_alloca_works = yes; then
14749
14750 cat >>confdefs.h <<\_ACEOF
14751 #define HAVE_ALLOCA 1
14752 _ACEOF
14753
14754 else
14755 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14756 # that cause trouble. Some versions do not even contain alloca or
14757 # contain a buggy version. If you still want to use their alloca,
14758 # use ar to extract alloca.o from them instead of compiling alloca.c.
14759
14760 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14761
14762 cat >>confdefs.h <<\_ACEOF
14763 #define C_ALLOCA 1
14764 _ACEOF
14765
14766
14767 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14768 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14769 if test "${ac_cv_os_cray+set}" = set; then
14770 echo $ECHO_N "(cached) $ECHO_C" >&6
14771 else
14772 cat >conftest.$ac_ext <<_ACEOF
14773 /* confdefs.h. */
14774 _ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h. */
14778 #if defined CRAY && ! defined CRAY2
14779 webecray
14780 #else
14781 wenotbecray
14782 #endif
14783
14784 _ACEOF
14785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14786 $EGREP "webecray" >/dev/null 2>&1; then
14787 ac_cv_os_cray=yes
14788 else
14789 ac_cv_os_cray=no
14790 fi
14791 rm -f conftest*
14792
14793 fi
14794 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14795 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14796 if test $ac_cv_os_cray = yes; then
14797 for ac_func in _getb67 GETB67 getb67; do
14798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14799 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14802 echo $ECHO_N "(cached) $ECHO_C" >&6
14803 else
14804 cat >conftest.$ac_ext <<_ACEOF
14805 /* confdefs.h. */
14806 _ACEOF
14807 cat confdefs.h >>conftest.$ac_ext
14808 cat >>conftest.$ac_ext <<_ACEOF
14809 /* end confdefs.h. */
14810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14812 #define $ac_func innocuous_$ac_func
14813
14814 /* System header to define __stub macros and hopefully few prototypes,
14815 which can conflict with char $ac_func (); below.
14816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14817 <limits.h> exists even on freestanding compilers. */
14818
14819 #ifdef __STDC__
14820 # include <limits.h>
14821 #else
14822 # include <assert.h>
14823 #endif
14824
14825 #undef $ac_func
14826
14827 /* Override any GCC internal prototype to avoid an error.
14828 Use char because int might match the return type of a GCC
14829 builtin and then its argument prototype would still apply. */
14830 #ifdef __cplusplus
14831 extern "C"
14832 #endif
14833 char $ac_func ();
14834 /* The GNU C library defines this for functions which it implements
14835 to always fail with ENOSYS. Some functions are actually named
14836 something starting with __ and the normal name is an alias. */
14837 #if defined __stub_$ac_func || defined __stub___$ac_func
14838 choke me
14839 #endif
14840
14841 int
14842 main ()
14843 {
14844 return $ac_func ();
14845 ;
14846 return 0;
14847 }
14848 _ACEOF
14849 rm -f conftest.$ac_objext conftest$ac_exeext
14850 if { (ac_try="$ac_link"
14851 case "(($ac_try" in
14852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14853 *) ac_try_echo=$ac_try;;
14854 esac
14855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14856 (eval "$ac_link") 2>conftest.er1
14857 ac_status=$?
14858 grep -v '^ *+' conftest.er1 >conftest.err
14859 rm -f conftest.er1
14860 cat conftest.err >&5
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); } && {
14863 test -z "$ac_c_werror_flag" ||
14864 test ! -s conftest.err
14865 } && test -s conftest$ac_exeext &&
14866 $as_test_x conftest$ac_exeext; then
14867 eval "$as_ac_var=yes"
14868 else
14869 echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14871
14872 eval "$as_ac_var=no"
14873 fi
14874
14875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14876 conftest$ac_exeext conftest.$ac_ext
14877 fi
14878 ac_res=`eval echo '${'$as_ac_var'}'`
14879 { echo "$as_me:$LINENO: result: $ac_res" >&5
14880 echo "${ECHO_T}$ac_res" >&6; }
14881 if test `eval echo '${'$as_ac_var'}'` = yes; then
14882
14883 cat >>confdefs.h <<_ACEOF
14884 #define CRAY_STACKSEG_END $ac_func
14885 _ACEOF
14886
14887 break
14888 fi
14889
14890 done
14891 fi
14892
14893 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14894 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14895 if test "${ac_cv_c_stack_direction+set}" = set; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14897 else
14898 if test "$cross_compiling" = yes; then
14899 ac_cv_c_stack_direction=0
14900 else
14901 cat >conftest.$ac_ext <<_ACEOF
14902 /* confdefs.h. */
14903 _ACEOF
14904 cat confdefs.h >>conftest.$ac_ext
14905 cat >>conftest.$ac_ext <<_ACEOF
14906 /* end confdefs.h. */
14907 $ac_includes_default
14908 int
14909 find_stack_direction ()
14910 {
14911 static char *addr = 0;
14912 auto char dummy;
14913 if (addr == 0)
14914 {
14915 addr = &dummy;
14916 return find_stack_direction ();
14917 }
14918 else
14919 return (&dummy > addr) ? 1 : -1;
14920 }
14921
14922 int
14923 main ()
14924 {
14925 return find_stack_direction () < 0;
14926 }
14927 _ACEOF
14928 rm -f conftest$ac_exeext
14929 if { (ac_try="$ac_link"
14930 case "(($ac_try" in
14931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14932 *) ac_try_echo=$ac_try;;
14933 esac
14934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14935 (eval "$ac_link") 2>&5
14936 ac_status=$?
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14939 { (case "(($ac_try" in
14940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14941 *) ac_try_echo=$ac_try;;
14942 esac
14943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14944 (eval "$ac_try") 2>&5
14945 ac_status=$?
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); }; }; then
14948 ac_cv_c_stack_direction=1
14949 else
14950 echo "$as_me: program exited with status $ac_status" >&5
14951 echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14953
14954 ( exit $ac_status )
14955 ac_cv_c_stack_direction=-1
14956 fi
14957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14958 fi
14959
14960
14961 fi
14962 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14963 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14964
14965 cat >>confdefs.h <<_ACEOF
14966 #define STACK_DIRECTION $ac_cv_c_stack_direction
14967 _ACEOF
14968
14969
14970 fi
14971
14972
14973 # fmod, logb, and frexp are found in -lm on most systems.
14974 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14975
14976 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14977 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14978 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14979 echo $ECHO_N "(cached) $ECHO_C" >&6
14980 else
14981 ac_check_lib_save_LIBS=$LIBS
14982 LIBS="-lm $LIBS"
14983 cat >conftest.$ac_ext <<_ACEOF
14984 /* confdefs.h. */
14985 _ACEOF
14986 cat confdefs.h >>conftest.$ac_ext
14987 cat >>conftest.$ac_ext <<_ACEOF
14988 /* end confdefs.h. */
14989
14990 /* Override any GCC internal prototype to avoid an error.
14991 Use char because int might match the return type of a GCC
14992 builtin and then its argument prototype would still apply. */
14993 #ifdef __cplusplus
14994 extern "C"
14995 #endif
14996 char sqrt ();
14997 int
14998 main ()
14999 {
15000 return sqrt ();
15001 ;
15002 return 0;
15003 }
15004 _ACEOF
15005 rm -f conftest.$ac_objext conftest$ac_exeext
15006 if { (ac_try="$ac_link"
15007 case "(($ac_try" in
15008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15009 *) ac_try_echo=$ac_try;;
15010 esac
15011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15012 (eval "$ac_link") 2>conftest.er1
15013 ac_status=$?
15014 grep -v '^ *+' conftest.er1 >conftest.err
15015 rm -f conftest.er1
15016 cat conftest.err >&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); } && {
15019 test -z "$ac_c_werror_flag" ||
15020 test ! -s conftest.err
15021 } && test -s conftest$ac_exeext &&
15022 $as_test_x conftest$ac_exeext; then
15023 ac_cv_lib_m_sqrt=yes
15024 else
15025 echo "$as_me: failed program was:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15027
15028 ac_cv_lib_m_sqrt=no
15029 fi
15030
15031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15032 conftest$ac_exeext conftest.$ac_ext
15033 LIBS=$ac_check_lib_save_LIBS
15034 fi
15035 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15036 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15037 if test $ac_cv_lib_m_sqrt = yes; then
15038 cat >>confdefs.h <<_ACEOF
15039 #define HAVE_LIBM 1
15040 _ACEOF
15041
15042 LIBS="-lm $LIBS"
15043
15044 fi
15045
15046
15047 # Check for mail-locking functions in a "mail" library. Probably this should
15048 # have the same check as for liblockfile below.
15049
15050 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15051 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15052 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15053 echo $ECHO_N "(cached) $ECHO_C" >&6
15054 else
15055 ac_check_lib_save_LIBS=$LIBS
15056 LIBS="-lmail $LIBS"
15057 cat >conftest.$ac_ext <<_ACEOF
15058 /* confdefs.h. */
15059 _ACEOF
15060 cat confdefs.h >>conftest.$ac_ext
15061 cat >>conftest.$ac_ext <<_ACEOF
15062 /* end confdefs.h. */
15063
15064 /* Override any GCC internal prototype to avoid an error.
15065 Use char because int might match the return type of a GCC
15066 builtin and then its argument prototype would still apply. */
15067 #ifdef __cplusplus
15068 extern "C"
15069 #endif
15070 char maillock ();
15071 int
15072 main ()
15073 {
15074 return maillock ();
15075 ;
15076 return 0;
15077 }
15078 _ACEOF
15079 rm -f conftest.$ac_objext conftest$ac_exeext
15080 if { (ac_try="$ac_link"
15081 case "(($ac_try" in
15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083 *) ac_try_echo=$ac_try;;
15084 esac
15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086 (eval "$ac_link") 2>conftest.er1
15087 ac_status=$?
15088 grep -v '^ *+' conftest.er1 >conftest.err
15089 rm -f conftest.er1
15090 cat conftest.err >&5
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); } && {
15093 test -z "$ac_c_werror_flag" ||
15094 test ! -s conftest.err
15095 } && test -s conftest$ac_exeext &&
15096 $as_test_x conftest$ac_exeext; then
15097 ac_cv_lib_mail_maillock=yes
15098 else
15099 echo "$as_me: failed program was:" >&5
15100 sed 's/^/| /' conftest.$ac_ext >&5
15101
15102 ac_cv_lib_mail_maillock=no
15103 fi
15104
15105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15106 conftest$ac_exeext conftest.$ac_ext
15107 LIBS=$ac_check_lib_save_LIBS
15108 fi
15109 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15110 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15111 if test $ac_cv_lib_mail_maillock = yes; then
15112 cat >>confdefs.h <<_ACEOF
15113 #define HAVE_LIBMAIL 1
15114 _ACEOF
15115
15116 LIBS="-lmail $LIBS"
15117
15118 fi
15119
15120
15121 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15122 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15123 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15124 echo $ECHO_N "(cached) $ECHO_C" >&6
15125 else
15126 ac_check_lib_save_LIBS=$LIBS
15127 LIBS="-llockfile $LIBS"
15128 cat >conftest.$ac_ext <<_ACEOF
15129 /* confdefs.h. */
15130 _ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h. */
15134
15135 /* Override any GCC internal prototype to avoid an error.
15136 Use char because int might match the return type of a GCC
15137 builtin and then its argument prototype would still apply. */
15138 #ifdef __cplusplus
15139 extern "C"
15140 #endif
15141 char maillock ();
15142 int
15143 main ()
15144 {
15145 return maillock ();
15146 ;
15147 return 0;
15148 }
15149 _ACEOF
15150 rm -f conftest.$ac_objext conftest$ac_exeext
15151 if { (ac_try="$ac_link"
15152 case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15155 esac
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_link") 2>conftest.er1
15158 ac_status=$?
15159 grep -v '^ *+' conftest.er1 >conftest.err
15160 rm -f conftest.er1
15161 cat conftest.err >&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } && {
15164 test -z "$ac_c_werror_flag" ||
15165 test ! -s conftest.err
15166 } && test -s conftest$ac_exeext &&
15167 $as_test_x conftest$ac_exeext; then
15168 ac_cv_lib_lockfile_maillock=yes
15169 else
15170 echo "$as_me: failed program was:" >&5
15171 sed 's/^/| /' conftest.$ac_ext >&5
15172
15173 ac_cv_lib_lockfile_maillock=no
15174 fi
15175
15176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15177 conftest$ac_exeext conftest.$ac_ext
15178 LIBS=$ac_check_lib_save_LIBS
15179 fi
15180 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15181 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15182 if test $ac_cv_lib_lockfile_maillock = yes; then
15183 cat >>confdefs.h <<_ACEOF
15184 #define HAVE_LIBLOCKFILE 1
15185 _ACEOF
15186
15187 LIBS="-llockfile $LIBS"
15188
15189 fi
15190
15191 # If we have the shared liblockfile, assume we must use it for mail
15192 # locking (e.g. Debian). If we couldn't link against liblockfile
15193 # (no liblockfile.a installed), ensure that we don't need to.
15194 if test "$ac_cv_lib_lockfile_maillock" = no; then
15195 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15196 set dummy liblockfile.so; ac_word=$2
15197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15199 if test "${ac_cv_prog_liblockfile+set}" = set; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15201 else
15202 if test -n "$liblockfile"; then
15203 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15204 else
15205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15206 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15207 for as_dir in $as_dummy
15208 do
15209 IFS=$as_save_IFS
15210 test -z "$as_dir" && as_dir=.
15211 for ac_exec_ext in '' $ac_executable_extensions; do
15212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15213 ac_cv_prog_liblockfile="yes"
15214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15215 break 2
15216 fi
15217 done
15218 done
15219 IFS=$as_save_IFS
15220
15221 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15222 fi
15223 fi
15224 liblockfile=$ac_cv_prog_liblockfile
15225 if test -n "$liblockfile"; then
15226 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15227 echo "${ECHO_T}$liblockfile" >&6; }
15228 else
15229 { echo "$as_me:$LINENO: result: no" >&5
15230 echo "${ECHO_T}no" >&6; }
15231 fi
15232
15233
15234 if test $ac_cv_prog_liblockfile = yes; then
15235 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15236 This probably means that movemail could lose mail.
15237 There may be a \`development' package to install containing liblockfile." >&5
15238 echo "$as_me: error: Shared liblockfile found but can't link against it.
15239 This probably means that movemail could lose mail.
15240 There may be a \`development' package to install containing liblockfile." >&2;}
15241 { (exit 1); exit 1; }; }
15242 else :
15243 fi
15244 fi
15245
15246 for ac_func in touchlock
15247 do
15248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15249 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15252 echo $ECHO_N "(cached) $ECHO_C" >&6
15253 else
15254 cat >conftest.$ac_ext <<_ACEOF
15255 /* confdefs.h. */
15256 _ACEOF
15257 cat confdefs.h >>conftest.$ac_ext
15258 cat >>conftest.$ac_ext <<_ACEOF
15259 /* end confdefs.h. */
15260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15262 #define $ac_func innocuous_$ac_func
15263
15264 /* System header to define __stub macros and hopefully few prototypes,
15265 which can conflict with char $ac_func (); below.
15266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15267 <limits.h> exists even on freestanding compilers. */
15268
15269 #ifdef __STDC__
15270 # include <limits.h>
15271 #else
15272 # include <assert.h>
15273 #endif
15274
15275 #undef $ac_func
15276
15277 /* Override any GCC internal prototype to avoid an error.
15278 Use char because int might match the return type of a GCC
15279 builtin and then its argument prototype would still apply. */
15280 #ifdef __cplusplus
15281 extern "C"
15282 #endif
15283 char $ac_func ();
15284 /* The GNU C library defines this for functions which it implements
15285 to always fail with ENOSYS. Some functions are actually named
15286 something starting with __ and the normal name is an alias. */
15287 #if defined __stub_$ac_func || defined __stub___$ac_func
15288 choke me
15289 #endif
15290
15291 int
15292 main ()
15293 {
15294 return $ac_func ();
15295 ;
15296 return 0;
15297 }
15298 _ACEOF
15299 rm -f conftest.$ac_objext conftest$ac_exeext
15300 if { (ac_try="$ac_link"
15301 case "(($ac_try" in
15302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303 *) ac_try_echo=$ac_try;;
15304 esac
15305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15306 (eval "$ac_link") 2>conftest.er1
15307 ac_status=$?
15308 grep -v '^ *+' conftest.er1 >conftest.err
15309 rm -f conftest.er1
15310 cat conftest.err >&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); } && {
15313 test -z "$ac_c_werror_flag" ||
15314 test ! -s conftest.err
15315 } && test -s conftest$ac_exeext &&
15316 $as_test_x conftest$ac_exeext; then
15317 eval "$as_ac_var=yes"
15318 else
15319 echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15321
15322 eval "$as_ac_var=no"
15323 fi
15324
15325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15326 conftest$ac_exeext conftest.$ac_ext
15327 fi
15328 ac_res=`eval echo '${'$as_ac_var'}'`
15329 { echo "$as_me:$LINENO: result: $ac_res" >&5
15330 echo "${ECHO_T}$ac_res" >&6; }
15331 if test `eval echo '${'$as_ac_var'}'` = yes; then
15332 cat >>confdefs.h <<_ACEOF
15333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15334 _ACEOF
15335
15336 fi
15337 done
15338
15339
15340 for ac_header in maillock.h
15341 do
15342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15347 echo $ECHO_N "(cached) $ECHO_C" >&6
15348 fi
15349 ac_res=`eval echo '${'$as_ac_Header'}'`
15350 { echo "$as_me:$LINENO: result: $ac_res" >&5
15351 echo "${ECHO_T}$ac_res" >&6; }
15352 else
15353 # Is the header compilable?
15354 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15356 cat >conftest.$ac_ext <<_ACEOF
15357 /* confdefs.h. */
15358 _ACEOF
15359 cat confdefs.h >>conftest.$ac_ext
15360 cat >>conftest.$ac_ext <<_ACEOF
15361 /* end confdefs.h. */
15362 $ac_includes_default
15363 #include <$ac_header>
15364 _ACEOF
15365 rm -f conftest.$ac_objext
15366 if { (ac_try="$ac_compile"
15367 case "(($ac_try" in
15368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15369 *) ac_try_echo=$ac_try;;
15370 esac
15371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15372 (eval "$ac_compile") 2>conftest.er1
15373 ac_status=$?
15374 grep -v '^ *+' conftest.er1 >conftest.err
15375 rm -f conftest.er1
15376 cat conftest.err >&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); } && {
15379 test -z "$ac_c_werror_flag" ||
15380 test ! -s conftest.err
15381 } && test -s conftest.$ac_objext; then
15382 ac_header_compiler=yes
15383 else
15384 echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15386
15387 ac_header_compiler=no
15388 fi
15389
15390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15391 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15392 echo "${ECHO_T}$ac_header_compiler" >&6; }
15393
15394 # Is the header present?
15395 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15397 cat >conftest.$ac_ext <<_ACEOF
15398 /* confdefs.h. */
15399 _ACEOF
15400 cat confdefs.h >>conftest.$ac_ext
15401 cat >>conftest.$ac_ext <<_ACEOF
15402 /* end confdefs.h. */
15403 #include <$ac_header>
15404 _ACEOF
15405 if { (ac_try="$ac_cpp conftest.$ac_ext"
15406 case "(($ac_try" in
15407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408 *) ac_try_echo=$ac_try;;
15409 esac
15410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15412 ac_status=$?
15413 grep -v '^ *+' conftest.er1 >conftest.err
15414 rm -f conftest.er1
15415 cat conftest.err >&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } >/dev/null && {
15418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15419 test ! -s conftest.err
15420 }; then
15421 ac_header_preproc=yes
15422 else
15423 echo "$as_me: failed program was:" >&5
15424 sed 's/^/| /' conftest.$ac_ext >&5
15425
15426 ac_header_preproc=no
15427 fi
15428
15429 rm -f conftest.err conftest.$ac_ext
15430 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15431 echo "${ECHO_T}$ac_header_preproc" >&6; }
15432
15433 # So? What about this header?
15434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15435 yes:no: )
15436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15440 ac_header_preproc=yes
15441 ;;
15442 no:yes:* )
15443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15446 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15450 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15455
15456 ;;
15457 esac
15458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
15462 else
15463 eval "$as_ac_Header=\$ac_header_preproc"
15464 fi
15465 ac_res=`eval echo '${'$as_ac_Header'}'`
15466 { echo "$as_me:$LINENO: result: $ac_res" >&5
15467 echo "${ECHO_T}$ac_res" >&6; }
15468
15469 fi
15470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15471 cat >>confdefs.h <<_ACEOF
15472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15473 _ACEOF
15474
15475 fi
15476
15477 done
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549 for ac_func in gethostname getdomainname dup2 \
15550 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15551 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15552 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15553 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15554 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15555 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15556 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15557 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15558 do
15559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15563 echo $ECHO_N "(cached) $ECHO_C" >&6
15564 else
15565 cat >conftest.$ac_ext <<_ACEOF
15566 /* confdefs.h. */
15567 _ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h. */
15571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15573 #define $ac_func innocuous_$ac_func
15574
15575 /* System header to define __stub macros and hopefully few prototypes,
15576 which can conflict with char $ac_func (); below.
15577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15578 <limits.h> exists even on freestanding compilers. */
15579
15580 #ifdef __STDC__
15581 # include <limits.h>
15582 #else
15583 # include <assert.h>
15584 #endif
15585
15586 #undef $ac_func
15587
15588 /* Override any GCC internal prototype to avoid an error.
15589 Use char because int might match the return type of a GCC
15590 builtin and then its argument prototype would still apply. */
15591 #ifdef __cplusplus
15592 extern "C"
15593 #endif
15594 char $ac_func ();
15595 /* The GNU C library defines this for functions which it implements
15596 to always fail with ENOSYS. Some functions are actually named
15597 something starting with __ and the normal name is an alias. */
15598 #if defined __stub_$ac_func || defined __stub___$ac_func
15599 choke me
15600 #endif
15601
15602 int
15603 main ()
15604 {
15605 return $ac_func ();
15606 ;
15607 return 0;
15608 }
15609 _ACEOF
15610 rm -f conftest.$ac_objext conftest$ac_exeext
15611 if { (ac_try="$ac_link"
15612 case "(($ac_try" in
15613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614 *) ac_try_echo=$ac_try;;
15615 esac
15616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15617 (eval "$ac_link") 2>conftest.er1
15618 ac_status=$?
15619 grep -v '^ *+' conftest.er1 >conftest.err
15620 rm -f conftest.er1
15621 cat conftest.err >&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } && {
15624 test -z "$ac_c_werror_flag" ||
15625 test ! -s conftest.err
15626 } && test -s conftest$ac_exeext &&
15627 $as_test_x conftest$ac_exeext; then
15628 eval "$as_ac_var=yes"
15629 else
15630 echo "$as_me: failed program was:" >&5
15631 sed 's/^/| /' conftest.$ac_ext >&5
15632
15633 eval "$as_ac_var=no"
15634 fi
15635
15636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15637 conftest$ac_exeext conftest.$ac_ext
15638 fi
15639 ac_res=`eval echo '${'$as_ac_var'}'`
15640 { echo "$as_me:$LINENO: result: $ac_res" >&5
15641 echo "${ECHO_T}$ac_res" >&6; }
15642 if test `eval echo '${'$as_ac_var'}'` = yes; then
15643 cat >>confdefs.h <<_ACEOF
15644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15645 _ACEOF
15646
15647 fi
15648 done
15649
15650
15651
15652 for ac_header in sys/un.h
15653 do
15654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15659 echo $ECHO_N "(cached) $ECHO_C" >&6
15660 fi
15661 ac_res=`eval echo '${'$as_ac_Header'}'`
15662 { echo "$as_me:$LINENO: result: $ac_res" >&5
15663 echo "${ECHO_T}$ac_res" >&6; }
15664 else
15665 # Is the header compilable?
15666 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15668 cat >conftest.$ac_ext <<_ACEOF
15669 /* confdefs.h. */
15670 _ACEOF
15671 cat confdefs.h >>conftest.$ac_ext
15672 cat >>conftest.$ac_ext <<_ACEOF
15673 /* end confdefs.h. */
15674 $ac_includes_default
15675 #include <$ac_header>
15676 _ACEOF
15677 rm -f conftest.$ac_objext
15678 if { (ac_try="$ac_compile"
15679 case "(($ac_try" in
15680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681 *) ac_try_echo=$ac_try;;
15682 esac
15683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684 (eval "$ac_compile") 2>conftest.er1
15685 ac_status=$?
15686 grep -v '^ *+' conftest.er1 >conftest.err
15687 rm -f conftest.er1
15688 cat conftest.err >&5
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); } && {
15691 test -z "$ac_c_werror_flag" ||
15692 test ! -s conftest.err
15693 } && test -s conftest.$ac_objext; then
15694 ac_header_compiler=yes
15695 else
15696 echo "$as_me: failed program was:" >&5
15697 sed 's/^/| /' conftest.$ac_ext >&5
15698
15699 ac_header_compiler=no
15700 fi
15701
15702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15703 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15704 echo "${ECHO_T}$ac_header_compiler" >&6; }
15705
15706 # Is the header present?
15707 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15709 cat >conftest.$ac_ext <<_ACEOF
15710 /* confdefs.h. */
15711 _ACEOF
15712 cat confdefs.h >>conftest.$ac_ext
15713 cat >>conftest.$ac_ext <<_ACEOF
15714 /* end confdefs.h. */
15715 #include <$ac_header>
15716 _ACEOF
15717 if { (ac_try="$ac_cpp conftest.$ac_ext"
15718 case "(($ac_try" in
15719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15720 *) ac_try_echo=$ac_try;;
15721 esac
15722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15724 ac_status=$?
15725 grep -v '^ *+' conftest.er1 >conftest.err
15726 rm -f conftest.er1
15727 cat conftest.err >&5
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); } >/dev/null && {
15730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15731 test ! -s conftest.err
15732 }; then
15733 ac_header_preproc=yes
15734 else
15735 echo "$as_me: failed program was:" >&5
15736 sed 's/^/| /' conftest.$ac_ext >&5
15737
15738 ac_header_preproc=no
15739 fi
15740
15741 rm -f conftest.err conftest.$ac_ext
15742 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15743 echo "${ECHO_T}$ac_header_preproc" >&6; }
15744
15745 # So? What about this header?
15746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15747 yes:no: )
15748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15752 ac_header_preproc=yes
15753 ;;
15754 no:yes:* )
15755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15758 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15759 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15761 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15762 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15765 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15767
15768 ;;
15769 esac
15770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15773 echo $ECHO_N "(cached) $ECHO_C" >&6
15774 else
15775 eval "$as_ac_Header=\$ac_header_preproc"
15776 fi
15777 ac_res=`eval echo '${'$as_ac_Header'}'`
15778 { echo "$as_me:$LINENO: result: $ac_res" >&5
15779 echo "${ECHO_T}$ac_res" >&6; }
15780
15781 fi
15782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15783 cat >>confdefs.h <<_ACEOF
15784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15785 _ACEOF
15786
15787 fi
15788
15789 done
15790
15791
15792
15793
15794
15795
15796 for ac_header in $ac_header_list
15797 do
15798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15803 echo $ECHO_N "(cached) $ECHO_C" >&6
15804 fi
15805 ac_res=`eval echo '${'$as_ac_Header'}'`
15806 { echo "$as_me:$LINENO: result: $ac_res" >&5
15807 echo "${ECHO_T}$ac_res" >&6; }
15808 else
15809 # Is the header compilable?
15810 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15812 cat >conftest.$ac_ext <<_ACEOF
15813 /* confdefs.h. */
15814 _ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h. */
15818 $ac_includes_default
15819 #include <$ac_header>
15820 _ACEOF
15821 rm -f conftest.$ac_objext
15822 if { (ac_try="$ac_compile"
15823 case "(($ac_try" in
15824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825 *) ac_try_echo=$ac_try;;
15826 esac
15827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828 (eval "$ac_compile") 2>conftest.er1
15829 ac_status=$?
15830 grep -v '^ *+' conftest.er1 >conftest.err
15831 rm -f conftest.er1
15832 cat conftest.err >&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } && {
15835 test -z "$ac_c_werror_flag" ||
15836 test ! -s conftest.err
15837 } && test -s conftest.$ac_objext; then
15838 ac_header_compiler=yes
15839 else
15840 echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15842
15843 ac_header_compiler=no
15844 fi
15845
15846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15848 echo "${ECHO_T}$ac_header_compiler" >&6; }
15849
15850 # Is the header present?
15851 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15853 cat >conftest.$ac_ext <<_ACEOF
15854 /* confdefs.h. */
15855 _ACEOF
15856 cat confdefs.h >>conftest.$ac_ext
15857 cat >>conftest.$ac_ext <<_ACEOF
15858 /* end confdefs.h. */
15859 #include <$ac_header>
15860 _ACEOF
15861 if { (ac_try="$ac_cpp conftest.$ac_ext"
15862 case "(($ac_try" in
15863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864 *) ac_try_echo=$ac_try;;
15865 esac
15866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15868 ac_status=$?
15869 grep -v '^ *+' conftest.er1 >conftest.err
15870 rm -f conftest.er1
15871 cat conftest.err >&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); } >/dev/null && {
15874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15875 test ! -s conftest.err
15876 }; then
15877 ac_header_preproc=yes
15878 else
15879 echo "$as_me: failed program was:" >&5
15880 sed 's/^/| /' conftest.$ac_ext >&5
15881
15882 ac_header_preproc=no
15883 fi
15884
15885 rm -f conftest.err conftest.$ac_ext
15886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15887 echo "${ECHO_T}$ac_header_preproc" >&6; }
15888
15889 # So? What about this header?
15890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15891 yes:no: )
15892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15896 ac_header_preproc=yes
15897 ;;
15898 no:yes:* )
15899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15906 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15911
15912 ;;
15913 esac
15914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15917 echo $ECHO_N "(cached) $ECHO_C" >&6
15918 else
15919 eval "$as_ac_Header=\$ac_header_preproc"
15920 fi
15921 ac_res=`eval echo '${'$as_ac_Header'}'`
15922 { echo "$as_me:$LINENO: result: $ac_res" >&5
15923 echo "${ECHO_T}$ac_res" >&6; }
15924
15925 fi
15926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15927 cat >>confdefs.h <<_ACEOF
15928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15929 _ACEOF
15930
15931 fi
15932
15933 done
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943 for ac_func in $ac_func_list
15944 do
15945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15946 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15948 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15949 echo $ECHO_N "(cached) $ECHO_C" >&6
15950 else
15951 cat >conftest.$ac_ext <<_ACEOF
15952 /* confdefs.h. */
15953 _ACEOF
15954 cat confdefs.h >>conftest.$ac_ext
15955 cat >>conftest.$ac_ext <<_ACEOF
15956 /* end confdefs.h. */
15957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15959 #define $ac_func innocuous_$ac_func
15960
15961 /* System header to define __stub macros and hopefully few prototypes,
15962 which can conflict with char $ac_func (); below.
15963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15964 <limits.h> exists even on freestanding compilers. */
15965
15966 #ifdef __STDC__
15967 # include <limits.h>
15968 #else
15969 # include <assert.h>
15970 #endif
15971
15972 #undef $ac_func
15973
15974 /* Override any GCC internal prototype to avoid an error.
15975 Use char because int might match the return type of a GCC
15976 builtin and then its argument prototype would still apply. */
15977 #ifdef __cplusplus
15978 extern "C"
15979 #endif
15980 char $ac_func ();
15981 /* The GNU C library defines this for functions which it implements
15982 to always fail with ENOSYS. Some functions are actually named
15983 something starting with __ and the normal name is an alias. */
15984 #if defined __stub_$ac_func || defined __stub___$ac_func
15985 choke me
15986 #endif
15987
15988 int
15989 main ()
15990 {
15991 return $ac_func ();
15992 ;
15993 return 0;
15994 }
15995 _ACEOF
15996 rm -f conftest.$ac_objext conftest$ac_exeext
15997 if { (ac_try="$ac_link"
15998 case "(($ac_try" in
15999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000 *) ac_try_echo=$ac_try;;
16001 esac
16002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003 (eval "$ac_link") 2>conftest.er1
16004 ac_status=$?
16005 grep -v '^ *+' conftest.er1 >conftest.err
16006 rm -f conftest.er1
16007 cat conftest.err >&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } && {
16010 test -z "$ac_c_werror_flag" ||
16011 test ! -s conftest.err
16012 } && test -s conftest$ac_exeext &&
16013 $as_test_x conftest$ac_exeext; then
16014 eval "$as_ac_var=yes"
16015 else
16016 echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.$ac_ext >&5
16018
16019 eval "$as_ac_var=no"
16020 fi
16021
16022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16023 conftest$ac_exeext conftest.$ac_ext
16024 fi
16025 ac_res=`eval echo '${'$as_ac_var'}'`
16026 { echo "$as_me:$LINENO: result: $ac_res" >&5
16027 echo "${ECHO_T}$ac_res" >&6; }
16028 if test `eval echo '${'$as_ac_var'}'` = yes; then
16029 cat >>confdefs.h <<_ACEOF
16030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16031 _ACEOF
16032
16033 fi
16034 done
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052 { echo "$as_me:$LINENO: checking for working mktime" >&5
16053 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16054 if test "${ac_cv_func_working_mktime+set}" = set; then
16055 echo $ECHO_N "(cached) $ECHO_C" >&6
16056 else
16057 if test "$cross_compiling" = yes; then
16058 ac_cv_func_working_mktime=no
16059 else
16060 cat >conftest.$ac_ext <<_ACEOF
16061 /* confdefs.h. */
16062 _ACEOF
16063 cat confdefs.h >>conftest.$ac_ext
16064 cat >>conftest.$ac_ext <<_ACEOF
16065 /* end confdefs.h. */
16066 /* Test program from Paul Eggert and Tony Leneis. */
16067 #ifdef TIME_WITH_SYS_TIME
16068 # include <sys/time.h>
16069 # include <time.h>
16070 #else
16071 # ifdef HAVE_SYS_TIME_H
16072 # include <sys/time.h>
16073 # else
16074 # include <time.h>
16075 # endif
16076 #endif
16077
16078 #include <stdlib.h>
16079
16080 #ifdef HAVE_UNISTD_H
16081 # include <unistd.h>
16082 #endif
16083
16084 #ifndef HAVE_ALARM
16085 # define alarm(X) /* empty */
16086 #endif
16087
16088 /* Work around redefinition to rpl_putenv by other config tests. */
16089 #undef putenv
16090
16091 static time_t time_t_max;
16092 static time_t time_t_min;
16093
16094 /* Values we'll use to set the TZ environment variable. */
16095 static char *tz_strings[] = {
16096 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16097 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16098 };
16099 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16100
16101 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16102 Based on a problem report from Andreas Jaeger. */
16103 static int
16104 spring_forward_gap ()
16105 {
16106 /* glibc (up to about 1998-10-07) failed this test. */
16107 struct tm tm;
16108
16109 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16110 instead of "TZ=America/Vancouver" in order to detect the bug even
16111 on systems that don't support the Olson extension, or don't have the
16112 full zoneinfo tables installed. */
16113 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16114
16115 tm.tm_year = 98;
16116 tm.tm_mon = 3;
16117 tm.tm_mday = 5;
16118 tm.tm_hour = 2;
16119 tm.tm_min = 0;
16120 tm.tm_sec = 0;
16121 tm.tm_isdst = -1;
16122 return mktime (&tm) != (time_t) -1;
16123 }
16124
16125 static int
16126 mktime_test1 (now)
16127 time_t now;
16128 {
16129 struct tm *lt;
16130 return ! (lt = localtime (&now)) || mktime (lt) == now;
16131 }
16132
16133 static int
16134 mktime_test (now)
16135 time_t now;
16136 {
16137 return (mktime_test1 (now)
16138 && mktime_test1 ((time_t) (time_t_max - now))
16139 && mktime_test1 ((time_t) (time_t_min + now)));
16140 }
16141
16142 static int
16143 irix_6_4_bug ()
16144 {
16145 /* Based on code from Ariel Faigon. */
16146 struct tm tm;
16147 tm.tm_year = 96;
16148 tm.tm_mon = 3;
16149 tm.tm_mday = 0;
16150 tm.tm_hour = 0;
16151 tm.tm_min = 0;
16152 tm.tm_sec = 0;
16153 tm.tm_isdst = -1;
16154 mktime (&tm);
16155 return tm.tm_mon == 2 && tm.tm_mday == 31;
16156 }
16157
16158 static int
16159 bigtime_test (j)
16160 int j;
16161 {
16162 struct tm tm;
16163 time_t now;
16164 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16165 now = mktime (&tm);
16166 if (now != (time_t) -1)
16167 {
16168 struct tm *lt = localtime (&now);
16169 if (! (lt
16170 && lt->tm_year == tm.tm_year
16171 && lt->tm_mon == tm.tm_mon
16172 && lt->tm_mday == tm.tm_mday
16173 && lt->tm_hour == tm.tm_hour
16174 && lt->tm_min == tm.tm_min
16175 && lt->tm_sec == tm.tm_sec
16176 && lt->tm_yday == tm.tm_yday
16177 && lt->tm_wday == tm.tm_wday
16178 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16179 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16180 return 0;
16181 }
16182 return 1;
16183 }
16184
16185 static int
16186 year_2050_test ()
16187 {
16188 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16189 ignoring leap seconds. */
16190 unsigned long int answer = 2527315200UL;
16191
16192 struct tm tm;
16193 time_t t;
16194 tm.tm_year = 2050 - 1900;
16195 tm.tm_mon = 2 - 1;
16196 tm.tm_mday = 1;
16197 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16198 tm.tm_isdst = -1;
16199
16200 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16201 instead of "TZ=America/Vancouver" in order to detect the bug even
16202 on systems that don't support the Olson extension, or don't have the
16203 full zoneinfo tables installed. */
16204 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16205
16206 t = mktime (&tm);
16207
16208 /* Check that the result is either a failure, or close enough
16209 to the correct answer that we can assume the discrepancy is
16210 due to leap seconds. */
16211 return (t == (time_t) -1
16212 || (0 < t && answer - 120 <= t && t <= answer + 120));
16213 }
16214
16215 int
16216 main ()
16217 {
16218 time_t t, delta;
16219 int i, j;
16220
16221 /* This test makes some buggy mktime implementations loop.
16222 Give up after 60 seconds; a mktime slower than that
16223 isn't worth using anyway. */
16224 alarm (60);
16225
16226 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16227 continue;
16228 time_t_max--;
16229 if ((time_t) -1 < 0)
16230 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16231 continue;
16232 delta = time_t_max / 997; /* a suitable prime number */
16233 for (i = 0; i < N_STRINGS; i++)
16234 {
16235 if (tz_strings[i])
16236 putenv (tz_strings[i]);
16237
16238 for (t = 0; t <= time_t_max - delta; t += delta)
16239 if (! mktime_test (t))
16240 return 1;
16241 if (! (mktime_test ((time_t) 1)
16242 && mktime_test ((time_t) (60 * 60))
16243 && mktime_test ((time_t) (60 * 60 * 24))))
16244 return 1;
16245
16246 for (j = 1; 0 < j; j *= 2)
16247 if (! bigtime_test (j))
16248 return 1;
16249 if (! bigtime_test (j - 1))
16250 return 1;
16251 }
16252 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16253 }
16254 _ACEOF
16255 rm -f conftest$ac_exeext
16256 if { (ac_try="$ac_link"
16257 case "(($ac_try" in
16258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16259 *) ac_try_echo=$ac_try;;
16260 esac
16261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16262 (eval "$ac_link") 2>&5
16263 ac_status=$?
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16266 { (case "(($ac_try" in
16267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268 *) ac_try_echo=$ac_try;;
16269 esac
16270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271 (eval "$ac_try") 2>&5
16272 ac_status=$?
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
16275 ac_cv_func_working_mktime=yes
16276 else
16277 echo "$as_me: program exited with status $ac_status" >&5
16278 echo "$as_me: failed program was:" >&5
16279 sed 's/^/| /' conftest.$ac_ext >&5
16280
16281 ( exit $ac_status )
16282 ac_cv_func_working_mktime=no
16283 fi
16284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16285 fi
16286
16287
16288 fi
16289 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16290 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16291 if test $ac_cv_func_working_mktime = no; then
16292 case " $LIBOBJS " in
16293 *" mktime.$ac_objext "* ) ;;
16294 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16295 ;;
16296 esac
16297
16298 fi
16299
16300 if test "$ac_cv_func_working_mktime" = no; then
16301
16302 cat >>confdefs.h <<\_ACEOF
16303 #define BROKEN_MKTIME 1
16304 _ACEOF
16305
16306 fi
16307
16308 ac_have_func=no # yes means we've found a way to get the load average.
16309
16310 # Make sure getloadavg.c is where it belongs, at configure-time.
16311 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16312 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16313 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16314 { (exit 1); exit 1; }; }
16315
16316 ac_save_LIBS=$LIBS
16317
16318 # Check for getloadavg, but be sure not to touch the cache variable.
16319 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16320 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16321 if test "${ac_cv_func_getloadavg+set}" = set; then
16322 echo $ECHO_N "(cached) $ECHO_C" >&6
16323 else
16324 cat >conftest.$ac_ext <<_ACEOF
16325 /* confdefs.h. */
16326 _ACEOF
16327 cat confdefs.h >>conftest.$ac_ext
16328 cat >>conftest.$ac_ext <<_ACEOF
16329 /* end confdefs.h. */
16330 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16332 #define getloadavg innocuous_getloadavg
16333
16334 /* System header to define __stub macros and hopefully few prototypes,
16335 which can conflict with char getloadavg (); below.
16336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16337 <limits.h> exists even on freestanding compilers. */
16338
16339 #ifdef __STDC__
16340 # include <limits.h>
16341 #else
16342 # include <assert.h>
16343 #endif
16344
16345 #undef getloadavg
16346
16347 /* Override any GCC internal prototype to avoid an error.
16348 Use char because int might match the return type of a GCC
16349 builtin and then its argument prototype would still apply. */
16350 #ifdef __cplusplus
16351 extern "C"
16352 #endif
16353 char getloadavg ();
16354 /* The GNU C library defines this for functions which it implements
16355 to always fail with ENOSYS. Some functions are actually named
16356 something starting with __ and the normal name is an alias. */
16357 #if defined __stub_getloadavg || defined __stub___getloadavg
16358 choke me
16359 #endif
16360
16361 int
16362 main ()
16363 {
16364 return getloadavg ();
16365 ;
16366 return 0;
16367 }
16368 _ACEOF
16369 rm -f conftest.$ac_objext conftest$ac_exeext
16370 if { (ac_try="$ac_link"
16371 case "(($ac_try" in
16372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373 *) ac_try_echo=$ac_try;;
16374 esac
16375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16376 (eval "$ac_link") 2>conftest.er1
16377 ac_status=$?
16378 grep -v '^ *+' conftest.er1 >conftest.err
16379 rm -f conftest.er1
16380 cat conftest.err >&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); } && {
16383 test -z "$ac_c_werror_flag" ||
16384 test ! -s conftest.err
16385 } && test -s conftest$ac_exeext &&
16386 $as_test_x conftest$ac_exeext; then
16387 ac_cv_func_getloadavg=yes
16388 else
16389 echo "$as_me: failed program was:" >&5
16390 sed 's/^/| /' conftest.$ac_ext >&5
16391
16392 ac_cv_func_getloadavg=no
16393 fi
16394
16395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16396 conftest$ac_exeext conftest.$ac_ext
16397 fi
16398 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16399 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16400 if test $ac_cv_func_getloadavg = yes; then
16401 exit 0
16402 else
16403 exit 1
16404 fi
16405 ) && ac_have_func=yes
16406
16407 # On HPUX9, an unprivileged user can get load averages through this function.
16408
16409 for ac_func in pstat_getdynamic
16410 do
16411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16412 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16414 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16415 echo $ECHO_N "(cached) $ECHO_C" >&6
16416 else
16417 cat >conftest.$ac_ext <<_ACEOF
16418 /* confdefs.h. */
16419 _ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h. */
16423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16425 #define $ac_func innocuous_$ac_func
16426
16427 /* System header to define __stub macros and hopefully few prototypes,
16428 which can conflict with char $ac_func (); below.
16429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16430 <limits.h> exists even on freestanding compilers. */
16431
16432 #ifdef __STDC__
16433 # include <limits.h>
16434 #else
16435 # include <assert.h>
16436 #endif
16437
16438 #undef $ac_func
16439
16440 /* Override any GCC internal prototype to avoid an error.
16441 Use char because int might match the return type of a GCC
16442 builtin and then its argument prototype would still apply. */
16443 #ifdef __cplusplus
16444 extern "C"
16445 #endif
16446 char $ac_func ();
16447 /* The GNU C library defines this for functions which it implements
16448 to always fail with ENOSYS. Some functions are actually named
16449 something starting with __ and the normal name is an alias. */
16450 #if defined __stub_$ac_func || defined __stub___$ac_func
16451 choke me
16452 #endif
16453
16454 int
16455 main ()
16456 {
16457 return $ac_func ();
16458 ;
16459 return 0;
16460 }
16461 _ACEOF
16462 rm -f conftest.$ac_objext conftest$ac_exeext
16463 if { (ac_try="$ac_link"
16464 case "(($ac_try" in
16465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16466 *) ac_try_echo=$ac_try;;
16467 esac
16468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16469 (eval "$ac_link") 2>conftest.er1
16470 ac_status=$?
16471 grep -v '^ *+' conftest.er1 >conftest.err
16472 rm -f conftest.er1
16473 cat conftest.err >&5
16474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 (exit $ac_status); } && {
16476 test -z "$ac_c_werror_flag" ||
16477 test ! -s conftest.err
16478 } && test -s conftest$ac_exeext &&
16479 $as_test_x conftest$ac_exeext; then
16480 eval "$as_ac_var=yes"
16481 else
16482 echo "$as_me: failed program was:" >&5
16483 sed 's/^/| /' conftest.$ac_ext >&5
16484
16485 eval "$as_ac_var=no"
16486 fi
16487
16488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16489 conftest$ac_exeext conftest.$ac_ext
16490 fi
16491 ac_res=`eval echo '${'$as_ac_var'}'`
16492 { echo "$as_me:$LINENO: result: $ac_res" >&5
16493 echo "${ECHO_T}$ac_res" >&6; }
16494 if test `eval echo '${'$as_ac_var'}'` = yes; then
16495 cat >>confdefs.h <<_ACEOF
16496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16497 _ACEOF
16498
16499 fi
16500 done
16501
16502
16503 # Solaris has libkstat which does not require root.
16504
16505 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16506 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16507 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16508 echo $ECHO_N "(cached) $ECHO_C" >&6
16509 else
16510 ac_check_lib_save_LIBS=$LIBS
16511 LIBS="-lkstat $LIBS"
16512 cat >conftest.$ac_ext <<_ACEOF
16513 /* confdefs.h. */
16514 _ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h. */
16518
16519 /* Override any GCC internal prototype to avoid an error.
16520 Use char because int might match the return type of a GCC
16521 builtin and then its argument prototype would still apply. */
16522 #ifdef __cplusplus
16523 extern "C"
16524 #endif
16525 char kstat_open ();
16526 int
16527 main ()
16528 {
16529 return kstat_open ();
16530 ;
16531 return 0;
16532 }
16533 _ACEOF
16534 rm -f conftest.$ac_objext conftest$ac_exeext
16535 if { (ac_try="$ac_link"
16536 case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16539 esac
16540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541 (eval "$ac_link") 2>conftest.er1
16542 ac_status=$?
16543 grep -v '^ *+' conftest.er1 >conftest.err
16544 rm -f conftest.er1
16545 cat conftest.err >&5
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); } && {
16548 test -z "$ac_c_werror_flag" ||
16549 test ! -s conftest.err
16550 } && test -s conftest$ac_exeext &&
16551 $as_test_x conftest$ac_exeext; then
16552 ac_cv_lib_kstat_kstat_open=yes
16553 else
16554 echo "$as_me: failed program was:" >&5
16555 sed 's/^/| /' conftest.$ac_ext >&5
16556
16557 ac_cv_lib_kstat_kstat_open=no
16558 fi
16559
16560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16561 conftest$ac_exeext conftest.$ac_ext
16562 LIBS=$ac_check_lib_save_LIBS
16563 fi
16564 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16565 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16566 if test $ac_cv_lib_kstat_kstat_open = yes; then
16567 cat >>confdefs.h <<_ACEOF
16568 #define HAVE_LIBKSTAT 1
16569 _ACEOF
16570
16571 LIBS="-lkstat $LIBS"
16572
16573 fi
16574
16575 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16576
16577 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16578 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16579 # to get the right answer into the cache.
16580 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16581 if test $ac_have_func = no; then
16582 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16583 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16584 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16585 echo $ECHO_N "(cached) $ECHO_C" >&6
16586 else
16587 ac_check_lib_save_LIBS=$LIBS
16588 LIBS="-lelf $LIBS"
16589 cat >conftest.$ac_ext <<_ACEOF
16590 /* confdefs.h. */
16591 _ACEOF
16592 cat confdefs.h >>conftest.$ac_ext
16593 cat >>conftest.$ac_ext <<_ACEOF
16594 /* end confdefs.h. */
16595
16596 /* Override any GCC internal prototype to avoid an error.
16597 Use char because int might match the return type of a GCC
16598 builtin and then its argument prototype would still apply. */
16599 #ifdef __cplusplus
16600 extern "C"
16601 #endif
16602 char elf_begin ();
16603 int
16604 main ()
16605 {
16606 return elf_begin ();
16607 ;
16608 return 0;
16609 }
16610 _ACEOF
16611 rm -f conftest.$ac_objext conftest$ac_exeext
16612 if { (ac_try="$ac_link"
16613 case "(($ac_try" in
16614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16615 *) ac_try_echo=$ac_try;;
16616 esac
16617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16618 (eval "$ac_link") 2>conftest.er1
16619 ac_status=$?
16620 grep -v '^ *+' conftest.er1 >conftest.err
16621 rm -f conftest.er1
16622 cat conftest.err >&5
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); } && {
16625 test -z "$ac_c_werror_flag" ||
16626 test ! -s conftest.err
16627 } && test -s conftest$ac_exeext &&
16628 $as_test_x conftest$ac_exeext; then
16629 ac_cv_lib_elf_elf_begin=yes
16630 else
16631 echo "$as_me: failed program was:" >&5
16632 sed 's/^/| /' conftest.$ac_ext >&5
16633
16634 ac_cv_lib_elf_elf_begin=no
16635 fi
16636
16637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16638 conftest$ac_exeext conftest.$ac_ext
16639 LIBS=$ac_check_lib_save_LIBS
16640 fi
16641 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16642 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16643 if test $ac_cv_lib_elf_elf_begin = yes; then
16644 LIBS="-lelf $LIBS"
16645 fi
16646
16647 fi
16648 if test $ac_have_func = no; then
16649 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16650 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16651 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16652 echo $ECHO_N "(cached) $ECHO_C" >&6
16653 else
16654 ac_check_lib_save_LIBS=$LIBS
16655 LIBS="-lkvm $LIBS"
16656 cat >conftest.$ac_ext <<_ACEOF
16657 /* confdefs.h. */
16658 _ACEOF
16659 cat confdefs.h >>conftest.$ac_ext
16660 cat >>conftest.$ac_ext <<_ACEOF
16661 /* end confdefs.h. */
16662
16663 /* Override any GCC internal prototype to avoid an error.
16664 Use char because int might match the return type of a GCC
16665 builtin and then its argument prototype would still apply. */
16666 #ifdef __cplusplus
16667 extern "C"
16668 #endif
16669 char kvm_open ();
16670 int
16671 main ()
16672 {
16673 return kvm_open ();
16674 ;
16675 return 0;
16676 }
16677 _ACEOF
16678 rm -f conftest.$ac_objext conftest$ac_exeext
16679 if { (ac_try="$ac_link"
16680 case "(($ac_try" in
16681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682 *) ac_try_echo=$ac_try;;
16683 esac
16684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16685 (eval "$ac_link") 2>conftest.er1
16686 ac_status=$?
16687 grep -v '^ *+' conftest.er1 >conftest.err
16688 rm -f conftest.er1
16689 cat conftest.err >&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } && {
16692 test -z "$ac_c_werror_flag" ||
16693 test ! -s conftest.err
16694 } && test -s conftest$ac_exeext &&
16695 $as_test_x conftest$ac_exeext; then
16696 ac_cv_lib_kvm_kvm_open=yes
16697 else
16698 echo "$as_me: failed program was:" >&5
16699 sed 's/^/| /' conftest.$ac_ext >&5
16700
16701 ac_cv_lib_kvm_kvm_open=no
16702 fi
16703
16704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16705 conftest$ac_exeext conftest.$ac_ext
16706 LIBS=$ac_check_lib_save_LIBS
16707 fi
16708 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16709 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16710 if test $ac_cv_lib_kvm_kvm_open = yes; then
16711 LIBS="-lkvm $LIBS"
16712 fi
16713
16714 # Check for the 4.4BSD definition of getloadavg.
16715 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16716 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16717 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16718 echo $ECHO_N "(cached) $ECHO_C" >&6
16719 else
16720 ac_check_lib_save_LIBS=$LIBS
16721 LIBS="-lutil $LIBS"
16722 cat >conftest.$ac_ext <<_ACEOF
16723 /* confdefs.h. */
16724 _ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16728
16729 /* Override any GCC internal prototype to avoid an error.
16730 Use char because int might match the return type of a GCC
16731 builtin and then its argument prototype would still apply. */
16732 #ifdef __cplusplus
16733 extern "C"
16734 #endif
16735 char getloadavg ();
16736 int
16737 main ()
16738 {
16739 return getloadavg ();
16740 ;
16741 return 0;
16742 }
16743 _ACEOF
16744 rm -f conftest.$ac_objext conftest$ac_exeext
16745 if { (ac_try="$ac_link"
16746 case "(($ac_try" in
16747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16748 *) ac_try_echo=$ac_try;;
16749 esac
16750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16751 (eval "$ac_link") 2>conftest.er1
16752 ac_status=$?
16753 grep -v '^ *+' conftest.er1 >conftest.err
16754 rm -f conftest.er1
16755 cat conftest.err >&5
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); } && {
16758 test -z "$ac_c_werror_flag" ||
16759 test ! -s conftest.err
16760 } && test -s conftest$ac_exeext &&
16761 $as_test_x conftest$ac_exeext; then
16762 ac_cv_lib_util_getloadavg=yes
16763 else
16764 echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.$ac_ext >&5
16766
16767 ac_cv_lib_util_getloadavg=no
16768 fi
16769
16770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16771 conftest$ac_exeext conftest.$ac_ext
16772 LIBS=$ac_check_lib_save_LIBS
16773 fi
16774 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16775 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16776 if test $ac_cv_lib_util_getloadavg = yes; then
16777 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16778 fi
16779
16780 fi
16781
16782 if test $ac_have_func = no; then
16783 # There is a commonly available library for RS/6000 AIX.
16784 # Since it is not a standard part of AIX, it might be installed locally.
16785 ac_getloadavg_LIBS=$LIBS
16786 LIBS="-L/usr/local/lib $LIBS"
16787 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16788 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16789 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16790 echo $ECHO_N "(cached) $ECHO_C" >&6
16791 else
16792 ac_check_lib_save_LIBS=$LIBS
16793 LIBS="-lgetloadavg $LIBS"
16794 cat >conftest.$ac_ext <<_ACEOF
16795 /* confdefs.h. */
16796 _ACEOF
16797 cat confdefs.h >>conftest.$ac_ext
16798 cat >>conftest.$ac_ext <<_ACEOF
16799 /* end confdefs.h. */
16800
16801 /* Override any GCC internal prototype to avoid an error.
16802 Use char because int might match the return type of a GCC
16803 builtin and then its argument prototype would still apply. */
16804 #ifdef __cplusplus
16805 extern "C"
16806 #endif
16807 char getloadavg ();
16808 int
16809 main ()
16810 {
16811 return getloadavg ();
16812 ;
16813 return 0;
16814 }
16815 _ACEOF
16816 rm -f conftest.$ac_objext conftest$ac_exeext
16817 if { (ac_try="$ac_link"
16818 case "(($ac_try" in
16819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820 *) ac_try_echo=$ac_try;;
16821 esac
16822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823 (eval "$ac_link") 2>conftest.er1
16824 ac_status=$?
16825 grep -v '^ *+' conftest.er1 >conftest.err
16826 rm -f conftest.er1
16827 cat conftest.err >&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); } && {
16830 test -z "$ac_c_werror_flag" ||
16831 test ! -s conftest.err
16832 } && test -s conftest$ac_exeext &&
16833 $as_test_x conftest$ac_exeext; then
16834 ac_cv_lib_getloadavg_getloadavg=yes
16835 else
16836 echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16838
16839 ac_cv_lib_getloadavg_getloadavg=no
16840 fi
16841
16842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16843 conftest$ac_exeext conftest.$ac_ext
16844 LIBS=$ac_check_lib_save_LIBS
16845 fi
16846 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16847 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16848 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16849 LIBS="-lgetloadavg $LIBS"
16850 else
16851 LIBS=$ac_getloadavg_LIBS
16852 fi
16853
16854 fi
16855
16856 # Make sure it is really in the library, if we think we found it,
16857 # otherwise set up the replacement function.
16858
16859 for ac_func in getloadavg
16860 do
16861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16862 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16865 echo $ECHO_N "(cached) $ECHO_C" >&6
16866 else
16867 cat >conftest.$ac_ext <<_ACEOF
16868 /* confdefs.h. */
16869 _ACEOF
16870 cat confdefs.h >>conftest.$ac_ext
16871 cat >>conftest.$ac_ext <<_ACEOF
16872 /* end confdefs.h. */
16873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16875 #define $ac_func innocuous_$ac_func
16876
16877 /* System header to define __stub macros and hopefully few prototypes,
16878 which can conflict with char $ac_func (); below.
16879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16880 <limits.h> exists even on freestanding compilers. */
16881
16882 #ifdef __STDC__
16883 # include <limits.h>
16884 #else
16885 # include <assert.h>
16886 #endif
16887
16888 #undef $ac_func
16889
16890 /* Override any GCC internal prototype to avoid an error.
16891 Use char because int might match the return type of a GCC
16892 builtin and then its argument prototype would still apply. */
16893 #ifdef __cplusplus
16894 extern "C"
16895 #endif
16896 char $ac_func ();
16897 /* The GNU C library defines this for functions which it implements
16898 to always fail with ENOSYS. Some functions are actually named
16899 something starting with __ and the normal name is an alias. */
16900 #if defined __stub_$ac_func || defined __stub___$ac_func
16901 choke me
16902 #endif
16903
16904 int
16905 main ()
16906 {
16907 return $ac_func ();
16908 ;
16909 return 0;
16910 }
16911 _ACEOF
16912 rm -f conftest.$ac_objext conftest$ac_exeext
16913 if { (ac_try="$ac_link"
16914 case "(($ac_try" in
16915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16916 *) ac_try_echo=$ac_try;;
16917 esac
16918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16919 (eval "$ac_link") 2>conftest.er1
16920 ac_status=$?
16921 grep -v '^ *+' conftest.er1 >conftest.err
16922 rm -f conftest.er1
16923 cat conftest.err >&5
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); } && {
16926 test -z "$ac_c_werror_flag" ||
16927 test ! -s conftest.err
16928 } && test -s conftest$ac_exeext &&
16929 $as_test_x conftest$ac_exeext; then
16930 eval "$as_ac_var=yes"
16931 else
16932 echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16934
16935 eval "$as_ac_var=no"
16936 fi
16937
16938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16939 conftest$ac_exeext conftest.$ac_ext
16940 fi
16941 ac_res=`eval echo '${'$as_ac_var'}'`
16942 { echo "$as_me:$LINENO: result: $ac_res" >&5
16943 echo "${ECHO_T}$ac_res" >&6; }
16944 if test `eval echo '${'$as_ac_var'}'` = yes; then
16945 cat >>confdefs.h <<_ACEOF
16946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16947 _ACEOF
16948
16949 else
16950 case " $LIBOBJS " in
16951 *" getloadavg.$ac_objext "* ) ;;
16952 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16953 ;;
16954 esac
16955
16956
16957 cat >>confdefs.h <<\_ACEOF
16958 #define C_GETLOADAVG 1
16959 _ACEOF
16960
16961 # Figure out what our getloadavg.c needs.
16962 ac_have_func=no
16963 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16964 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16965 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16966 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16967 echo $ECHO_N "(cached) $ECHO_C" >&6
16968 fi
16969 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16970 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16971 else
16972 # Is the header compilable?
16973 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16974 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16975 cat >conftest.$ac_ext <<_ACEOF
16976 /* confdefs.h. */
16977 _ACEOF
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h. */
16981 $ac_includes_default
16982 #include <sys/dg_sys_info.h>
16983 _ACEOF
16984 rm -f conftest.$ac_objext
16985 if { (ac_try="$ac_compile"
16986 case "(($ac_try" in
16987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988 *) ac_try_echo=$ac_try;;
16989 esac
16990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16991 (eval "$ac_compile") 2>conftest.er1
16992 ac_status=$?
16993 grep -v '^ *+' conftest.er1 >conftest.err
16994 rm -f conftest.er1
16995 cat conftest.err >&5
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } && {
16998 test -z "$ac_c_werror_flag" ||
16999 test ! -s conftest.err
17000 } && test -s conftest.$ac_objext; then
17001 ac_header_compiler=yes
17002 else
17003 echo "$as_me: failed program was:" >&5
17004 sed 's/^/| /' conftest.$ac_ext >&5
17005
17006 ac_header_compiler=no
17007 fi
17008
17009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17010 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17011 echo "${ECHO_T}$ac_header_compiler" >&6; }
17012
17013 # Is the header present?
17014 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17015 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17016 cat >conftest.$ac_ext <<_ACEOF
17017 /* confdefs.h. */
17018 _ACEOF
17019 cat confdefs.h >>conftest.$ac_ext
17020 cat >>conftest.$ac_ext <<_ACEOF
17021 /* end confdefs.h. */
17022 #include <sys/dg_sys_info.h>
17023 _ACEOF
17024 if { (ac_try="$ac_cpp conftest.$ac_ext"
17025 case "(($ac_try" in
17026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17027 *) ac_try_echo=$ac_try;;
17028 esac
17029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17031 ac_status=$?
17032 grep -v '^ *+' conftest.er1 >conftest.err
17033 rm -f conftest.er1
17034 cat conftest.err >&5
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); } >/dev/null && {
17037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17038 test ! -s conftest.err
17039 }; then
17040 ac_header_preproc=yes
17041 else
17042 echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17044
17045 ac_header_preproc=no
17046 fi
17047
17048 rm -f conftest.err conftest.$ac_ext
17049 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17050 echo "${ECHO_T}$ac_header_preproc" >&6; }
17051
17052 # So? What about this header?
17053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17054 yes:no: )
17055 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17056 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17057 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17058 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17059 ac_header_preproc=yes
17060 ;;
17061 no:yes:* )
17062 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17063 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17064 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17065 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17066 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17067 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17068 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17069 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17070 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17071 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17072 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17073 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17074
17075 ;;
17076 esac
17077 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17078 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17079 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17080 echo $ECHO_N "(cached) $ECHO_C" >&6
17081 else
17082 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17083 fi
17084 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17085 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17086
17087 fi
17088 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17089 ac_have_func=yes
17090
17091 cat >>confdefs.h <<\_ACEOF
17092 #define DGUX 1
17093 _ACEOF
17094
17095
17096 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17097 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17098 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17099 echo $ECHO_N "(cached) $ECHO_C" >&6
17100 else
17101 ac_check_lib_save_LIBS=$LIBS
17102 LIBS="-ldgc $LIBS"
17103 cat >conftest.$ac_ext <<_ACEOF
17104 /* confdefs.h. */
17105 _ACEOF
17106 cat confdefs.h >>conftest.$ac_ext
17107 cat >>conftest.$ac_ext <<_ACEOF
17108 /* end confdefs.h. */
17109
17110 /* Override any GCC internal prototype to avoid an error.
17111 Use char because int might match the return type of a GCC
17112 builtin and then its argument prototype would still apply. */
17113 #ifdef __cplusplus
17114 extern "C"
17115 #endif
17116 char dg_sys_info ();
17117 int
17118 main ()
17119 {
17120 return dg_sys_info ();
17121 ;
17122 return 0;
17123 }
17124 _ACEOF
17125 rm -f conftest.$ac_objext conftest$ac_exeext
17126 if { (ac_try="$ac_link"
17127 case "(($ac_try" in
17128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17129 *) ac_try_echo=$ac_try;;
17130 esac
17131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17132 (eval "$ac_link") 2>conftest.er1
17133 ac_status=$?
17134 grep -v '^ *+' conftest.er1 >conftest.err
17135 rm -f conftest.er1
17136 cat conftest.err >&5
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); } && {
17139 test -z "$ac_c_werror_flag" ||
17140 test ! -s conftest.err
17141 } && test -s conftest$ac_exeext &&
17142 $as_test_x conftest$ac_exeext; then
17143 ac_cv_lib_dgc_dg_sys_info=yes
17144 else
17145 echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17147
17148 ac_cv_lib_dgc_dg_sys_info=no
17149 fi
17150
17151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17152 conftest$ac_exeext conftest.$ac_ext
17153 LIBS=$ac_check_lib_save_LIBS
17154 fi
17155 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17156 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17157 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17158 cat >>confdefs.h <<_ACEOF
17159 #define HAVE_LIBDGC 1
17160 _ACEOF
17161
17162 LIBS="-ldgc $LIBS"
17163
17164 fi
17165
17166 fi
17167
17168
17169
17170 if test "${ac_cv_header_locale_h+set}" = set; then
17171 { echo "$as_me:$LINENO: checking for locale.h" >&5
17172 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17173 if test "${ac_cv_header_locale_h+set}" = set; then
17174 echo $ECHO_N "(cached) $ECHO_C" >&6
17175 fi
17176 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17177 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17178 else
17179 # Is the header compilable?
17180 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17181 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17182 cat >conftest.$ac_ext <<_ACEOF
17183 /* confdefs.h. */
17184 _ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h. */
17188 $ac_includes_default
17189 #include <locale.h>
17190 _ACEOF
17191 rm -f conftest.$ac_objext
17192 if { (ac_try="$ac_compile"
17193 case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17196 esac
17197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198 (eval "$ac_compile") 2>conftest.er1
17199 ac_status=$?
17200 grep -v '^ *+' conftest.er1 >conftest.err
17201 rm -f conftest.er1
17202 cat conftest.err >&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); } && {
17205 test -z "$ac_c_werror_flag" ||
17206 test ! -s conftest.err
17207 } && test -s conftest.$ac_objext; then
17208 ac_header_compiler=yes
17209 else
17210 echo "$as_me: failed program was:" >&5
17211 sed 's/^/| /' conftest.$ac_ext >&5
17212
17213 ac_header_compiler=no
17214 fi
17215
17216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17217 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17218 echo "${ECHO_T}$ac_header_compiler" >&6; }
17219
17220 # Is the header present?
17221 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17222 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17223 cat >conftest.$ac_ext <<_ACEOF
17224 /* confdefs.h. */
17225 _ACEOF
17226 cat confdefs.h >>conftest.$ac_ext
17227 cat >>conftest.$ac_ext <<_ACEOF
17228 /* end confdefs.h. */
17229 #include <locale.h>
17230 _ACEOF
17231 if { (ac_try="$ac_cpp conftest.$ac_ext"
17232 case "(($ac_try" in
17233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234 *) ac_try_echo=$ac_try;;
17235 esac
17236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17238 ac_status=$?
17239 grep -v '^ *+' conftest.er1 >conftest.err
17240 rm -f conftest.er1
17241 cat conftest.err >&5
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); } >/dev/null && {
17244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17245 test ! -s conftest.err
17246 }; then
17247 ac_header_preproc=yes
17248 else
17249 echo "$as_me: failed program was:" >&5
17250 sed 's/^/| /' conftest.$ac_ext >&5
17251
17252 ac_header_preproc=no
17253 fi
17254
17255 rm -f conftest.err conftest.$ac_ext
17256 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17257 echo "${ECHO_T}$ac_header_preproc" >&6; }
17258
17259 # So? What about this header?
17260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17261 yes:no: )
17262 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17263 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17264 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17265 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17266 ac_header_preproc=yes
17267 ;;
17268 no:yes:* )
17269 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17270 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17271 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17272 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17273 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17274 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17275 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17276 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17277 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17278 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17279 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17280 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17281
17282 ;;
17283 esac
17284 { echo "$as_me:$LINENO: checking for locale.h" >&5
17285 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17286 if test "${ac_cv_header_locale_h+set}" = set; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17288 else
17289 ac_cv_header_locale_h=$ac_header_preproc
17290 fi
17291 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17292 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17293
17294 fi
17295
17296
17297
17298 for ac_func in setlocale
17299 do
17300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17304 echo $ECHO_N "(cached) $ECHO_C" >&6
17305 else
17306 cat >conftest.$ac_ext <<_ACEOF
17307 /* confdefs.h. */
17308 _ACEOF
17309 cat confdefs.h >>conftest.$ac_ext
17310 cat >>conftest.$ac_ext <<_ACEOF
17311 /* end confdefs.h. */
17312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17314 #define $ac_func innocuous_$ac_func
17315
17316 /* System header to define __stub macros and hopefully few prototypes,
17317 which can conflict with char $ac_func (); below.
17318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17319 <limits.h> exists even on freestanding compilers. */
17320
17321 #ifdef __STDC__
17322 # include <limits.h>
17323 #else
17324 # include <assert.h>
17325 #endif
17326
17327 #undef $ac_func
17328
17329 /* Override any GCC internal prototype to avoid an error.
17330 Use char because int might match the return type of a GCC
17331 builtin and then its argument prototype would still apply. */
17332 #ifdef __cplusplus
17333 extern "C"
17334 #endif
17335 char $ac_func ();
17336 /* The GNU C library defines this for functions which it implements
17337 to always fail with ENOSYS. Some functions are actually named
17338 something starting with __ and the normal name is an alias. */
17339 #if defined __stub_$ac_func || defined __stub___$ac_func
17340 choke me
17341 #endif
17342
17343 int
17344 main ()
17345 {
17346 return $ac_func ();
17347 ;
17348 return 0;
17349 }
17350 _ACEOF
17351 rm -f conftest.$ac_objext conftest$ac_exeext
17352 if { (ac_try="$ac_link"
17353 case "(($ac_try" in
17354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17356 esac
17357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358 (eval "$ac_link") 2>conftest.er1
17359 ac_status=$?
17360 grep -v '^ *+' conftest.er1 >conftest.err
17361 rm -f conftest.er1
17362 cat conftest.err >&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } && {
17365 test -z "$ac_c_werror_flag" ||
17366 test ! -s conftest.err
17367 } && test -s conftest$ac_exeext &&
17368 $as_test_x conftest$ac_exeext; then
17369 eval "$as_ac_var=yes"
17370 else
17371 echo "$as_me: failed program was:" >&5
17372 sed 's/^/| /' conftest.$ac_ext >&5
17373
17374 eval "$as_ac_var=no"
17375 fi
17376
17377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17378 conftest$ac_exeext conftest.$ac_ext
17379 fi
17380 ac_res=`eval echo '${'$as_ac_var'}'`
17381 { echo "$as_me:$LINENO: result: $ac_res" >&5
17382 echo "${ECHO_T}$ac_res" >&6; }
17383 if test `eval echo '${'$as_ac_var'}'` = yes; then
17384 cat >>confdefs.h <<_ACEOF
17385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17386 _ACEOF
17387
17388 fi
17389 done
17390
17391
17392 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17393 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17394 # Irix 4.0.5F has the header but not the library.
17395 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17396 ac_have_func=yes
17397
17398 cat >>confdefs.h <<\_ACEOF
17399 #define SVR4 1
17400 _ACEOF
17401
17402 fi
17403
17404 if test $ac_have_func = no; then
17405 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17406 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17407 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17408 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17409 echo $ECHO_N "(cached) $ECHO_C" >&6
17410 fi
17411 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17412 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17413 else
17414 # Is the header compilable?
17415 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17416 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17417 cat >conftest.$ac_ext <<_ACEOF
17418 /* confdefs.h. */
17419 _ACEOF
17420 cat confdefs.h >>conftest.$ac_ext
17421 cat >>conftest.$ac_ext <<_ACEOF
17422 /* end confdefs.h. */
17423 $ac_includes_default
17424 #include <inq_stats/cpustats.h>
17425 _ACEOF
17426 rm -f conftest.$ac_objext
17427 if { (ac_try="$ac_compile"
17428 case "(($ac_try" in
17429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430 *) ac_try_echo=$ac_try;;
17431 esac
17432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433 (eval "$ac_compile") 2>conftest.er1
17434 ac_status=$?
17435 grep -v '^ *+' conftest.er1 >conftest.err
17436 rm -f conftest.er1
17437 cat conftest.err >&5
17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); } && {
17440 test -z "$ac_c_werror_flag" ||
17441 test ! -s conftest.err
17442 } && test -s conftest.$ac_objext; then
17443 ac_header_compiler=yes
17444 else
17445 echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.$ac_ext >&5
17447
17448 ac_header_compiler=no
17449 fi
17450
17451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17453 echo "${ECHO_T}$ac_header_compiler" >&6; }
17454
17455 # Is the header present?
17456 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17457 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17458 cat >conftest.$ac_ext <<_ACEOF
17459 /* confdefs.h. */
17460 _ACEOF
17461 cat confdefs.h >>conftest.$ac_ext
17462 cat >>conftest.$ac_ext <<_ACEOF
17463 /* end confdefs.h. */
17464 #include <inq_stats/cpustats.h>
17465 _ACEOF
17466 if { (ac_try="$ac_cpp conftest.$ac_ext"
17467 case "(($ac_try" in
17468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469 *) ac_try_echo=$ac_try;;
17470 esac
17471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17473 ac_status=$?
17474 grep -v '^ *+' conftest.er1 >conftest.err
17475 rm -f conftest.er1
17476 cat conftest.err >&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); } >/dev/null && {
17479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17480 test ! -s conftest.err
17481 }; then
17482 ac_header_preproc=yes
17483 else
17484 echo "$as_me: failed program was:" >&5
17485 sed 's/^/| /' conftest.$ac_ext >&5
17486
17487 ac_header_preproc=no
17488 fi
17489
17490 rm -f conftest.err conftest.$ac_ext
17491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17492 echo "${ECHO_T}$ac_header_preproc" >&6; }
17493
17494 # So? What about this header?
17495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17496 yes:no: )
17497 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17498 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17499 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17500 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17501 ac_header_preproc=yes
17502 ;;
17503 no:yes:* )
17504 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17505 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17506 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17507 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17508 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17509 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17510 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17511 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17512 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17513 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17514 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17515 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17516
17517 ;;
17518 esac
17519 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17520 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17521 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17522 echo $ECHO_N "(cached) $ECHO_C" >&6
17523 else
17524 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17525 fi
17526 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17527 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17528
17529 fi
17530 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17531 ac_have_func=yes
17532
17533 cat >>confdefs.h <<\_ACEOF
17534 #define UMAX 1
17535 _ACEOF
17536
17537
17538 cat >>confdefs.h <<\_ACEOF
17539 #define UMAX4_3 1
17540 _ACEOF
17541
17542 fi
17543
17544
17545 fi
17546
17547 if test $ac_have_func = no; then
17548 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17549 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17550 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17551 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17552 echo $ECHO_N "(cached) $ECHO_C" >&6
17553 fi
17554 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17555 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17556 else
17557 # Is the header compilable?
17558 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17559 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17560 cat >conftest.$ac_ext <<_ACEOF
17561 /* confdefs.h. */
17562 _ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h. */
17566 $ac_includes_default
17567 #include <sys/cpustats.h>
17568 _ACEOF
17569 rm -f conftest.$ac_objext
17570 if { (ac_try="$ac_compile"
17571 case "(($ac_try" in
17572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17573 *) ac_try_echo=$ac_try;;
17574 esac
17575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17576 (eval "$ac_compile") 2>conftest.er1
17577 ac_status=$?
17578 grep -v '^ *+' conftest.er1 >conftest.err
17579 rm -f conftest.er1
17580 cat conftest.err >&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); } && {
17583 test -z "$ac_c_werror_flag" ||
17584 test ! -s conftest.err
17585 } && test -s conftest.$ac_objext; then
17586 ac_header_compiler=yes
17587 else
17588 echo "$as_me: failed program was:" >&5
17589 sed 's/^/| /' conftest.$ac_ext >&5
17590
17591 ac_header_compiler=no
17592 fi
17593
17594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17595 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17596 echo "${ECHO_T}$ac_header_compiler" >&6; }
17597
17598 # Is the header present?
17599 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17600 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17601 cat >conftest.$ac_ext <<_ACEOF
17602 /* confdefs.h. */
17603 _ACEOF
17604 cat confdefs.h >>conftest.$ac_ext
17605 cat >>conftest.$ac_ext <<_ACEOF
17606 /* end confdefs.h. */
17607 #include <sys/cpustats.h>
17608 _ACEOF
17609 if { (ac_try="$ac_cpp conftest.$ac_ext"
17610 case "(($ac_try" in
17611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17612 *) ac_try_echo=$ac_try;;
17613 esac
17614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17616 ac_status=$?
17617 grep -v '^ *+' conftest.er1 >conftest.err
17618 rm -f conftest.er1
17619 cat conftest.err >&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } >/dev/null && {
17622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17623 test ! -s conftest.err
17624 }; then
17625 ac_header_preproc=yes
17626 else
17627 echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17629
17630 ac_header_preproc=no
17631 fi
17632
17633 rm -f conftest.err conftest.$ac_ext
17634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17635 echo "${ECHO_T}$ac_header_preproc" >&6; }
17636
17637 # So? What about this header?
17638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17639 yes:no: )
17640 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17641 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17642 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17643 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17644 ac_header_preproc=yes
17645 ;;
17646 no:yes:* )
17647 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17648 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17649 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17650 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17651 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17652 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17653 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17654 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17655 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17656 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17657 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17658 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17659
17660 ;;
17661 esac
17662 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17663 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17664 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17665 echo $ECHO_N "(cached) $ECHO_C" >&6
17666 else
17667 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17668 fi
17669 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17670 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17671
17672 fi
17673 if test $ac_cv_header_sys_cpustats_h = yes; then
17674 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17675 #define UMAX 1
17676 _ACEOF
17677
17678 fi
17679
17680
17681 fi
17682
17683 if test $ac_have_func = no; then
17684
17685 for ac_header in mach/mach.h
17686 do
17687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17692 echo $ECHO_N "(cached) $ECHO_C" >&6
17693 fi
17694 ac_res=`eval echo '${'$as_ac_Header'}'`
17695 { echo "$as_me:$LINENO: result: $ac_res" >&5
17696 echo "${ECHO_T}$ac_res" >&6; }
17697 else
17698 # Is the header compilable?
17699 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17701 cat >conftest.$ac_ext <<_ACEOF
17702 /* confdefs.h. */
17703 _ACEOF
17704 cat confdefs.h >>conftest.$ac_ext
17705 cat >>conftest.$ac_ext <<_ACEOF
17706 /* end confdefs.h. */
17707 $ac_includes_default
17708 #include <$ac_header>
17709 _ACEOF
17710 rm -f conftest.$ac_objext
17711 if { (ac_try="$ac_compile"
17712 case "(($ac_try" in
17713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17714 *) ac_try_echo=$ac_try;;
17715 esac
17716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17717 (eval "$ac_compile") 2>conftest.er1
17718 ac_status=$?
17719 grep -v '^ *+' conftest.er1 >conftest.err
17720 rm -f conftest.er1
17721 cat conftest.err >&5
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); } && {
17724 test -z "$ac_c_werror_flag" ||
17725 test ! -s conftest.err
17726 } && test -s conftest.$ac_objext; then
17727 ac_header_compiler=yes
17728 else
17729 echo "$as_me: failed program was:" >&5
17730 sed 's/^/| /' conftest.$ac_ext >&5
17731
17732 ac_header_compiler=no
17733 fi
17734
17735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17736 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17737 echo "${ECHO_T}$ac_header_compiler" >&6; }
17738
17739 # Is the header present?
17740 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17742 cat >conftest.$ac_ext <<_ACEOF
17743 /* confdefs.h. */
17744 _ACEOF
17745 cat confdefs.h >>conftest.$ac_ext
17746 cat >>conftest.$ac_ext <<_ACEOF
17747 /* end confdefs.h. */
17748 #include <$ac_header>
17749 _ACEOF
17750 if { (ac_try="$ac_cpp conftest.$ac_ext"
17751 case "(($ac_try" in
17752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17753 *) ac_try_echo=$ac_try;;
17754 esac
17755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17757 ac_status=$?
17758 grep -v '^ *+' conftest.er1 >conftest.err
17759 rm -f conftest.er1
17760 cat conftest.err >&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } >/dev/null && {
17763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17764 test ! -s conftest.err
17765 }; then
17766 ac_header_preproc=yes
17767 else
17768 echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17770
17771 ac_header_preproc=no
17772 fi
17773
17774 rm -f conftest.err conftest.$ac_ext
17775 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17776 echo "${ECHO_T}$ac_header_preproc" >&6; }
17777
17778 # So? What about this header?
17779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17780 yes:no: )
17781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17785 ac_header_preproc=yes
17786 ;;
17787 no:yes:* )
17788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17791 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17792 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17794 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17795 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17798 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17800
17801 ;;
17802 esac
17803 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17806 echo $ECHO_N "(cached) $ECHO_C" >&6
17807 else
17808 eval "$as_ac_Header=\$ac_header_preproc"
17809 fi
17810 ac_res=`eval echo '${'$as_ac_Header'}'`
17811 { echo "$as_me:$LINENO: result: $ac_res" >&5
17812 echo "${ECHO_T}$ac_res" >&6; }
17813
17814 fi
17815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17816 cat >>confdefs.h <<_ACEOF
17817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17818 _ACEOF
17819
17820 fi
17821
17822 done
17823
17824 fi
17825
17826
17827 for ac_header in nlist.h
17828 do
17829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17834 echo $ECHO_N "(cached) $ECHO_C" >&6
17835 fi
17836 ac_res=`eval echo '${'$as_ac_Header'}'`
17837 { echo "$as_me:$LINENO: result: $ac_res" >&5
17838 echo "${ECHO_T}$ac_res" >&6; }
17839 else
17840 # Is the header compilable?
17841 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17843 cat >conftest.$ac_ext <<_ACEOF
17844 /* confdefs.h. */
17845 _ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17849 $ac_includes_default
17850 #include <$ac_header>
17851 _ACEOF
17852 rm -f conftest.$ac_objext
17853 if { (ac_try="$ac_compile"
17854 case "(($ac_try" in
17855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17856 *) ac_try_echo=$ac_try;;
17857 esac
17858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17859 (eval "$ac_compile") 2>conftest.er1
17860 ac_status=$?
17861 grep -v '^ *+' conftest.er1 >conftest.err
17862 rm -f conftest.er1
17863 cat conftest.err >&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); } && {
17866 test -z "$ac_c_werror_flag" ||
17867 test ! -s conftest.err
17868 } && test -s conftest.$ac_objext; then
17869 ac_header_compiler=yes
17870 else
17871 echo "$as_me: failed program was:" >&5
17872 sed 's/^/| /' conftest.$ac_ext >&5
17873
17874 ac_header_compiler=no
17875 fi
17876
17877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17878 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17879 echo "${ECHO_T}$ac_header_compiler" >&6; }
17880
17881 # Is the header present?
17882 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17884 cat >conftest.$ac_ext <<_ACEOF
17885 /* confdefs.h. */
17886 _ACEOF
17887 cat confdefs.h >>conftest.$ac_ext
17888 cat >>conftest.$ac_ext <<_ACEOF
17889 /* end confdefs.h. */
17890 #include <$ac_header>
17891 _ACEOF
17892 if { (ac_try="$ac_cpp conftest.$ac_ext"
17893 case "(($ac_try" in
17894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895 *) ac_try_echo=$ac_try;;
17896 esac
17897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17899 ac_status=$?
17900 grep -v '^ *+' conftest.er1 >conftest.err
17901 rm -f conftest.er1
17902 cat conftest.err >&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } >/dev/null && {
17905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17906 test ! -s conftest.err
17907 }; then
17908 ac_header_preproc=yes
17909 else
17910 echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17912
17913 ac_header_preproc=no
17914 fi
17915
17916 rm -f conftest.err conftest.$ac_ext
17917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17918 echo "${ECHO_T}$ac_header_preproc" >&6; }
17919
17920 # So? What about this header?
17921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17922 yes:no: )
17923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17927 ac_header_preproc=yes
17928 ;;
17929 no:yes:* )
17930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17933 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17934 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17935 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17936 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17937 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17940 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17941 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17942
17943 ;;
17944 esac
17945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17948 echo $ECHO_N "(cached) $ECHO_C" >&6
17949 else
17950 eval "$as_ac_Header=\$ac_header_preproc"
17951 fi
17952 ac_res=`eval echo '${'$as_ac_Header'}'`
17953 { echo "$as_me:$LINENO: result: $ac_res" >&5
17954 echo "${ECHO_T}$ac_res" >&6; }
17955
17956 fi
17957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17958 cat >>confdefs.h <<_ACEOF
17959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17960 _ACEOF
17961 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17962 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17963 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17964 echo $ECHO_N "(cached) $ECHO_C" >&6
17965 else
17966 cat >conftest.$ac_ext <<_ACEOF
17967 /* confdefs.h. */
17968 _ACEOF
17969 cat confdefs.h >>conftest.$ac_ext
17970 cat >>conftest.$ac_ext <<_ACEOF
17971 /* end confdefs.h. */
17972 #include <nlist.h>
17973
17974 int
17975 main ()
17976 {
17977 static struct nlist ac_aggr;
17978 if (ac_aggr.n_un.n_name)
17979 return 0;
17980 ;
17981 return 0;
17982 }
17983 _ACEOF
17984 rm -f conftest.$ac_objext
17985 if { (ac_try="$ac_compile"
17986 case "(($ac_try" in
17987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17988 *) ac_try_echo=$ac_try;;
17989 esac
17990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17991 (eval "$ac_compile") 2>conftest.er1
17992 ac_status=$?
17993 grep -v '^ *+' conftest.er1 >conftest.err
17994 rm -f conftest.er1
17995 cat conftest.err >&5
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); } && {
17998 test -z "$ac_c_werror_flag" ||
17999 test ! -s conftest.err
18000 } && test -s conftest.$ac_objext; then
18001 ac_cv_member_struct_nlist_n_un_n_name=yes
18002 else
18003 echo "$as_me: failed program was:" >&5
18004 sed 's/^/| /' conftest.$ac_ext >&5
18005
18006 cat >conftest.$ac_ext <<_ACEOF
18007 /* confdefs.h. */
18008 _ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h. */
18012 #include <nlist.h>
18013
18014 int
18015 main ()
18016 {
18017 static struct nlist ac_aggr;
18018 if (sizeof ac_aggr.n_un.n_name)
18019 return 0;
18020 ;
18021 return 0;
18022 }
18023 _ACEOF
18024 rm -f conftest.$ac_objext
18025 if { (ac_try="$ac_compile"
18026 case "(($ac_try" in
18027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028 *) ac_try_echo=$ac_try;;
18029 esac
18030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18031 (eval "$ac_compile") 2>conftest.er1
18032 ac_status=$?
18033 grep -v '^ *+' conftest.er1 >conftest.err
18034 rm -f conftest.er1
18035 cat conftest.err >&5
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); } && {
18038 test -z "$ac_c_werror_flag" ||
18039 test ! -s conftest.err
18040 } && test -s conftest.$ac_objext; then
18041 ac_cv_member_struct_nlist_n_un_n_name=yes
18042 else
18043 echo "$as_me: failed program was:" >&5
18044 sed 's/^/| /' conftest.$ac_ext >&5
18045
18046 ac_cv_member_struct_nlist_n_un_n_name=no
18047 fi
18048
18049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18050 fi
18051
18052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18053 fi
18054 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18055 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18056 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18057
18058 cat >>confdefs.h <<_ACEOF
18059 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18060 _ACEOF
18061
18062
18063 cat >>confdefs.h <<\_ACEOF
18064 #define NLIST_NAME_UNION 1
18065 _ACEOF
18066
18067 fi
18068
18069
18070 fi
18071
18072 done
18073
18074 fi
18075 done
18076
18077
18078 # Some definitions of getloadavg require that the program be installed setgid.
18079 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18080 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18081 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18082 echo $ECHO_N "(cached) $ECHO_C" >&6
18083 else
18084 cat >conftest.$ac_ext <<_ACEOF
18085 /* confdefs.h. */
18086 _ACEOF
18087 cat confdefs.h >>conftest.$ac_ext
18088 cat >>conftest.$ac_ext <<_ACEOF
18089 /* end confdefs.h. */
18090 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18091 #ifdef LDAV_PRIVILEGED
18092 Yowza Am I SETGID yet
18093 #endif
18094 _ACEOF
18095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18096 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18097 ac_cv_func_getloadavg_setgid=yes
18098 else
18099 ac_cv_func_getloadavg_setgid=no
18100 fi
18101 rm -f conftest*
18102
18103 fi
18104 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18105 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18106 if test $ac_cv_func_getloadavg_setgid = yes; then
18107 NEED_SETGID=true
18108
18109 cat >>confdefs.h <<\_ACEOF
18110 #define GETLOADAVG_PRIVILEGED 1
18111 _ACEOF
18112
18113 else
18114 NEED_SETGID=false
18115 fi
18116
18117 if test $ac_cv_func_getloadavg_setgid = yes; then
18118 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18119 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18120 if test "${ac_cv_group_kmem+set}" = set; then
18121 echo $ECHO_N "(cached) $ECHO_C" >&6
18122 else
18123 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18124 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18125 # If we got an error (system does not support symlinks), try without -L.
18126 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18127 ac_cv_group_kmem=`echo $ac_ls_output \
18128 | sed -ne 's/[ ][ ]*/ /g;
18129 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18130 / /s/.* //;p;'`
18131
18132 fi
18133 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18134 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18135 KMEM_GROUP=$ac_cv_group_kmem
18136 fi
18137 if test "x$ac_save_LIBS" = x; then
18138 GETLOADAVG_LIBS=$LIBS
18139 else
18140 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18141 fi
18142 LIBS=$ac_save_LIBS
18143
18144
18145
18146 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18147 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18148 if test "${ac_cv_sys_largefile_source+set}" = set; then
18149 echo $ECHO_N "(cached) $ECHO_C" >&6
18150 else
18151 while :; do
18152 cat >conftest.$ac_ext <<_ACEOF
18153 /* confdefs.h. */
18154 _ACEOF
18155 cat confdefs.h >>conftest.$ac_ext
18156 cat >>conftest.$ac_ext <<_ACEOF
18157 /* end confdefs.h. */
18158 #include <stdio.h>
18159 int
18160 main ()
18161 {
18162 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18163 ;
18164 return 0;
18165 }
18166 _ACEOF
18167 rm -f conftest.$ac_objext conftest$ac_exeext
18168 if { (ac_try="$ac_link"
18169 case "(($ac_try" in
18170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171 *) ac_try_echo=$ac_try;;
18172 esac
18173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174 (eval "$ac_link") 2>conftest.er1
18175 ac_status=$?
18176 grep -v '^ *+' conftest.er1 >conftest.err
18177 rm -f conftest.er1
18178 cat conftest.err >&5
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); } && {
18181 test -z "$ac_c_werror_flag" ||
18182 test ! -s conftest.err
18183 } && test -s conftest$ac_exeext &&
18184 $as_test_x conftest$ac_exeext; then
18185 ac_cv_sys_largefile_source=no; break
18186 else
18187 echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18189
18190
18191 fi
18192
18193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18194 conftest$ac_exeext conftest.$ac_ext
18195 cat >conftest.$ac_ext <<_ACEOF
18196 /* confdefs.h. */
18197 _ACEOF
18198 cat confdefs.h >>conftest.$ac_ext
18199 cat >>conftest.$ac_ext <<_ACEOF
18200 /* end confdefs.h. */
18201 #define _LARGEFILE_SOURCE 1
18202 #include <stdio.h>
18203 int
18204 main ()
18205 {
18206 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18207 ;
18208 return 0;
18209 }
18210 _ACEOF
18211 rm -f conftest.$ac_objext conftest$ac_exeext
18212 if { (ac_try="$ac_link"
18213 case "(($ac_try" in
18214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18215 *) ac_try_echo=$ac_try;;
18216 esac
18217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18218 (eval "$ac_link") 2>conftest.er1
18219 ac_status=$?
18220 grep -v '^ *+' conftest.er1 >conftest.err
18221 rm -f conftest.er1
18222 cat conftest.err >&5
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); } && {
18225 test -z "$ac_c_werror_flag" ||
18226 test ! -s conftest.err
18227 } && test -s conftest$ac_exeext &&
18228 $as_test_x conftest$ac_exeext; then
18229 ac_cv_sys_largefile_source=1; break
18230 else
18231 echo "$as_me: failed program was:" >&5
18232 sed 's/^/| /' conftest.$ac_ext >&5
18233
18234
18235 fi
18236
18237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18238 conftest$ac_exeext conftest.$ac_ext
18239 ac_cv_sys_largefile_source=unknown
18240 break
18241 done
18242 fi
18243 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18244 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18245 case $ac_cv_sys_largefile_source in #(
18246 no | unknown) ;;
18247 *)
18248 cat >>confdefs.h <<_ACEOF
18249 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18250 _ACEOF
18251 ;;
18252 esac
18253 rm -f conftest*
18254
18255 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18256 # in glibc 2.1.3, but that breaks too many other things.
18257 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18258 if test $ac_cv_sys_largefile_source != unknown; then
18259
18260 cat >>confdefs.h <<\_ACEOF
18261 #define HAVE_FSEEKO 1
18262 _ACEOF
18263
18264 fi
18265
18266
18267 # Configure getopt.
18268 # getopt.m4 serial 10
18269
18270 # The getopt module assume you want GNU getopt, with getopt_long etc,
18271 # rather than vanilla POSIX getopt. This means your your code should
18272 # always include <getopt.h> for the getopt prototypes.
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284 # Prerequisites of lib/getopt*.
18285
18286
18287
18288
18289 GETOPT_H=
18290
18291 for ac_header in getopt.h
18292 do
18293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18295 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18298 echo $ECHO_N "(cached) $ECHO_C" >&6
18299 fi
18300 ac_res=`eval echo '${'$as_ac_Header'}'`
18301 { echo "$as_me:$LINENO: result: $ac_res" >&5
18302 echo "${ECHO_T}$ac_res" >&6; }
18303 else
18304 # Is the header compilable?
18305 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18307 cat >conftest.$ac_ext <<_ACEOF
18308 /* confdefs.h. */
18309 _ACEOF
18310 cat confdefs.h >>conftest.$ac_ext
18311 cat >>conftest.$ac_ext <<_ACEOF
18312 /* end confdefs.h. */
18313 $ac_includes_default
18314 #include <$ac_header>
18315 _ACEOF
18316 rm -f conftest.$ac_objext
18317 if { (ac_try="$ac_compile"
18318 case "(($ac_try" in
18319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320 *) ac_try_echo=$ac_try;;
18321 esac
18322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18323 (eval "$ac_compile") 2>conftest.er1
18324 ac_status=$?
18325 grep -v '^ *+' conftest.er1 >conftest.err
18326 rm -f conftest.er1
18327 cat conftest.err >&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); } && {
18330 test -z "$ac_c_werror_flag" ||
18331 test ! -s conftest.err
18332 } && test -s conftest.$ac_objext; then
18333 ac_header_compiler=yes
18334 else
18335 echo "$as_me: failed program was:" >&5
18336 sed 's/^/| /' conftest.$ac_ext >&5
18337
18338 ac_header_compiler=no
18339 fi
18340
18341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18342 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18343 echo "${ECHO_T}$ac_header_compiler" >&6; }
18344
18345 # Is the header present?
18346 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18348 cat >conftest.$ac_ext <<_ACEOF
18349 /* confdefs.h. */
18350 _ACEOF
18351 cat confdefs.h >>conftest.$ac_ext
18352 cat >>conftest.$ac_ext <<_ACEOF
18353 /* end confdefs.h. */
18354 #include <$ac_header>
18355 _ACEOF
18356 if { (ac_try="$ac_cpp conftest.$ac_ext"
18357 case "(($ac_try" in
18358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359 *) ac_try_echo=$ac_try;;
18360 esac
18361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18363 ac_status=$?
18364 grep -v '^ *+' conftest.er1 >conftest.err
18365 rm -f conftest.er1
18366 cat conftest.err >&5
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); } >/dev/null && {
18369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18370 test ! -s conftest.err
18371 }; then
18372 ac_header_preproc=yes
18373 else
18374 echo "$as_me: failed program was:" >&5
18375 sed 's/^/| /' conftest.$ac_ext >&5
18376
18377 ac_header_preproc=no
18378 fi
18379
18380 rm -f conftest.err conftest.$ac_ext
18381 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18382 echo "${ECHO_T}$ac_header_preproc" >&6; }
18383
18384 # So? What about this header?
18385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18386 yes:no: )
18387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18390 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18391 ac_header_preproc=yes
18392 ;;
18393 no:yes:* )
18394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18399 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18401 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18405 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18406
18407 ;;
18408 esac
18409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18412 echo $ECHO_N "(cached) $ECHO_C" >&6
18413 else
18414 eval "$as_ac_Header=\$ac_header_preproc"
18415 fi
18416 ac_res=`eval echo '${'$as_ac_Header'}'`
18417 { echo "$as_me:$LINENO: result: $ac_res" >&5
18418 echo "${ECHO_T}$ac_res" >&6; }
18419
18420 fi
18421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18422 cat >>confdefs.h <<_ACEOF
18423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18424 _ACEOF
18425
18426 else
18427 GETOPT_H=getopt.h
18428 fi
18429
18430 done
18431
18432 if test -z "$GETOPT_H"; then
18433
18434 for ac_func in getopt_long_only
18435 do
18436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18437 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18439 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18440 echo $ECHO_N "(cached) $ECHO_C" >&6
18441 else
18442 cat >conftest.$ac_ext <<_ACEOF
18443 /* confdefs.h. */
18444 _ACEOF
18445 cat confdefs.h >>conftest.$ac_ext
18446 cat >>conftest.$ac_ext <<_ACEOF
18447 /* end confdefs.h. */
18448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18450 #define $ac_func innocuous_$ac_func
18451
18452 /* System header to define __stub macros and hopefully few prototypes,
18453 which can conflict with char $ac_func (); below.
18454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18455 <limits.h> exists even on freestanding compilers. */
18456
18457 #ifdef __STDC__
18458 # include <limits.h>
18459 #else
18460 # include <assert.h>
18461 #endif
18462
18463 #undef $ac_func
18464
18465 /* Override any GCC internal prototype to avoid an error.
18466 Use char because int might match the return type of a GCC
18467 builtin and then its argument prototype would still apply. */
18468 #ifdef __cplusplus
18469 extern "C"
18470 #endif
18471 char $ac_func ();
18472 /* The GNU C library defines this for functions which it implements
18473 to always fail with ENOSYS. Some functions are actually named
18474 something starting with __ and the normal name is an alias. */
18475 #if defined __stub_$ac_func || defined __stub___$ac_func
18476 choke me
18477 #endif
18478
18479 int
18480 main ()
18481 {
18482 return $ac_func ();
18483 ;
18484 return 0;
18485 }
18486 _ACEOF
18487 rm -f conftest.$ac_objext conftest$ac_exeext
18488 if { (ac_try="$ac_link"
18489 case "(($ac_try" in
18490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18491 *) ac_try_echo=$ac_try;;
18492 esac
18493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18494 (eval "$ac_link") 2>conftest.er1
18495 ac_status=$?
18496 grep -v '^ *+' conftest.er1 >conftest.err
18497 rm -f conftest.er1
18498 cat conftest.err >&5
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); } && {
18501 test -z "$ac_c_werror_flag" ||
18502 test ! -s conftest.err
18503 } && test -s conftest$ac_exeext &&
18504 $as_test_x conftest$ac_exeext; then
18505 eval "$as_ac_var=yes"
18506 else
18507 echo "$as_me: failed program was:" >&5
18508 sed 's/^/| /' conftest.$ac_ext >&5
18509
18510 eval "$as_ac_var=no"
18511 fi
18512
18513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18514 conftest$ac_exeext conftest.$ac_ext
18515 fi
18516 ac_res=`eval echo '${'$as_ac_var'}'`
18517 { echo "$as_me:$LINENO: result: $ac_res" >&5
18518 echo "${ECHO_T}$ac_res" >&6; }
18519 if test `eval echo '${'$as_ac_var'}'` = yes; then
18520 cat >>confdefs.h <<_ACEOF
18521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18522 _ACEOF
18523
18524 else
18525 GETOPT_H=getopt.h
18526 fi
18527 done
18528
18529 fi
18530
18531 if test -z "$GETOPT_H"; then
18532 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18533 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18534 if test "${ac_cv_have_decl_optreset+set}" = set; then
18535 echo $ECHO_N "(cached) $ECHO_C" >&6
18536 else
18537 cat >conftest.$ac_ext <<_ACEOF
18538 /* confdefs.h. */
18539 _ACEOF
18540 cat confdefs.h >>conftest.$ac_ext
18541 cat >>conftest.$ac_ext <<_ACEOF
18542 /* end confdefs.h. */
18543 #include <getopt.h>
18544
18545 int
18546 main ()
18547 {
18548 #ifndef optreset
18549 (void) optreset;
18550 #endif
18551
18552 ;
18553 return 0;
18554 }
18555 _ACEOF
18556 rm -f conftest.$ac_objext
18557 if { (ac_try="$ac_compile"
18558 case "(($ac_try" in
18559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18560 *) ac_try_echo=$ac_try;;
18561 esac
18562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18563 (eval "$ac_compile") 2>conftest.er1
18564 ac_status=$?
18565 grep -v '^ *+' conftest.er1 >conftest.err
18566 rm -f conftest.er1
18567 cat conftest.err >&5
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); } && {
18570 test -z "$ac_c_werror_flag" ||
18571 test ! -s conftest.err
18572 } && test -s conftest.$ac_objext; then
18573 ac_cv_have_decl_optreset=yes
18574 else
18575 echo "$as_me: failed program was:" >&5
18576 sed 's/^/| /' conftest.$ac_ext >&5
18577
18578 ac_cv_have_decl_optreset=no
18579 fi
18580
18581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18582 fi
18583 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18584 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18585 if test $ac_cv_have_decl_optreset = yes; then
18586 GETOPT_H=getopt.h
18587 fi
18588
18589 fi
18590
18591 if test -z "$GETOPT_H"; then
18592 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18593 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18594 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18595 echo $ECHO_N "(cached) $ECHO_C" >&6
18596 else
18597 if test "$cross_compiling" = yes; then
18598 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18599 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18600 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18601 echo $ECHO_N "(cached) $ECHO_C" >&6
18602 else
18603 cat >conftest.$ac_ext <<_ACEOF
18604 /* confdefs.h. */
18605 _ACEOF
18606 cat confdefs.h >>conftest.$ac_ext
18607 cat >>conftest.$ac_ext <<_ACEOF
18608 /* end confdefs.h. */
18609 #include <getopt.h>
18610
18611 int
18612 main ()
18613 {
18614 #ifndef getopt_clip
18615 (void) getopt_clip;
18616 #endif
18617
18618 ;
18619 return 0;
18620 }
18621 _ACEOF
18622 rm -f conftest.$ac_objext
18623 if { (ac_try="$ac_compile"
18624 case "(($ac_try" in
18625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626 *) ac_try_echo=$ac_try;;
18627 esac
18628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629 (eval "$ac_compile") 2>conftest.er1
18630 ac_status=$?
18631 grep -v '^ *+' conftest.er1 >conftest.err
18632 rm -f conftest.er1
18633 cat conftest.err >&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); } && {
18636 test -z "$ac_c_werror_flag" ||
18637 test ! -s conftest.err
18638 } && test -s conftest.$ac_objext; then
18639 ac_cv_have_decl_getopt_clip=yes
18640 else
18641 echo "$as_me: failed program was:" >&5
18642 sed 's/^/| /' conftest.$ac_ext >&5
18643
18644 ac_cv_have_decl_getopt_clip=no
18645 fi
18646
18647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18648 fi
18649 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18650 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18651 if test $ac_cv_have_decl_getopt_clip = yes; then
18652 gl_cv_func_gnu_getopt=no
18653 else
18654 gl_cv_func_gnu_getopt=yes
18655 fi
18656
18657 else
18658 cat >conftest.$ac_ext <<_ACEOF
18659 /* confdefs.h. */
18660 _ACEOF
18661 cat confdefs.h >>conftest.$ac_ext
18662 cat >>conftest.$ac_ext <<_ACEOF
18663 /* end confdefs.h. */
18664 #include <getopt.h>
18665 int
18666 main ()
18667 {
18668
18669 char *myargv[3];
18670 myargv[0] = "conftest";
18671 myargv[1] = "-+";
18672 myargv[2] = 0;
18673 return getopt (2, myargv, "+a") != '?';
18674
18675 ;
18676 return 0;
18677 }
18678 _ACEOF
18679 rm -f conftest$ac_exeext
18680 if { (ac_try="$ac_link"
18681 case "(($ac_try" in
18682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18683 *) ac_try_echo=$ac_try;;
18684 esac
18685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18686 (eval "$ac_link") 2>&5
18687 ac_status=$?
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18690 { (case "(($ac_try" in
18691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692 *) ac_try_echo=$ac_try;;
18693 esac
18694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18695 (eval "$ac_try") 2>&5
18696 ac_status=$?
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; }; then
18699 gl_cv_func_gnu_getopt=yes
18700 else
18701 echo "$as_me: program exited with status $ac_status" >&5
18702 echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18704
18705 ( exit $ac_status )
18706 gl_cv_func_gnu_getopt=no
18707 fi
18708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18709 fi
18710
18711
18712 fi
18713 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18714 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18715 if test "$gl_cv_func_gnu_getopt" = "no"; then
18716 GETOPT_H=getopt.h
18717 fi
18718 fi
18719
18720
18721
18722 if test -n "$GETOPT_H"; then
18723
18724
18725 GETOPT_H=getopt.h
18726
18727 cat >>confdefs.h <<\_ACEOF
18728 #define __GETOPT_PREFIX rpl_
18729 _ACEOF
18730
18731
18732
18733 :
18734 GETOPTOBJS='getopt.o getopt1.o'
18735
18736 fi
18737
18738
18739
18740
18741 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18742 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18743 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18744 echo $ECHO_N "(cached) $ECHO_C" >&6
18745 else
18746 # Use it with a single arg.
18747 cat >conftest.$ac_ext <<_ACEOF
18748 /* confdefs.h. */
18749 _ACEOF
18750 cat confdefs.h >>conftest.$ac_ext
18751 cat >>conftest.$ac_ext <<_ACEOF
18752 /* end confdefs.h. */
18753 $ac_includes_default
18754 int
18755 main ()
18756 {
18757 getpgrp (0);
18758 ;
18759 return 0;
18760 }
18761 _ACEOF
18762 rm -f conftest.$ac_objext
18763 if { (ac_try="$ac_compile"
18764 case "(($ac_try" in
18765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766 *) ac_try_echo=$ac_try;;
18767 esac
18768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769 (eval "$ac_compile") 2>conftest.er1
18770 ac_status=$?
18771 grep -v '^ *+' conftest.er1 >conftest.err
18772 rm -f conftest.er1
18773 cat conftest.err >&5
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); } && {
18776 test -z "$ac_c_werror_flag" ||
18777 test ! -s conftest.err
18778 } && test -s conftest.$ac_objext; then
18779 ac_cv_func_getpgrp_void=no
18780 else
18781 echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18783
18784 ac_cv_func_getpgrp_void=yes
18785 fi
18786
18787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18788
18789 fi
18790 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18791 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18792 if test $ac_cv_func_getpgrp_void = yes; then
18793
18794 cat >>confdefs.h <<\_ACEOF
18795 #define GETPGRP_VOID 1
18796 _ACEOF
18797
18798 fi
18799
18800
18801
18802 for ac_func in strftime
18803 do
18804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18805 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18807 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18808 echo $ECHO_N "(cached) $ECHO_C" >&6
18809 else
18810 cat >conftest.$ac_ext <<_ACEOF
18811 /* confdefs.h. */
18812 _ACEOF
18813 cat confdefs.h >>conftest.$ac_ext
18814 cat >>conftest.$ac_ext <<_ACEOF
18815 /* end confdefs.h. */
18816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18818 #define $ac_func innocuous_$ac_func
18819
18820 /* System header to define __stub macros and hopefully few prototypes,
18821 which can conflict with char $ac_func (); below.
18822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18823 <limits.h> exists even on freestanding compilers. */
18824
18825 #ifdef __STDC__
18826 # include <limits.h>
18827 #else
18828 # include <assert.h>
18829 #endif
18830
18831 #undef $ac_func
18832
18833 /* Override any GCC internal prototype to avoid an error.
18834 Use char because int might match the return type of a GCC
18835 builtin and then its argument prototype would still apply. */
18836 #ifdef __cplusplus
18837 extern "C"
18838 #endif
18839 char $ac_func ();
18840 /* The GNU C library defines this for functions which it implements
18841 to always fail with ENOSYS. Some functions are actually named
18842 something starting with __ and the normal name is an alias. */
18843 #if defined __stub_$ac_func || defined __stub___$ac_func
18844 choke me
18845 #endif
18846
18847 int
18848 main ()
18849 {
18850 return $ac_func ();
18851 ;
18852 return 0;
18853 }
18854 _ACEOF
18855 rm -f conftest.$ac_objext conftest$ac_exeext
18856 if { (ac_try="$ac_link"
18857 case "(($ac_try" in
18858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18859 *) ac_try_echo=$ac_try;;
18860 esac
18861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18862 (eval "$ac_link") 2>conftest.er1
18863 ac_status=$?
18864 grep -v '^ *+' conftest.er1 >conftest.err
18865 rm -f conftest.er1
18866 cat conftest.err >&5
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); } && {
18869 test -z "$ac_c_werror_flag" ||
18870 test ! -s conftest.err
18871 } && test -s conftest$ac_exeext &&
18872 $as_test_x conftest$ac_exeext; then
18873 eval "$as_ac_var=yes"
18874 else
18875 echo "$as_me: failed program was:" >&5
18876 sed 's/^/| /' conftest.$ac_ext >&5
18877
18878 eval "$as_ac_var=no"
18879 fi
18880
18881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18882 conftest$ac_exeext conftest.$ac_ext
18883 fi
18884 ac_res=`eval echo '${'$as_ac_var'}'`
18885 { echo "$as_me:$LINENO: result: $ac_res" >&5
18886 echo "${ECHO_T}$ac_res" >&6; }
18887 if test `eval echo '${'$as_ac_var'}'` = yes; then
18888 cat >>confdefs.h <<_ACEOF
18889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18890 _ACEOF
18891
18892 else
18893 # strftime is in -lintl on SCO UNIX.
18894 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18895 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18896 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18897 echo $ECHO_N "(cached) $ECHO_C" >&6
18898 else
18899 ac_check_lib_save_LIBS=$LIBS
18900 LIBS="-lintl $LIBS"
18901 cat >conftest.$ac_ext <<_ACEOF
18902 /* confdefs.h. */
18903 _ACEOF
18904 cat confdefs.h >>conftest.$ac_ext
18905 cat >>conftest.$ac_ext <<_ACEOF
18906 /* end confdefs.h. */
18907
18908 /* Override any GCC internal prototype to avoid an error.
18909 Use char because int might match the return type of a GCC
18910 builtin and then its argument prototype would still apply. */
18911 #ifdef __cplusplus
18912 extern "C"
18913 #endif
18914 char strftime ();
18915 int
18916 main ()
18917 {
18918 return strftime ();
18919 ;
18920 return 0;
18921 }
18922 _ACEOF
18923 rm -f conftest.$ac_objext conftest$ac_exeext
18924 if { (ac_try="$ac_link"
18925 case "(($ac_try" in
18926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18927 *) ac_try_echo=$ac_try;;
18928 esac
18929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18930 (eval "$ac_link") 2>conftest.er1
18931 ac_status=$?
18932 grep -v '^ *+' conftest.er1 >conftest.err
18933 rm -f conftest.er1
18934 cat conftest.err >&5
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); } && {
18937 test -z "$ac_c_werror_flag" ||
18938 test ! -s conftest.err
18939 } && test -s conftest$ac_exeext &&
18940 $as_test_x conftest$ac_exeext; then
18941 ac_cv_lib_intl_strftime=yes
18942 else
18943 echo "$as_me: failed program was:" >&5
18944 sed 's/^/| /' conftest.$ac_ext >&5
18945
18946 ac_cv_lib_intl_strftime=no
18947 fi
18948
18949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18950 conftest$ac_exeext conftest.$ac_ext
18951 LIBS=$ac_check_lib_save_LIBS
18952 fi
18953 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18954 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18955 if test $ac_cv_lib_intl_strftime = yes; then
18956 cat >>confdefs.h <<\_ACEOF
18957 #define HAVE_STRFTIME 1
18958 _ACEOF
18959
18960 LIBS="-lintl $LIBS"
18961 fi
18962
18963 fi
18964 done
18965
18966
18967 # UNIX98 PTYs.
18968
18969 for ac_func in grantpt
18970 do
18971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18972 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18974 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18975 echo $ECHO_N "(cached) $ECHO_C" >&6
18976 else
18977 cat >conftest.$ac_ext <<_ACEOF
18978 /* confdefs.h. */
18979 _ACEOF
18980 cat confdefs.h >>conftest.$ac_ext
18981 cat >>conftest.$ac_ext <<_ACEOF
18982 /* end confdefs.h. */
18983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18985 #define $ac_func innocuous_$ac_func
18986
18987 /* System header to define __stub macros and hopefully few prototypes,
18988 which can conflict with char $ac_func (); below.
18989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18990 <limits.h> exists even on freestanding compilers. */
18991
18992 #ifdef __STDC__
18993 # include <limits.h>
18994 #else
18995 # include <assert.h>
18996 #endif
18997
18998 #undef $ac_func
18999
19000 /* Override any GCC internal prototype to avoid an error.
19001 Use char because int might match the return type of a GCC
19002 builtin and then its argument prototype would still apply. */
19003 #ifdef __cplusplus
19004 extern "C"
19005 #endif
19006 char $ac_func ();
19007 /* The GNU C library defines this for functions which it implements
19008 to always fail with ENOSYS. Some functions are actually named
19009 something starting with __ and the normal name is an alias. */
19010 #if defined __stub_$ac_func || defined __stub___$ac_func
19011 choke me
19012 #endif
19013
19014 int
19015 main ()
19016 {
19017 return $ac_func ();
19018 ;
19019 return 0;
19020 }
19021 _ACEOF
19022 rm -f conftest.$ac_objext conftest$ac_exeext
19023 if { (ac_try="$ac_link"
19024 case "(($ac_try" in
19025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19026 *) ac_try_echo=$ac_try;;
19027 esac
19028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19029 (eval "$ac_link") 2>conftest.er1
19030 ac_status=$?
19031 grep -v '^ *+' conftest.er1 >conftest.err
19032 rm -f conftest.er1
19033 cat conftest.err >&5
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); } && {
19036 test -z "$ac_c_werror_flag" ||
19037 test ! -s conftest.err
19038 } && test -s conftest$ac_exeext &&
19039 $as_test_x conftest$ac_exeext; then
19040 eval "$as_ac_var=yes"
19041 else
19042 echo "$as_me: failed program was:" >&5
19043 sed 's/^/| /' conftest.$ac_ext >&5
19044
19045 eval "$as_ac_var=no"
19046 fi
19047
19048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19049 conftest$ac_exeext conftest.$ac_ext
19050 fi
19051 ac_res=`eval echo '${'$as_ac_var'}'`
19052 { echo "$as_me:$LINENO: result: $ac_res" >&5
19053 echo "${ECHO_T}$ac_res" >&6; }
19054 if test `eval echo '${'$as_ac_var'}'` = yes; then
19055 cat >>confdefs.h <<_ACEOF
19056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19057 _ACEOF
19058
19059 fi
19060 done
19061
19062
19063 # PTY-related GNU extensions.
19064
19065 for ac_func in getpt
19066 do
19067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19071 echo $ECHO_N "(cached) $ECHO_C" >&6
19072 else
19073 cat >conftest.$ac_ext <<_ACEOF
19074 /* confdefs.h. */
19075 _ACEOF
19076 cat confdefs.h >>conftest.$ac_ext
19077 cat >>conftest.$ac_ext <<_ACEOF
19078 /* end confdefs.h. */
19079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19081 #define $ac_func innocuous_$ac_func
19082
19083 /* System header to define __stub macros and hopefully few prototypes,
19084 which can conflict with char $ac_func (); below.
19085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19086 <limits.h> exists even on freestanding compilers. */
19087
19088 #ifdef __STDC__
19089 # include <limits.h>
19090 #else
19091 # include <assert.h>
19092 #endif
19093
19094 #undef $ac_func
19095
19096 /* Override any GCC internal prototype to avoid an error.
19097 Use char because int might match the return type of a GCC
19098 builtin and then its argument prototype would still apply. */
19099 #ifdef __cplusplus
19100 extern "C"
19101 #endif
19102 char $ac_func ();
19103 /* The GNU C library defines this for functions which it implements
19104 to always fail with ENOSYS. Some functions are actually named
19105 something starting with __ and the normal name is an alias. */
19106 #if defined __stub_$ac_func || defined __stub___$ac_func
19107 choke me
19108 #endif
19109
19110 int
19111 main ()
19112 {
19113 return $ac_func ();
19114 ;
19115 return 0;
19116 }
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 eval "$as_ac_var=yes"
19137 else
19138 echo "$as_me: failed program was:" >&5
19139 sed 's/^/| /' conftest.$ac_ext >&5
19140
19141 eval "$as_ac_var=no"
19142 fi
19143
19144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19145 conftest$ac_exeext conftest.$ac_ext
19146 fi
19147 ac_res=`eval echo '${'$as_ac_var'}'`
19148 { echo "$as_me:$LINENO: result: $ac_res" >&5
19149 echo "${ECHO_T}$ac_res" >&6; }
19150 if test `eval echo '${'$as_ac_var'}'` = yes; then
19151 cat >>confdefs.h <<_ACEOF
19152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19153 _ACEOF
19154
19155 fi
19156 done
19157
19158
19159 # Check this now, so that we will NOT find the above functions in ncurses.
19160 # That is because we have not set up to link ncurses in lib-src.
19161 # It's better to believe a function is not available
19162 # than to expect to find it in ncurses.
19163
19164 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19165 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19166 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
19168 else
19169 ac_check_lib_save_LIBS=$LIBS
19170 LIBS="-lncurses $LIBS"
19171 cat >conftest.$ac_ext <<_ACEOF
19172 /* confdefs.h. */
19173 _ACEOF
19174 cat confdefs.h >>conftest.$ac_ext
19175 cat >>conftest.$ac_ext <<_ACEOF
19176 /* end confdefs.h. */
19177
19178 /* Override any GCC internal prototype to avoid an error.
19179 Use char because int might match the return type of a GCC
19180 builtin and then its argument prototype would still apply. */
19181 #ifdef __cplusplus
19182 extern "C"
19183 #endif
19184 char tparm ();
19185 int
19186 main ()
19187 {
19188 return tparm ();
19189 ;
19190 return 0;
19191 }
19192 _ACEOF
19193 rm -f conftest.$ac_objext conftest$ac_exeext
19194 if { (ac_try="$ac_link"
19195 case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19198 esac
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_link") 2>conftest.er1
19201 ac_status=$?
19202 grep -v '^ *+' conftest.er1 >conftest.err
19203 rm -f conftest.er1
19204 cat conftest.err >&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); } && {
19207 test -z "$ac_c_werror_flag" ||
19208 test ! -s conftest.err
19209 } && test -s conftest$ac_exeext &&
19210 $as_test_x conftest$ac_exeext; then
19211 ac_cv_lib_ncurses_tparm=yes
19212 else
19213 echo "$as_me: failed program was:" >&5
19214 sed 's/^/| /' conftest.$ac_ext >&5
19215
19216 ac_cv_lib_ncurses_tparm=no
19217 fi
19218
19219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19220 conftest$ac_exeext conftest.$ac_ext
19221 LIBS=$ac_check_lib_save_LIBS
19222 fi
19223 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19224 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19225 if test $ac_cv_lib_ncurses_tparm = yes; then
19226 cat >>confdefs.h <<_ACEOF
19227 #define HAVE_LIBNCURSES 1
19228 _ACEOF
19229
19230 LIBS="-lncurses $LIBS"
19231
19232 fi
19233
19234
19235 # Do we need the Hesiod library to provide the support routines?
19236 if test "$with_hesiod" = yes ; then
19237 # Don't set $LIBS here -- see comments above.
19238 resolv=no
19239 { echo "$as_me:$LINENO: checking for res_send" >&5
19240 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19241 if test "${ac_cv_func_res_send+set}" = set; then
19242 echo $ECHO_N "(cached) $ECHO_C" >&6
19243 else
19244 cat >conftest.$ac_ext <<_ACEOF
19245 /* confdefs.h. */
19246 _ACEOF
19247 cat confdefs.h >>conftest.$ac_ext
19248 cat >>conftest.$ac_ext <<_ACEOF
19249 /* end confdefs.h. */
19250 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19252 #define res_send innocuous_res_send
19253
19254 /* System header to define __stub macros and hopefully few prototypes,
19255 which can conflict with char res_send (); below.
19256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19257 <limits.h> exists even on freestanding compilers. */
19258
19259 #ifdef __STDC__
19260 # include <limits.h>
19261 #else
19262 # include <assert.h>
19263 #endif
19264
19265 #undef res_send
19266
19267 /* Override any GCC internal prototype to avoid an error.
19268 Use char because int might match the return type of a GCC
19269 builtin and then its argument prototype would still apply. */
19270 #ifdef __cplusplus
19271 extern "C"
19272 #endif
19273 char res_send ();
19274 /* The GNU C library defines this for functions which it implements
19275 to always fail with ENOSYS. Some functions are actually named
19276 something starting with __ and the normal name is an alias. */
19277 #if defined __stub_res_send || defined __stub___res_send
19278 choke me
19279 #endif
19280
19281 int
19282 main ()
19283 {
19284 return res_send ();
19285 ;
19286 return 0;
19287 }
19288 _ACEOF
19289 rm -f conftest.$ac_objext conftest$ac_exeext
19290 if { (ac_try="$ac_link"
19291 case "(($ac_try" in
19292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19293 *) ac_try_echo=$ac_try;;
19294 esac
19295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19296 (eval "$ac_link") 2>conftest.er1
19297 ac_status=$?
19298 grep -v '^ *+' conftest.er1 >conftest.err
19299 rm -f conftest.er1
19300 cat conftest.err >&5
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); } && {
19303 test -z "$ac_c_werror_flag" ||
19304 test ! -s conftest.err
19305 } && test -s conftest$ac_exeext &&
19306 $as_test_x conftest$ac_exeext; then
19307 ac_cv_func_res_send=yes
19308 else
19309 echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19311
19312 ac_cv_func_res_send=no
19313 fi
19314
19315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19316 conftest$ac_exeext conftest.$ac_ext
19317 fi
19318 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19319 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19320 if test $ac_cv_func_res_send = yes; then
19321 :
19322 else
19323 { echo "$as_me:$LINENO: checking for __res_send" >&5
19324 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19325 if test "${ac_cv_func___res_send+set}" = set; then
19326 echo $ECHO_N "(cached) $ECHO_C" >&6
19327 else
19328 cat >conftest.$ac_ext <<_ACEOF
19329 /* confdefs.h. */
19330 _ACEOF
19331 cat confdefs.h >>conftest.$ac_ext
19332 cat >>conftest.$ac_ext <<_ACEOF
19333 /* end confdefs.h. */
19334 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19336 #define __res_send innocuous___res_send
19337
19338 /* System header to define __stub macros and hopefully few prototypes,
19339 which can conflict with char __res_send (); below.
19340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19341 <limits.h> exists even on freestanding compilers. */
19342
19343 #ifdef __STDC__
19344 # include <limits.h>
19345 #else
19346 # include <assert.h>
19347 #endif
19348
19349 #undef __res_send
19350
19351 /* Override any GCC internal prototype to avoid an error.
19352 Use char because int might match the return type of a GCC
19353 builtin and then its argument prototype would still apply. */
19354 #ifdef __cplusplus
19355 extern "C"
19356 #endif
19357 char __res_send ();
19358 /* The GNU C library defines this for functions which it implements
19359 to always fail with ENOSYS. Some functions are actually named
19360 something starting with __ and the normal name is an alias. */
19361 #if defined __stub___res_send || defined __stub_____res_send
19362 choke me
19363 #endif
19364
19365 int
19366 main ()
19367 {
19368 return __res_send ();
19369 ;
19370 return 0;
19371 }
19372 _ACEOF
19373 rm -f conftest.$ac_objext conftest$ac_exeext
19374 if { (ac_try="$ac_link"
19375 case "(($ac_try" in
19376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19377 *) ac_try_echo=$ac_try;;
19378 esac
19379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19380 (eval "$ac_link") 2>conftest.er1
19381 ac_status=$?
19382 grep -v '^ *+' conftest.er1 >conftest.err
19383 rm -f conftest.er1
19384 cat conftest.err >&5
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); } && {
19387 test -z "$ac_c_werror_flag" ||
19388 test ! -s conftest.err
19389 } && test -s conftest$ac_exeext &&
19390 $as_test_x conftest$ac_exeext; then
19391 ac_cv_func___res_send=yes
19392 else
19393 echo "$as_me: failed program was:" >&5
19394 sed 's/^/| /' conftest.$ac_ext >&5
19395
19396 ac_cv_func___res_send=no
19397 fi
19398
19399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19400 conftest$ac_exeext conftest.$ac_ext
19401 fi
19402 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19403 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19404 if test $ac_cv_func___res_send = yes; then
19405 :
19406 else
19407 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19408 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19409 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19410 echo $ECHO_N "(cached) $ECHO_C" >&6
19411 else
19412 ac_check_lib_save_LIBS=$LIBS
19413 LIBS="-lresolv $LIBS"
19414 cat >conftest.$ac_ext <<_ACEOF
19415 /* confdefs.h. */
19416 _ACEOF
19417 cat confdefs.h >>conftest.$ac_ext
19418 cat >>conftest.$ac_ext <<_ACEOF
19419 /* end confdefs.h. */
19420
19421 /* Override any GCC internal prototype to avoid an error.
19422 Use char because int might match the return type of a GCC
19423 builtin and then its argument prototype would still apply. */
19424 #ifdef __cplusplus
19425 extern "C"
19426 #endif
19427 char res_send ();
19428 int
19429 main ()
19430 {
19431 return res_send ();
19432 ;
19433 return 0;
19434 }
19435 _ACEOF
19436 rm -f conftest.$ac_objext conftest$ac_exeext
19437 if { (ac_try="$ac_link"
19438 case "(($ac_try" in
19439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19440 *) ac_try_echo=$ac_try;;
19441 esac
19442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19443 (eval "$ac_link") 2>conftest.er1
19444 ac_status=$?
19445 grep -v '^ *+' conftest.er1 >conftest.err
19446 rm -f conftest.er1
19447 cat conftest.err >&5
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); } && {
19450 test -z "$ac_c_werror_flag" ||
19451 test ! -s conftest.err
19452 } && test -s conftest$ac_exeext &&
19453 $as_test_x conftest$ac_exeext; then
19454 ac_cv_lib_resolv_res_send=yes
19455 else
19456 echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19458
19459 ac_cv_lib_resolv_res_send=no
19460 fi
19461
19462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19463 conftest$ac_exeext conftest.$ac_ext
19464 LIBS=$ac_check_lib_save_LIBS
19465 fi
19466 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19467 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19468 if test $ac_cv_lib_resolv_res_send = yes; then
19469 resolv=yes
19470 else
19471 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19472 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19473 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19475 else
19476 ac_check_lib_save_LIBS=$LIBS
19477 LIBS="-lresolv $LIBS"
19478 cat >conftest.$ac_ext <<_ACEOF
19479 /* confdefs.h. */
19480 _ACEOF
19481 cat confdefs.h >>conftest.$ac_ext
19482 cat >>conftest.$ac_ext <<_ACEOF
19483 /* end confdefs.h. */
19484
19485 /* Override any GCC internal prototype to avoid an error.
19486 Use char because int might match the return type of a GCC
19487 builtin and then its argument prototype would still apply. */
19488 #ifdef __cplusplus
19489 extern "C"
19490 #endif
19491 char __res_send ();
19492 int
19493 main ()
19494 {
19495 return __res_send ();
19496 ;
19497 return 0;
19498 }
19499 _ACEOF
19500 rm -f conftest.$ac_objext conftest$ac_exeext
19501 if { (ac_try="$ac_link"
19502 case "(($ac_try" in
19503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19504 *) ac_try_echo=$ac_try;;
19505 esac
19506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19507 (eval "$ac_link") 2>conftest.er1
19508 ac_status=$?
19509 grep -v '^ *+' conftest.er1 >conftest.err
19510 rm -f conftest.er1
19511 cat conftest.err >&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); } && {
19514 test -z "$ac_c_werror_flag" ||
19515 test ! -s conftest.err
19516 } && test -s conftest$ac_exeext &&
19517 $as_test_x conftest$ac_exeext; then
19518 ac_cv_lib_resolv___res_send=yes
19519 else
19520 echo "$as_me: failed program was:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19522
19523 ac_cv_lib_resolv___res_send=no
19524 fi
19525
19526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19527 conftest$ac_exeext conftest.$ac_ext
19528 LIBS=$ac_check_lib_save_LIBS
19529 fi
19530 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19531 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19532 if test $ac_cv_lib_resolv___res_send = yes; then
19533 resolv=yes
19534 fi
19535
19536 fi
19537
19538 fi
19539
19540 fi
19541
19542 if test "$resolv" = yes ; then
19543 RESOLVLIB=-lresolv
19544
19545 cat >>confdefs.h <<\_ACEOF
19546 #define HAVE_LIBRESOLV 1
19547 _ACEOF
19548
19549 else
19550 RESOLVLIB=
19551 fi
19552 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19553 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19554 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
19556 else
19557 cat >conftest.$ac_ext <<_ACEOF
19558 /* confdefs.h. */
19559 _ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h. */
19563 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19565 #define hes_getmailhost innocuous_hes_getmailhost
19566
19567 /* System header to define __stub macros and hopefully few prototypes,
19568 which can conflict with char hes_getmailhost (); below.
19569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19570 <limits.h> exists even on freestanding compilers. */
19571
19572 #ifdef __STDC__
19573 # include <limits.h>
19574 #else
19575 # include <assert.h>
19576 #endif
19577
19578 #undef hes_getmailhost
19579
19580 /* Override any GCC internal prototype to avoid an error.
19581 Use char because int might match the return type of a GCC
19582 builtin and then its argument prototype would still apply. */
19583 #ifdef __cplusplus
19584 extern "C"
19585 #endif
19586 char hes_getmailhost ();
19587 /* The GNU C library defines this for functions which it implements
19588 to always fail with ENOSYS. Some functions are actually named
19589 something starting with __ and the normal name is an alias. */
19590 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19591 choke me
19592 #endif
19593
19594 int
19595 main ()
19596 {
19597 return hes_getmailhost ();
19598 ;
19599 return 0;
19600 }
19601 _ACEOF
19602 rm -f conftest.$ac_objext conftest$ac_exeext
19603 if { (ac_try="$ac_link"
19604 case "(($ac_try" in
19605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19606 *) ac_try_echo=$ac_try;;
19607 esac
19608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19609 (eval "$ac_link") 2>conftest.er1
19610 ac_status=$?
19611 grep -v '^ *+' conftest.er1 >conftest.err
19612 rm -f conftest.er1
19613 cat conftest.err >&5
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); } && {
19616 test -z "$ac_c_werror_flag" ||
19617 test ! -s conftest.err
19618 } && test -s conftest$ac_exeext &&
19619 $as_test_x conftest$ac_exeext; then
19620 ac_cv_func_hes_getmailhost=yes
19621 else
19622 echo "$as_me: failed program was:" >&5
19623 sed 's/^/| /' conftest.$ac_ext >&5
19624
19625 ac_cv_func_hes_getmailhost=no
19626 fi
19627
19628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19629 conftest$ac_exeext conftest.$ac_ext
19630 fi
19631 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19632 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19633 if test $ac_cv_func_hes_getmailhost = yes; then
19634 :
19635 else
19636 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19637 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19638 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19639 echo $ECHO_N "(cached) $ECHO_C" >&6
19640 else
19641 ac_check_lib_save_LIBS=$LIBS
19642 LIBS="-lhesiod $RESOLVLIB $LIBS"
19643 cat >conftest.$ac_ext <<_ACEOF
19644 /* confdefs.h. */
19645 _ACEOF
19646 cat confdefs.h >>conftest.$ac_ext
19647 cat >>conftest.$ac_ext <<_ACEOF
19648 /* end confdefs.h. */
19649
19650 /* Override any GCC internal prototype to avoid an error.
19651 Use char because int might match the return type of a GCC
19652 builtin and then its argument prototype would still apply. */
19653 #ifdef __cplusplus
19654 extern "C"
19655 #endif
19656 char hes_getmailhost ();
19657 int
19658 main ()
19659 {
19660 return hes_getmailhost ();
19661 ;
19662 return 0;
19663 }
19664 _ACEOF
19665 rm -f conftest.$ac_objext conftest$ac_exeext
19666 if { (ac_try="$ac_link"
19667 case "(($ac_try" in
19668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669 *) ac_try_echo=$ac_try;;
19670 esac
19671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672 (eval "$ac_link") 2>conftest.er1
19673 ac_status=$?
19674 grep -v '^ *+' conftest.er1 >conftest.err
19675 rm -f conftest.er1
19676 cat conftest.err >&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } && {
19679 test -z "$ac_c_werror_flag" ||
19680 test ! -s conftest.err
19681 } && test -s conftest$ac_exeext &&
19682 $as_test_x conftest$ac_exeext; then
19683 ac_cv_lib_hesiod_hes_getmailhost=yes
19684 else
19685 echo "$as_me: failed program was:" >&5
19686 sed 's/^/| /' conftest.$ac_ext >&5
19687
19688 ac_cv_lib_hesiod_hes_getmailhost=no
19689 fi
19690
19691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19692 conftest$ac_exeext conftest.$ac_ext
19693 LIBS=$ac_check_lib_save_LIBS
19694 fi
19695 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19696 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19697 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19698
19699 cat >>confdefs.h <<\_ACEOF
19700 #define HAVE_LIBHESIOD 1
19701 _ACEOF
19702
19703 else
19704 :
19705 fi
19706
19707 fi
19708
19709 fi
19710
19711 # These tell us which Kerberos-related libraries to use.
19712 if test "${with_kerberos+set}" = set; then
19713
19714 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19715 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19716 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19717 echo $ECHO_N "(cached) $ECHO_C" >&6
19718 else
19719 ac_check_lib_save_LIBS=$LIBS
19720 LIBS="-lcom_err $LIBS"
19721 cat >conftest.$ac_ext <<_ACEOF
19722 /* confdefs.h. */
19723 _ACEOF
19724 cat confdefs.h >>conftest.$ac_ext
19725 cat >>conftest.$ac_ext <<_ACEOF
19726 /* end confdefs.h. */
19727
19728 /* Override any GCC internal prototype to avoid an error.
19729 Use char because int might match the return type of a GCC
19730 builtin and then its argument prototype would still apply. */
19731 #ifdef __cplusplus
19732 extern "C"
19733 #endif
19734 char com_err ();
19735 int
19736 main ()
19737 {
19738 return com_err ();
19739 ;
19740 return 0;
19741 }
19742 _ACEOF
19743 rm -f conftest.$ac_objext conftest$ac_exeext
19744 if { (ac_try="$ac_link"
19745 case "(($ac_try" in
19746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19747 *) ac_try_echo=$ac_try;;
19748 esac
19749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19750 (eval "$ac_link") 2>conftest.er1
19751 ac_status=$?
19752 grep -v '^ *+' conftest.er1 >conftest.err
19753 rm -f conftest.er1
19754 cat conftest.err >&5
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); } && {
19757 test -z "$ac_c_werror_flag" ||
19758 test ! -s conftest.err
19759 } && test -s conftest$ac_exeext &&
19760 $as_test_x conftest$ac_exeext; then
19761 ac_cv_lib_com_err_com_err=yes
19762 else
19763 echo "$as_me: failed program was:" >&5
19764 sed 's/^/| /' conftest.$ac_ext >&5
19765
19766 ac_cv_lib_com_err_com_err=no
19767 fi
19768
19769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19770 conftest$ac_exeext conftest.$ac_ext
19771 LIBS=$ac_check_lib_save_LIBS
19772 fi
19773 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19774 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19775 if test $ac_cv_lib_com_err_com_err = yes; then
19776 cat >>confdefs.h <<_ACEOF
19777 #define HAVE_LIBCOM_ERR 1
19778 _ACEOF
19779
19780 LIBS="-lcom_err $LIBS"
19781
19782 fi
19783
19784
19785 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19786 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19787 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19788 echo $ECHO_N "(cached) $ECHO_C" >&6
19789 else
19790 ac_check_lib_save_LIBS=$LIBS
19791 LIBS="-lk5crypto $LIBS"
19792 cat >conftest.$ac_ext <<_ACEOF
19793 /* confdefs.h. */
19794 _ACEOF
19795 cat confdefs.h >>conftest.$ac_ext
19796 cat >>conftest.$ac_ext <<_ACEOF
19797 /* end confdefs.h. */
19798
19799 /* Override any GCC internal prototype to avoid an error.
19800 Use char because int might match the return type of a GCC
19801 builtin and then its argument prototype would still apply. */
19802 #ifdef __cplusplus
19803 extern "C"
19804 #endif
19805 char mit_des_cbc_encrypt ();
19806 int
19807 main ()
19808 {
19809 return mit_des_cbc_encrypt ();
19810 ;
19811 return 0;
19812 }
19813 _ACEOF
19814 rm -f conftest.$ac_objext conftest$ac_exeext
19815 if { (ac_try="$ac_link"
19816 case "(($ac_try" in
19817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818 *) ac_try_echo=$ac_try;;
19819 esac
19820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19821 (eval "$ac_link") 2>conftest.er1
19822 ac_status=$?
19823 grep -v '^ *+' conftest.er1 >conftest.err
19824 rm -f conftest.er1
19825 cat conftest.err >&5
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); } && {
19828 test -z "$ac_c_werror_flag" ||
19829 test ! -s conftest.err
19830 } && test -s conftest$ac_exeext &&
19831 $as_test_x conftest$ac_exeext; then
19832 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19833 else
19834 echo "$as_me: failed program was:" >&5
19835 sed 's/^/| /' conftest.$ac_ext >&5
19836
19837 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19838 fi
19839
19840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19841 conftest$ac_exeext conftest.$ac_ext
19842 LIBS=$ac_check_lib_save_LIBS
19843 fi
19844 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19845 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19846 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19847 cat >>confdefs.h <<_ACEOF
19848 #define HAVE_LIBK5CRYPTO 1
19849 _ACEOF
19850
19851 LIBS="-lk5crypto $LIBS"
19852
19853 fi
19854
19855
19856 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19857 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19858 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19859 echo $ECHO_N "(cached) $ECHO_C" >&6
19860 else
19861 ac_check_lib_save_LIBS=$LIBS
19862 LIBS="-lcrypto $LIBS"
19863 cat >conftest.$ac_ext <<_ACEOF
19864 /* confdefs.h. */
19865 _ACEOF
19866 cat confdefs.h >>conftest.$ac_ext
19867 cat >>conftest.$ac_ext <<_ACEOF
19868 /* end confdefs.h. */
19869
19870 /* Override any GCC internal prototype to avoid an error.
19871 Use char because int might match the return type of a GCC
19872 builtin and then its argument prototype would still apply. */
19873 #ifdef __cplusplus
19874 extern "C"
19875 #endif
19876 char mit_des_cbc_encrypt ();
19877 int
19878 main ()
19879 {
19880 return mit_des_cbc_encrypt ();
19881 ;
19882 return 0;
19883 }
19884 _ACEOF
19885 rm -f conftest.$ac_objext conftest$ac_exeext
19886 if { (ac_try="$ac_link"
19887 case "(($ac_try" in
19888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19889 *) ac_try_echo=$ac_try;;
19890 esac
19891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19892 (eval "$ac_link") 2>conftest.er1
19893 ac_status=$?
19894 grep -v '^ *+' conftest.er1 >conftest.err
19895 rm -f conftest.er1
19896 cat conftest.err >&5
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); } && {
19899 test -z "$ac_c_werror_flag" ||
19900 test ! -s conftest.err
19901 } && test -s conftest$ac_exeext &&
19902 $as_test_x conftest$ac_exeext; then
19903 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19904 else
19905 echo "$as_me: failed program was:" >&5
19906 sed 's/^/| /' conftest.$ac_ext >&5
19907
19908 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19909 fi
19910
19911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19912 conftest$ac_exeext conftest.$ac_ext
19913 LIBS=$ac_check_lib_save_LIBS
19914 fi
19915 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19916 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19917 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19918 cat >>confdefs.h <<_ACEOF
19919 #define HAVE_LIBCRYPTO 1
19920 _ACEOF
19921
19922 LIBS="-lcrypto $LIBS"
19923
19924 fi
19925
19926
19927 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19928 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19929 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19930 echo $ECHO_N "(cached) $ECHO_C" >&6
19931 else
19932 ac_check_lib_save_LIBS=$LIBS
19933 LIBS="-lkrb5 $LIBS"
19934 cat >conftest.$ac_ext <<_ACEOF
19935 /* confdefs.h. */
19936 _ACEOF
19937 cat confdefs.h >>conftest.$ac_ext
19938 cat >>conftest.$ac_ext <<_ACEOF
19939 /* end confdefs.h. */
19940
19941 /* Override any GCC internal prototype to avoid an error.
19942 Use char because int might match the return type of a GCC
19943 builtin and then its argument prototype would still apply. */
19944 #ifdef __cplusplus
19945 extern "C"
19946 #endif
19947 char krb5_init_context ();
19948 int
19949 main ()
19950 {
19951 return krb5_init_context ();
19952 ;
19953 return 0;
19954 }
19955 _ACEOF
19956 rm -f conftest.$ac_objext conftest$ac_exeext
19957 if { (ac_try="$ac_link"
19958 case "(($ac_try" in
19959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19960 *) ac_try_echo=$ac_try;;
19961 esac
19962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19963 (eval "$ac_link") 2>conftest.er1
19964 ac_status=$?
19965 grep -v '^ *+' conftest.er1 >conftest.err
19966 rm -f conftest.er1
19967 cat conftest.err >&5
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); } && {
19970 test -z "$ac_c_werror_flag" ||
19971 test ! -s conftest.err
19972 } && test -s conftest$ac_exeext &&
19973 $as_test_x conftest$ac_exeext; then
19974 ac_cv_lib_krb5_krb5_init_context=yes
19975 else
19976 echo "$as_me: failed program was:" >&5
19977 sed 's/^/| /' conftest.$ac_ext >&5
19978
19979 ac_cv_lib_krb5_krb5_init_context=no
19980 fi
19981
19982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19983 conftest$ac_exeext conftest.$ac_ext
19984 LIBS=$ac_check_lib_save_LIBS
19985 fi
19986 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19987 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19988 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19989 cat >>confdefs.h <<_ACEOF
19990 #define HAVE_LIBKRB5 1
19991 _ACEOF
19992
19993 LIBS="-lkrb5 $LIBS"
19994
19995 fi
19996
19997 if test "${with_kerberos5+set}" != set; then
19998
19999 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20000 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20001 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20002 echo $ECHO_N "(cached) $ECHO_C" >&6
20003 else
20004 ac_check_lib_save_LIBS=$LIBS
20005 LIBS="-ldes425 $LIBS"
20006 cat >conftest.$ac_ext <<_ACEOF
20007 /* confdefs.h. */
20008 _ACEOF
20009 cat confdefs.h >>conftest.$ac_ext
20010 cat >>conftest.$ac_ext <<_ACEOF
20011 /* end confdefs.h. */
20012
20013 /* Override any GCC internal prototype to avoid an error.
20014 Use char because int might match the return type of a GCC
20015 builtin and then its argument prototype would still apply. */
20016 #ifdef __cplusplus
20017 extern "C"
20018 #endif
20019 char des_cbc_encrypt ();
20020 int
20021 main ()
20022 {
20023 return des_cbc_encrypt ();
20024 ;
20025 return 0;
20026 }
20027 _ACEOF
20028 rm -f conftest.$ac_objext conftest$ac_exeext
20029 if { (ac_try="$ac_link"
20030 case "(($ac_try" in
20031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20032 *) ac_try_echo=$ac_try;;
20033 esac
20034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20035 (eval "$ac_link") 2>conftest.er1
20036 ac_status=$?
20037 grep -v '^ *+' conftest.er1 >conftest.err
20038 rm -f conftest.er1
20039 cat conftest.err >&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); } && {
20042 test -z "$ac_c_werror_flag" ||
20043 test ! -s conftest.err
20044 } && test -s conftest$ac_exeext &&
20045 $as_test_x conftest$ac_exeext; then
20046 ac_cv_lib_des425_des_cbc_encrypt=yes
20047 else
20048 echo "$as_me: failed program was:" >&5
20049 sed 's/^/| /' conftest.$ac_ext >&5
20050
20051 ac_cv_lib_des425_des_cbc_encrypt=no
20052 fi
20053
20054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20055 conftest$ac_exeext conftest.$ac_ext
20056 LIBS=$ac_check_lib_save_LIBS
20057 fi
20058 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20059 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20060 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20061 cat >>confdefs.h <<_ACEOF
20062 #define HAVE_LIBDES425 1
20063 _ACEOF
20064
20065 LIBS="-ldes425 $LIBS"
20066
20067 else
20068
20069 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20070 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20071 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20072 echo $ECHO_N "(cached) $ECHO_C" >&6
20073 else
20074 ac_check_lib_save_LIBS=$LIBS
20075 LIBS="-ldes $LIBS"
20076 cat >conftest.$ac_ext <<_ACEOF
20077 /* confdefs.h. */
20078 _ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h. */
20082
20083 /* Override any GCC internal prototype to avoid an error.
20084 Use char because int might match the return type of a GCC
20085 builtin and then its argument prototype would still apply. */
20086 #ifdef __cplusplus
20087 extern "C"
20088 #endif
20089 char des_cbc_encrypt ();
20090 int
20091 main ()
20092 {
20093 return des_cbc_encrypt ();
20094 ;
20095 return 0;
20096 }
20097 _ACEOF
20098 rm -f conftest.$ac_objext conftest$ac_exeext
20099 if { (ac_try="$ac_link"
20100 case "(($ac_try" in
20101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20102 *) ac_try_echo=$ac_try;;
20103 esac
20104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20105 (eval "$ac_link") 2>conftest.er1
20106 ac_status=$?
20107 grep -v '^ *+' conftest.er1 >conftest.err
20108 rm -f conftest.er1
20109 cat conftest.err >&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } && {
20112 test -z "$ac_c_werror_flag" ||
20113 test ! -s conftest.err
20114 } && test -s conftest$ac_exeext &&
20115 $as_test_x conftest$ac_exeext; then
20116 ac_cv_lib_des_des_cbc_encrypt=yes
20117 else
20118 echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20120
20121 ac_cv_lib_des_des_cbc_encrypt=no
20122 fi
20123
20124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20125 conftest$ac_exeext conftest.$ac_ext
20126 LIBS=$ac_check_lib_save_LIBS
20127 fi
20128 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20129 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20130 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20131 cat >>confdefs.h <<_ACEOF
20132 #define HAVE_LIBDES 1
20133 _ACEOF
20134
20135 LIBS="-ldes $LIBS"
20136
20137 fi
20138
20139 fi
20140
20141
20142 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20143 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20144 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20145 echo $ECHO_N "(cached) $ECHO_C" >&6
20146 else
20147 ac_check_lib_save_LIBS=$LIBS
20148 LIBS="-lkrb4 $LIBS"
20149 cat >conftest.$ac_ext <<_ACEOF
20150 /* confdefs.h. */
20151 _ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h. */
20155
20156 /* Override any GCC internal prototype to avoid an error.
20157 Use char because int might match the return type of a GCC
20158 builtin and then its argument prototype would still apply. */
20159 #ifdef __cplusplus
20160 extern "C"
20161 #endif
20162 char krb_get_cred ();
20163 int
20164 main ()
20165 {
20166 return krb_get_cred ();
20167 ;
20168 return 0;
20169 }
20170 _ACEOF
20171 rm -f conftest.$ac_objext conftest$ac_exeext
20172 if { (ac_try="$ac_link"
20173 case "(($ac_try" in
20174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20175 *) ac_try_echo=$ac_try;;
20176 esac
20177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20178 (eval "$ac_link") 2>conftest.er1
20179 ac_status=$?
20180 grep -v '^ *+' conftest.er1 >conftest.err
20181 rm -f conftest.er1
20182 cat conftest.err >&5
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); } && {
20185 test -z "$ac_c_werror_flag" ||
20186 test ! -s conftest.err
20187 } && test -s conftest$ac_exeext &&
20188 $as_test_x conftest$ac_exeext; then
20189 ac_cv_lib_krb4_krb_get_cred=yes
20190 else
20191 echo "$as_me: failed program was:" >&5
20192 sed 's/^/| /' conftest.$ac_ext >&5
20193
20194 ac_cv_lib_krb4_krb_get_cred=no
20195 fi
20196
20197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20198 conftest$ac_exeext conftest.$ac_ext
20199 LIBS=$ac_check_lib_save_LIBS
20200 fi
20201 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20202 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20203 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20204 cat >>confdefs.h <<_ACEOF
20205 #define HAVE_LIBKRB4 1
20206 _ACEOF
20207
20208 LIBS="-lkrb4 $LIBS"
20209
20210 else
20211
20212 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20213 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20214 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20215 echo $ECHO_N "(cached) $ECHO_C" >&6
20216 else
20217 ac_check_lib_save_LIBS=$LIBS
20218 LIBS="-lkrb $LIBS"
20219 cat >conftest.$ac_ext <<_ACEOF
20220 /* confdefs.h. */
20221 _ACEOF
20222 cat confdefs.h >>conftest.$ac_ext
20223 cat >>conftest.$ac_ext <<_ACEOF
20224 /* end confdefs.h. */
20225
20226 /* Override any GCC internal prototype to avoid an error.
20227 Use char because int might match the return type of a GCC
20228 builtin and then its argument prototype would still apply. */
20229 #ifdef __cplusplus
20230 extern "C"
20231 #endif
20232 char krb_get_cred ();
20233 int
20234 main ()
20235 {
20236 return krb_get_cred ();
20237 ;
20238 return 0;
20239 }
20240 _ACEOF
20241 rm -f conftest.$ac_objext conftest$ac_exeext
20242 if { (ac_try="$ac_link"
20243 case "(($ac_try" in
20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20246 esac
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_link") 2>conftest.er1
20249 ac_status=$?
20250 grep -v '^ *+' conftest.er1 >conftest.err
20251 rm -f conftest.er1
20252 cat conftest.err >&5
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } && {
20255 test -z "$ac_c_werror_flag" ||
20256 test ! -s conftest.err
20257 } && test -s conftest$ac_exeext &&
20258 $as_test_x conftest$ac_exeext; then
20259 ac_cv_lib_krb_krb_get_cred=yes
20260 else
20261 echo "$as_me: failed program was:" >&5
20262 sed 's/^/| /' conftest.$ac_ext >&5
20263
20264 ac_cv_lib_krb_krb_get_cred=no
20265 fi
20266
20267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20268 conftest$ac_exeext conftest.$ac_ext
20269 LIBS=$ac_check_lib_save_LIBS
20270 fi
20271 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20272 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20273 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20274 cat >>confdefs.h <<_ACEOF
20275 #define HAVE_LIBKRB 1
20276 _ACEOF
20277
20278 LIBS="-lkrb $LIBS"
20279
20280 fi
20281
20282 fi
20283
20284 fi
20285
20286 if test "${with_kerberos5+set}" = set; then
20287
20288 for ac_header in krb5.h
20289 do
20290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20292 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20295 echo $ECHO_N "(cached) $ECHO_C" >&6
20296 fi
20297 ac_res=`eval echo '${'$as_ac_Header'}'`
20298 { echo "$as_me:$LINENO: result: $ac_res" >&5
20299 echo "${ECHO_T}$ac_res" >&6; }
20300 else
20301 # Is the header compilable?
20302 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20304 cat >conftest.$ac_ext <<_ACEOF
20305 /* confdefs.h. */
20306 _ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h. */
20310 $ac_includes_default
20311 #include <$ac_header>
20312 _ACEOF
20313 rm -f conftest.$ac_objext
20314 if { (ac_try="$ac_compile"
20315 case "(($ac_try" in
20316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20317 *) ac_try_echo=$ac_try;;
20318 esac
20319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20320 (eval "$ac_compile") 2>conftest.er1
20321 ac_status=$?
20322 grep -v '^ *+' conftest.er1 >conftest.err
20323 rm -f conftest.er1
20324 cat conftest.err >&5
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); } && {
20327 test -z "$ac_c_werror_flag" ||
20328 test ! -s conftest.err
20329 } && test -s conftest.$ac_objext; then
20330 ac_header_compiler=yes
20331 else
20332 echo "$as_me: failed program was:" >&5
20333 sed 's/^/| /' conftest.$ac_ext >&5
20334
20335 ac_header_compiler=no
20336 fi
20337
20338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20339 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20340 echo "${ECHO_T}$ac_header_compiler" >&6; }
20341
20342 # Is the header present?
20343 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20345 cat >conftest.$ac_ext <<_ACEOF
20346 /* confdefs.h. */
20347 _ACEOF
20348 cat confdefs.h >>conftest.$ac_ext
20349 cat >>conftest.$ac_ext <<_ACEOF
20350 /* end confdefs.h. */
20351 #include <$ac_header>
20352 _ACEOF
20353 if { (ac_try="$ac_cpp conftest.$ac_ext"
20354 case "(($ac_try" in
20355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356 *) ac_try_echo=$ac_try;;
20357 esac
20358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20360 ac_status=$?
20361 grep -v '^ *+' conftest.er1 >conftest.err
20362 rm -f conftest.er1
20363 cat conftest.err >&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } >/dev/null && {
20366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20367 test ! -s conftest.err
20368 }; then
20369 ac_header_preproc=yes
20370 else
20371 echo "$as_me: failed program was:" >&5
20372 sed 's/^/| /' conftest.$ac_ext >&5
20373
20374 ac_header_preproc=no
20375 fi
20376
20377 rm -f conftest.err conftest.$ac_ext
20378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20379 echo "${ECHO_T}$ac_header_preproc" >&6; }
20380
20381 # So? What about this header?
20382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20383 yes:no: )
20384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20387 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20388 ac_header_preproc=yes
20389 ;;
20390 no:yes:* )
20391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20394 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20395 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20396 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20397 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20398 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20401 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20402 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20403
20404 ;;
20405 esac
20406 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20409 echo $ECHO_N "(cached) $ECHO_C" >&6
20410 else
20411 eval "$as_ac_Header=\$ac_header_preproc"
20412 fi
20413 ac_res=`eval echo '${'$as_ac_Header'}'`
20414 { echo "$as_me:$LINENO: result: $ac_res" >&5
20415 echo "${ECHO_T}$ac_res" >&6; }
20416
20417 fi
20418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20419 cat >>confdefs.h <<_ACEOF
20420 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20421 _ACEOF
20422
20423 fi
20424
20425 done
20426
20427 else
20428
20429 for ac_header in des.h
20430 do
20431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20436 echo $ECHO_N "(cached) $ECHO_C" >&6
20437 fi
20438 ac_res=`eval echo '${'$as_ac_Header'}'`
20439 { echo "$as_me:$LINENO: result: $ac_res" >&5
20440 echo "${ECHO_T}$ac_res" >&6; }
20441 else
20442 # Is the header compilable?
20443 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20445 cat >conftest.$ac_ext <<_ACEOF
20446 /* confdefs.h. */
20447 _ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20451 $ac_includes_default
20452 #include <$ac_header>
20453 _ACEOF
20454 rm -f conftest.$ac_objext
20455 if { (ac_try="$ac_compile"
20456 case "(($ac_try" in
20457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20458 *) ac_try_echo=$ac_try;;
20459 esac
20460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20461 (eval "$ac_compile") 2>conftest.er1
20462 ac_status=$?
20463 grep -v '^ *+' conftest.er1 >conftest.err
20464 rm -f conftest.er1
20465 cat conftest.err >&5
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); } && {
20468 test -z "$ac_c_werror_flag" ||
20469 test ! -s conftest.err
20470 } && test -s conftest.$ac_objext; then
20471 ac_header_compiler=yes
20472 else
20473 echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20475
20476 ac_header_compiler=no
20477 fi
20478
20479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20481 echo "${ECHO_T}$ac_header_compiler" >&6; }
20482
20483 # Is the header present?
20484 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20486 cat >conftest.$ac_ext <<_ACEOF
20487 /* confdefs.h. */
20488 _ACEOF
20489 cat confdefs.h >>conftest.$ac_ext
20490 cat >>conftest.$ac_ext <<_ACEOF
20491 /* end confdefs.h. */
20492 #include <$ac_header>
20493 _ACEOF
20494 if { (ac_try="$ac_cpp conftest.$ac_ext"
20495 case "(($ac_try" in
20496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20497 *) ac_try_echo=$ac_try;;
20498 esac
20499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20501 ac_status=$?
20502 grep -v '^ *+' conftest.er1 >conftest.err
20503 rm -f conftest.er1
20504 cat conftest.err >&5
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); } >/dev/null && {
20507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20508 test ! -s conftest.err
20509 }; then
20510 ac_header_preproc=yes
20511 else
20512 echo "$as_me: failed program was:" >&5
20513 sed 's/^/| /' conftest.$ac_ext >&5
20514
20515 ac_header_preproc=no
20516 fi
20517
20518 rm -f conftest.err conftest.$ac_ext
20519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20520 echo "${ECHO_T}$ac_header_preproc" >&6; }
20521
20522 # So? What about this header?
20523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20524 yes:no: )
20525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20529 ac_header_preproc=yes
20530 ;;
20531 no:yes:* )
20532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20539 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20544
20545 ;;
20546 esac
20547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20550 echo $ECHO_N "(cached) $ECHO_C" >&6
20551 else
20552 eval "$as_ac_Header=\$ac_header_preproc"
20553 fi
20554 ac_res=`eval echo '${'$as_ac_Header'}'`
20555 { echo "$as_me:$LINENO: result: $ac_res" >&5
20556 echo "${ECHO_T}$ac_res" >&6; }
20557
20558 fi
20559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20560 cat >>confdefs.h <<_ACEOF
20561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20562 _ACEOF
20563
20564 else
20565
20566 for ac_header in kerberosIV/des.h
20567 do
20568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20573 echo $ECHO_N "(cached) $ECHO_C" >&6
20574 fi
20575 ac_res=`eval echo '${'$as_ac_Header'}'`
20576 { echo "$as_me:$LINENO: result: $ac_res" >&5
20577 echo "${ECHO_T}$ac_res" >&6; }
20578 else
20579 # Is the header compilable?
20580 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20582 cat >conftest.$ac_ext <<_ACEOF
20583 /* confdefs.h. */
20584 _ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20588 $ac_includes_default
20589 #include <$ac_header>
20590 _ACEOF
20591 rm -f conftest.$ac_objext
20592 if { (ac_try="$ac_compile"
20593 case "(($ac_try" in
20594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595 *) ac_try_echo=$ac_try;;
20596 esac
20597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20598 (eval "$ac_compile") 2>conftest.er1
20599 ac_status=$?
20600 grep -v '^ *+' conftest.er1 >conftest.err
20601 rm -f conftest.er1
20602 cat conftest.err >&5
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); } && {
20605 test -z "$ac_c_werror_flag" ||
20606 test ! -s conftest.err
20607 } && test -s conftest.$ac_objext; then
20608 ac_header_compiler=yes
20609 else
20610 echo "$as_me: failed program was:" >&5
20611 sed 's/^/| /' conftest.$ac_ext >&5
20612
20613 ac_header_compiler=no
20614 fi
20615
20616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20617 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20618 echo "${ECHO_T}$ac_header_compiler" >&6; }
20619
20620 # Is the header present?
20621 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20623 cat >conftest.$ac_ext <<_ACEOF
20624 /* confdefs.h. */
20625 _ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h. */
20629 #include <$ac_header>
20630 _ACEOF
20631 if { (ac_try="$ac_cpp conftest.$ac_ext"
20632 case "(($ac_try" in
20633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20634 *) ac_try_echo=$ac_try;;
20635 esac
20636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20638 ac_status=$?
20639 grep -v '^ *+' conftest.er1 >conftest.err
20640 rm -f conftest.er1
20641 cat conftest.err >&5
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); } >/dev/null && {
20644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20645 test ! -s conftest.err
20646 }; then
20647 ac_header_preproc=yes
20648 else
20649 echo "$as_me: failed program was:" >&5
20650 sed 's/^/| /' conftest.$ac_ext >&5
20651
20652 ac_header_preproc=no
20653 fi
20654
20655 rm -f conftest.err conftest.$ac_ext
20656 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20657 echo "${ECHO_T}$ac_header_preproc" >&6; }
20658
20659 # So? What about this header?
20660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20661 yes:no: )
20662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20663 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20665 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20666 ac_header_preproc=yes
20667 ;;
20668 no:yes:* )
20669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20672 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20673 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20674 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20675 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20676 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20678 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20679 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20680 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20681
20682 ;;
20683 esac
20684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20687 echo $ECHO_N "(cached) $ECHO_C" >&6
20688 else
20689 eval "$as_ac_Header=\$ac_header_preproc"
20690 fi
20691 ac_res=`eval echo '${'$as_ac_Header'}'`
20692 { echo "$as_me:$LINENO: result: $ac_res" >&5
20693 echo "${ECHO_T}$ac_res" >&6; }
20694
20695 fi
20696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20697 cat >>confdefs.h <<_ACEOF
20698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20699 _ACEOF
20700
20701 else
20702
20703 for ac_header in kerberos/des.h
20704 do
20705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20707 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20710 echo $ECHO_N "(cached) $ECHO_C" >&6
20711 fi
20712 ac_res=`eval echo '${'$as_ac_Header'}'`
20713 { echo "$as_me:$LINENO: result: $ac_res" >&5
20714 echo "${ECHO_T}$ac_res" >&6; }
20715 else
20716 # Is the header compilable?
20717 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20719 cat >conftest.$ac_ext <<_ACEOF
20720 /* confdefs.h. */
20721 _ACEOF
20722 cat confdefs.h >>conftest.$ac_ext
20723 cat >>conftest.$ac_ext <<_ACEOF
20724 /* end confdefs.h. */
20725 $ac_includes_default
20726 #include <$ac_header>
20727 _ACEOF
20728 rm -f conftest.$ac_objext
20729 if { (ac_try="$ac_compile"
20730 case "(($ac_try" in
20731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732 *) ac_try_echo=$ac_try;;
20733 esac
20734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20735 (eval "$ac_compile") 2>conftest.er1
20736 ac_status=$?
20737 grep -v '^ *+' conftest.er1 >conftest.err
20738 rm -f conftest.er1
20739 cat conftest.err >&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); } && {
20742 test -z "$ac_c_werror_flag" ||
20743 test ! -s conftest.err
20744 } && test -s conftest.$ac_objext; then
20745 ac_header_compiler=yes
20746 else
20747 echo "$as_me: failed program was:" >&5
20748 sed 's/^/| /' conftest.$ac_ext >&5
20749
20750 ac_header_compiler=no
20751 fi
20752
20753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20755 echo "${ECHO_T}$ac_header_compiler" >&6; }
20756
20757 # Is the header present?
20758 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20760 cat >conftest.$ac_ext <<_ACEOF
20761 /* confdefs.h. */
20762 _ACEOF
20763 cat confdefs.h >>conftest.$ac_ext
20764 cat >>conftest.$ac_ext <<_ACEOF
20765 /* end confdefs.h. */
20766 #include <$ac_header>
20767 _ACEOF
20768 if { (ac_try="$ac_cpp conftest.$ac_ext"
20769 case "(($ac_try" in
20770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20771 *) ac_try_echo=$ac_try;;
20772 esac
20773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20775 ac_status=$?
20776 grep -v '^ *+' conftest.er1 >conftest.err
20777 rm -f conftest.er1
20778 cat conftest.err >&5
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); } >/dev/null && {
20781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20782 test ! -s conftest.err
20783 }; then
20784 ac_header_preproc=yes
20785 else
20786 echo "$as_me: failed program was:" >&5
20787 sed 's/^/| /' conftest.$ac_ext >&5
20788
20789 ac_header_preproc=no
20790 fi
20791
20792 rm -f conftest.err conftest.$ac_ext
20793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20794 echo "${ECHO_T}$ac_header_preproc" >&6; }
20795
20796 # So? What about this header?
20797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20798 yes:no: )
20799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20803 ac_header_preproc=yes
20804 ;;
20805 no:yes:* )
20806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20818
20819 ;;
20820 esac
20821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20824 echo $ECHO_N "(cached) $ECHO_C" >&6
20825 else
20826 eval "$as_ac_Header=\$ac_header_preproc"
20827 fi
20828 ac_res=`eval echo '${'$as_ac_Header'}'`
20829 { echo "$as_me:$LINENO: result: $ac_res" >&5
20830 echo "${ECHO_T}$ac_res" >&6; }
20831
20832 fi
20833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20834 cat >>confdefs.h <<_ACEOF
20835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20836 _ACEOF
20837
20838 fi
20839
20840 done
20841
20842 fi
20843
20844 done
20845
20846 fi
20847
20848 done
20849
20850
20851 for ac_header in krb.h
20852 do
20853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20858 echo $ECHO_N "(cached) $ECHO_C" >&6
20859 fi
20860 ac_res=`eval echo '${'$as_ac_Header'}'`
20861 { echo "$as_me:$LINENO: result: $ac_res" >&5
20862 echo "${ECHO_T}$ac_res" >&6; }
20863 else
20864 # Is the header compilable?
20865 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20867 cat >conftest.$ac_ext <<_ACEOF
20868 /* confdefs.h. */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 $ac_includes_default
20874 #include <$ac_header>
20875 _ACEOF
20876 rm -f conftest.$ac_objext
20877 if { (ac_try="$ac_compile"
20878 case "(($ac_try" in
20879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20880 *) ac_try_echo=$ac_try;;
20881 esac
20882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20883 (eval "$ac_compile") 2>conftest.er1
20884 ac_status=$?
20885 grep -v '^ *+' conftest.er1 >conftest.err
20886 rm -f conftest.er1
20887 cat conftest.err >&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); } && {
20890 test -z "$ac_c_werror_flag" ||
20891 test ! -s conftest.err
20892 } && test -s conftest.$ac_objext; then
20893 ac_header_compiler=yes
20894 else
20895 echo "$as_me: failed program was:" >&5
20896 sed 's/^/| /' conftest.$ac_ext >&5
20897
20898 ac_header_compiler=no
20899 fi
20900
20901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20902 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20903 echo "${ECHO_T}$ac_header_compiler" >&6; }
20904
20905 # Is the header present?
20906 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20908 cat >conftest.$ac_ext <<_ACEOF
20909 /* confdefs.h. */
20910 _ACEOF
20911 cat confdefs.h >>conftest.$ac_ext
20912 cat >>conftest.$ac_ext <<_ACEOF
20913 /* end confdefs.h. */
20914 #include <$ac_header>
20915 _ACEOF
20916 if { (ac_try="$ac_cpp conftest.$ac_ext"
20917 case "(($ac_try" in
20918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919 *) ac_try_echo=$ac_try;;
20920 esac
20921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20923 ac_status=$?
20924 grep -v '^ *+' conftest.er1 >conftest.err
20925 rm -f conftest.er1
20926 cat conftest.err >&5
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); } >/dev/null && {
20929 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20930 test ! -s conftest.err
20931 }; then
20932 ac_header_preproc=yes
20933 else
20934 echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20936
20937 ac_header_preproc=no
20938 fi
20939
20940 rm -f conftest.err conftest.$ac_ext
20941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20942 echo "${ECHO_T}$ac_header_preproc" >&6; }
20943
20944 # So? What about this header?
20945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20946 yes:no: )
20947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20951 ac_header_preproc=yes
20952 ;;
20953 no:yes:* )
20954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20961 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20966
20967 ;;
20968 esac
20969 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20972 echo $ECHO_N "(cached) $ECHO_C" >&6
20973 else
20974 eval "$as_ac_Header=\$ac_header_preproc"
20975 fi
20976 ac_res=`eval echo '${'$as_ac_Header'}'`
20977 { echo "$as_me:$LINENO: result: $ac_res" >&5
20978 echo "${ECHO_T}$ac_res" >&6; }
20979
20980 fi
20981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20982 cat >>confdefs.h <<_ACEOF
20983 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20984 _ACEOF
20985
20986 else
20987
20988 for ac_header in kerberosIV/krb.h
20989 do
20990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20995 echo $ECHO_N "(cached) $ECHO_C" >&6
20996 fi
20997 ac_res=`eval echo '${'$as_ac_Header'}'`
20998 { echo "$as_me:$LINENO: result: $ac_res" >&5
20999 echo "${ECHO_T}$ac_res" >&6; }
21000 else
21001 # Is the header compilable?
21002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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. */
21010 $ac_includes_default
21011 #include <$ac_header>
21012 _ACEOF
21013 rm -f conftest.$ac_objext
21014 if { (ac_try="$ac_compile"
21015 case "(($ac_try" in
21016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21017 *) ac_try_echo=$ac_try;;
21018 esac
21019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21020 (eval "$ac_compile") 2>conftest.er1
21021 ac_status=$?
21022 grep -v '^ *+' conftest.er1 >conftest.err
21023 rm -f conftest.er1
21024 cat conftest.err >&5
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); } && {
21027 test -z "$ac_c_werror_flag" ||
21028 test ! -s conftest.err
21029 } && test -s conftest.$ac_objext; then
21030 ac_header_compiler=yes
21031 else
21032 echo "$as_me: failed program was:" >&5
21033 sed 's/^/| /' conftest.$ac_ext >&5
21034
21035 ac_header_compiler=no
21036 fi
21037
21038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21039 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21040 echo "${ECHO_T}$ac_header_compiler" >&6; }
21041
21042 # Is the header present?
21043 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21045 cat >conftest.$ac_ext <<_ACEOF
21046 /* confdefs.h. */
21047 _ACEOF
21048 cat confdefs.h >>conftest.$ac_ext
21049 cat >>conftest.$ac_ext <<_ACEOF
21050 /* end confdefs.h. */
21051 #include <$ac_header>
21052 _ACEOF
21053 if { (ac_try="$ac_cpp conftest.$ac_ext"
21054 case "(($ac_try" in
21055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056 *) ac_try_echo=$ac_try;;
21057 esac
21058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21060 ac_status=$?
21061 grep -v '^ *+' conftest.er1 >conftest.err
21062 rm -f conftest.er1
21063 cat conftest.err >&5
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); } >/dev/null && {
21066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21067 test ! -s conftest.err
21068 }; then
21069 ac_header_preproc=yes
21070 else
21071 echo "$as_me: failed program was:" >&5
21072 sed 's/^/| /' conftest.$ac_ext >&5
21073
21074 ac_header_preproc=no
21075 fi
21076
21077 rm -f conftest.err conftest.$ac_ext
21078 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21079 echo "${ECHO_T}$ac_header_preproc" >&6; }
21080
21081 # So? What about this header?
21082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21083 yes:no: )
21084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21088 ac_header_preproc=yes
21089 ;;
21090 no:yes:* )
21091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21094 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21098 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21103
21104 ;;
21105 esac
21106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21109 echo $ECHO_N "(cached) $ECHO_C" >&6
21110 else
21111 eval "$as_ac_Header=\$ac_header_preproc"
21112 fi
21113 ac_res=`eval echo '${'$as_ac_Header'}'`
21114 { echo "$as_me:$LINENO: result: $ac_res" >&5
21115 echo "${ECHO_T}$ac_res" >&6; }
21116
21117 fi
21118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21119 cat >>confdefs.h <<_ACEOF
21120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21121 _ACEOF
21122
21123 else
21124
21125 for ac_header in kerberos/krb.h
21126 do
21127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21132 echo $ECHO_N "(cached) $ECHO_C" >&6
21133 fi
21134 ac_res=`eval echo '${'$as_ac_Header'}'`
21135 { echo "$as_me:$LINENO: result: $ac_res" >&5
21136 echo "${ECHO_T}$ac_res" >&6; }
21137 else
21138 # Is the header compilable?
21139 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21141 cat >conftest.$ac_ext <<_ACEOF
21142 /* confdefs.h. */
21143 _ACEOF
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h. */
21147 $ac_includes_default
21148 #include <$ac_header>
21149 _ACEOF
21150 rm -f conftest.$ac_objext
21151 if { (ac_try="$ac_compile"
21152 case "(($ac_try" in
21153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154 *) ac_try_echo=$ac_try;;
21155 esac
21156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21157 (eval "$ac_compile") 2>conftest.er1
21158 ac_status=$?
21159 grep -v '^ *+' conftest.er1 >conftest.err
21160 rm -f conftest.er1
21161 cat conftest.err >&5
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); } && {
21164 test -z "$ac_c_werror_flag" ||
21165 test ! -s conftest.err
21166 } && test -s conftest.$ac_objext; then
21167 ac_header_compiler=yes
21168 else
21169 echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21171
21172 ac_header_compiler=no
21173 fi
21174
21175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21176 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21177 echo "${ECHO_T}$ac_header_compiler" >&6; }
21178
21179 # Is the header present?
21180 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21182 cat >conftest.$ac_ext <<_ACEOF
21183 /* confdefs.h. */
21184 _ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h. */
21188 #include <$ac_header>
21189 _ACEOF
21190 if { (ac_try="$ac_cpp conftest.$ac_ext"
21191 case "(($ac_try" in
21192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21193 *) ac_try_echo=$ac_try;;
21194 esac
21195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21197 ac_status=$?
21198 grep -v '^ *+' conftest.er1 >conftest.err
21199 rm -f conftest.er1
21200 cat conftest.err >&5
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); } >/dev/null && {
21203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21204 test ! -s conftest.err
21205 }; then
21206 ac_header_preproc=yes
21207 else
21208 echo "$as_me: failed program was:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21210
21211 ac_header_preproc=no
21212 fi
21213
21214 rm -f conftest.err conftest.$ac_ext
21215 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21216 echo "${ECHO_T}$ac_header_preproc" >&6; }
21217
21218 # So? What about this header?
21219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21220 yes:no: )
21221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21225 ac_header_preproc=yes
21226 ;;
21227 no:yes:* )
21228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21231 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21233 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21235 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21239 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21240
21241 ;;
21242 esac
21243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21246 echo $ECHO_N "(cached) $ECHO_C" >&6
21247 else
21248 eval "$as_ac_Header=\$ac_header_preproc"
21249 fi
21250 ac_res=`eval echo '${'$as_ac_Header'}'`
21251 { echo "$as_me:$LINENO: result: $ac_res" >&5
21252 echo "${ECHO_T}$ac_res" >&6; }
21253
21254 fi
21255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21256 cat >>confdefs.h <<_ACEOF
21257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21258 _ACEOF
21259
21260 fi
21261
21262 done
21263
21264 fi
21265
21266 done
21267
21268 fi
21269
21270 done
21271
21272 fi
21273
21274 for ac_header in com_err.h
21275 do
21276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21281 echo $ECHO_N "(cached) $ECHO_C" >&6
21282 fi
21283 ac_res=`eval echo '${'$as_ac_Header'}'`
21284 { echo "$as_me:$LINENO: result: $ac_res" >&5
21285 echo "${ECHO_T}$ac_res" >&6; }
21286 else
21287 # Is the header compilable?
21288 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21289 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21290 cat >conftest.$ac_ext <<_ACEOF
21291 /* confdefs.h. */
21292 _ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h. */
21296 $ac_includes_default
21297 #include <$ac_header>
21298 _ACEOF
21299 rm -f conftest.$ac_objext
21300 if { (ac_try="$ac_compile"
21301 case "(($ac_try" in
21302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21303 *) ac_try_echo=$ac_try;;
21304 esac
21305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21306 (eval "$ac_compile") 2>conftest.er1
21307 ac_status=$?
21308 grep -v '^ *+' conftest.er1 >conftest.err
21309 rm -f conftest.er1
21310 cat conftest.err >&5
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); } && {
21313 test -z "$ac_c_werror_flag" ||
21314 test ! -s conftest.err
21315 } && test -s conftest.$ac_objext; then
21316 ac_header_compiler=yes
21317 else
21318 echo "$as_me: failed program was:" >&5
21319 sed 's/^/| /' conftest.$ac_ext >&5
21320
21321 ac_header_compiler=no
21322 fi
21323
21324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21325 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21326 echo "${ECHO_T}$ac_header_compiler" >&6; }
21327
21328 # Is the header present?
21329 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21330 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21331 cat >conftest.$ac_ext <<_ACEOF
21332 /* confdefs.h. */
21333 _ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h. */
21337 #include <$ac_header>
21338 _ACEOF
21339 if { (ac_try="$ac_cpp conftest.$ac_ext"
21340 case "(($ac_try" in
21341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21342 *) ac_try_echo=$ac_try;;
21343 esac
21344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21346 ac_status=$?
21347 grep -v '^ *+' conftest.er1 >conftest.err
21348 rm -f conftest.er1
21349 cat conftest.err >&5
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); } >/dev/null && {
21352 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21353 test ! -s conftest.err
21354 }; then
21355 ac_header_preproc=yes
21356 else
21357 echo "$as_me: failed program was:" >&5
21358 sed 's/^/| /' conftest.$ac_ext >&5
21359
21360 ac_header_preproc=no
21361 fi
21362
21363 rm -f conftest.err conftest.$ac_ext
21364 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21365 echo "${ECHO_T}$ac_header_preproc" >&6; }
21366
21367 # So? What about this header?
21368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21369 yes:no: )
21370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21373 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21374 ac_header_preproc=yes
21375 ;;
21376 no:yes:* )
21377 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21379 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21380 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21381 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21382 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21383 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21384 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21387 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21388 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21389
21390 ;;
21391 esac
21392 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21395 echo $ECHO_N "(cached) $ECHO_C" >&6
21396 else
21397 eval "$as_ac_Header=\$ac_header_preproc"
21398 fi
21399 ac_res=`eval echo '${'$as_ac_Header'}'`
21400 { echo "$as_me:$LINENO: result: $ac_res" >&5
21401 echo "${ECHO_T}$ac_res" >&6; }
21402
21403 fi
21404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21405 cat >>confdefs.h <<_ACEOF
21406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21407 _ACEOF
21408
21409 fi
21410
21411 done
21412
21413 fi
21414
21415 # Solaris requires -lintl if you want strerror (which calls dgettext)
21416 # to return localized messages.
21417
21418 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21419 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21420 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21421 echo $ECHO_N "(cached) $ECHO_C" >&6
21422 else
21423 ac_check_lib_save_LIBS=$LIBS
21424 LIBS="-lintl $LIBS"
21425 cat >conftest.$ac_ext <<_ACEOF
21426 /* confdefs.h. */
21427 _ACEOF
21428 cat confdefs.h >>conftest.$ac_ext
21429 cat >>conftest.$ac_ext <<_ACEOF
21430 /* end confdefs.h. */
21431
21432 /* Override any GCC internal prototype to avoid an error.
21433 Use char because int might match the return type of a GCC
21434 builtin and then its argument prototype would still apply. */
21435 #ifdef __cplusplus
21436 extern "C"
21437 #endif
21438 char dgettext ();
21439 int
21440 main ()
21441 {
21442 return dgettext ();
21443 ;
21444 return 0;
21445 }
21446 _ACEOF
21447 rm -f conftest.$ac_objext conftest$ac_exeext
21448 if { (ac_try="$ac_link"
21449 case "(($ac_try" in
21450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21451 *) ac_try_echo=$ac_try;;
21452 esac
21453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21454 (eval "$ac_link") 2>conftest.er1
21455 ac_status=$?
21456 grep -v '^ *+' conftest.er1 >conftest.err
21457 rm -f conftest.er1
21458 cat conftest.err >&5
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); } && {
21461 test -z "$ac_c_werror_flag" ||
21462 test ! -s conftest.err
21463 } && test -s conftest$ac_exeext &&
21464 $as_test_x conftest$ac_exeext; then
21465 ac_cv_lib_intl_dgettext=yes
21466 else
21467 echo "$as_me: failed program was:" >&5
21468 sed 's/^/| /' conftest.$ac_ext >&5
21469
21470 ac_cv_lib_intl_dgettext=no
21471 fi
21472
21473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21474 conftest$ac_exeext conftest.$ac_ext
21475 LIBS=$ac_check_lib_save_LIBS
21476 fi
21477 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21478 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21479 if test $ac_cv_lib_intl_dgettext = yes; then
21480 cat >>confdefs.h <<_ACEOF
21481 #define HAVE_LIBINTL 1
21482 _ACEOF
21483
21484 LIBS="-lintl $LIBS"
21485
21486 fi
21487
21488
21489 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21490 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21491 if test "${emacs_cv_localtime_cache+set}" = set; then
21492 echo $ECHO_N "(cached) $ECHO_C" >&6
21493 else
21494 if test x$ac_cv_func_tzset = xyes; then
21495 if test "$cross_compiling" = yes; then
21496 # If we have tzset, assume the worst when cross-compiling.
21497 emacs_cv_localtime_cache=yes
21498 else
21499 cat >conftest.$ac_ext <<_ACEOF
21500 /* confdefs.h. */
21501 _ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h. */
21505 #include <time.h>
21506 extern char **environ;
21507 unset_TZ ()
21508 {
21509 char **from, **to;
21510 for (to = from = environ; (*to = *from); from++)
21511 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21512 to++;
21513 }
21514 char TZ_GMT0[] = "TZ=GMT0";
21515 char TZ_PST8[] = "TZ=PST8";
21516 main()
21517 {
21518 time_t now = time ((time_t *) 0);
21519 int hour_GMT0, hour_unset;
21520 if (putenv (TZ_GMT0) != 0)
21521 exit (1);
21522 hour_GMT0 = localtime (&now)->tm_hour;
21523 unset_TZ ();
21524 hour_unset = localtime (&now)->tm_hour;
21525 if (putenv (TZ_PST8) != 0)
21526 exit (1);
21527 if (localtime (&now)->tm_hour == hour_GMT0)
21528 exit (1);
21529 unset_TZ ();
21530 if (localtime (&now)->tm_hour != hour_unset)
21531 exit (1);
21532 exit (0);
21533 }
21534 _ACEOF
21535 rm -f conftest$ac_exeext
21536 if { (ac_try="$ac_link"
21537 case "(($ac_try" in
21538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539 *) ac_try_echo=$ac_try;;
21540 esac
21541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21542 (eval "$ac_link") 2>&5
21543 ac_status=$?
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21546 { (case "(($ac_try" in
21547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21548 *) ac_try_echo=$ac_try;;
21549 esac
21550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21551 (eval "$ac_try") 2>&5
21552 ac_status=$?
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); }; }; then
21555 emacs_cv_localtime_cache=no
21556 else
21557 echo "$as_me: program exited with status $ac_status" >&5
21558 echo "$as_me: failed program was:" >&5
21559 sed 's/^/| /' conftest.$ac_ext >&5
21560
21561 ( exit $ac_status )
21562 emacs_cv_localtime_cache=yes
21563 fi
21564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21565 fi
21566
21567
21568 else
21569 # If we lack tzset, report that localtime does not cache TZ,
21570 # since we can't invalidate the cache if we don't have tzset.
21571 emacs_cv_localtime_cache=no
21572 fi
21573 fi
21574 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21575 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21576 if test $emacs_cv_localtime_cache = yes; then
21577
21578 cat >>confdefs.h <<\_ACEOF
21579 #define LOCALTIME_CACHE 1
21580 _ACEOF
21581
21582 fi
21583
21584 if test "x$HAVE_TIMEVAL" = xyes; then
21585
21586 for ac_func in gettimeofday
21587 do
21588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21589 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21591 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21592 echo $ECHO_N "(cached) $ECHO_C" >&6
21593 else
21594 cat >conftest.$ac_ext <<_ACEOF
21595 /* confdefs.h. */
21596 _ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h. */
21600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21602 #define $ac_func innocuous_$ac_func
21603
21604 /* System header to define __stub macros and hopefully few prototypes,
21605 which can conflict with char $ac_func (); below.
21606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21607 <limits.h> exists even on freestanding compilers. */
21608
21609 #ifdef __STDC__
21610 # include <limits.h>
21611 #else
21612 # include <assert.h>
21613 #endif
21614
21615 #undef $ac_func
21616
21617 /* Override any GCC internal prototype to avoid an error.
21618 Use char because int might match the return type of a GCC
21619 builtin and then its argument prototype would still apply. */
21620 #ifdef __cplusplus
21621 extern "C"
21622 #endif
21623 char $ac_func ();
21624 /* The GNU C library defines this for functions which it implements
21625 to always fail with ENOSYS. Some functions are actually named
21626 something starting with __ and the normal name is an alias. */
21627 #if defined __stub_$ac_func || defined __stub___$ac_func
21628 choke me
21629 #endif
21630
21631 int
21632 main ()
21633 {
21634 return $ac_func ();
21635 ;
21636 return 0;
21637 }
21638 _ACEOF
21639 rm -f conftest.$ac_objext conftest$ac_exeext
21640 if { (ac_try="$ac_link"
21641 case "(($ac_try" in
21642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21643 *) ac_try_echo=$ac_try;;
21644 esac
21645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21646 (eval "$ac_link") 2>conftest.er1
21647 ac_status=$?
21648 grep -v '^ *+' conftest.er1 >conftest.err
21649 rm -f conftest.er1
21650 cat conftest.err >&5
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); } && {
21653 test -z "$ac_c_werror_flag" ||
21654 test ! -s conftest.err
21655 } && test -s conftest$ac_exeext &&
21656 $as_test_x conftest$ac_exeext; then
21657 eval "$as_ac_var=yes"
21658 else
21659 echo "$as_me: failed program was:" >&5
21660 sed 's/^/| /' conftest.$ac_ext >&5
21661
21662 eval "$as_ac_var=no"
21663 fi
21664
21665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21666 conftest$ac_exeext conftest.$ac_ext
21667 fi
21668 ac_res=`eval echo '${'$as_ac_var'}'`
21669 { echo "$as_me:$LINENO: result: $ac_res" >&5
21670 echo "${ECHO_T}$ac_res" >&6; }
21671 if test `eval echo '${'$as_ac_var'}'` = yes; then
21672 cat >>confdefs.h <<_ACEOF
21673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21674 _ACEOF
21675
21676 fi
21677 done
21678
21679 if test $ac_cv_func_gettimeofday = yes; then
21680 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21681 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21682 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21683 echo $ECHO_N "(cached) $ECHO_C" >&6
21684 else
21685 cat >conftest.$ac_ext <<_ACEOF
21686 /* confdefs.h. */
21687 _ACEOF
21688 cat confdefs.h >>conftest.$ac_ext
21689 cat >>conftest.$ac_ext <<_ACEOF
21690 /* end confdefs.h. */
21691
21692 #ifdef TIME_WITH_SYS_TIME
21693 #include <sys/time.h>
21694 #include <time.h>
21695 #else
21696 #ifdef HAVE_SYS_TIME_H
21697 #include <sys/time.h>
21698 #else
21699 #include <time.h>
21700 #endif
21701 #endif
21702 int
21703 main ()
21704 {
21705 struct timeval time;
21706 gettimeofday (&time, 0);
21707 ;
21708 return 0;
21709 }
21710 _ACEOF
21711 rm -f conftest.$ac_objext
21712 if { (ac_try="$ac_compile"
21713 case "(($ac_try" in
21714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21715 *) ac_try_echo=$ac_try;;
21716 esac
21717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21718 (eval "$ac_compile") 2>conftest.er1
21719 ac_status=$?
21720 grep -v '^ *+' conftest.er1 >conftest.err
21721 rm -f conftest.er1
21722 cat conftest.err >&5
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); } && {
21725 test -z "$ac_c_werror_flag" ||
21726 test ! -s conftest.err
21727 } && test -s conftest.$ac_objext; then
21728 emacs_cv_gettimeofday_two_arguments=yes
21729 else
21730 echo "$as_me: failed program was:" >&5
21731 sed 's/^/| /' conftest.$ac_ext >&5
21732
21733 emacs_cv_gettimeofday_two_arguments=no
21734 fi
21735
21736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21737 fi
21738 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21739 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21740 if test $emacs_cv_gettimeofday_two_arguments = no; then
21741
21742 cat >>confdefs.h <<\_ACEOF
21743 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21744 _ACEOF
21745
21746 fi
21747 fi
21748 fi
21749
21750 ok_so_far=yes
21751 { echo "$as_me:$LINENO: checking for socket" >&5
21752 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21753 if test "${ac_cv_func_socket+set}" = set; then
21754 echo $ECHO_N "(cached) $ECHO_C" >&6
21755 else
21756 cat >conftest.$ac_ext <<_ACEOF
21757 /* confdefs.h. */
21758 _ACEOF
21759 cat confdefs.h >>conftest.$ac_ext
21760 cat >>conftest.$ac_ext <<_ACEOF
21761 /* end confdefs.h. */
21762 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21764 #define socket innocuous_socket
21765
21766 /* System header to define __stub macros and hopefully few prototypes,
21767 which can conflict with char socket (); below.
21768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21769 <limits.h> exists even on freestanding compilers. */
21770
21771 #ifdef __STDC__
21772 # include <limits.h>
21773 #else
21774 # include <assert.h>
21775 #endif
21776
21777 #undef socket
21778
21779 /* Override any GCC internal prototype to avoid an error.
21780 Use char because int might match the return type of a GCC
21781 builtin and then its argument prototype would still apply. */
21782 #ifdef __cplusplus
21783 extern "C"
21784 #endif
21785 char socket ();
21786 /* The GNU C library defines this for functions which it implements
21787 to always fail with ENOSYS. Some functions are actually named
21788 something starting with __ and the normal name is an alias. */
21789 #if defined __stub_socket || defined __stub___socket
21790 choke me
21791 #endif
21792
21793 int
21794 main ()
21795 {
21796 return socket ();
21797 ;
21798 return 0;
21799 }
21800 _ACEOF
21801 rm -f conftest.$ac_objext conftest$ac_exeext
21802 if { (ac_try="$ac_link"
21803 case "(($ac_try" in
21804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21805 *) ac_try_echo=$ac_try;;
21806 esac
21807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21808 (eval "$ac_link") 2>conftest.er1
21809 ac_status=$?
21810 grep -v '^ *+' conftest.er1 >conftest.err
21811 rm -f conftest.er1
21812 cat conftest.err >&5
21813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814 (exit $ac_status); } && {
21815 test -z "$ac_c_werror_flag" ||
21816 test ! -s conftest.err
21817 } && test -s conftest$ac_exeext &&
21818 $as_test_x conftest$ac_exeext; then
21819 ac_cv_func_socket=yes
21820 else
21821 echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21823
21824 ac_cv_func_socket=no
21825 fi
21826
21827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21828 conftest$ac_exeext conftest.$ac_ext
21829 fi
21830 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21831 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21832 if test $ac_cv_func_socket = yes; then
21833 :
21834 else
21835 ok_so_far=no
21836 fi
21837
21838 if test $ok_so_far = yes; then
21839 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21840 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21841 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21842 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21843 echo $ECHO_N "(cached) $ECHO_C" >&6
21844 fi
21845 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21846 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21847 else
21848 # Is the header compilable?
21849 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21850 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21851 cat >conftest.$ac_ext <<_ACEOF
21852 /* confdefs.h. */
21853 _ACEOF
21854 cat confdefs.h >>conftest.$ac_ext
21855 cat >>conftest.$ac_ext <<_ACEOF
21856 /* end confdefs.h. */
21857 $ac_includes_default
21858 #include <netinet/in.h>
21859 _ACEOF
21860 rm -f conftest.$ac_objext
21861 if { (ac_try="$ac_compile"
21862 case "(($ac_try" in
21863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21864 *) ac_try_echo=$ac_try;;
21865 esac
21866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21867 (eval "$ac_compile") 2>conftest.er1
21868 ac_status=$?
21869 grep -v '^ *+' conftest.er1 >conftest.err
21870 rm -f conftest.er1
21871 cat conftest.err >&5
21872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873 (exit $ac_status); } && {
21874 test -z "$ac_c_werror_flag" ||
21875 test ! -s conftest.err
21876 } && test -s conftest.$ac_objext; then
21877 ac_header_compiler=yes
21878 else
21879 echo "$as_me: failed program was:" >&5
21880 sed 's/^/| /' conftest.$ac_ext >&5
21881
21882 ac_header_compiler=no
21883 fi
21884
21885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21887 echo "${ECHO_T}$ac_header_compiler" >&6; }
21888
21889 # Is the header present?
21890 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21891 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21892 cat >conftest.$ac_ext <<_ACEOF
21893 /* confdefs.h. */
21894 _ACEOF
21895 cat confdefs.h >>conftest.$ac_ext
21896 cat >>conftest.$ac_ext <<_ACEOF
21897 /* end confdefs.h. */
21898 #include <netinet/in.h>
21899 _ACEOF
21900 if { (ac_try="$ac_cpp conftest.$ac_ext"
21901 case "(($ac_try" in
21902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21903 *) ac_try_echo=$ac_try;;
21904 esac
21905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21907 ac_status=$?
21908 grep -v '^ *+' conftest.er1 >conftest.err
21909 rm -f conftest.er1
21910 cat conftest.err >&5
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); } >/dev/null && {
21913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21914 test ! -s conftest.err
21915 }; then
21916 ac_header_preproc=yes
21917 else
21918 echo "$as_me: failed program was:" >&5
21919 sed 's/^/| /' conftest.$ac_ext >&5
21920
21921 ac_header_preproc=no
21922 fi
21923
21924 rm -f conftest.err conftest.$ac_ext
21925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21926 echo "${ECHO_T}$ac_header_preproc" >&6; }
21927
21928 # So? What about this header?
21929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21930 yes:no: )
21931 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21932 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21933 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21934 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21935 ac_header_preproc=yes
21936 ;;
21937 no:yes:* )
21938 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21939 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21940 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21941 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21942 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21943 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21944 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21945 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21946 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21947 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21948 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21949 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21950
21951 ;;
21952 esac
21953 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21954 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21955 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21956 echo $ECHO_N "(cached) $ECHO_C" >&6
21957 else
21958 ac_cv_header_netinet_in_h=$ac_header_preproc
21959 fi
21960 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21961 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21962
21963 fi
21964 if test $ac_cv_header_netinet_in_h = yes; then
21965 :
21966 else
21967 ok_so_far=no
21968 fi
21969
21970
21971 fi
21972 if test $ok_so_far = yes; then
21973 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21974 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21975 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21976 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21977 echo $ECHO_N "(cached) $ECHO_C" >&6
21978 fi
21979 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21980 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21981 else
21982 # Is the header compilable?
21983 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21984 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
21985 cat >conftest.$ac_ext <<_ACEOF
21986 /* confdefs.h. */
21987 _ACEOF
21988 cat confdefs.h >>conftest.$ac_ext
21989 cat >>conftest.$ac_ext <<_ACEOF
21990 /* end confdefs.h. */
21991 $ac_includes_default
21992 #include <arpa/inet.h>
21993 _ACEOF
21994 rm -f conftest.$ac_objext
21995 if { (ac_try="$ac_compile"
21996 case "(($ac_try" in
21997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21998 *) ac_try_echo=$ac_try;;
21999 esac
22000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22001 (eval "$ac_compile") 2>conftest.er1
22002 ac_status=$?
22003 grep -v '^ *+' conftest.er1 >conftest.err
22004 rm -f conftest.er1
22005 cat conftest.err >&5
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); } && {
22008 test -z "$ac_c_werror_flag" ||
22009 test ! -s conftest.err
22010 } && test -s conftest.$ac_objext; then
22011 ac_header_compiler=yes
22012 else
22013 echo "$as_me: failed program was:" >&5
22014 sed 's/^/| /' conftest.$ac_ext >&5
22015
22016 ac_header_compiler=no
22017 fi
22018
22019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22021 echo "${ECHO_T}$ac_header_compiler" >&6; }
22022
22023 # Is the header present?
22024 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22025 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22026 cat >conftest.$ac_ext <<_ACEOF
22027 /* confdefs.h. */
22028 _ACEOF
22029 cat confdefs.h >>conftest.$ac_ext
22030 cat >>conftest.$ac_ext <<_ACEOF
22031 /* end confdefs.h. */
22032 #include <arpa/inet.h>
22033 _ACEOF
22034 if { (ac_try="$ac_cpp conftest.$ac_ext"
22035 case "(($ac_try" in
22036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22037 *) ac_try_echo=$ac_try;;
22038 esac
22039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22041 ac_status=$?
22042 grep -v '^ *+' conftest.er1 >conftest.err
22043 rm -f conftest.er1
22044 cat conftest.err >&5
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); } >/dev/null && {
22047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22048 test ! -s conftest.err
22049 }; then
22050 ac_header_preproc=yes
22051 else
22052 echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22054
22055 ac_header_preproc=no
22056 fi
22057
22058 rm -f conftest.err conftest.$ac_ext
22059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22060 echo "${ECHO_T}$ac_header_preproc" >&6; }
22061
22062 # So? What about this header?
22063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22064 yes:no: )
22065 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22066 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22067 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22068 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22069 ac_header_preproc=yes
22070 ;;
22071 no:yes:* )
22072 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22073 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22074 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22075 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22076 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22077 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22078 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22079 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22080 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22081 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22082 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22083 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22084
22085 ;;
22086 esac
22087 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22088 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22089 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22090 echo $ECHO_N "(cached) $ECHO_C" >&6
22091 else
22092 ac_cv_header_arpa_inet_h=$ac_header_preproc
22093 fi
22094 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22095 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22096
22097 fi
22098 if test $ac_cv_header_arpa_inet_h = yes; then
22099 :
22100 else
22101 ok_so_far=no
22102 fi
22103
22104
22105 fi
22106 if test $ok_so_far = yes; then
22107
22108 cat >>confdefs.h <<\_ACEOF
22109 #define HAVE_INET_SOCKETS 1
22110 _ACEOF
22111
22112 fi
22113
22114
22115 for ac_header in sys/ioctl.h
22116 do
22117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22122 echo $ECHO_N "(cached) $ECHO_C" >&6
22123 fi
22124 ac_res=`eval echo '${'$as_ac_Header'}'`
22125 { echo "$as_me:$LINENO: result: $ac_res" >&5
22126 echo "${ECHO_T}$ac_res" >&6; }
22127 else
22128 # Is the header compilable?
22129 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22131 cat >conftest.$ac_ext <<_ACEOF
22132 /* confdefs.h. */
22133 _ACEOF
22134 cat confdefs.h >>conftest.$ac_ext
22135 cat >>conftest.$ac_ext <<_ACEOF
22136 /* end confdefs.h. */
22137 $ac_includes_default
22138 #include <$ac_header>
22139 _ACEOF
22140 rm -f conftest.$ac_objext
22141 if { (ac_try="$ac_compile"
22142 case "(($ac_try" in
22143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22144 *) ac_try_echo=$ac_try;;
22145 esac
22146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22147 (eval "$ac_compile") 2>conftest.er1
22148 ac_status=$?
22149 grep -v '^ *+' conftest.er1 >conftest.err
22150 rm -f conftest.er1
22151 cat conftest.err >&5
22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); } && {
22154 test -z "$ac_c_werror_flag" ||
22155 test ! -s conftest.err
22156 } && test -s conftest.$ac_objext; then
22157 ac_header_compiler=yes
22158 else
22159 echo "$as_me: failed program was:" >&5
22160 sed 's/^/| /' conftest.$ac_ext >&5
22161
22162 ac_header_compiler=no
22163 fi
22164
22165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22167 echo "${ECHO_T}$ac_header_compiler" >&6; }
22168
22169 # Is the header present?
22170 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22172 cat >conftest.$ac_ext <<_ACEOF
22173 /* confdefs.h. */
22174 _ACEOF
22175 cat confdefs.h >>conftest.$ac_ext
22176 cat >>conftest.$ac_ext <<_ACEOF
22177 /* end confdefs.h. */
22178 #include <$ac_header>
22179 _ACEOF
22180 if { (ac_try="$ac_cpp conftest.$ac_ext"
22181 case "(($ac_try" in
22182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22183 *) ac_try_echo=$ac_try;;
22184 esac
22185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22187 ac_status=$?
22188 grep -v '^ *+' conftest.er1 >conftest.err
22189 rm -f conftest.er1
22190 cat conftest.err >&5
22191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192 (exit $ac_status); } >/dev/null && {
22193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22194 test ! -s conftest.err
22195 }; then
22196 ac_header_preproc=yes
22197 else
22198 echo "$as_me: failed program was:" >&5
22199 sed 's/^/| /' conftest.$ac_ext >&5
22200
22201 ac_header_preproc=no
22202 fi
22203
22204 rm -f conftest.err conftest.$ac_ext
22205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22206 echo "${ECHO_T}$ac_header_preproc" >&6; }
22207
22208 # So? What about this header?
22209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22210 yes:no: )
22211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22215 ac_header_preproc=yes
22216 ;;
22217 no:yes:* )
22218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22221 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22225 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22230
22231 ;;
22232 esac
22233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22236 echo $ECHO_N "(cached) $ECHO_C" >&6
22237 else
22238 eval "$as_ac_Header=\$ac_header_preproc"
22239 fi
22240 ac_res=`eval echo '${'$as_ac_Header'}'`
22241 { echo "$as_me:$LINENO: result: $ac_res" >&5
22242 echo "${ECHO_T}$ac_res" >&6; }
22243
22244 fi
22245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22246 cat >>confdefs.h <<_ACEOF
22247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22248 _ACEOF
22249
22250 fi
22251
22252 done
22253
22254
22255 if test -f /usr/lpp/X11/bin/smt.exp; then
22256
22257 cat >>confdefs.h <<\_ACEOF
22258 #define HAVE_AIX_SMT_EXP 1
22259 _ACEOF
22260
22261 fi
22262
22263 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22264 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22265 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22266 { echo "$as_me:$LINENO: result: yes" >&5
22267 echo "${ECHO_T}yes" >&6; }
22268
22269 cat >>confdefs.h <<\_ACEOF
22270 #define HAVE_DEV_PTMX 1
22271 _ACEOF
22272
22273 else
22274 { echo "$as_me:$LINENO: result: no" >&5
22275 echo "${ECHO_T}no" >&6; }
22276 fi
22277
22278 { echo "$as_me:$LINENO: checking for pid_t" >&5
22279 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22280 if test "${ac_cv_type_pid_t+set}" = set; then
22281 echo $ECHO_N "(cached) $ECHO_C" >&6
22282 else
22283 cat >conftest.$ac_ext <<_ACEOF
22284 /* confdefs.h. */
22285 _ACEOF
22286 cat confdefs.h >>conftest.$ac_ext
22287 cat >>conftest.$ac_ext <<_ACEOF
22288 /* end confdefs.h. */
22289 $ac_includes_default
22290 typedef pid_t ac__type_new_;
22291 int
22292 main ()
22293 {
22294 if ((ac__type_new_ *) 0)
22295 return 0;
22296 if (sizeof (ac__type_new_))
22297 return 0;
22298 ;
22299 return 0;
22300 }
22301 _ACEOF
22302 rm -f conftest.$ac_objext
22303 if { (ac_try="$ac_compile"
22304 case "(($ac_try" in
22305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22306 *) ac_try_echo=$ac_try;;
22307 esac
22308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22309 (eval "$ac_compile") 2>conftest.er1
22310 ac_status=$?
22311 grep -v '^ *+' conftest.er1 >conftest.err
22312 rm -f conftest.er1
22313 cat conftest.err >&5
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); } && {
22316 test -z "$ac_c_werror_flag" ||
22317 test ! -s conftest.err
22318 } && test -s conftest.$ac_objext; then
22319 ac_cv_type_pid_t=yes
22320 else
22321 echo "$as_me: failed program was:" >&5
22322 sed 's/^/| /' conftest.$ac_ext >&5
22323
22324 ac_cv_type_pid_t=no
22325 fi
22326
22327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22328 fi
22329 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22330 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22331 if test $ac_cv_type_pid_t = yes; then
22332 :
22333 else
22334
22335 cat >>confdefs.h <<_ACEOF
22336 #define pid_t int
22337 _ACEOF
22338
22339 fi
22340
22341
22342 for ac_header in vfork.h
22343 do
22344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22346 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22349 echo $ECHO_N "(cached) $ECHO_C" >&6
22350 fi
22351 ac_res=`eval echo '${'$as_ac_Header'}'`
22352 { echo "$as_me:$LINENO: result: $ac_res" >&5
22353 echo "${ECHO_T}$ac_res" >&6; }
22354 else
22355 # Is the header compilable?
22356 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22358 cat >conftest.$ac_ext <<_ACEOF
22359 /* confdefs.h. */
22360 _ACEOF
22361 cat confdefs.h >>conftest.$ac_ext
22362 cat >>conftest.$ac_ext <<_ACEOF
22363 /* end confdefs.h. */
22364 $ac_includes_default
22365 #include <$ac_header>
22366 _ACEOF
22367 rm -f conftest.$ac_objext
22368 if { (ac_try="$ac_compile"
22369 case "(($ac_try" in
22370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22371 *) ac_try_echo=$ac_try;;
22372 esac
22373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22374 (eval "$ac_compile") 2>conftest.er1
22375 ac_status=$?
22376 grep -v '^ *+' conftest.er1 >conftest.err
22377 rm -f conftest.er1
22378 cat conftest.err >&5
22379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380 (exit $ac_status); } && {
22381 test -z "$ac_c_werror_flag" ||
22382 test ! -s conftest.err
22383 } && test -s conftest.$ac_objext; then
22384 ac_header_compiler=yes
22385 else
22386 echo "$as_me: failed program was:" >&5
22387 sed 's/^/| /' conftest.$ac_ext >&5
22388
22389 ac_header_compiler=no
22390 fi
22391
22392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22394 echo "${ECHO_T}$ac_header_compiler" >&6; }
22395
22396 # Is the header present?
22397 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22399 cat >conftest.$ac_ext <<_ACEOF
22400 /* confdefs.h. */
22401 _ACEOF
22402 cat confdefs.h >>conftest.$ac_ext
22403 cat >>conftest.$ac_ext <<_ACEOF
22404 /* end confdefs.h. */
22405 #include <$ac_header>
22406 _ACEOF
22407 if { (ac_try="$ac_cpp conftest.$ac_ext"
22408 case "(($ac_try" in
22409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22410 *) ac_try_echo=$ac_try;;
22411 esac
22412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22414 ac_status=$?
22415 grep -v '^ *+' conftest.er1 >conftest.err
22416 rm -f conftest.er1
22417 cat conftest.err >&5
22418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); } >/dev/null && {
22420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22421 test ! -s conftest.err
22422 }; then
22423 ac_header_preproc=yes
22424 else
22425 echo "$as_me: failed program was:" >&5
22426 sed 's/^/| /' conftest.$ac_ext >&5
22427
22428 ac_header_preproc=no
22429 fi
22430
22431 rm -f conftest.err conftest.$ac_ext
22432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22433 echo "${ECHO_T}$ac_header_preproc" >&6; }
22434
22435 # So? What about this header?
22436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22437 yes:no: )
22438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22442 ac_header_preproc=yes
22443 ;;
22444 no:yes:* )
22445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22452 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22457
22458 ;;
22459 esac
22460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22463 echo $ECHO_N "(cached) $ECHO_C" >&6
22464 else
22465 eval "$as_ac_Header=\$ac_header_preproc"
22466 fi
22467 ac_res=`eval echo '${'$as_ac_Header'}'`
22468 { echo "$as_me:$LINENO: result: $ac_res" >&5
22469 echo "${ECHO_T}$ac_res" >&6; }
22470
22471 fi
22472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22473 cat >>confdefs.h <<_ACEOF
22474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22475 _ACEOF
22476
22477 fi
22478
22479 done
22480
22481
22482
22483 for ac_func in fork vfork
22484 do
22485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22486 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22488 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22489 echo $ECHO_N "(cached) $ECHO_C" >&6
22490 else
22491 cat >conftest.$ac_ext <<_ACEOF
22492 /* confdefs.h. */
22493 _ACEOF
22494 cat confdefs.h >>conftest.$ac_ext
22495 cat >>conftest.$ac_ext <<_ACEOF
22496 /* end confdefs.h. */
22497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22499 #define $ac_func innocuous_$ac_func
22500
22501 /* System header to define __stub macros and hopefully few prototypes,
22502 which can conflict with char $ac_func (); below.
22503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22504 <limits.h> exists even on freestanding compilers. */
22505
22506 #ifdef __STDC__
22507 # include <limits.h>
22508 #else
22509 # include <assert.h>
22510 #endif
22511
22512 #undef $ac_func
22513
22514 /* Override any GCC internal prototype to avoid an error.
22515 Use char because int might match the return type of a GCC
22516 builtin and then its argument prototype would still apply. */
22517 #ifdef __cplusplus
22518 extern "C"
22519 #endif
22520 char $ac_func ();
22521 /* The GNU C library defines this for functions which it implements
22522 to always fail with ENOSYS. Some functions are actually named
22523 something starting with __ and the normal name is an alias. */
22524 #if defined __stub_$ac_func || defined __stub___$ac_func
22525 choke me
22526 #endif
22527
22528 int
22529 main ()
22530 {
22531 return $ac_func ();
22532 ;
22533 return 0;
22534 }
22535 _ACEOF
22536 rm -f conftest.$ac_objext conftest$ac_exeext
22537 if { (ac_try="$ac_link"
22538 case "(($ac_try" in
22539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22540 *) ac_try_echo=$ac_try;;
22541 esac
22542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22543 (eval "$ac_link") 2>conftest.er1
22544 ac_status=$?
22545 grep -v '^ *+' conftest.er1 >conftest.err
22546 rm -f conftest.er1
22547 cat conftest.err >&5
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); } && {
22550 test -z "$ac_c_werror_flag" ||
22551 test ! -s conftest.err
22552 } && test -s conftest$ac_exeext &&
22553 $as_test_x conftest$ac_exeext; then
22554 eval "$as_ac_var=yes"
22555 else
22556 echo "$as_me: failed program was:" >&5
22557 sed 's/^/| /' conftest.$ac_ext >&5
22558
22559 eval "$as_ac_var=no"
22560 fi
22561
22562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22563 conftest$ac_exeext conftest.$ac_ext
22564 fi
22565 ac_res=`eval echo '${'$as_ac_var'}'`
22566 { echo "$as_me:$LINENO: result: $ac_res" >&5
22567 echo "${ECHO_T}$ac_res" >&6; }
22568 if test `eval echo '${'$as_ac_var'}'` = yes; then
22569 cat >>confdefs.h <<_ACEOF
22570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22571 _ACEOF
22572
22573 fi
22574 done
22575
22576 if test "x$ac_cv_func_fork" = xyes; then
22577 { echo "$as_me:$LINENO: checking for working fork" >&5
22578 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22579 if test "${ac_cv_func_fork_works+set}" = set; then
22580 echo $ECHO_N "(cached) $ECHO_C" >&6
22581 else
22582 if test "$cross_compiling" = yes; then
22583 ac_cv_func_fork_works=cross
22584 else
22585 cat >conftest.$ac_ext <<_ACEOF
22586 /* confdefs.h. */
22587 _ACEOF
22588 cat confdefs.h >>conftest.$ac_ext
22589 cat >>conftest.$ac_ext <<_ACEOF
22590 /* end confdefs.h. */
22591 $ac_includes_default
22592 int
22593 main ()
22594 {
22595
22596 /* By Ruediger Kuhlmann. */
22597 return fork () < 0;
22598
22599 ;
22600 return 0;
22601 }
22602 _ACEOF
22603 rm -f conftest$ac_exeext
22604 if { (ac_try="$ac_link"
22605 case "(($ac_try" in
22606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22607 *) ac_try_echo=$ac_try;;
22608 esac
22609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22610 (eval "$ac_link") 2>&5
22611 ac_status=$?
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22614 { (case "(($ac_try" in
22615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22616 *) ac_try_echo=$ac_try;;
22617 esac
22618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22619 (eval "$ac_try") 2>&5
22620 ac_status=$?
22621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); }; }; then
22623 ac_cv_func_fork_works=yes
22624 else
22625 echo "$as_me: program exited with status $ac_status" >&5
22626 echo "$as_me: failed program was:" >&5
22627 sed 's/^/| /' conftest.$ac_ext >&5
22628
22629 ( exit $ac_status )
22630 ac_cv_func_fork_works=no
22631 fi
22632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22633 fi
22634
22635
22636 fi
22637 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22638 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22639
22640 else
22641 ac_cv_func_fork_works=$ac_cv_func_fork
22642 fi
22643 if test "x$ac_cv_func_fork_works" = xcross; then
22644 case $host in
22645 *-*-amigaos* | *-*-msdosdjgpp*)
22646 # Override, as these systems have only a dummy fork() stub
22647 ac_cv_func_fork_works=no
22648 ;;
22649 *)
22650 ac_cv_func_fork_works=yes
22651 ;;
22652 esac
22653 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22654 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22655 fi
22656 ac_cv_func_vfork_works=$ac_cv_func_vfork
22657 if test "x$ac_cv_func_vfork" = xyes; then
22658 { echo "$as_me:$LINENO: checking for working vfork" >&5
22659 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22660 if test "${ac_cv_func_vfork_works+set}" = set; then
22661 echo $ECHO_N "(cached) $ECHO_C" >&6
22662 else
22663 if test "$cross_compiling" = yes; then
22664 ac_cv_func_vfork_works=cross
22665 else
22666 cat >conftest.$ac_ext <<_ACEOF
22667 /* confdefs.h. */
22668 _ACEOF
22669 cat confdefs.h >>conftest.$ac_ext
22670 cat >>conftest.$ac_ext <<_ACEOF
22671 /* end confdefs.h. */
22672 /* Thanks to Paul Eggert for this test. */
22673 $ac_includes_default
22674 #include <sys/wait.h>
22675 #ifdef HAVE_VFORK_H
22676 # include <vfork.h>
22677 #endif
22678 /* On some sparc systems, changes by the child to local and incoming
22679 argument registers are propagated back to the parent. The compiler
22680 is told about this with #include <vfork.h>, but some compilers
22681 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22682 static variable whose address is put into a register that is
22683 clobbered by the vfork. */
22684 static void
22685 #ifdef __cplusplus
22686 sparc_address_test (int arg)
22687 # else
22688 sparc_address_test (arg) int arg;
22689 #endif
22690 {
22691 static pid_t child;
22692 if (!child) {
22693 child = vfork ();
22694 if (child < 0) {
22695 perror ("vfork");
22696 _exit(2);
22697 }
22698 if (!child) {
22699 arg = getpid();
22700 write(-1, "", 0);
22701 _exit (arg);
22702 }
22703 }
22704 }
22705
22706 int
22707 main ()
22708 {
22709 pid_t parent = getpid ();
22710 pid_t child;
22711
22712 sparc_address_test (0);
22713
22714 child = vfork ();
22715
22716 if (child == 0) {
22717 /* Here is another test for sparc vfork register problems. This
22718 test uses lots of local variables, at least as many local
22719 variables as main has allocated so far including compiler
22720 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22721 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22722 reuse the register of parent for one of the local variables,
22723 since it will think that parent can't possibly be used any more
22724 in this routine. Assigning to the local variable will thus
22725 munge parent in the parent process. */
22726 pid_t
22727 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22728 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22729 /* Convince the compiler that p..p7 are live; otherwise, it might
22730 use the same hardware register for all 8 local variables. */
22731 if (p != p1 || p != p2 || p != p3 || p != p4
22732 || p != p5 || p != p6 || p != p7)
22733 _exit(1);
22734
22735 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22736 from child file descriptors. If the child closes a descriptor
22737 before it execs or exits, this munges the parent's descriptor
22738 as well. Test for this by closing stdout in the child. */
22739 _exit(close(fileno(stdout)) != 0);
22740 } else {
22741 int status;
22742 struct stat st;
22743
22744 while (wait(&status) != child)
22745 ;
22746 return (
22747 /* Was there some problem with vforking? */
22748 child < 0
22749
22750 /* Did the child fail? (This shouldn't happen.) */
22751 || status
22752
22753 /* Did the vfork/compiler bug occur? */
22754 || parent != getpid()
22755
22756 /* Did the file descriptor bug occur? */
22757 || fstat(fileno(stdout), &st) != 0
22758 );
22759 }
22760 }
22761 _ACEOF
22762 rm -f conftest$ac_exeext
22763 if { (ac_try="$ac_link"
22764 case "(($ac_try" in
22765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22766 *) ac_try_echo=$ac_try;;
22767 esac
22768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22769 (eval "$ac_link") 2>&5
22770 ac_status=$?
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22773 { (case "(($ac_try" in
22774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22775 *) ac_try_echo=$ac_try;;
22776 esac
22777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22778 (eval "$ac_try") 2>&5
22779 ac_status=$?
22780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781 (exit $ac_status); }; }; then
22782 ac_cv_func_vfork_works=yes
22783 else
22784 echo "$as_me: program exited with status $ac_status" >&5
22785 echo "$as_me: failed program was:" >&5
22786 sed 's/^/| /' conftest.$ac_ext >&5
22787
22788 ( exit $ac_status )
22789 ac_cv_func_vfork_works=no
22790 fi
22791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22792 fi
22793
22794
22795 fi
22796 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22797 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22798
22799 fi;
22800 if test "x$ac_cv_func_fork_works" = xcross; then
22801 ac_cv_func_vfork_works=$ac_cv_func_vfork
22802 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22803 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22804 fi
22805
22806 if test "x$ac_cv_func_vfork_works" = xyes; then
22807
22808 cat >>confdefs.h <<\_ACEOF
22809 #define HAVE_WORKING_VFORK 1
22810 _ACEOF
22811
22812 else
22813
22814 cat >>confdefs.h <<\_ACEOF
22815 #define vfork fork
22816 _ACEOF
22817
22818 fi
22819 if test "x$ac_cv_func_fork_works" = xyes; then
22820
22821 cat >>confdefs.h <<\_ACEOF
22822 #define HAVE_WORKING_FORK 1
22823 _ACEOF
22824
22825 fi
22826
22827
22828 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22829 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22830 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22831 echo $ECHO_N "(cached) $ECHO_C" >&6
22832 else
22833 cat >conftest.$ac_ext <<_ACEOF
22834 /* confdefs.h. */
22835 _ACEOF
22836 cat confdefs.h >>conftest.$ac_ext
22837 cat >>conftest.$ac_ext <<_ACEOF
22838 /* end confdefs.h. */
22839 #include <langinfo.h>
22840 int
22841 main ()
22842 {
22843 char* cs = nl_langinfo(CODESET);
22844 ;
22845 return 0;
22846 }
22847 _ACEOF
22848 rm -f conftest.$ac_objext conftest$ac_exeext
22849 if { (ac_try="$ac_link"
22850 case "(($ac_try" in
22851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22852 *) ac_try_echo=$ac_try;;
22853 esac
22854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22855 (eval "$ac_link") 2>conftest.er1
22856 ac_status=$?
22857 grep -v '^ *+' conftest.er1 >conftest.err
22858 rm -f conftest.er1
22859 cat conftest.err >&5
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); } && {
22862 test -z "$ac_c_werror_flag" ||
22863 test ! -s conftest.err
22864 } && test -s conftest$ac_exeext &&
22865 $as_test_x conftest$ac_exeext; then
22866 emacs_cv_langinfo_codeset=yes
22867 else
22868 echo "$as_me: failed program was:" >&5
22869 sed 's/^/| /' conftest.$ac_ext >&5
22870
22871 emacs_cv_langinfo_codeset=no
22872 fi
22873
22874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22875 conftest$ac_exeext conftest.$ac_ext
22876
22877 fi
22878 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22879 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22880 if test $emacs_cv_langinfo_codeset = yes; then
22881
22882 cat >>confdefs.h <<\_ACEOF
22883 #define HAVE_LANGINFO_CODESET 1
22884 _ACEOF
22885
22886 fi
22887
22888 { echo "$as_me:$LINENO: checking for size_t" >&5
22889 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22890 if test "${ac_cv_type_size_t+set}" = set; then
22891 echo $ECHO_N "(cached) $ECHO_C" >&6
22892 else
22893 cat >conftest.$ac_ext <<_ACEOF
22894 /* confdefs.h. */
22895 _ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h. */
22899 $ac_includes_default
22900 typedef size_t ac__type_new_;
22901 int
22902 main ()
22903 {
22904 if ((ac__type_new_ *) 0)
22905 return 0;
22906 if (sizeof (ac__type_new_))
22907 return 0;
22908 ;
22909 return 0;
22910 }
22911 _ACEOF
22912 rm -f conftest.$ac_objext
22913 if { (ac_try="$ac_compile"
22914 case "(($ac_try" in
22915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22916 *) ac_try_echo=$ac_try;;
22917 esac
22918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22919 (eval "$ac_compile") 2>conftest.er1
22920 ac_status=$?
22921 grep -v '^ *+' conftest.er1 >conftest.err
22922 rm -f conftest.er1
22923 cat conftest.err >&5
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); } && {
22926 test -z "$ac_c_werror_flag" ||
22927 test ! -s conftest.err
22928 } && test -s conftest.$ac_objext; then
22929 ac_cv_type_size_t=yes
22930 else
22931 echo "$as_me: failed program was:" >&5
22932 sed 's/^/| /' conftest.$ac_ext >&5
22933
22934 ac_cv_type_size_t=no
22935 fi
22936
22937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22938 fi
22939 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22940 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22941 if test $ac_cv_type_size_t = yes; then
22942
22943 cat >>confdefs.h <<_ACEOF
22944 #define HAVE_SIZE_T 1
22945 _ACEOF
22946
22947
22948 fi
22949
22950
22951 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22952 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22953 if test "${ac_cv_type_mbstate_t+set}" = set; then
22954 echo $ECHO_N "(cached) $ECHO_C" >&6
22955 else
22956 cat >conftest.$ac_ext <<_ACEOF
22957 /* confdefs.h. */
22958 _ACEOF
22959 cat confdefs.h >>conftest.$ac_ext
22960 cat >>conftest.$ac_ext <<_ACEOF
22961 /* end confdefs.h. */
22962 $ac_includes_default
22963 # include <wchar.h>
22964 int
22965 main ()
22966 {
22967 mbstate_t x; return sizeof x;
22968 ;
22969 return 0;
22970 }
22971 _ACEOF
22972 rm -f conftest.$ac_objext
22973 if { (ac_try="$ac_compile"
22974 case "(($ac_try" in
22975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22976 *) ac_try_echo=$ac_try;;
22977 esac
22978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22979 (eval "$ac_compile") 2>conftest.er1
22980 ac_status=$?
22981 grep -v '^ *+' conftest.er1 >conftest.err
22982 rm -f conftest.er1
22983 cat conftest.err >&5
22984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985 (exit $ac_status); } && {
22986 test -z "$ac_c_werror_flag" ||
22987 test ! -s conftest.err
22988 } && test -s conftest.$ac_objext; then
22989 ac_cv_type_mbstate_t=yes
22990 else
22991 echo "$as_me: failed program was:" >&5
22992 sed 's/^/| /' conftest.$ac_ext >&5
22993
22994 ac_cv_type_mbstate_t=no
22995 fi
22996
22997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22998 fi
22999 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23000 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23001 if test $ac_cv_type_mbstate_t = yes; then
23002
23003 cat >>confdefs.h <<\_ACEOF
23004 #define HAVE_MBSTATE_T 1
23005 _ACEOF
23006
23007 else
23008
23009 cat >>confdefs.h <<\_ACEOF
23010 #define mbstate_t int
23011 _ACEOF
23012
23013 fi
23014
23015 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23016 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23017 if test "${emacs_cv_c_restrict+set}" = set; then
23018 echo $ECHO_N "(cached) $ECHO_C" >&6
23019 else
23020 cat >conftest.$ac_ext <<_ACEOF
23021 /* confdefs.h. */
23022 _ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h. */
23026 void fred (int *restrict x);
23027 int
23028 main ()
23029 {
23030
23031 ;
23032 return 0;
23033 }
23034 _ACEOF
23035 rm -f conftest.$ac_objext
23036 if { (ac_try="$ac_compile"
23037 case "(($ac_try" in
23038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23039 *) ac_try_echo=$ac_try;;
23040 esac
23041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23042 (eval "$ac_compile") 2>conftest.er1
23043 ac_status=$?
23044 grep -v '^ *+' conftest.er1 >conftest.err
23045 rm -f conftest.er1
23046 cat conftest.err >&5
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); } && {
23049 test -z "$ac_c_werror_flag" ||
23050 test ! -s conftest.err
23051 } && test -s conftest.$ac_objext; then
23052 emacs_cv_c_restrict=yes
23053 else
23054 echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23056
23057 cat >conftest.$ac_ext <<_ACEOF
23058 /* confdefs.h. */
23059 _ACEOF
23060 cat confdefs.h >>conftest.$ac_ext
23061 cat >>conftest.$ac_ext <<_ACEOF
23062 /* end confdefs.h. */
23063 void fred (int *__restrict x);
23064 int
23065 main ()
23066 {
23067
23068 ;
23069 return 0;
23070 }
23071 _ACEOF
23072 rm -f conftest.$ac_objext
23073 if { (ac_try="$ac_compile"
23074 case "(($ac_try" in
23075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23076 *) ac_try_echo=$ac_try;;
23077 esac
23078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23079 (eval "$ac_compile") 2>conftest.er1
23080 ac_status=$?
23081 grep -v '^ *+' conftest.er1 >conftest.err
23082 rm -f conftest.er1
23083 cat conftest.err >&5
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); } && {
23086 test -z "$ac_c_werror_flag" ||
23087 test ! -s conftest.err
23088 } && test -s conftest.$ac_objext; then
23089 emacs_cv_c_restrict=__restrict
23090 else
23091 echo "$as_me: failed program was:" >&5
23092 sed 's/^/| /' conftest.$ac_ext >&5
23093
23094 emacs_cv_c_restrict=no
23095 fi
23096
23097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23098 fi
23099
23100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23101 fi
23102 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23103 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23104 case "$emacs_cv_c_restrict" in
23105 yes) emacs_restrict=restrict;;
23106 no) emacs_restrict="";;
23107 *) emacs_restrict="$emacs_cv_c_restrict";;
23108 esac
23109 if test "$emacs_restrict" != __restrict; then
23110
23111 cat >>confdefs.h <<_ACEOF
23112 #define __restrict $emacs_restrict
23113 _ACEOF
23114
23115 fi
23116
23117 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23118 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23119 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23120 echo $ECHO_N "(cached) $ECHO_C" >&6
23121 else
23122 cat >conftest.$ac_ext <<_ACEOF
23123 /* confdefs.h. */
23124 _ACEOF
23125 cat confdefs.h >>conftest.$ac_ext
23126 cat >>conftest.$ac_ext <<_ACEOF
23127 /* end confdefs.h. */
23128 void fred (int x[__restrict]);
23129 int
23130 main ()
23131 {
23132
23133 ;
23134 return 0;
23135 }
23136 _ACEOF
23137 rm -f conftest.$ac_objext
23138 if { (ac_try="$ac_compile"
23139 case "(($ac_try" in
23140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23141 *) ac_try_echo=$ac_try;;
23142 esac
23143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23144 (eval "$ac_compile") 2>conftest.er1
23145 ac_status=$?
23146 grep -v '^ *+' conftest.er1 >conftest.err
23147 rm -f conftest.er1
23148 cat conftest.err >&5
23149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150 (exit $ac_status); } && {
23151 test -z "$ac_c_werror_flag" ||
23152 test ! -s conftest.err
23153 } && test -s conftest.$ac_objext; then
23154 emacs_cv_c_restrict_arr=yes
23155 else
23156 echo "$as_me: failed program was:" >&5
23157 sed 's/^/| /' conftest.$ac_ext >&5
23158
23159 emacs_cv_c_restrict_arr=no
23160 fi
23161
23162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23163 fi
23164 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23165 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23166 if test "$emacs_cv_c_restrict_arr" = yes; then
23167
23168 cat >>confdefs.h <<\_ACEOF
23169 #define __restrict_arr __restrict
23170 _ACEOF
23171
23172 fi
23173
23174
23175
23176 # Set up the CFLAGS for real compilation, so we can substitute it.
23177 CFLAGS="$REAL_CFLAGS"
23178 CPPFLAGS="$REAL_CPPFLAGS"
23179
23180 #### Find out which version of Emacs this is.
23181 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23182 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23183 if test x"${version}" = x; then
23184 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23185 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23186 { (exit 1); exit 1; }; }
23187 fi
23188
23189 ### Specify what sort of things we'll be editing into Makefile and config.h.
23190 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23191
23192
23193
23194
23195
23196
23197
23198
23199
23200
23201
23202
23203
23204
23205
23206
23207
23208
23209
23210
23211
23212
23213
23214
23215
23216
23217
23218
23219
23220
23221
23222
23223
23224
23225
23226 cat >>confdefs.h <<_ACEOF
23227 #define EMACS_CONFIGURATION "${canonical}"
23228 _ACEOF
23229
23230
23231 cat >>confdefs.h <<_ACEOF
23232 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23233 _ACEOF
23234
23235
23236 cat >>confdefs.h <<_ACEOF
23237 #define config_machfile "${machfile}"
23238 _ACEOF
23239
23240
23241 cat >>confdefs.h <<_ACEOF
23242 #define config_opsysfile "${opsysfile}"
23243 _ACEOF
23244
23245
23246 cat >>confdefs.h <<_ACEOF
23247 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23248 _ACEOF
23249
23250
23251 cat >>confdefs.h <<_ACEOF
23252 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23253 _ACEOF
23254
23255
23256 cat >>confdefs.h <<_ACEOF
23257 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23258 _ACEOF
23259
23260
23261 cat >>confdefs.h <<_ACEOF
23262 #define UNEXEC_SRC ${UNEXEC_SRC}
23263 _ACEOF
23264
23265
23266 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23267
23268 cat >>confdefs.h <<\_ACEOF
23269 #define HAVE_X_WINDOWS 1
23270 _ACEOF
23271
23272 fi
23273 if test "${USE_X_TOOLKIT}" != "none" ; then
23274
23275 cat >>confdefs.h <<\_ACEOF
23276 #define USE_X_TOOLKIT 1
23277 _ACEOF
23278
23279 fi
23280 if test "${HAVE_X11}" = "yes" ; then
23281
23282 cat >>confdefs.h <<\_ACEOF
23283 #define HAVE_X11 1
23284 _ACEOF
23285
23286 fi
23287 if test "${HAVE_XFREE386}" = "yes" ; then
23288
23289 cat >>confdefs.h <<\_ACEOF
23290 #define HAVE_XFREE386 1
23291 _ACEOF
23292
23293 fi
23294 if test "${HAVE_MENUS}" = "yes" ; then
23295
23296 cat >>confdefs.h <<\_ACEOF
23297 #define HAVE_MENUS 1
23298 _ACEOF
23299
23300 fi
23301 if test "${GNU_MALLOC}" = "yes" ; then
23302
23303 cat >>confdefs.h <<\_ACEOF
23304 #define GNU_MALLOC 1
23305 _ACEOF
23306
23307 fi
23308 if test "${REL_ALLOC}" = "yes" ; then
23309
23310 cat >>confdefs.h <<\_ACEOF
23311 #define REL_ALLOC 1
23312 _ACEOF
23313
23314 fi
23315
23316
23317
23318
23319
23320 #### Report on what we decided to do.
23321 #### Report GTK as a toolkit, even if it doesn't use Xt.
23322 #### It makes printing result more understandable as using GTK sets
23323 #### toolkit_scroll_bars to yes by default.
23324 if test "${HAVE_GTK}" = "yes"; then
23325 USE_X_TOOLKIT=GTK
23326 fi
23327
23328 echo "
23329 Configured for \`${canonical}'.
23330
23331 Where should the build process find the source code? ${srcdir}
23332 What operating system and machine description files should Emacs use?
23333 \`${opsysfile}' and \`${machfile}'
23334 What compiler should emacs be built with? ${CC} ${CFLAGS}
23335 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23336 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23337 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23338 What window system should Emacs use? ${window_system}
23339 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23340
23341 if test -n "${x_includes}"; then
23342 echo " Where do we find X Windows header files? ${x_includes}"
23343 else
23344 echo " Where do we find X Windows header files? Standard dirs"
23345 fi
23346 if test -n "${x_libraries}"; then
23347 echo " Where do we find X Windows libraries? ${x_libraries}"
23348 else
23349 echo " Where do we find X Windows libraries? Standard dirs"
23350 fi
23351
23352 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23353 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23354 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23355 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23356 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23357 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23358 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23359 echo
23360
23361 if test $USE_XASSERTS = yes; then
23362 echo " Compiling with asserts turned on."
23363 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23364 echo
23365 fi
23366
23367
23368
23369 # Remove any trailing slashes in these variables.
23370 test "${prefix}" != NONE &&
23371 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23372 test "${exec_prefix}" != NONE &&
23373 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23374
23375 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23376 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23377 ## from Makefile.c can correctly provide the arg `-traditional' to the
23378 ## C preprocessor.
23379
23380 cat >conftest.$ac_ext <<_ACEOF
23381 /* confdefs.h. */
23382 _ACEOF
23383 cat confdefs.h >>conftest.$ac_ext
23384 cat >>conftest.$ac_ext <<_ACEOF
23385 /* end confdefs.h. */
23386 yes..yes
23387 _ACEOF
23388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23389 $EGREP "yes..yes" >/dev/null 2>&1; then
23390 CPP_NEED_TRADITIONAL=no
23391 else
23392 CPP_NEED_TRADITIONAL=yes
23393 fi
23394 rm -f conftest*
23395
23396
23397 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile"
23398
23399 ac_config_commands="$ac_config_commands default"
23400
23401 cat >confcache <<\_ACEOF
23402 # This file is a shell script that caches the results of configure
23403 # tests run on this system so they can be shared between configure
23404 # scripts and configure runs, see configure's option --config-cache.
23405 # It is not useful on other systems. If it contains results you don't
23406 # want to keep, you may remove or edit it.
23407 #
23408 # config.status only pays attention to the cache file if you give it
23409 # the --recheck option to rerun configure.
23410 #
23411 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23412 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23413 # following values.
23414
23415 _ACEOF
23416
23417 # The following way of writing the cache mishandles newlines in values,
23418 # but we know of no workaround that is simple, portable, and efficient.
23419 # So, we kill variables containing newlines.
23420 # Ultrix sh set writes to stderr and can't be redirected directly,
23421 # and sets the high bit in the cache file unless we assign to the vars.
23422 (
23423 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23424 eval ac_val=\$$ac_var
23425 case $ac_val in #(
23426 *${as_nl}*)
23427 case $ac_var in #(
23428 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23429 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23430 esac
23431 case $ac_var in #(
23432 _ | IFS | as_nl) ;; #(
23433 *) $as_unset $ac_var ;;
23434 esac ;;
23435 esac
23436 done
23437
23438 (set) 2>&1 |
23439 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23440 *${as_nl}ac_space=\ *)
23441 # `set' does not quote correctly, so add quotes (double-quote
23442 # substitution turns \\\\ into \\, and sed turns \\ into \).
23443 sed -n \
23444 "s/'/'\\\\''/g;
23445 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23446 ;; #(
23447 *)
23448 # `set' quotes correctly as required by POSIX, so do not add quotes.
23449 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23450 ;;
23451 esac |
23452 sort
23453 ) |
23454 sed '
23455 /^ac_cv_env_/b end
23456 t clear
23457 :clear
23458 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23459 t end
23460 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23461 :end' >>confcache
23462 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23463 if test -w "$cache_file"; then
23464 test "x$cache_file" != "x/dev/null" &&
23465 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23466 echo "$as_me: updating cache $cache_file" >&6;}
23467 cat confcache >$cache_file
23468 else
23469 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23470 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23471 fi
23472 fi
23473 rm -f confcache
23474
23475 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23476 # Let make expand exec_prefix.
23477 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23478
23479 DEFS=-DHAVE_CONFIG_H
23480
23481 ac_libobjs=
23482 ac_ltlibobjs=
23483 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23484 # 1. Remove the extension, and $U if already installed.
23485 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23486 ac_i=`echo "$ac_i" | sed "$ac_script"`
23487 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23488 # will be set to the directory where LIBOBJS objects are built.
23489 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23490 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23491 done
23492 LIBOBJS=$ac_libobjs
23493
23494 LTLIBOBJS=$ac_ltlibobjs
23495
23496
23497
23498 : ${CONFIG_STATUS=./config.status}
23499 ac_clean_files_save=$ac_clean_files
23500 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23501 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23502 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23503 cat >$CONFIG_STATUS <<_ACEOF
23504 #! $SHELL
23505 # Generated by $as_me.
23506 # Run this file to recreate the current configuration.
23507 # Compiler output produced by configure, useful for debugging
23508 # configure, is in config.log if it exists.
23509
23510 debug=false
23511 ac_cs_recheck=false
23512 ac_cs_silent=false
23513 SHELL=\${CONFIG_SHELL-$SHELL}
23514 _ACEOF
23515
23516 cat >>$CONFIG_STATUS <<\_ACEOF
23517 ## --------------------- ##
23518 ## M4sh Initialization. ##
23519 ## --------------------- ##
23520
23521 # Be more Bourne compatible
23522 DUALCASE=1; export DUALCASE # for MKS sh
23523 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23524 emulate sh
23525 NULLCMD=:
23526 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23527 # is contrary to our usage. Disable this feature.
23528 alias -g '${1+"$@"}'='"$@"'
23529 setopt NO_GLOB_SUBST
23530 else
23531 case `(set -o) 2>/dev/null` in
23532 *posix*) set -o posix ;;
23533 esac
23534
23535 fi
23536
23537
23538
23539
23540 # PATH needs CR
23541 # Avoid depending upon Character Ranges.
23542 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23543 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23544 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23545 as_cr_digits='0123456789'
23546 as_cr_alnum=$as_cr_Letters$as_cr_digits
23547
23548 # The user is always right.
23549 if test "${PATH_SEPARATOR+set}" != set; then
23550 echo "#! /bin/sh" >conf$$.sh
23551 echo "exit 0" >>conf$$.sh
23552 chmod +x conf$$.sh
23553 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23554 PATH_SEPARATOR=';'
23555 else
23556 PATH_SEPARATOR=:
23557 fi
23558 rm -f conf$$.sh
23559 fi
23560
23561 # Support unset when possible.
23562 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23563 as_unset=unset
23564 else
23565 as_unset=false
23566 fi
23567
23568
23569 # IFS
23570 # We need space, tab and new line, in precisely that order. Quoting is
23571 # there to prevent editors from complaining about space-tab.
23572 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23573 # splitting by setting IFS to empty value.)
23574 as_nl='
23575 '
23576 IFS=" "" $as_nl"
23577
23578 # Find who we are. Look in the path if we contain no directory separator.
23579 case $0 in
23580 *[\\/]* ) as_myself=$0 ;;
23581 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23582 for as_dir in $PATH
23583 do
23584 IFS=$as_save_IFS
23585 test -z "$as_dir" && as_dir=.
23586 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23587 done
23588 IFS=$as_save_IFS
23589
23590 ;;
23591 esac
23592 # We did not find ourselves, most probably we were run as `sh COMMAND'
23593 # in which case we are not to be found in the path.
23594 if test "x$as_myself" = x; then
23595 as_myself=$0
23596 fi
23597 if test ! -f "$as_myself"; then
23598 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23599 { (exit 1); exit 1; }
23600 fi
23601
23602 # Work around bugs in pre-3.0 UWIN ksh.
23603 for as_var in ENV MAIL MAILPATH
23604 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23605 done
23606 PS1='$ '
23607 PS2='> '
23608 PS4='+ '
23609
23610 # NLS nuisances.
23611 for as_var in \
23612 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23613 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23614 LC_TELEPHONE LC_TIME
23615 do
23616 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23617 eval $as_var=C; export $as_var
23618 else
23619 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23620 fi
23621 done
23622
23623 # Required to use basename.
23624 if expr a : '\(a\)' >/dev/null 2>&1 &&
23625 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23626 as_expr=expr
23627 else
23628 as_expr=false
23629 fi
23630
23631 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23632 as_basename=basename
23633 else
23634 as_basename=false
23635 fi
23636
23637
23638 # Name of the executable.
23639 as_me=`$as_basename -- "$0" ||
23640 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23641 X"$0" : 'X\(//\)$' \| \
23642 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23643 echo X/"$0" |
23644 sed '/^.*\/\([^/][^/]*\)\/*$/{
23645 s//\1/
23646 q
23647 }
23648 /^X\/\(\/\/\)$/{
23649 s//\1/
23650 q
23651 }
23652 /^X\/\(\/\).*/{
23653 s//\1/
23654 q
23655 }
23656 s/.*/./; q'`
23657
23658 # CDPATH.
23659 $as_unset CDPATH
23660
23661
23662
23663 as_lineno_1=$LINENO
23664 as_lineno_2=$LINENO
23665 test "x$as_lineno_1" != "x$as_lineno_2" &&
23666 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23667
23668 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23669 # uniformly replaced by the line number. The first 'sed' inserts a
23670 # line-number line after each line using $LINENO; the second 'sed'
23671 # does the real work. The second script uses 'N' to pair each
23672 # line-number line with the line containing $LINENO, and appends
23673 # trailing '-' during substitution so that $LINENO is not a special
23674 # case at line end.
23675 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23676 # scripts with optimization help from Paolo Bonzini. Blame Lee
23677 # E. McMahon (1931-1989) for sed's syntax. :-)
23678 sed -n '
23679 p
23680 /[$]LINENO/=
23681 ' <$as_myself |
23682 sed '
23683 s/[$]LINENO.*/&-/
23684 t lineno
23685 b
23686 :lineno
23687 N
23688 :loop
23689 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23690 t loop
23691 s/-\n.*//
23692 ' >$as_me.lineno &&
23693 chmod +x "$as_me.lineno" ||
23694 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23695 { (exit 1); exit 1; }; }
23696
23697 # Don't try to exec as it changes $[0], causing all sort of problems
23698 # (the dirname of $[0] is not the place where we might find the
23699 # original and so on. Autoconf is especially sensitive to this).
23700 . "./$as_me.lineno"
23701 # Exit status is that of the last command.
23702 exit
23703 }
23704
23705
23706 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23707 as_dirname=dirname
23708 else
23709 as_dirname=false
23710 fi
23711
23712 ECHO_C= ECHO_N= ECHO_T=
23713 case `echo -n x` in
23714 -n*)
23715 case `echo 'x\c'` in
23716 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23717 *) ECHO_C='\c';;
23718 esac;;
23719 *)
23720 ECHO_N='-n';;
23721 esac
23722
23723 if expr a : '\(a\)' >/dev/null 2>&1 &&
23724 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23725 as_expr=expr
23726 else
23727 as_expr=false
23728 fi
23729
23730 rm -f conf$$ conf$$.exe conf$$.file
23731 if test -d conf$$.dir; then
23732 rm -f conf$$.dir/conf$$.file
23733 else
23734 rm -f conf$$.dir
23735 mkdir conf$$.dir
23736 fi
23737 echo >conf$$.file
23738 if ln -s conf$$.file conf$$ 2>/dev/null; then
23739 as_ln_s='ln -s'
23740 # ... but there are two gotchas:
23741 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23742 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23743 # In both cases, we have to default to `cp -p'.
23744 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23745 as_ln_s='cp -p'
23746 elif ln conf$$.file conf$$ 2>/dev/null; then
23747 as_ln_s=ln
23748 else
23749 as_ln_s='cp -p'
23750 fi
23751 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23752 rmdir conf$$.dir 2>/dev/null
23753
23754 if mkdir -p . 2>/dev/null; then
23755 as_mkdir_p=:
23756 else
23757 test -d ./-p && rmdir ./-p
23758 as_mkdir_p=false
23759 fi
23760
23761 if test -x / >/dev/null 2>&1; then
23762 as_test_x='test -x'
23763 else
23764 if ls -dL / >/dev/null 2>&1; then
23765 as_ls_L_option=L
23766 else
23767 as_ls_L_option=
23768 fi
23769 as_test_x='
23770 eval sh -c '\''
23771 if test -d "$1"; then
23772 test -d "$1/.";
23773 else
23774 case $1 in
23775 -*)set "./$1";;
23776 esac;
23777 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23778 ???[sx]*):;;*)false;;esac;fi
23779 '\'' sh
23780 '
23781 fi
23782 as_executable_p=$as_test_x
23783
23784 # Sed expression to map a string onto a valid CPP name.
23785 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23786
23787 # Sed expression to map a string onto a valid variable name.
23788 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23789
23790
23791 exec 6>&1
23792
23793 # Save the log message, to keep $[0] and so on meaningful, and to
23794 # report actual input values of CONFIG_FILES etc. instead of their
23795 # values after options handling.
23796 ac_log="
23797 This file was extended by $as_me, which was
23798 generated by GNU Autoconf 2.61. Invocation command line was
23799
23800 CONFIG_FILES = $CONFIG_FILES
23801 CONFIG_HEADERS = $CONFIG_HEADERS
23802 CONFIG_LINKS = $CONFIG_LINKS
23803 CONFIG_COMMANDS = $CONFIG_COMMANDS
23804 $ $0 $@
23805
23806 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23807 "
23808
23809 _ACEOF
23810
23811 cat >>$CONFIG_STATUS <<_ACEOF
23812 # Files that config.status was made for.
23813 config_files="$ac_config_files"
23814 config_headers="$ac_config_headers"
23815 config_commands="$ac_config_commands"
23816
23817 _ACEOF
23818
23819 cat >>$CONFIG_STATUS <<\_ACEOF
23820 ac_cs_usage="\
23821 \`$as_me' instantiates files from templates according to the
23822 current configuration.
23823
23824 Usage: $0 [OPTIONS] [FILE]...
23825
23826 -h, --help print this help, then exit
23827 -V, --version print version number and configuration settings, then exit
23828 -q, --quiet do not print progress messages
23829 -d, --debug don't remove temporary files
23830 --recheck update $as_me by reconfiguring in the same conditions
23831 --file=FILE[:TEMPLATE]
23832 instantiate the configuration file FILE
23833 --header=FILE[:TEMPLATE]
23834 instantiate the configuration header FILE
23835
23836 Configuration files:
23837 $config_files
23838
23839 Configuration headers:
23840 $config_headers
23841
23842 Configuration commands:
23843 $config_commands
23844
23845 Report bugs to <bug-autoconf@gnu.org>."
23846
23847 _ACEOF
23848 cat >>$CONFIG_STATUS <<_ACEOF
23849 ac_cs_version="\\
23850 config.status
23851 configured by $0, generated by GNU Autoconf 2.61,
23852 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23853
23854 Copyright (C) 2006 Free Software Foundation, Inc.
23855 This config.status script is free software; the Free Software Foundation
23856 gives unlimited permission to copy, distribute and modify it."
23857
23858 ac_pwd='$ac_pwd'
23859 srcdir='$srcdir'
23860 INSTALL='$INSTALL'
23861 _ACEOF
23862
23863 cat >>$CONFIG_STATUS <<\_ACEOF
23864 # If no file are specified by the user, then we need to provide default
23865 # value. By we need to know if files were specified by the user.
23866 ac_need_defaults=:
23867 while test $# != 0
23868 do
23869 case $1 in
23870 --*=*)
23871 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23872 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23873 ac_shift=:
23874 ;;
23875 *)
23876 ac_option=$1
23877 ac_optarg=$2
23878 ac_shift=shift
23879 ;;
23880 esac
23881
23882 case $ac_option in
23883 # Handling of the options.
23884 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23885 ac_cs_recheck=: ;;
23886 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23887 echo "$ac_cs_version"; exit ;;
23888 --debug | --debu | --deb | --de | --d | -d )
23889 debug=: ;;
23890 --file | --fil | --fi | --f )
23891 $ac_shift
23892 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23893 ac_need_defaults=false;;
23894 --header | --heade | --head | --hea )
23895 $ac_shift
23896 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23897 ac_need_defaults=false;;
23898 --he | --h)
23899 # Conflict between --help and --header
23900 { echo "$as_me: error: ambiguous option: $1
23901 Try \`$0 --help' for more information." >&2
23902 { (exit 1); exit 1; }; };;
23903 --help | --hel | -h )
23904 echo "$ac_cs_usage"; exit ;;
23905 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23906 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23907 ac_cs_silent=: ;;
23908
23909 # This is an error.
23910 -*) { echo "$as_me: error: unrecognized option: $1
23911 Try \`$0 --help' for more information." >&2
23912 { (exit 1); exit 1; }; } ;;
23913
23914 *) ac_config_targets="$ac_config_targets $1"
23915 ac_need_defaults=false ;;
23916
23917 esac
23918 shift
23919 done
23920
23921 ac_configure_extra_args=
23922
23923 if $ac_cs_silent; then
23924 exec 6>/dev/null
23925 ac_configure_extra_args="$ac_configure_extra_args --silent"
23926 fi
23927
23928 _ACEOF
23929 cat >>$CONFIG_STATUS <<_ACEOF
23930 if \$ac_cs_recheck; then
23931 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23932 CONFIG_SHELL=$SHELL
23933 export CONFIG_SHELL
23934 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23935 fi
23936
23937 _ACEOF
23938 cat >>$CONFIG_STATUS <<\_ACEOF
23939 exec 5>>config.log
23940 {
23941 echo
23942 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23943 ## Running $as_me. ##
23944 _ASBOX
23945 echo "$ac_log"
23946 } >&5
23947
23948 _ACEOF
23949 cat >>$CONFIG_STATUS <<_ACEOF
23950 #
23951 # INIT-COMMANDS
23952 #
23953 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23954
23955 _ACEOF
23956
23957 cat >>$CONFIG_STATUS <<\_ACEOF
23958
23959 # Handling of arguments.
23960 for ac_config_target in $ac_config_targets
23961 do
23962 case $ac_config_target in
23963 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23964 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23965 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23966 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23967 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23968 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23969 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23970 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23971 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23972 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23973 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23974 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23975
23976 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23977 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23978 { (exit 1); exit 1; }; };;
23979 esac
23980 done
23981
23982
23983 # If the user did not use the arguments to specify the items to instantiate,
23984 # then the envvar interface is used. Set only those that are not.
23985 # We use the long form for the default assignment because of an extremely
23986 # bizarre bug on SunOS 4.1.3.
23987 if $ac_need_defaults; then
23988 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23989 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23990 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23991 fi
23992
23993 # Have a temporary directory for convenience. Make it in the build tree
23994 # simply because there is no reason against having it here, and in addition,
23995 # creating and moving files from /tmp can sometimes cause problems.
23996 # Hook for its removal unless debugging.
23997 # Note that there is a small window in which the directory will not be cleaned:
23998 # after its creation but before its name has been assigned to `$tmp'.
23999 $debug ||
24000 {
24001 tmp=
24002 trap 'exit_status=$?
24003 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24004 ' 0
24005 trap '{ (exit 1); exit 1; }' 1 2 13 15
24006 }
24007 # Create a (secure) tmp directory for tmp files.
24008
24009 {
24010 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24011 test -n "$tmp" && test -d "$tmp"
24012 } ||
24013 {
24014 tmp=./conf$$-$RANDOM
24015 (umask 077 && mkdir "$tmp")
24016 } ||
24017 {
24018 echo "$me: cannot create a temporary directory in ." >&2
24019 { (exit 1); exit 1; }
24020 }
24021
24022 #
24023 # Set up the sed scripts for CONFIG_FILES section.
24024 #
24025
24026 # No need to generate the scripts if there are no CONFIG_FILES.
24027 # This happens for instance when ./config.status config.h
24028 if test -n "$CONFIG_FILES"; then
24029
24030 _ACEOF
24031
24032
24033
24034 ac_delim='%!_!# '
24035 for ac_last_try in false false false false false :; do
24036 cat >conf$$subs.sed <<_ACEOF
24037 SHELL!$SHELL$ac_delim
24038 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24039 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24040 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24041 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24042 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24043 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24044 exec_prefix!$exec_prefix$ac_delim
24045 prefix!$prefix$ac_delim
24046 program_transform_name!$program_transform_name$ac_delim
24047 bindir!$bindir$ac_delim
24048 sbindir!$sbindir$ac_delim
24049 libexecdir!$libexecdir$ac_delim
24050 datarootdir!$datarootdir$ac_delim
24051 datadir!$datadir$ac_delim
24052 sysconfdir!$sysconfdir$ac_delim
24053 sharedstatedir!$sharedstatedir$ac_delim
24054 localstatedir!$localstatedir$ac_delim
24055 includedir!$includedir$ac_delim
24056 oldincludedir!$oldincludedir$ac_delim
24057 docdir!$docdir$ac_delim
24058 infodir!$infodir$ac_delim
24059 htmldir!$htmldir$ac_delim
24060 dvidir!$dvidir$ac_delim
24061 pdfdir!$pdfdir$ac_delim
24062 psdir!$psdir$ac_delim
24063 libdir!$libdir$ac_delim
24064 localedir!$localedir$ac_delim
24065 mandir!$mandir$ac_delim
24066 DEFS!$DEFS$ac_delim
24067 ECHO_C!$ECHO_C$ac_delim
24068 ECHO_N!$ECHO_N$ac_delim
24069 ECHO_T!$ECHO_T$ac_delim
24070 LIBS!$LIBS$ac_delim
24071 build_alias!$build_alias$ac_delim
24072 host_alias!$host_alias$ac_delim
24073 target_alias!$target_alias$ac_delim
24074 MAINT!$MAINT$ac_delim
24075 build!$build$ac_delim
24076 build_cpu!$build_cpu$ac_delim
24077 build_vendor!$build_vendor$ac_delim
24078 build_os!$build_os$ac_delim
24079 host!$host$ac_delim
24080 host_cpu!$host_cpu$ac_delim
24081 host_vendor!$host_vendor$ac_delim
24082 host_os!$host_os$ac_delim
24083 CC!$CC$ac_delim
24084 CFLAGS!$CFLAGS$ac_delim
24085 LDFLAGS!$LDFLAGS$ac_delim
24086 CPPFLAGS!$CPPFLAGS$ac_delim
24087 ac_ct_CC!$ac_ct_CC$ac_delim
24088 EXEEXT!$EXEEXT$ac_delim
24089 OBJEXT!$OBJEXT$ac_delim
24090 CPP!$CPP$ac_delim
24091 GREP!$GREP$ac_delim
24092 EGREP!$EGREP$ac_delim
24093 LN_S!$LN_S$ac_delim
24094 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24095 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24096 INSTALL_DATA!$INSTALL_DATA$ac_delim
24097 RANLIB!$RANLIB$ac_delim
24098 INSTALL_INFO!$INSTALL_INFO$ac_delim
24099 GZIP_PROG!$GZIP_PROG$ac_delim
24100 LIBSOUND!$LIBSOUND$ac_delim
24101 PKG_CONFIG!$PKG_CONFIG$ac_delim
24102 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24103 ALSA_LIBS!$ALSA_LIBS$ac_delim
24104 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24105 SET_MAKE!$SET_MAKE$ac_delim
24106 XMKMF!$XMKMF$ac_delim
24107 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24108 GTK_LIBS!$GTK_LIBS$ac_delim
24109 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24110 XFT_LIBS!$XFT_LIBS$ac_delim
24111 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24112 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24113 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24114 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24115 HAVE_LIBOTF!$HAVE_LIBOTF$ac_delim
24116 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24117 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24118 ALLOCA!$ALLOCA$ac_delim
24119 liblockfile!$liblockfile$ac_delim
24120 LIBOBJS!$LIBOBJS$ac_delim
24121 NEED_SETGID!$NEED_SETGID$ac_delim
24122 KMEM_GROUP!$KMEM_GROUP$ac_delim
24123 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24124 GETOPT_H!$GETOPT_H$ac_delim
24125 GETOPTOBJS!$GETOPTOBJS$ac_delim
24126 version!$version$ac_delim
24127 configuration!$configuration$ac_delim
24128 canonical!$canonical$ac_delim
24129 srcdir!$srcdir$ac_delim
24130 lispdir!$lispdir$ac_delim
24131 locallisppath!$locallisppath$ac_delim
24132 lisppath!$lisppath$ac_delim
24133 x_default_search_path!$x_default_search_path$ac_delim
24134 _ACEOF
24135
24136 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24137 break
24138 elif $ac_last_try; then
24139 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24140 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24141 { (exit 1); exit 1; }; }
24142 else
24143 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24144 fi
24145 done
24146
24147 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24148 if test -n "$ac_eof"; then
24149 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24150 ac_eof=`expr $ac_eof + 1`
24151 fi
24152
24153 cat >>$CONFIG_STATUS <<_ACEOF
24154 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24155 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24156 _ACEOF
24157 sed '
24158 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24159 s/^/s,@/; s/!/@,|#_!!_#|/
24160 :n
24161 t n
24162 s/'"$ac_delim"'$/,g/; t
24163 s/$/\\/; p
24164 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24165 ' >>$CONFIG_STATUS <conf$$subs.sed
24166 rm -f conf$$subs.sed
24167 cat >>$CONFIG_STATUS <<_ACEOF
24168 CEOF$ac_eof
24169 _ACEOF
24170
24171
24172 ac_delim='%!_!# '
24173 for ac_last_try in false false false false false :; do
24174 cat >conf$$subs.sed <<_ACEOF
24175 etcdir!$etcdir$ac_delim
24176 archlibdir!$archlibdir$ac_delim
24177 bitmapdir!$bitmapdir$ac_delim
24178 gamedir!$gamedir$ac_delim
24179 gameuser!$gameuser$ac_delim
24180 c_switch_system!$c_switch_system$ac_delim
24181 c_switch_machine!$c_switch_machine$ac_delim
24182 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24183 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24184 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24185 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24186 machfile!$machfile$ac_delim
24187 opsysfile!$opsysfile$ac_delim
24188 carbon_appdir!$carbon_appdir$ac_delim
24189 LTLIBOBJS!$LTLIBOBJS$ac_delim
24190 _ACEOF
24191
24192 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
24193 break
24194 elif $ac_last_try; then
24195 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24196 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24197 { (exit 1); exit 1; }; }
24198 else
24199 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24200 fi
24201 done
24202
24203 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24204 if test -n "$ac_eof"; then
24205 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24206 ac_eof=`expr $ac_eof + 1`
24207 fi
24208
24209 cat >>$CONFIG_STATUS <<_ACEOF
24210 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24212 _ACEOF
24213 sed '
24214 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24215 s/^/s,@/; s/!/@,|#_!!_#|/
24216 :n
24217 t n
24218 s/'"$ac_delim"'$/,g/; t
24219 s/$/\\/; p
24220 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24221 ' >>$CONFIG_STATUS <conf$$subs.sed
24222 rm -f conf$$subs.sed
24223 cat >>$CONFIG_STATUS <<_ACEOF
24224 :end
24225 s/|#_!!_#|//g
24226 CEOF$ac_eof
24227 _ACEOF
24228
24229
24230 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24231 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24232 # trailing colons and then remove the whole line if VPATH becomes empty
24233 # (actually we leave an empty line to preserve line numbers).
24234 if test "x$srcdir" = x.; then
24235 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24236 s/:*\$(srcdir):*/:/
24237 s/:*\${srcdir}:*/:/
24238 s/:*@srcdir@:*/:/
24239 s/^\([^=]*=[ ]*\):*/\1/
24240 s/:*$//
24241 s/^[^=]*=[ ]*$//
24242 }'
24243 fi
24244
24245 cat >>$CONFIG_STATUS <<\_ACEOF
24246 fi # test -n "$CONFIG_FILES"
24247
24248
24249 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24250 do
24251 case $ac_tag in
24252 :[FHLC]) ac_mode=$ac_tag; continue;;
24253 esac
24254 case $ac_mode$ac_tag in
24255 :[FHL]*:*);;
24256 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24257 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24258 { (exit 1); exit 1; }; };;
24259 :[FH]-) ac_tag=-:-;;
24260 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24261 esac
24262 ac_save_IFS=$IFS
24263 IFS=:
24264 set x $ac_tag
24265 IFS=$ac_save_IFS
24266 shift
24267 ac_file=$1
24268 shift
24269
24270 case $ac_mode in
24271 :L) ac_source=$1;;
24272 :[FH])
24273 ac_file_inputs=
24274 for ac_f
24275 do
24276 case $ac_f in
24277 -) ac_f="$tmp/stdin";;
24278 *) # Look for the file first in the build tree, then in the source tree
24279 # (if the path is not absolute). The absolute path cannot be DOS-style,
24280 # because $ac_f cannot contain `:'.
24281 test -f "$ac_f" ||
24282 case $ac_f in
24283 [\\/$]*) false;;
24284 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24285 esac ||
24286 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24287 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24288 { (exit 1); exit 1; }; };;
24289 esac
24290 ac_file_inputs="$ac_file_inputs $ac_f"
24291 done
24292
24293 # Let's still pretend it is `configure' which instantiates (i.e., don't
24294 # use $as_me), people would be surprised to read:
24295 # /* config.h. Generated by config.status. */
24296 configure_input="Generated from "`IFS=:
24297 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24298 if test x"$ac_file" != x-; then
24299 configure_input="$ac_file. $configure_input"
24300 { echo "$as_me:$LINENO: creating $ac_file" >&5
24301 echo "$as_me: creating $ac_file" >&6;}
24302 fi
24303
24304 case $ac_tag in
24305 *:-:* | *:-) cat >"$tmp/stdin";;
24306 esac
24307 ;;
24308 esac
24309
24310 ac_dir=`$as_dirname -- "$ac_file" ||
24311 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24312 X"$ac_file" : 'X\(//\)[^/]' \| \
24313 X"$ac_file" : 'X\(//\)$' \| \
24314 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24315 echo X"$ac_file" |
24316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24317 s//\1/
24318 q
24319 }
24320 /^X\(\/\/\)[^/].*/{
24321 s//\1/
24322 q
24323 }
24324 /^X\(\/\/\)$/{
24325 s//\1/
24326 q
24327 }
24328 /^X\(\/\).*/{
24329 s//\1/
24330 q
24331 }
24332 s/.*/./; q'`
24333 { as_dir="$ac_dir"
24334 case $as_dir in #(
24335 -*) as_dir=./$as_dir;;
24336 esac
24337 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24338 as_dirs=
24339 while :; do
24340 case $as_dir in #(
24341 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24342 *) as_qdir=$as_dir;;
24343 esac
24344 as_dirs="'$as_qdir' $as_dirs"
24345 as_dir=`$as_dirname -- "$as_dir" ||
24346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24347 X"$as_dir" : 'X\(//\)[^/]' \| \
24348 X"$as_dir" : 'X\(//\)$' \| \
24349 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24350 echo X"$as_dir" |
24351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24352 s//\1/
24353 q
24354 }
24355 /^X\(\/\/\)[^/].*/{
24356 s//\1/
24357 q
24358 }
24359 /^X\(\/\/\)$/{
24360 s//\1/
24361 q
24362 }
24363 /^X\(\/\).*/{
24364 s//\1/
24365 q
24366 }
24367 s/.*/./; q'`
24368 test -d "$as_dir" && break
24369 done
24370 test -z "$as_dirs" || eval "mkdir $as_dirs"
24371 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24372 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24373 { (exit 1); exit 1; }; }; }
24374 ac_builddir=.
24375
24376 case "$ac_dir" in
24377 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24378 *)
24379 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24380 # A ".." for each directory in $ac_dir_suffix.
24381 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24382 case $ac_top_builddir_sub in
24383 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24384 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24385 esac ;;
24386 esac
24387 ac_abs_top_builddir=$ac_pwd
24388 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24389 # for backward compatibility:
24390 ac_top_builddir=$ac_top_build_prefix
24391
24392 case $srcdir in
24393 .) # We are building in place.
24394 ac_srcdir=.
24395 ac_top_srcdir=$ac_top_builddir_sub
24396 ac_abs_top_srcdir=$ac_pwd ;;
24397 [\\/]* | ?:[\\/]* ) # Absolute name.
24398 ac_srcdir=$srcdir$ac_dir_suffix;
24399 ac_top_srcdir=$srcdir
24400 ac_abs_top_srcdir=$srcdir ;;
24401 *) # Relative name.
24402 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24403 ac_top_srcdir=$ac_top_build_prefix$srcdir
24404 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24405 esac
24406 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24407
24408
24409 case $ac_mode in
24410 :F)
24411 #
24412 # CONFIG_FILE
24413 #
24414
24415 case $INSTALL in
24416 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24417 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24418 esac
24419 _ACEOF
24420
24421 cat >>$CONFIG_STATUS <<\_ACEOF
24422 # If the template does not know about datarootdir, expand it.
24423 # FIXME: This hack should be removed a few years after 2.60.
24424 ac_datarootdir_hack=; ac_datarootdir_seen=
24425
24426 case `sed -n '/datarootdir/ {
24427 p
24428 q
24429 }
24430 /@datadir@/p
24431 /@docdir@/p
24432 /@infodir@/p
24433 /@localedir@/p
24434 /@mandir@/p
24435 ' $ac_file_inputs` in
24436 *datarootdir*) ac_datarootdir_seen=yes;;
24437 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24438 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24439 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24440 _ACEOF
24441 cat >>$CONFIG_STATUS <<_ACEOF
24442 ac_datarootdir_hack='
24443 s&@datadir@&$datadir&g
24444 s&@docdir@&$docdir&g
24445 s&@infodir@&$infodir&g
24446 s&@localedir@&$localedir&g
24447 s&@mandir@&$mandir&g
24448 s&\\\${datarootdir}&$datarootdir&g' ;;
24449 esac
24450 _ACEOF
24451
24452 # Neutralize VPATH when `$srcdir' = `.'.
24453 # Shell code in configure.ac might set extrasub.
24454 # FIXME: do we really want to maintain this feature?
24455 cat >>$CONFIG_STATUS <<_ACEOF
24456 sed "$ac_vpsub
24457 $extrasub
24458 _ACEOF
24459 cat >>$CONFIG_STATUS <<\_ACEOF
24460 :t
24461 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24462 s&@configure_input@&$configure_input&;t t
24463 s&@top_builddir@&$ac_top_builddir_sub&;t t
24464 s&@srcdir@&$ac_srcdir&;t t
24465 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24466 s&@top_srcdir@&$ac_top_srcdir&;t t
24467 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24468 s&@builddir@&$ac_builddir&;t t
24469 s&@abs_builddir@&$ac_abs_builddir&;t t
24470 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24471 s&@INSTALL@&$ac_INSTALL&;t t
24472 $ac_datarootdir_hack
24473 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24474
24475 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24476 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24477 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24478 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24479 which seems to be undefined. Please make sure it is defined." >&5
24480 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24481 which seems to be undefined. Please make sure it is defined." >&2;}
24482
24483 rm -f "$tmp/stdin"
24484 case $ac_file in
24485 -) cat "$tmp/out"; rm -f "$tmp/out";;
24486 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24487 esac
24488 ;;
24489 :H)
24490 #
24491 # CONFIG_HEADER
24492 #
24493 _ACEOF
24494
24495 # Transform confdefs.h into a sed script `conftest.defines', that
24496 # substitutes the proper values into config.h.in to produce config.h.
24497 rm -f conftest.defines conftest.tail
24498 # First, append a space to every undef/define line, to ease matching.
24499 echo 's/$/ /' >conftest.defines
24500 # Then, protect against being on the right side of a sed subst, or in
24501 # an unquoted here document, in config.status. If some macros were
24502 # called several times there might be several #defines for the same
24503 # symbol, which is useless. But do not sort them, since the last
24504 # AC_DEFINE must be honored.
24505 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24506 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24507 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24508 # PARAMS is the parameter list in the macro definition--in most cases, it's
24509 # just an empty string.
24510 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24511 ac_dB='\\)[ (].*,\\1define\\2'
24512 ac_dC=' '
24513 ac_dD=' ,'
24514
24515 uniq confdefs.h |
24516 sed -n '
24517 t rset
24518 :rset
24519 s/^[ ]*#[ ]*define[ ][ ]*//
24520 t ok
24521 d
24522 :ok
24523 s/[\\&,]/\\&/g
24524 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24525 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24526 ' >>conftest.defines
24527
24528 # Remove the space that was appended to ease matching.
24529 # Then replace #undef with comments. This is necessary, for
24530 # example, in the case of _POSIX_SOURCE, which is predefined and required
24531 # on some systems where configure will not decide to define it.
24532 # (The regexp can be short, since the line contains either #define or #undef.)
24533 echo 's/ $//
24534 s,^[ #]*u.*,/* & */,' >>conftest.defines
24535
24536 # Break up conftest.defines:
24537 ac_max_sed_lines=50
24538
24539 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24540 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24541 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24542 # et cetera.
24543 ac_in='$ac_file_inputs'
24544 ac_out='"$tmp/out1"'
24545 ac_nxt='"$tmp/out2"'
24546
24547 while :
24548 do
24549 # Write a here document:
24550 cat >>$CONFIG_STATUS <<_ACEOF
24551 # First, check the format of the line:
24552 cat >"\$tmp/defines.sed" <<\\CEOF
24553 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24554 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24555 b
24556 :def
24557 _ACEOF
24558 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24559 echo 'CEOF
24560 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24561 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24562 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24563 grep . conftest.tail >/dev/null || break
24564 rm -f conftest.defines
24565 mv conftest.tail conftest.defines
24566 done
24567 rm -f conftest.defines conftest.tail
24568
24569 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24570 cat >>$CONFIG_STATUS <<\_ACEOF
24571 if test x"$ac_file" != x-; then
24572 echo "/* $configure_input */" >"$tmp/config.h"
24573 cat "$ac_result" >>"$tmp/config.h"
24574 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24575 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24576 echo "$as_me: $ac_file is unchanged" >&6;}
24577 else
24578 rm -f $ac_file
24579 mv "$tmp/config.h" $ac_file
24580 fi
24581 else
24582 echo "/* $configure_input */"
24583 cat "$ac_result"
24584 fi
24585 rm -f "$tmp/out12"
24586 ;;
24587
24588 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24589 echo "$as_me: executing $ac_file commands" >&6;}
24590 ;;
24591 esac
24592
24593
24594 case $ac_file$ac_mode in
24595 "default":C)
24596
24597 ### Make the necessary directories, if they don't exist.
24598 for dir in etc lisp ; do
24599 test -d ${dir} || mkdir ${dir}
24600 done
24601
24602 # Build src/Makefile from ${srcdir}/src/Makefile.c
24603 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24604 # This must be done after src/config.h is built, since we rely on that file.
24605
24606 # Now get this: Some word that is part of the ${srcdir} directory name
24607 # or the ${configuration} value might, just might, happen to be an
24608 # identifier like `sun4' or `i386' or something, and be predefined by
24609 # the C preprocessor to some helpful value like 1, or maybe the empty
24610 # string. Needless to say consequent macro substitutions are less
24611 # than conducive to the makefile finding the correct directory.
24612 undefs="`echo $top_srcdir $configuration $canonical |
24613 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24614 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24615 `"
24616
24617 echo creating src/epaths.h
24618 ${MAKE-make} epaths-force
24619
24620 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24621 # `..' to `. .' unless invoked with -traditional
24622
24623 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24624 CPPFLAGS="$CPPFLAGS -traditional"
24625 fi
24626
24627 echo creating lib-src/Makefile
24628 ( cd lib-src
24629 rm -f junk.c junk1.c junk2.c
24630 sed -e '/start of cpp stuff/q' \
24631 < Makefile.c > junk1.c
24632 sed -e '1,/start of cpp stuff/d'\
24633 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24634 < Makefile.c > junk.c
24635 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24636 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24637 cat junk1.c junk2.c > Makefile.new
24638 rm -f junk.c junk1.c junk2.c
24639 chmod 444 Makefile.new
24640 mv -f Makefile.new Makefile
24641 )
24642
24643 echo creating src/Makefile
24644 ( cd src
24645 rm -f junk.c junk1.c junk2.c
24646 sed -e '/start of cpp stuff/q' \
24647 < Makefile.c > junk1.c
24648 sed -e '1,/start of cpp stuff/d'\
24649 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24650 < Makefile.c > junk.c
24651 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
24652 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
24653 fi
24654 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24655 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24656 cat junk1.c junk2.c > Makefile.new
24657 rm -f junk.c junk1.c junk2.c
24658 chmod 444 Makefile.new
24659 mv -f Makefile.new Makefile
24660 )
24661
24662 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24663 echo creating src/.gdbinit
24664 echo source $srcdir/src/.gdbinit > src/.gdbinit
24665 fi
24666
24667 # This is how we know whether to re-run configure in certain cases.
24668 touch src/config.stamp
24669
24670 ;;
24671
24672 esac
24673 done # for ac_tag
24674
24675
24676 { (exit 0); exit 0; }
24677 _ACEOF
24678 chmod +x $CONFIG_STATUS
24679 ac_clean_files=$ac_clean_files_save
24680
24681
24682 # configure is writing to config.log, and then calls config.status.
24683 # config.status does its own redirection, appending to config.log.
24684 # Unfortunately, on DOS this fails, as config.log is still kept open
24685 # by configure, so config.status won't be able to write to it; its
24686 # output is simply discarded. So we exec the FD to /dev/null,
24687 # effectively closing config.log, so it can be properly (re)opened and
24688 # appended to by config.status. When coming back to configure, we
24689 # need to make the FD available again.
24690 if test "$no_create" != yes; then
24691 ac_cs_success=:
24692 ac_config_status_args=
24693 test "$silent" = yes &&
24694 ac_config_status_args="$ac_config_status_args --quiet"
24695 exec 5>/dev/null
24696 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24697 exec 5>>config.log
24698 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24699 # would make configure fail if this is the last instruction.
24700 $ac_cs_success || { (exit 1); exit 1; }
24701 fi
24702
24703