]> code.delx.au - gnu-emacs/blob - configure
Regenerate.
[gnu-emacs] / 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 CFLAGS_SOUND
687 SET_MAKE
688 XMKMF
689 GTK_CFLAGS
690 GTK_LIBS
691 XFT_CFLAGS
692 XFT_LIBS
693 ALLOCA
694 liblockfile
695 LIBOBJS
696 NEED_SETGID
697 KMEM_GROUP
698 GETLOADAVG_LIBS
699 GETOPT_H
700 GETOPTOBJS
701 version
702 configuration
703 canonical
704 srcdir
705 lispdir
706 locallisppath
707 lisppath
708 x_default_search_path
709 etcdir
710 archlibdir
711 bitmapdir
712 gamedir
713 gameuser
714 c_switch_system
715 c_switch_machine
716 LD_SWITCH_X_SITE
717 LD_SWITCH_X_SITE_AUX
718 C_SWITCH_X_SITE
719 X_TOOLKIT_TYPE
720 machfile
721 opsysfile
722 carbon_appdir
723 LTLIBOBJS'
724 ac_subst_files=''
725 ac_precious_vars='build_alias
726 host_alias
727 target_alias
728 CC
729 CFLAGS
730 LDFLAGS
731 LIBS
732 CPPFLAGS
733 CPP
734 XMKMF'
735
736
737 # Initialize some variables set by options.
738 ac_init_help=
739 ac_init_version=false
740 # The variables have the same names as the options, with
741 # dashes changed to underlines.
742 cache_file=/dev/null
743 exec_prefix=NONE
744 no_create=
745 no_recursion=
746 prefix=NONE
747 program_prefix=NONE
748 program_suffix=NONE
749 program_transform_name=s,x,x,
750 silent=
751 site=
752 srcdir=
753 verbose=
754 x_includes=NONE
755 x_libraries=NONE
756
757 # Installation directory options.
758 # These are left unexpanded so users can "make install exec_prefix=/foo"
759 # and all the variables that are supposed to be based on exec_prefix
760 # by default will actually change.
761 # Use braces instead of parens because sh, perl, etc. also accept them.
762 # (The list follows the same order as the GNU Coding Standards.)
763 bindir='${exec_prefix}/bin'
764 sbindir='${exec_prefix}/sbin'
765 libexecdir='${exec_prefix}/libexec'
766 datarootdir='${prefix}/share'
767 datadir='${datarootdir}'
768 sysconfdir='${prefix}/etc'
769 sharedstatedir='${prefix}/com'
770 localstatedir='${prefix}/var'
771 includedir='${prefix}/include'
772 oldincludedir='/usr/include'
773 docdir='${datarootdir}/doc/${PACKAGE}'
774 infodir='${datarootdir}/info'
775 htmldir='${docdir}'
776 dvidir='${docdir}'
777 pdfdir='${docdir}'
778 psdir='${docdir}'
779 libdir='${exec_prefix}/lib'
780 localedir='${datarootdir}/locale'
781 mandir='${datarootdir}/man'
782
783 ac_prev=
784 ac_dashdash=
785 for ac_option
786 do
787 # If the previous option needs an argument, assign it.
788 if test -n "$ac_prev"; then
789 eval $ac_prev=\$ac_option
790 ac_prev=
791 continue
792 fi
793
794 case $ac_option in
795 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
796 *) ac_optarg=yes ;;
797 esac
798
799 # Accept the important Cygnus configure options, so we can diagnose typos.
800
801 case $ac_dashdash$ac_option in
802 --)
803 ac_dashdash=yes ;;
804
805 -bindir | --bindir | --bindi | --bind | --bin | --bi)
806 ac_prev=bindir ;;
807 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
808 bindir=$ac_optarg ;;
809
810 -build | --build | --buil | --bui | --bu)
811 ac_prev=build_alias ;;
812 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
813 build_alias=$ac_optarg ;;
814
815 -cache-file | --cache-file | --cache-fil | --cache-fi \
816 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
817 ac_prev=cache_file ;;
818 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
819 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
820 cache_file=$ac_optarg ;;
821
822 --config-cache | -C)
823 cache_file=config.cache ;;
824
825 -datadir | --datadir | --datadi | --datad)
826 ac_prev=datadir ;;
827 -datadir=* | --datadir=* | --datadi=* | --datad=*)
828 datadir=$ac_optarg ;;
829
830 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
831 | --dataroo | --dataro | --datar)
832 ac_prev=datarootdir ;;
833 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
834 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
835 datarootdir=$ac_optarg ;;
836
837 -disable-* | --disable-*)
838 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
839 # Reject names that are not valid shell variable names.
840 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
841 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
842 { (exit 1); exit 1; }; }
843 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
844 eval enable_$ac_feature=no ;;
845
846 -docdir | --docdir | --docdi | --doc | --do)
847 ac_prev=docdir ;;
848 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
849 docdir=$ac_optarg ;;
850
851 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
852 ac_prev=dvidir ;;
853 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
854 dvidir=$ac_optarg ;;
855
856 -enable-* | --enable-*)
857 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
858 # Reject names that are not valid shell variable names.
859 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
860 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
861 { (exit 1); exit 1; }; }
862 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
863 eval enable_$ac_feature=\$ac_optarg ;;
864
865 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
866 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
867 | --exec | --exe | --ex)
868 ac_prev=exec_prefix ;;
869 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
870 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
871 | --exec=* | --exe=* | --ex=*)
872 exec_prefix=$ac_optarg ;;
873
874 -gas | --gas | --ga | --g)
875 # Obsolete; use --with-gas.
876 with_gas=yes ;;
877
878 -help | --help | --hel | --he | -h)
879 ac_init_help=long ;;
880 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
881 ac_init_help=recursive ;;
882 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
883 ac_init_help=short ;;
884
885 -host | --host | --hos | --ho)
886 ac_prev=host_alias ;;
887 -host=* | --host=* | --hos=* | --ho=*)
888 host_alias=$ac_optarg ;;
889
890 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
891 ac_prev=htmldir ;;
892 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
893 | --ht=*)
894 htmldir=$ac_optarg ;;
895
896 -includedir | --includedir | --includedi | --included | --include \
897 | --includ | --inclu | --incl | --inc)
898 ac_prev=includedir ;;
899 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
900 | --includ=* | --inclu=* | --incl=* | --inc=*)
901 includedir=$ac_optarg ;;
902
903 -infodir | --infodir | --infodi | --infod | --info | --inf)
904 ac_prev=infodir ;;
905 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
906 infodir=$ac_optarg ;;
907
908 -libdir | --libdir | --libdi | --libd)
909 ac_prev=libdir ;;
910 -libdir=* | --libdir=* | --libdi=* | --libd=*)
911 libdir=$ac_optarg ;;
912
913 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
914 | --libexe | --libex | --libe)
915 ac_prev=libexecdir ;;
916 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
917 | --libexe=* | --libex=* | --libe=*)
918 libexecdir=$ac_optarg ;;
919
920 -localedir | --localedir | --localedi | --localed | --locale)
921 ac_prev=localedir ;;
922 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
923 localedir=$ac_optarg ;;
924
925 -localstatedir | --localstatedir | --localstatedi | --localstated \
926 | --localstate | --localstat | --localsta | --localst | --locals)
927 ac_prev=localstatedir ;;
928 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
929 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
930 localstatedir=$ac_optarg ;;
931
932 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
933 ac_prev=mandir ;;
934 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
935 mandir=$ac_optarg ;;
936
937 -nfp | --nfp | --nf)
938 # Obsolete; use --without-fp.
939 with_fp=no ;;
940
941 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
942 | --no-cr | --no-c | -n)
943 no_create=yes ;;
944
945 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
946 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
947 no_recursion=yes ;;
948
949 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
950 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
951 | --oldin | --oldi | --old | --ol | --o)
952 ac_prev=oldincludedir ;;
953 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
954 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
955 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
956 oldincludedir=$ac_optarg ;;
957
958 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
959 ac_prev=prefix ;;
960 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
961 prefix=$ac_optarg ;;
962
963 -program-prefix | --program-prefix | --program-prefi | --program-pref \
964 | --program-pre | --program-pr | --program-p)
965 ac_prev=program_prefix ;;
966 -program-prefix=* | --program-prefix=* | --program-prefi=* \
967 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
968 program_prefix=$ac_optarg ;;
969
970 -program-suffix | --program-suffix | --program-suffi | --program-suff \
971 | --program-suf | --program-su | --program-s)
972 ac_prev=program_suffix ;;
973 -program-suffix=* | --program-suffix=* | --program-suffi=* \
974 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
975 program_suffix=$ac_optarg ;;
976
977 -program-transform-name | --program-transform-name \
978 | --program-transform-nam | --program-transform-na \
979 | --program-transform-n | --program-transform- \
980 | --program-transform | --program-transfor \
981 | --program-transfo | --program-transf \
982 | --program-trans | --program-tran \
983 | --progr-tra | --program-tr | --program-t)
984 ac_prev=program_transform_name ;;
985 -program-transform-name=* | --program-transform-name=* \
986 | --program-transform-nam=* | --program-transform-na=* \
987 | --program-transform-n=* | --program-transform-=* \
988 | --program-transform=* | --program-transfor=* \
989 | --program-transfo=* | --program-transf=* \
990 | --program-trans=* | --program-tran=* \
991 | --progr-tra=* | --program-tr=* | --program-t=*)
992 program_transform_name=$ac_optarg ;;
993
994 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
995 ac_prev=pdfdir ;;
996 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
997 pdfdir=$ac_optarg ;;
998
999 -psdir | --psdir | --psdi | --psd | --ps)
1000 ac_prev=psdir ;;
1001 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1002 psdir=$ac_optarg ;;
1003
1004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1005 | -silent | --silent | --silen | --sile | --sil)
1006 silent=yes ;;
1007
1008 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1009 ac_prev=sbindir ;;
1010 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1011 | --sbi=* | --sb=*)
1012 sbindir=$ac_optarg ;;
1013
1014 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1015 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1016 | --sharedst | --shareds | --shared | --share | --shar \
1017 | --sha | --sh)
1018 ac_prev=sharedstatedir ;;
1019 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1020 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1021 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1022 | --sha=* | --sh=*)
1023 sharedstatedir=$ac_optarg ;;
1024
1025 -site | --site | --sit)
1026 ac_prev=site ;;
1027 -site=* | --site=* | --sit=*)
1028 site=$ac_optarg ;;
1029
1030 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1031 ac_prev=srcdir ;;
1032 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1033 srcdir=$ac_optarg ;;
1034
1035 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1036 | --syscon | --sysco | --sysc | --sys | --sy)
1037 ac_prev=sysconfdir ;;
1038 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1039 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1040 sysconfdir=$ac_optarg ;;
1041
1042 -target | --target | --targe | --targ | --tar | --ta | --t)
1043 ac_prev=target_alias ;;
1044 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1045 target_alias=$ac_optarg ;;
1046
1047 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1048 verbose=yes ;;
1049
1050 -version | --version | --versio | --versi | --vers | -V)
1051 ac_init_version=: ;;
1052
1053 -with-* | --with-*)
1054 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1057 { echo "$as_me: error: invalid package name: $ac_package" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1060 eval with_$ac_package=\$ac_optarg ;;
1061
1062 -without-* | --without-*)
1063 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1066 { echo "$as_me: error: invalid package name: $ac_package" >&2
1067 { (exit 1); exit 1; }; }
1068 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1069 eval with_$ac_package=no ;;
1070
1071 --x)
1072 # Obsolete; use --with-x.
1073 with_x=yes ;;
1074
1075 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1076 | --x-incl | --x-inc | --x-in | --x-i)
1077 ac_prev=x_includes ;;
1078 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1079 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1080 x_includes=$ac_optarg ;;
1081
1082 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1083 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1084 ac_prev=x_libraries ;;
1085 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1086 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1087 x_libraries=$ac_optarg ;;
1088
1089 -*) { echo "$as_me: error: unrecognized option: $ac_option
1090 Try \`$0 --help' for more information." >&2
1091 { (exit 1); exit 1; }; }
1092 ;;
1093
1094 *=*)
1095 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1098 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1099 { (exit 1); exit 1; }; }
1100 eval $ac_envvar=\$ac_optarg
1101 export $ac_envvar ;;
1102
1103 *)
1104 # FIXME: should be removed in autoconf 3.0.
1105 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1106 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1107 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1108 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1109 ;;
1110
1111 esac
1112 done
1113
1114 if test -n "$ac_prev"; then
1115 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1116 { echo "$as_me: error: missing argument to $ac_option" >&2
1117 { (exit 1); exit 1; }; }
1118 fi
1119
1120 # Be sure to have absolute directory names.
1121 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1122 datadir sysconfdir sharedstatedir localstatedir includedir \
1123 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1124 libdir localedir mandir
1125 do
1126 eval ac_val=\$$ac_var
1127 case $ac_val in
1128 [\\/$]* | ?:[\\/]* ) continue;;
1129 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1130 esac
1131 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1132 { (exit 1); exit 1; }; }
1133 done
1134
1135 # There might be people who depend on the old broken behavior: `$host'
1136 # used to hold the argument of --host etc.
1137 # FIXME: To remove some day.
1138 build=$build_alias
1139 host=$host_alias
1140 target=$target_alias
1141
1142 # FIXME: To remove some day.
1143 if test "x$host_alias" != x; then
1144 if test "x$build_alias" = x; then
1145 cross_compiling=maybe
1146 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1147 If a cross compiler is detected then cross compile mode will be used." >&2
1148 elif test "x$build_alias" != "x$host_alias"; then
1149 cross_compiling=yes
1150 fi
1151 fi
1152
1153 ac_tool_prefix=
1154 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1155
1156 test "$silent" = yes && exec 6>/dev/null
1157
1158
1159 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1160 ac_ls_di=`ls -di .` &&
1161 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1162 { echo "$as_me: error: Working directory cannot be determined" >&2
1163 { (exit 1); exit 1; }; }
1164 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1165 { echo "$as_me: error: pwd does not report name of working directory" >&2
1166 { (exit 1); exit 1; }; }
1167
1168
1169 # Find the source files, if location was not specified.
1170 if test -z "$srcdir"; then
1171 ac_srcdir_defaulted=yes
1172 # Try the directory containing this script, then the parent directory.
1173 ac_confdir=`$as_dirname -- "$0" ||
1174 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1175 X"$0" : 'X\(//\)[^/]' \| \
1176 X"$0" : 'X\(//\)$' \| \
1177 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1178 echo X"$0" |
1179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1180 s//\1/
1181 q
1182 }
1183 /^X\(\/\/\)[^/].*/{
1184 s//\1/
1185 q
1186 }
1187 /^X\(\/\/\)$/{
1188 s//\1/
1189 q
1190 }
1191 /^X\(\/\).*/{
1192 s//\1/
1193 q
1194 }
1195 s/.*/./; q'`
1196 srcdir=$ac_confdir
1197 if test ! -r "$srcdir/$ac_unique_file"; then
1198 srcdir=..
1199 fi
1200 else
1201 ac_srcdir_defaulted=no
1202 fi
1203 if test ! -r "$srcdir/$ac_unique_file"; then
1204 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1205 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1206 { (exit 1); exit 1; }; }
1207 fi
1208 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1209 ac_abs_confdir=`(
1210 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1211 { (exit 1); exit 1; }; }
1212 pwd)`
1213 # When building in place, set srcdir=.
1214 if test "$ac_abs_confdir" = "$ac_pwd"; then
1215 srcdir=.
1216 fi
1217 # Remove unnecessary trailing slashes from srcdir.
1218 # Double slashes in file names in object file debugging info
1219 # mess up M-x gdb in Emacs.
1220 case $srcdir in
1221 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1222 esac
1223 for ac_var in $ac_precious_vars; do
1224 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1225 eval ac_env_${ac_var}_value=\$${ac_var}
1226 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1227 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1228 done
1229
1230 #
1231 # Report the --help message.
1232 #
1233 if test "$ac_init_help" = "long"; then
1234 # Omit some internal or obsolete options to make the list less imposing.
1235 # This message is too long to be a string in the A/UX 3.1 sh.
1236 cat <<_ACEOF
1237 \`configure' configures this package to adapt to many kinds of systems.
1238
1239 Usage: $0 [OPTION]... [VAR=VALUE]...
1240
1241 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1242 VAR=VALUE. See below for descriptions of some of the useful variables.
1243
1244 Defaults for the options are specified in brackets.
1245
1246 Configuration:
1247 -h, --help display this help and exit
1248 --help=short display options specific to this package
1249 --help=recursive display the short help of all the included packages
1250 -V, --version display version information and exit
1251 -q, --quiet, --silent do not print \`checking...' messages
1252 --cache-file=FILE cache test results in FILE [disabled]
1253 -C, --config-cache alias for \`--cache-file=config.cache'
1254 -n, --no-create do not create output files
1255 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1256
1257 Installation directories:
1258 --prefix=PREFIX install architecture-independent files in PREFIX
1259 [$ac_default_prefix]
1260 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1261 [PREFIX]
1262
1263 By default, \`make install' will install all the files in
1264 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1265 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1266 for instance \`--prefix=\$HOME'.
1267
1268 For better control, use the options below.
1269
1270 Fine tuning of the installation directories:
1271 --bindir=DIR user executables [EPREFIX/bin]
1272 --sbindir=DIR system admin executables [EPREFIX/sbin]
1273 --libexecdir=DIR program executables [EPREFIX/libexec]
1274 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1275 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1276 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1277 --libdir=DIR object code libraries [EPREFIX/lib]
1278 --includedir=DIR C header files [PREFIX/include]
1279 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1280 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1281 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1282 --infodir=DIR info documentation [DATAROOTDIR/info]
1283 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1284 --mandir=DIR man documentation [DATAROOTDIR/man]
1285 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1286 --htmldir=DIR html documentation [DOCDIR]
1287 --dvidir=DIR dvi documentation [DOCDIR]
1288 --pdfdir=DIR pdf documentation [DOCDIR]
1289 --psdir=DIR ps documentation [DOCDIR]
1290 _ACEOF
1291
1292 cat <<\_ACEOF
1293
1294 Program names:
1295 --program-prefix=PREFIX prepend PREFIX to installed program names
1296 --program-suffix=SUFFIX append SUFFIX to installed program names
1297 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1298
1299 X features:
1300 --x-includes=DIR X include files are in DIR
1301 --x-libraries=DIR X library files are in DIR
1302
1303 System types:
1304 --build=BUILD configure for building on BUILD [guessed]
1305 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1306 _ACEOF
1307 fi
1308
1309 if test -n "$ac_init_help"; then
1310
1311 cat <<\_ACEOF
1312
1313 Optional Features:
1314 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1315 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1316 --enable-carbon-app[=DIR] [DIR=/Application]
1317 specify install directory for Emacs.app on Mac OS X
1318 --enable-asserts compile code with asserts enabled
1319 --enable-maintainer-mode enable make rules and dependencies not useful
1320 (and sometimes confusing) to the casual installer
1321 --enable-locallisppath=PATH
1322 directories Emacs should search for lisp files
1323 specific to this site
1324 --disable-largefile omit support for large files
1325
1326 Optional Packages:
1327 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1328 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1329 --without-gcc don't use GCC to compile Emacs if GCC is found
1330 --without-pop don't support POP mail retrieval with movemail
1331 --with-kerberos support Kerberos-authenticated POP
1332 --with-kerberos5 support Kerberos version 5 authenticated POP
1333 --with-hesiod support Hesiod to get the POP server host
1334 --without-sound don't compile with sound support
1335 --with-x-toolkit=KIT use an X toolkit
1336 (KIT = yes/lucid/athena/motif/gtk/no)
1337 --with-xpm use -lXpm for displaying XPM images
1338 --with-jpeg use -ljpeg for displaying JPEG images
1339 --with-tiff use -ltiff for displaying TIFF images
1340 --with-gif use -lungif for displaying GIF images
1341 --with-png use -lpng for displaying PNG images
1342 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1343 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1344 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1345 --without-toolkit-scroll-bars
1346 don't use Motif or Xaw3d scroll bars
1347 --without-xim don't use X11 XIM
1348 --without-carbon don't use Carbon GUI on Mac OS X
1349 --with-x use the X Window System
1350
1351 Some influential environment variables:
1352 CC C compiler command
1353 CFLAGS C compiler flags
1354 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1355 nonstandard directory <lib dir>
1356 LIBS libraries to pass to the linker, e.g. -l<library>
1357 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1358 you have headers in a nonstandard directory <include dir>
1359 CPP C preprocessor
1360 XMKMF Path to xmkmf, Makefile generator for X Window System
1361
1362 Use these variables to override the choices made by `configure' or to help
1363 it to find libraries and programs with nonstandard names/locations.
1364
1365 _ACEOF
1366 ac_status=$?
1367 fi
1368
1369 if test "$ac_init_help" = "recursive"; then
1370 # If there are subdirs, report their specific --help.
1371 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372 test -d "$ac_dir" || continue
1373 ac_builddir=.
1374
1375 case "$ac_dir" in
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377 *)
1378 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1384 esac ;;
1385 esac
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1390
1391 case $srcdir in
1392 .) # We are building in place.
1393 ac_srcdir=.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1400 *) # Relative name.
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1404 esac
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1406
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1410 echo &&
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1413 echo &&
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1415 else
1416 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1417 fi || ac_status=$?
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1419 done
1420 fi
1421
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1424 cat <<\_ACEOF
1425 configure
1426 generated by GNU Autoconf 2.61
1427
1428 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1429 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1432 _ACEOF
1433 exit
1434 fi
1435 cat >config.log <<_ACEOF
1436 This file contains any messages produced by compilers while
1437 running configure, to aid debugging if configure makes a mistake.
1438
1439 It was created by $as_me, which was
1440 generated by GNU Autoconf 2.61. Invocation command line was
1441
1442 $ $0 $@
1443
1444 _ACEOF
1445 exec 5>>config.log
1446 {
1447 cat <<_ASUNAME
1448 ## --------- ##
1449 ## Platform. ##
1450 ## --------- ##
1451
1452 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1453 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1454 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1455 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1456 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1457
1458 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1459 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1460
1461 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1462 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1463 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1464 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1465 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1466 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1467 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1468
1469 _ASUNAME
1470
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472 for as_dir in $PATH
1473 do
1474 IFS=$as_save_IFS
1475 test -z "$as_dir" && as_dir=.
1476 echo "PATH: $as_dir"
1477 done
1478 IFS=$as_save_IFS
1479
1480 } >&5
1481
1482 cat >&5 <<_ACEOF
1483
1484
1485 ## ----------- ##
1486 ## Core tests. ##
1487 ## ----------- ##
1488
1489 _ACEOF
1490
1491
1492 # Keep a trace of the command line.
1493 # Strip out --no-create and --no-recursion so they do not pile up.
1494 # Strip out --silent because we don't want to record it for future runs.
1495 # Also quote any args containing shell meta-characters.
1496 # Make two passes to allow for proper duplicate-argument suppression.
1497 ac_configure_args=
1498 ac_configure_args0=
1499 ac_configure_args1=
1500 ac_must_keep_next=false
1501 for ac_pass in 1 2
1502 do
1503 for ac_arg
1504 do
1505 case $ac_arg in
1506 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1508 | -silent | --silent | --silen | --sile | --sil)
1509 continue ;;
1510 *\'*)
1511 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1512 esac
1513 case $ac_pass in
1514 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1515 2)
1516 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1517 if test $ac_must_keep_next = true; then
1518 ac_must_keep_next=false # Got value, back to normal.
1519 else
1520 case $ac_arg in
1521 *=* | --config-cache | -C | -disable-* | --disable-* \
1522 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1523 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1524 | -with-* | --with-* | -without-* | --without-* | --x)
1525 case "$ac_configure_args0 " in
1526 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1527 esac
1528 ;;
1529 -* ) ac_must_keep_next=true ;;
1530 esac
1531 fi
1532 ac_configure_args="$ac_configure_args '$ac_arg'"
1533 ;;
1534 esac
1535 done
1536 done
1537 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1538 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1539
1540 # When interrupted or exit'd, cleanup temporary files, and complete
1541 # config.log. We remove comments because anyway the quotes in there
1542 # would cause problems or look ugly.
1543 # WARNING: Use '\'' to represent an apostrophe within the trap.
1544 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1545 trap 'exit_status=$?
1546 # Save into config.log some information that might help in debugging.
1547 {
1548 echo
1549
1550 cat <<\_ASBOX
1551 ## ---------------- ##
1552 ## Cache variables. ##
1553 ## ---------------- ##
1554 _ASBOX
1555 echo
1556 # The following way of writing the cache mishandles newlines in values,
1557 (
1558 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1559 eval ac_val=\$$ac_var
1560 case $ac_val in #(
1561 *${as_nl}*)
1562 case $ac_var in #(
1563 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1564 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1565 esac
1566 case $ac_var in #(
1567 _ | IFS | as_nl) ;; #(
1568 *) $as_unset $ac_var ;;
1569 esac ;;
1570 esac
1571 done
1572 (set) 2>&1 |
1573 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1574 *${as_nl}ac_space=\ *)
1575 sed -n \
1576 "s/'\''/'\''\\\\'\'''\''/g;
1577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1578 ;; #(
1579 *)
1580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1581 ;;
1582 esac |
1583 sort
1584 )
1585 echo
1586
1587 cat <<\_ASBOX
1588 ## ----------------- ##
1589 ## Output variables. ##
1590 ## ----------------- ##
1591 _ASBOX
1592 echo
1593 for ac_var in $ac_subst_vars
1594 do
1595 eval ac_val=\$$ac_var
1596 case $ac_val in
1597 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1598 esac
1599 echo "$ac_var='\''$ac_val'\''"
1600 done | sort
1601 echo
1602
1603 if test -n "$ac_subst_files"; then
1604 cat <<\_ASBOX
1605 ## ------------------- ##
1606 ## File substitutions. ##
1607 ## ------------------- ##
1608 _ASBOX
1609 echo
1610 for ac_var in $ac_subst_files
1611 do
1612 eval ac_val=\$$ac_var
1613 case $ac_val in
1614 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 esac
1616 echo "$ac_var='\''$ac_val'\''"
1617 done | sort
1618 echo
1619 fi
1620
1621 if test -s confdefs.h; then
1622 cat <<\_ASBOX
1623 ## ----------- ##
1624 ## confdefs.h. ##
1625 ## ----------- ##
1626 _ASBOX
1627 echo
1628 cat confdefs.h
1629 echo
1630 fi
1631 test "$ac_signal" != 0 &&
1632 echo "$as_me: caught signal $ac_signal"
1633 echo "$as_me: exit $exit_status"
1634 } >&5
1635 rm -f core *.core core.conftest.* &&
1636 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1637 exit $exit_status
1638 ' 0
1639 for ac_signal in 1 2 13 15; do
1640 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1641 done
1642 ac_signal=0
1643
1644 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1645 rm -f -r conftest* confdefs.h
1646
1647 # Predefined preprocessor variables.
1648
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_NAME "$PACKAGE_NAME"
1651 _ACEOF
1652
1653
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1656 _ACEOF
1657
1658
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1661 _ACEOF
1662
1663
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_STRING "$PACKAGE_STRING"
1666 _ACEOF
1667
1668
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1671 _ACEOF
1672
1673
1674 # Let the site file select an alternate cache file if it wants to.
1675 # Prefer explicitly selected file to automatically selected ones.
1676 if test -n "$CONFIG_SITE"; then
1677 set x "$CONFIG_SITE"
1678 elif test "x$prefix" != xNONE; then
1679 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1680 else
1681 set x "$ac_default_prefix/share/config.site" \
1682 "$ac_default_prefix/etc/config.site"
1683 fi
1684 shift
1685 for ac_site_file
1686 do
1687 if test -r "$ac_site_file"; then
1688 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1689 echo "$as_me: loading site script $ac_site_file" >&6;}
1690 sed 's/^/| /' "$ac_site_file" >&5
1691 . "$ac_site_file"
1692 fi
1693 done
1694
1695 if test -r "$cache_file"; then
1696 # Some versions of bash will fail to source /dev/null (special
1697 # files actually), so we avoid doing that.
1698 if test -f "$cache_file"; then
1699 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1700 echo "$as_me: loading cache $cache_file" >&6;}
1701 case $cache_file in
1702 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1703 *) . "./$cache_file";;
1704 esac
1705 fi
1706 else
1707 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1708 echo "$as_me: creating cache $cache_file" >&6;}
1709 >$cache_file
1710 fi
1711
1712 ac_header_list="$ac_header_list sys/time.h"
1713 ac_header_list="$ac_header_list unistd.h"
1714 ac_func_list="$ac_func_list alarm"
1715 # Check that the precious variables saved in the cache have kept the same
1716 # value.
1717 ac_cache_corrupted=false
1718 for ac_var in $ac_precious_vars; do
1719 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1720 eval ac_new_set=\$ac_env_${ac_var}_set
1721 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1722 eval ac_new_val=\$ac_env_${ac_var}_value
1723 case $ac_old_set,$ac_new_set in
1724 set,)
1725 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1726 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1727 ac_cache_corrupted=: ;;
1728 ,set)
1729 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1730 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1731 ac_cache_corrupted=: ;;
1732 ,);;
1733 *)
1734 if test "x$ac_old_val" != "x$ac_new_val"; then
1735 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1736 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1737 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1738 echo "$as_me: former value: $ac_old_val" >&2;}
1739 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1740 echo "$as_me: current value: $ac_new_val" >&2;}
1741 ac_cache_corrupted=:
1742 fi;;
1743 esac
1744 # Pass precious variables to config.status.
1745 if test "$ac_new_set" = set; then
1746 case $ac_new_val in
1747 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1748 *) ac_arg=$ac_var=$ac_new_val ;;
1749 esac
1750 case " $ac_configure_args " in
1751 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1752 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1753 esac
1754 fi
1755 done
1756 if $ac_cache_corrupted; then
1757 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1758 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1759 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1760 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1761 { (exit 1); exit 1; }; }
1762 fi
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780 ac_ext=c
1781 ac_cpp='$CPP $CPPFLAGS'
1782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1785
1786
1787 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1788
1789
1790 test "$program_prefix" != NONE &&
1791 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1792 # Use a double $ so make ignores it.
1793 test "$program_suffix" != NONE &&
1794 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1795 # Double any \ or $. echo might interpret backslashes.
1796 # By default was `s,x,x', remove it if useless.
1797 cat <<\_ACEOF >conftest.sed
1798 s/[\\$]/&&/g;s/;s,x,x,$//
1799 _ACEOF
1800 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1801 rm -f conftest.sed
1802
1803
1804 lispdir='${datadir}/emacs/${version}/lisp'
1805 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1806 '${datadir}/emacs/site-lisp'
1807 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1808 etcdir='${datadir}/emacs/${version}/etc'
1809 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1810 docdir='${datadir}/emacs/${version}/etc'
1811 gamedir='${localstatedir}/games/emacs'
1812
1813 gameuser=games
1814
1815
1816 # Check whether --with-gcc was given.
1817 if test "${with_gcc+set}" = set; then
1818 withval=$with_gcc;
1819 fi
1820
1821
1822 # Check whether --with-pop was given.
1823 if test "${with_pop+set}" = set; then
1824 withval=$with_pop; if test "$withval" = yes; then
1825 cat >>confdefs.h <<\_ACEOF
1826 #define MAIL_USE_POP 1
1827 _ACEOF
1828
1829 else :
1830 fi
1831 else
1832 cat >>confdefs.h <<\_ACEOF
1833 #define MAIL_USE_POP 1
1834 _ACEOF
1835
1836 fi
1837
1838
1839
1840 # Check whether --with-kerberos was given.
1841 if test "${with_kerberos+set}" = set; then
1842 withval=$with_kerberos; if test "$withval" = yes; then
1843 cat >>confdefs.h <<\_ACEOF
1844 #define KERBEROS 1
1845 _ACEOF
1846
1847 fi
1848 fi
1849
1850
1851
1852 # Check whether --with-kerberos5 was given.
1853 if test "${with_kerberos5+set}" = set; then
1854 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1855 if test "${with_kerberos+set}" != set; then
1856 with_kerberos=yes
1857 cat >>confdefs.h <<\_ACEOF
1858 #define KERBEROS 1
1859 _ACEOF
1860
1861 fi
1862
1863 cat >>confdefs.h <<\_ACEOF
1864 #define KERBEROS5 1
1865 _ACEOF
1866
1867 fi
1868 fi
1869
1870
1871 # Check whether --with-hesiod was given.
1872 if test "${with_hesiod+set}" = set; then
1873 withval=$with_hesiod; if test "$withval" = yes; then
1874
1875 cat >>confdefs.h <<\_ACEOF
1876 #define HESIOD 1
1877 _ACEOF
1878
1879 fi
1880 fi
1881
1882
1883
1884 # Check whether --with-sound was given.
1885 if test "${with_sound+set}" = set; then
1886 withval=$with_sound;
1887 fi
1888
1889
1890
1891 # Check whether --with-x-toolkit was given.
1892 if test "${with_x_toolkit+set}" = set; then
1893 withval=$with_x_toolkit; case "${withval}" in
1894 y | ye | yes ) val=athena ;;
1895 n | no ) val=no ;;
1896 l | lu | luc | luci | lucid ) val=lucid ;;
1897 a | at | ath | athe | athen | athena ) val=athena ;;
1898 m | mo | mot | moti | motif ) val=motif ;;
1899 g | gt | gtk ) val=gtk ;;
1900 * )
1901 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1902 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1903 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1904 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1905 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1906 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1907 { (exit 1); exit 1; }; }
1908 ;;
1909 esac
1910 with_x_toolkit=$val
1911
1912 fi
1913
1914
1915 # Check whether --with-xpm was given.
1916 if test "${with_xpm+set}" = set; then
1917 withval=$with_xpm;
1918 fi
1919
1920
1921 # Check whether --with-jpeg was given.
1922 if test "${with_jpeg+set}" = set; then
1923 withval=$with_jpeg;
1924 fi
1925
1926
1927 # Check whether --with-tiff was given.
1928 if test "${with_tiff+set}" = set; then
1929 withval=$with_tiff;
1930 fi
1931
1932
1933 # Check whether --with-gif was given.
1934 if test "${with_gif+set}" = set; then
1935 withval=$with_gif;
1936 fi
1937
1938
1939 # Check whether --with-png was given.
1940 if test "${with_png+set}" = set; then
1941 withval=$with_png;
1942 fi
1943
1944
1945 # Check whether --with-gpm was given.
1946 if test "${with_gpm+set}" = set; then
1947 withval=$with_gpm;
1948 fi
1949
1950
1951 # Check whether --with-gtk was given.
1952 if test "${with_gtk+set}" = set; then
1953 withval=$with_gtk;
1954 fi
1955
1956
1957 # Check whether --with-pkg-config-prog was given.
1958 if test "${with_pkg_config_prog+set}" = set; then
1959 withval=$with_pkg_config_prog;
1960 fi
1961
1962
1963 # Check whether --with-toolkit-scroll-bars was given.
1964 if test "${with_toolkit_scroll_bars+set}" = set; then
1965 withval=$with_toolkit_scroll_bars;
1966 fi
1967
1968
1969 # Check whether --with-xim was given.
1970 if test "${with_xim+set}" = set; then
1971 withval=$with_xim;
1972 fi
1973
1974
1975 # Check whether --with-carbon was given.
1976 if test "${with_carbon+set}" = set; then
1977 withval=$with_carbon;
1978 fi
1979
1980 # Check whether --enable-carbon-app was given.
1981 if test "${enable_carbon_app+set}" = set; then
1982 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1983 fi
1984
1985
1986 # Check whether --enable-asserts was given.
1987 if test "${enable_asserts+set}" = set; then
1988 enableval=$enable_asserts; USE_XASSERTS=$enableval
1989 else
1990 USE_XASSERTS=no
1991 fi
1992
1993
1994 # Check whether --enable-maintainer-mode was given.
1995 if test "${enable_maintainer_mode+set}" = set; then
1996 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1997 else
1998 USE_MAINTAINER_MODE=no
1999 fi
2000
2001 if test $USE_MAINTAINER_MODE = yes; then
2002 MAINT=
2003 else
2004 MAINT=#
2005 fi
2006
2007
2008 # Check whether --enable-locallisppath was given.
2009 if test "${enable_locallisppath+set}" = set; then
2010 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2011 locallisppath=
2012 elif test "${enableval}" != "yes"; then
2013 locallisppath=${enableval}
2014 fi
2015 fi
2016
2017
2018 #### Make srcdir absolute, if it isn't already. It's important to
2019 #### avoid running the path through pwd unnecessarily, since pwd can
2020 #### give you automounter prefixes, which can go away. We do all this
2021 #### so Emacs can find its files when run uninstalled.
2022 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2023 unset CDPATH
2024 case "${srcdir}" in
2025 /* ) ;;
2026 . )
2027 ## We may be able to use the $PWD environment variable to make this
2028 ## absolute. But sometimes PWD is inaccurate.
2029 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2030 ## but that tested only for a well-formed and valid PWD,
2031 ## it did not object when PWD was well-formed and valid but just wrong.
2032 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2033 then
2034 srcdir="$PWD"
2035 else
2036 srcdir="`(cd ${srcdir}; pwd)`"
2037 fi
2038 ;;
2039 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2040 esac
2041
2042 #### Check if the source directory already has a configured system in it.
2043 if test `pwd` != `(cd ${srcdir} && pwd)` \
2044 && test -f "${srcdir}/src/config.h" ; then
2045 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2046 as a build directory right now; it has been configured in its own
2047 right. To configure in another directory as well, you MUST
2048 use GNU make. If you do not have GNU make, then you must
2049 now do \`make distclean' in ${srcdir},
2050 and then run $0 again." >&5
2051 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2052 as a build directory right now; it has been configured in its own
2053 right. To configure in another directory as well, you MUST
2054 use GNU make. If you do not have GNU make, then you must
2055 now do \`make distclean' in ${srcdir},
2056 and then run $0 again." >&2;}
2057 fi
2058
2059 #### Given the configuration name, set machfile and opsysfile to the
2060 #### names of the m/*.h and s/*.h files we should use.
2061
2062 ### Canonicalize the configuration name.
2063
2064 ac_aux_dir=
2065 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2066 if test -f "$ac_dir/install-sh"; then
2067 ac_aux_dir=$ac_dir
2068 ac_install_sh="$ac_aux_dir/install-sh -c"
2069 break
2070 elif test -f "$ac_dir/install.sh"; then
2071 ac_aux_dir=$ac_dir
2072 ac_install_sh="$ac_aux_dir/install.sh -c"
2073 break
2074 elif test -f "$ac_dir/shtool"; then
2075 ac_aux_dir=$ac_dir
2076 ac_install_sh="$ac_aux_dir/shtool install -c"
2077 break
2078 fi
2079 done
2080 if test -z "$ac_aux_dir"; then
2081 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2082 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2083 { (exit 1); exit 1; }; }
2084 fi
2085
2086 # These three variables are undocumented and unsupported,
2087 # and are intended to be withdrawn in a future Autoconf release.
2088 # They can cause serious problems if a builder's source tree is in a directory
2089 # whose full name contains unusual characters.
2090 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2091 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2092 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2093
2094
2095 # Make sure we can run config.sub.
2096 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2097 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2098 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2099 { (exit 1); exit 1; }; }
2100
2101 { echo "$as_me:$LINENO: checking build system type" >&5
2102 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2103 if test "${ac_cv_build+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 else
2106 ac_build_alias=$build_alias
2107 test "x$ac_build_alias" = x &&
2108 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2109 test "x$ac_build_alias" = x &&
2110 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2111 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2112 { (exit 1); exit 1; }; }
2113 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2114 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2115 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2116 { (exit 1); exit 1; }; }
2117
2118 fi
2119 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2120 echo "${ECHO_T}$ac_cv_build" >&6; }
2121 case $ac_cv_build in
2122 *-*-*) ;;
2123 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2124 echo "$as_me: error: invalid value of canonical build" >&2;}
2125 { (exit 1); exit 1; }; };;
2126 esac
2127 build=$ac_cv_build
2128 ac_save_IFS=$IFS; IFS='-'
2129 set x $ac_cv_build
2130 shift
2131 build_cpu=$1
2132 build_vendor=$2
2133 shift; shift
2134 # Remember, the first character of IFS is used to create $*,
2135 # except with old shells:
2136 build_os=$*
2137 IFS=$ac_save_IFS
2138 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2139
2140
2141 { echo "$as_me:$LINENO: checking host system type" >&5
2142 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2143 if test "${ac_cv_host+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 else
2146 if test "x$host_alias" = x; then
2147 ac_cv_host=$ac_cv_build
2148 else
2149 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2150 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2151 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2152 { (exit 1); exit 1; }; }
2153 fi
2154
2155 fi
2156 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2157 echo "${ECHO_T}$ac_cv_host" >&6; }
2158 case $ac_cv_host in
2159 *-*-*) ;;
2160 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2161 echo "$as_me: error: invalid value of canonical host" >&2;}
2162 { (exit 1); exit 1; }; };;
2163 esac
2164 host=$ac_cv_host
2165 ac_save_IFS=$IFS; IFS='-'
2166 set x $ac_cv_host
2167 shift
2168 host_cpu=$1
2169 host_vendor=$2
2170 shift; shift
2171 # Remember, the first character of IFS is used to create $*,
2172 # except with old shells:
2173 host_os=$*
2174 IFS=$ac_save_IFS
2175 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2176
2177
2178 canonical=$host
2179 configuration=${host_alias-${build_alias-$host}}
2180
2181
2182
2183 ### If you add support for a new configuration, add code to this
2184 ### switch statement to recognize your configuration name and select
2185 ### the appropriate operating system and machine description files.
2186
2187 ### You would hope that you could choose an m/*.h file pretty much
2188 ### based on the machine portion of the configuration name, and an s-
2189 ### file based on the operating system portion. However, it turns out
2190 ### that each m/*.h file is pretty manufacturer-specific - for
2191 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2192 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2193 ### machines. So we basically have to have a special case for each
2194 ### configuration name.
2195 ###
2196 ### As far as handling version numbers on operating systems is
2197 ### concerned, make sure things will fail in a fixable way. If
2198 ### /etc/MACHINES doesn't say anything about version numbers, be
2199 ### prepared to handle anything reasonably. If version numbers
2200 ### matter, be sure /etc/MACHINES says something about it.
2201 ###
2202 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2203 ### "System V Release 4"; he writes, "The old convention encouraged
2204 ### confusion between `system' and `release' levels'."
2205
2206 machine='' opsys='' unported=no
2207 case "${canonical}" in
2208
2209 ## FreeBSD ports
2210 *-*-freebsd* )
2211 opsys=freebsd
2212 case "${canonical}" in
2213 alpha*-*-freebsd*) machine=alpha ;;
2214 ia64-*-freebsd*) machine=ia64 ;;
2215 sparc64-*-freebsd*) machine=sparc ;;
2216 powerpc-*-freebsd*) machine=macppc ;;
2217 i[3456]86-*-freebsd*) machine=intel386 ;;
2218 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2219 esac
2220 ;;
2221
2222 ## NetBSD ports
2223 *-*-netbsd* )
2224 opsys=netbsd
2225 if test -f /usr/lib/crti.o; then
2226
2227 cat >>confdefs.h <<\_ACEOF
2228 #define HAVE_CRTIN
2229 _ACEOF
2230
2231 fi
2232
2233 case "${canonical}" in
2234 alpha*-*-netbsd*) machine=alpha ;;
2235 i[3456]86-*-netbsd*) machine=intel386 ;;
2236 m68k-*-netbsd*)
2237 # This is somewhat bogus.
2238 machine=hp9000s300 ;;
2239 mips-*-netbsd*) machine=pmax ;;
2240 mipsel-*-netbsd*) machine=pmax ;;
2241 mipseb-*-netbsd*) machine=pmax ;;
2242 ns32k-*-netbsd*) machine=ns32000 ;;
2243 powerpc-*-netbsd*) machine=macppc ;;
2244 sparc*-*-netbsd*) machine=sparc ;;
2245 vax-*-netbsd*) machine=vax ;;
2246 arm-*-netbsd*) machine=arm ;;
2247 x86_64-*-netbsd*) machine=amdx86-64 ;;
2248 hppa-*-netbsd*) machine=hp800 ;;
2249 shle-*-netbsd*) machine=sh3el ;;
2250 esac
2251 ;;
2252
2253 ## OpenBSD ports
2254 *-*-openbsd* )
2255 opsys=openbsd
2256 case "${canonical}" in
2257 alpha*-*-openbsd*) machine=alpha ;;
2258 arm-*-openbsd*) machine=arm ;;
2259 hppa-*-openbsd*) machine=hp9000s300 ;;
2260 i386-*-openbsd*) machine=intel386 ;;
2261 m68k-*-openbsd*) machine=hp9000s300 ;;
2262 m88k-*-openbsd*) machine=aviion ;;
2263 mips64-*-openbsd*) machine=mips64 ;;
2264 powerpc-*-openbsd*) machine=macppc ;;
2265 sh-*-openbsd*) machine=sh3el ;;
2266 sparc*-*-openbsd*) machine=sparc ;;
2267 vax-*-openbsd*) machine=vax ;;
2268 x86_64-*-openbsd*) machine=amdx86-64 ;;
2269 esac
2270 ;;
2271
2272 ## LynxOS ports
2273 *-*-lynxos* )
2274 opsys=lynxos
2275 case "${canonical}" in
2276 i[3456]86-*-lynxos*) machine=intel386 ;;
2277 powerpc-*-lynxos*) machine=powerpc ;;
2278 esac
2279 ;;
2280
2281 ## Acorn RISCiX:
2282 arm-acorn-riscix1.1* )
2283 machine=acorn opsys=riscix1-1
2284 ;;
2285 arm-acorn-riscix1.2* | arm-acorn-riscix )
2286 ## This name is riscix12 instead of riscix1.2
2287 ## to avoid a file name conflict on MSDOS.
2288 machine=acorn opsys=riscix12
2289 ;;
2290
2291 ## BSDI ports
2292 *-*-bsdi* )
2293 opsys=bsdi
2294 case "${canonical}" in
2295 i[345]86-*-bsdi*) machine=intel386 ;;
2296 sparc-*-bsdi*) machine=sparc ;;
2297 powerpc-*-bsdi*) machine=macppc ;;
2298 esac
2299 case "${canonical}" in
2300 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2301 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2302 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2303 *-*-bsdi3* ) opsys=bsdos3 ;;
2304 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2305 esac
2306 ;;
2307
2308 ## Alliant machines
2309 ## Strictly speaking, we need the version of the alliant operating
2310 ## system to choose the right machine file, but currently the
2311 ## configuration name doesn't tell us enough to choose the right
2312 ## one; we need to give alliants their own operating system name to
2313 ## do this right. When someone cares, they can help us.
2314 fx80-alliant-* )
2315 machine=alliant4 opsys=bsd4-2
2316 ;;
2317 i860-alliant-* )
2318 machine=alliant-2800 opsys=bsd4-3
2319 ;;
2320
2321 ## Alpha (DEC) machines.
2322 alpha*-dec-osf* )
2323 machine=alpha opsys=osf1
2324 # This is needed to find X11R6.1 libraries for certain tests.
2325 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2326 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2327 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2328 # due to non-traditional preprocessing with the current compiler
2329 # defaults. OSF 4 can also have that compiler version, and there
2330 # seems always to have been a usable /usr/bin/cpp.
2331 NON_GNU_CPP=/usr/bin/cpp
2332 case "${canonical}" in
2333 alpha*-dec-osf[5-9]*)
2334 opsys=osf5-0 ;;
2335 esac
2336 ;;
2337
2338 alpha*-*-linux-gnu* )
2339 machine=alpha opsys=gnu-linux
2340 ;;
2341
2342 arm*-*-linux-gnu* )
2343 machine=arm opsys=gnu-linux
2344 ;;
2345
2346 ## Altos 3068
2347 m68*-altos-sysv* )
2348 machine=altos opsys=usg5-2
2349 ;;
2350
2351 ## Amdahl UTS
2352 580-amdahl-sysv* )
2353 machine=amdahl opsys=usg5-2-2
2354 ;;
2355
2356 ## Apollo, Domain/OS
2357 m68*-apollo-* )
2358 machine=apollo opsys=bsd4-3
2359 ;;
2360
2361 ## Apple Darwin / Mac OS X
2362 *-apple-darwin* )
2363 case "${canonical}" in
2364 i[3456]86-* ) machine=intel386 ;;
2365 powerpc-* ) machine=powermac ;;
2366 * ) unported=yes ;;
2367 esac
2368 opsys=darwin
2369 # Define CPP as follows to make autoconf work correctly.
2370 CPP="${CC-cc} -E -no-cpp-precomp"
2371 # Use fink packages if available.
2372 if test -d /sw/include && test -d /sw/lib; then
2373 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2374 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2375 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2376 fi
2377 ;;
2378
2379 ## AT&T 3b2, 3b5, 3b15, 3b20
2380 we32k-att-sysv* )
2381 machine=att3b opsys=usg5-2-2
2382 ;;
2383
2384 ## AT&T 3b1 - The Mighty Unix PC!
2385 m68*-att-sysv* )
2386 machine=7300 opsys=usg5-2-2
2387 ;;
2388
2389 ## Bull dpx20
2390 rs6000-bull-bosx* )
2391 machine=ibmrs6000 opsys=aix3-2
2392 ;;
2393
2394 ## Bull dpx2
2395 m68*-bull-sysv3* )
2396 machine=dpx2 opsys=usg5-3
2397 ;;
2398
2399 ## Bull sps7
2400 m68*-bull-sysv2* )
2401 machine=sps7 opsys=usg5-2
2402 ;;
2403
2404 ## CCI 5/32, 6/32 -- see "Tahoe".
2405
2406 ## Celerity
2407 ## I don't know what configuration name to use for this; config.sub
2408 ## doesn't seem to know anything about it. Hey, Celerity users, get
2409 ## in touch with us!
2410 celerity-celerity-bsd* )
2411 machine=celerity opsys=bsd4-2
2412 ;;
2413
2414 ## Clipper
2415 ## What operating systems does this chip run that Emacs has been
2416 ## tested on?
2417 clipper-* )
2418 machine=clipper
2419 ## We'll use the catch-all code at the bottom to guess the
2420 ## operating system.
2421 ;;
2422
2423 ## Compaq Nonstop
2424 mips-compaq-nonstopux* )
2425 machine=nonstopux opsys=nonstopux
2426 ;;
2427
2428 ## Convex
2429 *-convex-bsd* | *-convex-convexos* )
2430 machine=convex opsys=bsd4-3
2431 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2432 NON_GNU_CPP="cc -E -P"
2433 ;;
2434
2435 ## Cubix QBx/386
2436 i[3456]86-cubix-sysv* )
2437 machine=intel386 opsys=usg5-3
2438 ;;
2439
2440 ## Cydra 5
2441 cydra*-cydrome-sysv* )
2442 machine=cydra5 opsys=usg5-3
2443 ;;
2444
2445 ## Data General AViiON Machines
2446 ## DG changed naming conventions with the release of 5.4.4.10, they
2447 ## dropped the initial 5.4 but left the intervening R. Because of the
2448 ## R this shouldn't conflict with older versions of the OS (which I
2449 ## think were named like dgux4.*). In addition, DG new AViiONs series
2450 ## uses either Motorola M88k or Intel Pentium CPUs.
2451 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2452 machine=aviion opsys=dgux4
2453 ;;
2454 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2455 ## This name is dgux5-4-3 instead of dgux5-4r3
2456 ## to avoid a file name conflict on MSDOS.
2457 machine=aviion opsys=dgux5-4-3
2458 ;;
2459 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2460 machine=aviion opsys=dgux5-4r2
2461 ;;
2462 m88k-dg-dgux* )
2463 machine=aviion opsys=dgux
2464 ;;
2465
2466 ## Data General AViiON Intel (x86) Machines
2467 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2468 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2469 i[345]86-dg-dguxR4* )
2470 machine=aviion-intel opsys=dgux4
2471 ;;
2472
2473 ## DECstations
2474 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2475 machine=pmax opsys=bsd4-2
2476 ;;
2477 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2478 machine=pmax opsys=bsd4-3
2479 ;;
2480 mips-dec-ultrix* )
2481 machine=pmax opsys=ultrix4-3
2482 ;;
2483 mips-dec-osf* )
2484 machine=pmax opsys=osf1
2485 ;;
2486 mips-dec-mach_bsd4.3* )
2487 machine=pmax opsys=mach-bsd4-3
2488 ;;
2489
2490 ## Motorola Delta machines
2491 m68k-motorola-sysv* | m68000-motorola-sysv* )
2492 machine=delta opsys=usg5-3
2493 if test -z "`type gnucc | grep 'not found'`"
2494 then
2495 if test -s /etc/167config
2496 then CC="gnucc -m68040"
2497 else CC="gnucc -m68881"
2498 fi
2499 else
2500 if test -z "`type gcc | grep 'not found'`"
2501 then CC=gcc
2502 else CC=cc
2503 fi
2504 fi
2505 ;;
2506 m88k-motorola-sysv4* )
2507 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2508 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2509 # I hope there are not other 4.0 versions for this machine
2510 # which really need usg5-4 instead.
2511 machine=delta88k opsys=usg5-4-2
2512 ;;
2513 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2514 machine=delta88k opsys=usg5-3
2515 ;;
2516
2517 ## Dual machines
2518 m68*-dual-sysv* )
2519 machine=dual opsys=usg5-2
2520 ;;
2521 m68*-dual-uniplus* )
2522 machine=dual opsys=unipl5-2
2523 ;;
2524
2525 ## Elxsi 6400
2526 elxsi-elxsi-sysv* )
2527 machine=elxsi opsys=usg5-2
2528 ;;
2529
2530 ## Encore machines
2531 ns16k-encore-bsd* )
2532 machine=ns16000 opsys=umax
2533 ;;
2534
2535 ## The GEC 63 - apparently, this port isn't really finished yet.
2536 # I'm sure we finished off the last of the machines, though. -- fx
2537
2538 ## Gould Power Node and NP1
2539 pn-gould-bsd4.2* )
2540 machine=gould opsys=bsd4-2
2541 ;;
2542 pn-gould-bsd4.3* )
2543 machine=gould opsys=bsd4-3
2544 ;;
2545 np1-gould-bsd* )
2546 machine=gould-np1 opsys=bsd4-3
2547 ;;
2548
2549 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2550 ## as far as Emacs is concerned).
2551 m88k-harris-cxux* )
2552 # Build needs to be different on 7.0 and later releases
2553 case "`uname -r`" in
2554 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2555 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2556 esac
2557 NON_GNU_CPP="/lib/cpp"
2558 ;;
2559 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2560 m68k-harris-cxux* )
2561 machine=nh3000 opsys=cxux
2562 ;;
2563 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2564 powerpc-harris-powerunix )
2565 machine=nh6000 opsys=powerunix
2566 NON_GNU_CPP="cc -Xo -E -P"
2567 ;;
2568 ## SR2001/SR2201 running HI-UX/MPP
2569 hppa1.1-hitachi-hiuxmpp* )
2570 machine=sr2k opsys=hiuxmpp
2571 ;;
2572 hppa1.1-hitachi-hiuxwe2* )
2573 machine=sr2k opsys=hiuxwe2
2574 ;;
2575 ## Honeywell XPS100
2576 xps*-honeywell-sysv* )
2577 machine=xps100 opsys=usg5-2
2578 ;;
2579
2580 ## HP 9000 series 200 or 300
2581 m68*-hp-bsd* )
2582 machine=hp9000s300 opsys=bsd4-3
2583 ;;
2584 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2585 m68*-hp-hpux* )
2586 case "`uname -r`" in
2587 ## Someone's system reports A.B8.05 for this.
2588 ## I wonder what other possibilities there are.
2589 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2590 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2591 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2592 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2593 *) machine=hp9000s300 opsys=hpux ;;
2594 esac
2595 ;;
2596
2597 ## HP 9000 series 700 and 800, running HP/UX
2598 hppa*-hp-hpux7* )
2599 machine=hp800 opsys=hpux
2600 ;;
2601 hppa*-hp-hpux8* )
2602 machine=hp800 opsys=hpux8
2603 ;;
2604 hppa*-hp-hpux9shr* )
2605 machine=hp800 opsys=hpux9shr
2606 ;;
2607 hppa*-hp-hpux9* )
2608 machine=hp800 opsys=hpux9
2609 ;;
2610 hppa*-hp-hpux10.2* )
2611 machine=hp800 opsys=hpux10-20
2612 ;;
2613 hppa*-hp-hpux10* )
2614 machine=hp800 opsys=hpux10
2615 ;;
2616 hppa*-hp-hpux1[1-9]* )
2617 machine=hp800 opsys=hpux11
2618 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2619 ;;
2620
2621 hppa*-*-linux-gnu* )
2622 machine=hp800 opsys=gnu-linux
2623 ;;
2624
2625 ## HP 9000 series 700 and 800, running HP/UX
2626 hppa*-hp-hpux* )
2627 ## Cross-compilation? Nah!
2628 case "`uname -r`" in
2629 ## Someone's system reports A.B8.05 for this.
2630 ## I wonder what other possibilities there are.
2631 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2632 *.08.* ) machine=hp800 opsys=hpux8 ;;
2633 *.09.* ) machine=hp800 opsys=hpux9 ;;
2634 *) machine=hp800 opsys=hpux10 ;;
2635 esac
2636 ;;
2637 hppa*-*-nextstep* )
2638 machine=hp800 opsys=nextstep
2639 ;;
2640
2641 ## Orion machines
2642 orion-orion-bsd* )
2643 machine=orion opsys=bsd4-2
2644 ;;
2645 clipper-orion-bsd* )
2646 machine=orion105 opsys=bsd4-2
2647 ;;
2648
2649 ## IBM machines
2650 i[3456]86-ibm-aix1.1* )
2651 machine=ibmps2-aix opsys=usg5-2-2
2652 ;;
2653 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2654 machine=ibmps2-aix opsys=usg5-3
2655 ;;
2656 i370-ibm-aix*)
2657 machine=ibm370aix opsys=usg5-3
2658 ;;
2659 s390-*-linux-gnu* )
2660 machine=ibms390 opsys=gnu-linux
2661 ;;
2662 s390x-*-linux-gnu* )
2663 machine=ibms390x opsys=gnu-linux
2664 ;;
2665 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2666 machine=ibmrs6000 opsys=aix3-1
2667 ;;
2668 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2669 machine=ibmrs6000 opsys=aix3-2-5
2670 ;;
2671 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2672 machine=ibmrs6000 opsys=aix4-1
2673 ;;
2674 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2675 machine=ibmrs6000 opsys=aix4-2
2676 ;;
2677 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2678 machine=ibmrs6000 opsys=aix4-2
2679 ;;
2680 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2681 machine=ibmrs6000 opsys=aix4-2
2682 ;;
2683 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2684 machine=ibmrs6000 opsys=aix4
2685 ;;
2686 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2687 machine=ibmrs6000 opsys=aix4-1
2688 ;;
2689 rs6000-ibm-aix* | powerpc-ibm-aix* )
2690 machine=ibmrs6000 opsys=aix3-2
2691 ;;
2692 romp-ibm-bsd4.3* )
2693 machine=ibmrt opsys=bsd4-3
2694 ;;
2695 romp-ibm-bsd4.2* )
2696 machine=ibmrt opsys=bsd4-2
2697 ;;
2698 romp-ibm-aos4.3* )
2699 machine=ibmrt opsys=bsd4-3
2700 ;;
2701 romp-ibm-aos4.2* )
2702 machine=ibmrt opsys=bsd4-2
2703 ;;
2704 romp-ibm-aos* )
2705 machine=ibmrt opsys=bsd4-3
2706 ;;
2707 romp-ibm-bsd* )
2708 machine=ibmrt opsys=bsd4-3
2709 ;;
2710 romp-ibm-aix* )
2711 machine=ibmrt-aix opsys=usg5-2-2
2712 ;;
2713
2714 ## Integrated Solutions `Optimum V'
2715 m68*-isi-bsd4.2* )
2716 machine=isi-ov opsys=bsd4-2
2717 ;;
2718 m68*-isi-bsd4.3* )
2719 machine=isi-ov opsys=bsd4-3
2720 ;;
2721
2722 ## Intel 386 machines where we do care about the manufacturer
2723 i[3456]86-intsys-sysv* )
2724 machine=is386 opsys=usg5-2-2
2725 ;;
2726
2727 ## Prime EXL
2728 i[3456]86-prime-sysv* )
2729 machine=i386 opsys=usg5-3
2730 ;;
2731
2732 ## Sequent Symmetry running Dynix
2733 i[3456]86-sequent-bsd* )
2734 machine=symmetry opsys=bsd4-3
2735 ;;
2736
2737 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2738 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2739 machine=sequent-ptx opsys=ptx4
2740 NON_GNU_CPP=/lib/cpp
2741 ;;
2742
2743 ## Sequent Symmetry running DYNIX/ptx
2744 ## Use the old cpp rather than the newer ANSI one.
2745 i[3456]86-sequent-ptx* )
2746 machine=sequent-ptx opsys=ptx
2747 NON_GNU_CPP="/lib/cpp"
2748 ;;
2749
2750 ## ncr machine running svr4.3.
2751 i[3456]86-ncr-sysv4.3 )
2752 machine=ncr386 opsys=usg5-4-3
2753 ;;
2754
2755 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2756 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2757 i[3456]86-ncr-sysv* )
2758 machine=ncr386 opsys=usg5-4-2
2759 ;;
2760
2761 ## Intel Paragon OSF/1
2762 i860-intel-osf1* )
2763 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2764 ;;
2765
2766 ## Intel 860
2767 i860-*-sysv4* )
2768 machine=i860 opsys=usg5-4
2769 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2770 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2771 ;;
2772
2773 ## Macintosh PowerPC
2774 powerpc*-*-linux-gnu* )
2775 machine=macppc opsys=gnu-linux
2776 ;;
2777
2778 ## Masscomp machines
2779 m68*-masscomp-rtu* )
2780 machine=masscomp opsys=rtu
2781 ;;
2782
2783 ## Megatest machines
2784 m68*-megatest-bsd* )
2785 machine=mega68 opsys=bsd4-2
2786 ;;
2787
2788 ## Workstations sold by MIPS
2789 ## This is not necessarily all workstations using the MIPS processor -
2790 ## Irises are produced by SGI, and DECstations by DEC.
2791
2792 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2793 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2794 ## it gives for choosing between the alternatives seems to be "Use
2795 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2796 ## the BSD world." I'll assume that these are instructions for
2797 ## handling two odd situations, and that every other situation
2798 ## should use mips.h and usg5-2-2, they being listed first.
2799 mips-mips-usg* )
2800 machine=mips4
2801 ## Fall through to the general code at the bottom to decide on the OS.
2802 ;;
2803 mips-mips-riscos4* )
2804 machine=mips4 opsys=bsd4-3
2805 NON_GNU_CC="cc -systype bsd43"
2806 NON_GNU_CPP="cc -systype bsd43 -E"
2807 ;;
2808 mips-mips-riscos5* )
2809 machine=mips4 opsys=riscos5
2810 NON_GNU_CC="cc -systype bsd43"
2811 NON_GNU_CPP="cc -systype bsd43 -E"
2812 ;;
2813 mips-mips-bsd* )
2814 machine=mips opsys=bsd4-3
2815 ;;
2816 mips-mips-* )
2817 machine=mips opsys=usg5-2-2
2818 ;;
2819
2820 ## NeXT
2821 m68*-next-* | m68k-*-nextstep* )
2822 machine=m68k opsys=nextstep
2823 ;;
2824
2825 ## The complete machine from National Semiconductor
2826 ns32k-ns-genix* )
2827 machine=ns32000 opsys=usg5-2
2828 ;;
2829
2830 ## NCR machines
2831 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2832 machine=tower32 opsys=usg5-2-2
2833 ;;
2834 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2835 machine=tower32v3 opsys=usg5-3
2836 ;;
2837
2838 ## NEC EWS4800
2839 mips-nec-sysv4*)
2840 machine=ews4800 opsys=ux4800
2841 ;;
2842
2843 ## Nixdorf Targon 31
2844 m68*-nixdorf-sysv* )
2845 machine=targon31 opsys=usg5-2-2
2846 ;;
2847
2848 ## Nu (TI or LMI)
2849 m68*-nu-sysv* )
2850 machine=nu opsys=usg5-2
2851 ;;
2852
2853 ## Plexus
2854 m68*-plexus-sysv* )
2855 machine=plexus opsys=usg5-2
2856 ;;
2857
2858 ## Pyramid machines
2859 ## I don't really have any idea what sort of processor the Pyramid has,
2860 ## so I'm assuming it is its own architecture.
2861 pyramid-pyramid-bsd* )
2862 machine=pyramid opsys=bsd4-2
2863 ;;
2864
2865 ## Sequent Balance
2866 ns32k-sequent-bsd4.2* )
2867 machine=sequent opsys=bsd4-2
2868 ;;
2869 ns32k-sequent-bsd4.3* )
2870 machine=sequent opsys=bsd4-3
2871 ;;
2872
2873 ## Siemens Nixdorf
2874 mips-siemens-sysv* | mips-sni-sysv*)
2875 machine=mips-siemens opsys=usg5-4
2876 NON_GNU_CC=/usr/ccs/bin/cc
2877 NON_GNU_CPP=/usr/ccs/lib/cpp
2878 ;;
2879
2880 ## Silicon Graphics machines
2881 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2882 m68*-sgi-iris3.5* )
2883 machine=irist opsys=iris3-5
2884 ;;
2885 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2886 machine=irist opsys=iris3-6
2887 ;;
2888 ## Iris 4D
2889 mips-sgi-irix3* )
2890 machine=iris4d opsys=irix3-3
2891 ;;
2892 mips-sgi-irix4* )
2893 machine=iris4d opsys=irix4-0
2894 ;;
2895 mips-sgi-irix6.5 )
2896 machine=iris4d opsys=irix6-5
2897 # Without defining _LANGUAGE_C, things get masked out in the headers
2898 # so that, for instance, grepping for `free' in stdlib.h fails and
2899 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2900 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2901 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2902 ;;
2903 mips-sgi-irix6* )
2904 machine=iris4d opsys=irix6-0
2905 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2906 # but presumably it does no harm.
2907 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2908 # -32 probably isn't necessary in later v.6s -- anyone know which?
2909 NON_GCC_TEST_OPTIONS=-32
2910 ;;
2911 mips-sgi-irix5.[01]* )
2912 machine=iris4d opsys=irix5-0
2913 ;;
2914 mips-sgi-irix5* | mips-sgi-irix* )
2915 machine=iris4d opsys=irix5-2
2916 ;;
2917
2918 ## SONY machines
2919 m68*-sony-bsd4.2* )
2920 machine=news opsys=bsd4-2
2921 ;;
2922 m68*-sony-bsd4.3* )
2923 machine=news opsys=bsd4-3
2924 ;;
2925 m68*-sony-newsos3* | m68*-sony-news3*)
2926 machine=news opsys=bsd4-3
2927 ;;
2928 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2929 machine=news-risc opsys=bsd4-3
2930 ;;
2931 mips-sony-newsos6* )
2932 machine=news-r6 opsys=newsos6
2933 ;;
2934 mips-sony-news* )
2935 machine=news-risc opsys=newsos5
2936 ;;
2937
2938 ## Stride
2939 m68*-stride-sysv* )
2940 machine=stride opsys=usg5-2
2941 ;;
2942
2943 ## Suns
2944 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2945 machine=sparc opsys=gnu-linux
2946 ;;
2947
2948 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2949 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2950 | rs6000-*-solaris2*)
2951 case "${canonical}" in
2952 m68*-sunos1* ) machine=sun1 ;;
2953 m68*-sunos2* ) machine=sun2 ;;
2954 m68* ) machine=sun3 ;;
2955 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2956 i[3456]86-*-* ) machine=intel386 ;;
2957 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2958 powerpcle* ) machine=powerpcle ;;
2959 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2960 sparc* ) machine=sparc ;;
2961 * ) unported=yes ;;
2962 esac
2963 case "${canonical}" in
2964 ## The Sun386 didn't get past 4.0.
2965 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2966 *-sunos4.0* ) opsys=sunos4-0 ;;
2967 *-sunos4.1.[3-9]*noshare )
2968 ## This name is sunos413 instead of sunos4-1-3
2969 ## to avoid a file name conflict on MSDOS.
2970 opsys=sunos413
2971 NON_GNU_CPP=/usr/lib/cpp
2972 NON_GCC_TEST_OPTIONS=-Bstatic
2973 GCC_TEST_OPTIONS=-static
2974 ;;
2975 *-sunos4.1.[3-9]* | *-sunos4shr*)
2976 opsys=sunos4shr
2977 NON_GNU_CPP=/usr/lib/cpp
2978 ;;
2979 *-sunos4* | *-sunos )
2980 opsys=sunos4-1
2981 NON_GCC_TEST_OPTIONS=-Bstatic
2982 GCC_TEST_OPTIONS=-static
2983 ;;
2984 *-sunos5.3* | *-solaris2.3* )
2985 opsys=sol2-3
2986 NON_GNU_CPP=/usr/ccs/lib/cpp
2987 ;;
2988 *-sunos5.4* | *-solaris2.4* )
2989 opsys=sol2-4
2990 NON_GNU_CPP=/usr/ccs/lib/cpp
2991 RANLIB="ar -ts"
2992 ;;
2993 *-sunos5.5* | *-solaris2.5* )
2994 opsys=sol2-5
2995 NON_GNU_CPP=/usr/ccs/lib/cpp
2996 RANLIB="ar -ts"
2997 ;;
2998 *-sunos5.6* | *-solaris2.6* )
2999 opsys=sol2-6
3000 NON_GNU_CPP=/usr/ccs/lib/cpp
3001 RANLIB="ar -ts"
3002 ;;
3003 *-sunos5* | *-solaris* )
3004 opsys=sol2-6
3005 ## FIXME: make this into a proper fix that checks the compiler type,
3006 ## rather than relying on path. Or is /usr/ccs/lib/cpp a bad default now?
3007 if [ "x$CC" = x/opt/SUNWspro/bin/cc ]; then
3008 ## -Xs prevents spurious whitespace.
3009 NON_GNU_CPP="/opt/SUNWspro/bin/cc -E -Xs"
3010 else
3011 NON_GNU_CPP=/usr/ccs/lib/cpp
3012 fi
3013 ;;
3014 * ) opsys=bsd4-2 ;;
3015 esac
3016 ## Watch out for a compiler that we know will not work.
3017 case "${canonical}" in
3018 *-solaris* | *-sunos5* )
3019 if [ "x$CC" = x/usr/ucb/cc ]; then
3020 ## /usr/ucb/cc doesn't work;
3021 ## we should find some other compiler that does work.
3022 unset CC
3023 fi
3024 ;;
3025 *) ;;
3026 esac
3027 ;;
3028 sparc-*-nextstep* )
3029 machine=sparc opsys=nextstep
3030 ;;
3031
3032 ## Tadpole 68k
3033 m68*-tadpole-sysv* )
3034 machine=tad68k opsys=usg5-3
3035 ;;
3036
3037 ## Tahoe machines
3038 tahoe-tahoe-bsd4.2* )
3039 machine=tahoe opsys=bsd4-2
3040 ;;
3041 tahoe-tahoe-bsd4.3* )
3042 machine=tahoe opsys=bsd4-3
3043 ;;
3044
3045 ## Tandem Integrity S2
3046 mips-tandem-sysv* )
3047 machine=tandem-s2 opsys=usg5-3
3048 ;;
3049
3050 ## Tektronix XD88
3051 m88k-tektronix-sysv3* )
3052 machine=tekxd88 opsys=usg5-3
3053 ;;
3054
3055 ## Tektronix 16000 box (6130?)
3056 ns16k-tektronix-bsd* )
3057 machine=ns16000 opsys=bsd4-2
3058 ;;
3059 ## Tektronix 4300
3060 ## src/m/tek4300.h hints that this is a m68k machine.
3061 m68*-tektronix-bsd* )
3062 machine=tek4300 opsys=bsd4-3
3063 ;;
3064
3065 ## Titan P2 or P3
3066 ## We seem to have lost the machine-description file titan.h!
3067 titan-titan-sysv* )
3068 machine=titan opsys=usg5-3
3069 ;;
3070
3071 ## Ustation E30 (SS5E)
3072 m68*-unisys-uniplus* )
3073 machine=ustation opsystem=unipl5-2
3074 ;;
3075
3076 ## Vaxen.
3077 vax-dec-* )
3078 machine=vax
3079 case "${canonical}" in
3080 *-bsd4.1* ) opsys=bsd4-1 ;;
3081 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3082 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3083 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3084 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3085 *-vms* ) opsys=vms ;;
3086 * ) unported=yes
3087 esac
3088 ;;
3089
3090 ## Whitechapel MG1
3091 ns16k-whitechapel-* )
3092 machine=mg1
3093 ## We don't know what sort of OS runs on these; we'll let the
3094 ## operating system guessing code below try.
3095 ;;
3096
3097 ## Wicat
3098 m68*-wicat-sysv* )
3099 machine=wicat opsys=usg5-2
3100 ;;
3101
3102 ## IA-64
3103 ia64*-*-linux* )
3104 machine=ia64 opsys=gnu-linux
3105 ;;
3106
3107 ## Intel 386 machines where we don't care about the manufacturer
3108 i[3456]86-*-* )
3109 machine=intel386
3110 case "${canonical}" in
3111 *-cygwin ) opsys=cygwin ;;
3112 *-darwin* ) opsys=darwin
3113 CPP="${CC-cc} -E -no-cpp-precomp"
3114 ;;
3115 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3116 *-isc2.2* ) opsys=isc2-2 ;;
3117 *-isc4.0* ) opsys=isc4-0 ;;
3118 *-isc4.* ) opsys=isc4-1
3119 GCC_TEST_OPTIONS=-posix
3120 NON_GCC_TEST_OPTIONS=-Xp
3121 ;;
3122 *-isc* ) opsys=isc3-0 ;;
3123 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3124 *-esix* ) opsys=esix ;;
3125 *-xenix* ) opsys=xenix ;;
3126 *-linux-gnu* ) opsys=gnu-linux ;;
3127 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3128 *-sco3.2v5* ) opsys=sco5
3129 NON_GNU_CPP=/lib/cpp
3130 # Prevent -belf from being passed to $CPP.
3131 # /lib/cpp does not accept it.
3132 OVERRIDE_CPPFLAGS=" "
3133 ;;
3134 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3135 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3136 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3137 *-386bsd* ) opsys=386bsd ;;
3138 *-nextstep* ) opsys=nextstep ;;
3139 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3140 esac
3141 ;;
3142
3143 ## m68k Linux-based GNU system
3144 m68k-*-linux-gnu* )
3145 machine=m68k opsys=gnu-linux
3146 ;;
3147
3148 ## Mips Linux-based GNU system
3149 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3150 machine=mips opsys=gnu-linux
3151 ;;
3152
3153 ## UXP/DS
3154 sparc-fujitsu-sysv4* )
3155 machine=sparc opsys=uxpds
3156 NON_GNU_CPP=/usr/ccs/lib/cpp
3157 RANLIB="ar -ts"
3158 ;;
3159
3160 ## UXP/V
3161 f301-fujitsu-uxpv4.1)
3162 machine=f301 opsys=uxpv
3163 ;;
3164
3165 ## AMD x86-64 Linux-based GNU system
3166 x86_64-*-linux-gnu* )
3167 machine=amdx86-64 opsys=gnu-linux
3168 ;;
3169
3170 ## Tensilica Xtensa Linux-based GNU system
3171 xtensa-*-linux-gnu* )
3172 machine=xtensa opsys=gnu-linux
3173 ;;
3174
3175 * )
3176 unported=yes
3177 ;;
3178 esac
3179
3180 ### If the code above didn't choose an operating system, just choose
3181 ### an operating system based on the configuration name. You really
3182 ### only want to use this when you have no idea what the right
3183 ### operating system is; if you know what operating systems a machine
3184 ### runs, it's cleaner to make it explicit in the case statement
3185 ### above.
3186 if test x"${opsys}" = x; then
3187 case "${canonical}" in
3188 *-gnu* ) opsys=gnu ;;
3189 *-bsd4.[01] ) opsys=bsd4-1 ;;
3190 *-bsd4.2 ) opsys=bsd4-2 ;;
3191 *-bsd4.3 ) opsys=bsd4-3 ;;
3192 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3193 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3194 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3195 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3196 *-sysv4.2uw* ) opsys=unixware ;;
3197 *-sysv5uw* ) opsys=unixware ;;
3198 *-sysv5OpenUNIX* ) opsys=unixware ;;
3199 *-sysv4.1* | *-sysvr4.1* )
3200 NON_GNU_CPP=/usr/lib/cpp
3201 opsys=usg5-4 ;;
3202 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3203 if [ x$NON_GNU_CPP = x ]; then
3204 if [ -f /usr/ccs/lib/cpp ]; then
3205 NON_GNU_CPP=/usr/ccs/lib/cpp
3206 else
3207 NON_GNU_CPP=/lib/cpp
3208 fi
3209 fi
3210 opsys=usg5-4-2 ;;
3211 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3212 * )
3213 unported=yes
3214 ;;
3215 esac
3216 fi
3217
3218
3219
3220 if test $unported = yes; then
3221 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3222 Check \`etc/MACHINES' for recognized configuration names." >&5
3223 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3224 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3225 { (exit 1); exit 1; }; }
3226 fi
3227
3228 machfile="m/${machine}.h"
3229 opsysfile="s/${opsys}.h"
3230
3231
3232 #### Choose a compiler.
3233 test -n "$CC" && cc_specified=yes
3234
3235 # Save the value of CFLAGS that the user specified.
3236 SPECIFIED_CFLAGS="$CFLAGS"
3237
3238 case ${with_gcc} in
3239 "yes" ) CC="gcc" GCC=yes ;;
3240 "no" ) : ${CC=cc} ;;
3241 * )
3242 esac
3243 ac_ext=c
3244 ac_cpp='$CPP $CPPFLAGS'
3245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248 if test -n "$ac_tool_prefix"; then
3249 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3250 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3253 if test "${ac_cv_prog_CC+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256 if test -n "$CC"; then
3257 ac_cv_prog_CC="$CC" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3266 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 break 2
3269 fi
3270 done
3271 done
3272 IFS=$as_save_IFS
3273
3274 fi
3275 fi
3276 CC=$ac_cv_prog_CC
3277 if test -n "$CC"; then
3278 { echo "$as_me:$LINENO: result: $CC" >&5
3279 echo "${ECHO_T}$CC" >&6; }
3280 else
3281 { echo "$as_me:$LINENO: result: no" >&5
3282 echo "${ECHO_T}no" >&6; }
3283 fi
3284
3285
3286 fi
3287 if test -z "$ac_cv_prog_CC"; then
3288 ac_ct_CC=$CC
3289 # Extract the first word of "gcc", so it can be a program name with args.
3290 set dummy gcc; ac_word=$2
3291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3293 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3295 else
3296 if test -n "$ac_ct_CC"; then
3297 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3298 else
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3301 do
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3306 ac_cv_prog_ac_ct_CC="gcc"
3307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 break 2
3309 fi
3310 done
3311 done
3312 IFS=$as_save_IFS
3313
3314 fi
3315 fi
3316 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3317 if test -n "$ac_ct_CC"; then
3318 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3319 echo "${ECHO_T}$ac_ct_CC" >&6; }
3320 else
3321 { echo "$as_me:$LINENO: result: no" >&5
3322 echo "${ECHO_T}no" >&6; }
3323 fi
3324
3325 if test "x$ac_ct_CC" = x; then
3326 CC=""
3327 else
3328 case $cross_compiling:$ac_tool_warned in
3329 yes:)
3330 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3331 whose name does not start with the host triplet. If you think this
3332 configuration is useful to you, please write to autoconf@gnu.org." >&5
3333 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3334 whose name does not start with the host triplet. If you think this
3335 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3336 ac_tool_warned=yes ;;
3337 esac
3338 CC=$ac_ct_CC
3339 fi
3340 else
3341 CC="$ac_cv_prog_CC"
3342 fi
3343
3344 if test -z "$CC"; then
3345 if test -n "$ac_tool_prefix"; then
3346 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3347 set dummy ${ac_tool_prefix}cc; ac_word=$2
3348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3350 if test "${ac_cv_prog_CC+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 else
3353 if test -n "$CC"; then
3354 ac_cv_prog_CC="$CC" # Let the user override the test.
3355 else
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH
3358 do
3359 IFS=$as_save_IFS
3360 test -z "$as_dir" && as_dir=.
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3363 ac_cv_prog_CC="${ac_tool_prefix}cc"
3364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 break 2
3366 fi
3367 done
3368 done
3369 IFS=$as_save_IFS
3370
3371 fi
3372 fi
3373 CC=$ac_cv_prog_CC
3374 if test -n "$CC"; then
3375 { echo "$as_me:$LINENO: result: $CC" >&5
3376 echo "${ECHO_T}$CC" >&6; }
3377 else
3378 { echo "$as_me:$LINENO: result: no" >&5
3379 echo "${ECHO_T}no" >&6; }
3380 fi
3381
3382
3383 fi
3384 fi
3385 if test -z "$CC"; then
3386 # Extract the first word of "cc", so it can be a program name with args.
3387 set dummy cc; ac_word=$2
3388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3390 if test "${ac_cv_prog_CC+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 else
3393 if test -n "$CC"; then
3394 ac_cv_prog_CC="$CC" # Let the user override the test.
3395 else
3396 ac_prog_rejected=no
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH
3399 do
3400 IFS=$as_save_IFS
3401 test -z "$as_dir" && as_dir=.
3402 for ac_exec_ext in '' $ac_executable_extensions; do
3403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3404 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3405 ac_prog_rejected=yes
3406 continue
3407 fi
3408 ac_cv_prog_CC="cc"
3409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 break 2
3411 fi
3412 done
3413 done
3414 IFS=$as_save_IFS
3415
3416 if test $ac_prog_rejected = yes; then
3417 # We found a bogon in the path, so make sure we never use it.
3418 set dummy $ac_cv_prog_CC
3419 shift
3420 if test $# != 0; then
3421 # We chose a different compiler from the bogus one.
3422 # However, it has the same basename, so the bogon will be chosen
3423 # first if we set CC to just the basename; use the full file name.
3424 shift
3425 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3426 fi
3427 fi
3428 fi
3429 fi
3430 CC=$ac_cv_prog_CC
3431 if test -n "$CC"; then
3432 { echo "$as_me:$LINENO: result: $CC" >&5
3433 echo "${ECHO_T}$CC" >&6; }
3434 else
3435 { echo "$as_me:$LINENO: result: no" >&5
3436 echo "${ECHO_T}no" >&6; }
3437 fi
3438
3439
3440 fi
3441 if test -z "$CC"; then
3442 if test -n "$ac_tool_prefix"; then
3443 for ac_prog in cl.exe
3444 do
3445 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3446 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3449 if test "${ac_cv_prog_CC+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 if test -n "$CC"; then
3453 ac_cv_prog_CC="$CC" # Let the user override the test.
3454 else
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3457 do
3458 IFS=$as_save_IFS
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3462 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 break 2
3465 fi
3466 done
3467 done
3468 IFS=$as_save_IFS
3469
3470 fi
3471 fi
3472 CC=$ac_cv_prog_CC
3473 if test -n "$CC"; then
3474 { echo "$as_me:$LINENO: result: $CC" >&5
3475 echo "${ECHO_T}$CC" >&6; }
3476 else
3477 { echo "$as_me:$LINENO: result: no" >&5
3478 echo "${ECHO_T}no" >&6; }
3479 fi
3480
3481
3482 test -n "$CC" && break
3483 done
3484 fi
3485 if test -z "$CC"; then
3486 ac_ct_CC=$CC
3487 for ac_prog in cl.exe
3488 do
3489 # Extract the first word of "$ac_prog", so it can be a program name with args.
3490 set dummy $ac_prog; ac_word=$2
3491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3493 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 else
3496 if test -n "$ac_ct_CC"; then
3497 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3498 else
3499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 for as_dir in $PATH
3501 do
3502 IFS=$as_save_IFS
3503 test -z "$as_dir" && as_dir=.
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3506 ac_cv_prog_ac_ct_CC="$ac_prog"
3507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3508 break 2
3509 fi
3510 done
3511 done
3512 IFS=$as_save_IFS
3513
3514 fi
3515 fi
3516 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3517 if test -n "$ac_ct_CC"; then
3518 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3519 echo "${ECHO_T}$ac_ct_CC" >&6; }
3520 else
3521 { echo "$as_me:$LINENO: result: no" >&5
3522 echo "${ECHO_T}no" >&6; }
3523 fi
3524
3525
3526 test -n "$ac_ct_CC" && break
3527 done
3528
3529 if test "x$ac_ct_CC" = x; then
3530 CC=""
3531 else
3532 case $cross_compiling:$ac_tool_warned in
3533 yes:)
3534 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3535 whose name does not start with the host triplet. If you think this
3536 configuration is useful to you, please write to autoconf@gnu.org." >&5
3537 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3538 whose name does not start with the host triplet. If you think this
3539 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3540 ac_tool_warned=yes ;;
3541 esac
3542 CC=$ac_ct_CC
3543 fi
3544 fi
3545
3546 fi
3547
3548
3549 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3550 See \`config.log' for more details." >&5
3551 echo "$as_me: error: no acceptable C compiler found in \$PATH
3552 See \`config.log' for more details." >&2;}
3553 { (exit 1); exit 1; }; }
3554
3555 # Provide some information about the compiler.
3556 echo "$as_me:$LINENO: checking for C compiler version" >&5
3557 ac_compiler=`set X $ac_compile; echo $2`
3558 { (ac_try="$ac_compiler --version >&5"
3559 case "(($ac_try" in
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3562 esac
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564 (eval "$ac_compiler --version >&5") 2>&5
3565 ac_status=$?
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); }
3568 { (ac_try="$ac_compiler -v >&5"
3569 case "(($ac_try" in
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3572 esac
3573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574 (eval "$ac_compiler -v >&5") 2>&5
3575 ac_status=$?
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }
3578 { (ac_try="$ac_compiler -V >&5"
3579 case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582 esac
3583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584 (eval "$ac_compiler -V >&5") 2>&5
3585 ac_status=$?
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }
3588
3589 cat >conftest.$ac_ext <<_ACEOF
3590 /* confdefs.h. */
3591 _ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h. */
3595
3596 int
3597 main ()
3598 {
3599
3600 ;
3601 return 0;
3602 }
3603 _ACEOF
3604 ac_clean_files_save=$ac_clean_files
3605 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3606 # Try to create an executable without -o first, disregard a.out.
3607 # It will help us diagnose broken compilers, and finding out an intuition
3608 # of exeext.
3609 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3610 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3611 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3612 #
3613 # List of possible output files, starting from the most likely.
3614 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3615 # only as a last resort. b.out is created by i960 compilers.
3616 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3617 #
3618 # The IRIX 6 linker writes into existing files which may not be
3619 # executable, retaining their permissions. Remove them first so a
3620 # subsequent execution test works.
3621 ac_rmfiles=
3622 for ac_file in $ac_files
3623 do
3624 case $ac_file in
3625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3626 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3627 esac
3628 done
3629 rm -f $ac_rmfiles
3630
3631 if { (ac_try="$ac_link_default"
3632 case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3635 esac
3636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3637 (eval "$ac_link_default") 2>&5
3638 ac_status=$?
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; then
3641 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3642 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3643 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3644 # so that the user can short-circuit this test for compilers unknown to
3645 # Autoconf.
3646 for ac_file in $ac_files ''
3647 do
3648 test -f "$ac_file" || continue
3649 case $ac_file in
3650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3651 ;;
3652 [ab].out )
3653 # We found the default executable, but exeext='' is most
3654 # certainly right.
3655 break;;
3656 *.* )
3657 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3658 then :; else
3659 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3660 fi
3661 # We set ac_cv_exeext here because the later test for it is not
3662 # safe: cross compilers may not add the suffix if given an `-o'
3663 # argument, so we may need to know it at that point already.
3664 # Even if this section looks crufty: it has the advantage of
3665 # actually working.
3666 break;;
3667 * )
3668 break;;
3669 esac
3670 done
3671 test "$ac_cv_exeext" = no && ac_cv_exeext=
3672
3673 else
3674 ac_file=''
3675 fi
3676
3677 { echo "$as_me:$LINENO: result: $ac_file" >&5
3678 echo "${ECHO_T}$ac_file" >&6; }
3679 if test -z "$ac_file"; then
3680 echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3682
3683 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3684 See \`config.log' for more details." >&5
3685 echo "$as_me: error: C compiler cannot create executables
3686 See \`config.log' for more details." >&2;}
3687 { (exit 77); exit 77; }; }
3688 fi
3689
3690 ac_exeext=$ac_cv_exeext
3691
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 the C compiler works" >&5
3695 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3696 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3697 # If not cross compiling, check that we can run a simple program.
3698 if test "$cross_compiling" != yes; then
3699 if { ac_try='./$ac_file'
3700 { (case "(($ac_try" in
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3703 esac
3704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3705 (eval "$ac_try") 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
3709 cross_compiling=no
3710 else
3711 if test "$cross_compiling" = maybe; then
3712 cross_compiling=yes
3713 else
3714 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3715 If you meant to cross compile, use \`--host'.
3716 See \`config.log' for more details." >&5
3717 echo "$as_me: error: cannot run C compiled programs.
3718 If you meant to cross compile, use \`--host'.
3719 See \`config.log' for more details." >&2;}
3720 { (exit 1); exit 1; }; }
3721 fi
3722 fi
3723 fi
3724 { echo "$as_me:$LINENO: result: yes" >&5
3725 echo "${ECHO_T}yes" >&6; }
3726
3727 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3728 ac_clean_files=$ac_clean_files_save
3729 # Check that the compiler produces executables we can run. If not, either
3730 # the compiler is broken, or we cross compile.
3731 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3732 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3733 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3734 echo "${ECHO_T}$cross_compiling" >&6; }
3735
3736 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3737 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3738 if { (ac_try="$ac_link"
3739 case "(($ac_try" in
3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741 *) ac_try_echo=$ac_try;;
3742 esac
3743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3744 (eval "$ac_link") 2>&5
3745 ac_status=$?
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; then
3748 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3749 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3750 # work properly (i.e., refer to `conftest.exe'), while it won't with
3751 # `rm'.
3752 for ac_file in conftest.exe conftest conftest.*; do
3753 test -f "$ac_file" || continue
3754 case $ac_file in
3755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3756 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3757 break;;
3758 * ) break;;
3759 esac
3760 done
3761 else
3762 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3763 See \`config.log' for more details." >&5
3764 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3765 See \`config.log' for more details." >&2;}
3766 { (exit 1); exit 1; }; }
3767 fi
3768
3769 rm -f conftest$ac_cv_exeext
3770 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3771 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3772
3773 rm -f conftest.$ac_ext
3774 EXEEXT=$ac_cv_exeext
3775 ac_exeext=$EXEEXT
3776 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3777 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3778 if test "${ac_cv_objext+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781 cat >conftest.$ac_ext <<_ACEOF
3782 /* confdefs.h. */
3783 _ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h. */
3787
3788 int
3789 main ()
3790 {
3791
3792 ;
3793 return 0;
3794 }
3795 _ACEOF
3796 rm -f conftest.o conftest.obj
3797 if { (ac_try="$ac_compile"
3798 case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3801 esac
3802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3803 (eval "$ac_compile") 2>&5
3804 ac_status=$?
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; then
3807 for ac_file in conftest.o conftest.obj conftest.*; do
3808 test -f "$ac_file" || continue;
3809 case $ac_file in
3810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3811 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3812 break;;
3813 esac
3814 done
3815 else
3816 echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3818
3819 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3820 See \`config.log' for more details." >&5
3821 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3822 See \`config.log' for more details." >&2;}
3823 { (exit 1); exit 1; }; }
3824 fi
3825
3826 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3827 fi
3828 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3829 echo "${ECHO_T}$ac_cv_objext" >&6; }
3830 OBJEXT=$ac_cv_objext
3831 ac_objext=$OBJEXT
3832 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3833 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3834 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837 cat >conftest.$ac_ext <<_ACEOF
3838 /* confdefs.h. */
3839 _ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3843
3844 int
3845 main ()
3846 {
3847 #ifndef __GNUC__
3848 choke me
3849 #endif
3850
3851 ;
3852 return 0;
3853 }
3854 _ACEOF
3855 rm -f conftest.$ac_objext
3856 if { (ac_try="$ac_compile"
3857 case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3860 esac
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862 (eval "$ac_compile") 2>conftest.er1
3863 ac_status=$?
3864 grep -v '^ *+' conftest.er1 >conftest.err
3865 rm -f conftest.er1
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } && {
3869 test -z "$ac_c_werror_flag" ||
3870 test ! -s conftest.err
3871 } && test -s conftest.$ac_objext; then
3872 ac_compiler_gnu=yes
3873 else
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3876
3877 ac_compiler_gnu=no
3878 fi
3879
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3882
3883 fi
3884 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3885 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3886 GCC=`test $ac_compiler_gnu = yes && echo yes`
3887 ac_test_CFLAGS=${CFLAGS+set}
3888 ac_save_CFLAGS=$CFLAGS
3889 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3890 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3891 if test "${ac_cv_prog_cc_g+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 else
3894 ac_save_c_werror_flag=$ac_c_werror_flag
3895 ac_c_werror_flag=yes
3896 ac_cv_prog_cc_g=no
3897 CFLAGS="-g"
3898 cat >conftest.$ac_ext <<_ACEOF
3899 /* confdefs.h. */
3900 _ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3904
3905 int
3906 main ()
3907 {
3908
3909 ;
3910 return 0;
3911 }
3912 _ACEOF
3913 rm -f conftest.$ac_objext
3914 if { (ac_try="$ac_compile"
3915 case "(($ac_try" in
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3918 esac
3919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3920 (eval "$ac_compile") 2>conftest.er1
3921 ac_status=$?
3922 grep -v '^ *+' conftest.er1 >conftest.err
3923 rm -f conftest.er1
3924 cat conftest.err >&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } && {
3927 test -z "$ac_c_werror_flag" ||
3928 test ! -s conftest.err
3929 } && test -s conftest.$ac_objext; then
3930 ac_cv_prog_cc_g=yes
3931 else
3932 echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3934
3935 CFLAGS=""
3936 cat >conftest.$ac_ext <<_ACEOF
3937 /* confdefs.h. */
3938 _ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3942
3943 int
3944 main ()
3945 {
3946
3947 ;
3948 return 0;
3949 }
3950 _ACEOF
3951 rm -f conftest.$ac_objext
3952 if { (ac_try="$ac_compile"
3953 case "(($ac_try" in
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3956 esac
3957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3958 (eval "$ac_compile") 2>conftest.er1
3959 ac_status=$?
3960 grep -v '^ *+' conftest.er1 >conftest.err
3961 rm -f conftest.er1
3962 cat conftest.err >&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } && {
3965 test -z "$ac_c_werror_flag" ||
3966 test ! -s conftest.err
3967 } && test -s conftest.$ac_objext; then
3968 :
3969 else
3970 echo "$as_me: failed program was:" >&5
3971 sed 's/^/| /' conftest.$ac_ext >&5
3972
3973 ac_c_werror_flag=$ac_save_c_werror_flag
3974 CFLAGS="-g"
3975 cat >conftest.$ac_ext <<_ACEOF
3976 /* confdefs.h. */
3977 _ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3981
3982 int
3983 main ()
3984 {
3985
3986 ;
3987 return 0;
3988 }
3989 _ACEOF
3990 rm -f conftest.$ac_objext
3991 if { (ac_try="$ac_compile"
3992 case "(($ac_try" in
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3995 esac
3996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3997 (eval "$ac_compile") 2>conftest.er1
3998 ac_status=$?
3999 grep -v '^ *+' conftest.er1 >conftest.err
4000 rm -f conftest.er1
4001 cat conftest.err >&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } && {
4004 test -z "$ac_c_werror_flag" ||
4005 test ! -s conftest.err
4006 } && test -s conftest.$ac_objext; then
4007 ac_cv_prog_cc_g=yes
4008 else
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4011
4012
4013 fi
4014
4015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016 fi
4017
4018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4019 fi
4020
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 ac_c_werror_flag=$ac_save_c_werror_flag
4023 fi
4024 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4025 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4026 if test "$ac_test_CFLAGS" = set; then
4027 CFLAGS=$ac_save_CFLAGS
4028 elif test $ac_cv_prog_cc_g = yes; then
4029 if test "$GCC" = yes; then
4030 CFLAGS="-g -O2"
4031 else
4032 CFLAGS="-g"
4033 fi
4034 else
4035 if test "$GCC" = yes; then
4036 CFLAGS="-O2"
4037 else
4038 CFLAGS=
4039 fi
4040 fi
4041 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4042 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4043 if test "${ac_cv_prog_cc_c89+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046 ac_cv_prog_cc_c89=no
4047 ac_save_CC=$CC
4048 cat >conftest.$ac_ext <<_ACEOF
4049 /* confdefs.h. */
4050 _ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4054 #include <stdarg.h>
4055 #include <stdio.h>
4056 #include <sys/types.h>
4057 #include <sys/stat.h>
4058 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4059 struct buf { int x; };
4060 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4061 static char *e (p, i)
4062 char **p;
4063 int i;
4064 {
4065 return p[i];
4066 }
4067 static char *f (char * (*g) (char **, int), char **p, ...)
4068 {
4069 char *s;
4070 va_list v;
4071 va_start (v,p);
4072 s = g (p, va_arg (v,int));
4073 va_end (v);
4074 return s;
4075 }
4076
4077 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4078 function prototypes and stuff, but not '\xHH' hex character constants.
4079 These don't provoke an error unfortunately, instead are silently treated
4080 as 'x'. The following induces an error, until -std is added to get
4081 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4082 array size at least. It's necessary to write '\x00'==0 to get something
4083 that's true only with -std. */
4084 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4085
4086 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4087 inside strings and character constants. */
4088 #define FOO(x) 'x'
4089 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4090
4091 int test (int i, double x);
4092 struct s1 {int (*f) (int a);};
4093 struct s2 {int (*f) (double a);};
4094 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4095 int argc;
4096 char **argv;
4097 int
4098 main ()
4099 {
4100 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4101 ;
4102 return 0;
4103 }
4104 _ACEOF
4105 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4106 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4107 do
4108 CC="$ac_save_CC $ac_arg"
4109 rm -f conftest.$ac_objext
4110 if { (ac_try="$ac_compile"
4111 case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4114 esac
4115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116 (eval "$ac_compile") 2>conftest.er1
4117 ac_status=$?
4118 grep -v '^ *+' conftest.er1 >conftest.err
4119 rm -f conftest.er1
4120 cat conftest.err >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } && {
4123 test -z "$ac_c_werror_flag" ||
4124 test ! -s conftest.err
4125 } && test -s conftest.$ac_objext; then
4126 ac_cv_prog_cc_c89=$ac_arg
4127 else
4128 echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4130
4131
4132 fi
4133
4134 rm -f core conftest.err conftest.$ac_objext
4135 test "x$ac_cv_prog_cc_c89" != "xno" && break
4136 done
4137 rm -f conftest.$ac_ext
4138 CC=$ac_save_CC
4139
4140 fi
4141 # AC_CACHE_VAL
4142 case "x$ac_cv_prog_cc_c89" in
4143 x)
4144 { echo "$as_me:$LINENO: result: none needed" >&5
4145 echo "${ECHO_T}none needed" >&6; } ;;
4146 xno)
4147 { echo "$as_me:$LINENO: result: unsupported" >&5
4148 echo "${ECHO_T}unsupported" >&6; } ;;
4149 *)
4150 CC="$CC $ac_cv_prog_cc_c89"
4151 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4152 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4153 esac
4154
4155
4156 ac_ext=c
4157 ac_cpp='$CPP $CPPFLAGS'
4158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161
4162
4163 # On Suns, sometimes $CPP names a directory.
4164 if test -n "$CPP" && test -d "$CPP"; then
4165 CPP=
4166 fi
4167
4168 #### Some systems specify a CPP to use unless we are using GCC.
4169 #### Now that we know whether we are using GCC, we can decide whether
4170 #### to use that one.
4171 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4172 then
4173 CPP="$NON_GNU_CPP"
4174 fi
4175
4176 #### Some systems specify a CC to use unless we are using GCC.
4177 #### Now that we know whether we are using GCC, we can decide whether
4178 #### to use that one.
4179 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4180 test x$cc_specified != xyes
4181 then
4182 CC="$NON_GNU_CC"
4183 fi
4184
4185 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4186 then
4187 CC="$CC $GCC_TEST_OPTIONS"
4188 fi
4189
4190 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4191 then
4192 CC="$CC $NON_GCC_TEST_OPTIONS"
4193 fi
4194
4195
4196 ac_ext=c
4197 ac_cpp='$CPP $CPPFLAGS'
4198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4201 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4202 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4203 # On Suns, sometimes $CPP names a directory.
4204 if test -n "$CPP" && test -d "$CPP"; then
4205 CPP=
4206 fi
4207 if test -z "$CPP"; then
4208 if test "${ac_cv_prog_CPP+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 else
4211 # Double quotes because CPP needs to be expanded
4212 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4213 do
4214 ac_preproc_ok=false
4215 for ac_c_preproc_warn_flag in '' yes
4216 do
4217 # Use a header file that comes with gcc, so configuring glibc
4218 # with a fresh cross-compiler works.
4219 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4220 # <limits.h> exists even on freestanding compilers.
4221 # On the NeXT, cc -E runs the code through the compiler's parser,
4222 # not just through cpp. "Syntax error" is here to catch this case.
4223 cat >conftest.$ac_ext <<_ACEOF
4224 /* confdefs.h. */
4225 _ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4229 #ifdef __STDC__
4230 # include <limits.h>
4231 #else
4232 # include <assert.h>
4233 #endif
4234 Syntax error
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 :
4253 else
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4256
4257 # Broken: fails on valid input.
4258 continue
4259 fi
4260
4261 rm -f conftest.err conftest.$ac_ext
4262
4263 # OK, works on sane cases. Now check whether nonexistent headers
4264 # can be detected and how.
4265 cat >conftest.$ac_ext <<_ACEOF
4266 /* confdefs.h. */
4267 _ACEOF
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h. */
4271 #include <ac_nonexistent.h>
4272 _ACEOF
4273 if { (ac_try="$ac_cpp conftest.$ac_ext"
4274 case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277 esac
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4280 ac_status=$?
4281 grep -v '^ *+' conftest.er1 >conftest.err
4282 rm -f conftest.er1
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } >/dev/null && {
4286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4287 test ! -s conftest.err
4288 }; then
4289 # Broken: success on invalid input.
4290 continue
4291 else
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295 # Passes both tests.
4296 ac_preproc_ok=:
4297 break
4298 fi
4299
4300 rm -f conftest.err conftest.$ac_ext
4301
4302 done
4303 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4304 rm -f conftest.err conftest.$ac_ext
4305 if $ac_preproc_ok; then
4306 break
4307 fi
4308
4309 done
4310 ac_cv_prog_CPP=$CPP
4311
4312 fi
4313 CPP=$ac_cv_prog_CPP
4314 else
4315 ac_cv_prog_CPP=$CPP
4316 fi
4317 { echo "$as_me:$LINENO: result: $CPP" >&5
4318 echo "${ECHO_T}$CPP" >&6; }
4319 ac_preproc_ok=false
4320 for ac_c_preproc_warn_flag in '' yes
4321 do
4322 # Use a header file that comes with gcc, so configuring glibc
4323 # with a fresh cross-compiler works.
4324 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4325 # <limits.h> exists even on freestanding compilers.
4326 # On the NeXT, cc -E runs the code through the compiler's parser,
4327 # not just through cpp. "Syntax error" is here to catch this case.
4328 cat >conftest.$ac_ext <<_ACEOF
4329 /* confdefs.h. */
4330 _ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4334 #ifdef __STDC__
4335 # include <limits.h>
4336 #else
4337 # include <assert.h>
4338 #endif
4339 Syntax error
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 :
4358 else
4359 echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4361
4362 # Broken: fails on valid input.
4363 continue
4364 fi
4365
4366 rm -f conftest.err conftest.$ac_ext
4367
4368 # OK, works on sane cases. Now check whether nonexistent headers
4369 # can be detected and how.
4370 cat >conftest.$ac_ext <<_ACEOF
4371 /* confdefs.h. */
4372 _ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h. */
4376 #include <ac_nonexistent.h>
4377 _ACEOF
4378 if { (ac_try="$ac_cpp conftest.$ac_ext"
4379 case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382 esac
4383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4385 ac_status=$?
4386 grep -v '^ *+' conftest.er1 >conftest.err
4387 rm -f conftest.er1
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } >/dev/null && {
4391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4392 test ! -s conftest.err
4393 }; then
4394 # Broken: success on invalid input.
4395 continue
4396 else
4397 echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4399
4400 # Passes both tests.
4401 ac_preproc_ok=:
4402 break
4403 fi
4404
4405 rm -f conftest.err conftest.$ac_ext
4406
4407 done
4408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4409 rm -f conftest.err conftest.$ac_ext
4410 if $ac_preproc_ok; then
4411 :
4412 else
4413 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4414 See \`config.log' for more details." >&5
4415 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4416 See \`config.log' for more details." >&2;}
4417 { (exit 1); exit 1; }; }
4418 fi
4419
4420 ac_ext=c
4421 ac_cpp='$CPP $CPPFLAGS'
4422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4425
4426
4427 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4428 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4429 if test "${ac_cv_path_GREP+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432 # Extract the first word of "grep ggrep" to use in msg output
4433 if test -z "$GREP"; then
4434 set dummy grep ggrep; ac_prog_name=$2
4435 if test "${ac_cv_path_GREP+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 else
4438 ac_path_GREP_found=false
4439 # Loop through the user's path and test for each of PROGNAME-LIST
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4442 do
4443 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=.
4445 for ac_prog in grep ggrep; do
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4448 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4449 # Check for GNU ac_path_GREP and select it if it is found.
4450 # Check for GNU $ac_path_GREP
4451 case `"$ac_path_GREP" --version 2>&1` in
4452 *GNU*)
4453 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4454 *)
4455 ac_count=0
4456 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4457 while :
4458 do
4459 cat "conftest.in" "conftest.in" >"conftest.tmp"
4460 mv "conftest.tmp" "conftest.in"
4461 cp "conftest.in" "conftest.nl"
4462 echo 'GREP' >> "conftest.nl"
4463 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4464 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4465 ac_count=`expr $ac_count + 1`
4466 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4467 # Best one so far, save it but keep looking for a better one
4468 ac_cv_path_GREP="$ac_path_GREP"
4469 ac_path_GREP_max=$ac_count
4470 fi
4471 # 10*(2^10) chars as input seems more than enough
4472 test $ac_count -gt 10 && break
4473 done
4474 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4475 esac
4476
4477
4478 $ac_path_GREP_found && break 3
4479 done
4480 done
4481
4482 done
4483 IFS=$as_save_IFS
4484
4485
4486 fi
4487
4488 GREP="$ac_cv_path_GREP"
4489 if test -z "$GREP"; then
4490 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4491 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4492 { (exit 1); exit 1; }; }
4493 fi
4494
4495 else
4496 ac_cv_path_GREP=$GREP
4497 fi
4498
4499
4500 fi
4501 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4502 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4503 GREP="$ac_cv_path_GREP"
4504
4505
4506 { echo "$as_me:$LINENO: checking for egrep" >&5
4507 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4508 if test "${ac_cv_path_EGREP+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 else
4511 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4512 then ac_cv_path_EGREP="$GREP -E"
4513 else
4514 # Extract the first word of "egrep" to use in msg output
4515 if test -z "$EGREP"; then
4516 set dummy egrep; ac_prog_name=$2
4517 if test "${ac_cv_path_EGREP+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520 ac_path_EGREP_found=false
4521 # Loop through the user's path and test for each of PROGNAME-LIST
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4524 do
4525 IFS=$as_save_IFS
4526 test -z "$as_dir" && as_dir=.
4527 for ac_prog in egrep; do
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4530 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4531 # Check for GNU ac_path_EGREP and select it if it is found.
4532 # Check for GNU $ac_path_EGREP
4533 case `"$ac_path_EGREP" --version 2>&1` in
4534 *GNU*)
4535 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4536 *)
4537 ac_count=0
4538 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4539 while :
4540 do
4541 cat "conftest.in" "conftest.in" >"conftest.tmp"
4542 mv "conftest.tmp" "conftest.in"
4543 cp "conftest.in" "conftest.nl"
4544 echo 'EGREP' >> "conftest.nl"
4545 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4546 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4547 ac_count=`expr $ac_count + 1`
4548 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4549 # Best one so far, save it but keep looking for a better one
4550 ac_cv_path_EGREP="$ac_path_EGREP"
4551 ac_path_EGREP_max=$ac_count
4552 fi
4553 # 10*(2^10) chars as input seems more than enough
4554 test $ac_count -gt 10 && break
4555 done
4556 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4557 esac
4558
4559
4560 $ac_path_EGREP_found && break 3
4561 done
4562 done
4563
4564 done
4565 IFS=$as_save_IFS
4566
4567
4568 fi
4569
4570 EGREP="$ac_cv_path_EGREP"
4571 if test -z "$EGREP"; then
4572 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4573 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4574 { (exit 1); exit 1; }; }
4575 fi
4576
4577 else
4578 ac_cv_path_EGREP=$EGREP
4579 fi
4580
4581
4582 fi
4583 fi
4584 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4585 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4586 EGREP="$ac_cv_path_EGREP"
4587
4588
4589
4590 { echo "$as_me:$LINENO: checking for AIX" >&5
4591 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4592 cat >conftest.$ac_ext <<_ACEOF
4593 /* confdefs.h. */
4594 _ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4598 #ifdef _AIX
4599 yes
4600 #endif
4601
4602 _ACEOF
4603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4604 $EGREP "yes" >/dev/null 2>&1; then
4605 { echo "$as_me:$LINENO: result: yes" >&5
4606 echo "${ECHO_T}yes" >&6; }
4607 cat >>confdefs.h <<\_ACEOF
4608 #define _ALL_SOURCE 1
4609 _ACEOF
4610
4611 else
4612 { echo "$as_me:$LINENO: result: no" >&5
4613 echo "${ECHO_T}no" >&6; }
4614 fi
4615 rm -f conftest*
4616
4617
4618
4619 cat >>confdefs.h <<\_ACEOF
4620 #define _GNU_SOURCE 1
4621 _ACEOF
4622
4623
4624
4625 ### Use -Wno-pointer-sign if the compiler supports it
4626 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4627 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4628 SAVE_CFLAGS="$CFLAGS"
4629 CFLAGS="$CFLAGS -Wno-pointer-sign"
4630 cat >conftest.$ac_ext <<_ACEOF
4631 /* confdefs.h. */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4636
4637 int
4638 main ()
4639 {
4640
4641 ;
4642 return 0;
4643 }
4644 _ACEOF
4645 rm -f conftest.$ac_objext
4646 if { (ac_try="$ac_compile"
4647 case "(($ac_try" in
4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649 *) ac_try_echo=$ac_try;;
4650 esac
4651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4652 (eval "$ac_compile") 2>conftest.er1
4653 ac_status=$?
4654 grep -v '^ *+' conftest.er1 >conftest.err
4655 rm -f conftest.er1
4656 cat conftest.err >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } && {
4659 test -z "$ac_c_werror_flag" ||
4660 test ! -s conftest.err
4661 } && test -s conftest.$ac_objext; then
4662 has_option=yes
4663 else
4664 echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4666
4667 has_option=no
4668 fi
4669
4670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671 if test $has_option = yes; then
4672 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4673 fi
4674 { echo "$as_me:$LINENO: result: $has_option" >&5
4675 echo "${ECHO_T}$has_option" >&6; }
4676 CFLAGS="$SAVE_CFLAGS"
4677 unset has_option
4678 unset SAVE_CFLAGS
4679
4680 #### Some other nice autoconf tests.
4681
4682 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4683 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4684 LN_S=$as_ln_s
4685 if test "$LN_S" = "ln -s"; then
4686 { echo "$as_me:$LINENO: result: yes" >&5
4687 echo "${ECHO_T}yes" >&6; }
4688 else
4689 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4690 echo "${ECHO_T}no, using $LN_S" >&6; }
4691 fi
4692
4693 ac_ext=c
4694 ac_cpp='$CPP $CPPFLAGS'
4695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4698 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4699 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4700 # On Suns, sometimes $CPP names a directory.
4701 if test -n "$CPP" && test -d "$CPP"; then
4702 CPP=
4703 fi
4704 if test -z "$CPP"; then
4705 if test "${ac_cv_prog_CPP+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 else
4708 # Double quotes because CPP needs to be expanded
4709 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4710 do
4711 ac_preproc_ok=false
4712 for ac_c_preproc_warn_flag in '' yes
4713 do
4714 # Use a header file that comes with gcc, so configuring glibc
4715 # with a fresh cross-compiler works.
4716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4717 # <limits.h> exists even on freestanding compilers.
4718 # On the NeXT, cc -E runs the code through the compiler's parser,
4719 # not just through cpp. "Syntax error" is here to catch this case.
4720 cat >conftest.$ac_ext <<_ACEOF
4721 /* confdefs.h. */
4722 _ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4726 #ifdef __STDC__
4727 # include <limits.h>
4728 #else
4729 # include <assert.h>
4730 #endif
4731 Syntax error
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 :
4750 else
4751 echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4753
4754 # Broken: fails on valid input.
4755 continue
4756 fi
4757
4758 rm -f conftest.err conftest.$ac_ext
4759
4760 # OK, works on sane cases. Now check whether nonexistent headers
4761 # can be detected and how.
4762 cat >conftest.$ac_ext <<_ACEOF
4763 /* confdefs.h. */
4764 _ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4768 #include <ac_nonexistent.h>
4769 _ACEOF
4770 if { (ac_try="$ac_cpp conftest.$ac_ext"
4771 case "(($ac_try" in
4772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4773 *) ac_try_echo=$ac_try;;
4774 esac
4775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4777 ac_status=$?
4778 grep -v '^ *+' conftest.er1 >conftest.err
4779 rm -f conftest.er1
4780 cat conftest.err >&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); } >/dev/null && {
4783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4784 test ! -s conftest.err
4785 }; then
4786 # Broken: success on invalid input.
4787 continue
4788 else
4789 echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4791
4792 # Passes both tests.
4793 ac_preproc_ok=:
4794 break
4795 fi
4796
4797 rm -f conftest.err conftest.$ac_ext
4798
4799 done
4800 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4801 rm -f conftest.err conftest.$ac_ext
4802 if $ac_preproc_ok; then
4803 break
4804 fi
4805
4806 done
4807 ac_cv_prog_CPP=$CPP
4808
4809 fi
4810 CPP=$ac_cv_prog_CPP
4811 else
4812 ac_cv_prog_CPP=$CPP
4813 fi
4814 { echo "$as_me:$LINENO: result: $CPP" >&5
4815 echo "${ECHO_T}$CPP" >&6; }
4816 ac_preproc_ok=false
4817 for ac_c_preproc_warn_flag in '' yes
4818 do
4819 # Use a header file that comes with gcc, so configuring glibc
4820 # with a fresh cross-compiler works.
4821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4822 # <limits.h> exists even on freestanding compilers.
4823 # On the NeXT, cc -E runs the code through the compiler's parser,
4824 # not just through cpp. "Syntax error" is here to catch this case.
4825 cat >conftest.$ac_ext <<_ACEOF
4826 /* confdefs.h. */
4827 _ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4831 #ifdef __STDC__
4832 # include <limits.h>
4833 #else
4834 # include <assert.h>
4835 #endif
4836 Syntax error
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 :
4855 else
4856 echo "$as_me: failed program was:" >&5
4857 sed 's/^/| /' conftest.$ac_ext >&5
4858
4859 # Broken: fails on valid input.
4860 continue
4861 fi
4862
4863 rm -f conftest.err conftest.$ac_ext
4864
4865 # OK, works on sane cases. Now check whether nonexistent headers
4866 # can be detected and how.
4867 cat >conftest.$ac_ext <<_ACEOF
4868 /* confdefs.h. */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4873 #include <ac_nonexistent.h>
4874 _ACEOF
4875 if { (ac_try="$ac_cpp conftest.$ac_ext"
4876 case "(($ac_try" in
4877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4878 *) ac_try_echo=$ac_try;;
4879 esac
4880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4882 ac_status=$?
4883 grep -v '^ *+' conftest.er1 >conftest.err
4884 rm -f conftest.er1
4885 cat conftest.err >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } >/dev/null && {
4888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4889 test ! -s conftest.err
4890 }; then
4891 # Broken: success on invalid input.
4892 continue
4893 else
4894 echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.$ac_ext >&5
4896
4897 # Passes both tests.
4898 ac_preproc_ok=:
4899 break
4900 fi
4901
4902 rm -f conftest.err conftest.$ac_ext
4903
4904 done
4905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4906 rm -f conftest.err conftest.$ac_ext
4907 if $ac_preproc_ok; then
4908 :
4909 else
4910 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4911 See \`config.log' for more details." >&5
4912 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4913 See \`config.log' for more details." >&2;}
4914 { (exit 1); exit 1; }; }
4915 fi
4916
4917 ac_ext=c
4918 ac_cpp='$CPP $CPPFLAGS'
4919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4922
4923 # Find a good install program. We prefer a C program (faster),
4924 # so one script is as good as another. But avoid the broken or
4925 # incompatible versions:
4926 # SysV /etc/install, /usr/sbin/install
4927 # SunOS /usr/etc/install
4928 # IRIX /sbin/install
4929 # AIX /bin/install
4930 # AmigaOS /C/install, which installs bootblocks on floppy discs
4931 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4932 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4933 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4934 # OS/2's system install, which has a completely different semantic
4935 # ./install, which can be erroneously created by make from ./install.sh.
4936 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4937 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4938 if test -z "$INSTALL"; then
4939 if test "${ac_cv_path_install+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4944 do
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
4947 # Account for people who put trailing slashes in PATH elements.
4948 case $as_dir/ in
4949 ./ | .// | /cC/* | \
4950 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4951 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4952 /usr/ucb/* ) ;;
4953 *)
4954 # OSF1 and SCO ODT 3.0 have their own names for install.
4955 # Don't use installbsd from OSF since it installs stuff as root
4956 # by default.
4957 for ac_prog in ginstall scoinst install; do
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4960 if test $ac_prog = install &&
4961 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4962 # AIX install. It has an incompatible calling convention.
4963 :
4964 elif test $ac_prog = install &&
4965 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4966 # program-specific install script used by HP pwplus--don't use.
4967 :
4968 else
4969 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4970 break 3
4971 fi
4972 fi
4973 done
4974 done
4975 ;;
4976 esac
4977 done
4978 IFS=$as_save_IFS
4979
4980
4981 fi
4982 if test "${ac_cv_path_install+set}" = set; then
4983 INSTALL=$ac_cv_path_install
4984 else
4985 # As a last resort, use the slow shell script. Don't cache a
4986 # value for INSTALL within a source directory, because that will
4987 # break other packages using the cache if that directory is
4988 # removed, or if the value is a relative name.
4989 INSTALL=$ac_install_sh
4990 fi
4991 fi
4992 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4993 echo "${ECHO_T}$INSTALL" >&6; }
4994
4995 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4996 # It thinks the first close brace ends the variable substitution.
4997 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4998
4999 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5000
5001 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5002
5003 if test "x$RANLIB" = x; then
5004 if test -n "$ac_tool_prefix"; then
5005 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5006 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5009 if test "${ac_cv_prog_RANLIB+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012 if test -n "$RANLIB"; then
5013 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5014 else
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5017 do
5018 IFS=$as_save_IFS
5019 test -z "$as_dir" && as_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 break 2
5025 fi
5026 done
5027 done
5028 IFS=$as_save_IFS
5029
5030 fi
5031 fi
5032 RANLIB=$ac_cv_prog_RANLIB
5033 if test -n "$RANLIB"; then
5034 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5035 echo "${ECHO_T}$RANLIB" >&6; }
5036 else
5037 { echo "$as_me:$LINENO: result: no" >&5
5038 echo "${ECHO_T}no" >&6; }
5039 fi
5040
5041
5042 fi
5043 if test -z "$ac_cv_prog_RANLIB"; then
5044 ac_ct_RANLIB=$RANLIB
5045 # Extract the first word of "ranlib", so it can be a program name with args.
5046 set dummy ranlib; ac_word=$2
5047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5049 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 else
5052 if test -n "$ac_ct_RANLIB"; then
5053 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5054 else
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5057 do
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062 ac_cv_prog_ac_ct_RANLIB="ranlib"
5063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 break 2
5065 fi
5066 done
5067 done
5068 IFS=$as_save_IFS
5069
5070 fi
5071 fi
5072 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5073 if test -n "$ac_ct_RANLIB"; then
5074 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5075 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5076 else
5077 { echo "$as_me:$LINENO: result: no" >&5
5078 echo "${ECHO_T}no" >&6; }
5079 fi
5080
5081 if test "x$ac_ct_RANLIB" = x; then
5082 RANLIB=":"
5083 else
5084 case $cross_compiling:$ac_tool_warned in
5085 yes:)
5086 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5087 whose name does not start with the host triplet. If you think this
5088 configuration is useful to you, please write to autoconf@gnu.org." >&5
5089 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5090 whose name does not start with the host triplet. If you think this
5091 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5092 ac_tool_warned=yes ;;
5093 esac
5094 RANLIB=$ac_ct_RANLIB
5095 fi
5096 else
5097 RANLIB="$ac_cv_prog_RANLIB"
5098 fi
5099
5100 fi
5101 # Extract the first word of "install-info", so it can be a program name with args.
5102 set dummy install-info; ac_word=$2
5103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5105 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 else
5108 case $INSTALL_INFO in
5109 [\\/]* | ?:[\\/]*)
5110 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5111 ;;
5112 *)
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5115 do
5116 IFS=$as_save_IFS
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5120 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 break 2
5123 fi
5124 done
5125 done
5126 IFS=$as_save_IFS
5127
5128 ;;
5129 esac
5130 fi
5131 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5132 if test -n "$INSTALL_INFO"; then
5133 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5134 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5135 else
5136 { echo "$as_me:$LINENO: result: no" >&5
5137 echo "${ECHO_T}no" >&6; }
5138 fi
5139
5140
5141 # Extract the first word of "install-info", so it can be a program name with args.
5142 set dummy install-info; ac_word=$2
5143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5145 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148 case $INSTALL_INFO in
5149 [\\/]* | ?:[\\/]*)
5150 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5151 ;;
5152 *)
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 for as_dir in /usr/sbin
5155 do
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5160 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 break 2
5163 fi
5164 done
5165 done
5166 IFS=$as_save_IFS
5167
5168 ;;
5169 esac
5170 fi
5171 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5172 if test -n "$INSTALL_INFO"; then
5173 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5174 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5175 else
5176 { echo "$as_me:$LINENO: result: no" >&5
5177 echo "${ECHO_T}no" >&6; }
5178 fi
5179
5180
5181 # Extract the first word of "install-info", so it can be a program name with args.
5182 set dummy install-info; ac_word=$2
5183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5185 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 else
5188 case $INSTALL_INFO in
5189 [\\/]* | ?:[\\/]*)
5190 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5191 ;;
5192 *)
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in /sbin
5195 do
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5200 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5203 fi
5204 done
5205 done
5206 IFS=$as_save_IFS
5207
5208 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5209 ;;
5210 esac
5211 fi
5212 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5213 if test -n "$INSTALL_INFO"; then
5214 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5215 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5216 else
5217 { echo "$as_me:$LINENO: result: no" >&5
5218 echo "${ECHO_T}no" >&6; }
5219 fi
5220
5221
5222 # Extract the first word of "gzip", so it can be a program name with args.
5223 set dummy gzip; ac_word=$2
5224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5226 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229 case $GZIP_PROG in
5230 [\\/]* | ?:[\\/]*)
5231 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5232 ;;
5233 *)
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5236 do
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5241 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 break 2
5244 fi
5245 done
5246 done
5247 IFS=$as_save_IFS
5248
5249 ;;
5250 esac
5251 fi
5252 GZIP_PROG=$ac_cv_path_GZIP_PROG
5253 if test -n "$GZIP_PROG"; then
5254 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5255 echo "${ECHO_T}$GZIP_PROG" >&6; }
5256 else
5257 { echo "$as_me:$LINENO: result: no" >&5
5258 echo "${ECHO_T}no" >&6; }
5259 fi
5260
5261
5262
5263
5264 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5265 then
5266 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5267 fi
5268
5269 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5270 then
5271 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5272 fi
5273
5274
5275 late_LDFLAGS=$LDFLAGS
5276 if test "$GCC" = yes; then
5277 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5278 else
5279 LDFLAGS="$LDFLAGS -znocombreloc"
5280 fi
5281
5282 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5283 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5284 cat >conftest.$ac_ext <<_ACEOF
5285 main(){return 0;}
5286 _ACEOF
5287 rm -f conftest.$ac_objext conftest$ac_exeext
5288 if { (ac_try="$ac_link"
5289 case "(($ac_try" in
5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5292 esac
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294 (eval "$ac_link") 2>conftest.er1
5295 ac_status=$?
5296 grep -v '^ *+' conftest.er1 >conftest.err
5297 rm -f conftest.er1
5298 cat conftest.err >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } && {
5301 test -z "$ac_c_werror_flag" ||
5302 test ! -s conftest.err
5303 } && test -s conftest$ac_exeext &&
5304 $as_test_x conftest$ac_exeext; then
5305 { echo "$as_me:$LINENO: result: yes" >&5
5306 echo "${ECHO_T}yes" >&6; }
5307 else
5308 echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5310
5311 LDFLAGS=$late_LDFLAGS
5312 { echo "$as_me:$LINENO: result: no" >&5
5313 echo "${ECHO_T}no" >&6; }
5314 fi
5315
5316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5317 conftest$ac_exeext conftest.$ac_ext
5318
5319 #### Extract some information from the operating system and machine files.
5320
5321 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5322 - which libraries the lib-src programs will want, and
5323 - whether the GNU malloc routines are usable..." >&5
5324 echo "$as_me: checking the machine- and system-dependent files to find out
5325 - which libraries the lib-src programs will want, and
5326 - whether the GNU malloc routines are usable..." >&6;}
5327
5328 ### First figure out CFLAGS (which we use for running the compiler here)
5329 ### and REAL_CFLAGS (which we use for real compilation).
5330 ### The two are the same except on a few systems, where they are made
5331 ### different to work around various lossages. For example,
5332 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5333 ### as implying static linking.
5334
5335 ### If the CFLAGS env var is specified, we use that value
5336 ### instead of the default.
5337
5338 ### It's not important that this name contain the PID; you can't run
5339 ### two configures in the same directory and have anything work
5340 ### anyway.
5341 tempcname="conftest.c"
5342
5343 echo '
5344 #include "'${srcdir}'/src/'${opsysfile}'"
5345 #include "'${srcdir}'/src/'${machfile}'"
5346 #ifndef LIBS_MACHINE
5347 #define LIBS_MACHINE
5348 #endif
5349 #ifndef LIBS_SYSTEM
5350 #define LIBS_SYSTEM
5351 #endif
5352 #ifndef C_SWITCH_SYSTEM
5353 #define C_SWITCH_SYSTEM
5354 #endif
5355 #ifndef C_SWITCH_MACHINE
5356 #define C_SWITCH_MACHINE
5357 #endif
5358 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5359 configure___ c_switch_system=C_SWITCH_SYSTEM
5360 configure___ c_switch_machine=C_SWITCH_MACHINE
5361
5362 #ifndef LIB_X11_LIB
5363 #define LIB_X11_LIB -lX11
5364 #endif
5365
5366 #ifndef LIBX11_MACHINE
5367 #define LIBX11_MACHINE
5368 #endif
5369
5370 #ifndef LIBX11_SYSTEM
5371 #define LIBX11_SYSTEM
5372 #endif
5373 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5374
5375 #ifdef UNEXEC
5376 configure___ unexec=UNEXEC
5377 #else
5378 configure___ unexec=unexec.o
5379 #endif
5380
5381 #ifdef SYSTEM_MALLOC
5382 configure___ system_malloc=yes
5383 #else
5384 configure___ system_malloc=no
5385 #endif
5386
5387 #ifdef USE_MMAP_FOR_BUFFERS
5388 configure___ use_mmap_for_buffers=yes
5389 #else
5390 configure___ use_mmap_for_buffers=no
5391 #endif
5392
5393 #ifndef C_DEBUG_SWITCH
5394 #define C_DEBUG_SWITCH -g
5395 #endif
5396
5397 #ifndef C_OPTIMIZE_SWITCH
5398 #ifdef __GNUC__
5399 #define C_OPTIMIZE_SWITCH -O2
5400 #else
5401 #define C_OPTIMIZE_SWITCH -O
5402 #endif
5403 #endif
5404
5405 #ifndef C_WARNINGS_SWITCH
5406 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5407 #endif
5408
5409 #ifndef LD_SWITCH_MACHINE
5410 #define LD_SWITCH_MACHINE
5411 #endif
5412
5413 #ifndef LD_SWITCH_SYSTEM
5414 #define LD_SWITCH_SYSTEM
5415 #endif
5416
5417 #ifndef LD_SWITCH_X_SITE_AUX
5418 #define LD_SWITCH_X_SITE_AUX
5419 #endif
5420
5421 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5422 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5423
5424 #ifdef THIS_IS_CONFIGURE
5425
5426 /* Get the CFLAGS for tests in configure. */
5427 #ifdef __GNUC__
5428 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5429 #else
5430 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5431 #endif
5432
5433 #else /* not THIS_IS_CONFIGURE */
5434
5435 /* Get the CFLAGS for real compilation. */
5436 #ifdef __GNUC__
5437 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5438 #else
5439 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5440 #endif
5441
5442 #endif /* not THIS_IS_CONFIGURE */
5443 ' > ${tempcname}
5444
5445 # The value of CPP is a quoted variable reference, so we need to do this
5446 # to get its actual value...
5447 CPP=`eval "echo $CPP"`
5448 eval `${CPP} -Isrc ${tempcname} \
5449 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5450 if test "x$SPECIFIED_CFLAGS" = x; then
5451 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5452 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5453 else
5454 REAL_CFLAGS="$CFLAGS"
5455 fi
5456 rm ${tempcname}
5457
5458 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5459
5460 ### Make sure subsequent tests use flags consistent with the build flags.
5461
5462 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5463 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5464 else
5465 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5466 fi
5467
5468
5469
5470 # Check whether --enable-largefile was given.
5471 if test "${enable_largefile+set}" = set; then
5472 enableval=$enable_largefile;
5473 fi
5474
5475 if test "$enable_largefile" != no; then
5476
5477 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5478 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5479 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5481 else
5482 ac_cv_sys_largefile_CC=no
5483 if test "$GCC" != yes; then
5484 ac_save_CC=$CC
5485 while :; do
5486 # IRIX 6.2 and later do not support large files by default,
5487 # so use the C compiler's -n32 option if that helps.
5488 cat >conftest.$ac_ext <<_ACEOF
5489 /* confdefs.h. */
5490 _ACEOF
5491 cat confdefs.h >>conftest.$ac_ext
5492 cat >>conftest.$ac_ext <<_ACEOF
5493 /* end confdefs.h. */
5494 #include <sys/types.h>
5495 /* Check that off_t can represent 2**63 - 1 correctly.
5496 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5497 since some C++ compilers masquerading as C compilers
5498 incorrectly reject 9223372036854775807. */
5499 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5500 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5501 && LARGE_OFF_T % 2147483647 == 1)
5502 ? 1 : -1];
5503 int
5504 main ()
5505 {
5506
5507 ;
5508 return 0;
5509 }
5510 _ACEOF
5511 rm -f conftest.$ac_objext
5512 if { (ac_try="$ac_compile"
5513 case "(($ac_try" in
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5516 esac
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_compile") 2>conftest.er1
5519 ac_status=$?
5520 grep -v '^ *+' conftest.er1 >conftest.err
5521 rm -f conftest.er1
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } && {
5525 test -z "$ac_c_werror_flag" ||
5526 test ! -s conftest.err
5527 } && test -s conftest.$ac_objext; then
5528 break
5529 else
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5532
5533
5534 fi
5535
5536 rm -f core conftest.err conftest.$ac_objext
5537 CC="$CC -n32"
5538 rm -f conftest.$ac_objext
5539 if { (ac_try="$ac_compile"
5540 case "(($ac_try" in
5541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542 *) ac_try_echo=$ac_try;;
5543 esac
5544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545 (eval "$ac_compile") 2>conftest.er1
5546 ac_status=$?
5547 grep -v '^ *+' conftest.er1 >conftest.err
5548 rm -f conftest.er1
5549 cat conftest.err >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } && {
5552 test -z "$ac_c_werror_flag" ||
5553 test ! -s conftest.err
5554 } && test -s conftest.$ac_objext; then
5555 ac_cv_sys_largefile_CC=' -n32'; break
5556 else
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5559
5560
5561 fi
5562
5563 rm -f core conftest.err conftest.$ac_objext
5564 break
5565 done
5566 CC=$ac_save_CC
5567 rm -f conftest.$ac_ext
5568 fi
5569 fi
5570 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5571 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5572 if test "$ac_cv_sys_largefile_CC" != no; then
5573 CC=$CC$ac_cv_sys_largefile_CC
5574 fi
5575
5576 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5577 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5578 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
5580 else
5581 while :; do
5582 cat >conftest.$ac_ext <<_ACEOF
5583 /* confdefs.h. */
5584 _ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5588 #include <sys/types.h>
5589 /* Check that off_t can represent 2**63 - 1 correctly.
5590 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5591 since some C++ compilers masquerading as C compilers
5592 incorrectly reject 9223372036854775807. */
5593 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5594 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5595 && LARGE_OFF_T % 2147483647 == 1)
5596 ? 1 : -1];
5597 int
5598 main ()
5599 {
5600
5601 ;
5602 return 0;
5603 }
5604 _ACEOF
5605 rm -f conftest.$ac_objext
5606 if { (ac_try="$ac_compile"
5607 case "(($ac_try" in
5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5610 esac
5611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612 (eval "$ac_compile") 2>conftest.er1
5613 ac_status=$?
5614 grep -v '^ *+' conftest.er1 >conftest.err
5615 rm -f conftest.er1
5616 cat conftest.err >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } && {
5619 test -z "$ac_c_werror_flag" ||
5620 test ! -s conftest.err
5621 } && test -s conftest.$ac_objext; then
5622 ac_cv_sys_file_offset_bits=no; break
5623 else
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5626
5627
5628 fi
5629
5630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5631 cat >conftest.$ac_ext <<_ACEOF
5632 /* confdefs.h. */
5633 _ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5637 #define _FILE_OFFSET_BITS 64
5638 #include <sys/types.h>
5639 /* Check that off_t can represent 2**63 - 1 correctly.
5640 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5641 since some C++ compilers masquerading as C compilers
5642 incorrectly reject 9223372036854775807. */
5643 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5644 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5645 && LARGE_OFF_T % 2147483647 == 1)
5646 ? 1 : -1];
5647 int
5648 main ()
5649 {
5650
5651 ;
5652 return 0;
5653 }
5654 _ACEOF
5655 rm -f conftest.$ac_objext
5656 if { (ac_try="$ac_compile"
5657 case "(($ac_try" in
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5660 esac
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_compile") 2>conftest.er1
5663 ac_status=$?
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } && {
5669 test -z "$ac_c_werror_flag" ||
5670 test ! -s conftest.err
5671 } && test -s conftest.$ac_objext; then
5672 ac_cv_sys_file_offset_bits=64; break
5673 else
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5676
5677
5678 fi
5679
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 ac_cv_sys_file_offset_bits=unknown
5682 break
5683 done
5684 fi
5685 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5686 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5687 case $ac_cv_sys_file_offset_bits in #(
5688 no | unknown) ;;
5689 *)
5690 cat >>confdefs.h <<_ACEOF
5691 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5692 _ACEOF
5693 ;;
5694 esac
5695 rm -f conftest*
5696 if test $ac_cv_sys_file_offset_bits = unknown; then
5697 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5698 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5699 if test "${ac_cv_sys_large_files+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702 while :; do
5703 cat >conftest.$ac_ext <<_ACEOF
5704 /* confdefs.h. */
5705 _ACEOF
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h. */
5709 #include <sys/types.h>
5710 /* Check that off_t can represent 2**63 - 1 correctly.
5711 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5712 since some C++ compilers masquerading as C compilers
5713 incorrectly reject 9223372036854775807. */
5714 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5715 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5716 && LARGE_OFF_T % 2147483647 == 1)
5717 ? 1 : -1];
5718 int
5719 main ()
5720 {
5721
5722 ;
5723 return 0;
5724 }
5725 _ACEOF
5726 rm -f conftest.$ac_objext
5727 if { (ac_try="$ac_compile"
5728 case "(($ac_try" in
5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730 *) ac_try_echo=$ac_try;;
5731 esac
5732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733 (eval "$ac_compile") 2>conftest.er1
5734 ac_status=$?
5735 grep -v '^ *+' conftest.er1 >conftest.err
5736 rm -f conftest.er1
5737 cat conftest.err >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } && {
5740 test -z "$ac_c_werror_flag" ||
5741 test ! -s conftest.err
5742 } && test -s conftest.$ac_objext; then
5743 ac_cv_sys_large_files=no; break
5744 else
5745 echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.$ac_ext >&5
5747
5748
5749 fi
5750
5751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5752 cat >conftest.$ac_ext <<_ACEOF
5753 /* confdefs.h. */
5754 _ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5758 #define _LARGE_FILES 1
5759 #include <sys/types.h>
5760 /* Check that off_t can represent 2**63 - 1 correctly.
5761 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5762 since some C++ compilers masquerading as C compilers
5763 incorrectly reject 9223372036854775807. */
5764 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5765 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5766 && LARGE_OFF_T % 2147483647 == 1)
5767 ? 1 : -1];
5768 int
5769 main ()
5770 {
5771
5772 ;
5773 return 0;
5774 }
5775 _ACEOF
5776 rm -f conftest.$ac_objext
5777 if { (ac_try="$ac_compile"
5778 case "(($ac_try" in
5779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780 *) ac_try_echo=$ac_try;;
5781 esac
5782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783 (eval "$ac_compile") 2>conftest.er1
5784 ac_status=$?
5785 grep -v '^ *+' conftest.er1 >conftest.err
5786 rm -f conftest.er1
5787 cat conftest.err >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } && {
5790 test -z "$ac_c_werror_flag" ||
5791 test ! -s conftest.err
5792 } && test -s conftest.$ac_objext; then
5793 ac_cv_sys_large_files=1; break
5794 else
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5797
5798
5799 fi
5800
5801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5802 ac_cv_sys_large_files=unknown
5803 break
5804 done
5805 fi
5806 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5807 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5808 case $ac_cv_sys_large_files in #(
5809 no | unknown) ;;
5810 *)
5811 cat >>confdefs.h <<_ACEOF
5812 #define _LARGE_FILES $ac_cv_sys_large_files
5813 _ACEOF
5814 ;;
5815 esac
5816 rm -f conftest*
5817 fi
5818 fi
5819
5820
5821
5822 ### The standard library on x86-64 GNU/Linux distributions can
5823 ### be located in either /usr/lib64 or /usr/lib.
5824 case "${canonical}" in
5825 x86_64-*-linux-gnu* )
5826 if test -d /usr/lib64; then
5827
5828 cat >>confdefs.h <<\_ACEOF
5829 #define HAVE_X86_64_LIB64_DIR 1
5830 _ACEOF
5831
5832 fi
5833 esac
5834
5835
5836
5837
5838 if test "${with_sound}" != "no"; then
5839 # Sound support for GNU/Linux and the free BSDs.
5840 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5841 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5842 if test "${ac_cv_header_stdc+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5844 else
5845 cat >conftest.$ac_ext <<_ACEOF
5846 /* confdefs.h. */
5847 _ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5851 #include <stdlib.h>
5852 #include <stdarg.h>
5853 #include <string.h>
5854 #include <float.h>
5855
5856 int
5857 main ()
5858 {
5859
5860 ;
5861 return 0;
5862 }
5863 _ACEOF
5864 rm -f conftest.$ac_objext
5865 if { (ac_try="$ac_compile"
5866 case "(($ac_try" in
5867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5869 esac
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871 (eval "$ac_compile") 2>conftest.er1
5872 ac_status=$?
5873 grep -v '^ *+' conftest.er1 >conftest.err
5874 rm -f conftest.er1
5875 cat conftest.err >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } && {
5878 test -z "$ac_c_werror_flag" ||
5879 test ! -s conftest.err
5880 } && test -s conftest.$ac_objext; then
5881 ac_cv_header_stdc=yes
5882 else
5883 echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5885
5886 ac_cv_header_stdc=no
5887 fi
5888
5889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5890
5891 if test $ac_cv_header_stdc = yes; then
5892 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5893 cat >conftest.$ac_ext <<_ACEOF
5894 /* confdefs.h. */
5895 _ACEOF
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5899 #include <string.h>
5900
5901 _ACEOF
5902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5903 $EGREP "memchr" >/dev/null 2>&1; then
5904 :
5905 else
5906 ac_cv_header_stdc=no
5907 fi
5908 rm -f conftest*
5909
5910 fi
5911
5912 if test $ac_cv_header_stdc = yes; then
5913 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5914 cat >conftest.$ac_ext <<_ACEOF
5915 /* confdefs.h. */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5920 #include <stdlib.h>
5921
5922 _ACEOF
5923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5924 $EGREP "free" >/dev/null 2>&1; then
5925 :
5926 else
5927 ac_cv_header_stdc=no
5928 fi
5929 rm -f conftest*
5930
5931 fi
5932
5933 if test $ac_cv_header_stdc = yes; then
5934 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5935 if test "$cross_compiling" = yes; then
5936 :
5937 else
5938 cat >conftest.$ac_ext <<_ACEOF
5939 /* confdefs.h. */
5940 _ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5944 #include <ctype.h>
5945 #include <stdlib.h>
5946 #if ((' ' & 0x0FF) == 0x020)
5947 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5948 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5949 #else
5950 # define ISLOWER(c) \
5951 (('a' <= (c) && (c) <= 'i') \
5952 || ('j' <= (c) && (c) <= 'r') \
5953 || ('s' <= (c) && (c) <= 'z'))
5954 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5955 #endif
5956
5957 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5958 int
5959 main ()
5960 {
5961 int i;
5962 for (i = 0; i < 256; i++)
5963 if (XOR (islower (i), ISLOWER (i))
5964 || toupper (i) != TOUPPER (i))
5965 return 2;
5966 return 0;
5967 }
5968 _ACEOF
5969 rm -f conftest$ac_exeext
5970 if { (ac_try="$ac_link"
5971 case "(($ac_try" in
5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5974 esac
5975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976 (eval "$ac_link") 2>&5
5977 ac_status=$?
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5980 { (case "(($ac_try" in
5981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982 *) ac_try_echo=$ac_try;;
5983 esac
5984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5985 (eval "$ac_try") 2>&5
5986 ac_status=$?
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); }; }; then
5989 :
5990 else
5991 echo "$as_me: program exited with status $ac_status" >&5
5992 echo "$as_me: failed program was:" >&5
5993 sed 's/^/| /' conftest.$ac_ext >&5
5994
5995 ( exit $ac_status )
5996 ac_cv_header_stdc=no
5997 fi
5998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5999 fi
6000
6001
6002 fi
6003 fi
6004 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6005 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6006 if test $ac_cv_header_stdc = yes; then
6007
6008 cat >>confdefs.h <<\_ACEOF
6009 #define STDC_HEADERS 1
6010 _ACEOF
6011
6012 fi
6013
6014 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6025 inttypes.h stdint.h unistd.h
6026 do
6027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 else
6033 cat >conftest.$ac_ext <<_ACEOF
6034 /* confdefs.h. */
6035 _ACEOF
6036 cat confdefs.h >>conftest.$ac_ext
6037 cat >>conftest.$ac_ext <<_ACEOF
6038 /* end confdefs.h. */
6039 $ac_includes_default
6040
6041 #include <$ac_header>
6042 _ACEOF
6043 rm -f conftest.$ac_objext
6044 if { (ac_try="$ac_compile"
6045 case "(($ac_try" in
6046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047 *) ac_try_echo=$ac_try;;
6048 esac
6049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050 (eval "$ac_compile") 2>conftest.er1
6051 ac_status=$?
6052 grep -v '^ *+' conftest.er1 >conftest.err
6053 rm -f conftest.er1
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } && {
6057 test -z "$ac_c_werror_flag" ||
6058 test ! -s conftest.err
6059 } && test -s conftest.$ac_objext; then
6060 eval "$as_ac_Header=yes"
6061 else
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6064
6065 eval "$as_ac_Header=no"
6066 fi
6067
6068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6069 fi
6070 ac_res=`eval echo '${'$as_ac_Header'}'`
6071 { echo "$as_me:$LINENO: result: $ac_res" >&5
6072 echo "${ECHO_T}$ac_res" >&6; }
6073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6074 cat >>confdefs.h <<_ACEOF
6075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6076 _ACEOF
6077
6078 fi
6079
6080 done
6081
6082
6083
6084
6085
6086 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6087 do
6088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 fi
6095 ac_res=`eval echo '${'$as_ac_Header'}'`
6096 { echo "$as_me:$LINENO: result: $ac_res" >&5
6097 echo "${ECHO_T}$ac_res" >&6; }
6098 else
6099 # Is the header compilable?
6100 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6101 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6102 cat >conftest.$ac_ext <<_ACEOF
6103 /* confdefs.h. */
6104 _ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 $ac_includes_default
6109 #include <$ac_header>
6110 _ACEOF
6111 rm -f conftest.$ac_objext
6112 if { (ac_try="$ac_compile"
6113 case "(($ac_try" in
6114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6115 *) ac_try_echo=$ac_try;;
6116 esac
6117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6118 (eval "$ac_compile") 2>conftest.er1
6119 ac_status=$?
6120 grep -v '^ *+' conftest.er1 >conftest.err
6121 rm -f conftest.er1
6122 cat conftest.err >&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } && {
6125 test -z "$ac_c_werror_flag" ||
6126 test ! -s conftest.err
6127 } && test -s conftest.$ac_objext; then
6128 ac_header_compiler=yes
6129 else
6130 echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.$ac_ext >&5
6132
6133 ac_header_compiler=no
6134 fi
6135
6136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6137 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6138 echo "${ECHO_T}$ac_header_compiler" >&6; }
6139
6140 # Is the header present?
6141 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6142 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6143 cat >conftest.$ac_ext <<_ACEOF
6144 /* confdefs.h. */
6145 _ACEOF
6146 cat confdefs.h >>conftest.$ac_ext
6147 cat >>conftest.$ac_ext <<_ACEOF
6148 /* end confdefs.h. */
6149 #include <$ac_header>
6150 _ACEOF
6151 if { (ac_try="$ac_cpp conftest.$ac_ext"
6152 case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6155 esac
6156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6158 ac_status=$?
6159 grep -v '^ *+' conftest.er1 >conftest.err
6160 rm -f conftest.er1
6161 cat conftest.err >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } >/dev/null && {
6164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6165 test ! -s conftest.err
6166 }; then
6167 ac_header_preproc=yes
6168 else
6169 echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6171
6172 ac_header_preproc=no
6173 fi
6174
6175 rm -f conftest.err conftest.$ac_ext
6176 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6177 echo "${ECHO_T}$ac_header_preproc" >&6; }
6178
6179 # So? What about this header?
6180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6181 yes:no: )
6182 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6183 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6185 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6186 ac_header_preproc=yes
6187 ;;
6188 no:yes:* )
6189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6193 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6194 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6195 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6196 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6199 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6200 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6201
6202 ;;
6203 esac
6204 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 else
6209 eval "$as_ac_Header=\$ac_header_preproc"
6210 fi
6211 ac_res=`eval echo '${'$as_ac_Header'}'`
6212 { echo "$as_me:$LINENO: result: $ac_res" >&5
6213 echo "${ECHO_T}$ac_res" >&6; }
6214
6215 fi
6216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6217 cat >>confdefs.h <<_ACEOF
6218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6219 _ACEOF
6220
6221 fi
6222
6223 done
6224
6225 # Emulation library used on NetBSD.
6226 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6227 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6228 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231 ac_check_lib_save_LIBS=$LIBS
6232 LIBS="-lossaudio $LIBS"
6233 cat >conftest.$ac_ext <<_ACEOF
6234 /* confdefs.h. */
6235 _ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6239
6240 /* Override any GCC internal prototype to avoid an error.
6241 Use char because int might match the return type of a GCC
6242 builtin and then its argument prototype would still apply. */
6243 #ifdef __cplusplus
6244 extern "C"
6245 #endif
6246 char _oss_ioctl ();
6247 int
6248 main ()
6249 {
6250 return _oss_ioctl ();
6251 ;
6252 return 0;
6253 }
6254 _ACEOF
6255 rm -f conftest.$ac_objext conftest$ac_exeext
6256 if { (ac_try="$ac_link"
6257 case "(($ac_try" in
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6260 esac
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262 (eval "$ac_link") 2>conftest.er1
6263 ac_status=$?
6264 grep -v '^ *+' conftest.er1 >conftest.err
6265 rm -f conftest.er1
6266 cat conftest.err >&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } && {
6269 test -z "$ac_c_werror_flag" ||
6270 test ! -s conftest.err
6271 } && test -s conftest$ac_exeext &&
6272 $as_test_x conftest$ac_exeext; then
6273 ac_cv_lib_ossaudio__oss_ioctl=yes
6274 else
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6277
6278 ac_cv_lib_ossaudio__oss_ioctl=no
6279 fi
6280
6281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6282 conftest$ac_exeext conftest.$ac_ext
6283 LIBS=$ac_check_lib_save_LIBS
6284 fi
6285 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6286 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6287 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6288 LIBSOUND=-lossaudio
6289 else
6290 LIBSOUND=
6291 fi
6292
6293
6294
6295 ALSA_REQUIRED=1.0.0
6296 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6297 if test "X${with_pkg_config_prog}" != X; then
6298 PKG_CONFIG="${with_pkg_config_prog}"
6299 fi
6300
6301 succeeded=no
6302
6303 if test -z "$PKG_CONFIG"; then
6304 # Extract the first word of "pkg-config", so it can be a program name with args.
6305 set dummy pkg-config; ac_word=$2
6306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6308 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 else
6311 case $PKG_CONFIG in
6312 [\\/]* | ?:[\\/]*)
6313 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6314 ;;
6315 *)
6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 for as_dir in $PATH
6318 do
6319 IFS=$as_save_IFS
6320 test -z "$as_dir" && as_dir=.
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6323 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6325 break 2
6326 fi
6327 done
6328 done
6329 IFS=$as_save_IFS
6330
6331 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6332 ;;
6333 esac
6334 fi
6335 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6336 if test -n "$PKG_CONFIG"; then
6337 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6338 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6339 else
6340 { echo "$as_me:$LINENO: result: no" >&5
6341 echo "${ECHO_T}no" >&6; }
6342 fi
6343
6344
6345 fi
6346
6347 if test "$PKG_CONFIG" = "no" ; then
6348 HAVE_ALSA=no
6349 else
6350 PKG_CONFIG_MIN_VERSION=0.9.0
6351 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6352 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6353 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6354
6355 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6356 { echo "$as_me:$LINENO: result: yes" >&5
6357 echo "${ECHO_T}yes" >&6; }
6358 succeeded=yes
6359
6360 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6361 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6362 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6363 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6364 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6365
6366 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6367 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6368 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6369 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6370 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6371 else
6372 { echo "$as_me:$LINENO: result: no" >&5
6373 echo "${ECHO_T}no" >&6; }
6374 ALSA_CFLAGS=""
6375 ALSA_LIBS=""
6376 ## If we have a custom action on failure, don't print errors, but
6377 ## do set a variable so people can do so.
6378 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6379
6380 fi
6381
6382
6383
6384 else
6385 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6386 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6387 fi
6388 fi
6389
6390 if test $succeeded = yes; then
6391 HAVE_ALSA=yes
6392 else
6393 HAVE_ALSA=no
6394 fi
6395
6396 if test $HAVE_ALSA = yes; then
6397 SAVE_CFLAGS="$CFLAGS"
6398 SAVE_LDFLAGS="$LDFLAGS"
6399 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6400 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6401 cat >conftest.$ac_ext <<_ACEOF
6402 /* confdefs.h. */
6403 _ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h. */
6407 #include <asoundlib.h>
6408 int
6409 main ()
6410 {
6411 snd_lib_error_set_handler (0);
6412 ;
6413 return 0;
6414 }
6415 _ACEOF
6416 rm -f conftest.$ac_objext
6417 if { (ac_try="$ac_compile"
6418 case "(($ac_try" in
6419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6420 *) ac_try_echo=$ac_try;;
6421 esac
6422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6423 (eval "$ac_compile") 2>conftest.er1
6424 ac_status=$?
6425 grep -v '^ *+' conftest.er1 >conftest.err
6426 rm -f conftest.er1
6427 cat conftest.err >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } && {
6430 test -z "$ac_c_werror_flag" ||
6431 test ! -s conftest.err
6432 } && test -s conftest.$ac_objext; then
6433 emacs_alsa_normal=yes
6434 else
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6437
6438 emacs_alsa_normal=no
6439 fi
6440
6441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442 if test "$emacs_alsa_normal" != yes; then
6443 cat >conftest.$ac_ext <<_ACEOF
6444 /* confdefs.h. */
6445 _ACEOF
6446 cat confdefs.h >>conftest.$ac_ext
6447 cat >>conftest.$ac_ext <<_ACEOF
6448 /* end confdefs.h. */
6449 #include <alsa/asoundlib.h>
6450 int
6451 main ()
6452 {
6453 snd_lib_error_set_handler (0);
6454 ;
6455 return 0;
6456 }
6457 _ACEOF
6458 rm -f conftest.$ac_objext
6459 if { (ac_try="$ac_compile"
6460 case "(($ac_try" in
6461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462 *) ac_try_echo=$ac_try;;
6463 esac
6464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6465 (eval "$ac_compile") 2>conftest.er1
6466 ac_status=$?
6467 grep -v '^ *+' conftest.er1 >conftest.err
6468 rm -f conftest.er1
6469 cat conftest.err >&5
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } && {
6472 test -z "$ac_c_werror_flag" ||
6473 test ! -s conftest.err
6474 } && test -s conftest.$ac_objext; then
6475 emacs_alsa_subdir=yes
6476 else
6477 echo "$as_me: failed program was:" >&5
6478 sed 's/^/| /' conftest.$ac_ext >&5
6479
6480 emacs_alsa_subdir=no
6481 fi
6482
6483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484 if test "$emacs_alsa_subdir" != yes; then
6485 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6486 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6487 { (exit 1); exit 1; }; }
6488 fi
6489 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6490 fi
6491
6492 CFLAGS="$SAVE_CFLAGS"
6493 LDFLAGS="$SAVE_LDFLAGS"
6494 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6495 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6496
6497 cat >>confdefs.h <<\_ACEOF
6498 #define HAVE_ALSA 1
6499 _ACEOF
6500
6501 fi
6502
6503 fi
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6531 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6532 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6533 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6534 sys/utsname.h pwd.h
6535 do
6536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 fi
6543 ac_res=`eval echo '${'$as_ac_Header'}'`
6544 { echo "$as_me:$LINENO: result: $ac_res" >&5
6545 echo "${ECHO_T}$ac_res" >&6; }
6546 else
6547 # Is the header compilable?
6548 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6549 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6550 cat >conftest.$ac_ext <<_ACEOF
6551 /* confdefs.h. */
6552 _ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6556 $ac_includes_default
6557 #include <$ac_header>
6558 _ACEOF
6559 rm -f conftest.$ac_objext
6560 if { (ac_try="$ac_compile"
6561 case "(($ac_try" in
6562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6563 *) ac_try_echo=$ac_try;;
6564 esac
6565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6566 (eval "$ac_compile") 2>conftest.er1
6567 ac_status=$?
6568 grep -v '^ *+' conftest.er1 >conftest.err
6569 rm -f conftest.er1
6570 cat conftest.err >&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } && {
6573 test -z "$ac_c_werror_flag" ||
6574 test ! -s conftest.err
6575 } && test -s conftest.$ac_objext; then
6576 ac_header_compiler=yes
6577 else
6578 echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6580
6581 ac_header_compiler=no
6582 fi
6583
6584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6586 echo "${ECHO_T}$ac_header_compiler" >&6; }
6587
6588 # Is the header present?
6589 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6591 cat >conftest.$ac_ext <<_ACEOF
6592 /* confdefs.h. */
6593 _ACEOF
6594 cat confdefs.h >>conftest.$ac_ext
6595 cat >>conftest.$ac_ext <<_ACEOF
6596 /* end confdefs.h. */
6597 #include <$ac_header>
6598 _ACEOF
6599 if { (ac_try="$ac_cpp conftest.$ac_ext"
6600 case "(($ac_try" in
6601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6602 *) ac_try_echo=$ac_try;;
6603 esac
6604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6606 ac_status=$?
6607 grep -v '^ *+' conftest.er1 >conftest.err
6608 rm -f conftest.er1
6609 cat conftest.err >&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); } >/dev/null && {
6612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6613 test ! -s conftest.err
6614 }; then
6615 ac_header_preproc=yes
6616 else
6617 echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6619
6620 ac_header_preproc=no
6621 fi
6622
6623 rm -f conftest.err conftest.$ac_ext
6624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6625 echo "${ECHO_T}$ac_header_preproc" >&6; }
6626
6627 # So? What about this header?
6628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6629 yes:no: )
6630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6634 ac_header_preproc=yes
6635 ;;
6636 no:yes:* )
6637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6640 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6641 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6643 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6644 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6647 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6649
6650 ;;
6651 esac
6652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 else
6657 eval "$as_ac_Header=\$ac_header_preproc"
6658 fi
6659 ac_res=`eval echo '${'$as_ac_Header'}'`
6660 { echo "$as_me:$LINENO: result: $ac_res" >&5
6661 echo "${ECHO_T}$ac_res" >&6; }
6662
6663 fi
6664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6665 cat >>confdefs.h <<_ACEOF
6666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6667 _ACEOF
6668
6669 fi
6670
6671 done
6672
6673
6674 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6675 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6676 cat >conftest.$ac_ext <<_ACEOF
6677 /* confdefs.h. */
6678 _ACEOF
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h. */
6682 #include <sys/personality.h>
6683 int
6684 main ()
6685 {
6686 personality (PER_LINUX32)
6687 ;
6688 return 0;
6689 }
6690 _ACEOF
6691 rm -f conftest.$ac_objext
6692 if { (ac_try="$ac_compile"
6693 case "(($ac_try" in
6694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6695 *) ac_try_echo=$ac_try;;
6696 esac
6697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6698 (eval "$ac_compile") 2>conftest.er1
6699 ac_status=$?
6700 grep -v '^ *+' conftest.er1 >conftest.err
6701 rm -f conftest.er1
6702 cat conftest.err >&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } && {
6705 test -z "$ac_c_werror_flag" ||
6706 test ! -s conftest.err
6707 } && test -s conftest.$ac_objext; then
6708 emacs_cv_personality_linux32=yes
6709 else
6710 echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.$ac_ext >&5
6712
6713 emacs_cv_personality_linux32=no
6714 fi
6715
6716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6717 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6718 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6719
6720 if test $emacs_cv_personality_linux32 = yes; then
6721
6722 cat >>confdefs.h <<\_ACEOF
6723 #define HAVE_PERSONALITY_LINUX32 1
6724 _ACEOF
6725
6726 fi
6727
6728
6729 for ac_header in term.h
6730 do
6731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 else
6737 cat >conftest.$ac_ext <<_ACEOF
6738 /* confdefs.h. */
6739 _ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h. */
6743 #include <$ac_header>
6744 _ACEOF
6745 if { (ac_try="$ac_cpp conftest.$ac_ext"
6746 case "(($ac_try" in
6747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6748 *) ac_try_echo=$ac_try;;
6749 esac
6750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6752 ac_status=$?
6753 grep -v '^ *+' conftest.er1 >conftest.err
6754 rm -f conftest.er1
6755 cat conftest.err >&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); } >/dev/null && {
6758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6759 test ! -s conftest.err
6760 }; then
6761 eval "$as_ac_Header=yes"
6762 else
6763 echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6765
6766 eval "$as_ac_Header=no"
6767 fi
6768
6769 rm -f conftest.err conftest.$ac_ext
6770 fi
6771 ac_res=`eval echo '${'$as_ac_Header'}'`
6772 { echo "$as_me:$LINENO: result: $ac_res" >&5
6773 echo "${ECHO_T}$ac_res" >&6; }
6774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6775 cat >>confdefs.h <<_ACEOF
6776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6777 _ACEOF
6778
6779 fi
6780
6781 done
6782
6783 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6784 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6785 if test "${ac_cv_header_stdc+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 else
6788 cat >conftest.$ac_ext <<_ACEOF
6789 /* confdefs.h. */
6790 _ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6794 #include <stdlib.h>
6795 #include <stdarg.h>
6796 #include <string.h>
6797 #include <float.h>
6798
6799 int
6800 main ()
6801 {
6802
6803 ;
6804 return 0;
6805 }
6806 _ACEOF
6807 rm -f conftest.$ac_objext
6808 if { (ac_try="$ac_compile"
6809 case "(($ac_try" in
6810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6811 *) ac_try_echo=$ac_try;;
6812 esac
6813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6814 (eval "$ac_compile") 2>conftest.er1
6815 ac_status=$?
6816 grep -v '^ *+' conftest.er1 >conftest.err
6817 rm -f conftest.er1
6818 cat conftest.err >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); } && {
6821 test -z "$ac_c_werror_flag" ||
6822 test ! -s conftest.err
6823 } && test -s conftest.$ac_objext; then
6824 ac_cv_header_stdc=yes
6825 else
6826 echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6828
6829 ac_cv_header_stdc=no
6830 fi
6831
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6833
6834 if test $ac_cv_header_stdc = yes; then
6835 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6836 cat >conftest.$ac_ext <<_ACEOF
6837 /* confdefs.h. */
6838 _ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h. */
6842 #include <string.h>
6843
6844 _ACEOF
6845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6846 $EGREP "memchr" >/dev/null 2>&1; then
6847 :
6848 else
6849 ac_cv_header_stdc=no
6850 fi
6851 rm -f conftest*
6852
6853 fi
6854
6855 if test $ac_cv_header_stdc = yes; then
6856 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6857 cat >conftest.$ac_ext <<_ACEOF
6858 /* confdefs.h. */
6859 _ACEOF
6860 cat confdefs.h >>conftest.$ac_ext
6861 cat >>conftest.$ac_ext <<_ACEOF
6862 /* end confdefs.h. */
6863 #include <stdlib.h>
6864
6865 _ACEOF
6866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6867 $EGREP "free" >/dev/null 2>&1; then
6868 :
6869 else
6870 ac_cv_header_stdc=no
6871 fi
6872 rm -f conftest*
6873
6874 fi
6875
6876 if test $ac_cv_header_stdc = yes; then
6877 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6878 if test "$cross_compiling" = yes; then
6879 :
6880 else
6881 cat >conftest.$ac_ext <<_ACEOF
6882 /* confdefs.h. */
6883 _ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6887 #include <ctype.h>
6888 #include <stdlib.h>
6889 #if ((' ' & 0x0FF) == 0x020)
6890 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6891 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6892 #else
6893 # define ISLOWER(c) \
6894 (('a' <= (c) && (c) <= 'i') \
6895 || ('j' <= (c) && (c) <= 'r') \
6896 || ('s' <= (c) && (c) <= 'z'))
6897 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6898 #endif
6899
6900 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6901 int
6902 main ()
6903 {
6904 int i;
6905 for (i = 0; i < 256; i++)
6906 if (XOR (islower (i), ISLOWER (i))
6907 || toupper (i) != TOUPPER (i))
6908 return 2;
6909 return 0;
6910 }
6911 _ACEOF
6912 rm -f conftest$ac_exeext
6913 if { (ac_try="$ac_link"
6914 case "(($ac_try" in
6915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6916 *) ac_try_echo=$ac_try;;
6917 esac
6918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6919 (eval "$ac_link") 2>&5
6920 ac_status=$?
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6923 { (case "(($ac_try" in
6924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6925 *) ac_try_echo=$ac_try;;
6926 esac
6927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6928 (eval "$ac_try") 2>&5
6929 ac_status=$?
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; }; then
6932 :
6933 else
6934 echo "$as_me: program exited with status $ac_status" >&5
6935 echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6937
6938 ( exit $ac_status )
6939 ac_cv_header_stdc=no
6940 fi
6941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6942 fi
6943
6944
6945 fi
6946 fi
6947 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6948 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6949 if test $ac_cv_header_stdc = yes; then
6950
6951 cat >>confdefs.h <<\_ACEOF
6952 #define STDC_HEADERS 1
6953 _ACEOF
6954
6955 fi
6956
6957 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6958 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6959 if test "${ac_cv_header_time+set}" = set; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6961 else
6962 cat >conftest.$ac_ext <<_ACEOF
6963 /* confdefs.h. */
6964 _ACEOF
6965 cat confdefs.h >>conftest.$ac_ext
6966 cat >>conftest.$ac_ext <<_ACEOF
6967 /* end confdefs.h. */
6968 #include <sys/types.h>
6969 #include <sys/time.h>
6970 #include <time.h>
6971
6972 int
6973 main ()
6974 {
6975 if ((struct tm *) 0)
6976 return 0;
6977 ;
6978 return 0;
6979 }
6980 _ACEOF
6981 rm -f conftest.$ac_objext
6982 if { (ac_try="$ac_compile"
6983 case "(($ac_try" in
6984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6985 *) ac_try_echo=$ac_try;;
6986 esac
6987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6988 (eval "$ac_compile") 2>conftest.er1
6989 ac_status=$?
6990 grep -v '^ *+' conftest.er1 >conftest.err
6991 rm -f conftest.er1
6992 cat conftest.err >&5
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); } && {
6995 test -z "$ac_c_werror_flag" ||
6996 test ! -s conftest.err
6997 } && test -s conftest.$ac_objext; then
6998 ac_cv_header_time=yes
6999 else
7000 echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.$ac_ext >&5
7002
7003 ac_cv_header_time=no
7004 fi
7005
7006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7007 fi
7008 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7009 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7010 if test $ac_cv_header_time = yes; then
7011
7012 cat >>confdefs.h <<\_ACEOF
7013 #define TIME_WITH_SYS_TIME 1
7014 _ACEOF
7015
7016 fi
7017
7018 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7019 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7020 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 else
7023 cat >conftest.$ac_ext <<_ACEOF
7024 /* confdefs.h. */
7025 _ACEOF
7026 cat confdefs.h >>conftest.$ac_ext
7027 cat >>conftest.$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7029 $ac_includes_default
7030 int
7031 main ()
7032 {
7033 #ifndef sys_siglist
7034 (void) sys_siglist;
7035 #endif
7036
7037 ;
7038 return 0;
7039 }
7040 _ACEOF
7041 rm -f conftest.$ac_objext
7042 if { (ac_try="$ac_compile"
7043 case "(($ac_try" in
7044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7046 esac
7047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7048 (eval "$ac_compile") 2>conftest.er1
7049 ac_status=$?
7050 grep -v '^ *+' conftest.er1 >conftest.err
7051 rm -f conftest.er1
7052 cat conftest.err >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } && {
7055 test -z "$ac_c_werror_flag" ||
7056 test ! -s conftest.err
7057 } && test -s conftest.$ac_objext; then
7058 ac_cv_have_decl_sys_siglist=yes
7059 else
7060 echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7062
7063 ac_cv_have_decl_sys_siglist=no
7064 fi
7065
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067 fi
7068 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7069 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7070 if test $ac_cv_have_decl_sys_siglist = yes; then
7071
7072 cat >>confdefs.h <<_ACEOF
7073 #define HAVE_DECL_SYS_SIGLIST 1
7074 _ACEOF
7075
7076
7077 else
7078 cat >>confdefs.h <<_ACEOF
7079 #define HAVE_DECL_SYS_SIGLIST 0
7080 _ACEOF
7081
7082
7083 fi
7084
7085
7086 if test $ac_cv_have_decl_sys_siglist != yes; then
7087 # For Tru64, at least:
7088 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7089 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7090 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093 cat >conftest.$ac_ext <<_ACEOF
7094 /* confdefs.h. */
7095 _ACEOF
7096 cat confdefs.h >>conftest.$ac_ext
7097 cat >>conftest.$ac_ext <<_ACEOF
7098 /* end confdefs.h. */
7099 $ac_includes_default
7100 int
7101 main ()
7102 {
7103 #ifndef __sys_siglist
7104 (void) __sys_siglist;
7105 #endif
7106
7107 ;
7108 return 0;
7109 }
7110 _ACEOF
7111 rm -f conftest.$ac_objext
7112 if { (ac_try="$ac_compile"
7113 case "(($ac_try" in
7114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7115 *) ac_try_echo=$ac_try;;
7116 esac
7117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7118 (eval "$ac_compile") 2>conftest.er1
7119 ac_status=$?
7120 grep -v '^ *+' conftest.er1 >conftest.err
7121 rm -f conftest.er1
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && {
7125 test -z "$ac_c_werror_flag" ||
7126 test ! -s conftest.err
7127 } && test -s conftest.$ac_objext; then
7128 ac_cv_have_decl___sys_siglist=yes
7129 else
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7132
7133 ac_cv_have_decl___sys_siglist=no
7134 fi
7135
7136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7137 fi
7138 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7139 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7140 if test $ac_cv_have_decl___sys_siglist = yes; then
7141
7142 cat >>confdefs.h <<_ACEOF
7143 #define HAVE_DECL___SYS_SIGLIST 1
7144 _ACEOF
7145
7146
7147 else
7148 cat >>confdefs.h <<_ACEOF
7149 #define HAVE_DECL___SYS_SIGLIST 0
7150 _ACEOF
7151
7152
7153 fi
7154
7155
7156 if test $ac_cv_have_decl___sys_siglist = yes; then
7157
7158 cat >>confdefs.h <<\_ACEOF
7159 #define sys_siglist __sys_siglist
7160 _ACEOF
7161
7162 fi
7163 fi
7164 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7165 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7166 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 else
7169 cat >conftest.$ac_ext <<_ACEOF
7170 /* confdefs.h. */
7171 _ACEOF
7172 cat confdefs.h >>conftest.$ac_ext
7173 cat >>conftest.$ac_ext <<_ACEOF
7174 /* end confdefs.h. */
7175 #include <sys/types.h>
7176 #include <sys/wait.h>
7177 #ifndef WEXITSTATUS
7178 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7179 #endif
7180 #ifndef WIFEXITED
7181 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7182 #endif
7183
7184 int
7185 main ()
7186 {
7187 int s;
7188 wait (&s);
7189 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7190 ;
7191 return 0;
7192 }
7193 _ACEOF
7194 rm -f conftest.$ac_objext
7195 if { (ac_try="$ac_compile"
7196 case "(($ac_try" in
7197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7198 *) ac_try_echo=$ac_try;;
7199 esac
7200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7201 (eval "$ac_compile") 2>conftest.er1
7202 ac_status=$?
7203 grep -v '^ *+' conftest.er1 >conftest.err
7204 rm -f conftest.er1
7205 cat conftest.err >&5
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); } && {
7208 test -z "$ac_c_werror_flag" ||
7209 test ! -s conftest.err
7210 } && test -s conftest.$ac_objext; then
7211 ac_cv_header_sys_wait_h=yes
7212 else
7213 echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.$ac_ext >&5
7215
7216 ac_cv_header_sys_wait_h=no
7217 fi
7218
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7220 fi
7221 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7222 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7223 if test $ac_cv_header_sys_wait_h = yes; then
7224
7225 cat >>confdefs.h <<\_ACEOF
7226 #define HAVE_SYS_WAIT_H 1
7227 _ACEOF
7228
7229 fi
7230
7231
7232 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7233 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7234 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237 cat >conftest.$ac_ext <<_ACEOF
7238 /* confdefs.h. */
7239 _ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7243 #ifdef TIME_WITH_SYS_TIME
7244 #include <sys/time.h>
7245 #include <time.h>
7246 #else
7247 #ifdef HAVE_SYS_TIME_H
7248 #include <sys/time.h>
7249 #else
7250 #include <time.h>
7251 #endif
7252 #endif
7253 #ifdef HAVE_UTIME_H
7254 #include <utime.h>
7255 #endif
7256 int
7257 main ()
7258 {
7259 static struct utimbuf x; x.actime = x.modtime;
7260 ;
7261 return 0;
7262 }
7263 _ACEOF
7264 rm -f conftest.$ac_objext
7265 if { (ac_try="$ac_compile"
7266 case "(($ac_try" in
7267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7268 *) ac_try_echo=$ac_try;;
7269 esac
7270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7271 (eval "$ac_compile") 2>conftest.er1
7272 ac_status=$?
7273 grep -v '^ *+' conftest.er1 >conftest.err
7274 rm -f conftest.er1
7275 cat conftest.err >&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } && {
7278 test -z "$ac_c_werror_flag" ||
7279 test ! -s conftest.err
7280 } && test -s conftest.$ac_objext; then
7281 emacs_cv_struct_utimbuf=yes
7282 else
7283 echo "$as_me: failed program was:" >&5
7284 sed 's/^/| /' conftest.$ac_ext >&5
7285
7286 emacs_cv_struct_utimbuf=no
7287 fi
7288
7289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7290 fi
7291 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7292 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7293 if test $emacs_cv_struct_utimbuf = yes; then
7294
7295 cat >>confdefs.h <<\_ACEOF
7296 #define HAVE_STRUCT_UTIMBUF 1
7297 _ACEOF
7298
7299 fi
7300
7301 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7302 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7303 if test "${ac_cv_type_signal+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306 cat >conftest.$ac_ext <<_ACEOF
7307 /* confdefs.h. */
7308 _ACEOF
7309 cat confdefs.h >>conftest.$ac_ext
7310 cat >>conftest.$ac_ext <<_ACEOF
7311 /* end confdefs.h. */
7312 #include <sys/types.h>
7313 #include <signal.h>
7314
7315 int
7316 main ()
7317 {
7318 return *(signal (0, 0)) (0) == 1;
7319 ;
7320 return 0;
7321 }
7322 _ACEOF
7323 rm -f conftest.$ac_objext
7324 if { (ac_try="$ac_compile"
7325 case "(($ac_try" in
7326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7327 *) ac_try_echo=$ac_try;;
7328 esac
7329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7330 (eval "$ac_compile") 2>conftest.er1
7331 ac_status=$?
7332 grep -v '^ *+' conftest.er1 >conftest.err
7333 rm -f conftest.er1
7334 cat conftest.err >&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); } && {
7337 test -z "$ac_c_werror_flag" ||
7338 test ! -s conftest.err
7339 } && test -s conftest.$ac_objext; then
7340 ac_cv_type_signal=int
7341 else
7342 echo "$as_me: failed program was:" >&5
7343 sed 's/^/| /' conftest.$ac_ext >&5
7344
7345 ac_cv_type_signal=void
7346 fi
7347
7348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7349 fi
7350 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7351 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7352
7353 cat >>confdefs.h <<_ACEOF
7354 #define RETSIGTYPE $ac_cv_type_signal
7355 _ACEOF
7356
7357
7358
7359 { echo "$as_me:$LINENO: checking for speed_t" >&5
7360 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7361 if test "${emacs_cv_speed_t+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7363 else
7364 cat >conftest.$ac_ext <<_ACEOF
7365 /* confdefs.h. */
7366 _ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h. */
7370 #include <termios.h>
7371 int
7372 main ()
7373 {
7374 speed_t x = 1;
7375 ;
7376 return 0;
7377 }
7378 _ACEOF
7379 rm -f conftest.$ac_objext
7380 if { (ac_try="$ac_compile"
7381 case "(($ac_try" in
7382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7383 *) ac_try_echo=$ac_try;;
7384 esac
7385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7386 (eval "$ac_compile") 2>conftest.er1
7387 ac_status=$?
7388 grep -v '^ *+' conftest.er1 >conftest.err
7389 rm -f conftest.er1
7390 cat conftest.err >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); } && {
7393 test -z "$ac_c_werror_flag" ||
7394 test ! -s conftest.err
7395 } && test -s conftest.$ac_objext; then
7396 emacs_cv_speed_t=yes
7397 else
7398 echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.$ac_ext >&5
7400
7401 emacs_cv_speed_t=no
7402 fi
7403
7404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7405 fi
7406 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7407 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7408 if test $emacs_cv_speed_t = yes; then
7409
7410 cat >>confdefs.h <<\_ACEOF
7411 #define HAVE_SPEED_T 1
7412 _ACEOF
7413
7414 fi
7415
7416 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7417 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7418 if test "${emacs_cv_struct_timeval+set}" = set; then
7419 echo $ECHO_N "(cached) $ECHO_C" >&6
7420 else
7421 cat >conftest.$ac_ext <<_ACEOF
7422 /* confdefs.h. */
7423 _ACEOF
7424 cat confdefs.h >>conftest.$ac_ext
7425 cat >>conftest.$ac_ext <<_ACEOF
7426 /* end confdefs.h. */
7427 #ifdef TIME_WITH_SYS_TIME
7428 #include <sys/time.h>
7429 #include <time.h>
7430 #else
7431 #ifdef HAVE_SYS_TIME_H
7432 #include <sys/time.h>
7433 #else
7434 #include <time.h>
7435 #endif
7436 #endif
7437 int
7438 main ()
7439 {
7440 static struct timeval x; x.tv_sec = x.tv_usec;
7441 ;
7442 return 0;
7443 }
7444 _ACEOF
7445 rm -f conftest.$ac_objext
7446 if { (ac_try="$ac_compile"
7447 case "(($ac_try" in
7448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7449 *) ac_try_echo=$ac_try;;
7450 esac
7451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7452 (eval "$ac_compile") 2>conftest.er1
7453 ac_status=$?
7454 grep -v '^ *+' conftest.er1 >conftest.err
7455 rm -f conftest.er1
7456 cat conftest.err >&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); } && {
7459 test -z "$ac_c_werror_flag" ||
7460 test ! -s conftest.err
7461 } && test -s conftest.$ac_objext; then
7462 emacs_cv_struct_timeval=yes
7463 else
7464 echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.$ac_ext >&5
7466
7467 emacs_cv_struct_timeval=no
7468 fi
7469
7470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7471 fi
7472 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7473 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7474 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7475 if test $emacs_cv_struct_timeval = yes; then
7476
7477 cat >>confdefs.h <<\_ACEOF
7478 #define HAVE_TIMEVAL 1
7479 _ACEOF
7480
7481 fi
7482
7483 { echo "$as_me:$LINENO: checking for struct exception" >&5
7484 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7485 if test "${emacs_cv_struct_exception+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7487 else
7488 cat >conftest.$ac_ext <<_ACEOF
7489 /* confdefs.h. */
7490 _ACEOF
7491 cat confdefs.h >>conftest.$ac_ext
7492 cat >>conftest.$ac_ext <<_ACEOF
7493 /* end confdefs.h. */
7494 #include <math.h>
7495 int
7496 main ()
7497 {
7498 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7499 ;
7500 return 0;
7501 }
7502 _ACEOF
7503 rm -f conftest.$ac_objext
7504 if { (ac_try="$ac_compile"
7505 case "(($ac_try" in
7506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7507 *) ac_try_echo=$ac_try;;
7508 esac
7509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7510 (eval "$ac_compile") 2>conftest.er1
7511 ac_status=$?
7512 grep -v '^ *+' conftest.er1 >conftest.err
7513 rm -f conftest.er1
7514 cat conftest.err >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } && {
7517 test -z "$ac_c_werror_flag" ||
7518 test ! -s conftest.err
7519 } && test -s conftest.$ac_objext; then
7520 emacs_cv_struct_exception=yes
7521 else
7522 echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.$ac_ext >&5
7524
7525 emacs_cv_struct_exception=no
7526 fi
7527
7528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7529 fi
7530 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7531 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7532 HAVE_EXCEPTION=$emacs_cv_struct_exception
7533 if test $emacs_cv_struct_exception != yes; then
7534
7535 cat >>confdefs.h <<\_ACEOF
7536 #define NO_MATHERR 1
7537 _ACEOF
7538
7539 fi
7540
7541
7542 for ac_header in sys/socket.h
7543 do
7544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 fi
7551 ac_res=`eval echo '${'$as_ac_Header'}'`
7552 { echo "$as_me:$LINENO: result: $ac_res" >&5
7553 echo "${ECHO_T}$ac_res" >&6; }
7554 else
7555 # Is the header compilable?
7556 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7558 cat >conftest.$ac_ext <<_ACEOF
7559 /* confdefs.h. */
7560 _ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7564 $ac_includes_default
7565 #include <$ac_header>
7566 _ACEOF
7567 rm -f conftest.$ac_objext
7568 if { (ac_try="$ac_compile"
7569 case "(($ac_try" in
7570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7571 *) ac_try_echo=$ac_try;;
7572 esac
7573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7574 (eval "$ac_compile") 2>conftest.er1
7575 ac_status=$?
7576 grep -v '^ *+' conftest.er1 >conftest.err
7577 rm -f conftest.er1
7578 cat conftest.err >&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } && {
7581 test -z "$ac_c_werror_flag" ||
7582 test ! -s conftest.err
7583 } && test -s conftest.$ac_objext; then
7584 ac_header_compiler=yes
7585 else
7586 echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7588
7589 ac_header_compiler=no
7590 fi
7591
7592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7594 echo "${ECHO_T}$ac_header_compiler" >&6; }
7595
7596 # Is the header present?
7597 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7598 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7599 cat >conftest.$ac_ext <<_ACEOF
7600 /* confdefs.h. */
7601 _ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h. */
7605 #include <$ac_header>
7606 _ACEOF
7607 if { (ac_try="$ac_cpp conftest.$ac_ext"
7608 case "(($ac_try" in
7609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7610 *) ac_try_echo=$ac_try;;
7611 esac
7612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7614 ac_status=$?
7615 grep -v '^ *+' conftest.er1 >conftest.err
7616 rm -f conftest.er1
7617 cat conftest.err >&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); } >/dev/null && {
7620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7621 test ! -s conftest.err
7622 }; then
7623 ac_header_preproc=yes
7624 else
7625 echo "$as_me: failed program was:" >&5
7626 sed 's/^/| /' conftest.$ac_ext >&5
7627
7628 ac_header_preproc=no
7629 fi
7630
7631 rm -f conftest.err conftest.$ac_ext
7632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7633 echo "${ECHO_T}$ac_header_preproc" >&6; }
7634
7635 # So? What about this header?
7636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7637 yes:no: )
7638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7642 ac_header_preproc=yes
7643 ;;
7644 no:yes:* )
7645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7652 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7657
7658 ;;
7659 esac
7660 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 else
7665 eval "$as_ac_Header=\$ac_header_preproc"
7666 fi
7667 ac_res=`eval echo '${'$as_ac_Header'}'`
7668 { echo "$as_me:$LINENO: result: $ac_res" >&5
7669 echo "${ECHO_T}$ac_res" >&6; }
7670
7671 fi
7672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7673 cat >>confdefs.h <<_ACEOF
7674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7675 _ACEOF
7676
7677 fi
7678
7679 done
7680
7681
7682 for ac_header in net/if.h
7683 do
7684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690 cat >conftest.$ac_ext <<_ACEOF
7691 /* confdefs.h. */
7692 _ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7696 $ac_includes_default
7697 #if HAVE_SYS_SOCKET_H
7698 #include <sys/socket.h>
7699 #endif
7700
7701 #include <$ac_header>
7702 _ACEOF
7703 rm -f conftest.$ac_objext
7704 if { (ac_try="$ac_compile"
7705 case "(($ac_try" in
7706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7707 *) ac_try_echo=$ac_try;;
7708 esac
7709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7710 (eval "$ac_compile") 2>conftest.er1
7711 ac_status=$?
7712 grep -v '^ *+' conftest.er1 >conftest.err
7713 rm -f conftest.er1
7714 cat conftest.err >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); } && {
7717 test -z "$ac_c_werror_flag" ||
7718 test ! -s conftest.err
7719 } && test -s conftest.$ac_objext; then
7720 eval "$as_ac_Header=yes"
7721 else
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.$ac_ext >&5
7724
7725 eval "$as_ac_Header=no"
7726 fi
7727
7728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7729 fi
7730 ac_res=`eval echo '${'$as_ac_Header'}'`
7731 { echo "$as_me:$LINENO: result: $ac_res" >&5
7732 echo "${ECHO_T}$ac_res" >&6; }
7733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7734 cat >>confdefs.h <<_ACEOF
7735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7736 _ACEOF
7737
7738 fi
7739
7740 done
7741
7742
7743 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7744 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7745 if test "${ac_cv_struct_tm+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748 cat >conftest.$ac_ext <<_ACEOF
7749 /* confdefs.h. */
7750 _ACEOF
7751 cat confdefs.h >>conftest.$ac_ext
7752 cat >>conftest.$ac_ext <<_ACEOF
7753 /* end confdefs.h. */
7754 #include <sys/types.h>
7755 #include <time.h>
7756
7757 int
7758 main ()
7759 {
7760 struct tm tm;
7761 int *p = &tm.tm_sec;
7762 return !p;
7763 ;
7764 return 0;
7765 }
7766 _ACEOF
7767 rm -f conftest.$ac_objext
7768 if { (ac_try="$ac_compile"
7769 case "(($ac_try" in
7770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7771 *) ac_try_echo=$ac_try;;
7772 esac
7773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7774 (eval "$ac_compile") 2>conftest.er1
7775 ac_status=$?
7776 grep -v '^ *+' conftest.er1 >conftest.err
7777 rm -f conftest.er1
7778 cat conftest.err >&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } && {
7781 test -z "$ac_c_werror_flag" ||
7782 test ! -s conftest.err
7783 } && test -s conftest.$ac_objext; then
7784 ac_cv_struct_tm=time.h
7785 else
7786 echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.$ac_ext >&5
7788
7789 ac_cv_struct_tm=sys/time.h
7790 fi
7791
7792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7793 fi
7794 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7795 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7796 if test $ac_cv_struct_tm = sys/time.h; then
7797
7798 cat >>confdefs.h <<\_ACEOF
7799 #define TM_IN_SYS_TIME 1
7800 _ACEOF
7801
7802 fi
7803
7804 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7805 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7806 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 else
7809 cat >conftest.$ac_ext <<_ACEOF
7810 /* confdefs.h. */
7811 _ACEOF
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h. */
7815 #include <sys/types.h>
7816 #include <$ac_cv_struct_tm>
7817
7818
7819 int
7820 main ()
7821 {
7822 static struct tm ac_aggr;
7823 if (ac_aggr.tm_zone)
7824 return 0;
7825 ;
7826 return 0;
7827 }
7828 _ACEOF
7829 rm -f conftest.$ac_objext
7830 if { (ac_try="$ac_compile"
7831 case "(($ac_try" in
7832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7834 esac
7835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836 (eval "$ac_compile") 2>conftest.er1
7837 ac_status=$?
7838 grep -v '^ *+' conftest.er1 >conftest.err
7839 rm -f conftest.er1
7840 cat conftest.err >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } && {
7843 test -z "$ac_c_werror_flag" ||
7844 test ! -s conftest.err
7845 } && test -s conftest.$ac_objext; then
7846 ac_cv_member_struct_tm_tm_zone=yes
7847 else
7848 echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7850
7851 cat >conftest.$ac_ext <<_ACEOF
7852 /* confdefs.h. */
7853 _ACEOF
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h. */
7857 #include <sys/types.h>
7858 #include <$ac_cv_struct_tm>
7859
7860
7861 int
7862 main ()
7863 {
7864 static struct tm ac_aggr;
7865 if (sizeof ac_aggr.tm_zone)
7866 return 0;
7867 ;
7868 return 0;
7869 }
7870 _ACEOF
7871 rm -f conftest.$ac_objext
7872 if { (ac_try="$ac_compile"
7873 case "(($ac_try" in
7874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875 *) ac_try_echo=$ac_try;;
7876 esac
7877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878 (eval "$ac_compile") 2>conftest.er1
7879 ac_status=$?
7880 grep -v '^ *+' conftest.er1 >conftest.err
7881 rm -f conftest.er1
7882 cat conftest.err >&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); } && {
7885 test -z "$ac_c_werror_flag" ||
7886 test ! -s conftest.err
7887 } && test -s conftest.$ac_objext; then
7888 ac_cv_member_struct_tm_tm_zone=yes
7889 else
7890 echo "$as_me: failed program was:" >&5
7891 sed 's/^/| /' conftest.$ac_ext >&5
7892
7893 ac_cv_member_struct_tm_tm_zone=no
7894 fi
7895
7896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7897 fi
7898
7899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7900 fi
7901 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7902 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7903 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7904
7905 cat >>confdefs.h <<_ACEOF
7906 #define HAVE_STRUCT_TM_TM_ZONE 1
7907 _ACEOF
7908
7909
7910 fi
7911
7912 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7913
7914 cat >>confdefs.h <<\_ACEOF
7915 #define HAVE_TM_ZONE 1
7916 _ACEOF
7917
7918 else
7919 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7920 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7921 if test "${ac_cv_have_decl_tzname+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
7923 else
7924 cat >conftest.$ac_ext <<_ACEOF
7925 /* confdefs.h. */
7926 _ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h. */
7930 #include <time.h>
7931
7932 int
7933 main ()
7934 {
7935 #ifndef tzname
7936 (void) tzname;
7937 #endif
7938
7939 ;
7940 return 0;
7941 }
7942 _ACEOF
7943 rm -f conftest.$ac_objext
7944 if { (ac_try="$ac_compile"
7945 case "(($ac_try" in
7946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947 *) ac_try_echo=$ac_try;;
7948 esac
7949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7950 (eval "$ac_compile") 2>conftest.er1
7951 ac_status=$?
7952 grep -v '^ *+' conftest.er1 >conftest.err
7953 rm -f conftest.er1
7954 cat conftest.err >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } && {
7957 test -z "$ac_c_werror_flag" ||
7958 test ! -s conftest.err
7959 } && test -s conftest.$ac_objext; then
7960 ac_cv_have_decl_tzname=yes
7961 else
7962 echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.$ac_ext >&5
7964
7965 ac_cv_have_decl_tzname=no
7966 fi
7967
7968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969 fi
7970 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7971 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7972 if test $ac_cv_have_decl_tzname = yes; then
7973
7974 cat >>confdefs.h <<_ACEOF
7975 #define HAVE_DECL_TZNAME 1
7976 _ACEOF
7977
7978
7979 else
7980 cat >>confdefs.h <<_ACEOF
7981 #define HAVE_DECL_TZNAME 0
7982 _ACEOF
7983
7984
7985 fi
7986
7987
7988 { echo "$as_me:$LINENO: checking for tzname" >&5
7989 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7990 if test "${ac_cv_var_tzname+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 else
7993 cat >conftest.$ac_ext <<_ACEOF
7994 /* confdefs.h. */
7995 _ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
7999 #include <time.h>
8000 #if !HAVE_DECL_TZNAME
8001 extern char *tzname[];
8002 #endif
8003
8004 int
8005 main ()
8006 {
8007 return tzname[0][0];
8008 ;
8009 return 0;
8010 }
8011 _ACEOF
8012 rm -f conftest.$ac_objext conftest$ac_exeext
8013 if { (ac_try="$ac_link"
8014 case "(($ac_try" in
8015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8016 *) ac_try_echo=$ac_try;;
8017 esac
8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 (eval "$ac_link") 2>conftest.er1
8020 ac_status=$?
8021 grep -v '^ *+' conftest.er1 >conftest.err
8022 rm -f conftest.er1
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } && {
8026 test -z "$ac_c_werror_flag" ||
8027 test ! -s conftest.err
8028 } && test -s conftest$ac_exeext &&
8029 $as_test_x conftest$ac_exeext; then
8030 ac_cv_var_tzname=yes
8031 else
8032 echo "$as_me: failed program was:" >&5
8033 sed 's/^/| /' conftest.$ac_ext >&5
8034
8035 ac_cv_var_tzname=no
8036 fi
8037
8038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8039 conftest$ac_exeext conftest.$ac_ext
8040 fi
8041 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8042 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8043 if test $ac_cv_var_tzname = yes; then
8044
8045 cat >>confdefs.h <<\_ACEOF
8046 #define HAVE_TZNAME 1
8047 _ACEOF
8048
8049 fi
8050 fi
8051
8052 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8053 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8054 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
8056 else
8057 cat >conftest.$ac_ext <<_ACEOF
8058 /* confdefs.h. */
8059 _ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h. */
8063 #include <time.h>
8064
8065 int
8066 main ()
8067 {
8068 static struct tm ac_aggr;
8069 if (ac_aggr.tm_gmtoff)
8070 return 0;
8071 ;
8072 return 0;
8073 }
8074 _ACEOF
8075 rm -f conftest.$ac_objext
8076 if { (ac_try="$ac_compile"
8077 case "(($ac_try" in
8078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079 *) ac_try_echo=$ac_try;;
8080 esac
8081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8082 (eval "$ac_compile") 2>conftest.er1
8083 ac_status=$?
8084 grep -v '^ *+' conftest.er1 >conftest.err
8085 rm -f conftest.er1
8086 cat conftest.err >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); } && {
8089 test -z "$ac_c_werror_flag" ||
8090 test ! -s conftest.err
8091 } && test -s conftest.$ac_objext; then
8092 ac_cv_member_struct_tm_tm_gmtoff=yes
8093 else
8094 echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8096
8097 cat >conftest.$ac_ext <<_ACEOF
8098 /* confdefs.h. */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 #include <time.h>
8104
8105 int
8106 main ()
8107 {
8108 static struct tm ac_aggr;
8109 if (sizeof ac_aggr.tm_gmtoff)
8110 return 0;
8111 ;
8112 return 0;
8113 }
8114 _ACEOF
8115 rm -f conftest.$ac_objext
8116 if { (ac_try="$ac_compile"
8117 case "(($ac_try" in
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8120 esac
8121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_compile") 2>conftest.er1
8123 ac_status=$?
8124 grep -v '^ *+' conftest.er1 >conftest.err
8125 rm -f conftest.er1
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } && {
8129 test -z "$ac_c_werror_flag" ||
8130 test ! -s conftest.err
8131 } && test -s conftest.$ac_objext; then
8132 ac_cv_member_struct_tm_tm_gmtoff=yes
8133 else
8134 echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8136
8137 ac_cv_member_struct_tm_tm_gmtoff=no
8138 fi
8139
8140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8141 fi
8142
8143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8144 fi
8145 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8146 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8147 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8148
8149 cat >>confdefs.h <<\_ACEOF
8150 #define HAVE_TM_GMTOFF 1
8151 _ACEOF
8152
8153 fi
8154
8155 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8156 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8157 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8158 echo $ECHO_N "(cached) $ECHO_C" >&6
8159 else
8160 cat >conftest.$ac_ext <<_ACEOF
8161 /* confdefs.h. */
8162 _ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8166 $ac_includes_default
8167 #if HAVE_SYS_SOCKET_H
8168 #include <sys/socket.h>
8169 #endif
8170 #if HAVE_NET_IF_H
8171 #include <net/if.h>
8172 #endif
8173
8174 int
8175 main ()
8176 {
8177 static struct ifreq ac_aggr;
8178 if (ac_aggr.ifr_flags)
8179 return 0;
8180 ;
8181 return 0;
8182 }
8183 _ACEOF
8184 rm -f conftest.$ac_objext
8185 if { (ac_try="$ac_compile"
8186 case "(($ac_try" in
8187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188 *) ac_try_echo=$ac_try;;
8189 esac
8190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8191 (eval "$ac_compile") 2>conftest.er1
8192 ac_status=$?
8193 grep -v '^ *+' conftest.er1 >conftest.err
8194 rm -f conftest.er1
8195 cat conftest.err >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } && {
8198 test -z "$ac_c_werror_flag" ||
8199 test ! -s conftest.err
8200 } && test -s conftest.$ac_objext; then
8201 ac_cv_member_struct_ifreq_ifr_flags=yes
8202 else
8203 echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8205
8206 cat >conftest.$ac_ext <<_ACEOF
8207 /* confdefs.h. */
8208 _ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h. */
8212 $ac_includes_default
8213 #if HAVE_SYS_SOCKET_H
8214 #include <sys/socket.h>
8215 #endif
8216 #if HAVE_NET_IF_H
8217 #include <net/if.h>
8218 #endif
8219
8220 int
8221 main ()
8222 {
8223 static struct ifreq ac_aggr;
8224 if (sizeof ac_aggr.ifr_flags)
8225 return 0;
8226 ;
8227 return 0;
8228 }
8229 _ACEOF
8230 rm -f conftest.$ac_objext
8231 if { (ac_try="$ac_compile"
8232 case "(($ac_try" in
8233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234 *) ac_try_echo=$ac_try;;
8235 esac
8236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237 (eval "$ac_compile") 2>conftest.er1
8238 ac_status=$?
8239 grep -v '^ *+' conftest.er1 >conftest.err
8240 rm -f conftest.er1
8241 cat conftest.err >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } && {
8244 test -z "$ac_c_werror_flag" ||
8245 test ! -s conftest.err
8246 } && test -s conftest.$ac_objext; then
8247 ac_cv_member_struct_ifreq_ifr_flags=yes
8248 else
8249 echo "$as_me: failed program was:" >&5
8250 sed 's/^/| /' conftest.$ac_ext >&5
8251
8252 ac_cv_member_struct_ifreq_ifr_flags=no
8253 fi
8254
8255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8256 fi
8257
8258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8259 fi
8260 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8261 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8262 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8263
8264 cat >>confdefs.h <<_ACEOF
8265 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8266 _ACEOF
8267
8268
8269 fi
8270 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8271 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8272 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 else
8275 cat >conftest.$ac_ext <<_ACEOF
8276 /* confdefs.h. */
8277 _ACEOF
8278 cat confdefs.h >>conftest.$ac_ext
8279 cat >>conftest.$ac_ext <<_ACEOF
8280 /* end confdefs.h. */
8281 $ac_includes_default
8282 #if HAVE_SYS_SOCKET_H
8283 #include <sys/socket.h>
8284 #endif
8285 #if HAVE_NET_IF_H
8286 #include <net/if.h>
8287 #endif
8288
8289 int
8290 main ()
8291 {
8292 static struct ifreq ac_aggr;
8293 if (ac_aggr.ifr_hwaddr)
8294 return 0;
8295 ;
8296 return 0;
8297 }
8298 _ACEOF
8299 rm -f conftest.$ac_objext
8300 if { (ac_try="$ac_compile"
8301 case "(($ac_try" in
8302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303 *) ac_try_echo=$ac_try;;
8304 esac
8305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306 (eval "$ac_compile") 2>conftest.er1
8307 ac_status=$?
8308 grep -v '^ *+' conftest.er1 >conftest.err
8309 rm -f conftest.er1
8310 cat conftest.err >&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); } && {
8313 test -z "$ac_c_werror_flag" ||
8314 test ! -s conftest.err
8315 } && test -s conftest.$ac_objext; then
8316 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8317 else
8318 echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8320
8321 cat >conftest.$ac_ext <<_ACEOF
8322 /* confdefs.h. */
8323 _ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8327 $ac_includes_default
8328 #if HAVE_SYS_SOCKET_H
8329 #include <sys/socket.h>
8330 #endif
8331 #if HAVE_NET_IF_H
8332 #include <net/if.h>
8333 #endif
8334
8335 int
8336 main ()
8337 {
8338 static struct ifreq ac_aggr;
8339 if (sizeof ac_aggr.ifr_hwaddr)
8340 return 0;
8341 ;
8342 return 0;
8343 }
8344 _ACEOF
8345 rm -f conftest.$ac_objext
8346 if { (ac_try="$ac_compile"
8347 case "(($ac_try" in
8348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8349 *) ac_try_echo=$ac_try;;
8350 esac
8351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352 (eval "$ac_compile") 2>conftest.er1
8353 ac_status=$?
8354 grep -v '^ *+' conftest.er1 >conftest.err
8355 rm -f conftest.er1
8356 cat conftest.err >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); } && {
8359 test -z "$ac_c_werror_flag" ||
8360 test ! -s conftest.err
8361 } && test -s conftest.$ac_objext; then
8362 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8363 else
8364 echo "$as_me: failed program was:" >&5
8365 sed 's/^/| /' conftest.$ac_ext >&5
8366
8367 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8368 fi
8369
8370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8371 fi
8372
8373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8374 fi
8375 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8376 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8377 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8378
8379 cat >>confdefs.h <<_ACEOF
8380 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8381 _ACEOF
8382
8383
8384 fi
8385 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8386 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8387 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
8389 else
8390 cat >conftest.$ac_ext <<_ACEOF
8391 /* confdefs.h. */
8392 _ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h. */
8396 $ac_includes_default
8397 #if HAVE_SYS_SOCKET_H
8398 #include <sys/socket.h>
8399 #endif
8400 #if HAVE_NET_IF_H
8401 #include <net/if.h>
8402 #endif
8403
8404 int
8405 main ()
8406 {
8407 static struct ifreq ac_aggr;
8408 if (ac_aggr.ifr_netmask)
8409 return 0;
8410 ;
8411 return 0;
8412 }
8413 _ACEOF
8414 rm -f conftest.$ac_objext
8415 if { (ac_try="$ac_compile"
8416 case "(($ac_try" in
8417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8418 *) ac_try_echo=$ac_try;;
8419 esac
8420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421 (eval "$ac_compile") 2>conftest.er1
8422 ac_status=$?
8423 grep -v '^ *+' conftest.er1 >conftest.err
8424 rm -f conftest.er1
8425 cat conftest.err >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } && {
8428 test -z "$ac_c_werror_flag" ||
8429 test ! -s conftest.err
8430 } && test -s conftest.$ac_objext; then
8431 ac_cv_member_struct_ifreq_ifr_netmask=yes
8432 else
8433 echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.$ac_ext >&5
8435
8436 cat >conftest.$ac_ext <<_ACEOF
8437 /* confdefs.h. */
8438 _ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h. */
8442 $ac_includes_default
8443 #if HAVE_SYS_SOCKET_H
8444 #include <sys/socket.h>
8445 #endif
8446 #if HAVE_NET_IF_H
8447 #include <net/if.h>
8448 #endif
8449
8450 int
8451 main ()
8452 {
8453 static struct ifreq ac_aggr;
8454 if (sizeof ac_aggr.ifr_netmask)
8455 return 0;
8456 ;
8457 return 0;
8458 }
8459 _ACEOF
8460 rm -f conftest.$ac_objext
8461 if { (ac_try="$ac_compile"
8462 case "(($ac_try" in
8463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464 *) ac_try_echo=$ac_try;;
8465 esac
8466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467 (eval "$ac_compile") 2>conftest.er1
8468 ac_status=$?
8469 grep -v '^ *+' conftest.er1 >conftest.err
8470 rm -f conftest.er1
8471 cat conftest.err >&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); } && {
8474 test -z "$ac_c_werror_flag" ||
8475 test ! -s conftest.err
8476 } && test -s conftest.$ac_objext; then
8477 ac_cv_member_struct_ifreq_ifr_netmask=yes
8478 else
8479 echo "$as_me: failed program was:" >&5
8480 sed 's/^/| /' conftest.$ac_ext >&5
8481
8482 ac_cv_member_struct_ifreq_ifr_netmask=no
8483 fi
8484
8485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8486 fi
8487
8488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8489 fi
8490 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8491 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8492 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8493
8494 cat >>confdefs.h <<_ACEOF
8495 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8496 _ACEOF
8497
8498
8499 fi
8500 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8501 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8502 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8503 echo $ECHO_N "(cached) $ECHO_C" >&6
8504 else
8505 cat >conftest.$ac_ext <<_ACEOF
8506 /* confdefs.h. */
8507 _ACEOF
8508 cat confdefs.h >>conftest.$ac_ext
8509 cat >>conftest.$ac_ext <<_ACEOF
8510 /* end confdefs.h. */
8511 $ac_includes_default
8512 #if HAVE_SYS_SOCKET_H
8513 #include <sys/socket.h>
8514 #endif
8515 #if HAVE_NET_IF_H
8516 #include <net/if.h>
8517 #endif
8518
8519 int
8520 main ()
8521 {
8522 static struct ifreq ac_aggr;
8523 if (ac_aggr.ifr_broadaddr)
8524 return 0;
8525 ;
8526 return 0;
8527 }
8528 _ACEOF
8529 rm -f conftest.$ac_objext
8530 if { (ac_try="$ac_compile"
8531 case "(($ac_try" in
8532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8533 *) ac_try_echo=$ac_try;;
8534 esac
8535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8536 (eval "$ac_compile") 2>conftest.er1
8537 ac_status=$?
8538 grep -v '^ *+' conftest.er1 >conftest.err
8539 rm -f conftest.er1
8540 cat conftest.err >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } && {
8543 test -z "$ac_c_werror_flag" ||
8544 test ! -s conftest.err
8545 } && test -s conftest.$ac_objext; then
8546 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8547 else
8548 echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8550
8551 cat >conftest.$ac_ext <<_ACEOF
8552 /* confdefs.h. */
8553 _ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8557 $ac_includes_default
8558 #if HAVE_SYS_SOCKET_H
8559 #include <sys/socket.h>
8560 #endif
8561 #if HAVE_NET_IF_H
8562 #include <net/if.h>
8563 #endif
8564
8565 int
8566 main ()
8567 {
8568 static struct ifreq ac_aggr;
8569 if (sizeof ac_aggr.ifr_broadaddr)
8570 return 0;
8571 ;
8572 return 0;
8573 }
8574 _ACEOF
8575 rm -f conftest.$ac_objext
8576 if { (ac_try="$ac_compile"
8577 case "(($ac_try" in
8578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579 *) ac_try_echo=$ac_try;;
8580 esac
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582 (eval "$ac_compile") 2>conftest.er1
8583 ac_status=$?
8584 grep -v '^ *+' conftest.er1 >conftest.err
8585 rm -f conftest.er1
8586 cat conftest.err >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } && {
8589 test -z "$ac_c_werror_flag" ||
8590 test ! -s conftest.err
8591 } && test -s conftest.$ac_objext; then
8592 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8593 else
8594 echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8596
8597 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8598 fi
8599
8600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8601 fi
8602
8603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8604 fi
8605 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8606 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8607 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8608
8609 cat >>confdefs.h <<_ACEOF
8610 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8611 _ACEOF
8612
8613
8614 fi
8615 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8616 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8617 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8619 else
8620 cat >conftest.$ac_ext <<_ACEOF
8621 /* confdefs.h. */
8622 _ACEOF
8623 cat confdefs.h >>conftest.$ac_ext
8624 cat >>conftest.$ac_ext <<_ACEOF
8625 /* end confdefs.h. */
8626 $ac_includes_default
8627 #if HAVE_SYS_SOCKET_H
8628 #include <sys/socket.h>
8629 #endif
8630 #if HAVE_NET_IF_H
8631 #include <net/if.h>
8632 #endif
8633
8634 int
8635 main ()
8636 {
8637 static struct ifreq ac_aggr;
8638 if (ac_aggr.ifr_addr)
8639 return 0;
8640 ;
8641 return 0;
8642 }
8643 _ACEOF
8644 rm -f conftest.$ac_objext
8645 if { (ac_try="$ac_compile"
8646 case "(($ac_try" in
8647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8648 *) ac_try_echo=$ac_try;;
8649 esac
8650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8651 (eval "$ac_compile") 2>conftest.er1
8652 ac_status=$?
8653 grep -v '^ *+' conftest.er1 >conftest.err
8654 rm -f conftest.er1
8655 cat conftest.err >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } && {
8658 test -z "$ac_c_werror_flag" ||
8659 test ! -s conftest.err
8660 } && test -s conftest.$ac_objext; then
8661 ac_cv_member_struct_ifreq_ifr_addr=yes
8662 else
8663 echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8665
8666 cat >conftest.$ac_ext <<_ACEOF
8667 /* confdefs.h. */
8668 _ACEOF
8669 cat confdefs.h >>conftest.$ac_ext
8670 cat >>conftest.$ac_ext <<_ACEOF
8671 /* end confdefs.h. */
8672 $ac_includes_default
8673 #if HAVE_SYS_SOCKET_H
8674 #include <sys/socket.h>
8675 #endif
8676 #if HAVE_NET_IF_H
8677 #include <net/if.h>
8678 #endif
8679
8680 int
8681 main ()
8682 {
8683 static struct ifreq ac_aggr;
8684 if (sizeof ac_aggr.ifr_addr)
8685 return 0;
8686 ;
8687 return 0;
8688 }
8689 _ACEOF
8690 rm -f conftest.$ac_objext
8691 if { (ac_try="$ac_compile"
8692 case "(($ac_try" in
8693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694 *) ac_try_echo=$ac_try;;
8695 esac
8696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8697 (eval "$ac_compile") 2>conftest.er1
8698 ac_status=$?
8699 grep -v '^ *+' conftest.er1 >conftest.err
8700 rm -f conftest.er1
8701 cat conftest.err >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } && {
8704 test -z "$ac_c_werror_flag" ||
8705 test ! -s conftest.err
8706 } && test -s conftest.$ac_objext; then
8707 ac_cv_member_struct_ifreq_ifr_addr=yes
8708 else
8709 echo "$as_me: failed program was:" >&5
8710 sed 's/^/| /' conftest.$ac_ext >&5
8711
8712 ac_cv_member_struct_ifreq_ifr_addr=no
8713 fi
8714
8715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716 fi
8717
8718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8719 fi
8720 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8721 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8722 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8723
8724 cat >>confdefs.h <<_ACEOF
8725 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8726 _ACEOF
8727
8728
8729 fi
8730
8731
8732
8733 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8734 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8735 if test "$ac_cv_prog_cc_c89" != no; then
8736 { echo "$as_me:$LINENO: result: yes" >&5
8737 echo "${ECHO_T}yes" >&6; }
8738
8739 cat >>confdefs.h <<\_ACEOF
8740 #define PROTOTYPES 1
8741 _ACEOF
8742
8743
8744 cat >>confdefs.h <<\_ACEOF
8745 #define __PROTOTYPES 1
8746 _ACEOF
8747
8748 else
8749 { echo "$as_me:$LINENO: result: no" >&5
8750 echo "${ECHO_T}no" >&6; }
8751 fi
8752
8753 { echo "$as_me:$LINENO: checking for working volatile" >&5
8754 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8755 if test "${ac_cv_c_volatile+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
8757 else
8758 cat >conftest.$ac_ext <<_ACEOF
8759 /* confdefs.h. */
8760 _ACEOF
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h. */
8764
8765 int
8766 main ()
8767 {
8768
8769 volatile int x;
8770 int * volatile y = (int *) 0;
8771 return !x && !y;
8772 ;
8773 return 0;
8774 }
8775 _ACEOF
8776 rm -f conftest.$ac_objext
8777 if { (ac_try="$ac_compile"
8778 case "(($ac_try" in
8779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8780 *) ac_try_echo=$ac_try;;
8781 esac
8782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8783 (eval "$ac_compile") 2>conftest.er1
8784 ac_status=$?
8785 grep -v '^ *+' conftest.er1 >conftest.err
8786 rm -f conftest.er1
8787 cat conftest.err >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); } && {
8790 test -z "$ac_c_werror_flag" ||
8791 test ! -s conftest.err
8792 } && test -s conftest.$ac_objext; then
8793 ac_cv_c_volatile=yes
8794 else
8795 echo "$as_me: failed program was:" >&5
8796 sed 's/^/| /' conftest.$ac_ext >&5
8797
8798 ac_cv_c_volatile=no
8799 fi
8800
8801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8802 fi
8803 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8804 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8805 if test $ac_cv_c_volatile = no; then
8806
8807 cat >>confdefs.h <<\_ACEOF
8808 #define volatile
8809 _ACEOF
8810
8811 fi
8812
8813 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8814 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8815 if test "${ac_cv_c_const+set}" = set; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8817 else
8818 cat >conftest.$ac_ext <<_ACEOF
8819 /* confdefs.h. */
8820 _ACEOF
8821 cat confdefs.h >>conftest.$ac_ext
8822 cat >>conftest.$ac_ext <<_ACEOF
8823 /* end confdefs.h. */
8824
8825 int
8826 main ()
8827 {
8828 /* FIXME: Include the comments suggested by Paul. */
8829 #ifndef __cplusplus
8830 /* Ultrix mips cc rejects this. */
8831 typedef int charset[2];
8832 const charset cs;
8833 /* SunOS 4.1.1 cc rejects this. */
8834 char const *const *pcpcc;
8835 char **ppc;
8836 /* NEC SVR4.0.2 mips cc rejects this. */
8837 struct point {int x, y;};
8838 static struct point const zero = {0,0};
8839 /* AIX XL C 1.02.0.0 rejects this.
8840 It does not let you subtract one const X* pointer from another in
8841 an arm of an if-expression whose if-part is not a constant
8842 expression */
8843 const char *g = "string";
8844 pcpcc = &g + (g ? g-g : 0);
8845 /* HPUX 7.0 cc rejects these. */
8846 ++pcpcc;
8847 ppc = (char**) pcpcc;
8848 pcpcc = (char const *const *) ppc;
8849 { /* SCO 3.2v4 cc rejects this. */
8850 char *t;
8851 char const *s = 0 ? (char *) 0 : (char const *) 0;
8852
8853 *t++ = 0;
8854 if (s) return 0;
8855 }
8856 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8857 int x[] = {25, 17};
8858 const int *foo = &x[0];
8859 ++foo;
8860 }
8861 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8862 typedef const int *iptr;
8863 iptr p = 0;
8864 ++p;
8865 }
8866 { /* AIX XL C 1.02.0.0 rejects this saying
8867 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8868 struct s { int j; const int *ap[3]; };
8869 struct s *b; b->j = 5;
8870 }
8871 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8872 const int foo = 10;
8873 if (!foo) return 0;
8874 }
8875 return !cs[0] && !zero.x;
8876 #endif
8877
8878 ;
8879 return 0;
8880 }
8881 _ACEOF
8882 rm -f conftest.$ac_objext
8883 if { (ac_try="$ac_compile"
8884 case "(($ac_try" in
8885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886 *) ac_try_echo=$ac_try;;
8887 esac
8888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8889 (eval "$ac_compile") 2>conftest.er1
8890 ac_status=$?
8891 grep -v '^ *+' conftest.er1 >conftest.err
8892 rm -f conftest.er1
8893 cat conftest.err >&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); } && {
8896 test -z "$ac_c_werror_flag" ||
8897 test ! -s conftest.err
8898 } && test -s conftest.$ac_objext; then
8899 ac_cv_c_const=yes
8900 else
8901 echo "$as_me: failed program was:" >&5
8902 sed 's/^/| /' conftest.$ac_ext >&5
8903
8904 ac_cv_c_const=no
8905 fi
8906
8907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8908 fi
8909 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8910 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8911 if test $ac_cv_c_const = no; then
8912
8913 cat >>confdefs.h <<\_ACEOF
8914 #define const
8915 _ACEOF
8916
8917 fi
8918
8919 { echo "$as_me:$LINENO: checking for void * support" >&5
8920 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8921 if test "${emacs_cv_void_star+set}" = set; then
8922 echo $ECHO_N "(cached) $ECHO_C" >&6
8923 else
8924 cat >conftest.$ac_ext <<_ACEOF
8925 /* confdefs.h. */
8926 _ACEOF
8927 cat confdefs.h >>conftest.$ac_ext
8928 cat >>conftest.$ac_ext <<_ACEOF
8929 /* end confdefs.h. */
8930
8931 int
8932 main ()
8933 {
8934 void * foo;
8935 ;
8936 return 0;
8937 }
8938 _ACEOF
8939 rm -f conftest.$ac_objext
8940 if { (ac_try="$ac_compile"
8941 case "(($ac_try" in
8942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8943 *) ac_try_echo=$ac_try;;
8944 esac
8945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946 (eval "$ac_compile") 2>conftest.er1
8947 ac_status=$?
8948 grep -v '^ *+' conftest.er1 >conftest.err
8949 rm -f conftest.er1
8950 cat conftest.err >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } && {
8953 test -z "$ac_c_werror_flag" ||
8954 test ! -s conftest.err
8955 } && test -s conftest.$ac_objext; then
8956 emacs_cv_void_star=yes
8957 else
8958 echo "$as_me: failed program was:" >&5
8959 sed 's/^/| /' conftest.$ac_ext >&5
8960
8961 emacs_cv_void_star=no
8962 fi
8963
8964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8965 fi
8966 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8967 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8968 if test $emacs_cv_void_star = yes; then
8969 cat >>confdefs.h <<\_ACEOF
8970 #define POINTER_TYPE void
8971 _ACEOF
8972
8973 else
8974 cat >>confdefs.h <<\_ACEOF
8975 #define POINTER_TYPE char
8976 _ACEOF
8977
8978 fi
8979
8980
8981
8982
8983
8984 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8985 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8986 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8987 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8988 echo $ECHO_N "(cached) $ECHO_C" >&6
8989 else
8990 cat >conftest.make <<\_ACEOF
8991 SHELL = /bin/sh
8992 all:
8993 @echo '@@@%%%=$(MAKE)=@@@%%%'
8994 _ACEOF
8995 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8996 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8997 *@@@%%%=?*=@@@%%%*)
8998 eval ac_cv_prog_make_${ac_make}_set=yes;;
8999 *)
9000 eval ac_cv_prog_make_${ac_make}_set=no;;
9001 esac
9002 rm -f conftest.make
9003 fi
9004 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9005 { echo "$as_me:$LINENO: result: yes" >&5
9006 echo "${ECHO_T}yes" >&6; }
9007 SET_MAKE=
9008 else
9009 { echo "$as_me:$LINENO: result: no" >&5
9010 echo "${ECHO_T}no" >&6; }
9011 SET_MAKE="MAKE=${MAKE-make}"
9012 fi
9013
9014
9015 { echo "$as_me:$LINENO: checking for long file names" >&5
9016 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9017 if test "${ac_cv_sys_long_file_names+set}" = set; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9019 else
9020 ac_cv_sys_long_file_names=yes
9021 # Test for long file names in all the places we know might matter:
9022 # . the current directory, where building will happen
9023 # $prefix/lib where we will be installing things
9024 # $exec_prefix/lib likewise
9025 # $TMPDIR if set, where it might want to write temporary files
9026 # /tmp where it might want to write temporary files
9027 # /var/tmp likewise
9028 # /usr/tmp likewise
9029 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9030 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9031 # in the usual case where exec_prefix is '${prefix}'.
9032 case $ac_dir in #(
9033 . | /* | ?:[\\/]*) ;; #(
9034 *) continue;;
9035 esac
9036 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9037 ac_xdir=$ac_dir/cf$$
9038 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9039 ac_tf1=$ac_xdir/conftest9012345
9040 ac_tf2=$ac_xdir/conftest9012346
9041 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9042 ac_cv_sys_long_file_names=no
9043 rm -f -r "$ac_xdir" 2>/dev/null
9044 test $ac_cv_sys_long_file_names = no && break
9045 done
9046 fi
9047 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9048 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9049 if test $ac_cv_sys_long_file_names = yes; then
9050
9051 cat >>confdefs.h <<\_ACEOF
9052 #define HAVE_LONG_FILE_NAMES 1
9053 _ACEOF
9054
9055 fi
9056
9057
9058 #### Choose a window system.
9059
9060 { echo "$as_me:$LINENO: checking for X" >&5
9061 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9062
9063
9064 # Check whether --with-x was given.
9065 if test "${with_x+set}" = set; then
9066 withval=$with_x;
9067 fi
9068
9069 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9070 if test "x$with_x" = xno; then
9071 # The user explicitly disabled X.
9072 have_x=disabled
9073 else
9074 case $x_includes,$x_libraries in #(
9075 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9076 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9077 { (exit 1); exit 1; }; };; #(
9078 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9079 echo $ECHO_N "(cached) $ECHO_C" >&6
9080 else
9081 # One or both of the vars are not set, and there is no cached value.
9082 ac_x_includes=no ac_x_libraries=no
9083 rm -f -r conftest.dir
9084 if mkdir conftest.dir; then
9085 cd conftest.dir
9086 cat >Imakefile <<'_ACEOF'
9087 incroot:
9088 @echo incroot='${INCROOT}'
9089 usrlibdir:
9090 @echo usrlibdir='${USRLIBDIR}'
9091 libdir:
9092 @echo libdir='${LIBDIR}'
9093 _ACEOF
9094 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9095 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9096 for ac_var in incroot usrlibdir libdir; do
9097 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9098 done
9099 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9100 for ac_extension in a so sl; do
9101 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9102 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9103 ac_im_usrlibdir=$ac_im_libdir; break
9104 fi
9105 done
9106 # Screen out bogus values from the imake configuration. They are
9107 # bogus both because they are the default anyway, and because
9108 # using them would break gcc on systems where it needs fixed includes.
9109 case $ac_im_incroot in
9110 /usr/include) ac_x_includes= ;;
9111 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9112 esac
9113 case $ac_im_usrlibdir in
9114 /usr/lib | /lib) ;;
9115 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9116 esac
9117 fi
9118 cd ..
9119 rm -f -r conftest.dir
9120 fi
9121
9122 # Standard set of common directories for X headers.
9123 # Check X11 before X11Rn because it is often a symlink to the current release.
9124 ac_x_header_dirs='
9125 /usr/X11/include
9126 /usr/X11R6/include
9127 /usr/X11R5/include
9128 /usr/X11R4/include
9129
9130 /usr/include/X11
9131 /usr/include/X11R6
9132 /usr/include/X11R5
9133 /usr/include/X11R4
9134
9135 /usr/local/X11/include
9136 /usr/local/X11R6/include
9137 /usr/local/X11R5/include
9138 /usr/local/X11R4/include
9139
9140 /usr/local/include/X11
9141 /usr/local/include/X11R6
9142 /usr/local/include/X11R5
9143 /usr/local/include/X11R4
9144
9145 /usr/X386/include
9146 /usr/x386/include
9147 /usr/XFree86/include/X11
9148
9149 /usr/include
9150 /usr/local/include
9151 /usr/unsupported/include
9152 /usr/athena/include
9153 /usr/local/x11r5/include
9154 /usr/lpp/Xamples/include
9155
9156 /usr/openwin/include
9157 /usr/openwin/share/include'
9158
9159 if test "$ac_x_includes" = no; then
9160 # Guess where to find include files, by looking for Xlib.h.
9161 # First, try using that file with no special directory specified.
9162 cat >conftest.$ac_ext <<_ACEOF
9163 /* confdefs.h. */
9164 _ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h. */
9168 #include <X11/Xlib.h>
9169 _ACEOF
9170 if { (ac_try="$ac_cpp conftest.$ac_ext"
9171 case "(($ac_try" in
9172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9173 *) ac_try_echo=$ac_try;;
9174 esac
9175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9177 ac_status=$?
9178 grep -v '^ *+' conftest.er1 >conftest.err
9179 rm -f conftest.er1
9180 cat conftest.err >&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); } >/dev/null && {
9183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9184 test ! -s conftest.err
9185 }; then
9186 # We can compile using X headers with no special include directory.
9187 ac_x_includes=
9188 else
9189 echo "$as_me: failed program was:" >&5
9190 sed 's/^/| /' conftest.$ac_ext >&5
9191
9192 for ac_dir in $ac_x_header_dirs; do
9193 if test -r "$ac_dir/X11/Xlib.h"; then
9194 ac_x_includes=$ac_dir
9195 break
9196 fi
9197 done
9198 fi
9199
9200 rm -f conftest.err conftest.$ac_ext
9201 fi # $ac_x_includes = no
9202
9203 if test "$ac_x_libraries" = no; then
9204 # Check for the libraries.
9205 # See if we find them without any special options.
9206 # Don't add to $LIBS permanently.
9207 ac_save_LIBS=$LIBS
9208 LIBS="-lX11 $LIBS"
9209 cat >conftest.$ac_ext <<_ACEOF
9210 /* confdefs.h. */
9211 _ACEOF
9212 cat confdefs.h >>conftest.$ac_ext
9213 cat >>conftest.$ac_ext <<_ACEOF
9214 /* end confdefs.h. */
9215 #include <X11/Xlib.h>
9216 int
9217 main ()
9218 {
9219 XrmInitialize ()
9220 ;
9221 return 0;
9222 }
9223 _ACEOF
9224 rm -f conftest.$ac_objext conftest$ac_exeext
9225 if { (ac_try="$ac_link"
9226 case "(($ac_try" in
9227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9228 *) ac_try_echo=$ac_try;;
9229 esac
9230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9231 (eval "$ac_link") 2>conftest.er1
9232 ac_status=$?
9233 grep -v '^ *+' conftest.er1 >conftest.err
9234 rm -f conftest.er1
9235 cat conftest.err >&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); } && {
9238 test -z "$ac_c_werror_flag" ||
9239 test ! -s conftest.err
9240 } && test -s conftest$ac_exeext &&
9241 $as_test_x conftest$ac_exeext; then
9242 LIBS=$ac_save_LIBS
9243 # We can link X programs with no special library path.
9244 ac_x_libraries=
9245 else
9246 echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9248
9249 LIBS=$ac_save_LIBS
9250 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9251 do
9252 # Don't even attempt the hair of trying to link an X program!
9253 for ac_extension in a so sl; do
9254 if test -r "$ac_dir/libX11.$ac_extension"; then
9255 ac_x_libraries=$ac_dir
9256 break 2
9257 fi
9258 done
9259 done
9260 fi
9261
9262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9263 conftest$ac_exeext conftest.$ac_ext
9264 fi # $ac_x_libraries = no
9265
9266 case $ac_x_includes,$ac_x_libraries in #(
9267 no,* | *,no | *\'*)
9268 # Didn't find X, or a directory has "'" in its name.
9269 ac_cv_have_x="have_x=no";; #(
9270 *)
9271 # Record where we found X for the cache.
9272 ac_cv_have_x="have_x=yes\
9273 ac_x_includes='$ac_x_includes'\
9274 ac_x_libraries='$ac_x_libraries'"
9275 esac
9276 fi
9277 ;; #(
9278 *) have_x=yes;;
9279 esac
9280 eval "$ac_cv_have_x"
9281 fi # $with_x != no
9282
9283 if test "$have_x" != yes; then
9284 { echo "$as_me:$LINENO: result: $have_x" >&5
9285 echo "${ECHO_T}$have_x" >&6; }
9286 no_x=yes
9287 else
9288 # If each of the values was on the command line, it overrides each guess.
9289 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9290 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9291 # Update the cache value to reflect the command line values.
9292 ac_cv_have_x="have_x=yes\
9293 ac_x_includes='$x_includes'\
9294 ac_x_libraries='$x_libraries'"
9295 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9296 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9297 fi
9298
9299 if test "$no_x" = yes; then
9300 window_system=none
9301 else
9302 window_system=x11
9303 fi
9304
9305 if test "${x_libraries}" != NONE; then
9306 if test -n "${x_libraries}"; then
9307 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9308 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9309 fi
9310 x_default_search_path=""
9311 x_search_path=${x_libraries}
9312 if test -z "${x_search_path}"; then
9313 x_search_path=/usr/lib
9314 fi
9315 for x_library in `echo ${x_search_path}: | \
9316 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9317 x_search_path="\
9318 ${x_library}/X11/%L/%T/%N%C%S:\
9319 ${x_library}/X11/%l/%T/%N%C%S:\
9320 ${x_library}/X11/%T/%N%C%S:\
9321 ${x_library}/X11/%L/%T/%N%S:\
9322 ${x_library}/X11/%l/%T/%N%S:\
9323 ${x_library}/X11/%T/%N%S"
9324 if test x"${x_default_search_path}" = x; then
9325 x_default_search_path=${x_search_path}
9326 else
9327 x_default_search_path="${x_search_path}:${x_default_search_path}"
9328 fi
9329 done
9330 fi
9331 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9332 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9333 fi
9334
9335 if test x"${x_includes}" = x; then
9336 bitmapdir=/usr/include/X11/bitmaps
9337 else
9338 # accumulate include directories that have X11 bitmap subdirectories
9339 bmd_acc="dummyval"
9340 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9341 if test -d "${bmd}/X11/bitmaps"; then
9342 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9343 fi
9344 if test -d "${bmd}/bitmaps"; then
9345 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9346 fi
9347 done
9348 if test ${bmd_acc} != "dummyval"; then
9349 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9350 fi
9351 fi
9352
9353 HAVE_CARBON=no
9354 if test "${with_carbon}" != no; then
9355 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9356 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9357 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9358 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9359 echo $ECHO_N "(cached) $ECHO_C" >&6
9360 fi
9361 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9362 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9363 else
9364 # Is the header compilable?
9365 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9366 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9367 cat >conftest.$ac_ext <<_ACEOF
9368 /* confdefs.h. */
9369 _ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9373 $ac_includes_default
9374 #include <Carbon/Carbon.h>
9375 _ACEOF
9376 rm -f conftest.$ac_objext
9377 if { (ac_try="$ac_compile"
9378 case "(($ac_try" in
9379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9380 *) ac_try_echo=$ac_try;;
9381 esac
9382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9383 (eval "$ac_compile") 2>conftest.er1
9384 ac_status=$?
9385 grep -v '^ *+' conftest.er1 >conftest.err
9386 rm -f conftest.er1
9387 cat conftest.err >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } && {
9390 test -z "$ac_c_werror_flag" ||
9391 test ! -s conftest.err
9392 } && test -s conftest.$ac_objext; then
9393 ac_header_compiler=yes
9394 else
9395 echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.$ac_ext >&5
9397
9398 ac_header_compiler=no
9399 fi
9400
9401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9402 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9403 echo "${ECHO_T}$ac_header_compiler" >&6; }
9404
9405 # Is the header present?
9406 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9407 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9408 cat >conftest.$ac_ext <<_ACEOF
9409 /* confdefs.h. */
9410 _ACEOF
9411 cat confdefs.h >>conftest.$ac_ext
9412 cat >>conftest.$ac_ext <<_ACEOF
9413 /* end confdefs.h. */
9414 #include <Carbon/Carbon.h>
9415 _ACEOF
9416 if { (ac_try="$ac_cpp conftest.$ac_ext"
9417 case "(($ac_try" in
9418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9419 *) ac_try_echo=$ac_try;;
9420 esac
9421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9423 ac_status=$?
9424 grep -v '^ *+' conftest.er1 >conftest.err
9425 rm -f conftest.er1
9426 cat conftest.err >&5
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); } >/dev/null && {
9429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9430 test ! -s conftest.err
9431 }; then
9432 ac_header_preproc=yes
9433 else
9434 echo "$as_me: failed program was:" >&5
9435 sed 's/^/| /' conftest.$ac_ext >&5
9436
9437 ac_header_preproc=no
9438 fi
9439
9440 rm -f conftest.err conftest.$ac_ext
9441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9442 echo "${ECHO_T}$ac_header_preproc" >&6; }
9443
9444 # So? What about this header?
9445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9446 yes:no: )
9447 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9448 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9449 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9450 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9451 ac_header_preproc=yes
9452 ;;
9453 no:yes:* )
9454 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9455 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9456 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9457 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9458 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9459 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9460 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9461 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9462 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9463 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9464 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9465 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9466
9467 ;;
9468 esac
9469 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9470 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9471 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 else
9474 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9475 fi
9476 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9477 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9478
9479 fi
9480 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9481 HAVE_CARBON=yes
9482 fi
9483
9484
9485 fi
9486 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9487 if test "${with_carbon+set}" != set \
9488 && test "${carbon_appdir_x+set}" != set; then
9489 for var in with_x with_x_toolkit with_gtk with_xim \
9490 with_xpm with_jpeg with_tiff with_gif with_png; do
9491 if eval test \"\${$var+set}\" = set; then
9492 HAVE_CARBON=no
9493 break
9494 fi
9495 done
9496 fi
9497 fi
9498 if test "${HAVE_CARBON}" = yes; then
9499 window_system=mac
9500 fi
9501
9502 case "${window_system}" in
9503 x11 )
9504 HAVE_X_WINDOWS=yes
9505 HAVE_X11=yes
9506 case "${with_x_toolkit}" in
9507 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9508 motif ) USE_X_TOOLKIT=MOTIF ;;
9509 gtk ) with_gtk=yes
9510 USE_X_TOOLKIT=none ;;
9511 no ) USE_X_TOOLKIT=none ;;
9512 * ) USE_X_TOOLKIT=maybe ;;
9513 esac
9514 ;;
9515 mac | none )
9516 HAVE_X_WINDOWS=no
9517 HAVE_X11=no
9518 USE_X_TOOLKIT=none
9519 ;;
9520 esac
9521
9522 ### If we're using X11, we should use the X menu package.
9523 HAVE_MENUS=no
9524 case ${HAVE_X11} in
9525 yes ) HAVE_MENUS=yes ;;
9526 esac
9527
9528 if test "${opsys}" = "hpux9"; then
9529 case "${x_libraries}" in
9530 *X11R4* )
9531 opsysfile="s/hpux9-x11r4.h"
9532 ;;
9533 esac
9534 fi
9535
9536 if test "${opsys}" = "hpux9shr"; then
9537 case "${x_libraries}" in
9538 *X11R4* )
9539 opsysfile="s/hpux9shxr4.h"
9540 ;;
9541 esac
9542 fi
9543
9544 ### Compute the unexec source name from the object name.
9545 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9546
9547 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9548 # Assume not, until told otherwise.
9549 GNU_MALLOC=yes
9550 doug_lea_malloc=yes
9551 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9552 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9553 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9554 echo $ECHO_N "(cached) $ECHO_C" >&6
9555 else
9556 cat >conftest.$ac_ext <<_ACEOF
9557 /* confdefs.h. */
9558 _ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h. */
9562 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9564 #define malloc_get_state innocuous_malloc_get_state
9565
9566 /* System header to define __stub macros and hopefully few prototypes,
9567 which can conflict with char malloc_get_state (); below.
9568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9569 <limits.h> exists even on freestanding compilers. */
9570
9571 #ifdef __STDC__
9572 # include <limits.h>
9573 #else
9574 # include <assert.h>
9575 #endif
9576
9577 #undef malloc_get_state
9578
9579 /* Override any GCC internal prototype to avoid an error.
9580 Use char because int might match the return type of a GCC
9581 builtin and then its argument prototype would still apply. */
9582 #ifdef __cplusplus
9583 extern "C"
9584 #endif
9585 char malloc_get_state ();
9586 /* The GNU C library defines this for functions which it implements
9587 to always fail with ENOSYS. Some functions are actually named
9588 something starting with __ and the normal name is an alias. */
9589 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9590 choke me
9591 #endif
9592
9593 int
9594 main ()
9595 {
9596 return malloc_get_state ();
9597 ;
9598 return 0;
9599 }
9600 _ACEOF
9601 rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (ac_try="$ac_link"
9603 case "(($ac_try" in
9604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605 *) ac_try_echo=$ac_try;;
9606 esac
9607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9608 (eval "$ac_link") 2>conftest.er1
9609 ac_status=$?
9610 grep -v '^ *+' conftest.er1 >conftest.err
9611 rm -f conftest.er1
9612 cat conftest.err >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } && {
9615 test -z "$ac_c_werror_flag" ||
9616 test ! -s conftest.err
9617 } && test -s conftest$ac_exeext &&
9618 $as_test_x conftest$ac_exeext; then
9619 ac_cv_func_malloc_get_state=yes
9620 else
9621 echo "$as_me: failed program was:" >&5
9622 sed 's/^/| /' conftest.$ac_ext >&5
9623
9624 ac_cv_func_malloc_get_state=no
9625 fi
9626
9627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9628 conftest$ac_exeext conftest.$ac_ext
9629 fi
9630 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9631 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9632 if test $ac_cv_func_malloc_get_state = yes; then
9633 :
9634 else
9635 doug_lea_malloc=no
9636 fi
9637
9638 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9639 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9640 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9641 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 else
9643 cat >conftest.$ac_ext <<_ACEOF
9644 /* confdefs.h. */
9645 _ACEOF
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h. */
9649 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9651 #define malloc_set_state innocuous_malloc_set_state
9652
9653 /* System header to define __stub macros and hopefully few prototypes,
9654 which can conflict with char malloc_set_state (); below.
9655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9656 <limits.h> exists even on freestanding compilers. */
9657
9658 #ifdef __STDC__
9659 # include <limits.h>
9660 #else
9661 # include <assert.h>
9662 #endif
9663
9664 #undef malloc_set_state
9665
9666 /* Override any GCC internal prototype to avoid an error.
9667 Use char because int might match the return type of a GCC
9668 builtin and then its argument prototype would still apply. */
9669 #ifdef __cplusplus
9670 extern "C"
9671 #endif
9672 char malloc_set_state ();
9673 /* The GNU C library defines this for functions which it implements
9674 to always fail with ENOSYS. Some functions are actually named
9675 something starting with __ and the normal name is an alias. */
9676 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9677 choke me
9678 #endif
9679
9680 int
9681 main ()
9682 {
9683 return malloc_set_state ();
9684 ;
9685 return 0;
9686 }
9687 _ACEOF
9688 rm -f conftest.$ac_objext conftest$ac_exeext
9689 if { (ac_try="$ac_link"
9690 case "(($ac_try" in
9691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692 *) ac_try_echo=$ac_try;;
9693 esac
9694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695 (eval "$ac_link") 2>conftest.er1
9696 ac_status=$?
9697 grep -v '^ *+' conftest.er1 >conftest.err
9698 rm -f conftest.er1
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } && {
9702 test -z "$ac_c_werror_flag" ||
9703 test ! -s conftest.err
9704 } && test -s conftest$ac_exeext &&
9705 $as_test_x conftest$ac_exeext; then
9706 ac_cv_func_malloc_set_state=yes
9707 else
9708 echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.$ac_ext >&5
9710
9711 ac_cv_func_malloc_set_state=no
9712 fi
9713
9714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9715 conftest$ac_exeext conftest.$ac_ext
9716 fi
9717 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9718 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9719 if test $ac_cv_func_malloc_set_state = yes; then
9720 :
9721 else
9722 doug_lea_malloc=no
9723 fi
9724
9725 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9726 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9727 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9729 else
9730 cat >conftest.$ac_ext <<_ACEOF
9731 /* confdefs.h. */
9732 _ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h. */
9736 extern void (* __after_morecore_hook)();
9737 int
9738 main ()
9739 {
9740 __after_morecore_hook = 0
9741 ;
9742 return 0;
9743 }
9744 _ACEOF
9745 rm -f conftest.$ac_objext conftest$ac_exeext
9746 if { (ac_try="$ac_link"
9747 case "(($ac_try" in
9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749 *) ac_try_echo=$ac_try;;
9750 esac
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752 (eval "$ac_link") 2>conftest.er1
9753 ac_status=$?
9754 grep -v '^ *+' conftest.er1 >conftest.err
9755 rm -f conftest.er1
9756 cat conftest.err >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } && {
9759 test -z "$ac_c_werror_flag" ||
9760 test ! -s conftest.err
9761 } && test -s conftest$ac_exeext &&
9762 $as_test_x conftest$ac_exeext; then
9763 emacs_cv_var___after_morecore_hook=yes
9764 else
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9767
9768 emacs_cv_var___after_morecore_hook=no
9769 fi
9770
9771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9772 conftest$ac_exeext conftest.$ac_ext
9773 fi
9774 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9775 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9776 if test $emacs_cv_var___after_morecore_hook = no; then
9777 doug_lea_malloc=no
9778 fi
9779 if test "${system_malloc}" = "yes"; then
9780 GNU_MALLOC=no
9781 GNU_MALLOC_reason="
9782 (The GNU allocators don't work with this system configuration.)"
9783 fi
9784 if test "$doug_lea_malloc" = "yes" ; then
9785 if test "$GNU_MALLOC" = yes ; then
9786 GNU_MALLOC_reason="
9787 (Using Doug Lea's new malloc from the GNU C Library.)"
9788 fi
9789
9790 cat >>confdefs.h <<\_ACEOF
9791 #define DOUG_LEA_MALLOC 1
9792 _ACEOF
9793
9794 fi
9795
9796 if test x"${REL_ALLOC}" = x; then
9797 REL_ALLOC=${GNU_MALLOC}
9798 fi
9799
9800
9801
9802
9803 for ac_header in stdlib.h unistd.h
9804 do
9805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9811 fi
9812 ac_res=`eval echo '${'$as_ac_Header'}'`
9813 { echo "$as_me:$LINENO: result: $ac_res" >&5
9814 echo "${ECHO_T}$ac_res" >&6; }
9815 else
9816 # Is the header compilable?
9817 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9819 cat >conftest.$ac_ext <<_ACEOF
9820 /* confdefs.h. */
9821 _ACEOF
9822 cat confdefs.h >>conftest.$ac_ext
9823 cat >>conftest.$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9825 $ac_includes_default
9826 #include <$ac_header>
9827 _ACEOF
9828 rm -f conftest.$ac_objext
9829 if { (ac_try="$ac_compile"
9830 case "(($ac_try" in
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9833 esac
9834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_compile") 2>conftest.er1
9836 ac_status=$?
9837 grep -v '^ *+' conftest.er1 >conftest.err
9838 rm -f conftest.er1
9839 cat conftest.err >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } && {
9842 test -z "$ac_c_werror_flag" ||
9843 test ! -s conftest.err
9844 } && test -s conftest.$ac_objext; then
9845 ac_header_compiler=yes
9846 else
9847 echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9849
9850 ac_header_compiler=no
9851 fi
9852
9853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9855 echo "${ECHO_T}$ac_header_compiler" >&6; }
9856
9857 # Is the header present?
9858 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9860 cat >conftest.$ac_ext <<_ACEOF
9861 /* confdefs.h. */
9862 _ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9866 #include <$ac_header>
9867 _ACEOF
9868 if { (ac_try="$ac_cpp conftest.$ac_ext"
9869 case "(($ac_try" in
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9872 esac
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9875 ac_status=$?
9876 grep -v '^ *+' conftest.er1 >conftest.err
9877 rm -f conftest.er1
9878 cat conftest.err >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); } >/dev/null && {
9881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9882 test ! -s conftest.err
9883 }; then
9884 ac_header_preproc=yes
9885 else
9886 echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.$ac_ext >&5
9888
9889 ac_header_preproc=no
9890 fi
9891
9892 rm -f conftest.err conftest.$ac_ext
9893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9894 echo "${ECHO_T}$ac_header_preproc" >&6; }
9895
9896 # So? What about this header?
9897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9898 yes:no: )
9899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9903 ac_header_preproc=yes
9904 ;;
9905 no:yes:* )
9906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9918
9919 ;;
9920 esac
9921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9925 else
9926 eval "$as_ac_Header=\$ac_header_preproc"
9927 fi
9928 ac_res=`eval echo '${'$as_ac_Header'}'`
9929 { echo "$as_me:$LINENO: result: $ac_res" >&5
9930 echo "${ECHO_T}$ac_res" >&6; }
9931
9932 fi
9933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9934 cat >>confdefs.h <<_ACEOF
9935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9936 _ACEOF
9937
9938 fi
9939
9940 done
9941
9942
9943 for ac_func in getpagesize
9944 do
9945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9946 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9948 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
9950 else
9951 cat >conftest.$ac_ext <<_ACEOF
9952 /* confdefs.h. */
9953 _ACEOF
9954 cat confdefs.h >>conftest.$ac_ext
9955 cat >>conftest.$ac_ext <<_ACEOF
9956 /* end confdefs.h. */
9957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9959 #define $ac_func innocuous_$ac_func
9960
9961 /* System header to define __stub macros and hopefully few prototypes,
9962 which can conflict with char $ac_func (); below.
9963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9964 <limits.h> exists even on freestanding compilers. */
9965
9966 #ifdef __STDC__
9967 # include <limits.h>
9968 #else
9969 # include <assert.h>
9970 #endif
9971
9972 #undef $ac_func
9973
9974 /* Override any GCC internal prototype to avoid an error.
9975 Use char because int might match the return type of a GCC
9976 builtin and then its argument prototype would still apply. */
9977 #ifdef __cplusplus
9978 extern "C"
9979 #endif
9980 char $ac_func ();
9981 /* The GNU C library defines this for functions which it implements
9982 to always fail with ENOSYS. Some functions are actually named
9983 something starting with __ and the normal name is an alias. */
9984 #if defined __stub_$ac_func || defined __stub___$ac_func
9985 choke me
9986 #endif
9987
9988 int
9989 main ()
9990 {
9991 return $ac_func ();
9992 ;
9993 return 0;
9994 }
9995 _ACEOF
9996 rm -f conftest.$ac_objext conftest$ac_exeext
9997 if { (ac_try="$ac_link"
9998 case "(($ac_try" in
9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10001 esac
10002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003 (eval "$ac_link") 2>conftest.er1
10004 ac_status=$?
10005 grep -v '^ *+' conftest.er1 >conftest.err
10006 rm -f conftest.er1
10007 cat conftest.err >&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } && {
10010 test -z "$ac_c_werror_flag" ||
10011 test ! -s conftest.err
10012 } && test -s conftest$ac_exeext &&
10013 $as_test_x conftest$ac_exeext; then
10014 eval "$as_ac_var=yes"
10015 else
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10018
10019 eval "$as_ac_var=no"
10020 fi
10021
10022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10023 conftest$ac_exeext conftest.$ac_ext
10024 fi
10025 ac_res=`eval echo '${'$as_ac_var'}'`
10026 { echo "$as_me:$LINENO: result: $ac_res" >&5
10027 echo "${ECHO_T}$ac_res" >&6; }
10028 if test `eval echo '${'$as_ac_var'}'` = yes; then
10029 cat >>confdefs.h <<_ACEOF
10030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10031 _ACEOF
10032
10033 fi
10034 done
10035
10036 { echo "$as_me:$LINENO: checking for working mmap" >&5
10037 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10038 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10039 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 else
10041 if test "$cross_compiling" = yes; then
10042 ac_cv_func_mmap_fixed_mapped=no
10043 else
10044 cat >conftest.$ac_ext <<_ACEOF
10045 /* confdefs.h. */
10046 _ACEOF
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h. */
10050 $ac_includes_default
10051 /* malloc might have been renamed as rpl_malloc. */
10052 #undef malloc
10053
10054 /* Thanks to Mike Haertel and Jim Avera for this test.
10055 Here is a matrix of mmap possibilities:
10056 mmap private not fixed
10057 mmap private fixed at somewhere currently unmapped
10058 mmap private fixed at somewhere already mapped
10059 mmap shared not fixed
10060 mmap shared fixed at somewhere currently unmapped
10061 mmap shared fixed at somewhere already mapped
10062 For private mappings, we should verify that changes cannot be read()
10063 back from the file, nor mmap's back from the file at a different
10064 address. (There have been systems where private was not correctly
10065 implemented like the infamous i386 svr4.0, and systems where the
10066 VM page cache was not coherent with the file system buffer cache
10067 like early versions of FreeBSD and possibly contemporary NetBSD.)
10068 For shared mappings, we should conversely verify that changes get
10069 propagated back to all the places they're supposed to be.
10070
10071 Grep wants private fixed already mapped.
10072 The main things grep needs to know about mmap are:
10073 * does it exist and is it safe to write into the mmap'd area
10074 * how to use it (BSD variants) */
10075
10076 #include <fcntl.h>
10077 #include <sys/mman.h>
10078
10079 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10080 char *malloc ();
10081 #endif
10082
10083 /* This mess was copied from the GNU getpagesize.h. */
10084 #ifndef HAVE_GETPAGESIZE
10085 /* Assume that all systems that can run configure have sys/param.h. */
10086 # ifndef HAVE_SYS_PARAM_H
10087 # define HAVE_SYS_PARAM_H 1
10088 # endif
10089
10090 # ifdef _SC_PAGESIZE
10091 # define getpagesize() sysconf(_SC_PAGESIZE)
10092 # else /* no _SC_PAGESIZE */
10093 # ifdef HAVE_SYS_PARAM_H
10094 # include <sys/param.h>
10095 # ifdef EXEC_PAGESIZE
10096 # define getpagesize() EXEC_PAGESIZE
10097 # else /* no EXEC_PAGESIZE */
10098 # ifdef NBPG
10099 # define getpagesize() NBPG * CLSIZE
10100 # ifndef CLSIZE
10101 # define CLSIZE 1
10102 # endif /* no CLSIZE */
10103 # else /* no NBPG */
10104 # ifdef NBPC
10105 # define getpagesize() NBPC
10106 # else /* no NBPC */
10107 # ifdef PAGESIZE
10108 # define getpagesize() PAGESIZE
10109 # endif /* PAGESIZE */
10110 # endif /* no NBPC */
10111 # endif /* no NBPG */
10112 # endif /* no EXEC_PAGESIZE */
10113 # else /* no HAVE_SYS_PARAM_H */
10114 # define getpagesize() 8192 /* punt totally */
10115 # endif /* no HAVE_SYS_PARAM_H */
10116 # endif /* no _SC_PAGESIZE */
10117
10118 #endif /* no HAVE_GETPAGESIZE */
10119
10120 int
10121 main ()
10122 {
10123 char *data, *data2, *data3;
10124 int i, pagesize;
10125 int fd;
10126
10127 pagesize = getpagesize ();
10128
10129 /* First, make a file with some known garbage in it. */
10130 data = (char *) malloc (pagesize);
10131 if (!data)
10132 return 1;
10133 for (i = 0; i < pagesize; ++i)
10134 *(data + i) = rand ();
10135 umask (0);
10136 fd = creat ("conftest.mmap", 0600);
10137 if (fd < 0)
10138 return 1;
10139 if (write (fd, data, pagesize) != pagesize)
10140 return 1;
10141 close (fd);
10142
10143 /* Next, try to mmap the file at a fixed address which already has
10144 something else allocated at it. If we can, also make sure that
10145 we see the same garbage. */
10146 fd = open ("conftest.mmap", O_RDWR);
10147 if (fd < 0)
10148 return 1;
10149 data2 = (char *) malloc (2 * pagesize);
10150 if (!data2)
10151 return 1;
10152 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10153 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10154 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10155 return 1;
10156 for (i = 0; i < pagesize; ++i)
10157 if (*(data + i) != *(data2 + i))
10158 return 1;
10159
10160 /* Finally, make sure that changes to the mapped area do not
10161 percolate back to the file as seen by read(). (This is a bug on
10162 some variants of i386 svr4.0.) */
10163 for (i = 0; i < pagesize; ++i)
10164 *(data2 + i) = *(data2 + i) + 1;
10165 data3 = (char *) malloc (pagesize);
10166 if (!data3)
10167 return 1;
10168 if (read (fd, data3, pagesize) != pagesize)
10169 return 1;
10170 for (i = 0; i < pagesize; ++i)
10171 if (*(data + i) != *(data3 + i))
10172 return 1;
10173 close (fd);
10174 return 0;
10175 }
10176 _ACEOF
10177 rm -f conftest$ac_exeext
10178 if { (ac_try="$ac_link"
10179 case "(($ac_try" in
10180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10181 *) ac_try_echo=$ac_try;;
10182 esac
10183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10184 (eval "$ac_link") 2>&5
10185 ac_status=$?
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10188 { (case "(($ac_try" in
10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10191 esac
10192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193 (eval "$ac_try") 2>&5
10194 ac_status=$?
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); }; }; then
10197 ac_cv_func_mmap_fixed_mapped=yes
10198 else
10199 echo "$as_me: program exited with status $ac_status" >&5
10200 echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.$ac_ext >&5
10202
10203 ( exit $ac_status )
10204 ac_cv_func_mmap_fixed_mapped=no
10205 fi
10206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10207 fi
10208
10209
10210 fi
10211 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10212 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10213 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10214
10215 cat >>confdefs.h <<\_ACEOF
10216 #define HAVE_MMAP 1
10217 _ACEOF
10218
10219 fi
10220 rm -f conftest.mmap
10221
10222 if test $use_mmap_for_buffers = yes; then
10223 REL_ALLOC=no
10224 fi
10225
10226 LIBS="$libsrc_libs $LIBS"
10227
10228
10229 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10230 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10231 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10233 else
10234 ac_check_lib_save_LIBS=$LIBS
10235 LIBS="-ldnet $LIBS"
10236 cat >conftest.$ac_ext <<_ACEOF
10237 /* confdefs.h. */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10242
10243 /* Override any GCC internal prototype to avoid an error.
10244 Use char because int might match the return type of a GCC
10245 builtin and then its argument prototype would still apply. */
10246 #ifdef __cplusplus
10247 extern "C"
10248 #endif
10249 char dnet_ntoa ();
10250 int
10251 main ()
10252 {
10253 return dnet_ntoa ();
10254 ;
10255 return 0;
10256 }
10257 _ACEOF
10258 rm -f conftest.$ac_objext conftest$ac_exeext
10259 if { (ac_try="$ac_link"
10260 case "(($ac_try" in
10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10263 esac
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_link") 2>conftest.er1
10266 ac_status=$?
10267 grep -v '^ *+' conftest.er1 >conftest.err
10268 rm -f conftest.er1
10269 cat conftest.err >&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); } && {
10272 test -z "$ac_c_werror_flag" ||
10273 test ! -s conftest.err
10274 } && test -s conftest$ac_exeext &&
10275 $as_test_x conftest$ac_exeext; then
10276 ac_cv_lib_dnet_dnet_ntoa=yes
10277 else
10278 echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10280
10281 ac_cv_lib_dnet_dnet_ntoa=no
10282 fi
10283
10284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10285 conftest$ac_exeext conftest.$ac_ext
10286 LIBS=$ac_check_lib_save_LIBS
10287 fi
10288 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10289 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10290 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10291 cat >>confdefs.h <<_ACEOF
10292 #define HAVE_LIBDNET 1
10293 _ACEOF
10294
10295 LIBS="-ldnet $LIBS"
10296
10297 fi
10298
10299
10300 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10301 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10302 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 else
10305 ac_check_lib_save_LIBS=$LIBS
10306 LIBS="-lXbsd $LIBS"
10307 cat >conftest.$ac_ext <<_ACEOF
10308 /* confdefs.h. */
10309 _ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10313
10314
10315 int
10316 main ()
10317 {
10318 return main ();
10319 ;
10320 return 0;
10321 }
10322 _ACEOF
10323 rm -f conftest.$ac_objext conftest$ac_exeext
10324 if { (ac_try="$ac_link"
10325 case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10328 esac
10329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_link") 2>conftest.er1
10331 ac_status=$?
10332 grep -v '^ *+' conftest.er1 >conftest.err
10333 rm -f conftest.er1
10334 cat conftest.err >&5
10335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336 (exit $ac_status); } && {
10337 test -z "$ac_c_werror_flag" ||
10338 test ! -s conftest.err
10339 } && test -s conftest$ac_exeext &&
10340 $as_test_x conftest$ac_exeext; then
10341 ac_cv_lib_Xbsd_main=yes
10342 else
10343 echo "$as_me: failed program was:" >&5
10344 sed 's/^/| /' conftest.$ac_ext >&5
10345
10346 ac_cv_lib_Xbsd_main=no
10347 fi
10348
10349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10350 conftest$ac_exeext conftest.$ac_ext
10351 LIBS=$ac_check_lib_save_LIBS
10352 fi
10353 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10354 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10355 if test $ac_cv_lib_Xbsd_main = yes; then
10356 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10357 fi
10358
10359
10360
10361 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10362 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10363 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10365 else
10366 ac_check_lib_save_LIBS=$LIBS
10367 LIBS="-lpthreads $LIBS"
10368 cat >conftest.$ac_ext <<_ACEOF
10369 /* confdefs.h. */
10370 _ACEOF
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h. */
10374
10375 /* Override any GCC internal prototype to avoid an error.
10376 Use char because int might match the return type of a GCC
10377 builtin and then its argument prototype would still apply. */
10378 #ifdef __cplusplus
10379 extern "C"
10380 #endif
10381 char cma_open ();
10382 int
10383 main ()
10384 {
10385 return cma_open ();
10386 ;
10387 return 0;
10388 }
10389 _ACEOF
10390 rm -f conftest.$ac_objext conftest$ac_exeext
10391 if { (ac_try="$ac_link"
10392 case "(($ac_try" in
10393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10394 *) ac_try_echo=$ac_try;;
10395 esac
10396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10397 (eval "$ac_link") 2>conftest.er1
10398 ac_status=$?
10399 grep -v '^ *+' conftest.er1 >conftest.err
10400 rm -f conftest.er1
10401 cat conftest.err >&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); } && {
10404 test -z "$ac_c_werror_flag" ||
10405 test ! -s conftest.err
10406 } && test -s conftest$ac_exeext &&
10407 $as_test_x conftest$ac_exeext; then
10408 ac_cv_lib_pthreads_cma_open=yes
10409 else
10410 echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10412
10413 ac_cv_lib_pthreads_cma_open=no
10414 fi
10415
10416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10417 conftest$ac_exeext conftest.$ac_ext
10418 LIBS=$ac_check_lib_save_LIBS
10419 fi
10420 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10421 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10422 if test $ac_cv_lib_pthreads_cma_open = yes; then
10423 cat >>confdefs.h <<_ACEOF
10424 #define HAVE_LIBPTHREADS 1
10425 _ACEOF
10426
10427 LIBS="-lpthreads $LIBS"
10428
10429 fi
10430
10431
10432 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10433 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10434 if test -d /usr/X386/include; then
10435 HAVE_XFREE386=yes
10436 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10437 else
10438 HAVE_XFREE386=no
10439 fi
10440 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10441 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10442
10443
10444 case ${host_os} in
10445 aix*)
10446 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10447 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10448 if test "${gdb_cv_bigtoc+set}" = set; then
10449 echo $ECHO_N "(cached) $ECHO_C" >&6
10450 else
10451
10452 case $GCC in
10453 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10454 *) gdb_cv_bigtoc=-bbigtoc ;;
10455 esac
10456
10457 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10458 cat >conftest.$ac_ext <<_ACEOF
10459 /* confdefs.h. */
10460 _ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10464
10465 int
10466 main ()
10467 {
10468 int i;
10469 ;
10470 return 0;
10471 }
10472 _ACEOF
10473 rm -f conftest.$ac_objext conftest$ac_exeext
10474 if { (ac_try="$ac_link"
10475 case "(($ac_try" in
10476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10478 esac
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_link") 2>conftest.er1
10481 ac_status=$?
10482 grep -v '^ *+' conftest.er1 >conftest.err
10483 rm -f conftest.er1
10484 cat conftest.err >&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } && {
10487 test -z "$ac_c_werror_flag" ||
10488 test ! -s conftest.err
10489 } && test -s conftest$ac_exeext &&
10490 $as_test_x conftest$ac_exeext; then
10491 :
10492 else
10493 echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10495
10496 gdb_cv_bigtoc=
10497 fi
10498
10499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10500 conftest$ac_exeext conftest.$ac_ext
10501
10502 fi
10503 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10504 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10505 ;;
10506 esac
10507
10508 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10509 # used for the tests that follow. We set them back to REAL_CFLAGS and
10510 # REAL_CPPFLAGS later on.
10511
10512 REAL_CPPFLAGS="$CPPFLAGS"
10513
10514 if test "${HAVE_X11}" = "yes"; then
10515 DEFS="$C_SWITCH_X_SITE $DEFS"
10516 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10517 LIBS="$LIBX $LIBS"
10518 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10519 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10520
10521 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10522 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10523 # but it's more convenient here to set LD_RUN_PATH
10524 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10525 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10526 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10527 export LD_RUN_PATH
10528 fi
10529
10530 if test "${opsys}" = "gnu-linux"; then
10531 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10532 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10533 cat >conftest.$ac_ext <<_ACEOF
10534 /* confdefs.h. */
10535 _ACEOF
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h. */
10539
10540 int
10541 main ()
10542 {
10543 XOpenDisplay ("foo");
10544 ;
10545 return 0;
10546 }
10547 _ACEOF
10548 rm -f conftest.$ac_objext conftest$ac_exeext
10549 if { (ac_try="$ac_link"
10550 case "(($ac_try" in
10551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552 *) ac_try_echo=$ac_try;;
10553 esac
10554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555 (eval "$ac_link") 2>conftest.er1
10556 ac_status=$?
10557 grep -v '^ *+' conftest.er1 >conftest.err
10558 rm -f conftest.er1
10559 cat conftest.err >&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); } && {
10562 test -z "$ac_c_werror_flag" ||
10563 test ! -s conftest.err
10564 } && test -s conftest$ac_exeext &&
10565 $as_test_x conftest$ac_exeext; then
10566 xlinux_first_failure=no
10567 else
10568 echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10570
10571 xlinux_first_failure=yes
10572 fi
10573
10574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10575 conftest$ac_exeext conftest.$ac_ext
10576 if test "${xlinux_first_failure}" = "yes"; then
10577 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10578 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10579 OLD_CPPFLAGS="$CPPFLAGS"
10580 OLD_LIBS="$LIBS"
10581 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10582 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10583 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10584 LIBS="$LIBS -b i486-linuxaout"
10585 cat >conftest.$ac_ext <<_ACEOF
10586 /* confdefs.h. */
10587 _ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h. */
10591
10592 int
10593 main ()
10594 {
10595 XOpenDisplay ("foo");
10596 ;
10597 return 0;
10598 }
10599 _ACEOF
10600 rm -f conftest.$ac_objext conftest$ac_exeext
10601 if { (ac_try="$ac_link"
10602 case "(($ac_try" in
10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10605 esac
10606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607 (eval "$ac_link") 2>conftest.er1
10608 ac_status=$?
10609 grep -v '^ *+' conftest.er1 >conftest.err
10610 rm -f conftest.er1
10611 cat conftest.err >&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } && {
10614 test -z "$ac_c_werror_flag" ||
10615 test ! -s conftest.err
10616 } && test -s conftest$ac_exeext &&
10617 $as_test_x conftest$ac_exeext; then
10618 xlinux_second_failure=no
10619 else
10620 echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10622
10623 xlinux_second_failure=yes
10624 fi
10625
10626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10627 conftest$ac_exeext conftest.$ac_ext
10628 if test "${xlinux_second_failure}" = "yes"; then
10629 # If we get the same failure with -b, there is no use adding -b.
10630 # So take it out. This plays safe.
10631 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10632 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10633 CPPFLAGS="$OLD_CPPFLAGS"
10634 LIBS="$OLD_LIBS"
10635 { echo "$as_me:$LINENO: result: no" >&5
10636 echo "${ECHO_T}no" >&6; }
10637 else
10638 { echo "$as_me:$LINENO: result: yes" >&5
10639 echo "${ECHO_T}yes" >&6; }
10640 fi
10641 else
10642 { echo "$as_me:$LINENO: result: no" >&5
10643 echo "${ECHO_T}no" >&6; }
10644 fi
10645 fi
10646
10647 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10648 # header files included from there.
10649 { echo "$as_me:$LINENO: checking for Xkb" >&5
10650 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10651 cat >conftest.$ac_ext <<_ACEOF
10652 /* confdefs.h. */
10653 _ACEOF
10654 cat confdefs.h >>conftest.$ac_ext
10655 cat >>conftest.$ac_ext <<_ACEOF
10656 /* end confdefs.h. */
10657 #include <X11/Xlib.h>
10658 #include <X11/XKBlib.h>
10659 int
10660 main ()
10661 {
10662 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10663 ;
10664 return 0;
10665 }
10666 _ACEOF
10667 rm -f conftest.$ac_objext conftest$ac_exeext
10668 if { (ac_try="$ac_link"
10669 case "(($ac_try" in
10670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10671 *) ac_try_echo=$ac_try;;
10672 esac
10673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10674 (eval "$ac_link") 2>conftest.er1
10675 ac_status=$?
10676 grep -v '^ *+' conftest.er1 >conftest.err
10677 rm -f conftest.er1
10678 cat conftest.err >&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } && {
10681 test -z "$ac_c_werror_flag" ||
10682 test ! -s conftest.err
10683 } && test -s conftest$ac_exeext &&
10684 $as_test_x conftest$ac_exeext; then
10685 emacs_xkb=yes
10686 else
10687 echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.$ac_ext >&5
10689
10690 emacs_xkb=no
10691 fi
10692
10693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10694 conftest$ac_exeext conftest.$ac_ext
10695 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10696 echo "${ECHO_T}$emacs_xkb" >&6; }
10697 if test $emacs_xkb = yes; then
10698
10699 cat >>confdefs.h <<\_ACEOF
10700 #define HAVE_XKBGETKEYBOARD 1
10701 _ACEOF
10702
10703 fi
10704
10705
10706
10707
10708
10709 for ac_func in XrmSetDatabase XScreenResourceString \
10710 XScreenNumberOfScreen XSetWMProtocols
10711 do
10712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10713 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10715 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10716 echo $ECHO_N "(cached) $ECHO_C" >&6
10717 else
10718 cat >conftest.$ac_ext <<_ACEOF
10719 /* confdefs.h. */
10720 _ACEOF
10721 cat confdefs.h >>conftest.$ac_ext
10722 cat >>conftest.$ac_ext <<_ACEOF
10723 /* end confdefs.h. */
10724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10726 #define $ac_func innocuous_$ac_func
10727
10728 /* System header to define __stub macros and hopefully few prototypes,
10729 which can conflict with char $ac_func (); below.
10730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10731 <limits.h> exists even on freestanding compilers. */
10732
10733 #ifdef __STDC__
10734 # include <limits.h>
10735 #else
10736 # include <assert.h>
10737 #endif
10738
10739 #undef $ac_func
10740
10741 /* Override any GCC internal prototype to avoid an error.
10742 Use char because int might match the return type of a GCC
10743 builtin and then its argument prototype would still apply. */
10744 #ifdef __cplusplus
10745 extern "C"
10746 #endif
10747 char $ac_func ();
10748 /* The GNU C library defines this for functions which it implements
10749 to always fail with ENOSYS. Some functions are actually named
10750 something starting with __ and the normal name is an alias. */
10751 #if defined __stub_$ac_func || defined __stub___$ac_func
10752 choke me
10753 #endif
10754
10755 int
10756 main ()
10757 {
10758 return $ac_func ();
10759 ;
10760 return 0;
10761 }
10762 _ACEOF
10763 rm -f conftest.$ac_objext conftest$ac_exeext
10764 if { (ac_try="$ac_link"
10765 case "(($ac_try" in
10766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767 *) ac_try_echo=$ac_try;;
10768 esac
10769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770 (eval "$ac_link") 2>conftest.er1
10771 ac_status=$?
10772 grep -v '^ *+' conftest.er1 >conftest.err
10773 rm -f conftest.er1
10774 cat conftest.err >&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } && {
10777 test -z "$ac_c_werror_flag" ||
10778 test ! -s conftest.err
10779 } && test -s conftest$ac_exeext &&
10780 $as_test_x conftest$ac_exeext; then
10781 eval "$as_ac_var=yes"
10782 else
10783 echo "$as_me: failed program was:" >&5
10784 sed 's/^/| /' conftest.$ac_ext >&5
10785
10786 eval "$as_ac_var=no"
10787 fi
10788
10789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10790 conftest$ac_exeext conftest.$ac_ext
10791 fi
10792 ac_res=`eval echo '${'$as_ac_var'}'`
10793 { echo "$as_me:$LINENO: result: $ac_res" >&5
10794 echo "${ECHO_T}$ac_res" >&6; }
10795 if test `eval echo '${'$as_ac_var'}'` = yes; then
10796 cat >>confdefs.h <<_ACEOF
10797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10798 _ACEOF
10799
10800 fi
10801 done
10802
10803 fi
10804
10805 if test "${window_system}" = "x11"; then
10806 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10807 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10808 if test "${emacs_cv_x11_version_6+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10810 else
10811 cat >conftest.$ac_ext <<_ACEOF
10812 /* confdefs.h. */
10813 _ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h. */
10817 #include <X11/Xlib.h>
10818 int
10819 main ()
10820 {
10821 #if XlibSpecificationRelease < 6
10822 fail;
10823 #endif
10824
10825 ;
10826 return 0;
10827 }
10828 _ACEOF
10829 rm -f conftest.$ac_objext conftest$ac_exeext
10830 if { (ac_try="$ac_link"
10831 case "(($ac_try" in
10832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10833 *) ac_try_echo=$ac_try;;
10834 esac
10835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10836 (eval "$ac_link") 2>conftest.er1
10837 ac_status=$?
10838 grep -v '^ *+' conftest.er1 >conftest.err
10839 rm -f conftest.er1
10840 cat conftest.err >&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } && {
10843 test -z "$ac_c_werror_flag" ||
10844 test ! -s conftest.err
10845 } && test -s conftest$ac_exeext &&
10846 $as_test_x conftest$ac_exeext; then
10847 emacs_cv_x11_version_6=yes
10848 else
10849 echo "$as_me: failed program was:" >&5
10850 sed 's/^/| /' conftest.$ac_ext >&5
10851
10852 emacs_cv_x11_version_6=no
10853 fi
10854
10855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10856 conftest$ac_exeext conftest.$ac_ext
10857 fi
10858
10859 if test $emacs_cv_x11_version_6 = yes; then
10860 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10861 echo "${ECHO_T}6 or newer" >&6; }
10862
10863 cat >>confdefs.h <<\_ACEOF
10864 #define HAVE_X11R6 1
10865 _ACEOF
10866
10867 else
10868 { echo "$as_me:$LINENO: result: before 6" >&5
10869 echo "${ECHO_T}before 6" >&6; }
10870 fi
10871 fi
10872
10873 if test "${window_system}" = "x11"; then
10874 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10875 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10876 if test "${emacs_cv_x11_version_5+set}" = set; then
10877 echo $ECHO_N "(cached) $ECHO_C" >&6
10878 else
10879 cat >conftest.$ac_ext <<_ACEOF
10880 /* confdefs.h. */
10881 _ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h. */
10885 #include <X11/Xlib.h>
10886 int
10887 main ()
10888 {
10889 #if XlibSpecificationRelease < 5
10890 fail;
10891 #endif
10892
10893 ;
10894 return 0;
10895 }
10896 _ACEOF
10897 rm -f conftest.$ac_objext conftest$ac_exeext
10898 if { (ac_try="$ac_link"
10899 case "(($ac_try" in
10900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901 *) ac_try_echo=$ac_try;;
10902 esac
10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904 (eval "$ac_link") 2>conftest.er1
10905 ac_status=$?
10906 grep -v '^ *+' conftest.er1 >conftest.err
10907 rm -f conftest.er1
10908 cat conftest.err >&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); } && {
10911 test -z "$ac_c_werror_flag" ||
10912 test ! -s conftest.err
10913 } && test -s conftest$ac_exeext &&
10914 $as_test_x conftest$ac_exeext; then
10915 emacs_cv_x11_version_5=yes
10916 else
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10919
10920 emacs_cv_x11_version_5=no
10921 fi
10922
10923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10924 conftest$ac_exeext conftest.$ac_ext
10925 fi
10926
10927 if test $emacs_cv_x11_version_5 = yes; then
10928 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10929 echo "${ECHO_T}5 or newer" >&6; }
10930 HAVE_X11R5=yes
10931
10932 cat >>confdefs.h <<\_ACEOF
10933 #define HAVE_X11R5 1
10934 _ACEOF
10935
10936 else
10937 HAVE_X11R5=no
10938 { echo "$as_me:$LINENO: result: before 5" >&5
10939 echo "${ECHO_T}before 5" >&6; }
10940 fi
10941 fi
10942
10943 HAVE_GTK=no
10944 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10945 USE_X_TOOLKIT=none
10946 fi
10947 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10948 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10949 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10950 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10951 { (exit 1); exit 1; }; };
10952 fi
10953 GLIB_REQUIRED=2.4
10954 GTK_REQUIRED=2.4
10955 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10956
10957 if test "X${with_pkg_config_prog}" != X; then
10958 PKG_CONFIG="${with_pkg_config_prog}"
10959 fi
10960
10961 succeeded=no
10962
10963 if test -z "$PKG_CONFIG"; then
10964 # Extract the first word of "pkg-config", so it can be a program name with args.
10965 set dummy pkg-config; ac_word=$2
10966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10968 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10969 echo $ECHO_N "(cached) $ECHO_C" >&6
10970 else
10971 case $PKG_CONFIG in
10972 [\\/]* | ?:[\\/]*)
10973 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10974 ;;
10975 *)
10976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977 for as_dir in $PATH
10978 do
10979 IFS=$as_save_IFS
10980 test -z "$as_dir" && as_dir=.
10981 for ac_exec_ext in '' $ac_executable_extensions; do
10982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10983 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10985 break 2
10986 fi
10987 done
10988 done
10989 IFS=$as_save_IFS
10990
10991 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10992 ;;
10993 esac
10994 fi
10995 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10996 if test -n "$PKG_CONFIG"; then
10997 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10998 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10999 else
11000 { echo "$as_me:$LINENO: result: no" >&5
11001 echo "${ECHO_T}no" >&6; }
11002 fi
11003
11004
11005 fi
11006
11007 if test "$PKG_CONFIG" = "no" ; then
11008 { { echo "$as_me:$LINENO: error:
11009 *** 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
11010 echo "$as_me: error:
11011 *** 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;}
11012 { (exit 1); exit 1; }; }
11013 else
11014 PKG_CONFIG_MIN_VERSION=0.9.0
11015 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11016 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11017 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11018
11019 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11020 { echo "$as_me:$LINENO: result: yes" >&5
11021 echo "${ECHO_T}yes" >&6; }
11022 succeeded=yes
11023
11024 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11025 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11026 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11027 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11028 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11029
11030 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11031 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11032 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11033 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11034 echo "${ECHO_T}$GTK_LIBS" >&6; }
11035 else
11036 { echo "$as_me:$LINENO: result: no" >&5
11037 echo "${ECHO_T}no" >&6; }
11038 GTK_CFLAGS=""
11039 GTK_LIBS=""
11040 ## If we have a custom action on failure, don't print errors, but
11041 ## do set a variable so people can do so.
11042 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11043 echo $GTK_PKG_ERRORS
11044 fi
11045
11046
11047
11048 else
11049 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11050 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11051 fi
11052 fi
11053
11054 if test $succeeded = yes; then
11055 :
11056 else
11057 { { 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
11058 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;}
11059 { (exit 1); exit 1; }; }
11060 fi
11061
11062
11063
11064 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11065 CFLAGS="$CFLAGS $GTK_CFLAGS"
11066 LIBS="$GTK_LIBS $LIBS"
11067 GTK_COMPILES=no
11068
11069 for ac_func in gtk_main
11070 do
11071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11076 else
11077 cat >conftest.$ac_ext <<_ACEOF
11078 /* confdefs.h. */
11079 _ACEOF
11080 cat confdefs.h >>conftest.$ac_ext
11081 cat >>conftest.$ac_ext <<_ACEOF
11082 /* end confdefs.h. */
11083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11085 #define $ac_func innocuous_$ac_func
11086
11087 /* System header to define __stub macros and hopefully few prototypes,
11088 which can conflict with char $ac_func (); below.
11089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11090 <limits.h> exists even on freestanding compilers. */
11091
11092 #ifdef __STDC__
11093 # include <limits.h>
11094 #else
11095 # include <assert.h>
11096 #endif
11097
11098 #undef $ac_func
11099
11100 /* Override any GCC internal prototype to avoid an error.
11101 Use char because int might match the return type of a GCC
11102 builtin and then its argument prototype would still apply. */
11103 #ifdef __cplusplus
11104 extern "C"
11105 #endif
11106 char $ac_func ();
11107 /* The GNU C library defines this for functions which it implements
11108 to always fail with ENOSYS. Some functions are actually named
11109 something starting with __ and the normal name is an alias. */
11110 #if defined __stub_$ac_func || defined __stub___$ac_func
11111 choke me
11112 #endif
11113
11114 int
11115 main ()
11116 {
11117 return $ac_func ();
11118 ;
11119 return 0;
11120 }
11121 _ACEOF
11122 rm -f conftest.$ac_objext conftest$ac_exeext
11123 if { (ac_try="$ac_link"
11124 case "(($ac_try" in
11125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11126 *) ac_try_echo=$ac_try;;
11127 esac
11128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11129 (eval "$ac_link") 2>conftest.er1
11130 ac_status=$?
11131 grep -v '^ *+' conftest.er1 >conftest.err
11132 rm -f conftest.er1
11133 cat conftest.err >&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); } && {
11136 test -z "$ac_c_werror_flag" ||
11137 test ! -s conftest.err
11138 } && test -s conftest$ac_exeext &&
11139 $as_test_x conftest$ac_exeext; then
11140 eval "$as_ac_var=yes"
11141 else
11142 echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.$ac_ext >&5
11144
11145 eval "$as_ac_var=no"
11146 fi
11147
11148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11149 conftest$ac_exeext conftest.$ac_ext
11150 fi
11151 ac_res=`eval echo '${'$as_ac_var'}'`
11152 { echo "$as_me:$LINENO: result: $ac_res" >&5
11153 echo "${ECHO_T}$ac_res" >&6; }
11154 if test `eval echo '${'$as_ac_var'}'` = yes; then
11155 cat >>confdefs.h <<_ACEOF
11156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11157 _ACEOF
11158 GTK_COMPILES=yes
11159 fi
11160 done
11161
11162 if test "${GTK_COMPILES}" != "yes"; then
11163 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11164 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11165 { (exit 1); exit 1; }; };
11166 fi
11167
11168 HAVE_GTK=yes
11169
11170 cat >>confdefs.h <<\_ACEOF
11171 #define HAVE_GTK 1
11172 _ACEOF
11173
11174 USE_X_TOOLKIT=none
11175
11176 if test "$with_toolkit_scroll_bars" != no; then
11177 with_toolkit_scroll_bars=yes
11178 fi
11179
11180 HAVE_GTK_MULTIDISPLAY=no
11181
11182 for ac_func in gdk_display_open
11183 do
11184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11185 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11187 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11188 echo $ECHO_N "(cached) $ECHO_C" >&6
11189 else
11190 cat >conftest.$ac_ext <<_ACEOF
11191 /* confdefs.h. */
11192 _ACEOF
11193 cat confdefs.h >>conftest.$ac_ext
11194 cat >>conftest.$ac_ext <<_ACEOF
11195 /* end confdefs.h. */
11196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11198 #define $ac_func innocuous_$ac_func
11199
11200 /* System header to define __stub macros and hopefully few prototypes,
11201 which can conflict with char $ac_func (); below.
11202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11203 <limits.h> exists even on freestanding compilers. */
11204
11205 #ifdef __STDC__
11206 # include <limits.h>
11207 #else
11208 # include <assert.h>
11209 #endif
11210
11211 #undef $ac_func
11212
11213 /* Override any GCC internal prototype to avoid an error.
11214 Use char because int might match the return type of a GCC
11215 builtin and then its argument prototype would still apply. */
11216 #ifdef __cplusplus
11217 extern "C"
11218 #endif
11219 char $ac_func ();
11220 /* The GNU C library defines this for functions which it implements
11221 to always fail with ENOSYS. Some functions are actually named
11222 something starting with __ and the normal name is an alias. */
11223 #if defined __stub_$ac_func || defined __stub___$ac_func
11224 choke me
11225 #endif
11226
11227 int
11228 main ()
11229 {
11230 return $ac_func ();
11231 ;
11232 return 0;
11233 }
11234 _ACEOF
11235 rm -f conftest.$ac_objext conftest$ac_exeext
11236 if { (ac_try="$ac_link"
11237 case "(($ac_try" in
11238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11239 *) ac_try_echo=$ac_try;;
11240 esac
11241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11242 (eval "$ac_link") 2>conftest.er1
11243 ac_status=$?
11244 grep -v '^ *+' conftest.er1 >conftest.err
11245 rm -f conftest.er1
11246 cat conftest.err >&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } && {
11249 test -z "$ac_c_werror_flag" ||
11250 test ! -s conftest.err
11251 } && test -s conftest$ac_exeext &&
11252 $as_test_x conftest$ac_exeext; then
11253 eval "$as_ac_var=yes"
11254 else
11255 echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11257
11258 eval "$as_ac_var=no"
11259 fi
11260
11261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11262 conftest$ac_exeext conftest.$ac_ext
11263 fi
11264 ac_res=`eval echo '${'$as_ac_var'}'`
11265 { echo "$as_me:$LINENO: result: $ac_res" >&5
11266 echo "${ECHO_T}$ac_res" >&6; }
11267 if test `eval echo '${'$as_ac_var'}'` = yes; then
11268 cat >>confdefs.h <<_ACEOF
11269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11270 _ACEOF
11271 HAVE_GTK_MULTIDISPLAY=yes
11272 fi
11273 done
11274
11275 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11276
11277 cat >>confdefs.h <<\_ACEOF
11278 #define HAVE_GTK_MULTIDISPLAY 1
11279 _ACEOF
11280
11281 fi
11282 HAVE_GTK_FILE_SELECTION=no
11283
11284 for ac_func in gtk_file_selection_new
11285 do
11286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11287 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11289 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11291 else
11292 cat >conftest.$ac_ext <<_ACEOF
11293 /* confdefs.h. */
11294 _ACEOF
11295 cat confdefs.h >>conftest.$ac_ext
11296 cat >>conftest.$ac_ext <<_ACEOF
11297 /* end confdefs.h. */
11298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11300 #define $ac_func innocuous_$ac_func
11301
11302 /* System header to define __stub macros and hopefully few prototypes,
11303 which can conflict with char $ac_func (); below.
11304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11305 <limits.h> exists even on freestanding compilers. */
11306
11307 #ifdef __STDC__
11308 # include <limits.h>
11309 #else
11310 # include <assert.h>
11311 #endif
11312
11313 #undef $ac_func
11314
11315 /* Override any GCC internal prototype to avoid an error.
11316 Use char because int might match the return type of a GCC
11317 builtin and then its argument prototype would still apply. */
11318 #ifdef __cplusplus
11319 extern "C"
11320 #endif
11321 char $ac_func ();
11322 /* The GNU C library defines this for functions which it implements
11323 to always fail with ENOSYS. Some functions are actually named
11324 something starting with __ and the normal name is an alias. */
11325 #if defined __stub_$ac_func || defined __stub___$ac_func
11326 choke me
11327 #endif
11328
11329 int
11330 main ()
11331 {
11332 return $ac_func ();
11333 ;
11334 return 0;
11335 }
11336 _ACEOF
11337 rm -f conftest.$ac_objext conftest$ac_exeext
11338 if { (ac_try="$ac_link"
11339 case "(($ac_try" in
11340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341 *) ac_try_echo=$ac_try;;
11342 esac
11343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344 (eval "$ac_link") 2>conftest.er1
11345 ac_status=$?
11346 grep -v '^ *+' conftest.er1 >conftest.err
11347 rm -f conftest.er1
11348 cat conftest.err >&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } && {
11351 test -z "$ac_c_werror_flag" ||
11352 test ! -s conftest.err
11353 } && test -s conftest$ac_exeext &&
11354 $as_test_x conftest$ac_exeext; then
11355 eval "$as_ac_var=yes"
11356 else
11357 echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11359
11360 eval "$as_ac_var=no"
11361 fi
11362
11363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11364 conftest$ac_exeext conftest.$ac_ext
11365 fi
11366 ac_res=`eval echo '${'$as_ac_var'}'`
11367 { echo "$as_me:$LINENO: result: $ac_res" >&5
11368 echo "${ECHO_T}$ac_res" >&6; }
11369 if test `eval echo '${'$as_ac_var'}'` = yes; then
11370 cat >>confdefs.h <<_ACEOF
11371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11372 _ACEOF
11373 HAVE_GTK_FILE_SELECTION=yes
11374 fi
11375 done
11376
11377
11378 HAVE_GTK_FILE_CHOOSER=no
11379
11380 for ac_func in gtk_file_chooser_dialog_new
11381 do
11382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11383 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11385 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 else
11388 cat >conftest.$ac_ext <<_ACEOF
11389 /* confdefs.h. */
11390 _ACEOF
11391 cat confdefs.h >>conftest.$ac_ext
11392 cat >>conftest.$ac_ext <<_ACEOF
11393 /* end confdefs.h. */
11394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11396 #define $ac_func innocuous_$ac_func
11397
11398 /* System header to define __stub macros and hopefully few prototypes,
11399 which can conflict with char $ac_func (); below.
11400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11401 <limits.h> exists even on freestanding compilers. */
11402
11403 #ifdef __STDC__
11404 # include <limits.h>
11405 #else
11406 # include <assert.h>
11407 #endif
11408
11409 #undef $ac_func
11410
11411 /* Override any GCC internal prototype to avoid an error.
11412 Use char because int might match the return type of a GCC
11413 builtin and then its argument prototype would still apply. */
11414 #ifdef __cplusplus
11415 extern "C"
11416 #endif
11417 char $ac_func ();
11418 /* The GNU C library defines this for functions which it implements
11419 to always fail with ENOSYS. Some functions are actually named
11420 something starting with __ and the normal name is an alias. */
11421 #if defined __stub_$ac_func || defined __stub___$ac_func
11422 choke me
11423 #endif
11424
11425 int
11426 main ()
11427 {
11428 return $ac_func ();
11429 ;
11430 return 0;
11431 }
11432 _ACEOF
11433 rm -f conftest.$ac_objext conftest$ac_exeext
11434 if { (ac_try="$ac_link"
11435 case "(($ac_try" in
11436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11437 *) ac_try_echo=$ac_try;;
11438 esac
11439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11440 (eval "$ac_link") 2>conftest.er1
11441 ac_status=$?
11442 grep -v '^ *+' conftest.er1 >conftest.err
11443 rm -f conftest.er1
11444 cat conftest.err >&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } && {
11447 test -z "$ac_c_werror_flag" ||
11448 test ! -s conftest.err
11449 } && test -s conftest$ac_exeext &&
11450 $as_test_x conftest$ac_exeext; then
11451 eval "$as_ac_var=yes"
11452 else
11453 echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11455
11456 eval "$as_ac_var=no"
11457 fi
11458
11459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11460 conftest$ac_exeext conftest.$ac_ext
11461 fi
11462 ac_res=`eval echo '${'$as_ac_var'}'`
11463 { echo "$as_me:$LINENO: result: $ac_res" >&5
11464 echo "${ECHO_T}$ac_res" >&6; }
11465 if test `eval echo '${'$as_ac_var'}'` = yes; then
11466 cat >>confdefs.h <<_ACEOF
11467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11468 _ACEOF
11469 HAVE_GTK_FILE_CHOOSER=yes
11470 fi
11471 done
11472
11473
11474 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11475 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11476
11477 cat >>confdefs.h <<\_ACEOF
11478 #define HAVE_GTK_FILE_BOTH 1
11479 _ACEOF
11480
11481 fi
11482
11483 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11484 HAVE_GTK_AND_PTHREAD=no
11485
11486 for ac_header in pthread.h
11487 do
11488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
11494 fi
11495 ac_res=`eval echo '${'$as_ac_Header'}'`
11496 { echo "$as_me:$LINENO: result: $ac_res" >&5
11497 echo "${ECHO_T}$ac_res" >&6; }
11498 else
11499 # Is the header compilable?
11500 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11502 cat >conftest.$ac_ext <<_ACEOF
11503 /* confdefs.h. */
11504 _ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h. */
11508 $ac_includes_default
11509 #include <$ac_header>
11510 _ACEOF
11511 rm -f conftest.$ac_objext
11512 if { (ac_try="$ac_compile"
11513 case "(($ac_try" in
11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515 *) ac_try_echo=$ac_try;;
11516 esac
11517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518 (eval "$ac_compile") 2>conftest.er1
11519 ac_status=$?
11520 grep -v '^ *+' conftest.er1 >conftest.err
11521 rm -f conftest.er1
11522 cat conftest.err >&5
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); } && {
11525 test -z "$ac_c_werror_flag" ||
11526 test ! -s conftest.err
11527 } && test -s conftest.$ac_objext; then
11528 ac_header_compiler=yes
11529 else
11530 echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.$ac_ext >&5
11532
11533 ac_header_compiler=no
11534 fi
11535
11536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11537 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11538 echo "${ECHO_T}$ac_header_compiler" >&6; }
11539
11540 # Is the header present?
11541 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11543 cat >conftest.$ac_ext <<_ACEOF
11544 /* confdefs.h. */
11545 _ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h. */
11549 #include <$ac_header>
11550 _ACEOF
11551 if { (ac_try="$ac_cpp conftest.$ac_ext"
11552 case "(($ac_try" in
11553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554 *) ac_try_echo=$ac_try;;
11555 esac
11556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11558 ac_status=$?
11559 grep -v '^ *+' conftest.er1 >conftest.err
11560 rm -f conftest.er1
11561 cat conftest.err >&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } >/dev/null && {
11564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11565 test ! -s conftest.err
11566 }; then
11567 ac_header_preproc=yes
11568 else
11569 echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11571
11572 ac_header_preproc=no
11573 fi
11574
11575 rm -f conftest.err conftest.$ac_ext
11576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11577 echo "${ECHO_T}$ac_header_preproc" >&6; }
11578
11579 # So? What about this header?
11580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11581 yes:no: )
11582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11586 ac_header_preproc=yes
11587 ;;
11588 no:yes:* )
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11596 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11601
11602 ;;
11603 esac
11604 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11607 echo $ECHO_N "(cached) $ECHO_C" >&6
11608 else
11609 eval "$as_ac_Header=\$ac_header_preproc"
11610 fi
11611 ac_res=`eval echo '${'$as_ac_Header'}'`
11612 { echo "$as_me:$LINENO: result: $ac_res" >&5
11613 echo "${ECHO_T}$ac_res" >&6; }
11614
11615 fi
11616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11617 cat >>confdefs.h <<_ACEOF
11618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11619 _ACEOF
11620
11621 fi
11622
11623 done
11624
11625 if test "$ac_cv_header_pthread_h"; then
11626 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11627 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11628 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11630 else
11631 ac_check_lib_save_LIBS=$LIBS
11632 LIBS="-lpthread $LIBS"
11633 cat >conftest.$ac_ext <<_ACEOF
11634 /* confdefs.h. */
11635 _ACEOF
11636 cat confdefs.h >>conftest.$ac_ext
11637 cat >>conftest.$ac_ext <<_ACEOF
11638 /* end confdefs.h. */
11639
11640 /* Override any GCC internal prototype to avoid an error.
11641 Use char because int might match the return type of a GCC
11642 builtin and then its argument prototype would still apply. */
11643 #ifdef __cplusplus
11644 extern "C"
11645 #endif
11646 char pthread_self ();
11647 int
11648 main ()
11649 {
11650 return pthread_self ();
11651 ;
11652 return 0;
11653 }
11654 _ACEOF
11655 rm -f conftest.$ac_objext conftest$ac_exeext
11656 if { (ac_try="$ac_link"
11657 case "(($ac_try" in
11658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659 *) ac_try_echo=$ac_try;;
11660 esac
11661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662 (eval "$ac_link") 2>conftest.er1
11663 ac_status=$?
11664 grep -v '^ *+' conftest.er1 >conftest.err
11665 rm -f conftest.er1
11666 cat conftest.err >&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } && {
11669 test -z "$ac_c_werror_flag" ||
11670 test ! -s conftest.err
11671 } && test -s conftest$ac_exeext &&
11672 $as_test_x conftest$ac_exeext; then
11673 ac_cv_lib_pthread_pthread_self=yes
11674 else
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11677
11678 ac_cv_lib_pthread_pthread_self=no
11679 fi
11680
11681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11682 conftest$ac_exeext conftest.$ac_ext
11683 LIBS=$ac_check_lib_save_LIBS
11684 fi
11685 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11686 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11687 if test $ac_cv_lib_pthread_pthread_self = yes; then
11688 HAVE_GTK_AND_PTHREAD=yes
11689 fi
11690
11691 fi
11692 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11693 GTK_LIBS="$GTK_LIBS -lpthread"
11694
11695 cat >>confdefs.h <<\_ACEOF
11696 #define HAVE_GTK_AND_PTHREAD 1
11697 _ACEOF
11698
11699 fi
11700 fi
11701 fi
11702
11703 ### Link with -lXft if available to work around a bug.
11704 HAVE_XFT=maybe
11705 if test "${HAVE_GTK}" = "yes"; then
11706 if test "X${with_pkg_config_prog}" != X; then
11707 PKG_CONFIG="${with_pkg_config_prog}"
11708 fi
11709
11710
11711 succeeded=no
11712
11713 if test -z "$PKG_CONFIG"; then
11714 # Extract the first word of "pkg-config", so it can be a program name with args.
11715 set dummy pkg-config; ac_word=$2
11716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11718 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11720 else
11721 case $PKG_CONFIG in
11722 [\\/]* | ?:[\\/]*)
11723 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11724 ;;
11725 *)
11726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727 for as_dir in $PATH
11728 do
11729 IFS=$as_save_IFS
11730 test -z "$as_dir" && as_dir=.
11731 for ac_exec_ext in '' $ac_executable_extensions; do
11732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11733 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11735 break 2
11736 fi
11737 done
11738 done
11739 IFS=$as_save_IFS
11740
11741 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11742 ;;
11743 esac
11744 fi
11745 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11746 if test -n "$PKG_CONFIG"; then
11747 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11748 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11749 else
11750 { echo "$as_me:$LINENO: result: no" >&5
11751 echo "${ECHO_T}no" >&6; }
11752 fi
11753
11754
11755 fi
11756
11757 if test "$PKG_CONFIG" = "no" ; then
11758 HAVE_XFT=no
11759 else
11760 PKG_CONFIG_MIN_VERSION=0.9.0
11761 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11762 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11763 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11764
11765 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11766 { echo "$as_me:$LINENO: result: yes" >&5
11767 echo "${ECHO_T}yes" >&6; }
11768 succeeded=yes
11769
11770 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11771 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11772 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11773 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11774 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11775
11776 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11777 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11778 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11779 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11780 echo "${ECHO_T}$XFT_LIBS" >&6; }
11781 else
11782 { echo "$as_me:$LINENO: result: no" >&5
11783 echo "${ECHO_T}no" >&6; }
11784 XFT_CFLAGS=""
11785 XFT_LIBS=""
11786 ## If we have a custom action on failure, don't print errors, but
11787 ## do set a variable so people can do so.
11788 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11789
11790 fi
11791
11792
11793
11794 else
11795 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11796 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11797 fi
11798 fi
11799
11800 if test $succeeded = yes; then
11801 :
11802 else
11803 HAVE_XFT=no
11804 fi
11805
11806 if test "$HAVE_XFT" != no; then
11807 OLD_CFLAGS="$CPPFLAGS"
11808 OLD_CPPFLAGS="$CFLAGS"
11809 OLD_LIBS="$LIBS"
11810 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11811 CFLAGS="$CFLAGS $XFT_CFLAGS"
11812 LIBS="$XFT_LIBS $LIBS"
11813 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11814 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11815 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11816 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11818 fi
11819 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11820 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11821 else
11822 # Is the header compilable?
11823 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11824 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11825 cat >conftest.$ac_ext <<_ACEOF
11826 /* confdefs.h. */
11827 _ACEOF
11828 cat confdefs.h >>conftest.$ac_ext
11829 cat >>conftest.$ac_ext <<_ACEOF
11830 /* end confdefs.h. */
11831 $ac_includes_default
11832 #include <X11/Xft/Xft.h>
11833 _ACEOF
11834 rm -f conftest.$ac_objext
11835 if { (ac_try="$ac_compile"
11836 case "(($ac_try" in
11837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11838 *) ac_try_echo=$ac_try;;
11839 esac
11840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11841 (eval "$ac_compile") 2>conftest.er1
11842 ac_status=$?
11843 grep -v '^ *+' conftest.er1 >conftest.err
11844 rm -f conftest.er1
11845 cat conftest.err >&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } && {
11848 test -z "$ac_c_werror_flag" ||
11849 test ! -s conftest.err
11850 } && test -s conftest.$ac_objext; then
11851 ac_header_compiler=yes
11852 else
11853 echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.$ac_ext >&5
11855
11856 ac_header_compiler=no
11857 fi
11858
11859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11860 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11861 echo "${ECHO_T}$ac_header_compiler" >&6; }
11862
11863 # Is the header present?
11864 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11865 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11866 cat >conftest.$ac_ext <<_ACEOF
11867 /* confdefs.h. */
11868 _ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h. */
11872 #include <X11/Xft/Xft.h>
11873 _ACEOF
11874 if { (ac_try="$ac_cpp conftest.$ac_ext"
11875 case "(($ac_try" in
11876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877 *) ac_try_echo=$ac_try;;
11878 esac
11879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11881 ac_status=$?
11882 grep -v '^ *+' conftest.er1 >conftest.err
11883 rm -f conftest.er1
11884 cat conftest.err >&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); } >/dev/null && {
11887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11888 test ! -s conftest.err
11889 }; then
11890 ac_header_preproc=yes
11891 else
11892 echo "$as_me: failed program was:" >&5
11893 sed 's/^/| /' conftest.$ac_ext >&5
11894
11895 ac_header_preproc=no
11896 fi
11897
11898 rm -f conftest.err conftest.$ac_ext
11899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11900 echo "${ECHO_T}$ac_header_preproc" >&6; }
11901
11902 # So? What about this header?
11903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11904 yes:no: )
11905 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11906 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11907 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11908 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11909 ac_header_preproc=yes
11910 ;;
11911 no:yes:* )
11912 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11913 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11914 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11915 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11916 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11917 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11918 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11919 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11920 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11921 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11922 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11923 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11924
11925 ;;
11926 esac
11927 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11928 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11929 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
11931 else
11932 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
11933 fi
11934 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11935 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11936
11937 fi
11938 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11939 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11940 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11941 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11943 else
11944 ac_check_lib_save_LIBS=$LIBS
11945 LIBS="-lXft $XFT_LIBS $LIBS"
11946 cat >conftest.$ac_ext <<_ACEOF
11947 /* confdefs.h. */
11948 _ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11952
11953 /* Override any GCC internal prototype to avoid an error.
11954 Use char because int might match the return type of a GCC
11955 builtin and then its argument prototype would still apply. */
11956 #ifdef __cplusplus
11957 extern "C"
11958 #endif
11959 char XftFontOpen ();
11960 int
11961 main ()
11962 {
11963 return XftFontOpen ();
11964 ;
11965 return 0;
11966 }
11967 _ACEOF
11968 rm -f conftest.$ac_objext conftest$ac_exeext
11969 if { (ac_try="$ac_link"
11970 case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11973 esac
11974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11975 (eval "$ac_link") 2>conftest.er1
11976 ac_status=$?
11977 grep -v '^ *+' conftest.er1 >conftest.err
11978 rm -f conftest.er1
11979 cat conftest.err >&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } && {
11982 test -z "$ac_c_werror_flag" ||
11983 test ! -s conftest.err
11984 } && test -s conftest$ac_exeext &&
11985 $as_test_x conftest$ac_exeext; then
11986 ac_cv_lib_Xft_XftFontOpen=yes
11987 else
11988 echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11990
11991 ac_cv_lib_Xft_XftFontOpen=no
11992 fi
11993
11994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11995 conftest$ac_exeext conftest.$ac_ext
11996 LIBS=$ac_check_lib_save_LIBS
11997 fi
11998 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11999 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12000 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12001 HAVE_XFT=yes
12002 fi
12003
12004 fi
12005
12006
12007
12008 if test "${HAVE_XFT}" = "yes"; then
12009
12010 cat >>confdefs.h <<\_ACEOF
12011 #define HAVE_XFT 1
12012 _ACEOF
12013
12014
12015 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12016 else
12017 CFLAGS="$OLD_CPPFLAGS"
12018 CFLAGS="$OLD_CFLAGS"
12019 LIBS="$OLD_LIBS"
12020 fi
12021 fi
12022 fi
12023
12024 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12025 if test x"${HAVE_X11R5}" = xyes; then
12026 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
12027 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
12028 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
12029 echo $ECHO_N "(cached) $ECHO_C" >&6
12030 else
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 #include <X11/Intrinsic.h>
12039 #include <X11/Xaw/Simple.h>
12040 int
12041 main ()
12042 {
12043
12044 ;
12045 return 0;
12046 }
12047 _ACEOF
12048 rm -f conftest.$ac_objext conftest$ac_exeext
12049 if { (ac_try="$ac_link"
12050 case "(($ac_try" in
12051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052 *) ac_try_echo=$ac_try;;
12053 esac
12054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12055 (eval "$ac_link") 2>conftest.er1
12056 ac_status=$?
12057 grep -v '^ *+' conftest.er1 >conftest.err
12058 rm -f conftest.er1
12059 cat conftest.err >&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } && {
12062 test -z "$ac_c_werror_flag" ||
12063 test ! -s conftest.err
12064 } && test -s conftest$ac_exeext &&
12065 $as_test_x conftest$ac_exeext; then
12066 emacs_cv_x11_version_5_with_xaw=yes
12067 else
12068 echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12070
12071 emacs_cv_x11_version_5_with_xaw=no
12072 fi
12073
12074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12075 conftest$ac_exeext conftest.$ac_ext
12076 fi
12077
12078 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12079 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12080 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12081 USE_X_TOOLKIT=LUCID
12082 else
12083 if test x"${USE_X_TOOLKIT}" = xLUCID; then
12084 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12085 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12086 { (exit 1); exit 1; }; }
12087 else
12088 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12089 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12090 USE_X_TOOLKIT=none
12091 fi
12092 fi
12093 else
12094 USE_X_TOOLKIT=none
12095 fi
12096 fi
12097
12098 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12099
12100 if test "${USE_X_TOOLKIT}" != "none"; then
12101 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12102 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12103 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12105 else
12106 cat >conftest.$ac_ext <<_ACEOF
12107 /* confdefs.h. */
12108 _ACEOF
12109 cat confdefs.h >>conftest.$ac_ext
12110 cat >>conftest.$ac_ext <<_ACEOF
12111 /* end confdefs.h. */
12112 #include <X11/Intrinsic.h>
12113 int
12114 main ()
12115 {
12116 #if XtSpecificationRelease < 6
12117 fail;
12118 #endif
12119
12120 ;
12121 return 0;
12122 }
12123 _ACEOF
12124 rm -f conftest.$ac_objext conftest$ac_exeext
12125 if { (ac_try="$ac_link"
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_link") 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_exeext &&
12141 $as_test_x conftest$ac_exeext; then
12142 emacs_cv_x11_toolkit_version_6=yes
12143 else
12144 echo "$as_me: failed program was:" >&5
12145 sed 's/^/| /' conftest.$ac_ext >&5
12146
12147 emacs_cv_x11_toolkit_version_6=no
12148 fi
12149
12150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12151 conftest$ac_exeext conftest.$ac_ext
12152 fi
12153
12154 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12155 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12156 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12157 echo "${ECHO_T}6 or newer" >&6; }
12158
12159 cat >>confdefs.h <<\_ACEOF
12160 #define HAVE_X11XTR6 1
12161 _ACEOF
12162
12163 else
12164 { echo "$as_me:$LINENO: result: before 6" >&5
12165 echo "${ECHO_T}before 6" >&6; }
12166 fi
12167
12168 OLDLIBS="$LIBS"
12169 if test x$HAVE_X11XTR6 = xyes; then
12170 LIBS="-lXt -lSM -lICE $LIBS"
12171 else
12172 LIBS="-lXt $LIBS"
12173 fi
12174
12175 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12176 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12177 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12179 else
12180 ac_check_lib_save_LIBS=$LIBS
12181 LIBS="-lXmu $LIBS"
12182 cat >conftest.$ac_ext <<_ACEOF
12183 /* confdefs.h. */
12184 _ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12188
12189 /* Override any GCC internal prototype to avoid an error.
12190 Use char because int might match the return type of a GCC
12191 builtin and then its argument prototype would still apply. */
12192 #ifdef __cplusplus
12193 extern "C"
12194 #endif
12195 char XmuConvertStandardSelection ();
12196 int
12197 main ()
12198 {
12199 return XmuConvertStandardSelection ();
12200 ;
12201 return 0;
12202 }
12203 _ACEOF
12204 rm -f conftest.$ac_objext conftest$ac_exeext
12205 if { (ac_try="$ac_link"
12206 case "(($ac_try" in
12207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208 *) ac_try_echo=$ac_try;;
12209 esac
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211 (eval "$ac_link") 2>conftest.er1
12212 ac_status=$?
12213 grep -v '^ *+' conftest.er1 >conftest.err
12214 rm -f conftest.er1
12215 cat conftest.err >&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } && {
12218 test -z "$ac_c_werror_flag" ||
12219 test ! -s conftest.err
12220 } && test -s conftest$ac_exeext &&
12221 $as_test_x conftest$ac_exeext; then
12222 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12223 else
12224 echo "$as_me: failed program was:" >&5
12225 sed 's/^/| /' conftest.$ac_ext >&5
12226
12227 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12228 fi
12229
12230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12231 conftest$ac_exeext conftest.$ac_ext
12232 LIBS=$ac_check_lib_save_LIBS
12233 fi
12234 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12235 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12236 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12237 cat >>confdefs.h <<_ACEOF
12238 #define HAVE_LIBXMU 1
12239 _ACEOF
12240
12241 LIBS="-lXmu $LIBS"
12242
12243 fi
12244
12245 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12246 fi
12247
12248 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12249 if test "${HAVE_X11}" = "yes"; then
12250 if test "${USE_X_TOOLKIT}" != "none"; then
12251
12252 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12253 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12254 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12256 else
12257 ac_check_lib_save_LIBS=$LIBS
12258 LIBS="-lXext $LIBS"
12259 cat >conftest.$ac_ext <<_ACEOF
12260 /* confdefs.h. */
12261 _ACEOF
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h. */
12265
12266 /* Override any GCC internal prototype to avoid an error.
12267 Use char because int might match the return type of a GCC
12268 builtin and then its argument prototype would still apply. */
12269 #ifdef __cplusplus
12270 extern "C"
12271 #endif
12272 char XShapeQueryExtension ();
12273 int
12274 main ()
12275 {
12276 return XShapeQueryExtension ();
12277 ;
12278 return 0;
12279 }
12280 _ACEOF
12281 rm -f conftest.$ac_objext conftest$ac_exeext
12282 if { (ac_try="$ac_link"
12283 case "(($ac_try" in
12284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12285 *) ac_try_echo=$ac_try;;
12286 esac
12287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12288 (eval "$ac_link") 2>conftest.er1
12289 ac_status=$?
12290 grep -v '^ *+' conftest.er1 >conftest.err
12291 rm -f conftest.er1
12292 cat conftest.err >&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); } && {
12295 test -z "$ac_c_werror_flag" ||
12296 test ! -s conftest.err
12297 } && test -s conftest$ac_exeext &&
12298 $as_test_x conftest$ac_exeext; then
12299 ac_cv_lib_Xext_XShapeQueryExtension=yes
12300 else
12301 echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12303
12304 ac_cv_lib_Xext_XShapeQueryExtension=no
12305 fi
12306
12307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12308 conftest$ac_exeext conftest.$ac_ext
12309 LIBS=$ac_check_lib_save_LIBS
12310 fi
12311 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12312 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12313 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12314 cat >>confdefs.h <<_ACEOF
12315 #define HAVE_LIBXEXT 1
12316 _ACEOF
12317
12318 LIBS="-lXext $LIBS"
12319
12320 fi
12321
12322 fi
12323 fi
12324
12325 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12326 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12327 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12328 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12330 else
12331 cat >conftest.$ac_ext <<_ACEOF
12332 /* confdefs.h. */
12333 _ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12337 #include <Xm/Xm.h>
12338 int
12339 main ()
12340 {
12341 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12342 int x = 5;
12343 #else
12344 Motif version prior to 2.1.
12345 #endif
12346 ;
12347 return 0;
12348 }
12349 _ACEOF
12350 rm -f conftest.$ac_objext
12351 if { (ac_try="$ac_compile"
12352 case "(($ac_try" in
12353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12354 *) ac_try_echo=$ac_try;;
12355 esac
12356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12357 (eval "$ac_compile") 2>conftest.er1
12358 ac_status=$?
12359 grep -v '^ *+' conftest.er1 >conftest.err
12360 rm -f conftest.er1
12361 cat conftest.err >&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } && {
12364 test -z "$ac_c_werror_flag" ||
12365 test ! -s conftest.err
12366 } && test -s conftest.$ac_objext; then
12367 emacs_cv_motif_version_2_1=yes
12368 else
12369 echo "$as_me: failed program was:" >&5
12370 sed 's/^/| /' conftest.$ac_ext >&5
12371
12372 emacs_cv_motif_version_2_1=no
12373 fi
12374
12375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12376 fi
12377 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12378 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12379 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12380 if test $emacs_cv_motif_version_2_1 = yes; then
12381 HAVE_LIBXP=no
12382
12383 cat >>confdefs.h <<\_ACEOF
12384 #define HAVE_MOTIF_2_1 1
12385 _ACEOF
12386
12387 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12388 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12389 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12390 echo $ECHO_N "(cached) $ECHO_C" >&6
12391 else
12392 ac_check_lib_save_LIBS=$LIBS
12393 LIBS="-lXp $LIBS"
12394 cat >conftest.$ac_ext <<_ACEOF
12395 /* confdefs.h. */
12396 _ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h. */
12400
12401 /* Override any GCC internal prototype to avoid an error.
12402 Use char because int might match the return type of a GCC
12403 builtin and then its argument prototype would still apply. */
12404 #ifdef __cplusplus
12405 extern "C"
12406 #endif
12407 char XpCreateContext ();
12408 int
12409 main ()
12410 {
12411 return XpCreateContext ();
12412 ;
12413 return 0;
12414 }
12415 _ACEOF
12416 rm -f conftest.$ac_objext conftest$ac_exeext
12417 if { (ac_try="$ac_link"
12418 case "(($ac_try" in
12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12421 esac
12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423 (eval "$ac_link") 2>conftest.er1
12424 ac_status=$?
12425 grep -v '^ *+' conftest.er1 >conftest.err
12426 rm -f conftest.er1
12427 cat conftest.err >&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } && {
12430 test -z "$ac_c_werror_flag" ||
12431 test ! -s conftest.err
12432 } && test -s conftest$ac_exeext &&
12433 $as_test_x conftest$ac_exeext; then
12434 ac_cv_lib_Xp_XpCreateContext=yes
12435 else
12436 echo "$as_me: failed program was:" >&5
12437 sed 's/^/| /' conftest.$ac_ext >&5
12438
12439 ac_cv_lib_Xp_XpCreateContext=no
12440 fi
12441
12442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12443 conftest$ac_exeext conftest.$ac_ext
12444 LIBS=$ac_check_lib_save_LIBS
12445 fi
12446 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12447 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12448 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12449 HAVE_LIBXP=yes
12450 fi
12451
12452 if test ${HAVE_LIBXP} = yes; then
12453
12454 cat >>confdefs.h <<\_ACEOF
12455 #define HAVE_LIBXP 1
12456 _ACEOF
12457
12458 fi
12459 else
12460 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12461 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12462 if test "${emacs_cv_lesstif+set}" = set; then
12463 echo $ECHO_N "(cached) $ECHO_C" >&6
12464 else
12465 # We put this in CFLAGS temporarily to precede other -I options
12466 # that might be in CFLAGS temporarily.
12467 # We put this in CPPFLAGS where it precedes the other -I options.
12468 OLD_CPPFLAGS=$CPPFLAGS
12469 OLD_CFLAGS=$CFLAGS
12470 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12471 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12472 cat >conftest.$ac_ext <<_ACEOF
12473 /* confdefs.h. */
12474 _ACEOF
12475 cat confdefs.h >>conftest.$ac_ext
12476 cat >>conftest.$ac_ext <<_ACEOF
12477 /* end confdefs.h. */
12478 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12479 int
12480 main ()
12481 {
12482 int x = 5;
12483 ;
12484 return 0;
12485 }
12486 _ACEOF
12487 rm -f conftest.$ac_objext
12488 if { (ac_try="$ac_compile"
12489 case "(($ac_try" in
12490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12491 *) ac_try_echo=$ac_try;;
12492 esac
12493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12494 (eval "$ac_compile") 2>conftest.er1
12495 ac_status=$?
12496 grep -v '^ *+' conftest.er1 >conftest.err
12497 rm -f conftest.er1
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } && {
12501 test -z "$ac_c_werror_flag" ||
12502 test ! -s conftest.err
12503 } && test -s conftest.$ac_objext; then
12504 emacs_cv_lesstif=yes
12505 else
12506 echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12508
12509 emacs_cv_lesstif=no
12510 fi
12511
12512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12513 fi
12514 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12515 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12516 if test $emacs_cv_lesstif = yes; then
12517 # Make sure this -I option remains in CPPFLAGS after it is set
12518 # back to REAL_CPPFLAGS.
12519 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12520 # have those other -I options anyway. Ultimately, having this
12521 # directory ultimately in CPPFLAGS will be enough.
12522 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12523 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12524 else
12525 CFLAGS=$OLD_CFLAGS
12526 CPPFLAGS=$OLD_CPPFLAGS
12527 fi
12528 fi
12529 fi
12530
12531 ### Is -lXaw3d available?
12532 HAVE_XAW3D=no
12533 if test "${HAVE_X11}" = "yes"; then
12534 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12535 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12536 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12537 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12538 echo $ECHO_N "(cached) $ECHO_C" >&6
12539 else
12540 cat >conftest.$ac_ext <<_ACEOF
12541 /* confdefs.h. */
12542 _ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h. */
12546 #include <X11/Xaw3d/Scrollbar.h>
12547 _ACEOF
12548 if { (ac_try="$ac_cpp conftest.$ac_ext"
12549 case "(($ac_try" in
12550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551 *) ac_try_echo=$ac_try;;
12552 esac
12553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12555 ac_status=$?
12556 grep -v '^ *+' conftest.er1 >conftest.err
12557 rm -f conftest.er1
12558 cat conftest.err >&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } >/dev/null && {
12561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12562 test ! -s conftest.err
12563 }; then
12564 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12565 else
12566 echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12568
12569 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12570 fi
12571
12572 rm -f conftest.err conftest.$ac_ext
12573 fi
12574 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12575 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12576 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12577 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12578 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12579 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12580 echo $ECHO_N "(cached) $ECHO_C" >&6
12581 else
12582 ac_check_lib_save_LIBS=$LIBS
12583 LIBS="-lXaw3d $LIBS"
12584 cat >conftest.$ac_ext <<_ACEOF
12585 /* confdefs.h. */
12586 _ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h. */
12590
12591 /* Override any GCC internal prototype to avoid an error.
12592 Use char because int might match the return type of a GCC
12593 builtin and then its argument prototype would still apply. */
12594 #ifdef __cplusplus
12595 extern "C"
12596 #endif
12597 char XawScrollbarSetThumb ();
12598 int
12599 main ()
12600 {
12601 return XawScrollbarSetThumb ();
12602 ;
12603 return 0;
12604 }
12605 _ACEOF
12606 rm -f conftest.$ac_objext conftest$ac_exeext
12607 if { (ac_try="$ac_link"
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_link") 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_exeext &&
12623 $as_test_x conftest$ac_exeext; then
12624 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12625 else
12626 echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12628
12629 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12630 fi
12631
12632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12633 conftest$ac_exeext conftest.$ac_ext
12634 LIBS=$ac_check_lib_save_LIBS
12635 fi
12636 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12637 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12638 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12639 HAVE_XAW3D=yes
12640 fi
12641
12642 fi
12643
12644
12645 if test "${HAVE_XAW3D}" = "yes"; then
12646
12647 cat >>confdefs.h <<\_ACEOF
12648 #define HAVE_XAW3D 1
12649 _ACEOF
12650
12651 fi
12652 fi
12653 fi
12654
12655
12656
12657 USE_TOOLKIT_SCROLL_BARS=no
12658 if test "${with_toolkit_scroll_bars}" != "no"; then
12659 if test "${USE_X_TOOLKIT}" != "none"; then
12660 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12661 cat >>confdefs.h <<\_ACEOF
12662 #define USE_TOOLKIT_SCROLL_BARS 1
12663 _ACEOF
12664
12665 HAVE_XAW3D=no
12666 USE_TOOLKIT_SCROLL_BARS=yes
12667 elif test "${HAVE_XAW3D}" = "yes"; then
12668 cat >>confdefs.h <<\_ACEOF
12669 #define USE_TOOLKIT_SCROLL_BARS 1
12670 _ACEOF
12671
12672 USE_TOOLKIT_SCROLL_BARS=yes
12673 fi
12674 elif test "${HAVE_GTK}" = "yes"; then
12675 cat >>confdefs.h <<\_ACEOF
12676 #define USE_TOOLKIT_SCROLL_BARS 1
12677 _ACEOF
12678
12679 USE_TOOLKIT_SCROLL_BARS=yes
12680 elif test "${HAVE_CARBON}" = "yes"; then
12681 cat >>confdefs.h <<\_ACEOF
12682 #define USE_TOOLKIT_SCROLL_BARS 1
12683 _ACEOF
12684
12685 USE_TOOLKIT_SCROLL_BARS=yes
12686 fi
12687 fi
12688
12689 cat >conftest.$ac_ext <<_ACEOF
12690 /* confdefs.h. */
12691 _ACEOF
12692 cat confdefs.h >>conftest.$ac_ext
12693 cat >>conftest.$ac_ext <<_ACEOF
12694 /* end confdefs.h. */
12695
12696 #include <X11/Xlib.h>
12697 #include <X11/Xresource.h>
12698 int
12699 main ()
12700 {
12701 XIMProc callback;
12702 ;
12703 return 0;
12704 }
12705 _ACEOF
12706 rm -f conftest.$ac_objext
12707 if { (ac_try="$ac_compile"
12708 case "(($ac_try" in
12709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12710 *) ac_try_echo=$ac_try;;
12711 esac
12712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12713 (eval "$ac_compile") 2>conftest.er1
12714 ac_status=$?
12715 grep -v '^ *+' conftest.er1 >conftest.err
12716 rm -f conftest.er1
12717 cat conftest.err >&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } && {
12720 test -z "$ac_c_werror_flag" ||
12721 test ! -s conftest.err
12722 } && test -s conftest.$ac_objext; then
12723 HAVE_XIM=yes
12724
12725 cat >>confdefs.h <<\_ACEOF
12726 #define HAVE_XIM 1
12727 _ACEOF
12728
12729 else
12730 echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12732
12733 HAVE_XIM=no
12734 fi
12735
12736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12737
12738
12739 if test "${with_xim}" != "no"; then
12740
12741 cat >>confdefs.h <<\_ACEOF
12742 #define USE_XIM 1
12743 _ACEOF
12744
12745 fi
12746
12747
12748 if test "${HAVE_XIM}" != "no"; then
12749 late_CFLAGS=$CFLAGS
12750 if test "$GCC" = yes; then
12751 CFLAGS="$CFLAGS --pedantic-errors"
12752 fi
12753 cat >conftest.$ac_ext <<_ACEOF
12754 /* confdefs.h. */
12755 _ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h. */
12759
12760 #include <X11/Xlib.h>
12761 #include <X11/Xresource.h>
12762 int
12763 main ()
12764 {
12765 Display *display;
12766 XrmDatabase db;
12767 char *res_name;
12768 char *res_class;
12769 XIMProc callback;
12770 XPointer *client_data;
12771 #ifndef __GNUC__
12772 /* If we're not using GCC, it's probably not XFree86, and this is
12773 probably right, but we can't use something like --pedantic-errors. */
12774 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12775 char*, XIMProc, XPointer*);
12776 #endif
12777 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12778 client_data);
12779 ;
12780 return 0;
12781 }
12782 _ACEOF
12783 rm -f conftest.$ac_objext
12784 if { (ac_try="$ac_compile"
12785 case "(($ac_try" in
12786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12787 *) ac_try_echo=$ac_try;;
12788 esac
12789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12790 (eval "$ac_compile") 2>conftest.er1
12791 ac_status=$?
12792 grep -v '^ *+' conftest.er1 >conftest.err
12793 rm -f conftest.er1
12794 cat conftest.err >&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } && {
12797 test -z "$ac_c_werror_flag" ||
12798 test ! -s conftest.err
12799 } && test -s conftest.$ac_objext; then
12800 emacs_cv_arg6_star=yes
12801 else
12802 echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.$ac_ext >&5
12804
12805
12806 fi
12807
12808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12809
12810 if test "$emacs_cv_arg6_star" = yes; then
12811 cat >>confdefs.h <<\_ACEOF
12812 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12813 _ACEOF
12814
12815 else
12816 cat >>confdefs.h <<\_ACEOF
12817 #define XRegisterIMInstantiateCallback_arg6 XPointer
12818 _ACEOF
12819
12820 fi
12821 CFLAGS=$late_CFLAGS
12822 fi
12823
12824 ### Use -lXpm if available, unless `--with-xpm=no'.
12825 HAVE_XPM=no
12826 if test "${HAVE_X11}" = "yes"; then
12827 if test "${with_xpm}" != "no"; then
12828 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12829 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12830 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12831 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12833 fi
12834 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12835 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12836 else
12837 # Is the header compilable?
12838 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12839 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12840 cat >conftest.$ac_ext <<_ACEOF
12841 /* confdefs.h. */
12842 _ACEOF
12843 cat confdefs.h >>conftest.$ac_ext
12844 cat >>conftest.$ac_ext <<_ACEOF
12845 /* end confdefs.h. */
12846 $ac_includes_default
12847 #include <X11/xpm.h>
12848 _ACEOF
12849 rm -f conftest.$ac_objext
12850 if { (ac_try="$ac_compile"
12851 case "(($ac_try" in
12852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853 *) ac_try_echo=$ac_try;;
12854 esac
12855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856 (eval "$ac_compile") 2>conftest.er1
12857 ac_status=$?
12858 grep -v '^ *+' conftest.er1 >conftest.err
12859 rm -f conftest.er1
12860 cat conftest.err >&5
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); } && {
12863 test -z "$ac_c_werror_flag" ||
12864 test ! -s conftest.err
12865 } && test -s conftest.$ac_objext; then
12866 ac_header_compiler=yes
12867 else
12868 echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.$ac_ext >&5
12870
12871 ac_header_compiler=no
12872 fi
12873
12874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12875 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12876 echo "${ECHO_T}$ac_header_compiler" >&6; }
12877
12878 # Is the header present?
12879 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12880 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12881 cat >conftest.$ac_ext <<_ACEOF
12882 /* confdefs.h. */
12883 _ACEOF
12884 cat confdefs.h >>conftest.$ac_ext
12885 cat >>conftest.$ac_ext <<_ACEOF
12886 /* end confdefs.h. */
12887 #include <X11/xpm.h>
12888 _ACEOF
12889 if { (ac_try="$ac_cpp conftest.$ac_ext"
12890 case "(($ac_try" in
12891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892 *) ac_try_echo=$ac_try;;
12893 esac
12894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12896 ac_status=$?
12897 grep -v '^ *+' conftest.er1 >conftest.err
12898 rm -f conftest.er1
12899 cat conftest.err >&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } >/dev/null && {
12902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12903 test ! -s conftest.err
12904 }; then
12905 ac_header_preproc=yes
12906 else
12907 echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12909
12910 ac_header_preproc=no
12911 fi
12912
12913 rm -f conftest.err conftest.$ac_ext
12914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12915 echo "${ECHO_T}$ac_header_preproc" >&6; }
12916
12917 # So? What about this header?
12918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12919 yes:no: )
12920 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12921 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12922 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12923 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12924 ac_header_preproc=yes
12925 ;;
12926 no:yes:* )
12927 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12928 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12929 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12930 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12931 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12932 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12933 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12934 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12935 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12936 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12937 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12938 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12939
12940 ;;
12941 esac
12942 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12943 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12944 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12945 echo $ECHO_N "(cached) $ECHO_C" >&6
12946 else
12947 ac_cv_header_X11_xpm_h=$ac_header_preproc
12948 fi
12949 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12950 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12951
12952 fi
12953 if test $ac_cv_header_X11_xpm_h = yes; then
12954 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12955 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12956 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12957 echo $ECHO_N "(cached) $ECHO_C" >&6
12958 else
12959 ac_check_lib_save_LIBS=$LIBS
12960 LIBS="-lXpm -lX11 $LIBS"
12961 cat >conftest.$ac_ext <<_ACEOF
12962 /* confdefs.h. */
12963 _ACEOF
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h. */
12967
12968 /* Override any GCC internal prototype to avoid an error.
12969 Use char because int might match the return type of a GCC
12970 builtin and then its argument prototype would still apply. */
12971 #ifdef __cplusplus
12972 extern "C"
12973 #endif
12974 char XpmReadFileToPixmap ();
12975 int
12976 main ()
12977 {
12978 return XpmReadFileToPixmap ();
12979 ;
12980 return 0;
12981 }
12982 _ACEOF
12983 rm -f conftest.$ac_objext conftest$ac_exeext
12984 if { (ac_try="$ac_link"
12985 case "(($ac_try" in
12986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987 *) ac_try_echo=$ac_try;;
12988 esac
12989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990 (eval "$ac_link") 2>conftest.er1
12991 ac_status=$?
12992 grep -v '^ *+' conftest.er1 >conftest.err
12993 rm -f conftest.er1
12994 cat conftest.err >&5
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); } && {
12997 test -z "$ac_c_werror_flag" ||
12998 test ! -s conftest.err
12999 } && test -s conftest$ac_exeext &&
13000 $as_test_x conftest$ac_exeext; then
13001 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13002 else
13003 echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.$ac_ext >&5
13005
13006 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13007 fi
13008
13009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13010 conftest$ac_exeext conftest.$ac_ext
13011 LIBS=$ac_check_lib_save_LIBS
13012 fi
13013 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13014 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13015 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13016 HAVE_XPM=yes
13017 fi
13018
13019 fi
13020
13021
13022 if test "${HAVE_XPM}" = "yes"; then
13023 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13024 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13025 cat >conftest.$ac_ext <<_ACEOF
13026 /* confdefs.h. */
13027 _ACEOF
13028 cat confdefs.h >>conftest.$ac_ext
13029 cat >>conftest.$ac_ext <<_ACEOF
13030 /* end confdefs.h. */
13031 #include "X11/xpm.h"
13032 #ifndef XpmReturnAllocPixels
13033 no_return_alloc_pixels
13034 #endif
13035
13036 _ACEOF
13037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13038 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13039 HAVE_XPM=no
13040 else
13041 HAVE_XPM=yes
13042 fi
13043 rm -f conftest*
13044
13045
13046 if test "${HAVE_XPM}" = "yes"; then
13047 { echo "$as_me:$LINENO: result: yes" >&5
13048 echo "${ECHO_T}yes" >&6; }
13049 else
13050 { echo "$as_me:$LINENO: result: no" >&5
13051 echo "${ECHO_T}no" >&6; }
13052 fi
13053 fi
13054 fi
13055
13056 if test "${HAVE_XPM}" = "yes"; then
13057
13058 cat >>confdefs.h <<\_ACEOF
13059 #define HAVE_XPM 1
13060 _ACEOF
13061
13062 fi
13063 fi
13064
13065 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13066 HAVE_JPEG=no
13067 if test "${HAVE_X11}" = "yes"; then
13068 if test "${with_jpeg}" != "no"; then
13069 if test "${ac_cv_header_jerror_h+set}" = set; then
13070 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13071 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13072 if test "${ac_cv_header_jerror_h+set}" = set; then
13073 echo $ECHO_N "(cached) $ECHO_C" >&6
13074 fi
13075 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13076 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13077 else
13078 # Is the header compilable?
13079 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13080 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13081 cat >conftest.$ac_ext <<_ACEOF
13082 /* confdefs.h. */
13083 _ACEOF
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h. */
13087 $ac_includes_default
13088 #include <jerror.h>
13089 _ACEOF
13090 rm -f conftest.$ac_objext
13091 if { (ac_try="$ac_compile"
13092 case "(($ac_try" in
13093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094 *) ac_try_echo=$ac_try;;
13095 esac
13096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13097 (eval "$ac_compile") 2>conftest.er1
13098 ac_status=$?
13099 grep -v '^ *+' conftest.er1 >conftest.err
13100 rm -f conftest.er1
13101 cat conftest.err >&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } && {
13104 test -z "$ac_c_werror_flag" ||
13105 test ! -s conftest.err
13106 } && test -s conftest.$ac_objext; then
13107 ac_header_compiler=yes
13108 else
13109 echo "$as_me: failed program was:" >&5
13110 sed 's/^/| /' conftest.$ac_ext >&5
13111
13112 ac_header_compiler=no
13113 fi
13114
13115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13116 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13117 echo "${ECHO_T}$ac_header_compiler" >&6; }
13118
13119 # Is the header present?
13120 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13121 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13122 cat >conftest.$ac_ext <<_ACEOF
13123 /* confdefs.h. */
13124 _ACEOF
13125 cat confdefs.h >>conftest.$ac_ext
13126 cat >>conftest.$ac_ext <<_ACEOF
13127 /* end confdefs.h. */
13128 #include <jerror.h>
13129 _ACEOF
13130 if { (ac_try="$ac_cpp conftest.$ac_ext"
13131 case "(($ac_try" in
13132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133 *) ac_try_echo=$ac_try;;
13134 esac
13135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13137 ac_status=$?
13138 grep -v '^ *+' conftest.er1 >conftest.err
13139 rm -f conftest.er1
13140 cat conftest.err >&5
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); } >/dev/null && {
13143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13144 test ! -s conftest.err
13145 }; then
13146 ac_header_preproc=yes
13147 else
13148 echo "$as_me: failed program was:" >&5
13149 sed 's/^/| /' conftest.$ac_ext >&5
13150
13151 ac_header_preproc=no
13152 fi
13153
13154 rm -f conftest.err conftest.$ac_ext
13155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13156 echo "${ECHO_T}$ac_header_preproc" >&6; }
13157
13158 # So? What about this header?
13159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13160 yes:no: )
13161 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13162 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13163 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13164 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13165 ac_header_preproc=yes
13166 ;;
13167 no:yes:* )
13168 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13169 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13170 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13171 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13172 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13173 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13174 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13175 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13176 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13177 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13178 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13179 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13180
13181 ;;
13182 esac
13183 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13184 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13185 if test "${ac_cv_header_jerror_h+set}" = set; then
13186 echo $ECHO_N "(cached) $ECHO_C" >&6
13187 else
13188 ac_cv_header_jerror_h=$ac_header_preproc
13189 fi
13190 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13191 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13192
13193 fi
13194 if test $ac_cv_header_jerror_h = yes; then
13195 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13196 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13197 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13198 echo $ECHO_N "(cached) $ECHO_C" >&6
13199 else
13200 ac_check_lib_save_LIBS=$LIBS
13201 LIBS="-ljpeg $LIBS"
13202 cat >conftest.$ac_ext <<_ACEOF
13203 /* confdefs.h. */
13204 _ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13208
13209 /* Override any GCC internal prototype to avoid an error.
13210 Use char because int might match the return type of a GCC
13211 builtin and then its argument prototype would still apply. */
13212 #ifdef __cplusplus
13213 extern "C"
13214 #endif
13215 char jpeg_destroy_compress ();
13216 int
13217 main ()
13218 {
13219 return jpeg_destroy_compress ();
13220 ;
13221 return 0;
13222 }
13223 _ACEOF
13224 rm -f conftest.$ac_objext conftest$ac_exeext
13225 if { (ac_try="$ac_link"
13226 case "(($ac_try" in
13227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228 *) ac_try_echo=$ac_try;;
13229 esac
13230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231 (eval "$ac_link") 2>conftest.er1
13232 ac_status=$?
13233 grep -v '^ *+' conftest.er1 >conftest.err
13234 rm -f conftest.er1
13235 cat conftest.err >&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } && {
13238 test -z "$ac_c_werror_flag" ||
13239 test ! -s conftest.err
13240 } && test -s conftest$ac_exeext &&
13241 $as_test_x conftest$ac_exeext; then
13242 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13243 else
13244 echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13246
13247 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13248 fi
13249
13250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13251 conftest$ac_exeext conftest.$ac_ext
13252 LIBS=$ac_check_lib_save_LIBS
13253 fi
13254 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13255 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13256 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13257 HAVE_JPEG=yes
13258 fi
13259
13260 fi
13261
13262
13263 fi
13264
13265
13266 if test "${HAVE_JPEG}" = "yes"; then
13267 cat >>confdefs.h <<\_ACEOF
13268 #define HAVE_JPEG 1
13269 _ACEOF
13270
13271 cat >conftest.$ac_ext <<_ACEOF
13272 /* confdefs.h. */
13273 _ACEOF
13274 cat confdefs.h >>conftest.$ac_ext
13275 cat >>conftest.$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13277 #include <jpeglib.h>
13278 version=JPEG_LIB_VERSION
13279
13280 _ACEOF
13281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13282 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13283 cat >>confdefs.h <<\_ACEOF
13284 #define HAVE_JPEG 1
13285 _ACEOF
13286
13287 else
13288 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13289 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13290 HAVE_JPEG=no
13291 fi
13292 rm -f conftest*
13293
13294 fi
13295 fi
13296
13297 ### Use -lpng if available, unless `--with-png=no'.
13298 HAVE_PNG=no
13299 if test "${HAVE_X11}" = "yes"; then
13300 if test "${with_png}" != "no"; then
13301 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13302 # in /usr/include/libpng.
13303
13304
13305 for ac_header in png.h libpng/png.h
13306 do
13307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13313 fi
13314 ac_res=`eval echo '${'$as_ac_Header'}'`
13315 { echo "$as_me:$LINENO: result: $ac_res" >&5
13316 echo "${ECHO_T}$ac_res" >&6; }
13317 else
13318 # Is the header compilable?
13319 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13321 cat >conftest.$ac_ext <<_ACEOF
13322 /* confdefs.h. */
13323 _ACEOF
13324 cat confdefs.h >>conftest.$ac_ext
13325 cat >>conftest.$ac_ext <<_ACEOF
13326 /* end confdefs.h. */
13327 $ac_includes_default
13328 #include <$ac_header>
13329 _ACEOF
13330 rm -f conftest.$ac_objext
13331 if { (ac_try="$ac_compile"
13332 case "(($ac_try" in
13333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13335 esac
13336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337 (eval "$ac_compile") 2>conftest.er1
13338 ac_status=$?
13339 grep -v '^ *+' conftest.er1 >conftest.err
13340 rm -f conftest.er1
13341 cat conftest.err >&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); } && {
13344 test -z "$ac_c_werror_flag" ||
13345 test ! -s conftest.err
13346 } && test -s conftest.$ac_objext; then
13347 ac_header_compiler=yes
13348 else
13349 echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13351
13352 ac_header_compiler=no
13353 fi
13354
13355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13356 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13357 echo "${ECHO_T}$ac_header_compiler" >&6; }
13358
13359 # Is the header present?
13360 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13362 cat >conftest.$ac_ext <<_ACEOF
13363 /* confdefs.h. */
13364 _ACEOF
13365 cat confdefs.h >>conftest.$ac_ext
13366 cat >>conftest.$ac_ext <<_ACEOF
13367 /* end confdefs.h. */
13368 #include <$ac_header>
13369 _ACEOF
13370 if { (ac_try="$ac_cpp conftest.$ac_ext"
13371 case "(($ac_try" in
13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13374 esac
13375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13377 ac_status=$?
13378 grep -v '^ *+' conftest.er1 >conftest.err
13379 rm -f conftest.er1
13380 cat conftest.err >&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } >/dev/null && {
13383 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13384 test ! -s conftest.err
13385 }; then
13386 ac_header_preproc=yes
13387 else
13388 echo "$as_me: failed program was:" >&5
13389 sed 's/^/| /' conftest.$ac_ext >&5
13390
13391 ac_header_preproc=no
13392 fi
13393
13394 rm -f conftest.err conftest.$ac_ext
13395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13396 echo "${ECHO_T}$ac_header_preproc" >&6; }
13397
13398 # So? What about this header?
13399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13400 yes:no: )
13401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13405 ac_header_preproc=yes
13406 ;;
13407 no:yes:* )
13408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13420
13421 ;;
13422 esac
13423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13426 echo $ECHO_N "(cached) $ECHO_C" >&6
13427 else
13428 eval "$as_ac_Header=\$ac_header_preproc"
13429 fi
13430 ac_res=`eval echo '${'$as_ac_Header'}'`
13431 { echo "$as_me:$LINENO: result: $ac_res" >&5
13432 echo "${ECHO_T}$ac_res" >&6; }
13433
13434 fi
13435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13436 cat >>confdefs.h <<_ACEOF
13437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13438 _ACEOF
13439
13440 fi
13441
13442 done
13443
13444 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13445 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13446 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13447 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13449 else
13450 ac_check_lib_save_LIBS=$LIBS
13451 LIBS="-lpng -lz -lm $LIBS"
13452 cat >conftest.$ac_ext <<_ACEOF
13453 /* confdefs.h. */
13454 _ACEOF
13455 cat confdefs.h >>conftest.$ac_ext
13456 cat >>conftest.$ac_ext <<_ACEOF
13457 /* end confdefs.h. */
13458
13459 /* Override any GCC internal prototype to avoid an error.
13460 Use char because int might match the return type of a GCC
13461 builtin and then its argument prototype would still apply. */
13462 #ifdef __cplusplus
13463 extern "C"
13464 #endif
13465 char png_get_channels ();
13466 int
13467 main ()
13468 {
13469 return png_get_channels ();
13470 ;
13471 return 0;
13472 }
13473 _ACEOF
13474 rm -f conftest.$ac_objext conftest$ac_exeext
13475 if { (ac_try="$ac_link"
13476 case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13479 esac
13480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_link") 2>conftest.er1
13482 ac_status=$?
13483 grep -v '^ *+' conftest.er1 >conftest.err
13484 rm -f conftest.er1
13485 cat conftest.err >&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } && {
13488 test -z "$ac_c_werror_flag" ||
13489 test ! -s conftest.err
13490 } && test -s conftest$ac_exeext &&
13491 $as_test_x conftest$ac_exeext; then
13492 ac_cv_lib_png_png_get_channels=yes
13493 else
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13496
13497 ac_cv_lib_png_png_get_channels=no
13498 fi
13499
13500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13501 conftest$ac_exeext conftest.$ac_ext
13502 LIBS=$ac_check_lib_save_LIBS
13503 fi
13504 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13505 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13506 if test $ac_cv_lib_png_png_get_channels = yes; then
13507 HAVE_PNG=yes
13508 fi
13509
13510 fi
13511 fi
13512
13513 if test "${HAVE_PNG}" = "yes"; then
13514
13515 cat >>confdefs.h <<\_ACEOF
13516 #define HAVE_PNG 1
13517 _ACEOF
13518
13519 fi
13520 fi
13521
13522 ### Use -ltiff if available, unless `--with-tiff=no'.
13523 HAVE_TIFF=no
13524 if test "${HAVE_X11}" = "yes"; then
13525 if test "${with_tiff}" != "no"; then
13526 if test "${ac_cv_header_tiffio_h+set}" = set; then
13527 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13528 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13529 if test "${ac_cv_header_tiffio_h+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13531 fi
13532 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13533 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13534 else
13535 # Is the header compilable?
13536 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13537 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13538 cat >conftest.$ac_ext <<_ACEOF
13539 /* confdefs.h. */
13540 _ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h. */
13544 $ac_includes_default
13545 #include <tiffio.h>
13546 _ACEOF
13547 rm -f conftest.$ac_objext
13548 if { (ac_try="$ac_compile"
13549 case "(($ac_try" in
13550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13551 *) ac_try_echo=$ac_try;;
13552 esac
13553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13554 (eval "$ac_compile") 2>conftest.er1
13555 ac_status=$?
13556 grep -v '^ *+' conftest.er1 >conftest.err
13557 rm -f conftest.er1
13558 cat conftest.err >&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } && {
13561 test -z "$ac_c_werror_flag" ||
13562 test ! -s conftest.err
13563 } && test -s conftest.$ac_objext; then
13564 ac_header_compiler=yes
13565 else
13566 echo "$as_me: failed program was:" >&5
13567 sed 's/^/| /' conftest.$ac_ext >&5
13568
13569 ac_header_compiler=no
13570 fi
13571
13572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13574 echo "${ECHO_T}$ac_header_compiler" >&6; }
13575
13576 # Is the header present?
13577 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13578 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13579 cat >conftest.$ac_ext <<_ACEOF
13580 /* confdefs.h. */
13581 _ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h. */
13585 #include <tiffio.h>
13586 _ACEOF
13587 if { (ac_try="$ac_cpp conftest.$ac_ext"
13588 case "(($ac_try" in
13589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590 *) ac_try_echo=$ac_try;;
13591 esac
13592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13594 ac_status=$?
13595 grep -v '^ *+' conftest.er1 >conftest.err
13596 rm -f conftest.er1
13597 cat conftest.err >&5
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); } >/dev/null && {
13600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13601 test ! -s conftest.err
13602 }; then
13603 ac_header_preproc=yes
13604 else
13605 echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13607
13608 ac_header_preproc=no
13609 fi
13610
13611 rm -f conftest.err conftest.$ac_ext
13612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13613 echo "${ECHO_T}$ac_header_preproc" >&6; }
13614
13615 # So? What about this header?
13616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13617 yes:no: )
13618 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13619 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13620 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13621 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13622 ac_header_preproc=yes
13623 ;;
13624 no:yes:* )
13625 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13626 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13627 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13628 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13629 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13630 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13631 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13632 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13633 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13634 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13635 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13636 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13637
13638 ;;
13639 esac
13640 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13641 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13642 if test "${ac_cv_header_tiffio_h+set}" = set; then
13643 echo $ECHO_N "(cached) $ECHO_C" >&6
13644 else
13645 ac_cv_header_tiffio_h=$ac_header_preproc
13646 fi
13647 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13648 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13649
13650 fi
13651 if test $ac_cv_header_tiffio_h = yes; then
13652 tifflibs="-lz -lm"
13653 # At least one tiff package requires the jpeg library.
13654 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13655 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13656 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13657 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13659 else
13660 ac_check_lib_save_LIBS=$LIBS
13661 LIBS="-ltiff $tifflibs $LIBS"
13662 cat >conftest.$ac_ext <<_ACEOF
13663 /* confdefs.h. */
13664 _ACEOF
13665 cat confdefs.h >>conftest.$ac_ext
13666 cat >>conftest.$ac_ext <<_ACEOF
13667 /* end confdefs.h. */
13668
13669 /* Override any GCC internal prototype to avoid an error.
13670 Use char because int might match the return type of a GCC
13671 builtin and then its argument prototype would still apply. */
13672 #ifdef __cplusplus
13673 extern "C"
13674 #endif
13675 char TIFFGetVersion ();
13676 int
13677 main ()
13678 {
13679 return TIFFGetVersion ();
13680 ;
13681 return 0;
13682 }
13683 _ACEOF
13684 rm -f conftest.$ac_objext conftest$ac_exeext
13685 if { (ac_try="$ac_link"
13686 case "(($ac_try" in
13687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13688 *) ac_try_echo=$ac_try;;
13689 esac
13690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13691 (eval "$ac_link") 2>conftest.er1
13692 ac_status=$?
13693 grep -v '^ *+' conftest.er1 >conftest.err
13694 rm -f conftest.er1
13695 cat conftest.err >&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } && {
13698 test -z "$ac_c_werror_flag" ||
13699 test ! -s conftest.err
13700 } && test -s conftest$ac_exeext &&
13701 $as_test_x conftest$ac_exeext; then
13702 ac_cv_lib_tiff_TIFFGetVersion=yes
13703 else
13704 echo "$as_me: failed program was:" >&5
13705 sed 's/^/| /' conftest.$ac_ext >&5
13706
13707 ac_cv_lib_tiff_TIFFGetVersion=no
13708 fi
13709
13710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13711 conftest$ac_exeext conftest.$ac_ext
13712 LIBS=$ac_check_lib_save_LIBS
13713 fi
13714 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13715 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13716 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13717 HAVE_TIFF=yes
13718 fi
13719
13720 fi
13721
13722
13723 fi
13724
13725 if test "${HAVE_TIFF}" = "yes"; then
13726
13727 cat >>confdefs.h <<\_ACEOF
13728 #define HAVE_TIFF 1
13729 _ACEOF
13730
13731 fi
13732 fi
13733
13734 ### Use -lgif if available, unless `--with-gif=no'.
13735 HAVE_GIF=no
13736 if test "${HAVE_X11}" = "yes"; then
13737 if test "${with_gif}" != "no"; then
13738 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13739 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13740 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13741 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13742 echo $ECHO_N "(cached) $ECHO_C" >&6
13743 fi
13744 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13745 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13746 else
13747 # Is the header compilable?
13748 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13749 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13750 cat >conftest.$ac_ext <<_ACEOF
13751 /* confdefs.h. */
13752 _ACEOF
13753 cat confdefs.h >>conftest.$ac_ext
13754 cat >>conftest.$ac_ext <<_ACEOF
13755 /* end confdefs.h. */
13756 $ac_includes_default
13757 #include <gif_lib.h>
13758 _ACEOF
13759 rm -f conftest.$ac_objext
13760 if { (ac_try="$ac_compile"
13761 case "(($ac_try" in
13762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13764 esac
13765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_compile") 2>conftest.er1
13767 ac_status=$?
13768 grep -v '^ *+' conftest.er1 >conftest.err
13769 rm -f conftest.er1
13770 cat conftest.err >&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } && {
13773 test -z "$ac_c_werror_flag" ||
13774 test ! -s conftest.err
13775 } && test -s conftest.$ac_objext; then
13776 ac_header_compiler=yes
13777 else
13778 echo "$as_me: failed program was:" >&5
13779 sed 's/^/| /' conftest.$ac_ext >&5
13780
13781 ac_header_compiler=no
13782 fi
13783
13784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13786 echo "${ECHO_T}$ac_header_compiler" >&6; }
13787
13788 # Is the header present?
13789 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13790 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13791 cat >conftest.$ac_ext <<_ACEOF
13792 /* confdefs.h. */
13793 _ACEOF
13794 cat confdefs.h >>conftest.$ac_ext
13795 cat >>conftest.$ac_ext <<_ACEOF
13796 /* end confdefs.h. */
13797 #include <gif_lib.h>
13798 _ACEOF
13799 if { (ac_try="$ac_cpp conftest.$ac_ext"
13800 case "(($ac_try" in
13801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13802 *) ac_try_echo=$ac_try;;
13803 esac
13804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13806 ac_status=$?
13807 grep -v '^ *+' conftest.er1 >conftest.err
13808 rm -f conftest.er1
13809 cat conftest.err >&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); } >/dev/null && {
13812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13813 test ! -s conftest.err
13814 }; then
13815 ac_header_preproc=yes
13816 else
13817 echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13819
13820 ac_header_preproc=no
13821 fi
13822
13823 rm -f conftest.err conftest.$ac_ext
13824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13825 echo "${ECHO_T}$ac_header_preproc" >&6; }
13826
13827 # So? What about this header?
13828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13829 yes:no: )
13830 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13831 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13832 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13833 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13834 ac_header_preproc=yes
13835 ;;
13836 no:yes:* )
13837 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13838 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13839 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13840 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13841 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13842 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13843 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13844 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13845 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13846 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13847 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13848 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13849
13850 ;;
13851 esac
13852 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13853 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13854 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13855 echo $ECHO_N "(cached) $ECHO_C" >&6
13856 else
13857 ac_cv_header_gif_lib_h=$ac_header_preproc
13858 fi
13859 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13860 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13861
13862 fi
13863 if test $ac_cv_header_gif_lib_h = yes; then
13864 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13865 # Earlier versions can crash Emacs.
13866 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13867 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13868 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13869 echo $ECHO_N "(cached) $ECHO_C" >&6
13870 else
13871 ac_check_lib_save_LIBS=$LIBS
13872 LIBS="-lungif $LIBS"
13873 cat >conftest.$ac_ext <<_ACEOF
13874 /* confdefs.h. */
13875 _ACEOF
13876 cat confdefs.h >>conftest.$ac_ext
13877 cat >>conftest.$ac_ext <<_ACEOF
13878 /* end confdefs.h. */
13879
13880 /* Override any GCC internal prototype to avoid an error.
13881 Use char because int might match the return type of a GCC
13882 builtin and then its argument prototype would still apply. */
13883 #ifdef __cplusplus
13884 extern "C"
13885 #endif
13886 char EGifPutExtensionLast ();
13887 int
13888 main ()
13889 {
13890 return EGifPutExtensionLast ();
13891 ;
13892 return 0;
13893 }
13894 _ACEOF
13895 rm -f conftest.$ac_objext conftest$ac_exeext
13896 if { (ac_try="$ac_link"
13897 case "(($ac_try" in
13898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13900 esac
13901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13902 (eval "$ac_link") 2>conftest.er1
13903 ac_status=$?
13904 grep -v '^ *+' conftest.er1 >conftest.err
13905 rm -f conftest.er1
13906 cat conftest.err >&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); } && {
13909 test -z "$ac_c_werror_flag" ||
13910 test ! -s conftest.err
13911 } && test -s conftest$ac_exeext &&
13912 $as_test_x conftest$ac_exeext; then
13913 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13914 else
13915 echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13917
13918 ac_cv_lib_ungif_EGifPutExtensionLast=no
13919 fi
13920
13921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13922 conftest$ac_exeext conftest.$ac_ext
13923 LIBS=$ac_check_lib_save_LIBS
13924 fi
13925 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13926 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13927 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13928 HAVE_GIF=yes
13929 fi
13930
13931 fi
13932
13933
13934 fi
13935
13936 if test "${HAVE_GIF}" = "yes"; then
13937
13938 cat >>confdefs.h <<\_ACEOF
13939 #define HAVE_GIF 1
13940 _ACEOF
13941
13942 fi
13943 fi
13944
13945 ### Use -lgpm if available, unless `--with-gpm=no'.
13946 HAVE_GPM=no
13947 if test "${with_gpm}" != "no"; then
13948 if test "${ac_cv_header_gpm_h+set}" = set; then
13949 { echo "$as_me:$LINENO: checking for gpm.h" >&5
13950 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
13951 if test "${ac_cv_header_gpm_h+set}" = set; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13953 fi
13954 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
13955 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
13956 else
13957 # Is the header compilable?
13958 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
13959 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
13960 cat >conftest.$ac_ext <<_ACEOF
13961 /* confdefs.h. */
13962 _ACEOF
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h. */
13966 $ac_includes_default
13967 #include <gpm.h>
13968 _ACEOF
13969 rm -f conftest.$ac_objext
13970 if { (ac_try="$ac_compile"
13971 case "(($ac_try" in
13972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13973 *) ac_try_echo=$ac_try;;
13974 esac
13975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13976 (eval "$ac_compile") 2>conftest.er1
13977 ac_status=$?
13978 grep -v '^ *+' conftest.er1 >conftest.err
13979 rm -f conftest.er1
13980 cat conftest.err >&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); } && {
13983 test -z "$ac_c_werror_flag" ||
13984 test ! -s conftest.err
13985 } && test -s conftest.$ac_objext; then
13986 ac_header_compiler=yes
13987 else
13988 echo "$as_me: failed program was:" >&5
13989 sed 's/^/| /' conftest.$ac_ext >&5
13990
13991 ac_header_compiler=no
13992 fi
13993
13994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13996 echo "${ECHO_T}$ac_header_compiler" >&6; }
13997
13998 # Is the header present?
13999 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14000 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14001 cat >conftest.$ac_ext <<_ACEOF
14002 /* confdefs.h. */
14003 _ACEOF
14004 cat confdefs.h >>conftest.$ac_ext
14005 cat >>conftest.$ac_ext <<_ACEOF
14006 /* end confdefs.h. */
14007 #include <gpm.h>
14008 _ACEOF
14009 if { (ac_try="$ac_cpp conftest.$ac_ext"
14010 case "(($ac_try" in
14011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14012 *) ac_try_echo=$ac_try;;
14013 esac
14014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14016 ac_status=$?
14017 grep -v '^ *+' conftest.er1 >conftest.err
14018 rm -f conftest.er1
14019 cat conftest.err >&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); } >/dev/null && {
14022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14023 test ! -s conftest.err
14024 }; then
14025 ac_header_preproc=yes
14026 else
14027 echo "$as_me: failed program was:" >&5
14028 sed 's/^/| /' conftest.$ac_ext >&5
14029
14030 ac_header_preproc=no
14031 fi
14032
14033 rm -f conftest.err conftest.$ac_ext
14034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14035 echo "${ECHO_T}$ac_header_preproc" >&6; }
14036
14037 # So? What about this header?
14038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14039 yes:no: )
14040 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14041 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14042 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14043 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14044 ac_header_preproc=yes
14045 ;;
14046 no:yes:* )
14047 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14048 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14049 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14050 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14051 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14052 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14053 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14054 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14055 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14056 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14057 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14058 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14059
14060 ;;
14061 esac
14062 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14063 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14064 if test "${ac_cv_header_gpm_h+set}" = set; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14066 else
14067 ac_cv_header_gpm_h=$ac_header_preproc
14068 fi
14069 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14070 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14071
14072 fi
14073 if test $ac_cv_header_gpm_h = yes; then
14074 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14075 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14076 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14077 echo $ECHO_N "(cached) $ECHO_C" >&6
14078 else
14079 ac_check_lib_save_LIBS=$LIBS
14080 LIBS="-lgpm $LIBS"
14081 cat >conftest.$ac_ext <<_ACEOF
14082 /* confdefs.h. */
14083 _ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h. */
14087
14088 /* Override any GCC internal prototype to avoid an error.
14089 Use char because int might match the return type of a GCC
14090 builtin and then its argument prototype would still apply. */
14091 #ifdef __cplusplus
14092 extern "C"
14093 #endif
14094 char Gpm_Open ();
14095 int
14096 main ()
14097 {
14098 return Gpm_Open ();
14099 ;
14100 return 0;
14101 }
14102 _ACEOF
14103 rm -f conftest.$ac_objext conftest$ac_exeext
14104 if { (ac_try="$ac_link"
14105 case "(($ac_try" in
14106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14107 *) ac_try_echo=$ac_try;;
14108 esac
14109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14110 (eval "$ac_link") 2>conftest.er1
14111 ac_status=$?
14112 grep -v '^ *+' conftest.er1 >conftest.err
14113 rm -f conftest.er1
14114 cat conftest.err >&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } && {
14117 test -z "$ac_c_werror_flag" ||
14118 test ! -s conftest.err
14119 } && test -s conftest$ac_exeext &&
14120 $as_test_x conftest$ac_exeext; then
14121 ac_cv_lib_gpm_Gpm_Open=yes
14122 else
14123 echo "$as_me: failed program was:" >&5
14124 sed 's/^/| /' conftest.$ac_ext >&5
14125
14126 ac_cv_lib_gpm_Gpm_Open=no
14127 fi
14128
14129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14130 conftest$ac_exeext conftest.$ac_ext
14131 LIBS=$ac_check_lib_save_LIBS
14132 fi
14133 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14134 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14135 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14136 HAVE_GPM=yes
14137 fi
14138
14139 fi
14140
14141
14142 fi
14143
14144 if test "${HAVE_GPM}" = "yes"; then
14145
14146 cat >>confdefs.h <<\_ACEOF
14147 #define HAVE_GPM 1
14148 _ACEOF
14149
14150 fi
14151
14152 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14153 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14154 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14155 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14156 echo $ECHO_N "(cached) $ECHO_C" >&6
14157 fi
14158 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14159 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14160 else
14161 # Is the header compilable?
14162 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14163 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14164 cat >conftest.$ac_ext <<_ACEOF
14165 /* confdefs.h. */
14166 _ACEOF
14167 cat confdefs.h >>conftest.$ac_ext
14168 cat >>conftest.$ac_ext <<_ACEOF
14169 /* end confdefs.h. */
14170 $ac_includes_default
14171 #include <malloc/malloc.h>
14172 _ACEOF
14173 rm -f conftest.$ac_objext
14174 if { (ac_try="$ac_compile"
14175 case "(($ac_try" in
14176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14177 *) ac_try_echo=$ac_try;;
14178 esac
14179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14180 (eval "$ac_compile") 2>conftest.er1
14181 ac_status=$?
14182 grep -v '^ *+' conftest.er1 >conftest.err
14183 rm -f conftest.er1
14184 cat conftest.err >&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } && {
14187 test -z "$ac_c_werror_flag" ||
14188 test ! -s conftest.err
14189 } && test -s conftest.$ac_objext; then
14190 ac_header_compiler=yes
14191 else
14192 echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14194
14195 ac_header_compiler=no
14196 fi
14197
14198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14200 echo "${ECHO_T}$ac_header_compiler" >&6; }
14201
14202 # Is the header present?
14203 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14204 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14205 cat >conftest.$ac_ext <<_ACEOF
14206 /* confdefs.h. */
14207 _ACEOF
14208 cat confdefs.h >>conftest.$ac_ext
14209 cat >>conftest.$ac_ext <<_ACEOF
14210 /* end confdefs.h. */
14211 #include <malloc/malloc.h>
14212 _ACEOF
14213 if { (ac_try="$ac_cpp conftest.$ac_ext"
14214 case "(($ac_try" in
14215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216 *) ac_try_echo=$ac_try;;
14217 esac
14218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14220 ac_status=$?
14221 grep -v '^ *+' conftest.er1 >conftest.err
14222 rm -f conftest.er1
14223 cat conftest.err >&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); } >/dev/null && {
14226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14227 test ! -s conftest.err
14228 }; then
14229 ac_header_preproc=yes
14230 else
14231 echo "$as_me: failed program was:" >&5
14232 sed 's/^/| /' conftest.$ac_ext >&5
14233
14234 ac_header_preproc=no
14235 fi
14236
14237 rm -f conftest.err conftest.$ac_ext
14238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14239 echo "${ECHO_T}$ac_header_preproc" >&6; }
14240
14241 # So? What about this header?
14242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14243 yes:no: )
14244 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14245 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14246 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14247 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14248 ac_header_preproc=yes
14249 ;;
14250 no:yes:* )
14251 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14252 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14253 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14254 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14255 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14256 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14257 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14258 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14259 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14260 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14261 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14262 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14263
14264 ;;
14265 esac
14266 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14267 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14268 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14269 echo $ECHO_N "(cached) $ECHO_C" >&6
14270 else
14271 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14272 fi
14273 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14274 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14275
14276 fi
14277 if test $ac_cv_header_malloc_malloc_h = yes; then
14278
14279 cat >>confdefs.h <<\_ACEOF
14280 #define HAVE_MALLOC_MALLOC_H 1
14281 _ACEOF
14282
14283 fi
14284
14285
14286
14287 ### Use Mac OS X Carbon API to implement GUI.
14288 if test "${HAVE_CARBON}" = "yes"; then
14289
14290 cat >>confdefs.h <<\_ACEOF
14291 #define HAVE_CARBON 1
14292 _ACEOF
14293
14294 ## Specify the install directory
14295 carbon_appdir=
14296 if test "${carbon_appdir_x}" != ""; then
14297 case ${carbon_appdir_x} in
14298 y | ye | yes) carbon_appdir=/Applications ;;
14299 * ) carbon_appdir=${carbon_appdir_x} ;;
14300 esac
14301 fi
14302 # We also have mouse menus.
14303 HAVE_MENUS=yes
14304 fi
14305
14306 ### Use session management (-lSM -lICE) if available
14307 HAVE_X_SM=no
14308 if test "${HAVE_X11}" = "yes"; then
14309 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14310 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14311 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14312 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14314 fi
14315 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14316 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14317 else
14318 # Is the header compilable?
14319 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14320 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14321 cat >conftest.$ac_ext <<_ACEOF
14322 /* confdefs.h. */
14323 _ACEOF
14324 cat confdefs.h >>conftest.$ac_ext
14325 cat >>conftest.$ac_ext <<_ACEOF
14326 /* end confdefs.h. */
14327 $ac_includes_default
14328 #include <X11/SM/SMlib.h>
14329 _ACEOF
14330 rm -f conftest.$ac_objext
14331 if { (ac_try="$ac_compile"
14332 case "(($ac_try" in
14333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334 *) ac_try_echo=$ac_try;;
14335 esac
14336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14337 (eval "$ac_compile") 2>conftest.er1
14338 ac_status=$?
14339 grep -v '^ *+' conftest.er1 >conftest.err
14340 rm -f conftest.er1
14341 cat conftest.err >&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); } && {
14344 test -z "$ac_c_werror_flag" ||
14345 test ! -s conftest.err
14346 } && test -s conftest.$ac_objext; then
14347 ac_header_compiler=yes
14348 else
14349 echo "$as_me: failed program was:" >&5
14350 sed 's/^/| /' conftest.$ac_ext >&5
14351
14352 ac_header_compiler=no
14353 fi
14354
14355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14356 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14357 echo "${ECHO_T}$ac_header_compiler" >&6; }
14358
14359 # Is the header present?
14360 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14361 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14362 cat >conftest.$ac_ext <<_ACEOF
14363 /* confdefs.h. */
14364 _ACEOF
14365 cat confdefs.h >>conftest.$ac_ext
14366 cat >>conftest.$ac_ext <<_ACEOF
14367 /* end confdefs.h. */
14368 #include <X11/SM/SMlib.h>
14369 _ACEOF
14370 if { (ac_try="$ac_cpp conftest.$ac_ext"
14371 case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14374 esac
14375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14377 ac_status=$?
14378 grep -v '^ *+' conftest.er1 >conftest.err
14379 rm -f conftest.er1
14380 cat conftest.err >&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } >/dev/null && {
14383 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14384 test ! -s conftest.err
14385 }; then
14386 ac_header_preproc=yes
14387 else
14388 echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
14390
14391 ac_header_preproc=no
14392 fi
14393
14394 rm -f conftest.err conftest.$ac_ext
14395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14396 echo "${ECHO_T}$ac_header_preproc" >&6; }
14397
14398 # So? What about this header?
14399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14400 yes:no: )
14401 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14402 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14403 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14404 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14405 ac_header_preproc=yes
14406 ;;
14407 no:yes:* )
14408 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14409 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14410 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14411 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14412 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14413 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14414 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14415 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14416 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14417 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14418 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14419 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14420
14421 ;;
14422 esac
14423 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14424 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14425 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14426 echo $ECHO_N "(cached) $ECHO_C" >&6
14427 else
14428 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14429 fi
14430 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14431 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14432
14433 fi
14434 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14435 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14436 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14437 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14438 echo $ECHO_N "(cached) $ECHO_C" >&6
14439 else
14440 ac_check_lib_save_LIBS=$LIBS
14441 LIBS="-lSM -lICE $LIBS"
14442 cat >conftest.$ac_ext <<_ACEOF
14443 /* confdefs.h. */
14444 _ACEOF
14445 cat confdefs.h >>conftest.$ac_ext
14446 cat >>conftest.$ac_ext <<_ACEOF
14447 /* end confdefs.h. */
14448
14449 /* Override any GCC internal prototype to avoid an error.
14450 Use char because int might match the return type of a GCC
14451 builtin and then its argument prototype would still apply. */
14452 #ifdef __cplusplus
14453 extern "C"
14454 #endif
14455 char SmcOpenConnection ();
14456 int
14457 main ()
14458 {
14459 return SmcOpenConnection ();
14460 ;
14461 return 0;
14462 }
14463 _ACEOF
14464 rm -f conftest.$ac_objext conftest$ac_exeext
14465 if { (ac_try="$ac_link"
14466 case "(($ac_try" in
14467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468 *) ac_try_echo=$ac_try;;
14469 esac
14470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14471 (eval "$ac_link") 2>conftest.er1
14472 ac_status=$?
14473 grep -v '^ *+' conftest.er1 >conftest.err
14474 rm -f conftest.er1
14475 cat conftest.err >&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } && {
14478 test -z "$ac_c_werror_flag" ||
14479 test ! -s conftest.err
14480 } && test -s conftest$ac_exeext &&
14481 $as_test_x conftest$ac_exeext; then
14482 ac_cv_lib_SM_SmcOpenConnection=yes
14483 else
14484 echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.$ac_ext >&5
14486
14487 ac_cv_lib_SM_SmcOpenConnection=no
14488 fi
14489
14490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14491 conftest$ac_exeext conftest.$ac_ext
14492 LIBS=$ac_check_lib_save_LIBS
14493 fi
14494 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14495 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14496 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14497 HAVE_X_SM=yes
14498 fi
14499
14500 fi
14501
14502
14503
14504 if test "${HAVE_X_SM}" = "yes"; then
14505
14506 cat >>confdefs.h <<\_ACEOF
14507 #define HAVE_X_SM 1
14508 _ACEOF
14509
14510 case "$LIBS" in
14511 *-lSM*) ;;
14512 *) LIBS="-lSM -lICE $LIBS" ;;
14513 esac
14514 fi
14515 fi
14516
14517 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14518 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14519 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14520 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14522 else
14523 cat >conftest.$ac_ext <<_ACEOF
14524 /* confdefs.h. */
14525 _ACEOF
14526 cat confdefs.h >>conftest.$ac_ext
14527 cat >>conftest.$ac_ext <<_ACEOF
14528 /* end confdefs.h. */
14529 #include <netdb.h>
14530 int
14531 main ()
14532 {
14533 return h_errno;
14534 ;
14535 return 0;
14536 }
14537 _ACEOF
14538 rm -f conftest.$ac_objext conftest$ac_exeext
14539 if { (ac_try="$ac_link"
14540 case "(($ac_try" in
14541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542 *) ac_try_echo=$ac_try;;
14543 esac
14544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14545 (eval "$ac_link") 2>conftest.er1
14546 ac_status=$?
14547 grep -v '^ *+' conftest.er1 >conftest.err
14548 rm -f conftest.er1
14549 cat conftest.err >&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); } && {
14552 test -z "$ac_c_werror_flag" ||
14553 test ! -s conftest.err
14554 } && test -s conftest$ac_exeext &&
14555 $as_test_x conftest$ac_exeext; then
14556 emacs_cv_netdb_declares_h_errno=yes
14557 else
14558 echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14560
14561 emacs_cv_netdb_declares_h_errno=no
14562 fi
14563
14564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14565 conftest$ac_exeext conftest.$ac_ext
14566 fi
14567 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14568 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14569 if test $emacs_cv_netdb_declares_h_errno = yes; then
14570
14571 cat >>confdefs.h <<\_ACEOF
14572 #define HAVE_H_ERRNO 1
14573 _ACEOF
14574
14575 fi
14576
14577 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14578 # for constant arguments. Useless!
14579 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14580 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14581 if test "${ac_cv_working_alloca_h+set}" = set; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14583 else
14584 cat >conftest.$ac_ext <<_ACEOF
14585 /* confdefs.h. */
14586 _ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h. */
14590 #include <alloca.h>
14591 int
14592 main ()
14593 {
14594 char *p = (char *) alloca (2 * sizeof (int));
14595 if (p) return 0;
14596 ;
14597 return 0;
14598 }
14599 _ACEOF
14600 rm -f conftest.$ac_objext conftest$ac_exeext
14601 if { (ac_try="$ac_link"
14602 case "(($ac_try" in
14603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14604 *) ac_try_echo=$ac_try;;
14605 esac
14606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14607 (eval "$ac_link") 2>conftest.er1
14608 ac_status=$?
14609 grep -v '^ *+' conftest.er1 >conftest.err
14610 rm -f conftest.er1
14611 cat conftest.err >&5
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); } && {
14614 test -z "$ac_c_werror_flag" ||
14615 test ! -s conftest.err
14616 } && test -s conftest$ac_exeext &&
14617 $as_test_x conftest$ac_exeext; then
14618 ac_cv_working_alloca_h=yes
14619 else
14620 echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.$ac_ext >&5
14622
14623 ac_cv_working_alloca_h=no
14624 fi
14625
14626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14627 conftest$ac_exeext conftest.$ac_ext
14628 fi
14629 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14630 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14631 if test $ac_cv_working_alloca_h = yes; then
14632
14633 cat >>confdefs.h <<\_ACEOF
14634 #define HAVE_ALLOCA_H 1
14635 _ACEOF
14636
14637 fi
14638
14639 { echo "$as_me:$LINENO: checking for alloca" >&5
14640 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14641 if test "${ac_cv_func_alloca_works+set}" = set; then
14642 echo $ECHO_N "(cached) $ECHO_C" >&6
14643 else
14644 cat >conftest.$ac_ext <<_ACEOF
14645 /* confdefs.h. */
14646 _ACEOF
14647 cat confdefs.h >>conftest.$ac_ext
14648 cat >>conftest.$ac_ext <<_ACEOF
14649 /* end confdefs.h. */
14650 #ifdef __GNUC__
14651 # define alloca __builtin_alloca
14652 #else
14653 # ifdef _MSC_VER
14654 # include <malloc.h>
14655 # define alloca _alloca
14656 # else
14657 # ifdef HAVE_ALLOCA_H
14658 # include <alloca.h>
14659 # else
14660 # ifdef _AIX
14661 #pragma alloca
14662 # else
14663 # ifndef alloca /* predefined by HP cc +Olibcalls */
14664 char *alloca ();
14665 # endif
14666 # endif
14667 # endif
14668 # endif
14669 #endif
14670
14671 int
14672 main ()
14673 {
14674 char *p = (char *) alloca (1);
14675 if (p) return 0;
14676 ;
14677 return 0;
14678 }
14679 _ACEOF
14680 rm -f conftest.$ac_objext conftest$ac_exeext
14681 if { (ac_try="$ac_link"
14682 case "(($ac_try" in
14683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684 *) ac_try_echo=$ac_try;;
14685 esac
14686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14687 (eval "$ac_link") 2>conftest.er1
14688 ac_status=$?
14689 grep -v '^ *+' conftest.er1 >conftest.err
14690 rm -f conftest.er1
14691 cat conftest.err >&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); } && {
14694 test -z "$ac_c_werror_flag" ||
14695 test ! -s conftest.err
14696 } && test -s conftest$ac_exeext &&
14697 $as_test_x conftest$ac_exeext; then
14698 ac_cv_func_alloca_works=yes
14699 else
14700 echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14702
14703 ac_cv_func_alloca_works=no
14704 fi
14705
14706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14707 conftest$ac_exeext conftest.$ac_ext
14708 fi
14709 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14710 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14711
14712 if test $ac_cv_func_alloca_works = yes; then
14713
14714 cat >>confdefs.h <<\_ACEOF
14715 #define HAVE_ALLOCA 1
14716 _ACEOF
14717
14718 else
14719 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14720 # that cause trouble. Some versions do not even contain alloca or
14721 # contain a buggy version. If you still want to use their alloca,
14722 # use ar to extract alloca.o from them instead of compiling alloca.c.
14723
14724 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14725
14726 cat >>confdefs.h <<\_ACEOF
14727 #define C_ALLOCA 1
14728 _ACEOF
14729
14730
14731 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14732 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14733 if test "${ac_cv_os_cray+set}" = set; then
14734 echo $ECHO_N "(cached) $ECHO_C" >&6
14735 else
14736 cat >conftest.$ac_ext <<_ACEOF
14737 /* confdefs.h. */
14738 _ACEOF
14739 cat confdefs.h >>conftest.$ac_ext
14740 cat >>conftest.$ac_ext <<_ACEOF
14741 /* end confdefs.h. */
14742 #if defined CRAY && ! defined CRAY2
14743 webecray
14744 #else
14745 wenotbecray
14746 #endif
14747
14748 _ACEOF
14749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14750 $EGREP "webecray" >/dev/null 2>&1; then
14751 ac_cv_os_cray=yes
14752 else
14753 ac_cv_os_cray=no
14754 fi
14755 rm -f conftest*
14756
14757 fi
14758 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14759 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14760 if test $ac_cv_os_cray = yes; then
14761 for ac_func in _getb67 GETB67 getb67; do
14762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14763 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14765 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14766 echo $ECHO_N "(cached) $ECHO_C" >&6
14767 else
14768 cat >conftest.$ac_ext <<_ACEOF
14769 /* confdefs.h. */
14770 _ACEOF
14771 cat confdefs.h >>conftest.$ac_ext
14772 cat >>conftest.$ac_ext <<_ACEOF
14773 /* end confdefs.h. */
14774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14776 #define $ac_func innocuous_$ac_func
14777
14778 /* System header to define __stub macros and hopefully few prototypes,
14779 which can conflict with char $ac_func (); below.
14780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14781 <limits.h> exists even on freestanding compilers. */
14782
14783 #ifdef __STDC__
14784 # include <limits.h>
14785 #else
14786 # include <assert.h>
14787 #endif
14788
14789 #undef $ac_func
14790
14791 /* Override any GCC internal prototype to avoid an error.
14792 Use char because int might match the return type of a GCC
14793 builtin and then its argument prototype would still apply. */
14794 #ifdef __cplusplus
14795 extern "C"
14796 #endif
14797 char $ac_func ();
14798 /* The GNU C library defines this for functions which it implements
14799 to always fail with ENOSYS. Some functions are actually named
14800 something starting with __ and the normal name is an alias. */
14801 #if defined __stub_$ac_func || defined __stub___$ac_func
14802 choke me
14803 #endif
14804
14805 int
14806 main ()
14807 {
14808 return $ac_func ();
14809 ;
14810 return 0;
14811 }
14812 _ACEOF
14813 rm -f conftest.$ac_objext conftest$ac_exeext
14814 if { (ac_try="$ac_link"
14815 case "(($ac_try" in
14816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817 *) ac_try_echo=$ac_try;;
14818 esac
14819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14820 (eval "$ac_link") 2>conftest.er1
14821 ac_status=$?
14822 grep -v '^ *+' conftest.er1 >conftest.err
14823 rm -f conftest.er1
14824 cat conftest.err >&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); } && {
14827 test -z "$ac_c_werror_flag" ||
14828 test ! -s conftest.err
14829 } && test -s conftest$ac_exeext &&
14830 $as_test_x conftest$ac_exeext; then
14831 eval "$as_ac_var=yes"
14832 else
14833 echo "$as_me: failed program was:" >&5
14834 sed 's/^/| /' conftest.$ac_ext >&5
14835
14836 eval "$as_ac_var=no"
14837 fi
14838
14839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14840 conftest$ac_exeext conftest.$ac_ext
14841 fi
14842 ac_res=`eval echo '${'$as_ac_var'}'`
14843 { echo "$as_me:$LINENO: result: $ac_res" >&5
14844 echo "${ECHO_T}$ac_res" >&6; }
14845 if test `eval echo '${'$as_ac_var'}'` = yes; then
14846
14847 cat >>confdefs.h <<_ACEOF
14848 #define CRAY_STACKSEG_END $ac_func
14849 _ACEOF
14850
14851 break
14852 fi
14853
14854 done
14855 fi
14856
14857 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14858 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14859 if test "${ac_cv_c_stack_direction+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14861 else
14862 if test "$cross_compiling" = yes; then
14863 ac_cv_c_stack_direction=0
14864 else
14865 cat >conftest.$ac_ext <<_ACEOF
14866 /* confdefs.h. */
14867 _ACEOF
14868 cat confdefs.h >>conftest.$ac_ext
14869 cat >>conftest.$ac_ext <<_ACEOF
14870 /* end confdefs.h. */
14871 $ac_includes_default
14872 int
14873 find_stack_direction ()
14874 {
14875 static char *addr = 0;
14876 auto char dummy;
14877 if (addr == 0)
14878 {
14879 addr = &dummy;
14880 return find_stack_direction ();
14881 }
14882 else
14883 return (&dummy > addr) ? 1 : -1;
14884 }
14885
14886 int
14887 main ()
14888 {
14889 return find_stack_direction () < 0;
14890 }
14891 _ACEOF
14892 rm -f conftest$ac_exeext
14893 if { (ac_try="$ac_link"
14894 case "(($ac_try" in
14895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896 *) ac_try_echo=$ac_try;;
14897 esac
14898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14899 (eval "$ac_link") 2>&5
14900 ac_status=$?
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14903 { (case "(($ac_try" in
14904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14905 *) ac_try_echo=$ac_try;;
14906 esac
14907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14908 (eval "$ac_try") 2>&5
14909 ac_status=$?
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; }; then
14912 ac_cv_c_stack_direction=1
14913 else
14914 echo "$as_me: program exited with status $ac_status" >&5
14915 echo "$as_me: failed program was:" >&5
14916 sed 's/^/| /' conftest.$ac_ext >&5
14917
14918 ( exit $ac_status )
14919 ac_cv_c_stack_direction=-1
14920 fi
14921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14922 fi
14923
14924
14925 fi
14926 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14927 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14928
14929 cat >>confdefs.h <<_ACEOF
14930 #define STACK_DIRECTION $ac_cv_c_stack_direction
14931 _ACEOF
14932
14933
14934 fi
14935
14936
14937 # fmod, logb, and frexp are found in -lm on most systems.
14938 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14939
14940 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14941 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14942 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14943 echo $ECHO_N "(cached) $ECHO_C" >&6
14944 else
14945 ac_check_lib_save_LIBS=$LIBS
14946 LIBS="-lm $LIBS"
14947 cat >conftest.$ac_ext <<_ACEOF
14948 /* confdefs.h. */
14949 _ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h. */
14953
14954 /* Override any GCC internal prototype to avoid an error.
14955 Use char because int might match the return type of a GCC
14956 builtin and then its argument prototype would still apply. */
14957 #ifdef __cplusplus
14958 extern "C"
14959 #endif
14960 char sqrt ();
14961 int
14962 main ()
14963 {
14964 return sqrt ();
14965 ;
14966 return 0;
14967 }
14968 _ACEOF
14969 rm -f conftest.$ac_objext conftest$ac_exeext
14970 if { (ac_try="$ac_link"
14971 case "(($ac_try" in
14972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14973 *) ac_try_echo=$ac_try;;
14974 esac
14975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14976 (eval "$ac_link") 2>conftest.er1
14977 ac_status=$?
14978 grep -v '^ *+' conftest.er1 >conftest.err
14979 rm -f conftest.er1
14980 cat conftest.err >&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); } && {
14983 test -z "$ac_c_werror_flag" ||
14984 test ! -s conftest.err
14985 } && test -s conftest$ac_exeext &&
14986 $as_test_x conftest$ac_exeext; then
14987 ac_cv_lib_m_sqrt=yes
14988 else
14989 echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14991
14992 ac_cv_lib_m_sqrt=no
14993 fi
14994
14995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14996 conftest$ac_exeext conftest.$ac_ext
14997 LIBS=$ac_check_lib_save_LIBS
14998 fi
14999 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15000 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15001 if test $ac_cv_lib_m_sqrt = yes; then
15002 cat >>confdefs.h <<_ACEOF
15003 #define HAVE_LIBM 1
15004 _ACEOF
15005
15006 LIBS="-lm $LIBS"
15007
15008 fi
15009
15010
15011 # Check for mail-locking functions in a "mail" library. Probably this should
15012 # have the same check as for liblockfile below.
15013
15014 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15015 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15016 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15017 echo $ECHO_N "(cached) $ECHO_C" >&6
15018 else
15019 ac_check_lib_save_LIBS=$LIBS
15020 LIBS="-lmail $LIBS"
15021 cat >conftest.$ac_ext <<_ACEOF
15022 /* confdefs.h. */
15023 _ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h. */
15027
15028 /* Override any GCC internal prototype to avoid an error.
15029 Use char because int might match the return type of a GCC
15030 builtin and then its argument prototype would still apply. */
15031 #ifdef __cplusplus
15032 extern "C"
15033 #endif
15034 char maillock ();
15035 int
15036 main ()
15037 {
15038 return maillock ();
15039 ;
15040 return 0;
15041 }
15042 _ACEOF
15043 rm -f conftest.$ac_objext conftest$ac_exeext
15044 if { (ac_try="$ac_link"
15045 case "(($ac_try" in
15046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047 *) ac_try_echo=$ac_try;;
15048 esac
15049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15050 (eval "$ac_link") 2>conftest.er1
15051 ac_status=$?
15052 grep -v '^ *+' conftest.er1 >conftest.err
15053 rm -f conftest.er1
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } && {
15057 test -z "$ac_c_werror_flag" ||
15058 test ! -s conftest.err
15059 } && test -s conftest$ac_exeext &&
15060 $as_test_x conftest$ac_exeext; then
15061 ac_cv_lib_mail_maillock=yes
15062 else
15063 echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15065
15066 ac_cv_lib_mail_maillock=no
15067 fi
15068
15069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15070 conftest$ac_exeext conftest.$ac_ext
15071 LIBS=$ac_check_lib_save_LIBS
15072 fi
15073 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15074 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15075 if test $ac_cv_lib_mail_maillock = yes; then
15076 cat >>confdefs.h <<_ACEOF
15077 #define HAVE_LIBMAIL 1
15078 _ACEOF
15079
15080 LIBS="-lmail $LIBS"
15081
15082 fi
15083
15084
15085 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15086 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15087 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15088 echo $ECHO_N "(cached) $ECHO_C" >&6
15089 else
15090 ac_check_lib_save_LIBS=$LIBS
15091 LIBS="-llockfile $LIBS"
15092 cat >conftest.$ac_ext <<_ACEOF
15093 /* confdefs.h. */
15094 _ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15098
15099 /* Override any GCC internal prototype to avoid an error.
15100 Use char because int might match the return type of a GCC
15101 builtin and then its argument prototype would still apply. */
15102 #ifdef __cplusplus
15103 extern "C"
15104 #endif
15105 char maillock ();
15106 int
15107 main ()
15108 {
15109 return maillock ();
15110 ;
15111 return 0;
15112 }
15113 _ACEOF
15114 rm -f conftest.$ac_objext conftest$ac_exeext
15115 if { (ac_try="$ac_link"
15116 case "(($ac_try" in
15117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15118 *) ac_try_echo=$ac_try;;
15119 esac
15120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15121 (eval "$ac_link") 2>conftest.er1
15122 ac_status=$?
15123 grep -v '^ *+' conftest.er1 >conftest.err
15124 rm -f conftest.er1
15125 cat conftest.err >&5
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); } && {
15128 test -z "$ac_c_werror_flag" ||
15129 test ! -s conftest.err
15130 } && test -s conftest$ac_exeext &&
15131 $as_test_x conftest$ac_exeext; then
15132 ac_cv_lib_lockfile_maillock=yes
15133 else
15134 echo "$as_me: failed program was:" >&5
15135 sed 's/^/| /' conftest.$ac_ext >&5
15136
15137 ac_cv_lib_lockfile_maillock=no
15138 fi
15139
15140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15141 conftest$ac_exeext conftest.$ac_ext
15142 LIBS=$ac_check_lib_save_LIBS
15143 fi
15144 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15145 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15146 if test $ac_cv_lib_lockfile_maillock = yes; then
15147 cat >>confdefs.h <<_ACEOF
15148 #define HAVE_LIBLOCKFILE 1
15149 _ACEOF
15150
15151 LIBS="-llockfile $LIBS"
15152
15153 fi
15154
15155 # If we have the shared liblockfile, assume we must use it for mail
15156 # locking (e.g. Debian). If we couldn't link against liblockfile
15157 # (no liblockfile.a installed), ensure that we don't need to.
15158 if test "$ac_cv_lib_lockfile_maillock" = no; then
15159 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15160 set dummy liblockfile.so; ac_word=$2
15161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15163 if test "${ac_cv_prog_liblockfile+set}" = set; then
15164 echo $ECHO_N "(cached) $ECHO_C" >&6
15165 else
15166 if test -n "$liblockfile"; then
15167 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15168 else
15169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15170 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15171 for as_dir in $as_dummy
15172 do
15173 IFS=$as_save_IFS
15174 test -z "$as_dir" && as_dir=.
15175 for ac_exec_ext in '' $ac_executable_extensions; do
15176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15177 ac_cv_prog_liblockfile="yes"
15178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15179 break 2
15180 fi
15181 done
15182 done
15183 IFS=$as_save_IFS
15184
15185 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15186 fi
15187 fi
15188 liblockfile=$ac_cv_prog_liblockfile
15189 if test -n "$liblockfile"; then
15190 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15191 echo "${ECHO_T}$liblockfile" >&6; }
15192 else
15193 { echo "$as_me:$LINENO: result: no" >&5
15194 echo "${ECHO_T}no" >&6; }
15195 fi
15196
15197
15198 if test $ac_cv_prog_liblockfile = yes; then
15199 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15200 This probably means that movemail could lose mail.
15201 There may be a \`development' package to install containing liblockfile." >&5
15202 echo "$as_me: error: Shared liblockfile found but can't link against it.
15203 This probably means that movemail could lose mail.
15204 There may be a \`development' package to install containing liblockfile." >&2;}
15205 { (exit 1); exit 1; }; }
15206 else :
15207 fi
15208 fi
15209
15210 for ac_func in touchlock
15211 do
15212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15213 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15215 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15216 echo $ECHO_N "(cached) $ECHO_C" >&6
15217 else
15218 cat >conftest.$ac_ext <<_ACEOF
15219 /* confdefs.h. */
15220 _ACEOF
15221 cat confdefs.h >>conftest.$ac_ext
15222 cat >>conftest.$ac_ext <<_ACEOF
15223 /* end confdefs.h. */
15224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15226 #define $ac_func innocuous_$ac_func
15227
15228 /* System header to define __stub macros and hopefully few prototypes,
15229 which can conflict with char $ac_func (); below.
15230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15231 <limits.h> exists even on freestanding compilers. */
15232
15233 #ifdef __STDC__
15234 # include <limits.h>
15235 #else
15236 # include <assert.h>
15237 #endif
15238
15239 #undef $ac_func
15240
15241 /* Override any GCC internal prototype to avoid an error.
15242 Use char because int might match the return type of a GCC
15243 builtin and then its argument prototype would still apply. */
15244 #ifdef __cplusplus
15245 extern "C"
15246 #endif
15247 char $ac_func ();
15248 /* The GNU C library defines this for functions which it implements
15249 to always fail with ENOSYS. Some functions are actually named
15250 something starting with __ and the normal name is an alias. */
15251 #if defined __stub_$ac_func || defined __stub___$ac_func
15252 choke me
15253 #endif
15254
15255 int
15256 main ()
15257 {
15258 return $ac_func ();
15259 ;
15260 return 0;
15261 }
15262 _ACEOF
15263 rm -f conftest.$ac_objext conftest$ac_exeext
15264 if { (ac_try="$ac_link"
15265 case "(($ac_try" in
15266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267 *) ac_try_echo=$ac_try;;
15268 esac
15269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270 (eval "$ac_link") 2>conftest.er1
15271 ac_status=$?
15272 grep -v '^ *+' conftest.er1 >conftest.err
15273 rm -f conftest.er1
15274 cat conftest.err >&5
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); } && {
15277 test -z "$ac_c_werror_flag" ||
15278 test ! -s conftest.err
15279 } && test -s conftest$ac_exeext &&
15280 $as_test_x conftest$ac_exeext; then
15281 eval "$as_ac_var=yes"
15282 else
15283 echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15285
15286 eval "$as_ac_var=no"
15287 fi
15288
15289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15290 conftest$ac_exeext conftest.$ac_ext
15291 fi
15292 ac_res=`eval echo '${'$as_ac_var'}'`
15293 { echo "$as_me:$LINENO: result: $ac_res" >&5
15294 echo "${ECHO_T}$ac_res" >&6; }
15295 if test `eval echo '${'$as_ac_var'}'` = yes; then
15296 cat >>confdefs.h <<_ACEOF
15297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15298 _ACEOF
15299
15300 fi
15301 done
15302
15303
15304 for ac_header in maillock.h
15305 do
15306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15312 fi
15313 ac_res=`eval echo '${'$as_ac_Header'}'`
15314 { echo "$as_me:$LINENO: result: $ac_res" >&5
15315 echo "${ECHO_T}$ac_res" >&6; }
15316 else
15317 # Is the header compilable?
15318 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15320 cat >conftest.$ac_ext <<_ACEOF
15321 /* confdefs.h. */
15322 _ACEOF
15323 cat confdefs.h >>conftest.$ac_ext
15324 cat >>conftest.$ac_ext <<_ACEOF
15325 /* end confdefs.h. */
15326 $ac_includes_default
15327 #include <$ac_header>
15328 _ACEOF
15329 rm -f conftest.$ac_objext
15330 if { (ac_try="$ac_compile"
15331 case "(($ac_try" in
15332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333 *) ac_try_echo=$ac_try;;
15334 esac
15335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15336 (eval "$ac_compile") 2>conftest.er1
15337 ac_status=$?
15338 grep -v '^ *+' conftest.er1 >conftest.err
15339 rm -f conftest.er1
15340 cat conftest.err >&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } && {
15343 test -z "$ac_c_werror_flag" ||
15344 test ! -s conftest.err
15345 } && test -s conftest.$ac_objext; then
15346 ac_header_compiler=yes
15347 else
15348 echo "$as_me: failed program was:" >&5
15349 sed 's/^/| /' conftest.$ac_ext >&5
15350
15351 ac_header_compiler=no
15352 fi
15353
15354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15355 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15356 echo "${ECHO_T}$ac_header_compiler" >&6; }
15357
15358 # Is the header present?
15359 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15361 cat >conftest.$ac_ext <<_ACEOF
15362 /* confdefs.h. */
15363 _ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h. */
15367 #include <$ac_header>
15368 _ACEOF
15369 if { (ac_try="$ac_cpp conftest.$ac_ext"
15370 case "(($ac_try" in
15371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15372 *) ac_try_echo=$ac_try;;
15373 esac
15374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15376 ac_status=$?
15377 grep -v '^ *+' conftest.er1 >conftest.err
15378 rm -f conftest.er1
15379 cat conftest.err >&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); } >/dev/null && {
15382 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15383 test ! -s conftest.err
15384 }; then
15385 ac_header_preproc=yes
15386 else
15387 echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15389
15390 ac_header_preproc=no
15391 fi
15392
15393 rm -f conftest.err conftest.$ac_ext
15394 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15395 echo "${ECHO_T}$ac_header_preproc" >&6; }
15396
15397 # So? What about this header?
15398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15399 yes:no: )
15400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15404 ac_header_preproc=yes
15405 ;;
15406 no:yes:* )
15407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15411 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15412 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15413 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15414 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15417 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15418 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15419
15420 ;;
15421 esac
15422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15425 echo $ECHO_N "(cached) $ECHO_C" >&6
15426 else
15427 eval "$as_ac_Header=\$ac_header_preproc"
15428 fi
15429 ac_res=`eval echo '${'$as_ac_Header'}'`
15430 { echo "$as_me:$LINENO: result: $ac_res" >&5
15431 echo "${ECHO_T}$ac_res" >&6; }
15432
15433 fi
15434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15435 cat >>confdefs.h <<_ACEOF
15436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15437 _ACEOF
15438
15439 fi
15440
15441 done
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
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 for ac_func in gethostname getdomainname dup2 \
15514 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15515 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15516 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15517 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15518 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15519 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15520 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15521 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15522 do
15523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15524 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15526 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15527 echo $ECHO_N "(cached) $ECHO_C" >&6
15528 else
15529 cat >conftest.$ac_ext <<_ACEOF
15530 /* confdefs.h. */
15531 _ACEOF
15532 cat confdefs.h >>conftest.$ac_ext
15533 cat >>conftest.$ac_ext <<_ACEOF
15534 /* end confdefs.h. */
15535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15537 #define $ac_func innocuous_$ac_func
15538
15539 /* System header to define __stub macros and hopefully few prototypes,
15540 which can conflict with char $ac_func (); below.
15541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15542 <limits.h> exists even on freestanding compilers. */
15543
15544 #ifdef __STDC__
15545 # include <limits.h>
15546 #else
15547 # include <assert.h>
15548 #endif
15549
15550 #undef $ac_func
15551
15552 /* Override any GCC internal prototype to avoid an error.
15553 Use char because int might match the return type of a GCC
15554 builtin and then its argument prototype would still apply. */
15555 #ifdef __cplusplus
15556 extern "C"
15557 #endif
15558 char $ac_func ();
15559 /* The GNU C library defines this for functions which it implements
15560 to always fail with ENOSYS. Some functions are actually named
15561 something starting with __ and the normal name is an alias. */
15562 #if defined __stub_$ac_func || defined __stub___$ac_func
15563 choke me
15564 #endif
15565
15566 int
15567 main ()
15568 {
15569 return $ac_func ();
15570 ;
15571 return 0;
15572 }
15573 _ACEOF
15574 rm -f conftest.$ac_objext conftest$ac_exeext
15575 if { (ac_try="$ac_link"
15576 case "(($ac_try" in
15577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578 *) ac_try_echo=$ac_try;;
15579 esac
15580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581 (eval "$ac_link") 2>conftest.er1
15582 ac_status=$?
15583 grep -v '^ *+' conftest.er1 >conftest.err
15584 rm -f conftest.er1
15585 cat conftest.err >&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); } && {
15588 test -z "$ac_c_werror_flag" ||
15589 test ! -s conftest.err
15590 } && test -s conftest$ac_exeext &&
15591 $as_test_x conftest$ac_exeext; then
15592 eval "$as_ac_var=yes"
15593 else
15594 echo "$as_me: failed program was:" >&5
15595 sed 's/^/| /' conftest.$ac_ext >&5
15596
15597 eval "$as_ac_var=no"
15598 fi
15599
15600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15601 conftest$ac_exeext conftest.$ac_ext
15602 fi
15603 ac_res=`eval echo '${'$as_ac_var'}'`
15604 { echo "$as_me:$LINENO: result: $ac_res" >&5
15605 echo "${ECHO_T}$ac_res" >&6; }
15606 if test `eval echo '${'$as_ac_var'}'` = yes; then
15607 cat >>confdefs.h <<_ACEOF
15608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15609 _ACEOF
15610
15611 fi
15612 done
15613
15614
15615
15616 for ac_header in sys/un.h
15617 do
15618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15623 echo $ECHO_N "(cached) $ECHO_C" >&6
15624 fi
15625 ac_res=`eval echo '${'$as_ac_Header'}'`
15626 { echo "$as_me:$LINENO: result: $ac_res" >&5
15627 echo "${ECHO_T}$ac_res" >&6; }
15628 else
15629 # Is the header compilable?
15630 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15632 cat >conftest.$ac_ext <<_ACEOF
15633 /* confdefs.h. */
15634 _ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h. */
15638 $ac_includes_default
15639 #include <$ac_header>
15640 _ACEOF
15641 rm -f conftest.$ac_objext
15642 if { (ac_try="$ac_compile"
15643 case "(($ac_try" in
15644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645 *) ac_try_echo=$ac_try;;
15646 esac
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648 (eval "$ac_compile") 2>conftest.er1
15649 ac_status=$?
15650 grep -v '^ *+' conftest.er1 >conftest.err
15651 rm -f conftest.er1
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } && {
15655 test -z "$ac_c_werror_flag" ||
15656 test ! -s conftest.err
15657 } && test -s conftest.$ac_objext; then
15658 ac_header_compiler=yes
15659 else
15660 echo "$as_me: failed program was:" >&5
15661 sed 's/^/| /' conftest.$ac_ext >&5
15662
15663 ac_header_compiler=no
15664 fi
15665
15666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15668 echo "${ECHO_T}$ac_header_compiler" >&6; }
15669
15670 # Is the header present?
15671 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15673 cat >conftest.$ac_ext <<_ACEOF
15674 /* confdefs.h. */
15675 _ACEOF
15676 cat confdefs.h >>conftest.$ac_ext
15677 cat >>conftest.$ac_ext <<_ACEOF
15678 /* end confdefs.h. */
15679 #include <$ac_header>
15680 _ACEOF
15681 if { (ac_try="$ac_cpp conftest.$ac_ext"
15682 case "(($ac_try" in
15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684 *) ac_try_echo=$ac_try;;
15685 esac
15686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15688 ac_status=$?
15689 grep -v '^ *+' conftest.er1 >conftest.err
15690 rm -f conftest.er1
15691 cat conftest.err >&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } >/dev/null && {
15694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15695 test ! -s conftest.err
15696 }; then
15697 ac_header_preproc=yes
15698 else
15699 echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15701
15702 ac_header_preproc=no
15703 fi
15704
15705 rm -f conftest.err conftest.$ac_ext
15706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15707 echo "${ECHO_T}$ac_header_preproc" >&6; }
15708
15709 # So? What about this header?
15710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15711 yes:no: )
15712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15716 ac_header_preproc=yes
15717 ;;
15718 no:yes:* )
15719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15726 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15731
15732 ;;
15733 esac
15734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15737 echo $ECHO_N "(cached) $ECHO_C" >&6
15738 else
15739 eval "$as_ac_Header=\$ac_header_preproc"
15740 fi
15741 ac_res=`eval echo '${'$as_ac_Header'}'`
15742 { echo "$as_me:$LINENO: result: $ac_res" >&5
15743 echo "${ECHO_T}$ac_res" >&6; }
15744
15745 fi
15746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15747 cat >>confdefs.h <<_ACEOF
15748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15749 _ACEOF
15750
15751 fi
15752
15753 done
15754
15755
15756
15757
15758
15759
15760 for ac_header in $ac_header_list
15761 do
15762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15767 echo $ECHO_N "(cached) $ECHO_C" >&6
15768 fi
15769 ac_res=`eval echo '${'$as_ac_Header'}'`
15770 { echo "$as_me:$LINENO: result: $ac_res" >&5
15771 echo "${ECHO_T}$ac_res" >&6; }
15772 else
15773 # Is the header compilable?
15774 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15776 cat >conftest.$ac_ext <<_ACEOF
15777 /* confdefs.h. */
15778 _ACEOF
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h. */
15782 $ac_includes_default
15783 #include <$ac_header>
15784 _ACEOF
15785 rm -f conftest.$ac_objext
15786 if { (ac_try="$ac_compile"
15787 case "(($ac_try" in
15788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15789 *) ac_try_echo=$ac_try;;
15790 esac
15791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15792 (eval "$ac_compile") 2>conftest.er1
15793 ac_status=$?
15794 grep -v '^ *+' conftest.er1 >conftest.err
15795 rm -f conftest.er1
15796 cat conftest.err >&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); } && {
15799 test -z "$ac_c_werror_flag" ||
15800 test ! -s conftest.err
15801 } && test -s conftest.$ac_objext; then
15802 ac_header_compiler=yes
15803 else
15804 echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15806
15807 ac_header_compiler=no
15808 fi
15809
15810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15812 echo "${ECHO_T}$ac_header_compiler" >&6; }
15813
15814 # Is the header present?
15815 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15817 cat >conftest.$ac_ext <<_ACEOF
15818 /* confdefs.h. */
15819 _ACEOF
15820 cat confdefs.h >>conftest.$ac_ext
15821 cat >>conftest.$ac_ext <<_ACEOF
15822 /* end confdefs.h. */
15823 #include <$ac_header>
15824 _ACEOF
15825 if { (ac_try="$ac_cpp conftest.$ac_ext"
15826 case "(($ac_try" in
15827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828 *) ac_try_echo=$ac_try;;
15829 esac
15830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15832 ac_status=$?
15833 grep -v '^ *+' conftest.er1 >conftest.err
15834 rm -f conftest.er1
15835 cat conftest.err >&5
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); } >/dev/null && {
15838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15839 test ! -s conftest.err
15840 }; then
15841 ac_header_preproc=yes
15842 else
15843 echo "$as_me: failed program was:" >&5
15844 sed 's/^/| /' conftest.$ac_ext >&5
15845
15846 ac_header_preproc=no
15847 fi
15848
15849 rm -f conftest.err conftest.$ac_ext
15850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15851 echo "${ECHO_T}$ac_header_preproc" >&6; }
15852
15853 # So? What about this header?
15854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15855 yes:no: )
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15860 ac_header_preproc=yes
15861 ;;
15862 no:yes:* )
15863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15870 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15875
15876 ;;
15877 esac
15878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15882 else
15883 eval "$as_ac_Header=\$ac_header_preproc"
15884 fi
15885 ac_res=`eval echo '${'$as_ac_Header'}'`
15886 { echo "$as_me:$LINENO: result: $ac_res" >&5
15887 echo "${ECHO_T}$ac_res" >&6; }
15888
15889 fi
15890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15891 cat >>confdefs.h <<_ACEOF
15892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15893 _ACEOF
15894
15895 fi
15896
15897 done
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907 for ac_func in $ac_func_list
15908 do
15909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15910 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15912 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15913 echo $ECHO_N "(cached) $ECHO_C" >&6
15914 else
15915 cat >conftest.$ac_ext <<_ACEOF
15916 /* confdefs.h. */
15917 _ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h. */
15921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15923 #define $ac_func innocuous_$ac_func
15924
15925 /* System header to define __stub macros and hopefully few prototypes,
15926 which can conflict with char $ac_func (); below.
15927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15928 <limits.h> exists even on freestanding compilers. */
15929
15930 #ifdef __STDC__
15931 # include <limits.h>
15932 #else
15933 # include <assert.h>
15934 #endif
15935
15936 #undef $ac_func
15937
15938 /* Override any GCC internal prototype to avoid an error.
15939 Use char because int might match the return type of a GCC
15940 builtin and then its argument prototype would still apply. */
15941 #ifdef __cplusplus
15942 extern "C"
15943 #endif
15944 char $ac_func ();
15945 /* The GNU C library defines this for functions which it implements
15946 to always fail with ENOSYS. Some functions are actually named
15947 something starting with __ and the normal name is an alias. */
15948 #if defined __stub_$ac_func || defined __stub___$ac_func
15949 choke me
15950 #endif
15951
15952 int
15953 main ()
15954 {
15955 return $ac_func ();
15956 ;
15957 return 0;
15958 }
15959 _ACEOF
15960 rm -f conftest.$ac_objext conftest$ac_exeext
15961 if { (ac_try="$ac_link"
15962 case "(($ac_try" in
15963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964 *) ac_try_echo=$ac_try;;
15965 esac
15966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15967 (eval "$ac_link") 2>conftest.er1
15968 ac_status=$?
15969 grep -v '^ *+' conftest.er1 >conftest.err
15970 rm -f conftest.er1
15971 cat conftest.err >&5
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); } && {
15974 test -z "$ac_c_werror_flag" ||
15975 test ! -s conftest.err
15976 } && test -s conftest$ac_exeext &&
15977 $as_test_x conftest$ac_exeext; then
15978 eval "$as_ac_var=yes"
15979 else
15980 echo "$as_me: failed program was:" >&5
15981 sed 's/^/| /' conftest.$ac_ext >&5
15982
15983 eval "$as_ac_var=no"
15984 fi
15985
15986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15987 conftest$ac_exeext conftest.$ac_ext
15988 fi
15989 ac_res=`eval echo '${'$as_ac_var'}'`
15990 { echo "$as_me:$LINENO: result: $ac_res" >&5
15991 echo "${ECHO_T}$ac_res" >&6; }
15992 if test `eval echo '${'$as_ac_var'}'` = yes; then
15993 cat >>confdefs.h <<_ACEOF
15994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15995 _ACEOF
15996
15997 fi
15998 done
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016 { echo "$as_me:$LINENO: checking for working mktime" >&5
16017 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16018 if test "${ac_cv_func_working_mktime+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16020 else
16021 if test "$cross_compiling" = yes; then
16022 ac_cv_func_working_mktime=no
16023 else
16024 cat >conftest.$ac_ext <<_ACEOF
16025 /* confdefs.h. */
16026 _ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h. */
16030 /* Test program from Paul Eggert and Tony Leneis. */
16031 #ifdef TIME_WITH_SYS_TIME
16032 # include <sys/time.h>
16033 # include <time.h>
16034 #else
16035 # ifdef HAVE_SYS_TIME_H
16036 # include <sys/time.h>
16037 # else
16038 # include <time.h>
16039 # endif
16040 #endif
16041
16042 #include <stdlib.h>
16043
16044 #ifdef HAVE_UNISTD_H
16045 # include <unistd.h>
16046 #endif
16047
16048 #ifndef HAVE_ALARM
16049 # define alarm(X) /* empty */
16050 #endif
16051
16052 /* Work around redefinition to rpl_putenv by other config tests. */
16053 #undef putenv
16054
16055 static time_t time_t_max;
16056 static time_t time_t_min;
16057
16058 /* Values we'll use to set the TZ environment variable. */
16059 static char *tz_strings[] = {
16060 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16061 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16062 };
16063 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16064
16065 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16066 Based on a problem report from Andreas Jaeger. */
16067 static int
16068 spring_forward_gap ()
16069 {
16070 /* glibc (up to about 1998-10-07) failed this test. */
16071 struct tm tm;
16072
16073 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16074 instead of "TZ=America/Vancouver" in order to detect the bug even
16075 on systems that don't support the Olson extension, or don't have the
16076 full zoneinfo tables installed. */
16077 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16078
16079 tm.tm_year = 98;
16080 tm.tm_mon = 3;
16081 tm.tm_mday = 5;
16082 tm.tm_hour = 2;
16083 tm.tm_min = 0;
16084 tm.tm_sec = 0;
16085 tm.tm_isdst = -1;
16086 return mktime (&tm) != (time_t) -1;
16087 }
16088
16089 static int
16090 mktime_test1 (now)
16091 time_t now;
16092 {
16093 struct tm *lt;
16094 return ! (lt = localtime (&now)) || mktime (lt) == now;
16095 }
16096
16097 static int
16098 mktime_test (now)
16099 time_t now;
16100 {
16101 return (mktime_test1 (now)
16102 && mktime_test1 ((time_t) (time_t_max - now))
16103 && mktime_test1 ((time_t) (time_t_min + now)));
16104 }
16105
16106 static int
16107 irix_6_4_bug ()
16108 {
16109 /* Based on code from Ariel Faigon. */
16110 struct tm tm;
16111 tm.tm_year = 96;
16112 tm.tm_mon = 3;
16113 tm.tm_mday = 0;
16114 tm.tm_hour = 0;
16115 tm.tm_min = 0;
16116 tm.tm_sec = 0;
16117 tm.tm_isdst = -1;
16118 mktime (&tm);
16119 return tm.tm_mon == 2 && tm.tm_mday == 31;
16120 }
16121
16122 static int
16123 bigtime_test (j)
16124 int j;
16125 {
16126 struct tm tm;
16127 time_t now;
16128 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16129 now = mktime (&tm);
16130 if (now != (time_t) -1)
16131 {
16132 struct tm *lt = localtime (&now);
16133 if (! (lt
16134 && lt->tm_year == tm.tm_year
16135 && lt->tm_mon == tm.tm_mon
16136 && lt->tm_mday == tm.tm_mday
16137 && lt->tm_hour == tm.tm_hour
16138 && lt->tm_min == tm.tm_min
16139 && lt->tm_sec == tm.tm_sec
16140 && lt->tm_yday == tm.tm_yday
16141 && lt->tm_wday == tm.tm_wday
16142 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16143 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16144 return 0;
16145 }
16146 return 1;
16147 }
16148
16149 static int
16150 year_2050_test ()
16151 {
16152 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16153 ignoring leap seconds. */
16154 unsigned long int answer = 2527315200UL;
16155
16156 struct tm tm;
16157 time_t t;
16158 tm.tm_year = 2050 - 1900;
16159 tm.tm_mon = 2 - 1;
16160 tm.tm_mday = 1;
16161 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16162 tm.tm_isdst = -1;
16163
16164 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16165 instead of "TZ=America/Vancouver" in order to detect the bug even
16166 on systems that don't support the Olson extension, or don't have the
16167 full zoneinfo tables installed. */
16168 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16169
16170 t = mktime (&tm);
16171
16172 /* Check that the result is either a failure, or close enough
16173 to the correct answer that we can assume the discrepancy is
16174 due to leap seconds. */
16175 return (t == (time_t) -1
16176 || (0 < t && answer - 120 <= t && t <= answer + 120));
16177 }
16178
16179 int
16180 main ()
16181 {
16182 time_t t, delta;
16183 int i, j;
16184
16185 /* This test makes some buggy mktime implementations loop.
16186 Give up after 60 seconds; a mktime slower than that
16187 isn't worth using anyway. */
16188 alarm (60);
16189
16190 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16191 continue;
16192 time_t_max--;
16193 if ((time_t) -1 < 0)
16194 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16195 continue;
16196 delta = time_t_max / 997; /* a suitable prime number */
16197 for (i = 0; i < N_STRINGS; i++)
16198 {
16199 if (tz_strings[i])
16200 putenv (tz_strings[i]);
16201
16202 for (t = 0; t <= time_t_max - delta; t += delta)
16203 if (! mktime_test (t))
16204 return 1;
16205 if (! (mktime_test ((time_t) 1)
16206 && mktime_test ((time_t) (60 * 60))
16207 && mktime_test ((time_t) (60 * 60 * 24))))
16208 return 1;
16209
16210 for (j = 1; 0 < j; j *= 2)
16211 if (! bigtime_test (j))
16212 return 1;
16213 if (! bigtime_test (j - 1))
16214 return 1;
16215 }
16216 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16217 }
16218 _ACEOF
16219 rm -f conftest$ac_exeext
16220 if { (ac_try="$ac_link"
16221 case "(($ac_try" in
16222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16223 *) ac_try_echo=$ac_try;;
16224 esac
16225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16226 (eval "$ac_link") 2>&5
16227 ac_status=$?
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16230 { (case "(($ac_try" in
16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232 *) ac_try_echo=$ac_try;;
16233 esac
16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235 (eval "$ac_try") 2>&5
16236 ac_status=$?
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; }; then
16239 ac_cv_func_working_mktime=yes
16240 else
16241 echo "$as_me: program exited with status $ac_status" >&5
16242 echo "$as_me: failed program was:" >&5
16243 sed 's/^/| /' conftest.$ac_ext >&5
16244
16245 ( exit $ac_status )
16246 ac_cv_func_working_mktime=no
16247 fi
16248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16249 fi
16250
16251
16252 fi
16253 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16254 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16255 if test $ac_cv_func_working_mktime = no; then
16256 case " $LIBOBJS " in
16257 *" mktime.$ac_objext "* ) ;;
16258 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16259 ;;
16260 esac
16261
16262 fi
16263
16264 if test "$ac_cv_func_working_mktime" = no; then
16265
16266 cat >>confdefs.h <<\_ACEOF
16267 #define BROKEN_MKTIME 1
16268 _ACEOF
16269
16270 fi
16271
16272 ac_have_func=no # yes means we've found a way to get the load average.
16273
16274 # Make sure getloadavg.c is where it belongs, at configure-time.
16275 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16276 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16277 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16278 { (exit 1); exit 1; }; }
16279
16280 ac_save_LIBS=$LIBS
16281
16282 # Check for getloadavg, but be sure not to touch the cache variable.
16283 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16284 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16285 if test "${ac_cv_func_getloadavg+set}" = set; then
16286 echo $ECHO_N "(cached) $ECHO_C" >&6
16287 else
16288 cat >conftest.$ac_ext <<_ACEOF
16289 /* confdefs.h. */
16290 _ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h. */
16294 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16296 #define getloadavg innocuous_getloadavg
16297
16298 /* System header to define __stub macros and hopefully few prototypes,
16299 which can conflict with char getloadavg (); below.
16300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16301 <limits.h> exists even on freestanding compilers. */
16302
16303 #ifdef __STDC__
16304 # include <limits.h>
16305 #else
16306 # include <assert.h>
16307 #endif
16308
16309 #undef getloadavg
16310
16311 /* Override any GCC internal prototype to avoid an error.
16312 Use char because int might match the return type of a GCC
16313 builtin and then its argument prototype would still apply. */
16314 #ifdef __cplusplus
16315 extern "C"
16316 #endif
16317 char getloadavg ();
16318 /* The GNU C library defines this for functions which it implements
16319 to always fail with ENOSYS. Some functions are actually named
16320 something starting with __ and the normal name is an alias. */
16321 #if defined __stub_getloadavg || defined __stub___getloadavg
16322 choke me
16323 #endif
16324
16325 int
16326 main ()
16327 {
16328 return getloadavg ();
16329 ;
16330 return 0;
16331 }
16332 _ACEOF
16333 rm -f conftest.$ac_objext conftest$ac_exeext
16334 if { (ac_try="$ac_link"
16335 case "(($ac_try" in
16336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16337 *) ac_try_echo=$ac_try;;
16338 esac
16339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16340 (eval "$ac_link") 2>conftest.er1
16341 ac_status=$?
16342 grep -v '^ *+' conftest.er1 >conftest.err
16343 rm -f conftest.er1
16344 cat conftest.err >&5
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); } && {
16347 test -z "$ac_c_werror_flag" ||
16348 test ! -s conftest.err
16349 } && test -s conftest$ac_exeext &&
16350 $as_test_x conftest$ac_exeext; then
16351 ac_cv_func_getloadavg=yes
16352 else
16353 echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16355
16356 ac_cv_func_getloadavg=no
16357 fi
16358
16359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16360 conftest$ac_exeext conftest.$ac_ext
16361 fi
16362 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16363 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16364 if test $ac_cv_func_getloadavg = yes; then
16365 exit 0
16366 else
16367 exit 1
16368 fi
16369 ) && ac_have_func=yes
16370
16371 # On HPUX9, an unprivileged user can get load averages through this function.
16372
16373 for ac_func in pstat_getdynamic
16374 do
16375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16376 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16379 echo $ECHO_N "(cached) $ECHO_C" >&6
16380 else
16381 cat >conftest.$ac_ext <<_ACEOF
16382 /* confdefs.h. */
16383 _ACEOF
16384 cat confdefs.h >>conftest.$ac_ext
16385 cat >>conftest.$ac_ext <<_ACEOF
16386 /* end confdefs.h. */
16387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16389 #define $ac_func innocuous_$ac_func
16390
16391 /* System header to define __stub macros and hopefully few prototypes,
16392 which can conflict with char $ac_func (); below.
16393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16394 <limits.h> exists even on freestanding compilers. */
16395
16396 #ifdef __STDC__
16397 # include <limits.h>
16398 #else
16399 # include <assert.h>
16400 #endif
16401
16402 #undef $ac_func
16403
16404 /* Override any GCC internal prototype to avoid an error.
16405 Use char because int might match the return type of a GCC
16406 builtin and then its argument prototype would still apply. */
16407 #ifdef __cplusplus
16408 extern "C"
16409 #endif
16410 char $ac_func ();
16411 /* The GNU C library defines this for functions which it implements
16412 to always fail with ENOSYS. Some functions are actually named
16413 something starting with __ and the normal name is an alias. */
16414 #if defined __stub_$ac_func || defined __stub___$ac_func
16415 choke me
16416 #endif
16417
16418 int
16419 main ()
16420 {
16421 return $ac_func ();
16422 ;
16423 return 0;
16424 }
16425 _ACEOF
16426 rm -f conftest.$ac_objext conftest$ac_exeext
16427 if { (ac_try="$ac_link"
16428 case "(($ac_try" in
16429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430 *) ac_try_echo=$ac_try;;
16431 esac
16432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16433 (eval "$ac_link") 2>conftest.er1
16434 ac_status=$?
16435 grep -v '^ *+' conftest.er1 >conftest.err
16436 rm -f conftest.er1
16437 cat conftest.err >&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } && {
16440 test -z "$ac_c_werror_flag" ||
16441 test ! -s conftest.err
16442 } && test -s conftest$ac_exeext &&
16443 $as_test_x conftest$ac_exeext; then
16444 eval "$as_ac_var=yes"
16445 else
16446 echo "$as_me: failed program was:" >&5
16447 sed 's/^/| /' conftest.$ac_ext >&5
16448
16449 eval "$as_ac_var=no"
16450 fi
16451
16452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16453 conftest$ac_exeext conftest.$ac_ext
16454 fi
16455 ac_res=`eval echo '${'$as_ac_var'}'`
16456 { echo "$as_me:$LINENO: result: $ac_res" >&5
16457 echo "${ECHO_T}$ac_res" >&6; }
16458 if test `eval echo '${'$as_ac_var'}'` = yes; then
16459 cat >>confdefs.h <<_ACEOF
16460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16461 _ACEOF
16462
16463 fi
16464 done
16465
16466
16467 # Solaris has libkstat which does not require root.
16468
16469 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16470 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16471 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16472 echo $ECHO_N "(cached) $ECHO_C" >&6
16473 else
16474 ac_check_lib_save_LIBS=$LIBS
16475 LIBS="-lkstat $LIBS"
16476 cat >conftest.$ac_ext <<_ACEOF
16477 /* confdefs.h. */
16478 _ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h. */
16482
16483 /* Override any GCC internal prototype to avoid an error.
16484 Use char because int might match the return type of a GCC
16485 builtin and then its argument prototype would still apply. */
16486 #ifdef __cplusplus
16487 extern "C"
16488 #endif
16489 char kstat_open ();
16490 int
16491 main ()
16492 {
16493 return kstat_open ();
16494 ;
16495 return 0;
16496 }
16497 _ACEOF
16498 rm -f conftest.$ac_objext conftest$ac_exeext
16499 if { (ac_try="$ac_link"
16500 case "(($ac_try" in
16501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502 *) ac_try_echo=$ac_try;;
16503 esac
16504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505 (eval "$ac_link") 2>conftest.er1
16506 ac_status=$?
16507 grep -v '^ *+' conftest.er1 >conftest.err
16508 rm -f conftest.er1
16509 cat conftest.err >&5
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); } && {
16512 test -z "$ac_c_werror_flag" ||
16513 test ! -s conftest.err
16514 } && test -s conftest$ac_exeext &&
16515 $as_test_x conftest$ac_exeext; then
16516 ac_cv_lib_kstat_kstat_open=yes
16517 else
16518 echo "$as_me: failed program was:" >&5
16519 sed 's/^/| /' conftest.$ac_ext >&5
16520
16521 ac_cv_lib_kstat_kstat_open=no
16522 fi
16523
16524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16525 conftest$ac_exeext conftest.$ac_ext
16526 LIBS=$ac_check_lib_save_LIBS
16527 fi
16528 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16529 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16530 if test $ac_cv_lib_kstat_kstat_open = yes; then
16531 cat >>confdefs.h <<_ACEOF
16532 #define HAVE_LIBKSTAT 1
16533 _ACEOF
16534
16535 LIBS="-lkstat $LIBS"
16536
16537 fi
16538
16539 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16540
16541 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16542 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16543 # to get the right answer into the cache.
16544 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16545 if test $ac_have_func = no; then
16546 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16547 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16548 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16549 echo $ECHO_N "(cached) $ECHO_C" >&6
16550 else
16551 ac_check_lib_save_LIBS=$LIBS
16552 LIBS="-lelf $LIBS"
16553 cat >conftest.$ac_ext <<_ACEOF
16554 /* confdefs.h. */
16555 _ACEOF
16556 cat confdefs.h >>conftest.$ac_ext
16557 cat >>conftest.$ac_ext <<_ACEOF
16558 /* end confdefs.h. */
16559
16560 /* Override any GCC internal prototype to avoid an error.
16561 Use char because int might match the return type of a GCC
16562 builtin and then its argument prototype would still apply. */
16563 #ifdef __cplusplus
16564 extern "C"
16565 #endif
16566 char elf_begin ();
16567 int
16568 main ()
16569 {
16570 return elf_begin ();
16571 ;
16572 return 0;
16573 }
16574 _ACEOF
16575 rm -f conftest.$ac_objext conftest$ac_exeext
16576 if { (ac_try="$ac_link"
16577 case "(($ac_try" in
16578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16579 *) ac_try_echo=$ac_try;;
16580 esac
16581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16582 (eval "$ac_link") 2>conftest.er1
16583 ac_status=$?
16584 grep -v '^ *+' conftest.er1 >conftest.err
16585 rm -f conftest.er1
16586 cat conftest.err >&5
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); } && {
16589 test -z "$ac_c_werror_flag" ||
16590 test ! -s conftest.err
16591 } && test -s conftest$ac_exeext &&
16592 $as_test_x conftest$ac_exeext; then
16593 ac_cv_lib_elf_elf_begin=yes
16594 else
16595 echo "$as_me: failed program was:" >&5
16596 sed 's/^/| /' conftest.$ac_ext >&5
16597
16598 ac_cv_lib_elf_elf_begin=no
16599 fi
16600
16601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16602 conftest$ac_exeext conftest.$ac_ext
16603 LIBS=$ac_check_lib_save_LIBS
16604 fi
16605 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16606 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16607 if test $ac_cv_lib_elf_elf_begin = yes; then
16608 LIBS="-lelf $LIBS"
16609 fi
16610
16611 fi
16612 if test $ac_have_func = no; then
16613 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16614 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16615 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16617 else
16618 ac_check_lib_save_LIBS=$LIBS
16619 LIBS="-lkvm $LIBS"
16620 cat >conftest.$ac_ext <<_ACEOF
16621 /* confdefs.h. */
16622 _ACEOF
16623 cat confdefs.h >>conftest.$ac_ext
16624 cat >>conftest.$ac_ext <<_ACEOF
16625 /* end confdefs.h. */
16626
16627 /* Override any GCC internal prototype to avoid an error.
16628 Use char because int might match the return type of a GCC
16629 builtin and then its argument prototype would still apply. */
16630 #ifdef __cplusplus
16631 extern "C"
16632 #endif
16633 char kvm_open ();
16634 int
16635 main ()
16636 {
16637 return kvm_open ();
16638 ;
16639 return 0;
16640 }
16641 _ACEOF
16642 rm -f conftest.$ac_objext conftest$ac_exeext
16643 if { (ac_try="$ac_link"
16644 case "(($ac_try" in
16645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16647 esac
16648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649 (eval "$ac_link") 2>conftest.er1
16650 ac_status=$?
16651 grep -v '^ *+' conftest.er1 >conftest.err
16652 rm -f conftest.er1
16653 cat conftest.err >&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } && {
16656 test -z "$ac_c_werror_flag" ||
16657 test ! -s conftest.err
16658 } && test -s conftest$ac_exeext &&
16659 $as_test_x conftest$ac_exeext; then
16660 ac_cv_lib_kvm_kvm_open=yes
16661 else
16662 echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16664
16665 ac_cv_lib_kvm_kvm_open=no
16666 fi
16667
16668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16669 conftest$ac_exeext conftest.$ac_ext
16670 LIBS=$ac_check_lib_save_LIBS
16671 fi
16672 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16673 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16674 if test $ac_cv_lib_kvm_kvm_open = yes; then
16675 LIBS="-lkvm $LIBS"
16676 fi
16677
16678 # Check for the 4.4BSD definition of getloadavg.
16679 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16680 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16681 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16682 echo $ECHO_N "(cached) $ECHO_C" >&6
16683 else
16684 ac_check_lib_save_LIBS=$LIBS
16685 LIBS="-lutil $LIBS"
16686 cat >conftest.$ac_ext <<_ACEOF
16687 /* confdefs.h. */
16688 _ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h. */
16692
16693 /* Override any GCC internal prototype to avoid an error.
16694 Use char because int might match the return type of a GCC
16695 builtin and then its argument prototype would still apply. */
16696 #ifdef __cplusplus
16697 extern "C"
16698 #endif
16699 char getloadavg ();
16700 int
16701 main ()
16702 {
16703 return getloadavg ();
16704 ;
16705 return 0;
16706 }
16707 _ACEOF
16708 rm -f conftest.$ac_objext conftest$ac_exeext
16709 if { (ac_try="$ac_link"
16710 case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16713 esac
16714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_link") 2>conftest.er1
16716 ac_status=$?
16717 grep -v '^ *+' conftest.er1 >conftest.err
16718 rm -f conftest.er1
16719 cat conftest.err >&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); } && {
16722 test -z "$ac_c_werror_flag" ||
16723 test ! -s conftest.err
16724 } && test -s conftest$ac_exeext &&
16725 $as_test_x conftest$ac_exeext; then
16726 ac_cv_lib_util_getloadavg=yes
16727 else
16728 echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16730
16731 ac_cv_lib_util_getloadavg=no
16732 fi
16733
16734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16735 conftest$ac_exeext conftest.$ac_ext
16736 LIBS=$ac_check_lib_save_LIBS
16737 fi
16738 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16739 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16740 if test $ac_cv_lib_util_getloadavg = yes; then
16741 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16742 fi
16743
16744 fi
16745
16746 if test $ac_have_func = no; then
16747 # There is a commonly available library for RS/6000 AIX.
16748 # Since it is not a standard part of AIX, it might be installed locally.
16749 ac_getloadavg_LIBS=$LIBS
16750 LIBS="-L/usr/local/lib $LIBS"
16751 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16752 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16753 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16755 else
16756 ac_check_lib_save_LIBS=$LIBS
16757 LIBS="-lgetloadavg $LIBS"
16758 cat >conftest.$ac_ext <<_ACEOF
16759 /* confdefs.h. */
16760 _ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16764
16765 /* Override any GCC internal prototype to avoid an error.
16766 Use char because int might match the return type of a GCC
16767 builtin and then its argument prototype would still apply. */
16768 #ifdef __cplusplus
16769 extern "C"
16770 #endif
16771 char getloadavg ();
16772 int
16773 main ()
16774 {
16775 return getloadavg ();
16776 ;
16777 return 0;
16778 }
16779 _ACEOF
16780 rm -f conftest.$ac_objext conftest$ac_exeext
16781 if { (ac_try="$ac_link"
16782 case "(($ac_try" in
16783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784 *) ac_try_echo=$ac_try;;
16785 esac
16786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16787 (eval "$ac_link") 2>conftest.er1
16788 ac_status=$?
16789 grep -v '^ *+' conftest.er1 >conftest.err
16790 rm -f conftest.er1
16791 cat conftest.err >&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } && {
16794 test -z "$ac_c_werror_flag" ||
16795 test ! -s conftest.err
16796 } && test -s conftest$ac_exeext &&
16797 $as_test_x conftest$ac_exeext; then
16798 ac_cv_lib_getloadavg_getloadavg=yes
16799 else
16800 echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16802
16803 ac_cv_lib_getloadavg_getloadavg=no
16804 fi
16805
16806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16807 conftest$ac_exeext conftest.$ac_ext
16808 LIBS=$ac_check_lib_save_LIBS
16809 fi
16810 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16811 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16812 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16813 LIBS="-lgetloadavg $LIBS"
16814 else
16815 LIBS=$ac_getloadavg_LIBS
16816 fi
16817
16818 fi
16819
16820 # Make sure it is really in the library, if we think we found it,
16821 # otherwise set up the replacement function.
16822
16823 for ac_func in getloadavg
16824 do
16825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16826 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16828 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16829 echo $ECHO_N "(cached) $ECHO_C" >&6
16830 else
16831 cat >conftest.$ac_ext <<_ACEOF
16832 /* confdefs.h. */
16833 _ACEOF
16834 cat confdefs.h >>conftest.$ac_ext
16835 cat >>conftest.$ac_ext <<_ACEOF
16836 /* end confdefs.h. */
16837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16839 #define $ac_func innocuous_$ac_func
16840
16841 /* System header to define __stub macros and hopefully few prototypes,
16842 which can conflict with char $ac_func (); below.
16843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16844 <limits.h> exists even on freestanding compilers. */
16845
16846 #ifdef __STDC__
16847 # include <limits.h>
16848 #else
16849 # include <assert.h>
16850 #endif
16851
16852 #undef $ac_func
16853
16854 /* Override any GCC internal prototype to avoid an error.
16855 Use char because int might match the return type of a GCC
16856 builtin and then its argument prototype would still apply. */
16857 #ifdef __cplusplus
16858 extern "C"
16859 #endif
16860 char $ac_func ();
16861 /* The GNU C library defines this for functions which it implements
16862 to always fail with ENOSYS. Some functions are actually named
16863 something starting with __ and the normal name is an alias. */
16864 #if defined __stub_$ac_func || defined __stub___$ac_func
16865 choke me
16866 #endif
16867
16868 int
16869 main ()
16870 {
16871 return $ac_func ();
16872 ;
16873 return 0;
16874 }
16875 _ACEOF
16876 rm -f conftest.$ac_objext conftest$ac_exeext
16877 if { (ac_try="$ac_link"
16878 case "(($ac_try" in
16879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16880 *) ac_try_echo=$ac_try;;
16881 esac
16882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16883 (eval "$ac_link") 2>conftest.er1
16884 ac_status=$?
16885 grep -v '^ *+' conftest.er1 >conftest.err
16886 rm -f conftest.er1
16887 cat conftest.err >&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); } && {
16890 test -z "$ac_c_werror_flag" ||
16891 test ! -s conftest.err
16892 } && test -s conftest$ac_exeext &&
16893 $as_test_x conftest$ac_exeext; then
16894 eval "$as_ac_var=yes"
16895 else
16896 echo "$as_me: failed program was:" >&5
16897 sed 's/^/| /' conftest.$ac_ext >&5
16898
16899 eval "$as_ac_var=no"
16900 fi
16901
16902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16903 conftest$ac_exeext conftest.$ac_ext
16904 fi
16905 ac_res=`eval echo '${'$as_ac_var'}'`
16906 { echo "$as_me:$LINENO: result: $ac_res" >&5
16907 echo "${ECHO_T}$ac_res" >&6; }
16908 if test `eval echo '${'$as_ac_var'}'` = yes; then
16909 cat >>confdefs.h <<_ACEOF
16910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16911 _ACEOF
16912
16913 else
16914 case " $LIBOBJS " in
16915 *" getloadavg.$ac_objext "* ) ;;
16916 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16917 ;;
16918 esac
16919
16920
16921 cat >>confdefs.h <<\_ACEOF
16922 #define C_GETLOADAVG 1
16923 _ACEOF
16924
16925 # Figure out what our getloadavg.c needs.
16926 ac_have_func=no
16927 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16928 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16929 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16930 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16931 echo $ECHO_N "(cached) $ECHO_C" >&6
16932 fi
16933 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16934 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16935 else
16936 # Is the header compilable?
16937 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16938 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16939 cat >conftest.$ac_ext <<_ACEOF
16940 /* confdefs.h. */
16941 _ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h. */
16945 $ac_includes_default
16946 #include <sys/dg_sys_info.h>
16947 _ACEOF
16948 rm -f conftest.$ac_objext
16949 if { (ac_try="$ac_compile"
16950 case "(($ac_try" in
16951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952 *) ac_try_echo=$ac_try;;
16953 esac
16954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16955 (eval "$ac_compile") 2>conftest.er1
16956 ac_status=$?
16957 grep -v '^ *+' conftest.er1 >conftest.err
16958 rm -f conftest.er1
16959 cat conftest.err >&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); } && {
16962 test -z "$ac_c_werror_flag" ||
16963 test ! -s conftest.err
16964 } && test -s conftest.$ac_objext; then
16965 ac_header_compiler=yes
16966 else
16967 echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16969
16970 ac_header_compiler=no
16971 fi
16972
16973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16975 echo "${ECHO_T}$ac_header_compiler" >&6; }
16976
16977 # Is the header present?
16978 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16979 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
16980 cat >conftest.$ac_ext <<_ACEOF
16981 /* confdefs.h. */
16982 _ACEOF
16983 cat confdefs.h >>conftest.$ac_ext
16984 cat >>conftest.$ac_ext <<_ACEOF
16985 /* end confdefs.h. */
16986 #include <sys/dg_sys_info.h>
16987 _ACEOF
16988 if { (ac_try="$ac_cpp conftest.$ac_ext"
16989 case "(($ac_try" in
16990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991 *) ac_try_echo=$ac_try;;
16992 esac
16993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16995 ac_status=$?
16996 grep -v '^ *+' conftest.er1 >conftest.err
16997 rm -f conftest.er1
16998 cat conftest.err >&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } >/dev/null && {
17001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17002 test ! -s conftest.err
17003 }; then
17004 ac_header_preproc=yes
17005 else
17006 echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17008
17009 ac_header_preproc=no
17010 fi
17011
17012 rm -f conftest.err conftest.$ac_ext
17013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17014 echo "${ECHO_T}$ac_header_preproc" >&6; }
17015
17016 # So? What about this header?
17017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17018 yes:no: )
17019 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17020 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17021 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17022 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17023 ac_header_preproc=yes
17024 ;;
17025 no:yes:* )
17026 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17027 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17028 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17029 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17030 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17031 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17032 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17033 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17034 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17035 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17036 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17037 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17038
17039 ;;
17040 esac
17041 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17042 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17043 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17044 echo $ECHO_N "(cached) $ECHO_C" >&6
17045 else
17046 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17047 fi
17048 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17049 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17050
17051 fi
17052 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17053 ac_have_func=yes
17054
17055 cat >>confdefs.h <<\_ACEOF
17056 #define DGUX 1
17057 _ACEOF
17058
17059
17060 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17061 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17062 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17063 echo $ECHO_N "(cached) $ECHO_C" >&6
17064 else
17065 ac_check_lib_save_LIBS=$LIBS
17066 LIBS="-ldgc $LIBS"
17067 cat >conftest.$ac_ext <<_ACEOF
17068 /* confdefs.h. */
17069 _ACEOF
17070 cat confdefs.h >>conftest.$ac_ext
17071 cat >>conftest.$ac_ext <<_ACEOF
17072 /* end confdefs.h. */
17073
17074 /* Override any GCC internal prototype to avoid an error.
17075 Use char because int might match the return type of a GCC
17076 builtin and then its argument prototype would still apply. */
17077 #ifdef __cplusplus
17078 extern "C"
17079 #endif
17080 char dg_sys_info ();
17081 int
17082 main ()
17083 {
17084 return dg_sys_info ();
17085 ;
17086 return 0;
17087 }
17088 _ACEOF
17089 rm -f conftest.$ac_objext conftest$ac_exeext
17090 if { (ac_try="$ac_link"
17091 case "(($ac_try" in
17092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093 *) ac_try_echo=$ac_try;;
17094 esac
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096 (eval "$ac_link") 2>conftest.er1
17097 ac_status=$?
17098 grep -v '^ *+' conftest.er1 >conftest.err
17099 rm -f conftest.er1
17100 cat conftest.err >&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); } && {
17103 test -z "$ac_c_werror_flag" ||
17104 test ! -s conftest.err
17105 } && test -s conftest$ac_exeext &&
17106 $as_test_x conftest$ac_exeext; then
17107 ac_cv_lib_dgc_dg_sys_info=yes
17108 else
17109 echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17111
17112 ac_cv_lib_dgc_dg_sys_info=no
17113 fi
17114
17115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17116 conftest$ac_exeext conftest.$ac_ext
17117 LIBS=$ac_check_lib_save_LIBS
17118 fi
17119 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17120 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17121 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17122 cat >>confdefs.h <<_ACEOF
17123 #define HAVE_LIBDGC 1
17124 _ACEOF
17125
17126 LIBS="-ldgc $LIBS"
17127
17128 fi
17129
17130 fi
17131
17132
17133
17134 if test "${ac_cv_header_locale_h+set}" = set; then
17135 { echo "$as_me:$LINENO: checking for locale.h" >&5
17136 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17137 if test "${ac_cv_header_locale_h+set}" = set; then
17138 echo $ECHO_N "(cached) $ECHO_C" >&6
17139 fi
17140 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17141 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17142 else
17143 # Is the header compilable?
17144 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17145 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17146 cat >conftest.$ac_ext <<_ACEOF
17147 /* confdefs.h. */
17148 _ACEOF
17149 cat confdefs.h >>conftest.$ac_ext
17150 cat >>conftest.$ac_ext <<_ACEOF
17151 /* end confdefs.h. */
17152 $ac_includes_default
17153 #include <locale.h>
17154 _ACEOF
17155 rm -f conftest.$ac_objext
17156 if { (ac_try="$ac_compile"
17157 case "(($ac_try" in
17158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159 *) ac_try_echo=$ac_try;;
17160 esac
17161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17162 (eval "$ac_compile") 2>conftest.er1
17163 ac_status=$?
17164 grep -v '^ *+' conftest.er1 >conftest.err
17165 rm -f conftest.er1
17166 cat conftest.err >&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } && {
17169 test -z "$ac_c_werror_flag" ||
17170 test ! -s conftest.err
17171 } && test -s conftest.$ac_objext; then
17172 ac_header_compiler=yes
17173 else
17174 echo "$as_me: failed program was:" >&5
17175 sed 's/^/| /' conftest.$ac_ext >&5
17176
17177 ac_header_compiler=no
17178 fi
17179
17180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17181 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17182 echo "${ECHO_T}$ac_header_compiler" >&6; }
17183
17184 # Is the header present?
17185 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17186 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17187 cat >conftest.$ac_ext <<_ACEOF
17188 /* confdefs.h. */
17189 _ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h. */
17193 #include <locale.h>
17194 _ACEOF
17195 if { (ac_try="$ac_cpp conftest.$ac_ext"
17196 case "(($ac_try" in
17197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17198 *) ac_try_echo=$ac_try;;
17199 esac
17200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17202 ac_status=$?
17203 grep -v '^ *+' conftest.er1 >conftest.err
17204 rm -f conftest.er1
17205 cat conftest.err >&5
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); } >/dev/null && {
17208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17209 test ! -s conftest.err
17210 }; then
17211 ac_header_preproc=yes
17212 else
17213 echo "$as_me: failed program was:" >&5
17214 sed 's/^/| /' conftest.$ac_ext >&5
17215
17216 ac_header_preproc=no
17217 fi
17218
17219 rm -f conftest.err conftest.$ac_ext
17220 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17221 echo "${ECHO_T}$ac_header_preproc" >&6; }
17222
17223 # So? What about this header?
17224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17225 yes:no: )
17226 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17227 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17228 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17229 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17230 ac_header_preproc=yes
17231 ;;
17232 no:yes:* )
17233 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17234 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17235 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17236 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17237 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17238 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17239 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17240 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17241 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17242 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17243 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17244 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17245
17246 ;;
17247 esac
17248 { echo "$as_me:$LINENO: checking for locale.h" >&5
17249 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17250 if test "${ac_cv_header_locale_h+set}" = set; then
17251 echo $ECHO_N "(cached) $ECHO_C" >&6
17252 else
17253 ac_cv_header_locale_h=$ac_header_preproc
17254 fi
17255 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17256 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17257
17258 fi
17259
17260
17261
17262 for ac_func in setlocale
17263 do
17264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17265 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17268 echo $ECHO_N "(cached) $ECHO_C" >&6
17269 else
17270 cat >conftest.$ac_ext <<_ACEOF
17271 /* confdefs.h. */
17272 _ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h. */
17276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17278 #define $ac_func innocuous_$ac_func
17279
17280 /* System header to define __stub macros and hopefully few prototypes,
17281 which can conflict with char $ac_func (); below.
17282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17283 <limits.h> exists even on freestanding compilers. */
17284
17285 #ifdef __STDC__
17286 # include <limits.h>
17287 #else
17288 # include <assert.h>
17289 #endif
17290
17291 #undef $ac_func
17292
17293 /* Override any GCC internal prototype to avoid an error.
17294 Use char because int might match the return type of a GCC
17295 builtin and then its argument prototype would still apply. */
17296 #ifdef __cplusplus
17297 extern "C"
17298 #endif
17299 char $ac_func ();
17300 /* The GNU C library defines this for functions which it implements
17301 to always fail with ENOSYS. Some functions are actually named
17302 something starting with __ and the normal name is an alias. */
17303 #if defined __stub_$ac_func || defined __stub___$ac_func
17304 choke me
17305 #endif
17306
17307 int
17308 main ()
17309 {
17310 return $ac_func ();
17311 ;
17312 return 0;
17313 }
17314 _ACEOF
17315 rm -f conftest.$ac_objext conftest$ac_exeext
17316 if { (ac_try="$ac_link"
17317 case "(($ac_try" in
17318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319 *) ac_try_echo=$ac_try;;
17320 esac
17321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17322 (eval "$ac_link") 2>conftest.er1
17323 ac_status=$?
17324 grep -v '^ *+' conftest.er1 >conftest.err
17325 rm -f conftest.er1
17326 cat conftest.err >&5
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); } && {
17329 test -z "$ac_c_werror_flag" ||
17330 test ! -s conftest.err
17331 } && test -s conftest$ac_exeext &&
17332 $as_test_x conftest$ac_exeext; then
17333 eval "$as_ac_var=yes"
17334 else
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17337
17338 eval "$as_ac_var=no"
17339 fi
17340
17341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17342 conftest$ac_exeext conftest.$ac_ext
17343 fi
17344 ac_res=`eval echo '${'$as_ac_var'}'`
17345 { echo "$as_me:$LINENO: result: $ac_res" >&5
17346 echo "${ECHO_T}$ac_res" >&6; }
17347 if test `eval echo '${'$as_ac_var'}'` = yes; then
17348 cat >>confdefs.h <<_ACEOF
17349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17350 _ACEOF
17351
17352 fi
17353 done
17354
17355
17356 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17357 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17358 # Irix 4.0.5F has the header but not the library.
17359 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17360 ac_have_func=yes
17361
17362 cat >>confdefs.h <<\_ACEOF
17363 #define SVR4 1
17364 _ACEOF
17365
17366 fi
17367
17368 if test $ac_have_func = no; then
17369 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17370 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17371 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17372 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17373 echo $ECHO_N "(cached) $ECHO_C" >&6
17374 fi
17375 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17376 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17377 else
17378 # Is the header compilable?
17379 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17380 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17381 cat >conftest.$ac_ext <<_ACEOF
17382 /* confdefs.h. */
17383 _ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17387 $ac_includes_default
17388 #include <inq_stats/cpustats.h>
17389 _ACEOF
17390 rm -f conftest.$ac_objext
17391 if { (ac_try="$ac_compile"
17392 case "(($ac_try" in
17393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17394 *) ac_try_echo=$ac_try;;
17395 esac
17396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17397 (eval "$ac_compile") 2>conftest.er1
17398 ac_status=$?
17399 grep -v '^ *+' conftest.er1 >conftest.err
17400 rm -f conftest.er1
17401 cat conftest.err >&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); } && {
17404 test -z "$ac_c_werror_flag" ||
17405 test ! -s conftest.err
17406 } && test -s conftest.$ac_objext; then
17407 ac_header_compiler=yes
17408 else
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17411
17412 ac_header_compiler=no
17413 fi
17414
17415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17417 echo "${ECHO_T}$ac_header_compiler" >&6; }
17418
17419 # Is the header present?
17420 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17421 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17422 cat >conftest.$ac_ext <<_ACEOF
17423 /* confdefs.h. */
17424 _ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h. */
17428 #include <inq_stats/cpustats.h>
17429 _ACEOF
17430 if { (ac_try="$ac_cpp conftest.$ac_ext"
17431 case "(($ac_try" in
17432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17433 *) ac_try_echo=$ac_try;;
17434 esac
17435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17437 ac_status=$?
17438 grep -v '^ *+' conftest.er1 >conftest.err
17439 rm -f conftest.er1
17440 cat conftest.err >&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); } >/dev/null && {
17443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17444 test ! -s conftest.err
17445 }; then
17446 ac_header_preproc=yes
17447 else
17448 echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17450
17451 ac_header_preproc=no
17452 fi
17453
17454 rm -f conftest.err conftest.$ac_ext
17455 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17456 echo "${ECHO_T}$ac_header_preproc" >&6; }
17457
17458 # So? What about this header?
17459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17460 yes:no: )
17461 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17462 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17463 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17464 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17465 ac_header_preproc=yes
17466 ;;
17467 no:yes:* )
17468 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17469 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17470 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17471 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17472 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17473 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17474 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17475 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17476 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17477 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17478 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17479 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17480
17481 ;;
17482 esac
17483 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17484 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17485 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17486 echo $ECHO_N "(cached) $ECHO_C" >&6
17487 else
17488 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17489 fi
17490 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17491 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17492
17493 fi
17494 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17495 ac_have_func=yes
17496
17497 cat >>confdefs.h <<\_ACEOF
17498 #define UMAX 1
17499 _ACEOF
17500
17501
17502 cat >>confdefs.h <<\_ACEOF
17503 #define UMAX4_3 1
17504 _ACEOF
17505
17506 fi
17507
17508
17509 fi
17510
17511 if test $ac_have_func = no; then
17512 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17513 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17514 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17515 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17516 echo $ECHO_N "(cached) $ECHO_C" >&6
17517 fi
17518 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17519 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17520 else
17521 # Is the header compilable?
17522 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17523 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17524 cat >conftest.$ac_ext <<_ACEOF
17525 /* confdefs.h. */
17526 _ACEOF
17527 cat confdefs.h >>conftest.$ac_ext
17528 cat >>conftest.$ac_ext <<_ACEOF
17529 /* end confdefs.h. */
17530 $ac_includes_default
17531 #include <sys/cpustats.h>
17532 _ACEOF
17533 rm -f conftest.$ac_objext
17534 if { (ac_try="$ac_compile"
17535 case "(($ac_try" in
17536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17537 *) ac_try_echo=$ac_try;;
17538 esac
17539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17540 (eval "$ac_compile") 2>conftest.er1
17541 ac_status=$?
17542 grep -v '^ *+' conftest.er1 >conftest.err
17543 rm -f conftest.er1
17544 cat conftest.err >&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); } && {
17547 test -z "$ac_c_werror_flag" ||
17548 test ! -s conftest.err
17549 } && test -s conftest.$ac_objext; then
17550 ac_header_compiler=yes
17551 else
17552 echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17554
17555 ac_header_compiler=no
17556 fi
17557
17558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17560 echo "${ECHO_T}$ac_header_compiler" >&6; }
17561
17562 # Is the header present?
17563 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17564 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17565 cat >conftest.$ac_ext <<_ACEOF
17566 /* confdefs.h. */
17567 _ACEOF
17568 cat confdefs.h >>conftest.$ac_ext
17569 cat >>conftest.$ac_ext <<_ACEOF
17570 /* end confdefs.h. */
17571 #include <sys/cpustats.h>
17572 _ACEOF
17573 if { (ac_try="$ac_cpp conftest.$ac_ext"
17574 case "(($ac_try" in
17575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576 *) ac_try_echo=$ac_try;;
17577 esac
17578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17580 ac_status=$?
17581 grep -v '^ *+' conftest.er1 >conftest.err
17582 rm -f conftest.er1
17583 cat conftest.err >&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); } >/dev/null && {
17586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17587 test ! -s conftest.err
17588 }; then
17589 ac_header_preproc=yes
17590 else
17591 echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17593
17594 ac_header_preproc=no
17595 fi
17596
17597 rm -f conftest.err conftest.$ac_ext
17598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17599 echo "${ECHO_T}$ac_header_preproc" >&6; }
17600
17601 # So? What about this header?
17602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17603 yes:no: )
17604 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17605 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17606 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17607 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17608 ac_header_preproc=yes
17609 ;;
17610 no:yes:* )
17611 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17612 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17613 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17614 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17615 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17616 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17617 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17618 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17619 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17620 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17621 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17622 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17623
17624 ;;
17625 esac
17626 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17627 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17628 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17629 echo $ECHO_N "(cached) $ECHO_C" >&6
17630 else
17631 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17632 fi
17633 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17634 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17635
17636 fi
17637 if test $ac_cv_header_sys_cpustats_h = yes; then
17638 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17639 #define UMAX 1
17640 _ACEOF
17641
17642 fi
17643
17644
17645 fi
17646
17647 if test $ac_have_func = no; then
17648
17649 for ac_header in mach/mach.h
17650 do
17651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17656 echo $ECHO_N "(cached) $ECHO_C" >&6
17657 fi
17658 ac_res=`eval echo '${'$as_ac_Header'}'`
17659 { echo "$as_me:$LINENO: result: $ac_res" >&5
17660 echo "${ECHO_T}$ac_res" >&6; }
17661 else
17662 # Is the header compilable?
17663 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17665 cat >conftest.$ac_ext <<_ACEOF
17666 /* confdefs.h. */
17667 _ACEOF
17668 cat confdefs.h >>conftest.$ac_ext
17669 cat >>conftest.$ac_ext <<_ACEOF
17670 /* end confdefs.h. */
17671 $ac_includes_default
17672 #include <$ac_header>
17673 _ACEOF
17674 rm -f conftest.$ac_objext
17675 if { (ac_try="$ac_compile"
17676 case "(($ac_try" in
17677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678 *) ac_try_echo=$ac_try;;
17679 esac
17680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17681 (eval "$ac_compile") 2>conftest.er1
17682 ac_status=$?
17683 grep -v '^ *+' conftest.er1 >conftest.err
17684 rm -f conftest.er1
17685 cat conftest.err >&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } && {
17688 test -z "$ac_c_werror_flag" ||
17689 test ! -s conftest.err
17690 } && test -s conftest.$ac_objext; then
17691 ac_header_compiler=yes
17692 else
17693 echo "$as_me: failed program was:" >&5
17694 sed 's/^/| /' conftest.$ac_ext >&5
17695
17696 ac_header_compiler=no
17697 fi
17698
17699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17700 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17701 echo "${ECHO_T}$ac_header_compiler" >&6; }
17702
17703 # Is the header present?
17704 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17705 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17706 cat >conftest.$ac_ext <<_ACEOF
17707 /* confdefs.h. */
17708 _ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17712 #include <$ac_header>
17713 _ACEOF
17714 if { (ac_try="$ac_cpp conftest.$ac_ext"
17715 case "(($ac_try" in
17716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717 *) ac_try_echo=$ac_try;;
17718 esac
17719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17721 ac_status=$?
17722 grep -v '^ *+' conftest.er1 >conftest.err
17723 rm -f conftest.er1
17724 cat conftest.err >&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } >/dev/null && {
17727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17728 test ! -s conftest.err
17729 }; then
17730 ac_header_preproc=yes
17731 else
17732 echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17734
17735 ac_header_preproc=no
17736 fi
17737
17738 rm -f conftest.err conftest.$ac_ext
17739 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17740 echo "${ECHO_T}$ac_header_preproc" >&6; }
17741
17742 # So? What about this header?
17743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17744 yes:no: )
17745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17749 ac_header_preproc=yes
17750 ;;
17751 no:yes:* )
17752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17764
17765 ;;
17766 esac
17767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17770 echo $ECHO_N "(cached) $ECHO_C" >&6
17771 else
17772 eval "$as_ac_Header=\$ac_header_preproc"
17773 fi
17774 ac_res=`eval echo '${'$as_ac_Header'}'`
17775 { echo "$as_me:$LINENO: result: $ac_res" >&5
17776 echo "${ECHO_T}$ac_res" >&6; }
17777
17778 fi
17779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17780 cat >>confdefs.h <<_ACEOF
17781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17782 _ACEOF
17783
17784 fi
17785
17786 done
17787
17788 fi
17789
17790
17791 for ac_header in nlist.h
17792 do
17793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17798 echo $ECHO_N "(cached) $ECHO_C" >&6
17799 fi
17800 ac_res=`eval echo '${'$as_ac_Header'}'`
17801 { echo "$as_me:$LINENO: result: $ac_res" >&5
17802 echo "${ECHO_T}$ac_res" >&6; }
17803 else
17804 # Is the header compilable?
17805 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17807 cat >conftest.$ac_ext <<_ACEOF
17808 /* confdefs.h. */
17809 _ACEOF
17810 cat confdefs.h >>conftest.$ac_ext
17811 cat >>conftest.$ac_ext <<_ACEOF
17812 /* end confdefs.h. */
17813 $ac_includes_default
17814 #include <$ac_header>
17815 _ACEOF
17816 rm -f conftest.$ac_objext
17817 if { (ac_try="$ac_compile"
17818 case "(($ac_try" in
17819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17820 *) ac_try_echo=$ac_try;;
17821 esac
17822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17823 (eval "$ac_compile") 2>conftest.er1
17824 ac_status=$?
17825 grep -v '^ *+' conftest.er1 >conftest.err
17826 rm -f conftest.er1
17827 cat conftest.err >&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); } && {
17830 test -z "$ac_c_werror_flag" ||
17831 test ! -s conftest.err
17832 } && test -s conftest.$ac_objext; then
17833 ac_header_compiler=yes
17834 else
17835 echo "$as_me: failed program was:" >&5
17836 sed 's/^/| /' conftest.$ac_ext >&5
17837
17838 ac_header_compiler=no
17839 fi
17840
17841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17843 echo "${ECHO_T}$ac_header_compiler" >&6; }
17844
17845 # Is the header present?
17846 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17848 cat >conftest.$ac_ext <<_ACEOF
17849 /* confdefs.h. */
17850 _ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h. */
17854 #include <$ac_header>
17855 _ACEOF
17856 if { (ac_try="$ac_cpp conftest.$ac_ext"
17857 case "(($ac_try" in
17858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859 *) ac_try_echo=$ac_try;;
17860 esac
17861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17863 ac_status=$?
17864 grep -v '^ *+' conftest.er1 >conftest.err
17865 rm -f conftest.er1
17866 cat conftest.err >&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } >/dev/null && {
17869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17870 test ! -s conftest.err
17871 }; then
17872 ac_header_preproc=yes
17873 else
17874 echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17876
17877 ac_header_preproc=no
17878 fi
17879
17880 rm -f conftest.err conftest.$ac_ext
17881 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17882 echo "${ECHO_T}$ac_header_preproc" >&6; }
17883
17884 # So? What about this header?
17885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17886 yes:no: )
17887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17891 ac_header_preproc=yes
17892 ;;
17893 no:yes:* )
17894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17901 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17906
17907 ;;
17908 esac
17909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17912 echo $ECHO_N "(cached) $ECHO_C" >&6
17913 else
17914 eval "$as_ac_Header=\$ac_header_preproc"
17915 fi
17916 ac_res=`eval echo '${'$as_ac_Header'}'`
17917 { echo "$as_me:$LINENO: result: $ac_res" >&5
17918 echo "${ECHO_T}$ac_res" >&6; }
17919
17920 fi
17921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17922 cat >>confdefs.h <<_ACEOF
17923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17924 _ACEOF
17925 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17926 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17927 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17928 echo $ECHO_N "(cached) $ECHO_C" >&6
17929 else
17930 cat >conftest.$ac_ext <<_ACEOF
17931 /* confdefs.h. */
17932 _ACEOF
17933 cat confdefs.h >>conftest.$ac_ext
17934 cat >>conftest.$ac_ext <<_ACEOF
17935 /* end confdefs.h. */
17936 #include <nlist.h>
17937
17938 int
17939 main ()
17940 {
17941 static struct nlist ac_aggr;
17942 if (ac_aggr.n_un.n_name)
17943 return 0;
17944 ;
17945 return 0;
17946 }
17947 _ACEOF
17948 rm -f conftest.$ac_objext
17949 if { (ac_try="$ac_compile"
17950 case "(($ac_try" in
17951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17952 *) ac_try_echo=$ac_try;;
17953 esac
17954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17955 (eval "$ac_compile") 2>conftest.er1
17956 ac_status=$?
17957 grep -v '^ *+' conftest.er1 >conftest.err
17958 rm -f conftest.er1
17959 cat conftest.err >&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); } && {
17962 test -z "$ac_c_werror_flag" ||
17963 test ! -s conftest.err
17964 } && test -s conftest.$ac_objext; then
17965 ac_cv_member_struct_nlist_n_un_n_name=yes
17966 else
17967 echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17969
17970 cat >conftest.$ac_ext <<_ACEOF
17971 /* confdefs.h. */
17972 _ACEOF
17973 cat confdefs.h >>conftest.$ac_ext
17974 cat >>conftest.$ac_ext <<_ACEOF
17975 /* end confdefs.h. */
17976 #include <nlist.h>
17977
17978 int
17979 main ()
17980 {
17981 static struct nlist ac_aggr;
17982 if (sizeof ac_aggr.n_un.n_name)
17983 return 0;
17984 ;
17985 return 0;
17986 }
17987 _ACEOF
17988 rm -f conftest.$ac_objext
17989 if { (ac_try="$ac_compile"
17990 case "(($ac_try" in
17991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17992 *) ac_try_echo=$ac_try;;
17993 esac
17994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17995 (eval "$ac_compile") 2>conftest.er1
17996 ac_status=$?
17997 grep -v '^ *+' conftest.er1 >conftest.err
17998 rm -f conftest.er1
17999 cat conftest.err >&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); } && {
18002 test -z "$ac_c_werror_flag" ||
18003 test ! -s conftest.err
18004 } && test -s conftest.$ac_objext; then
18005 ac_cv_member_struct_nlist_n_un_n_name=yes
18006 else
18007 echo "$as_me: failed program was:" >&5
18008 sed 's/^/| /' conftest.$ac_ext >&5
18009
18010 ac_cv_member_struct_nlist_n_un_n_name=no
18011 fi
18012
18013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18014 fi
18015
18016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18017 fi
18018 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18019 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18020 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18021
18022 cat >>confdefs.h <<_ACEOF
18023 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18024 _ACEOF
18025
18026
18027 cat >>confdefs.h <<\_ACEOF
18028 #define NLIST_NAME_UNION 1
18029 _ACEOF
18030
18031 fi
18032
18033
18034 fi
18035
18036 done
18037
18038 fi
18039 done
18040
18041
18042 # Some definitions of getloadavg require that the program be installed setgid.
18043 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18044 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18045 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18046 echo $ECHO_N "(cached) $ECHO_C" >&6
18047 else
18048 cat >conftest.$ac_ext <<_ACEOF
18049 /* confdefs.h. */
18050 _ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h. */
18054 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18055 #ifdef LDAV_PRIVILEGED
18056 Yowza Am I SETGID yet
18057 #endif
18058 _ACEOF
18059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18060 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18061 ac_cv_func_getloadavg_setgid=yes
18062 else
18063 ac_cv_func_getloadavg_setgid=no
18064 fi
18065 rm -f conftest*
18066
18067 fi
18068 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18069 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18070 if test $ac_cv_func_getloadavg_setgid = yes; then
18071 NEED_SETGID=true
18072
18073 cat >>confdefs.h <<\_ACEOF
18074 #define GETLOADAVG_PRIVILEGED 1
18075 _ACEOF
18076
18077 else
18078 NEED_SETGID=false
18079 fi
18080
18081 if test $ac_cv_func_getloadavg_setgid = yes; then
18082 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18083 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18084 if test "${ac_cv_group_kmem+set}" = set; then
18085 echo $ECHO_N "(cached) $ECHO_C" >&6
18086 else
18087 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18088 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18089 # If we got an error (system does not support symlinks), try without -L.
18090 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18091 ac_cv_group_kmem=`echo $ac_ls_output \
18092 | sed -ne 's/[ ][ ]*/ /g;
18093 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18094 / /s/.* //;p;'`
18095
18096 fi
18097 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18098 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18099 KMEM_GROUP=$ac_cv_group_kmem
18100 fi
18101 if test "x$ac_save_LIBS" = x; then
18102 GETLOADAVG_LIBS=$LIBS
18103 else
18104 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18105 fi
18106 LIBS=$ac_save_LIBS
18107
18108
18109
18110 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18111 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18112 if test "${ac_cv_sys_largefile_source+set}" = set; then
18113 echo $ECHO_N "(cached) $ECHO_C" >&6
18114 else
18115 while :; do
18116 cat >conftest.$ac_ext <<_ACEOF
18117 /* confdefs.h. */
18118 _ACEOF
18119 cat confdefs.h >>conftest.$ac_ext
18120 cat >>conftest.$ac_ext <<_ACEOF
18121 /* end confdefs.h. */
18122 #include <stdio.h>
18123 int
18124 main ()
18125 {
18126 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18127 ;
18128 return 0;
18129 }
18130 _ACEOF
18131 rm -f conftest.$ac_objext conftest$ac_exeext
18132 if { (ac_try="$ac_link"
18133 case "(($ac_try" in
18134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18135 *) ac_try_echo=$ac_try;;
18136 esac
18137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18138 (eval "$ac_link") 2>conftest.er1
18139 ac_status=$?
18140 grep -v '^ *+' conftest.er1 >conftest.err
18141 rm -f conftest.er1
18142 cat conftest.err >&5
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); } && {
18145 test -z "$ac_c_werror_flag" ||
18146 test ! -s conftest.err
18147 } && test -s conftest$ac_exeext &&
18148 $as_test_x conftest$ac_exeext; then
18149 ac_cv_sys_largefile_source=no; break
18150 else
18151 echo "$as_me: failed program was:" >&5
18152 sed 's/^/| /' conftest.$ac_ext >&5
18153
18154
18155 fi
18156
18157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18158 conftest$ac_exeext conftest.$ac_ext
18159 cat >conftest.$ac_ext <<_ACEOF
18160 /* confdefs.h. */
18161 _ACEOF
18162 cat confdefs.h >>conftest.$ac_ext
18163 cat >>conftest.$ac_ext <<_ACEOF
18164 /* end confdefs.h. */
18165 #define _LARGEFILE_SOURCE 1
18166 #include <stdio.h>
18167 int
18168 main ()
18169 {
18170 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18171 ;
18172 return 0;
18173 }
18174 _ACEOF
18175 rm -f conftest.$ac_objext conftest$ac_exeext
18176 if { (ac_try="$ac_link"
18177 case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18180 esac
18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182 (eval "$ac_link") 2>conftest.er1
18183 ac_status=$?
18184 grep -v '^ *+' conftest.er1 >conftest.err
18185 rm -f conftest.er1
18186 cat conftest.err >&5
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); } && {
18189 test -z "$ac_c_werror_flag" ||
18190 test ! -s conftest.err
18191 } && test -s conftest$ac_exeext &&
18192 $as_test_x conftest$ac_exeext; then
18193 ac_cv_sys_largefile_source=1; break
18194 else
18195 echo "$as_me: failed program was:" >&5
18196 sed 's/^/| /' conftest.$ac_ext >&5
18197
18198
18199 fi
18200
18201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18202 conftest$ac_exeext conftest.$ac_ext
18203 ac_cv_sys_largefile_source=unknown
18204 break
18205 done
18206 fi
18207 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18208 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18209 case $ac_cv_sys_largefile_source in #(
18210 no | unknown) ;;
18211 *)
18212 cat >>confdefs.h <<_ACEOF
18213 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18214 _ACEOF
18215 ;;
18216 esac
18217 rm -f conftest*
18218
18219 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18220 # in glibc 2.1.3, but that breaks too many other things.
18221 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18222 if test $ac_cv_sys_largefile_source != unknown; then
18223
18224 cat >>confdefs.h <<\_ACEOF
18225 #define HAVE_FSEEKO 1
18226 _ACEOF
18227
18228 fi
18229
18230
18231 # Configure getopt.
18232 # getopt.m4 serial 10
18233
18234 # The getopt module assume you want GNU getopt, with getopt_long etc,
18235 # rather than vanilla POSIX getopt. This means your your code should
18236 # always include <getopt.h> for the getopt prototypes.
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248 # Prerequisites of lib/getopt*.
18249
18250
18251
18252
18253 GETOPT_H=
18254
18255 for ac_header in getopt.h
18256 do
18257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18259 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18262 echo $ECHO_N "(cached) $ECHO_C" >&6
18263 fi
18264 ac_res=`eval echo '${'$as_ac_Header'}'`
18265 { echo "$as_me:$LINENO: result: $ac_res" >&5
18266 echo "${ECHO_T}$ac_res" >&6; }
18267 else
18268 # Is the header compilable?
18269 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18271 cat >conftest.$ac_ext <<_ACEOF
18272 /* confdefs.h. */
18273 _ACEOF
18274 cat confdefs.h >>conftest.$ac_ext
18275 cat >>conftest.$ac_ext <<_ACEOF
18276 /* end confdefs.h. */
18277 $ac_includes_default
18278 #include <$ac_header>
18279 _ACEOF
18280 rm -f conftest.$ac_objext
18281 if { (ac_try="$ac_compile"
18282 case "(($ac_try" in
18283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18284 *) ac_try_echo=$ac_try;;
18285 esac
18286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18287 (eval "$ac_compile") 2>conftest.er1
18288 ac_status=$?
18289 grep -v '^ *+' conftest.er1 >conftest.err
18290 rm -f conftest.er1
18291 cat conftest.err >&5
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); } && {
18294 test -z "$ac_c_werror_flag" ||
18295 test ! -s conftest.err
18296 } && test -s conftest.$ac_objext; then
18297 ac_header_compiler=yes
18298 else
18299 echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18301
18302 ac_header_compiler=no
18303 fi
18304
18305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18306 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18307 echo "${ECHO_T}$ac_header_compiler" >&6; }
18308
18309 # Is the header present?
18310 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18312 cat >conftest.$ac_ext <<_ACEOF
18313 /* confdefs.h. */
18314 _ACEOF
18315 cat confdefs.h >>conftest.$ac_ext
18316 cat >>conftest.$ac_ext <<_ACEOF
18317 /* end confdefs.h. */
18318 #include <$ac_header>
18319 _ACEOF
18320 if { (ac_try="$ac_cpp conftest.$ac_ext"
18321 case "(($ac_try" in
18322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18323 *) ac_try_echo=$ac_try;;
18324 esac
18325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18327 ac_status=$?
18328 grep -v '^ *+' conftest.er1 >conftest.err
18329 rm -f conftest.er1
18330 cat conftest.err >&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); } >/dev/null && {
18333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18334 test ! -s conftest.err
18335 }; then
18336 ac_header_preproc=yes
18337 else
18338 echo "$as_me: failed program was:" >&5
18339 sed 's/^/| /' conftest.$ac_ext >&5
18340
18341 ac_header_preproc=no
18342 fi
18343
18344 rm -f conftest.err conftest.$ac_ext
18345 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18346 echo "${ECHO_T}$ac_header_preproc" >&6; }
18347
18348 # So? What about this header?
18349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18350 yes:no: )
18351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18354 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18355 ac_header_preproc=yes
18356 ;;
18357 no:yes:* )
18358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18359 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18361 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18363 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18365 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18369 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18370
18371 ;;
18372 esac
18373 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18376 echo $ECHO_N "(cached) $ECHO_C" >&6
18377 else
18378 eval "$as_ac_Header=\$ac_header_preproc"
18379 fi
18380 ac_res=`eval echo '${'$as_ac_Header'}'`
18381 { echo "$as_me:$LINENO: result: $ac_res" >&5
18382 echo "${ECHO_T}$ac_res" >&6; }
18383
18384 fi
18385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18386 cat >>confdefs.h <<_ACEOF
18387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18388 _ACEOF
18389
18390 else
18391 GETOPT_H=getopt.h
18392 fi
18393
18394 done
18395
18396 if test -z "$GETOPT_H"; then
18397
18398 for ac_func in getopt_long_only
18399 do
18400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18401 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18404 echo $ECHO_N "(cached) $ECHO_C" >&6
18405 else
18406 cat >conftest.$ac_ext <<_ACEOF
18407 /* confdefs.h. */
18408 _ACEOF
18409 cat confdefs.h >>conftest.$ac_ext
18410 cat >>conftest.$ac_ext <<_ACEOF
18411 /* end confdefs.h. */
18412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18414 #define $ac_func innocuous_$ac_func
18415
18416 /* System header to define __stub macros and hopefully few prototypes,
18417 which can conflict with char $ac_func (); below.
18418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18419 <limits.h> exists even on freestanding compilers. */
18420
18421 #ifdef __STDC__
18422 # include <limits.h>
18423 #else
18424 # include <assert.h>
18425 #endif
18426
18427 #undef $ac_func
18428
18429 /* Override any GCC internal prototype to avoid an error.
18430 Use char because int might match the return type of a GCC
18431 builtin and then its argument prototype would still apply. */
18432 #ifdef __cplusplus
18433 extern "C"
18434 #endif
18435 char $ac_func ();
18436 /* The GNU C library defines this for functions which it implements
18437 to always fail with ENOSYS. Some functions are actually named
18438 something starting with __ and the normal name is an alias. */
18439 #if defined __stub_$ac_func || defined __stub___$ac_func
18440 choke me
18441 #endif
18442
18443 int
18444 main ()
18445 {
18446 return $ac_func ();
18447 ;
18448 return 0;
18449 }
18450 _ACEOF
18451 rm -f conftest.$ac_objext conftest$ac_exeext
18452 if { (ac_try="$ac_link"
18453 case "(($ac_try" in
18454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455 *) ac_try_echo=$ac_try;;
18456 esac
18457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458 (eval "$ac_link") 2>conftest.er1
18459 ac_status=$?
18460 grep -v '^ *+' conftest.er1 >conftest.err
18461 rm -f conftest.er1
18462 cat conftest.err >&5
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); } && {
18465 test -z "$ac_c_werror_flag" ||
18466 test ! -s conftest.err
18467 } && test -s conftest$ac_exeext &&
18468 $as_test_x conftest$ac_exeext; then
18469 eval "$as_ac_var=yes"
18470 else
18471 echo "$as_me: failed program was:" >&5
18472 sed 's/^/| /' conftest.$ac_ext >&5
18473
18474 eval "$as_ac_var=no"
18475 fi
18476
18477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18478 conftest$ac_exeext conftest.$ac_ext
18479 fi
18480 ac_res=`eval echo '${'$as_ac_var'}'`
18481 { echo "$as_me:$LINENO: result: $ac_res" >&5
18482 echo "${ECHO_T}$ac_res" >&6; }
18483 if test `eval echo '${'$as_ac_var'}'` = yes; then
18484 cat >>confdefs.h <<_ACEOF
18485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18486 _ACEOF
18487
18488 else
18489 GETOPT_H=getopt.h
18490 fi
18491 done
18492
18493 fi
18494
18495 if test -z "$GETOPT_H"; then
18496 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18497 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18498 if test "${ac_cv_have_decl_optreset+set}" = set; then
18499 echo $ECHO_N "(cached) $ECHO_C" >&6
18500 else
18501 cat >conftest.$ac_ext <<_ACEOF
18502 /* confdefs.h. */
18503 _ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h. */
18507 #include <getopt.h>
18508
18509 int
18510 main ()
18511 {
18512 #ifndef optreset
18513 (void) optreset;
18514 #endif
18515
18516 ;
18517 return 0;
18518 }
18519 _ACEOF
18520 rm -f conftest.$ac_objext
18521 if { (ac_try="$ac_compile"
18522 case "(($ac_try" in
18523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524 *) ac_try_echo=$ac_try;;
18525 esac
18526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18527 (eval "$ac_compile") 2>conftest.er1
18528 ac_status=$?
18529 grep -v '^ *+' conftest.er1 >conftest.err
18530 rm -f conftest.er1
18531 cat conftest.err >&5
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); } && {
18534 test -z "$ac_c_werror_flag" ||
18535 test ! -s conftest.err
18536 } && test -s conftest.$ac_objext; then
18537 ac_cv_have_decl_optreset=yes
18538 else
18539 echo "$as_me: failed program was:" >&5
18540 sed 's/^/| /' conftest.$ac_ext >&5
18541
18542 ac_cv_have_decl_optreset=no
18543 fi
18544
18545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18546 fi
18547 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18548 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18549 if test $ac_cv_have_decl_optreset = yes; then
18550 GETOPT_H=getopt.h
18551 fi
18552
18553 fi
18554
18555 if test -z "$GETOPT_H"; then
18556 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18557 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18558 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18559 echo $ECHO_N "(cached) $ECHO_C" >&6
18560 else
18561 if test "$cross_compiling" = yes; then
18562 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18563 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18564 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18565 echo $ECHO_N "(cached) $ECHO_C" >&6
18566 else
18567 cat >conftest.$ac_ext <<_ACEOF
18568 /* confdefs.h. */
18569 _ACEOF
18570 cat confdefs.h >>conftest.$ac_ext
18571 cat >>conftest.$ac_ext <<_ACEOF
18572 /* end confdefs.h. */
18573 #include <getopt.h>
18574
18575 int
18576 main ()
18577 {
18578 #ifndef getopt_clip
18579 (void) getopt_clip;
18580 #endif
18581
18582 ;
18583 return 0;
18584 }
18585 _ACEOF
18586 rm -f conftest.$ac_objext
18587 if { (ac_try="$ac_compile"
18588 case "(($ac_try" in
18589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590 *) ac_try_echo=$ac_try;;
18591 esac
18592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18593 (eval "$ac_compile") 2>conftest.er1
18594 ac_status=$?
18595 grep -v '^ *+' conftest.er1 >conftest.err
18596 rm -f conftest.er1
18597 cat conftest.err >&5
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); } && {
18600 test -z "$ac_c_werror_flag" ||
18601 test ! -s conftest.err
18602 } && test -s conftest.$ac_objext; then
18603 ac_cv_have_decl_getopt_clip=yes
18604 else
18605 echo "$as_me: failed program was:" >&5
18606 sed 's/^/| /' conftest.$ac_ext >&5
18607
18608 ac_cv_have_decl_getopt_clip=no
18609 fi
18610
18611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18612 fi
18613 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18614 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18615 if test $ac_cv_have_decl_getopt_clip = yes; then
18616 gl_cv_func_gnu_getopt=no
18617 else
18618 gl_cv_func_gnu_getopt=yes
18619 fi
18620
18621 else
18622 cat >conftest.$ac_ext <<_ACEOF
18623 /* confdefs.h. */
18624 _ACEOF
18625 cat confdefs.h >>conftest.$ac_ext
18626 cat >>conftest.$ac_ext <<_ACEOF
18627 /* end confdefs.h. */
18628 #include <getopt.h>
18629 int
18630 main ()
18631 {
18632
18633 char *myargv[3];
18634 myargv[0] = "conftest";
18635 myargv[1] = "-+";
18636 myargv[2] = 0;
18637 return getopt (2, myargv, "+a") != '?';
18638
18639 ;
18640 return 0;
18641 }
18642 _ACEOF
18643 rm -f conftest$ac_exeext
18644 if { (ac_try="$ac_link"
18645 case "(($ac_try" in
18646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18647 *) ac_try_echo=$ac_try;;
18648 esac
18649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18650 (eval "$ac_link") 2>&5
18651 ac_status=$?
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18654 { (case "(($ac_try" in
18655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656 *) ac_try_echo=$ac_try;;
18657 esac
18658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18659 (eval "$ac_try") 2>&5
18660 ac_status=$?
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); }; }; then
18663 gl_cv_func_gnu_getopt=yes
18664 else
18665 echo "$as_me: program exited with status $ac_status" >&5
18666 echo "$as_me: failed program was:" >&5
18667 sed 's/^/| /' conftest.$ac_ext >&5
18668
18669 ( exit $ac_status )
18670 gl_cv_func_gnu_getopt=no
18671 fi
18672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18673 fi
18674
18675
18676 fi
18677 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18678 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18679 if test "$gl_cv_func_gnu_getopt" = "no"; then
18680 GETOPT_H=getopt.h
18681 fi
18682 fi
18683
18684
18685
18686 if test -n "$GETOPT_H"; then
18687
18688
18689 GETOPT_H=getopt.h
18690
18691 cat >>confdefs.h <<\_ACEOF
18692 #define __GETOPT_PREFIX rpl_
18693 _ACEOF
18694
18695
18696
18697 :
18698 GETOPTOBJS='getopt.o getopt1.o'
18699
18700 fi
18701
18702
18703
18704
18705 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18706 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18707 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18708 echo $ECHO_N "(cached) $ECHO_C" >&6
18709 else
18710 # Use it with a single arg.
18711 cat >conftest.$ac_ext <<_ACEOF
18712 /* confdefs.h. */
18713 _ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h. */
18717 $ac_includes_default
18718 int
18719 main ()
18720 {
18721 getpgrp (0);
18722 ;
18723 return 0;
18724 }
18725 _ACEOF
18726 rm -f conftest.$ac_objext
18727 if { (ac_try="$ac_compile"
18728 case "(($ac_try" in
18729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18730 *) ac_try_echo=$ac_try;;
18731 esac
18732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18733 (eval "$ac_compile") 2>conftest.er1
18734 ac_status=$?
18735 grep -v '^ *+' conftest.er1 >conftest.err
18736 rm -f conftest.er1
18737 cat conftest.err >&5
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); } && {
18740 test -z "$ac_c_werror_flag" ||
18741 test ! -s conftest.err
18742 } && test -s conftest.$ac_objext; then
18743 ac_cv_func_getpgrp_void=no
18744 else
18745 echo "$as_me: failed program was:" >&5
18746 sed 's/^/| /' conftest.$ac_ext >&5
18747
18748 ac_cv_func_getpgrp_void=yes
18749 fi
18750
18751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18752
18753 fi
18754 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18755 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18756 if test $ac_cv_func_getpgrp_void = yes; then
18757
18758 cat >>confdefs.h <<\_ACEOF
18759 #define GETPGRP_VOID 1
18760 _ACEOF
18761
18762 fi
18763
18764
18765
18766 for ac_func in strftime
18767 do
18768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18769 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18772 echo $ECHO_N "(cached) $ECHO_C" >&6
18773 else
18774 cat >conftest.$ac_ext <<_ACEOF
18775 /* confdefs.h. */
18776 _ACEOF
18777 cat confdefs.h >>conftest.$ac_ext
18778 cat >>conftest.$ac_ext <<_ACEOF
18779 /* end confdefs.h. */
18780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18782 #define $ac_func innocuous_$ac_func
18783
18784 /* System header to define __stub macros and hopefully few prototypes,
18785 which can conflict with char $ac_func (); below.
18786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18787 <limits.h> exists even on freestanding compilers. */
18788
18789 #ifdef __STDC__
18790 # include <limits.h>
18791 #else
18792 # include <assert.h>
18793 #endif
18794
18795 #undef $ac_func
18796
18797 /* Override any GCC internal prototype to avoid an error.
18798 Use char because int might match the return type of a GCC
18799 builtin and then its argument prototype would still apply. */
18800 #ifdef __cplusplus
18801 extern "C"
18802 #endif
18803 char $ac_func ();
18804 /* The GNU C library defines this for functions which it implements
18805 to always fail with ENOSYS. Some functions are actually named
18806 something starting with __ and the normal name is an alias. */
18807 #if defined __stub_$ac_func || defined __stub___$ac_func
18808 choke me
18809 #endif
18810
18811 int
18812 main ()
18813 {
18814 return $ac_func ();
18815 ;
18816 return 0;
18817 }
18818 _ACEOF
18819 rm -f conftest.$ac_objext conftest$ac_exeext
18820 if { (ac_try="$ac_link"
18821 case "(($ac_try" in
18822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18823 *) ac_try_echo=$ac_try;;
18824 esac
18825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18826 (eval "$ac_link") 2>conftest.er1
18827 ac_status=$?
18828 grep -v '^ *+' conftest.er1 >conftest.err
18829 rm -f conftest.er1
18830 cat conftest.err >&5
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); } && {
18833 test -z "$ac_c_werror_flag" ||
18834 test ! -s conftest.err
18835 } && test -s conftest$ac_exeext &&
18836 $as_test_x conftest$ac_exeext; then
18837 eval "$as_ac_var=yes"
18838 else
18839 echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18841
18842 eval "$as_ac_var=no"
18843 fi
18844
18845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18846 conftest$ac_exeext conftest.$ac_ext
18847 fi
18848 ac_res=`eval echo '${'$as_ac_var'}'`
18849 { echo "$as_me:$LINENO: result: $ac_res" >&5
18850 echo "${ECHO_T}$ac_res" >&6; }
18851 if test `eval echo '${'$as_ac_var'}'` = yes; then
18852 cat >>confdefs.h <<_ACEOF
18853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18854 _ACEOF
18855
18856 else
18857 # strftime is in -lintl on SCO UNIX.
18858 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18859 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18860 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18861 echo $ECHO_N "(cached) $ECHO_C" >&6
18862 else
18863 ac_check_lib_save_LIBS=$LIBS
18864 LIBS="-lintl $LIBS"
18865 cat >conftest.$ac_ext <<_ACEOF
18866 /* confdefs.h. */
18867 _ACEOF
18868 cat confdefs.h >>conftest.$ac_ext
18869 cat >>conftest.$ac_ext <<_ACEOF
18870 /* end confdefs.h. */
18871
18872 /* Override any GCC internal prototype to avoid an error.
18873 Use char because int might match the return type of a GCC
18874 builtin and then its argument prototype would still apply. */
18875 #ifdef __cplusplus
18876 extern "C"
18877 #endif
18878 char strftime ();
18879 int
18880 main ()
18881 {
18882 return strftime ();
18883 ;
18884 return 0;
18885 }
18886 _ACEOF
18887 rm -f conftest.$ac_objext conftest$ac_exeext
18888 if { (ac_try="$ac_link"
18889 case "(($ac_try" in
18890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891 *) ac_try_echo=$ac_try;;
18892 esac
18893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18894 (eval "$ac_link") 2>conftest.er1
18895 ac_status=$?
18896 grep -v '^ *+' conftest.er1 >conftest.err
18897 rm -f conftest.er1
18898 cat conftest.err >&5
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); } && {
18901 test -z "$ac_c_werror_flag" ||
18902 test ! -s conftest.err
18903 } && test -s conftest$ac_exeext &&
18904 $as_test_x conftest$ac_exeext; then
18905 ac_cv_lib_intl_strftime=yes
18906 else
18907 echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18909
18910 ac_cv_lib_intl_strftime=no
18911 fi
18912
18913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18914 conftest$ac_exeext conftest.$ac_ext
18915 LIBS=$ac_check_lib_save_LIBS
18916 fi
18917 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18918 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18919 if test $ac_cv_lib_intl_strftime = yes; then
18920 cat >>confdefs.h <<\_ACEOF
18921 #define HAVE_STRFTIME 1
18922 _ACEOF
18923
18924 LIBS="-lintl $LIBS"
18925 fi
18926
18927 fi
18928 done
18929
18930
18931 # UNIX98 PTYs.
18932
18933 for ac_func in grantpt
18934 do
18935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18936 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18939 echo $ECHO_N "(cached) $ECHO_C" >&6
18940 else
18941 cat >conftest.$ac_ext <<_ACEOF
18942 /* confdefs.h. */
18943 _ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h. */
18947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18949 #define $ac_func innocuous_$ac_func
18950
18951 /* System header to define __stub macros and hopefully few prototypes,
18952 which can conflict with char $ac_func (); below.
18953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18954 <limits.h> exists even on freestanding compilers. */
18955
18956 #ifdef __STDC__
18957 # include <limits.h>
18958 #else
18959 # include <assert.h>
18960 #endif
18961
18962 #undef $ac_func
18963
18964 /* Override any GCC internal prototype to avoid an error.
18965 Use char because int might match the return type of a GCC
18966 builtin and then its argument prototype would still apply. */
18967 #ifdef __cplusplus
18968 extern "C"
18969 #endif
18970 char $ac_func ();
18971 /* The GNU C library defines this for functions which it implements
18972 to always fail with ENOSYS. Some functions are actually named
18973 something starting with __ and the normal name is an alias. */
18974 #if defined __stub_$ac_func || defined __stub___$ac_func
18975 choke me
18976 #endif
18977
18978 int
18979 main ()
18980 {
18981 return $ac_func ();
18982 ;
18983 return 0;
18984 }
18985 _ACEOF
18986 rm -f conftest.$ac_objext conftest$ac_exeext
18987 if { (ac_try="$ac_link"
18988 case "(($ac_try" in
18989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18990 *) ac_try_echo=$ac_try;;
18991 esac
18992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18993 (eval "$ac_link") 2>conftest.er1
18994 ac_status=$?
18995 grep -v '^ *+' conftest.er1 >conftest.err
18996 rm -f conftest.er1
18997 cat conftest.err >&5
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); } && {
19000 test -z "$ac_c_werror_flag" ||
19001 test ! -s conftest.err
19002 } && test -s conftest$ac_exeext &&
19003 $as_test_x conftest$ac_exeext; then
19004 eval "$as_ac_var=yes"
19005 else
19006 echo "$as_me: failed program was:" >&5
19007 sed 's/^/| /' conftest.$ac_ext >&5
19008
19009 eval "$as_ac_var=no"
19010 fi
19011
19012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19013 conftest$ac_exeext conftest.$ac_ext
19014 fi
19015 ac_res=`eval echo '${'$as_ac_var'}'`
19016 { echo "$as_me:$LINENO: result: $ac_res" >&5
19017 echo "${ECHO_T}$ac_res" >&6; }
19018 if test `eval echo '${'$as_ac_var'}'` = yes; then
19019 cat >>confdefs.h <<_ACEOF
19020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19021 _ACEOF
19022
19023 fi
19024 done
19025
19026
19027 # PTY-related GNU extensions.
19028
19029 for ac_func in getpt
19030 do
19031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19032 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19034 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19035 echo $ECHO_N "(cached) $ECHO_C" >&6
19036 else
19037 cat >conftest.$ac_ext <<_ACEOF
19038 /* confdefs.h. */
19039 _ACEOF
19040 cat confdefs.h >>conftest.$ac_ext
19041 cat >>conftest.$ac_ext <<_ACEOF
19042 /* end confdefs.h. */
19043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19045 #define $ac_func innocuous_$ac_func
19046
19047 /* System header to define __stub macros and hopefully few prototypes,
19048 which can conflict with char $ac_func (); below.
19049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19050 <limits.h> exists even on freestanding compilers. */
19051
19052 #ifdef __STDC__
19053 # include <limits.h>
19054 #else
19055 # include <assert.h>
19056 #endif
19057
19058 #undef $ac_func
19059
19060 /* Override any GCC internal prototype to avoid an error.
19061 Use char because int might match the return type of a GCC
19062 builtin and then its argument prototype would still apply. */
19063 #ifdef __cplusplus
19064 extern "C"
19065 #endif
19066 char $ac_func ();
19067 /* The GNU C library defines this for functions which it implements
19068 to always fail with ENOSYS. Some functions are actually named
19069 something starting with __ and the normal name is an alias. */
19070 #if defined __stub_$ac_func || defined __stub___$ac_func
19071 choke me
19072 #endif
19073
19074 int
19075 main ()
19076 {
19077 return $ac_func ();
19078 ;
19079 return 0;
19080 }
19081 _ACEOF
19082 rm -f conftest.$ac_objext conftest$ac_exeext
19083 if { (ac_try="$ac_link"
19084 case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19087 esac
19088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089 (eval "$ac_link") 2>conftest.er1
19090 ac_status=$?
19091 grep -v '^ *+' conftest.er1 >conftest.err
19092 rm -f conftest.er1
19093 cat conftest.err >&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); } && {
19096 test -z "$ac_c_werror_flag" ||
19097 test ! -s conftest.err
19098 } && test -s conftest$ac_exeext &&
19099 $as_test_x conftest$ac_exeext; then
19100 eval "$as_ac_var=yes"
19101 else
19102 echo "$as_me: failed program was:" >&5
19103 sed 's/^/| /' conftest.$ac_ext >&5
19104
19105 eval "$as_ac_var=no"
19106 fi
19107
19108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19109 conftest$ac_exeext conftest.$ac_ext
19110 fi
19111 ac_res=`eval echo '${'$as_ac_var'}'`
19112 { echo "$as_me:$LINENO: result: $ac_res" >&5
19113 echo "${ECHO_T}$ac_res" >&6; }
19114 if test `eval echo '${'$as_ac_var'}'` = yes; then
19115 cat >>confdefs.h <<_ACEOF
19116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19117 _ACEOF
19118
19119 fi
19120 done
19121
19122
19123 # Check this now, so that we will NOT find the above functions in ncurses.
19124 # That is because we have not set up to link ncurses in lib-src.
19125 # It's better to believe a function is not available
19126 # than to expect to find it in ncurses.
19127
19128 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19129 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19130 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19131 echo $ECHO_N "(cached) $ECHO_C" >&6
19132 else
19133 ac_check_lib_save_LIBS=$LIBS
19134 LIBS="-lncurses $LIBS"
19135 cat >conftest.$ac_ext <<_ACEOF
19136 /* confdefs.h. */
19137 _ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h. */
19141
19142 /* Override any GCC internal prototype to avoid an error.
19143 Use char because int might match the return type of a GCC
19144 builtin and then its argument prototype would still apply. */
19145 #ifdef __cplusplus
19146 extern "C"
19147 #endif
19148 char tparm ();
19149 int
19150 main ()
19151 {
19152 return tparm ();
19153 ;
19154 return 0;
19155 }
19156 _ACEOF
19157 rm -f conftest.$ac_objext conftest$ac_exeext
19158 if { (ac_try="$ac_link"
19159 case "(($ac_try" in
19160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19161 *) ac_try_echo=$ac_try;;
19162 esac
19163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19164 (eval "$ac_link") 2>conftest.er1
19165 ac_status=$?
19166 grep -v '^ *+' conftest.er1 >conftest.err
19167 rm -f conftest.er1
19168 cat conftest.err >&5
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); } && {
19171 test -z "$ac_c_werror_flag" ||
19172 test ! -s conftest.err
19173 } && test -s conftest$ac_exeext &&
19174 $as_test_x conftest$ac_exeext; then
19175 ac_cv_lib_ncurses_tparm=yes
19176 else
19177 echo "$as_me: failed program was:" >&5
19178 sed 's/^/| /' conftest.$ac_ext >&5
19179
19180 ac_cv_lib_ncurses_tparm=no
19181 fi
19182
19183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19184 conftest$ac_exeext conftest.$ac_ext
19185 LIBS=$ac_check_lib_save_LIBS
19186 fi
19187 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19188 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19189 if test $ac_cv_lib_ncurses_tparm = yes; then
19190 cat >>confdefs.h <<_ACEOF
19191 #define HAVE_LIBNCURSES 1
19192 _ACEOF
19193
19194 LIBS="-lncurses $LIBS"
19195
19196 fi
19197
19198
19199 # Do we need the Hesiod library to provide the support routines?
19200 if test "$with_hesiod" = yes ; then
19201 # Don't set $LIBS here -- see comments above.
19202 resolv=no
19203 { echo "$as_me:$LINENO: checking for res_send" >&5
19204 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19205 if test "${ac_cv_func_res_send+set}" = set; then
19206 echo $ECHO_N "(cached) $ECHO_C" >&6
19207 else
19208 cat >conftest.$ac_ext <<_ACEOF
19209 /* confdefs.h. */
19210 _ACEOF
19211 cat confdefs.h >>conftest.$ac_ext
19212 cat >>conftest.$ac_ext <<_ACEOF
19213 /* end confdefs.h. */
19214 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19216 #define res_send innocuous_res_send
19217
19218 /* System header to define __stub macros and hopefully few prototypes,
19219 which can conflict with char res_send (); below.
19220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19221 <limits.h> exists even on freestanding compilers. */
19222
19223 #ifdef __STDC__
19224 # include <limits.h>
19225 #else
19226 # include <assert.h>
19227 #endif
19228
19229 #undef res_send
19230
19231 /* Override any GCC internal prototype to avoid an error.
19232 Use char because int might match the return type of a GCC
19233 builtin and then its argument prototype would still apply. */
19234 #ifdef __cplusplus
19235 extern "C"
19236 #endif
19237 char res_send ();
19238 /* The GNU C library defines this for functions which it implements
19239 to always fail with ENOSYS. Some functions are actually named
19240 something starting with __ and the normal name is an alias. */
19241 #if defined __stub_res_send || defined __stub___res_send
19242 choke me
19243 #endif
19244
19245 int
19246 main ()
19247 {
19248 return res_send ();
19249 ;
19250 return 0;
19251 }
19252 _ACEOF
19253 rm -f conftest.$ac_objext conftest$ac_exeext
19254 if { (ac_try="$ac_link"
19255 case "(($ac_try" in
19256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257 *) ac_try_echo=$ac_try;;
19258 esac
19259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19260 (eval "$ac_link") 2>conftest.er1
19261 ac_status=$?
19262 grep -v '^ *+' conftest.er1 >conftest.err
19263 rm -f conftest.er1
19264 cat conftest.err >&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } && {
19267 test -z "$ac_c_werror_flag" ||
19268 test ! -s conftest.err
19269 } && test -s conftest$ac_exeext &&
19270 $as_test_x conftest$ac_exeext; then
19271 ac_cv_func_res_send=yes
19272 else
19273 echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19275
19276 ac_cv_func_res_send=no
19277 fi
19278
19279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19280 conftest$ac_exeext conftest.$ac_ext
19281 fi
19282 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19283 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19284 if test $ac_cv_func_res_send = yes; then
19285 :
19286 else
19287 { echo "$as_me:$LINENO: checking for __res_send" >&5
19288 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19289 if test "${ac_cv_func___res_send+set}" = set; then
19290 echo $ECHO_N "(cached) $ECHO_C" >&6
19291 else
19292 cat >conftest.$ac_ext <<_ACEOF
19293 /* confdefs.h. */
19294 _ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h. */
19298 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19300 #define __res_send innocuous___res_send
19301
19302 /* System header to define __stub macros and hopefully few prototypes,
19303 which can conflict with char __res_send (); below.
19304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19305 <limits.h> exists even on freestanding compilers. */
19306
19307 #ifdef __STDC__
19308 # include <limits.h>
19309 #else
19310 # include <assert.h>
19311 #endif
19312
19313 #undef __res_send
19314
19315 /* Override any GCC internal prototype to avoid an error.
19316 Use char because int might match the return type of a GCC
19317 builtin and then its argument prototype would still apply. */
19318 #ifdef __cplusplus
19319 extern "C"
19320 #endif
19321 char __res_send ();
19322 /* The GNU C library defines this for functions which it implements
19323 to always fail with ENOSYS. Some functions are actually named
19324 something starting with __ and the normal name is an alias. */
19325 #if defined __stub___res_send || defined __stub_____res_send
19326 choke me
19327 #endif
19328
19329 int
19330 main ()
19331 {
19332 return __res_send ();
19333 ;
19334 return 0;
19335 }
19336 _ACEOF
19337 rm -f conftest.$ac_objext conftest$ac_exeext
19338 if { (ac_try="$ac_link"
19339 case "(($ac_try" in
19340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19341 *) ac_try_echo=$ac_try;;
19342 esac
19343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19344 (eval "$ac_link") 2>conftest.er1
19345 ac_status=$?
19346 grep -v '^ *+' conftest.er1 >conftest.err
19347 rm -f conftest.er1
19348 cat conftest.err >&5
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); } && {
19351 test -z "$ac_c_werror_flag" ||
19352 test ! -s conftest.err
19353 } && test -s conftest$ac_exeext &&
19354 $as_test_x conftest$ac_exeext; then
19355 ac_cv_func___res_send=yes
19356 else
19357 echo "$as_me: failed program was:" >&5
19358 sed 's/^/| /' conftest.$ac_ext >&5
19359
19360 ac_cv_func___res_send=no
19361 fi
19362
19363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19364 conftest$ac_exeext conftest.$ac_ext
19365 fi
19366 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19367 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19368 if test $ac_cv_func___res_send = yes; then
19369 :
19370 else
19371 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19372 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19373 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19374 echo $ECHO_N "(cached) $ECHO_C" >&6
19375 else
19376 ac_check_lib_save_LIBS=$LIBS
19377 LIBS="-lresolv $LIBS"
19378 cat >conftest.$ac_ext <<_ACEOF
19379 /* confdefs.h. */
19380 _ACEOF
19381 cat confdefs.h >>conftest.$ac_ext
19382 cat >>conftest.$ac_ext <<_ACEOF
19383 /* end confdefs.h. */
19384
19385 /* Override any GCC internal prototype to avoid an error.
19386 Use char because int might match the return type of a GCC
19387 builtin and then its argument prototype would still apply. */
19388 #ifdef __cplusplus
19389 extern "C"
19390 #endif
19391 char res_send ();
19392 int
19393 main ()
19394 {
19395 return res_send ();
19396 ;
19397 return 0;
19398 }
19399 _ACEOF
19400 rm -f conftest.$ac_objext conftest$ac_exeext
19401 if { (ac_try="$ac_link"
19402 case "(($ac_try" in
19403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19404 *) ac_try_echo=$ac_try;;
19405 esac
19406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19407 (eval "$ac_link") 2>conftest.er1
19408 ac_status=$?
19409 grep -v '^ *+' conftest.er1 >conftest.err
19410 rm -f conftest.er1
19411 cat conftest.err >&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); } && {
19414 test -z "$ac_c_werror_flag" ||
19415 test ! -s conftest.err
19416 } && test -s conftest$ac_exeext &&
19417 $as_test_x conftest$ac_exeext; then
19418 ac_cv_lib_resolv_res_send=yes
19419 else
19420 echo "$as_me: failed program was:" >&5
19421 sed 's/^/| /' conftest.$ac_ext >&5
19422
19423 ac_cv_lib_resolv_res_send=no
19424 fi
19425
19426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19427 conftest$ac_exeext conftest.$ac_ext
19428 LIBS=$ac_check_lib_save_LIBS
19429 fi
19430 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19431 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19432 if test $ac_cv_lib_resolv_res_send = yes; then
19433 resolv=yes
19434 else
19435 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19436 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19437 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19438 echo $ECHO_N "(cached) $ECHO_C" >&6
19439 else
19440 ac_check_lib_save_LIBS=$LIBS
19441 LIBS="-lresolv $LIBS"
19442 cat >conftest.$ac_ext <<_ACEOF
19443 /* confdefs.h. */
19444 _ACEOF
19445 cat confdefs.h >>conftest.$ac_ext
19446 cat >>conftest.$ac_ext <<_ACEOF
19447 /* end confdefs.h. */
19448
19449 /* Override any GCC internal prototype to avoid an error.
19450 Use char because int might match the return type of a GCC
19451 builtin and then its argument prototype would still apply. */
19452 #ifdef __cplusplus
19453 extern "C"
19454 #endif
19455 char __res_send ();
19456 int
19457 main ()
19458 {
19459 return __res_send ();
19460 ;
19461 return 0;
19462 }
19463 _ACEOF
19464 rm -f conftest.$ac_objext conftest$ac_exeext
19465 if { (ac_try="$ac_link"
19466 case "(($ac_try" in
19467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468 *) ac_try_echo=$ac_try;;
19469 esac
19470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19471 (eval "$ac_link") 2>conftest.er1
19472 ac_status=$?
19473 grep -v '^ *+' conftest.er1 >conftest.err
19474 rm -f conftest.er1
19475 cat conftest.err >&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); } && {
19478 test -z "$ac_c_werror_flag" ||
19479 test ! -s conftest.err
19480 } && test -s conftest$ac_exeext &&
19481 $as_test_x conftest$ac_exeext; then
19482 ac_cv_lib_resolv___res_send=yes
19483 else
19484 echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19486
19487 ac_cv_lib_resolv___res_send=no
19488 fi
19489
19490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19491 conftest$ac_exeext conftest.$ac_ext
19492 LIBS=$ac_check_lib_save_LIBS
19493 fi
19494 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19495 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19496 if test $ac_cv_lib_resolv___res_send = yes; then
19497 resolv=yes
19498 fi
19499
19500 fi
19501
19502 fi
19503
19504 fi
19505
19506 if test "$resolv" = yes ; then
19507 RESOLVLIB=-lresolv
19508
19509 cat >>confdefs.h <<\_ACEOF
19510 #define HAVE_LIBRESOLV 1
19511 _ACEOF
19512
19513 else
19514 RESOLVLIB=
19515 fi
19516 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19517 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19518 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19519 echo $ECHO_N "(cached) $ECHO_C" >&6
19520 else
19521 cat >conftest.$ac_ext <<_ACEOF
19522 /* confdefs.h. */
19523 _ACEOF
19524 cat confdefs.h >>conftest.$ac_ext
19525 cat >>conftest.$ac_ext <<_ACEOF
19526 /* end confdefs.h. */
19527 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19529 #define hes_getmailhost innocuous_hes_getmailhost
19530
19531 /* System header to define __stub macros and hopefully few prototypes,
19532 which can conflict with char hes_getmailhost (); below.
19533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19534 <limits.h> exists even on freestanding compilers. */
19535
19536 #ifdef __STDC__
19537 # include <limits.h>
19538 #else
19539 # include <assert.h>
19540 #endif
19541
19542 #undef hes_getmailhost
19543
19544 /* Override any GCC internal prototype to avoid an error.
19545 Use char because int might match the return type of a GCC
19546 builtin and then its argument prototype would still apply. */
19547 #ifdef __cplusplus
19548 extern "C"
19549 #endif
19550 char hes_getmailhost ();
19551 /* The GNU C library defines this for functions which it implements
19552 to always fail with ENOSYS. Some functions are actually named
19553 something starting with __ and the normal name is an alias. */
19554 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19555 choke me
19556 #endif
19557
19558 int
19559 main ()
19560 {
19561 return hes_getmailhost ();
19562 ;
19563 return 0;
19564 }
19565 _ACEOF
19566 rm -f conftest.$ac_objext conftest$ac_exeext
19567 if { (ac_try="$ac_link"
19568 case "(($ac_try" in
19569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19570 *) ac_try_echo=$ac_try;;
19571 esac
19572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19573 (eval "$ac_link") 2>conftest.er1
19574 ac_status=$?
19575 grep -v '^ *+' conftest.er1 >conftest.err
19576 rm -f conftest.er1
19577 cat conftest.err >&5
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); } && {
19580 test -z "$ac_c_werror_flag" ||
19581 test ! -s conftest.err
19582 } && test -s conftest$ac_exeext &&
19583 $as_test_x conftest$ac_exeext; then
19584 ac_cv_func_hes_getmailhost=yes
19585 else
19586 echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19588
19589 ac_cv_func_hes_getmailhost=no
19590 fi
19591
19592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19593 conftest$ac_exeext conftest.$ac_ext
19594 fi
19595 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19596 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19597 if test $ac_cv_func_hes_getmailhost = yes; then
19598 :
19599 else
19600 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19601 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19602 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19603 echo $ECHO_N "(cached) $ECHO_C" >&6
19604 else
19605 ac_check_lib_save_LIBS=$LIBS
19606 LIBS="-lhesiod $RESOLVLIB $LIBS"
19607 cat >conftest.$ac_ext <<_ACEOF
19608 /* confdefs.h. */
19609 _ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h. */
19613
19614 /* Override any GCC internal prototype to avoid an error.
19615 Use char because int might match the return type of a GCC
19616 builtin and then its argument prototype would still apply. */
19617 #ifdef __cplusplus
19618 extern "C"
19619 #endif
19620 char hes_getmailhost ();
19621 int
19622 main ()
19623 {
19624 return hes_getmailhost ();
19625 ;
19626 return 0;
19627 }
19628 _ACEOF
19629 rm -f conftest.$ac_objext conftest$ac_exeext
19630 if { (ac_try="$ac_link"
19631 case "(($ac_try" in
19632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633 *) ac_try_echo=$ac_try;;
19634 esac
19635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636 (eval "$ac_link") 2>conftest.er1
19637 ac_status=$?
19638 grep -v '^ *+' conftest.er1 >conftest.err
19639 rm -f conftest.er1
19640 cat conftest.err >&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); } && {
19643 test -z "$ac_c_werror_flag" ||
19644 test ! -s conftest.err
19645 } && test -s conftest$ac_exeext &&
19646 $as_test_x conftest$ac_exeext; then
19647 ac_cv_lib_hesiod_hes_getmailhost=yes
19648 else
19649 echo "$as_me: failed program was:" >&5
19650 sed 's/^/| /' conftest.$ac_ext >&5
19651
19652 ac_cv_lib_hesiod_hes_getmailhost=no
19653 fi
19654
19655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19656 conftest$ac_exeext conftest.$ac_ext
19657 LIBS=$ac_check_lib_save_LIBS
19658 fi
19659 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19660 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19661 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19662
19663 cat >>confdefs.h <<\_ACEOF
19664 #define HAVE_LIBHESIOD 1
19665 _ACEOF
19666
19667 else
19668 :
19669 fi
19670
19671 fi
19672
19673 fi
19674
19675 # These tell us which Kerberos-related libraries to use.
19676 if test "${with_kerberos+set}" = set; then
19677
19678 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19679 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19680 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19681 echo $ECHO_N "(cached) $ECHO_C" >&6
19682 else
19683 ac_check_lib_save_LIBS=$LIBS
19684 LIBS="-lcom_err $LIBS"
19685 cat >conftest.$ac_ext <<_ACEOF
19686 /* confdefs.h. */
19687 _ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h. */
19691
19692 /* Override any GCC internal prototype to avoid an error.
19693 Use char because int might match the return type of a GCC
19694 builtin and then its argument prototype would still apply. */
19695 #ifdef __cplusplus
19696 extern "C"
19697 #endif
19698 char com_err ();
19699 int
19700 main ()
19701 {
19702 return com_err ();
19703 ;
19704 return 0;
19705 }
19706 _ACEOF
19707 rm -f conftest.$ac_objext conftest$ac_exeext
19708 if { (ac_try="$ac_link"
19709 case "(($ac_try" in
19710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711 *) ac_try_echo=$ac_try;;
19712 esac
19713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714 (eval "$ac_link") 2>conftest.er1
19715 ac_status=$?
19716 grep -v '^ *+' conftest.er1 >conftest.err
19717 rm -f conftest.er1
19718 cat conftest.err >&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); } && {
19721 test -z "$ac_c_werror_flag" ||
19722 test ! -s conftest.err
19723 } && test -s conftest$ac_exeext &&
19724 $as_test_x conftest$ac_exeext; then
19725 ac_cv_lib_com_err_com_err=yes
19726 else
19727 echo "$as_me: failed program was:" >&5
19728 sed 's/^/| /' conftest.$ac_ext >&5
19729
19730 ac_cv_lib_com_err_com_err=no
19731 fi
19732
19733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19734 conftest$ac_exeext conftest.$ac_ext
19735 LIBS=$ac_check_lib_save_LIBS
19736 fi
19737 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19738 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19739 if test $ac_cv_lib_com_err_com_err = yes; then
19740 cat >>confdefs.h <<_ACEOF
19741 #define HAVE_LIBCOM_ERR 1
19742 _ACEOF
19743
19744 LIBS="-lcom_err $LIBS"
19745
19746 fi
19747
19748
19749 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19750 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19751 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19752 echo $ECHO_N "(cached) $ECHO_C" >&6
19753 else
19754 ac_check_lib_save_LIBS=$LIBS
19755 LIBS="-lk5crypto $LIBS"
19756 cat >conftest.$ac_ext <<_ACEOF
19757 /* confdefs.h. */
19758 _ACEOF
19759 cat confdefs.h >>conftest.$ac_ext
19760 cat >>conftest.$ac_ext <<_ACEOF
19761 /* end confdefs.h. */
19762
19763 /* Override any GCC internal prototype to avoid an error.
19764 Use char because int might match the return type of a GCC
19765 builtin and then its argument prototype would still apply. */
19766 #ifdef __cplusplus
19767 extern "C"
19768 #endif
19769 char mit_des_cbc_encrypt ();
19770 int
19771 main ()
19772 {
19773 return mit_des_cbc_encrypt ();
19774 ;
19775 return 0;
19776 }
19777 _ACEOF
19778 rm -f conftest.$ac_objext conftest$ac_exeext
19779 if { (ac_try="$ac_link"
19780 case "(($ac_try" in
19781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19782 *) ac_try_echo=$ac_try;;
19783 esac
19784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19785 (eval "$ac_link") 2>conftest.er1
19786 ac_status=$?
19787 grep -v '^ *+' conftest.er1 >conftest.err
19788 rm -f conftest.er1
19789 cat conftest.err >&5
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); } && {
19792 test -z "$ac_c_werror_flag" ||
19793 test ! -s conftest.err
19794 } && test -s conftest$ac_exeext &&
19795 $as_test_x conftest$ac_exeext; then
19796 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19797 else
19798 echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19800
19801 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19802 fi
19803
19804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19805 conftest$ac_exeext conftest.$ac_ext
19806 LIBS=$ac_check_lib_save_LIBS
19807 fi
19808 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19809 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19810 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19811 cat >>confdefs.h <<_ACEOF
19812 #define HAVE_LIBK5CRYPTO 1
19813 _ACEOF
19814
19815 LIBS="-lk5crypto $LIBS"
19816
19817 fi
19818
19819
19820 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19821 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19822 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19823 echo $ECHO_N "(cached) $ECHO_C" >&6
19824 else
19825 ac_check_lib_save_LIBS=$LIBS
19826 LIBS="-lcrypto $LIBS"
19827 cat >conftest.$ac_ext <<_ACEOF
19828 /* confdefs.h. */
19829 _ACEOF
19830 cat confdefs.h >>conftest.$ac_ext
19831 cat >>conftest.$ac_ext <<_ACEOF
19832 /* end confdefs.h. */
19833
19834 /* Override any GCC internal prototype to avoid an error.
19835 Use char because int might match the return type of a GCC
19836 builtin and then its argument prototype would still apply. */
19837 #ifdef __cplusplus
19838 extern "C"
19839 #endif
19840 char mit_des_cbc_encrypt ();
19841 int
19842 main ()
19843 {
19844 return mit_des_cbc_encrypt ();
19845 ;
19846 return 0;
19847 }
19848 _ACEOF
19849 rm -f conftest.$ac_objext conftest$ac_exeext
19850 if { (ac_try="$ac_link"
19851 case "(($ac_try" in
19852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19853 *) ac_try_echo=$ac_try;;
19854 esac
19855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19856 (eval "$ac_link") 2>conftest.er1
19857 ac_status=$?
19858 grep -v '^ *+' conftest.er1 >conftest.err
19859 rm -f conftest.er1
19860 cat conftest.err >&5
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); } && {
19863 test -z "$ac_c_werror_flag" ||
19864 test ! -s conftest.err
19865 } && test -s conftest$ac_exeext &&
19866 $as_test_x conftest$ac_exeext; then
19867 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19868 else
19869 echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19871
19872 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19873 fi
19874
19875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19876 conftest$ac_exeext conftest.$ac_ext
19877 LIBS=$ac_check_lib_save_LIBS
19878 fi
19879 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19880 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19881 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19882 cat >>confdefs.h <<_ACEOF
19883 #define HAVE_LIBCRYPTO 1
19884 _ACEOF
19885
19886 LIBS="-lcrypto $LIBS"
19887
19888 fi
19889
19890
19891 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19892 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19893 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19894 echo $ECHO_N "(cached) $ECHO_C" >&6
19895 else
19896 ac_check_lib_save_LIBS=$LIBS
19897 LIBS="-lkrb5 $LIBS"
19898 cat >conftest.$ac_ext <<_ACEOF
19899 /* confdefs.h. */
19900 _ACEOF
19901 cat confdefs.h >>conftest.$ac_ext
19902 cat >>conftest.$ac_ext <<_ACEOF
19903 /* end confdefs.h. */
19904
19905 /* Override any GCC internal prototype to avoid an error.
19906 Use char because int might match the return type of a GCC
19907 builtin and then its argument prototype would still apply. */
19908 #ifdef __cplusplus
19909 extern "C"
19910 #endif
19911 char krb5_init_context ();
19912 int
19913 main ()
19914 {
19915 return krb5_init_context ();
19916 ;
19917 return 0;
19918 }
19919 _ACEOF
19920 rm -f conftest.$ac_objext conftest$ac_exeext
19921 if { (ac_try="$ac_link"
19922 case "(($ac_try" in
19923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924 *) ac_try_echo=$ac_try;;
19925 esac
19926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927 (eval "$ac_link") 2>conftest.er1
19928 ac_status=$?
19929 grep -v '^ *+' conftest.er1 >conftest.err
19930 rm -f conftest.er1
19931 cat conftest.err >&5
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); } && {
19934 test -z "$ac_c_werror_flag" ||
19935 test ! -s conftest.err
19936 } && test -s conftest$ac_exeext &&
19937 $as_test_x conftest$ac_exeext; then
19938 ac_cv_lib_krb5_krb5_init_context=yes
19939 else
19940 echo "$as_me: failed program was:" >&5
19941 sed 's/^/| /' conftest.$ac_ext >&5
19942
19943 ac_cv_lib_krb5_krb5_init_context=no
19944 fi
19945
19946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19947 conftest$ac_exeext conftest.$ac_ext
19948 LIBS=$ac_check_lib_save_LIBS
19949 fi
19950 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19951 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19952 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19953 cat >>confdefs.h <<_ACEOF
19954 #define HAVE_LIBKRB5 1
19955 _ACEOF
19956
19957 LIBS="-lkrb5 $LIBS"
19958
19959 fi
19960
19961 if test "${with_kerberos5+set}" != set; then
19962
19963 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19964 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
19965 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19966 echo $ECHO_N "(cached) $ECHO_C" >&6
19967 else
19968 ac_check_lib_save_LIBS=$LIBS
19969 LIBS="-ldes425 $LIBS"
19970 cat >conftest.$ac_ext <<_ACEOF
19971 /* confdefs.h. */
19972 _ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h. */
19976
19977 /* Override any GCC internal prototype to avoid an error.
19978 Use char because int might match the return type of a GCC
19979 builtin and then its argument prototype would still apply. */
19980 #ifdef __cplusplus
19981 extern "C"
19982 #endif
19983 char des_cbc_encrypt ();
19984 int
19985 main ()
19986 {
19987 return des_cbc_encrypt ();
19988 ;
19989 return 0;
19990 }
19991 _ACEOF
19992 rm -f conftest.$ac_objext conftest$ac_exeext
19993 if { (ac_try="$ac_link"
19994 case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19997 esac
19998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999 (eval "$ac_link") 2>conftest.er1
20000 ac_status=$?
20001 grep -v '^ *+' conftest.er1 >conftest.err
20002 rm -f conftest.er1
20003 cat conftest.err >&5
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } && {
20006 test -z "$ac_c_werror_flag" ||
20007 test ! -s conftest.err
20008 } && test -s conftest$ac_exeext &&
20009 $as_test_x conftest$ac_exeext; then
20010 ac_cv_lib_des425_des_cbc_encrypt=yes
20011 else
20012 echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20014
20015 ac_cv_lib_des425_des_cbc_encrypt=no
20016 fi
20017
20018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20019 conftest$ac_exeext conftest.$ac_ext
20020 LIBS=$ac_check_lib_save_LIBS
20021 fi
20022 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20023 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20024 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20025 cat >>confdefs.h <<_ACEOF
20026 #define HAVE_LIBDES425 1
20027 _ACEOF
20028
20029 LIBS="-ldes425 $LIBS"
20030
20031 else
20032
20033 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20034 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20035 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20036 echo $ECHO_N "(cached) $ECHO_C" >&6
20037 else
20038 ac_check_lib_save_LIBS=$LIBS
20039 LIBS="-ldes $LIBS"
20040 cat >conftest.$ac_ext <<_ACEOF
20041 /* confdefs.h. */
20042 _ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h. */
20046
20047 /* Override any GCC internal prototype to avoid an error.
20048 Use char because int might match the return type of a GCC
20049 builtin and then its argument prototype would still apply. */
20050 #ifdef __cplusplus
20051 extern "C"
20052 #endif
20053 char des_cbc_encrypt ();
20054 int
20055 main ()
20056 {
20057 return des_cbc_encrypt ();
20058 ;
20059 return 0;
20060 }
20061 _ACEOF
20062 rm -f conftest.$ac_objext conftest$ac_exeext
20063 if { (ac_try="$ac_link"
20064 case "(($ac_try" in
20065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20066 *) ac_try_echo=$ac_try;;
20067 esac
20068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20069 (eval "$ac_link") 2>conftest.er1
20070 ac_status=$?
20071 grep -v '^ *+' conftest.er1 >conftest.err
20072 rm -f conftest.er1
20073 cat conftest.err >&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } && {
20076 test -z "$ac_c_werror_flag" ||
20077 test ! -s conftest.err
20078 } && test -s conftest$ac_exeext &&
20079 $as_test_x conftest$ac_exeext; then
20080 ac_cv_lib_des_des_cbc_encrypt=yes
20081 else
20082 echo "$as_me: failed program was:" >&5
20083 sed 's/^/| /' conftest.$ac_ext >&5
20084
20085 ac_cv_lib_des_des_cbc_encrypt=no
20086 fi
20087
20088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20089 conftest$ac_exeext conftest.$ac_ext
20090 LIBS=$ac_check_lib_save_LIBS
20091 fi
20092 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20093 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20094 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20095 cat >>confdefs.h <<_ACEOF
20096 #define HAVE_LIBDES 1
20097 _ACEOF
20098
20099 LIBS="-ldes $LIBS"
20100
20101 fi
20102
20103 fi
20104
20105
20106 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20107 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20108 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20109 echo $ECHO_N "(cached) $ECHO_C" >&6
20110 else
20111 ac_check_lib_save_LIBS=$LIBS
20112 LIBS="-lkrb4 $LIBS"
20113 cat >conftest.$ac_ext <<_ACEOF
20114 /* confdefs.h. */
20115 _ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h. */
20119
20120 /* Override any GCC internal prototype to avoid an error.
20121 Use char because int might match the return type of a GCC
20122 builtin and then its argument prototype would still apply. */
20123 #ifdef __cplusplus
20124 extern "C"
20125 #endif
20126 char krb_get_cred ();
20127 int
20128 main ()
20129 {
20130 return krb_get_cred ();
20131 ;
20132 return 0;
20133 }
20134 _ACEOF
20135 rm -f conftest.$ac_objext conftest$ac_exeext
20136 if { (ac_try="$ac_link"
20137 case "(($ac_try" in
20138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139 *) ac_try_echo=$ac_try;;
20140 esac
20141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20142 (eval "$ac_link") 2>conftest.er1
20143 ac_status=$?
20144 grep -v '^ *+' conftest.er1 >conftest.err
20145 rm -f conftest.er1
20146 cat conftest.err >&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } && {
20149 test -z "$ac_c_werror_flag" ||
20150 test ! -s conftest.err
20151 } && test -s conftest$ac_exeext &&
20152 $as_test_x conftest$ac_exeext; then
20153 ac_cv_lib_krb4_krb_get_cred=yes
20154 else
20155 echo "$as_me: failed program was:" >&5
20156 sed 's/^/| /' conftest.$ac_ext >&5
20157
20158 ac_cv_lib_krb4_krb_get_cred=no
20159 fi
20160
20161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20162 conftest$ac_exeext conftest.$ac_ext
20163 LIBS=$ac_check_lib_save_LIBS
20164 fi
20165 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20166 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20167 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20168 cat >>confdefs.h <<_ACEOF
20169 #define HAVE_LIBKRB4 1
20170 _ACEOF
20171
20172 LIBS="-lkrb4 $LIBS"
20173
20174 else
20175
20176 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20177 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20178 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20179 echo $ECHO_N "(cached) $ECHO_C" >&6
20180 else
20181 ac_check_lib_save_LIBS=$LIBS
20182 LIBS="-lkrb $LIBS"
20183 cat >conftest.$ac_ext <<_ACEOF
20184 /* confdefs.h. */
20185 _ACEOF
20186 cat confdefs.h >>conftest.$ac_ext
20187 cat >>conftest.$ac_ext <<_ACEOF
20188 /* end confdefs.h. */
20189
20190 /* Override any GCC internal prototype to avoid an error.
20191 Use char because int might match the return type of a GCC
20192 builtin and then its argument prototype would still apply. */
20193 #ifdef __cplusplus
20194 extern "C"
20195 #endif
20196 char krb_get_cred ();
20197 int
20198 main ()
20199 {
20200 return krb_get_cred ();
20201 ;
20202 return 0;
20203 }
20204 _ACEOF
20205 rm -f conftest.$ac_objext conftest$ac_exeext
20206 if { (ac_try="$ac_link"
20207 case "(($ac_try" in
20208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209 *) ac_try_echo=$ac_try;;
20210 esac
20211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212 (eval "$ac_link") 2>conftest.er1
20213 ac_status=$?
20214 grep -v '^ *+' conftest.er1 >conftest.err
20215 rm -f conftest.er1
20216 cat conftest.err >&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); } && {
20219 test -z "$ac_c_werror_flag" ||
20220 test ! -s conftest.err
20221 } && test -s conftest$ac_exeext &&
20222 $as_test_x conftest$ac_exeext; then
20223 ac_cv_lib_krb_krb_get_cred=yes
20224 else
20225 echo "$as_me: failed program was:" >&5
20226 sed 's/^/| /' conftest.$ac_ext >&5
20227
20228 ac_cv_lib_krb_krb_get_cred=no
20229 fi
20230
20231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20232 conftest$ac_exeext conftest.$ac_ext
20233 LIBS=$ac_check_lib_save_LIBS
20234 fi
20235 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20236 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20237 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20238 cat >>confdefs.h <<_ACEOF
20239 #define HAVE_LIBKRB 1
20240 _ACEOF
20241
20242 LIBS="-lkrb $LIBS"
20243
20244 fi
20245
20246 fi
20247
20248 fi
20249
20250 if test "${with_kerberos5+set}" = set; then
20251
20252 for ac_header in krb5.h
20253 do
20254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20259 echo $ECHO_N "(cached) $ECHO_C" >&6
20260 fi
20261 ac_res=`eval echo '${'$as_ac_Header'}'`
20262 { echo "$as_me:$LINENO: result: $ac_res" >&5
20263 echo "${ECHO_T}$ac_res" >&6; }
20264 else
20265 # Is the header compilable?
20266 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20268 cat >conftest.$ac_ext <<_ACEOF
20269 /* confdefs.h. */
20270 _ACEOF
20271 cat confdefs.h >>conftest.$ac_ext
20272 cat >>conftest.$ac_ext <<_ACEOF
20273 /* end confdefs.h. */
20274 $ac_includes_default
20275 #include <$ac_header>
20276 _ACEOF
20277 rm -f conftest.$ac_objext
20278 if { (ac_try="$ac_compile"
20279 case "(($ac_try" in
20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281 *) ac_try_echo=$ac_try;;
20282 esac
20283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20284 (eval "$ac_compile") 2>conftest.er1
20285 ac_status=$?
20286 grep -v '^ *+' conftest.er1 >conftest.err
20287 rm -f conftest.er1
20288 cat conftest.err >&5
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); } && {
20291 test -z "$ac_c_werror_flag" ||
20292 test ! -s conftest.err
20293 } && test -s conftest.$ac_objext; then
20294 ac_header_compiler=yes
20295 else
20296 echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20298
20299 ac_header_compiler=no
20300 fi
20301
20302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20304 echo "${ECHO_T}$ac_header_compiler" >&6; }
20305
20306 # Is the header present?
20307 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20309 cat >conftest.$ac_ext <<_ACEOF
20310 /* confdefs.h. */
20311 _ACEOF
20312 cat confdefs.h >>conftest.$ac_ext
20313 cat >>conftest.$ac_ext <<_ACEOF
20314 /* end confdefs.h. */
20315 #include <$ac_header>
20316 _ACEOF
20317 if { (ac_try="$ac_cpp conftest.$ac_ext"
20318 case "(($ac_try" in
20319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20320 *) ac_try_echo=$ac_try;;
20321 esac
20322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20324 ac_status=$?
20325 grep -v '^ *+' conftest.er1 >conftest.err
20326 rm -f conftest.er1
20327 cat conftest.err >&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); } >/dev/null && {
20330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20331 test ! -s conftest.err
20332 }; then
20333 ac_header_preproc=yes
20334 else
20335 echo "$as_me: failed program was:" >&5
20336 sed 's/^/| /' conftest.$ac_ext >&5
20337
20338 ac_header_preproc=no
20339 fi
20340
20341 rm -f conftest.err conftest.$ac_ext
20342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20343 echo "${ECHO_T}$ac_header_preproc" >&6; }
20344
20345 # So? What about this header?
20346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20347 yes:no: )
20348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20352 ac_header_preproc=yes
20353 ;;
20354 no:yes:* )
20355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20362 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20367
20368 ;;
20369 esac
20370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20373 echo $ECHO_N "(cached) $ECHO_C" >&6
20374 else
20375 eval "$as_ac_Header=\$ac_header_preproc"
20376 fi
20377 ac_res=`eval echo '${'$as_ac_Header'}'`
20378 { echo "$as_me:$LINENO: result: $ac_res" >&5
20379 echo "${ECHO_T}$ac_res" >&6; }
20380
20381 fi
20382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20383 cat >>confdefs.h <<_ACEOF
20384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20385 _ACEOF
20386
20387 fi
20388
20389 done
20390
20391 else
20392
20393 for ac_header in des.h
20394 do
20395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20400 echo $ECHO_N "(cached) $ECHO_C" >&6
20401 fi
20402 ac_res=`eval echo '${'$as_ac_Header'}'`
20403 { echo "$as_me:$LINENO: result: $ac_res" >&5
20404 echo "${ECHO_T}$ac_res" >&6; }
20405 else
20406 # Is the header compilable?
20407 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20409 cat >conftest.$ac_ext <<_ACEOF
20410 /* confdefs.h. */
20411 _ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h. */
20415 $ac_includes_default
20416 #include <$ac_header>
20417 _ACEOF
20418 rm -f conftest.$ac_objext
20419 if { (ac_try="$ac_compile"
20420 case "(($ac_try" in
20421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422 *) ac_try_echo=$ac_try;;
20423 esac
20424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20425 (eval "$ac_compile") 2>conftest.er1
20426 ac_status=$?
20427 grep -v '^ *+' conftest.er1 >conftest.err
20428 rm -f conftest.er1
20429 cat conftest.err >&5
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); } && {
20432 test -z "$ac_c_werror_flag" ||
20433 test ! -s conftest.err
20434 } && test -s conftest.$ac_objext; then
20435 ac_header_compiler=yes
20436 else
20437 echo "$as_me: failed program was:" >&5
20438 sed 's/^/| /' conftest.$ac_ext >&5
20439
20440 ac_header_compiler=no
20441 fi
20442
20443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20445 echo "${ECHO_T}$ac_header_compiler" >&6; }
20446
20447 # Is the header present?
20448 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20450 cat >conftest.$ac_ext <<_ACEOF
20451 /* confdefs.h. */
20452 _ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h. */
20456 #include <$ac_header>
20457 _ACEOF
20458 if { (ac_try="$ac_cpp conftest.$ac_ext"
20459 case "(($ac_try" in
20460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461 *) ac_try_echo=$ac_try;;
20462 esac
20463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20465 ac_status=$?
20466 grep -v '^ *+' conftest.er1 >conftest.err
20467 rm -f conftest.er1
20468 cat conftest.err >&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); } >/dev/null && {
20471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20472 test ! -s conftest.err
20473 }; then
20474 ac_header_preproc=yes
20475 else
20476 echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20478
20479 ac_header_preproc=no
20480 fi
20481
20482 rm -f conftest.err conftest.$ac_ext
20483 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20484 echo "${ECHO_T}$ac_header_preproc" >&6; }
20485
20486 # So? What about this header?
20487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20488 yes:no: )
20489 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20493 ac_header_preproc=yes
20494 ;;
20495 no:yes:* )
20496 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20498 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20499 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20500 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20502 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20503 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20506 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20508
20509 ;;
20510 esac
20511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20514 echo $ECHO_N "(cached) $ECHO_C" >&6
20515 else
20516 eval "$as_ac_Header=\$ac_header_preproc"
20517 fi
20518 ac_res=`eval echo '${'$as_ac_Header'}'`
20519 { echo "$as_me:$LINENO: result: $ac_res" >&5
20520 echo "${ECHO_T}$ac_res" >&6; }
20521
20522 fi
20523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20524 cat >>confdefs.h <<_ACEOF
20525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20526 _ACEOF
20527
20528 else
20529
20530 for ac_header in kerberosIV/des.h
20531 do
20532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20537 echo $ECHO_N "(cached) $ECHO_C" >&6
20538 fi
20539 ac_res=`eval echo '${'$as_ac_Header'}'`
20540 { echo "$as_me:$LINENO: result: $ac_res" >&5
20541 echo "${ECHO_T}$ac_res" >&6; }
20542 else
20543 # Is the header compilable?
20544 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20546 cat >conftest.$ac_ext <<_ACEOF
20547 /* confdefs.h. */
20548 _ACEOF
20549 cat confdefs.h >>conftest.$ac_ext
20550 cat >>conftest.$ac_ext <<_ACEOF
20551 /* end confdefs.h. */
20552 $ac_includes_default
20553 #include <$ac_header>
20554 _ACEOF
20555 rm -f conftest.$ac_objext
20556 if { (ac_try="$ac_compile"
20557 case "(($ac_try" in
20558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559 *) ac_try_echo=$ac_try;;
20560 esac
20561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562 (eval "$ac_compile") 2>conftest.er1
20563 ac_status=$?
20564 grep -v '^ *+' conftest.er1 >conftest.err
20565 rm -f conftest.er1
20566 cat conftest.err >&5
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); } && {
20569 test -z "$ac_c_werror_flag" ||
20570 test ! -s conftest.err
20571 } && test -s conftest.$ac_objext; then
20572 ac_header_compiler=yes
20573 else
20574 echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20576
20577 ac_header_compiler=no
20578 fi
20579
20580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20582 echo "${ECHO_T}$ac_header_compiler" >&6; }
20583
20584 # Is the header present?
20585 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20587 cat >conftest.$ac_ext <<_ACEOF
20588 /* confdefs.h. */
20589 _ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h. */
20593 #include <$ac_header>
20594 _ACEOF
20595 if { (ac_try="$ac_cpp conftest.$ac_ext"
20596 case "(($ac_try" in
20597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20598 *) ac_try_echo=$ac_try;;
20599 esac
20600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20602 ac_status=$?
20603 grep -v '^ *+' conftest.er1 >conftest.err
20604 rm -f conftest.er1
20605 cat conftest.err >&5
20606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); } >/dev/null && {
20608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20609 test ! -s conftest.err
20610 }; then
20611 ac_header_preproc=yes
20612 else
20613 echo "$as_me: failed program was:" >&5
20614 sed 's/^/| /' conftest.$ac_ext >&5
20615
20616 ac_header_preproc=no
20617 fi
20618
20619 rm -f conftest.err conftest.$ac_ext
20620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20621 echo "${ECHO_T}$ac_header_preproc" >&6; }
20622
20623 # So? What about this header?
20624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20625 yes:no: )
20626 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20627 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20629 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20630 ac_header_preproc=yes
20631 ;;
20632 no:yes:* )
20633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20636 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20637 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20638 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20639 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20640 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20643 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20644 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20645
20646 ;;
20647 esac
20648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20651 echo $ECHO_N "(cached) $ECHO_C" >&6
20652 else
20653 eval "$as_ac_Header=\$ac_header_preproc"
20654 fi
20655 ac_res=`eval echo '${'$as_ac_Header'}'`
20656 { echo "$as_me:$LINENO: result: $ac_res" >&5
20657 echo "${ECHO_T}$ac_res" >&6; }
20658
20659 fi
20660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20661 cat >>confdefs.h <<_ACEOF
20662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20663 _ACEOF
20664
20665 else
20666
20667 for ac_header in kerberos/des.h
20668 do
20669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20674 echo $ECHO_N "(cached) $ECHO_C" >&6
20675 fi
20676 ac_res=`eval echo '${'$as_ac_Header'}'`
20677 { echo "$as_me:$LINENO: result: $ac_res" >&5
20678 echo "${ECHO_T}$ac_res" >&6; }
20679 else
20680 # Is the header compilable?
20681 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20683 cat >conftest.$ac_ext <<_ACEOF
20684 /* confdefs.h. */
20685 _ACEOF
20686 cat confdefs.h >>conftest.$ac_ext
20687 cat >>conftest.$ac_ext <<_ACEOF
20688 /* end confdefs.h. */
20689 $ac_includes_default
20690 #include <$ac_header>
20691 _ACEOF
20692 rm -f conftest.$ac_objext
20693 if { (ac_try="$ac_compile"
20694 case "(($ac_try" in
20695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696 *) ac_try_echo=$ac_try;;
20697 esac
20698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699 (eval "$ac_compile") 2>conftest.er1
20700 ac_status=$?
20701 grep -v '^ *+' conftest.er1 >conftest.err
20702 rm -f conftest.er1
20703 cat conftest.err >&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); } && {
20706 test -z "$ac_c_werror_flag" ||
20707 test ! -s conftest.err
20708 } && test -s conftest.$ac_objext; then
20709 ac_header_compiler=yes
20710 else
20711 echo "$as_me: failed program was:" >&5
20712 sed 's/^/| /' conftest.$ac_ext >&5
20713
20714 ac_header_compiler=no
20715 fi
20716
20717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20718 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20719 echo "${ECHO_T}$ac_header_compiler" >&6; }
20720
20721 # Is the header present?
20722 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20724 cat >conftest.$ac_ext <<_ACEOF
20725 /* confdefs.h. */
20726 _ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h. */
20730 #include <$ac_header>
20731 _ACEOF
20732 if { (ac_try="$ac_cpp conftest.$ac_ext"
20733 case "(($ac_try" in
20734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735 *) ac_try_echo=$ac_try;;
20736 esac
20737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20739 ac_status=$?
20740 grep -v '^ *+' conftest.er1 >conftest.err
20741 rm -f conftest.er1
20742 cat conftest.err >&5
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); } >/dev/null && {
20745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20746 test ! -s conftest.err
20747 }; then
20748 ac_header_preproc=yes
20749 else
20750 echo "$as_me: failed program was:" >&5
20751 sed 's/^/| /' conftest.$ac_ext >&5
20752
20753 ac_header_preproc=no
20754 fi
20755
20756 rm -f conftest.err conftest.$ac_ext
20757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20758 echo "${ECHO_T}$ac_header_preproc" >&6; }
20759
20760 # So? What about this header?
20761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20762 yes:no: )
20763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20767 ac_header_preproc=yes
20768 ;;
20769 no:yes:* )
20770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20777 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20782
20783 ;;
20784 esac
20785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20788 echo $ECHO_N "(cached) $ECHO_C" >&6
20789 else
20790 eval "$as_ac_Header=\$ac_header_preproc"
20791 fi
20792 ac_res=`eval echo '${'$as_ac_Header'}'`
20793 { echo "$as_me:$LINENO: result: $ac_res" >&5
20794 echo "${ECHO_T}$ac_res" >&6; }
20795
20796 fi
20797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20798 cat >>confdefs.h <<_ACEOF
20799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20800 _ACEOF
20801
20802 fi
20803
20804 done
20805
20806 fi
20807
20808 done
20809
20810 fi
20811
20812 done
20813
20814
20815 for ac_header in krb.h
20816 do
20817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20822 echo $ECHO_N "(cached) $ECHO_C" >&6
20823 fi
20824 ac_res=`eval echo '${'$as_ac_Header'}'`
20825 { echo "$as_me:$LINENO: result: $ac_res" >&5
20826 echo "${ECHO_T}$ac_res" >&6; }
20827 else
20828 # Is the header compilable?
20829 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20831 cat >conftest.$ac_ext <<_ACEOF
20832 /* confdefs.h. */
20833 _ACEOF
20834 cat confdefs.h >>conftest.$ac_ext
20835 cat >>conftest.$ac_ext <<_ACEOF
20836 /* end confdefs.h. */
20837 $ac_includes_default
20838 #include <$ac_header>
20839 _ACEOF
20840 rm -f conftest.$ac_objext
20841 if { (ac_try="$ac_compile"
20842 case "(($ac_try" in
20843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20844 *) ac_try_echo=$ac_try;;
20845 esac
20846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20847 (eval "$ac_compile") 2>conftest.er1
20848 ac_status=$?
20849 grep -v '^ *+' conftest.er1 >conftest.err
20850 rm -f conftest.er1
20851 cat conftest.err >&5
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); } && {
20854 test -z "$ac_c_werror_flag" ||
20855 test ! -s conftest.err
20856 } && test -s conftest.$ac_objext; then
20857 ac_header_compiler=yes
20858 else
20859 echo "$as_me: failed program was:" >&5
20860 sed 's/^/| /' conftest.$ac_ext >&5
20861
20862 ac_header_compiler=no
20863 fi
20864
20865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20867 echo "${ECHO_T}$ac_header_compiler" >&6; }
20868
20869 # Is the header present?
20870 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20872 cat >conftest.$ac_ext <<_ACEOF
20873 /* confdefs.h. */
20874 _ACEOF
20875 cat confdefs.h >>conftest.$ac_ext
20876 cat >>conftest.$ac_ext <<_ACEOF
20877 /* end confdefs.h. */
20878 #include <$ac_header>
20879 _ACEOF
20880 if { (ac_try="$ac_cpp conftest.$ac_ext"
20881 case "(($ac_try" in
20882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20883 *) ac_try_echo=$ac_try;;
20884 esac
20885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20887 ac_status=$?
20888 grep -v '^ *+' conftest.er1 >conftest.err
20889 rm -f conftest.er1
20890 cat conftest.err >&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); } >/dev/null && {
20893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20894 test ! -s conftest.err
20895 }; then
20896 ac_header_preproc=yes
20897 else
20898 echo "$as_me: failed program was:" >&5
20899 sed 's/^/| /' conftest.$ac_ext >&5
20900
20901 ac_header_preproc=no
20902 fi
20903
20904 rm -f conftest.err conftest.$ac_ext
20905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20906 echo "${ECHO_T}$ac_header_preproc" >&6; }
20907
20908 # So? What about this header?
20909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20910 yes:no: )
20911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20915 ac_header_preproc=yes
20916 ;;
20917 no:yes:* )
20918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20925 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20930
20931 ;;
20932 esac
20933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20936 echo $ECHO_N "(cached) $ECHO_C" >&6
20937 else
20938 eval "$as_ac_Header=\$ac_header_preproc"
20939 fi
20940 ac_res=`eval echo '${'$as_ac_Header'}'`
20941 { echo "$as_me:$LINENO: result: $ac_res" >&5
20942 echo "${ECHO_T}$ac_res" >&6; }
20943
20944 fi
20945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20946 cat >>confdefs.h <<_ACEOF
20947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20948 _ACEOF
20949
20950 else
20951
20952 for ac_header in kerberosIV/krb.h
20953 do
20954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20959 echo $ECHO_N "(cached) $ECHO_C" >&6
20960 fi
20961 ac_res=`eval echo '${'$as_ac_Header'}'`
20962 { echo "$as_me:$LINENO: result: $ac_res" >&5
20963 echo "${ECHO_T}$ac_res" >&6; }
20964 else
20965 # Is the header compilable?
20966 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20968 cat >conftest.$ac_ext <<_ACEOF
20969 /* confdefs.h. */
20970 _ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h. */
20974 $ac_includes_default
20975 #include <$ac_header>
20976 _ACEOF
20977 rm -f conftest.$ac_objext
20978 if { (ac_try="$ac_compile"
20979 case "(($ac_try" in
20980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20981 *) ac_try_echo=$ac_try;;
20982 esac
20983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20984 (eval "$ac_compile") 2>conftest.er1
20985 ac_status=$?
20986 grep -v '^ *+' conftest.er1 >conftest.err
20987 rm -f conftest.er1
20988 cat conftest.err >&5
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); } && {
20991 test -z "$ac_c_werror_flag" ||
20992 test ! -s conftest.err
20993 } && test -s conftest.$ac_objext; then
20994 ac_header_compiler=yes
20995 else
20996 echo "$as_me: failed program was:" >&5
20997 sed 's/^/| /' conftest.$ac_ext >&5
20998
20999 ac_header_compiler=no
21000 fi
21001
21002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21003 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21004 echo "${ECHO_T}$ac_header_compiler" >&6; }
21005
21006 # Is the header present?
21007 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21009 cat >conftest.$ac_ext <<_ACEOF
21010 /* confdefs.h. */
21011 _ACEOF
21012 cat confdefs.h >>conftest.$ac_ext
21013 cat >>conftest.$ac_ext <<_ACEOF
21014 /* end confdefs.h. */
21015 #include <$ac_header>
21016 _ACEOF
21017 if { (ac_try="$ac_cpp conftest.$ac_ext"
21018 case "(($ac_try" in
21019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21020 *) ac_try_echo=$ac_try;;
21021 esac
21022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21024 ac_status=$?
21025 grep -v '^ *+' conftest.er1 >conftest.err
21026 rm -f conftest.er1
21027 cat conftest.err >&5
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); } >/dev/null && {
21030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21031 test ! -s conftest.err
21032 }; then
21033 ac_header_preproc=yes
21034 else
21035 echo "$as_me: failed program was:" >&5
21036 sed 's/^/| /' conftest.$ac_ext >&5
21037
21038 ac_header_preproc=no
21039 fi
21040
21041 rm -f conftest.err conftest.$ac_ext
21042 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21043 echo "${ECHO_T}$ac_header_preproc" >&6; }
21044
21045 # So? What about this header?
21046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21047 yes:no: )
21048 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21049 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21051 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21052 ac_header_preproc=yes
21053 ;;
21054 no:yes:* )
21055 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21056 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21057 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21058 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21059 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21060 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21061 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21062 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21065 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21066 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21067
21068 ;;
21069 esac
21070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21073 echo $ECHO_N "(cached) $ECHO_C" >&6
21074 else
21075 eval "$as_ac_Header=\$ac_header_preproc"
21076 fi
21077 ac_res=`eval echo '${'$as_ac_Header'}'`
21078 { echo "$as_me:$LINENO: result: $ac_res" >&5
21079 echo "${ECHO_T}$ac_res" >&6; }
21080
21081 fi
21082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21083 cat >>confdefs.h <<_ACEOF
21084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21085 _ACEOF
21086
21087 else
21088
21089 for ac_header in kerberos/krb.h
21090 do
21091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21093 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21096 echo $ECHO_N "(cached) $ECHO_C" >&6
21097 fi
21098 ac_res=`eval echo '${'$as_ac_Header'}'`
21099 { echo "$as_me:$LINENO: result: $ac_res" >&5
21100 echo "${ECHO_T}$ac_res" >&6; }
21101 else
21102 # Is the header compilable?
21103 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21105 cat >conftest.$ac_ext <<_ACEOF
21106 /* confdefs.h. */
21107 _ACEOF
21108 cat confdefs.h >>conftest.$ac_ext
21109 cat >>conftest.$ac_ext <<_ACEOF
21110 /* end confdefs.h. */
21111 $ac_includes_default
21112 #include <$ac_header>
21113 _ACEOF
21114 rm -f conftest.$ac_objext
21115 if { (ac_try="$ac_compile"
21116 case "(($ac_try" in
21117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118 *) ac_try_echo=$ac_try;;
21119 esac
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121 (eval "$ac_compile") 2>conftest.er1
21122 ac_status=$?
21123 grep -v '^ *+' conftest.er1 >conftest.err
21124 rm -f conftest.er1
21125 cat conftest.err >&5
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); } && {
21128 test -z "$ac_c_werror_flag" ||
21129 test ! -s conftest.err
21130 } && test -s conftest.$ac_objext; then
21131 ac_header_compiler=yes
21132 else
21133 echo "$as_me: failed program was:" >&5
21134 sed 's/^/| /' conftest.$ac_ext >&5
21135
21136 ac_header_compiler=no
21137 fi
21138
21139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21140 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21141 echo "${ECHO_T}$ac_header_compiler" >&6; }
21142
21143 # Is the header present?
21144 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21146 cat >conftest.$ac_ext <<_ACEOF
21147 /* confdefs.h. */
21148 _ACEOF
21149 cat confdefs.h >>conftest.$ac_ext
21150 cat >>conftest.$ac_ext <<_ACEOF
21151 /* end confdefs.h. */
21152 #include <$ac_header>
21153 _ACEOF
21154 if { (ac_try="$ac_cpp conftest.$ac_ext"
21155 case "(($ac_try" in
21156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21157 *) ac_try_echo=$ac_try;;
21158 esac
21159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21161 ac_status=$?
21162 grep -v '^ *+' conftest.er1 >conftest.err
21163 rm -f conftest.er1
21164 cat conftest.err >&5
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); } >/dev/null && {
21167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21168 test ! -s conftest.err
21169 }; then
21170 ac_header_preproc=yes
21171 else
21172 echo "$as_me: failed program was:" >&5
21173 sed 's/^/| /' conftest.$ac_ext >&5
21174
21175 ac_header_preproc=no
21176 fi
21177
21178 rm -f conftest.err conftest.$ac_ext
21179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21180 echo "${ECHO_T}$ac_header_preproc" >&6; }
21181
21182 # So? What about this header?
21183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21184 yes:no: )
21185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21189 ac_header_preproc=yes
21190 ;;
21191 no:yes:* )
21192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21195 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21199 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21204
21205 ;;
21206 esac
21207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21210 echo $ECHO_N "(cached) $ECHO_C" >&6
21211 else
21212 eval "$as_ac_Header=\$ac_header_preproc"
21213 fi
21214 ac_res=`eval echo '${'$as_ac_Header'}'`
21215 { echo "$as_me:$LINENO: result: $ac_res" >&5
21216 echo "${ECHO_T}$ac_res" >&6; }
21217
21218 fi
21219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21220 cat >>confdefs.h <<_ACEOF
21221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21222 _ACEOF
21223
21224 fi
21225
21226 done
21227
21228 fi
21229
21230 done
21231
21232 fi
21233
21234 done
21235
21236 fi
21237
21238 for ac_header in com_err.h
21239 do
21240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21245 echo $ECHO_N "(cached) $ECHO_C" >&6
21246 fi
21247 ac_res=`eval echo '${'$as_ac_Header'}'`
21248 { echo "$as_me:$LINENO: result: $ac_res" >&5
21249 echo "${ECHO_T}$ac_res" >&6; }
21250 else
21251 # Is the header compilable?
21252 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21254 cat >conftest.$ac_ext <<_ACEOF
21255 /* confdefs.h. */
21256 _ACEOF
21257 cat confdefs.h >>conftest.$ac_ext
21258 cat >>conftest.$ac_ext <<_ACEOF
21259 /* end confdefs.h. */
21260 $ac_includes_default
21261 #include <$ac_header>
21262 _ACEOF
21263 rm -f conftest.$ac_objext
21264 if { (ac_try="$ac_compile"
21265 case "(($ac_try" in
21266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21267 *) ac_try_echo=$ac_try;;
21268 esac
21269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21270 (eval "$ac_compile") 2>conftest.er1
21271 ac_status=$?
21272 grep -v '^ *+' conftest.er1 >conftest.err
21273 rm -f conftest.er1
21274 cat conftest.err >&5
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); } && {
21277 test -z "$ac_c_werror_flag" ||
21278 test ! -s conftest.err
21279 } && test -s conftest.$ac_objext; then
21280 ac_header_compiler=yes
21281 else
21282 echo "$as_me: failed program was:" >&5
21283 sed 's/^/| /' conftest.$ac_ext >&5
21284
21285 ac_header_compiler=no
21286 fi
21287
21288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21289 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21290 echo "${ECHO_T}$ac_header_compiler" >&6; }
21291
21292 # Is the header present?
21293 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21295 cat >conftest.$ac_ext <<_ACEOF
21296 /* confdefs.h. */
21297 _ACEOF
21298 cat confdefs.h >>conftest.$ac_ext
21299 cat >>conftest.$ac_ext <<_ACEOF
21300 /* end confdefs.h. */
21301 #include <$ac_header>
21302 _ACEOF
21303 if { (ac_try="$ac_cpp conftest.$ac_ext"
21304 case "(($ac_try" in
21305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21306 *) ac_try_echo=$ac_try;;
21307 esac
21308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21310 ac_status=$?
21311 grep -v '^ *+' conftest.er1 >conftest.err
21312 rm -f conftest.er1
21313 cat conftest.err >&5
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); } >/dev/null && {
21316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21317 test ! -s conftest.err
21318 }; then
21319 ac_header_preproc=yes
21320 else
21321 echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21323
21324 ac_header_preproc=no
21325 fi
21326
21327 rm -f conftest.err conftest.$ac_ext
21328 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21329 echo "${ECHO_T}$ac_header_preproc" >&6; }
21330
21331 # So? What about this header?
21332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21333 yes:no: )
21334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21338 ac_header_preproc=yes
21339 ;;
21340 no:yes:* )
21341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21344 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21345 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21346 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21347 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21348 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21351 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21352 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21353
21354 ;;
21355 esac
21356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21359 echo $ECHO_N "(cached) $ECHO_C" >&6
21360 else
21361 eval "$as_ac_Header=\$ac_header_preproc"
21362 fi
21363 ac_res=`eval echo '${'$as_ac_Header'}'`
21364 { echo "$as_me:$LINENO: result: $ac_res" >&5
21365 echo "${ECHO_T}$ac_res" >&6; }
21366
21367 fi
21368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21369 cat >>confdefs.h <<_ACEOF
21370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21371 _ACEOF
21372
21373 fi
21374
21375 done
21376
21377 fi
21378
21379 # Solaris requires -lintl if you want strerror (which calls dgettext)
21380 # to return localized messages.
21381
21382 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21383 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21384 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21385 echo $ECHO_N "(cached) $ECHO_C" >&6
21386 else
21387 ac_check_lib_save_LIBS=$LIBS
21388 LIBS="-lintl $LIBS"
21389 cat >conftest.$ac_ext <<_ACEOF
21390 /* confdefs.h. */
21391 _ACEOF
21392 cat confdefs.h >>conftest.$ac_ext
21393 cat >>conftest.$ac_ext <<_ACEOF
21394 /* end confdefs.h. */
21395
21396 /* Override any GCC internal prototype to avoid an error.
21397 Use char because int might match the return type of a GCC
21398 builtin and then its argument prototype would still apply. */
21399 #ifdef __cplusplus
21400 extern "C"
21401 #endif
21402 char dgettext ();
21403 int
21404 main ()
21405 {
21406 return dgettext ();
21407 ;
21408 return 0;
21409 }
21410 _ACEOF
21411 rm -f conftest.$ac_objext conftest$ac_exeext
21412 if { (ac_try="$ac_link"
21413 case "(($ac_try" in
21414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21415 *) ac_try_echo=$ac_try;;
21416 esac
21417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21418 (eval "$ac_link") 2>conftest.er1
21419 ac_status=$?
21420 grep -v '^ *+' conftest.er1 >conftest.err
21421 rm -f conftest.er1
21422 cat conftest.err >&5
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); } && {
21425 test -z "$ac_c_werror_flag" ||
21426 test ! -s conftest.err
21427 } && test -s conftest$ac_exeext &&
21428 $as_test_x conftest$ac_exeext; then
21429 ac_cv_lib_intl_dgettext=yes
21430 else
21431 echo "$as_me: failed program was:" >&5
21432 sed 's/^/| /' conftest.$ac_ext >&5
21433
21434 ac_cv_lib_intl_dgettext=no
21435 fi
21436
21437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21438 conftest$ac_exeext conftest.$ac_ext
21439 LIBS=$ac_check_lib_save_LIBS
21440 fi
21441 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21442 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21443 if test $ac_cv_lib_intl_dgettext = yes; then
21444 cat >>confdefs.h <<_ACEOF
21445 #define HAVE_LIBINTL 1
21446 _ACEOF
21447
21448 LIBS="-lintl $LIBS"
21449
21450 fi
21451
21452
21453 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21454 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21455 if test "${emacs_cv_localtime_cache+set}" = set; then
21456 echo $ECHO_N "(cached) $ECHO_C" >&6
21457 else
21458 if test x$ac_cv_func_tzset = xyes; then
21459 if test "$cross_compiling" = yes; then
21460 # If we have tzset, assume the worst when cross-compiling.
21461 emacs_cv_localtime_cache=yes
21462 else
21463 cat >conftest.$ac_ext <<_ACEOF
21464 /* confdefs.h. */
21465 _ACEOF
21466 cat confdefs.h >>conftest.$ac_ext
21467 cat >>conftest.$ac_ext <<_ACEOF
21468 /* end confdefs.h. */
21469 #include <time.h>
21470 extern char **environ;
21471 unset_TZ ()
21472 {
21473 char **from, **to;
21474 for (to = from = environ; (*to = *from); from++)
21475 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21476 to++;
21477 }
21478 char TZ_GMT0[] = "TZ=GMT0";
21479 char TZ_PST8[] = "TZ=PST8";
21480 main()
21481 {
21482 time_t now = time ((time_t *) 0);
21483 int hour_GMT0, hour_unset;
21484 if (putenv (TZ_GMT0) != 0)
21485 exit (1);
21486 hour_GMT0 = localtime (&now)->tm_hour;
21487 unset_TZ ();
21488 hour_unset = localtime (&now)->tm_hour;
21489 if (putenv (TZ_PST8) != 0)
21490 exit (1);
21491 if (localtime (&now)->tm_hour == hour_GMT0)
21492 exit (1);
21493 unset_TZ ();
21494 if (localtime (&now)->tm_hour != hour_unset)
21495 exit (1);
21496 exit (0);
21497 }
21498 _ACEOF
21499 rm -f conftest$ac_exeext
21500 if { (ac_try="$ac_link"
21501 case "(($ac_try" in
21502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21503 *) ac_try_echo=$ac_try;;
21504 esac
21505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21506 (eval "$ac_link") 2>&5
21507 ac_status=$?
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21510 { (case "(($ac_try" in
21511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21512 *) ac_try_echo=$ac_try;;
21513 esac
21514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21515 (eval "$ac_try") 2>&5
21516 ac_status=$?
21517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518 (exit $ac_status); }; }; then
21519 emacs_cv_localtime_cache=no
21520 else
21521 echo "$as_me: program exited with status $ac_status" >&5
21522 echo "$as_me: failed program was:" >&5
21523 sed 's/^/| /' conftest.$ac_ext >&5
21524
21525 ( exit $ac_status )
21526 emacs_cv_localtime_cache=yes
21527 fi
21528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21529 fi
21530
21531
21532 else
21533 # If we lack tzset, report that localtime does not cache TZ,
21534 # since we can't invalidate the cache if we don't have tzset.
21535 emacs_cv_localtime_cache=no
21536 fi
21537 fi
21538 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21539 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21540 if test $emacs_cv_localtime_cache = yes; then
21541
21542 cat >>confdefs.h <<\_ACEOF
21543 #define LOCALTIME_CACHE 1
21544 _ACEOF
21545
21546 fi
21547
21548 if test "x$HAVE_TIMEVAL" = xyes; then
21549
21550 for ac_func in gettimeofday
21551 do
21552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21553 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21555 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21556 echo $ECHO_N "(cached) $ECHO_C" >&6
21557 else
21558 cat >conftest.$ac_ext <<_ACEOF
21559 /* confdefs.h. */
21560 _ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h. */
21564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21566 #define $ac_func innocuous_$ac_func
21567
21568 /* System header to define __stub macros and hopefully few prototypes,
21569 which can conflict with char $ac_func (); below.
21570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21571 <limits.h> exists even on freestanding compilers. */
21572
21573 #ifdef __STDC__
21574 # include <limits.h>
21575 #else
21576 # include <assert.h>
21577 #endif
21578
21579 #undef $ac_func
21580
21581 /* Override any GCC internal prototype to avoid an error.
21582 Use char because int might match the return type of a GCC
21583 builtin and then its argument prototype would still apply. */
21584 #ifdef __cplusplus
21585 extern "C"
21586 #endif
21587 char $ac_func ();
21588 /* The GNU C library defines this for functions which it implements
21589 to always fail with ENOSYS. Some functions are actually named
21590 something starting with __ and the normal name is an alias. */
21591 #if defined __stub_$ac_func || defined __stub___$ac_func
21592 choke me
21593 #endif
21594
21595 int
21596 main ()
21597 {
21598 return $ac_func ();
21599 ;
21600 return 0;
21601 }
21602 _ACEOF
21603 rm -f conftest.$ac_objext conftest$ac_exeext
21604 if { (ac_try="$ac_link"
21605 case "(($ac_try" in
21606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21607 *) ac_try_echo=$ac_try;;
21608 esac
21609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21610 (eval "$ac_link") 2>conftest.er1
21611 ac_status=$?
21612 grep -v '^ *+' conftest.er1 >conftest.err
21613 rm -f conftest.er1
21614 cat conftest.err >&5
21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); } && {
21617 test -z "$ac_c_werror_flag" ||
21618 test ! -s conftest.err
21619 } && test -s conftest$ac_exeext &&
21620 $as_test_x conftest$ac_exeext; then
21621 eval "$as_ac_var=yes"
21622 else
21623 echo "$as_me: failed program was:" >&5
21624 sed 's/^/| /' conftest.$ac_ext >&5
21625
21626 eval "$as_ac_var=no"
21627 fi
21628
21629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21630 conftest$ac_exeext conftest.$ac_ext
21631 fi
21632 ac_res=`eval echo '${'$as_ac_var'}'`
21633 { echo "$as_me:$LINENO: result: $ac_res" >&5
21634 echo "${ECHO_T}$ac_res" >&6; }
21635 if test `eval echo '${'$as_ac_var'}'` = yes; then
21636 cat >>confdefs.h <<_ACEOF
21637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21638 _ACEOF
21639
21640 fi
21641 done
21642
21643 if test $ac_cv_func_gettimeofday = yes; then
21644 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21645 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21646 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21647 echo $ECHO_N "(cached) $ECHO_C" >&6
21648 else
21649 cat >conftest.$ac_ext <<_ACEOF
21650 /* confdefs.h. */
21651 _ACEOF
21652 cat confdefs.h >>conftest.$ac_ext
21653 cat >>conftest.$ac_ext <<_ACEOF
21654 /* end confdefs.h. */
21655
21656 #ifdef TIME_WITH_SYS_TIME
21657 #include <sys/time.h>
21658 #include <time.h>
21659 #else
21660 #ifdef HAVE_SYS_TIME_H
21661 #include <sys/time.h>
21662 #else
21663 #include <time.h>
21664 #endif
21665 #endif
21666 int
21667 main ()
21668 {
21669 struct timeval time;
21670 gettimeofday (&time, 0);
21671 ;
21672 return 0;
21673 }
21674 _ACEOF
21675 rm -f conftest.$ac_objext
21676 if { (ac_try="$ac_compile"
21677 case "(($ac_try" in
21678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21679 *) ac_try_echo=$ac_try;;
21680 esac
21681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21682 (eval "$ac_compile") 2>conftest.er1
21683 ac_status=$?
21684 grep -v '^ *+' conftest.er1 >conftest.err
21685 rm -f conftest.er1
21686 cat conftest.err >&5
21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); } && {
21689 test -z "$ac_c_werror_flag" ||
21690 test ! -s conftest.err
21691 } && test -s conftest.$ac_objext; then
21692 emacs_cv_gettimeofday_two_arguments=yes
21693 else
21694 echo "$as_me: failed program was:" >&5
21695 sed 's/^/| /' conftest.$ac_ext >&5
21696
21697 emacs_cv_gettimeofday_two_arguments=no
21698 fi
21699
21700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21701 fi
21702 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21703 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21704 if test $emacs_cv_gettimeofday_two_arguments = no; then
21705
21706 cat >>confdefs.h <<\_ACEOF
21707 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21708 _ACEOF
21709
21710 fi
21711 fi
21712 fi
21713
21714 ok_so_far=yes
21715 { echo "$as_me:$LINENO: checking for socket" >&5
21716 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21717 if test "${ac_cv_func_socket+set}" = set; then
21718 echo $ECHO_N "(cached) $ECHO_C" >&6
21719 else
21720 cat >conftest.$ac_ext <<_ACEOF
21721 /* confdefs.h. */
21722 _ACEOF
21723 cat confdefs.h >>conftest.$ac_ext
21724 cat >>conftest.$ac_ext <<_ACEOF
21725 /* end confdefs.h. */
21726 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21728 #define socket innocuous_socket
21729
21730 /* System header to define __stub macros and hopefully few prototypes,
21731 which can conflict with char socket (); below.
21732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21733 <limits.h> exists even on freestanding compilers. */
21734
21735 #ifdef __STDC__
21736 # include <limits.h>
21737 #else
21738 # include <assert.h>
21739 #endif
21740
21741 #undef socket
21742
21743 /* Override any GCC internal prototype to avoid an error.
21744 Use char because int might match the return type of a GCC
21745 builtin and then its argument prototype would still apply. */
21746 #ifdef __cplusplus
21747 extern "C"
21748 #endif
21749 char socket ();
21750 /* The GNU C library defines this for functions which it implements
21751 to always fail with ENOSYS. Some functions are actually named
21752 something starting with __ and the normal name is an alias. */
21753 #if defined __stub_socket || defined __stub___socket
21754 choke me
21755 #endif
21756
21757 int
21758 main ()
21759 {
21760 return socket ();
21761 ;
21762 return 0;
21763 }
21764 _ACEOF
21765 rm -f conftest.$ac_objext conftest$ac_exeext
21766 if { (ac_try="$ac_link"
21767 case "(($ac_try" in
21768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21769 *) ac_try_echo=$ac_try;;
21770 esac
21771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21772 (eval "$ac_link") 2>conftest.er1
21773 ac_status=$?
21774 grep -v '^ *+' conftest.er1 >conftest.err
21775 rm -f conftest.er1
21776 cat conftest.err >&5
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); } && {
21779 test -z "$ac_c_werror_flag" ||
21780 test ! -s conftest.err
21781 } && test -s conftest$ac_exeext &&
21782 $as_test_x conftest$ac_exeext; then
21783 ac_cv_func_socket=yes
21784 else
21785 echo "$as_me: failed program was:" >&5
21786 sed 's/^/| /' conftest.$ac_ext >&5
21787
21788 ac_cv_func_socket=no
21789 fi
21790
21791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21792 conftest$ac_exeext conftest.$ac_ext
21793 fi
21794 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21795 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21796 if test $ac_cv_func_socket = yes; then
21797 :
21798 else
21799 ok_so_far=no
21800 fi
21801
21802 if test $ok_so_far = yes; then
21803 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21804 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21805 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21806 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21807 echo $ECHO_N "(cached) $ECHO_C" >&6
21808 fi
21809 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21810 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21811 else
21812 # Is the header compilable?
21813 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21814 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21815 cat >conftest.$ac_ext <<_ACEOF
21816 /* confdefs.h. */
21817 _ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h. */
21821 $ac_includes_default
21822 #include <netinet/in.h>
21823 _ACEOF
21824 rm -f conftest.$ac_objext
21825 if { (ac_try="$ac_compile"
21826 case "(($ac_try" in
21827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21828 *) ac_try_echo=$ac_try;;
21829 esac
21830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21831 (eval "$ac_compile") 2>conftest.er1
21832 ac_status=$?
21833 grep -v '^ *+' conftest.er1 >conftest.err
21834 rm -f conftest.er1
21835 cat conftest.err >&5
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); } && {
21838 test -z "$ac_c_werror_flag" ||
21839 test ! -s conftest.err
21840 } && test -s conftest.$ac_objext; then
21841 ac_header_compiler=yes
21842 else
21843 echo "$as_me: failed program was:" >&5
21844 sed 's/^/| /' conftest.$ac_ext >&5
21845
21846 ac_header_compiler=no
21847 fi
21848
21849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21850 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21851 echo "${ECHO_T}$ac_header_compiler" >&6; }
21852
21853 # Is the header present?
21854 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21855 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21856 cat >conftest.$ac_ext <<_ACEOF
21857 /* confdefs.h. */
21858 _ACEOF
21859 cat confdefs.h >>conftest.$ac_ext
21860 cat >>conftest.$ac_ext <<_ACEOF
21861 /* end confdefs.h. */
21862 #include <netinet/in.h>
21863 _ACEOF
21864 if { (ac_try="$ac_cpp conftest.$ac_ext"
21865 case "(($ac_try" in
21866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867 *) ac_try_echo=$ac_try;;
21868 esac
21869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21871 ac_status=$?
21872 grep -v '^ *+' conftest.er1 >conftest.err
21873 rm -f conftest.er1
21874 cat conftest.err >&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); } >/dev/null && {
21877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21878 test ! -s conftest.err
21879 }; then
21880 ac_header_preproc=yes
21881 else
21882 echo "$as_me: failed program was:" >&5
21883 sed 's/^/| /' conftest.$ac_ext >&5
21884
21885 ac_header_preproc=no
21886 fi
21887
21888 rm -f conftest.err conftest.$ac_ext
21889 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21890 echo "${ECHO_T}$ac_header_preproc" >&6; }
21891
21892 # So? What about this header?
21893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21894 yes:no: )
21895 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21896 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21897 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21898 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21899 ac_header_preproc=yes
21900 ;;
21901 no:yes:* )
21902 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21903 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21904 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21905 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21906 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21907 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21908 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21909 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21910 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21911 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21912 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21913 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21914
21915 ;;
21916 esac
21917 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21918 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21919 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21920 echo $ECHO_N "(cached) $ECHO_C" >&6
21921 else
21922 ac_cv_header_netinet_in_h=$ac_header_preproc
21923 fi
21924 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21925 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21926
21927 fi
21928 if test $ac_cv_header_netinet_in_h = yes; then
21929 :
21930 else
21931 ok_so_far=no
21932 fi
21933
21934
21935 fi
21936 if test $ok_so_far = yes; then
21937 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21938 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21939 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21940 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21941 echo $ECHO_N "(cached) $ECHO_C" >&6
21942 fi
21943 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21944 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21945 else
21946 # Is the header compilable?
21947 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21948 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
21949 cat >conftest.$ac_ext <<_ACEOF
21950 /* confdefs.h. */
21951 _ACEOF
21952 cat confdefs.h >>conftest.$ac_ext
21953 cat >>conftest.$ac_ext <<_ACEOF
21954 /* end confdefs.h. */
21955 $ac_includes_default
21956 #include <arpa/inet.h>
21957 _ACEOF
21958 rm -f conftest.$ac_objext
21959 if { (ac_try="$ac_compile"
21960 case "(($ac_try" in
21961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21962 *) ac_try_echo=$ac_try;;
21963 esac
21964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21965 (eval "$ac_compile") 2>conftest.er1
21966 ac_status=$?
21967 grep -v '^ *+' conftest.er1 >conftest.err
21968 rm -f conftest.er1
21969 cat conftest.err >&5
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); } && {
21972 test -z "$ac_c_werror_flag" ||
21973 test ! -s conftest.err
21974 } && test -s conftest.$ac_objext; then
21975 ac_header_compiler=yes
21976 else
21977 echo "$as_me: failed program was:" >&5
21978 sed 's/^/| /' conftest.$ac_ext >&5
21979
21980 ac_header_compiler=no
21981 fi
21982
21983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21985 echo "${ECHO_T}$ac_header_compiler" >&6; }
21986
21987 # Is the header present?
21988 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21989 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
21990 cat >conftest.$ac_ext <<_ACEOF
21991 /* confdefs.h. */
21992 _ACEOF
21993 cat confdefs.h >>conftest.$ac_ext
21994 cat >>conftest.$ac_ext <<_ACEOF
21995 /* end confdefs.h. */
21996 #include <arpa/inet.h>
21997 _ACEOF
21998 if { (ac_try="$ac_cpp conftest.$ac_ext"
21999 case "(($ac_try" in
22000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22001 *) ac_try_echo=$ac_try;;
22002 esac
22003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22005 ac_status=$?
22006 grep -v '^ *+' conftest.er1 >conftest.err
22007 rm -f conftest.er1
22008 cat conftest.err >&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); } >/dev/null && {
22011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22012 test ! -s conftest.err
22013 }; then
22014 ac_header_preproc=yes
22015 else
22016 echo "$as_me: failed program was:" >&5
22017 sed 's/^/| /' conftest.$ac_ext >&5
22018
22019 ac_header_preproc=no
22020 fi
22021
22022 rm -f conftest.err conftest.$ac_ext
22023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22024 echo "${ECHO_T}$ac_header_preproc" >&6; }
22025
22026 # So? What about this header?
22027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22028 yes:no: )
22029 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22030 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22031 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22032 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22033 ac_header_preproc=yes
22034 ;;
22035 no:yes:* )
22036 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22037 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22038 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22039 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22040 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22041 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22042 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22043 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22044 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22045 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22046 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22047 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22048
22049 ;;
22050 esac
22051 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22052 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22053 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22054 echo $ECHO_N "(cached) $ECHO_C" >&6
22055 else
22056 ac_cv_header_arpa_inet_h=$ac_header_preproc
22057 fi
22058 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22059 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22060
22061 fi
22062 if test $ac_cv_header_arpa_inet_h = yes; then
22063 :
22064 else
22065 ok_so_far=no
22066 fi
22067
22068
22069 fi
22070 if test $ok_so_far = yes; then
22071
22072 cat >>confdefs.h <<\_ACEOF
22073 #define HAVE_INET_SOCKETS 1
22074 _ACEOF
22075
22076 fi
22077
22078
22079 for ac_header in sys/ioctl.h
22080 do
22081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22086 echo $ECHO_N "(cached) $ECHO_C" >&6
22087 fi
22088 ac_res=`eval echo '${'$as_ac_Header'}'`
22089 { echo "$as_me:$LINENO: result: $ac_res" >&5
22090 echo "${ECHO_T}$ac_res" >&6; }
22091 else
22092 # Is the header compilable?
22093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22095 cat >conftest.$ac_ext <<_ACEOF
22096 /* confdefs.h. */
22097 _ACEOF
22098 cat confdefs.h >>conftest.$ac_ext
22099 cat >>conftest.$ac_ext <<_ACEOF
22100 /* end confdefs.h. */
22101 $ac_includes_default
22102 #include <$ac_header>
22103 _ACEOF
22104 rm -f conftest.$ac_objext
22105 if { (ac_try="$ac_compile"
22106 case "(($ac_try" in
22107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22108 *) ac_try_echo=$ac_try;;
22109 esac
22110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22111 (eval "$ac_compile") 2>conftest.er1
22112 ac_status=$?
22113 grep -v '^ *+' conftest.er1 >conftest.err
22114 rm -f conftest.er1
22115 cat conftest.err >&5
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); } && {
22118 test -z "$ac_c_werror_flag" ||
22119 test ! -s conftest.err
22120 } && test -s conftest.$ac_objext; then
22121 ac_header_compiler=yes
22122 else
22123 echo "$as_me: failed program was:" >&5
22124 sed 's/^/| /' conftest.$ac_ext >&5
22125
22126 ac_header_compiler=no
22127 fi
22128
22129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22130 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22131 echo "${ECHO_T}$ac_header_compiler" >&6; }
22132
22133 # Is the header present?
22134 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22136 cat >conftest.$ac_ext <<_ACEOF
22137 /* confdefs.h. */
22138 _ACEOF
22139 cat confdefs.h >>conftest.$ac_ext
22140 cat >>conftest.$ac_ext <<_ACEOF
22141 /* end confdefs.h. */
22142 #include <$ac_header>
22143 _ACEOF
22144 if { (ac_try="$ac_cpp conftest.$ac_ext"
22145 case "(($ac_try" in
22146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22147 *) ac_try_echo=$ac_try;;
22148 esac
22149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22151 ac_status=$?
22152 grep -v '^ *+' conftest.er1 >conftest.err
22153 rm -f conftest.er1
22154 cat conftest.err >&5
22155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156 (exit $ac_status); } >/dev/null && {
22157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22158 test ! -s conftest.err
22159 }; then
22160 ac_header_preproc=yes
22161 else
22162 echo "$as_me: failed program was:" >&5
22163 sed 's/^/| /' conftest.$ac_ext >&5
22164
22165 ac_header_preproc=no
22166 fi
22167
22168 rm -f conftest.err conftest.$ac_ext
22169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22170 echo "${ECHO_T}$ac_header_preproc" >&6; }
22171
22172 # So? What about this header?
22173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22174 yes:no: )
22175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22179 ac_header_preproc=yes
22180 ;;
22181 no:yes:* )
22182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22194
22195 ;;
22196 esac
22197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22200 echo $ECHO_N "(cached) $ECHO_C" >&6
22201 else
22202 eval "$as_ac_Header=\$ac_header_preproc"
22203 fi
22204 ac_res=`eval echo '${'$as_ac_Header'}'`
22205 { echo "$as_me:$LINENO: result: $ac_res" >&5
22206 echo "${ECHO_T}$ac_res" >&6; }
22207
22208 fi
22209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22210 cat >>confdefs.h <<_ACEOF
22211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22212 _ACEOF
22213
22214 fi
22215
22216 done
22217
22218
22219 if test -f /usr/lpp/X11/bin/smt.exp; then
22220
22221 cat >>confdefs.h <<\_ACEOF
22222 #define HAVE_AIX_SMT_EXP 1
22223 _ACEOF
22224
22225 fi
22226
22227 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22228 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22229 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22230 { echo "$as_me:$LINENO: result: yes" >&5
22231 echo "${ECHO_T}yes" >&6; }
22232
22233 cat >>confdefs.h <<\_ACEOF
22234 #define HAVE_DEV_PTMX 1
22235 _ACEOF
22236
22237 else
22238 { echo "$as_me:$LINENO: result: no" >&5
22239 echo "${ECHO_T}no" >&6; }
22240 fi
22241
22242 { echo "$as_me:$LINENO: checking for pid_t" >&5
22243 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22244 if test "${ac_cv_type_pid_t+set}" = set; then
22245 echo $ECHO_N "(cached) $ECHO_C" >&6
22246 else
22247 cat >conftest.$ac_ext <<_ACEOF
22248 /* confdefs.h. */
22249 _ACEOF
22250 cat confdefs.h >>conftest.$ac_ext
22251 cat >>conftest.$ac_ext <<_ACEOF
22252 /* end confdefs.h. */
22253 $ac_includes_default
22254 typedef pid_t ac__type_new_;
22255 int
22256 main ()
22257 {
22258 if ((ac__type_new_ *) 0)
22259 return 0;
22260 if (sizeof (ac__type_new_))
22261 return 0;
22262 ;
22263 return 0;
22264 }
22265 _ACEOF
22266 rm -f conftest.$ac_objext
22267 if { (ac_try="$ac_compile"
22268 case "(($ac_try" in
22269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22270 *) ac_try_echo=$ac_try;;
22271 esac
22272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273 (eval "$ac_compile") 2>conftest.er1
22274 ac_status=$?
22275 grep -v '^ *+' conftest.er1 >conftest.err
22276 rm -f conftest.er1
22277 cat conftest.err >&5
22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279 (exit $ac_status); } && {
22280 test -z "$ac_c_werror_flag" ||
22281 test ! -s conftest.err
22282 } && test -s conftest.$ac_objext; then
22283 ac_cv_type_pid_t=yes
22284 else
22285 echo "$as_me: failed program was:" >&5
22286 sed 's/^/| /' conftest.$ac_ext >&5
22287
22288 ac_cv_type_pid_t=no
22289 fi
22290
22291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22292 fi
22293 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22294 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22295 if test $ac_cv_type_pid_t = yes; then
22296 :
22297 else
22298
22299 cat >>confdefs.h <<_ACEOF
22300 #define pid_t int
22301 _ACEOF
22302
22303 fi
22304
22305
22306 for ac_header in vfork.h
22307 do
22308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22310 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22313 echo $ECHO_N "(cached) $ECHO_C" >&6
22314 fi
22315 ac_res=`eval echo '${'$as_ac_Header'}'`
22316 { echo "$as_me:$LINENO: result: $ac_res" >&5
22317 echo "${ECHO_T}$ac_res" >&6; }
22318 else
22319 # Is the header compilable?
22320 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22322 cat >conftest.$ac_ext <<_ACEOF
22323 /* confdefs.h. */
22324 _ACEOF
22325 cat confdefs.h >>conftest.$ac_ext
22326 cat >>conftest.$ac_ext <<_ACEOF
22327 /* end confdefs.h. */
22328 $ac_includes_default
22329 #include <$ac_header>
22330 _ACEOF
22331 rm -f conftest.$ac_objext
22332 if { (ac_try="$ac_compile"
22333 case "(($ac_try" in
22334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22335 *) ac_try_echo=$ac_try;;
22336 esac
22337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22338 (eval "$ac_compile") 2>conftest.er1
22339 ac_status=$?
22340 grep -v '^ *+' conftest.er1 >conftest.err
22341 rm -f conftest.er1
22342 cat conftest.err >&5
22343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344 (exit $ac_status); } && {
22345 test -z "$ac_c_werror_flag" ||
22346 test ! -s conftest.err
22347 } && test -s conftest.$ac_objext; then
22348 ac_header_compiler=yes
22349 else
22350 echo "$as_me: failed program was:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22352
22353 ac_header_compiler=no
22354 fi
22355
22356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22357 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22358 echo "${ECHO_T}$ac_header_compiler" >&6; }
22359
22360 # Is the header present?
22361 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22363 cat >conftest.$ac_ext <<_ACEOF
22364 /* confdefs.h. */
22365 _ACEOF
22366 cat confdefs.h >>conftest.$ac_ext
22367 cat >>conftest.$ac_ext <<_ACEOF
22368 /* end confdefs.h. */
22369 #include <$ac_header>
22370 _ACEOF
22371 if { (ac_try="$ac_cpp conftest.$ac_ext"
22372 case "(($ac_try" in
22373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22374 *) ac_try_echo=$ac_try;;
22375 esac
22376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22378 ac_status=$?
22379 grep -v '^ *+' conftest.er1 >conftest.err
22380 rm -f conftest.er1
22381 cat conftest.err >&5
22382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383 (exit $ac_status); } >/dev/null && {
22384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22385 test ! -s conftest.err
22386 }; then
22387 ac_header_preproc=yes
22388 else
22389 echo "$as_me: failed program was:" >&5
22390 sed 's/^/| /' conftest.$ac_ext >&5
22391
22392 ac_header_preproc=no
22393 fi
22394
22395 rm -f conftest.err conftest.$ac_ext
22396 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22397 echo "${ECHO_T}$ac_header_preproc" >&6; }
22398
22399 # So? What about this header?
22400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22401 yes:no: )
22402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22406 ac_header_preproc=yes
22407 ;;
22408 no:yes:* )
22409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22416 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22421
22422 ;;
22423 esac
22424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22427 echo $ECHO_N "(cached) $ECHO_C" >&6
22428 else
22429 eval "$as_ac_Header=\$ac_header_preproc"
22430 fi
22431 ac_res=`eval echo '${'$as_ac_Header'}'`
22432 { echo "$as_me:$LINENO: result: $ac_res" >&5
22433 echo "${ECHO_T}$ac_res" >&6; }
22434
22435 fi
22436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22437 cat >>confdefs.h <<_ACEOF
22438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22439 _ACEOF
22440
22441 fi
22442
22443 done
22444
22445
22446
22447 for ac_func in fork vfork
22448 do
22449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22450 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22452 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22453 echo $ECHO_N "(cached) $ECHO_C" >&6
22454 else
22455 cat >conftest.$ac_ext <<_ACEOF
22456 /* confdefs.h. */
22457 _ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h. */
22461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22463 #define $ac_func innocuous_$ac_func
22464
22465 /* System header to define __stub macros and hopefully few prototypes,
22466 which can conflict with char $ac_func (); below.
22467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22468 <limits.h> exists even on freestanding compilers. */
22469
22470 #ifdef __STDC__
22471 # include <limits.h>
22472 #else
22473 # include <assert.h>
22474 #endif
22475
22476 #undef $ac_func
22477
22478 /* Override any GCC internal prototype to avoid an error.
22479 Use char because int might match the return type of a GCC
22480 builtin and then its argument prototype would still apply. */
22481 #ifdef __cplusplus
22482 extern "C"
22483 #endif
22484 char $ac_func ();
22485 /* The GNU C library defines this for functions which it implements
22486 to always fail with ENOSYS. Some functions are actually named
22487 something starting with __ and the normal name is an alias. */
22488 #if defined __stub_$ac_func || defined __stub___$ac_func
22489 choke me
22490 #endif
22491
22492 int
22493 main ()
22494 {
22495 return $ac_func ();
22496 ;
22497 return 0;
22498 }
22499 _ACEOF
22500 rm -f conftest.$ac_objext conftest$ac_exeext
22501 if { (ac_try="$ac_link"
22502 case "(($ac_try" in
22503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22504 *) ac_try_echo=$ac_try;;
22505 esac
22506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22507 (eval "$ac_link") 2>conftest.er1
22508 ac_status=$?
22509 grep -v '^ *+' conftest.er1 >conftest.err
22510 rm -f conftest.er1
22511 cat conftest.err >&5
22512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513 (exit $ac_status); } && {
22514 test -z "$ac_c_werror_flag" ||
22515 test ! -s conftest.err
22516 } && test -s conftest$ac_exeext &&
22517 $as_test_x conftest$ac_exeext; then
22518 eval "$as_ac_var=yes"
22519 else
22520 echo "$as_me: failed program was:" >&5
22521 sed 's/^/| /' conftest.$ac_ext >&5
22522
22523 eval "$as_ac_var=no"
22524 fi
22525
22526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22527 conftest$ac_exeext conftest.$ac_ext
22528 fi
22529 ac_res=`eval echo '${'$as_ac_var'}'`
22530 { echo "$as_me:$LINENO: result: $ac_res" >&5
22531 echo "${ECHO_T}$ac_res" >&6; }
22532 if test `eval echo '${'$as_ac_var'}'` = yes; then
22533 cat >>confdefs.h <<_ACEOF
22534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22535 _ACEOF
22536
22537 fi
22538 done
22539
22540 if test "x$ac_cv_func_fork" = xyes; then
22541 { echo "$as_me:$LINENO: checking for working fork" >&5
22542 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22543 if test "${ac_cv_func_fork_works+set}" = set; then
22544 echo $ECHO_N "(cached) $ECHO_C" >&6
22545 else
22546 if test "$cross_compiling" = yes; then
22547 ac_cv_func_fork_works=cross
22548 else
22549 cat >conftest.$ac_ext <<_ACEOF
22550 /* confdefs.h. */
22551 _ACEOF
22552 cat confdefs.h >>conftest.$ac_ext
22553 cat >>conftest.$ac_ext <<_ACEOF
22554 /* end confdefs.h. */
22555 $ac_includes_default
22556 int
22557 main ()
22558 {
22559
22560 /* By Ruediger Kuhlmann. */
22561 return fork () < 0;
22562
22563 ;
22564 return 0;
22565 }
22566 _ACEOF
22567 rm -f conftest$ac_exeext
22568 if { (ac_try="$ac_link"
22569 case "(($ac_try" in
22570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22571 *) ac_try_echo=$ac_try;;
22572 esac
22573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22574 (eval "$ac_link") 2>&5
22575 ac_status=$?
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22578 { (case "(($ac_try" in
22579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22580 *) ac_try_echo=$ac_try;;
22581 esac
22582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22583 (eval "$ac_try") 2>&5
22584 ac_status=$?
22585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586 (exit $ac_status); }; }; then
22587 ac_cv_func_fork_works=yes
22588 else
22589 echo "$as_me: program exited with status $ac_status" >&5
22590 echo "$as_me: failed program was:" >&5
22591 sed 's/^/| /' conftest.$ac_ext >&5
22592
22593 ( exit $ac_status )
22594 ac_cv_func_fork_works=no
22595 fi
22596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22597 fi
22598
22599
22600 fi
22601 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22602 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22603
22604 else
22605 ac_cv_func_fork_works=$ac_cv_func_fork
22606 fi
22607 if test "x$ac_cv_func_fork_works" = xcross; then
22608 case $host in
22609 *-*-amigaos* | *-*-msdosdjgpp*)
22610 # Override, as these systems have only a dummy fork() stub
22611 ac_cv_func_fork_works=no
22612 ;;
22613 *)
22614 ac_cv_func_fork_works=yes
22615 ;;
22616 esac
22617 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22618 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22619 fi
22620 ac_cv_func_vfork_works=$ac_cv_func_vfork
22621 if test "x$ac_cv_func_vfork" = xyes; then
22622 { echo "$as_me:$LINENO: checking for working vfork" >&5
22623 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22624 if test "${ac_cv_func_vfork_works+set}" = set; then
22625 echo $ECHO_N "(cached) $ECHO_C" >&6
22626 else
22627 if test "$cross_compiling" = yes; then
22628 ac_cv_func_vfork_works=cross
22629 else
22630 cat >conftest.$ac_ext <<_ACEOF
22631 /* confdefs.h. */
22632 _ACEOF
22633 cat confdefs.h >>conftest.$ac_ext
22634 cat >>conftest.$ac_ext <<_ACEOF
22635 /* end confdefs.h. */
22636 /* Thanks to Paul Eggert for this test. */
22637 $ac_includes_default
22638 #include <sys/wait.h>
22639 #ifdef HAVE_VFORK_H
22640 # include <vfork.h>
22641 #endif
22642 /* On some sparc systems, changes by the child to local and incoming
22643 argument registers are propagated back to the parent. The compiler
22644 is told about this with #include <vfork.h>, but some compilers
22645 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22646 static variable whose address is put into a register that is
22647 clobbered by the vfork. */
22648 static void
22649 #ifdef __cplusplus
22650 sparc_address_test (int arg)
22651 # else
22652 sparc_address_test (arg) int arg;
22653 #endif
22654 {
22655 static pid_t child;
22656 if (!child) {
22657 child = vfork ();
22658 if (child < 0) {
22659 perror ("vfork");
22660 _exit(2);
22661 }
22662 if (!child) {
22663 arg = getpid();
22664 write(-1, "", 0);
22665 _exit (arg);
22666 }
22667 }
22668 }
22669
22670 int
22671 main ()
22672 {
22673 pid_t parent = getpid ();
22674 pid_t child;
22675
22676 sparc_address_test (0);
22677
22678 child = vfork ();
22679
22680 if (child == 0) {
22681 /* Here is another test for sparc vfork register problems. This
22682 test uses lots of local variables, at least as many local
22683 variables as main has allocated so far including compiler
22684 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22685 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22686 reuse the register of parent for one of the local variables,
22687 since it will think that parent can't possibly be used any more
22688 in this routine. Assigning to the local variable will thus
22689 munge parent in the parent process. */
22690 pid_t
22691 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22692 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22693 /* Convince the compiler that p..p7 are live; otherwise, it might
22694 use the same hardware register for all 8 local variables. */
22695 if (p != p1 || p != p2 || p != p3 || p != p4
22696 || p != p5 || p != p6 || p != p7)
22697 _exit(1);
22698
22699 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22700 from child file descriptors. If the child closes a descriptor
22701 before it execs or exits, this munges the parent's descriptor
22702 as well. Test for this by closing stdout in the child. */
22703 _exit(close(fileno(stdout)) != 0);
22704 } else {
22705 int status;
22706 struct stat st;
22707
22708 while (wait(&status) != child)
22709 ;
22710 return (
22711 /* Was there some problem with vforking? */
22712 child < 0
22713
22714 /* Did the child fail? (This shouldn't happen.) */
22715 || status
22716
22717 /* Did the vfork/compiler bug occur? */
22718 || parent != getpid()
22719
22720 /* Did the file descriptor bug occur? */
22721 || fstat(fileno(stdout), &st) != 0
22722 );
22723 }
22724 }
22725 _ACEOF
22726 rm -f conftest$ac_exeext
22727 if { (ac_try="$ac_link"
22728 case "(($ac_try" in
22729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22730 *) ac_try_echo=$ac_try;;
22731 esac
22732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22733 (eval "$ac_link") 2>&5
22734 ac_status=$?
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22737 { (case "(($ac_try" in
22738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22739 *) ac_try_echo=$ac_try;;
22740 esac
22741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22742 (eval "$ac_try") 2>&5
22743 ac_status=$?
22744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); }; }; then
22746 ac_cv_func_vfork_works=yes
22747 else
22748 echo "$as_me: program exited with status $ac_status" >&5
22749 echo "$as_me: failed program was:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22751
22752 ( exit $ac_status )
22753 ac_cv_func_vfork_works=no
22754 fi
22755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22756 fi
22757
22758
22759 fi
22760 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22761 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22762
22763 fi;
22764 if test "x$ac_cv_func_fork_works" = xcross; then
22765 ac_cv_func_vfork_works=$ac_cv_func_vfork
22766 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22767 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22768 fi
22769
22770 if test "x$ac_cv_func_vfork_works" = xyes; then
22771
22772 cat >>confdefs.h <<\_ACEOF
22773 #define HAVE_WORKING_VFORK 1
22774 _ACEOF
22775
22776 else
22777
22778 cat >>confdefs.h <<\_ACEOF
22779 #define vfork fork
22780 _ACEOF
22781
22782 fi
22783 if test "x$ac_cv_func_fork_works" = xyes; then
22784
22785 cat >>confdefs.h <<\_ACEOF
22786 #define HAVE_WORKING_FORK 1
22787 _ACEOF
22788
22789 fi
22790
22791
22792 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22793 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22794 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22795 echo $ECHO_N "(cached) $ECHO_C" >&6
22796 else
22797 cat >conftest.$ac_ext <<_ACEOF
22798 /* confdefs.h. */
22799 _ACEOF
22800 cat confdefs.h >>conftest.$ac_ext
22801 cat >>conftest.$ac_ext <<_ACEOF
22802 /* end confdefs.h. */
22803 #include <langinfo.h>
22804 int
22805 main ()
22806 {
22807 char* cs = nl_langinfo(CODESET);
22808 ;
22809 return 0;
22810 }
22811 _ACEOF
22812 rm -f conftest.$ac_objext conftest$ac_exeext
22813 if { (ac_try="$ac_link"
22814 case "(($ac_try" in
22815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816 *) ac_try_echo=$ac_try;;
22817 esac
22818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22819 (eval "$ac_link") 2>conftest.er1
22820 ac_status=$?
22821 grep -v '^ *+' conftest.er1 >conftest.err
22822 rm -f conftest.er1
22823 cat conftest.err >&5
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); } && {
22826 test -z "$ac_c_werror_flag" ||
22827 test ! -s conftest.err
22828 } && test -s conftest$ac_exeext &&
22829 $as_test_x conftest$ac_exeext; then
22830 emacs_cv_langinfo_codeset=yes
22831 else
22832 echo "$as_me: failed program was:" >&5
22833 sed 's/^/| /' conftest.$ac_ext >&5
22834
22835 emacs_cv_langinfo_codeset=no
22836 fi
22837
22838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22839 conftest$ac_exeext conftest.$ac_ext
22840
22841 fi
22842 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22843 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22844 if test $emacs_cv_langinfo_codeset = yes; then
22845
22846 cat >>confdefs.h <<\_ACEOF
22847 #define HAVE_LANGINFO_CODESET 1
22848 _ACEOF
22849
22850 fi
22851
22852 { echo "$as_me:$LINENO: checking for size_t" >&5
22853 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22854 if test "${ac_cv_type_size_t+set}" = set; then
22855 echo $ECHO_N "(cached) $ECHO_C" >&6
22856 else
22857 cat >conftest.$ac_ext <<_ACEOF
22858 /* confdefs.h. */
22859 _ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h. */
22863 $ac_includes_default
22864 typedef size_t ac__type_new_;
22865 int
22866 main ()
22867 {
22868 if ((ac__type_new_ *) 0)
22869 return 0;
22870 if (sizeof (ac__type_new_))
22871 return 0;
22872 ;
22873 return 0;
22874 }
22875 _ACEOF
22876 rm -f conftest.$ac_objext
22877 if { (ac_try="$ac_compile"
22878 case "(($ac_try" in
22879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22880 *) ac_try_echo=$ac_try;;
22881 esac
22882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22883 (eval "$ac_compile") 2>conftest.er1
22884 ac_status=$?
22885 grep -v '^ *+' conftest.er1 >conftest.err
22886 rm -f conftest.er1
22887 cat conftest.err >&5
22888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); } && {
22890 test -z "$ac_c_werror_flag" ||
22891 test ! -s conftest.err
22892 } && test -s conftest.$ac_objext; then
22893 ac_cv_type_size_t=yes
22894 else
22895 echo "$as_me: failed program was:" >&5
22896 sed 's/^/| /' conftest.$ac_ext >&5
22897
22898 ac_cv_type_size_t=no
22899 fi
22900
22901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22902 fi
22903 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22904 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22905 if test $ac_cv_type_size_t = yes; then
22906
22907 cat >>confdefs.h <<_ACEOF
22908 #define HAVE_SIZE_T 1
22909 _ACEOF
22910
22911
22912 fi
22913
22914
22915 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22916 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22917 if test "${ac_cv_type_mbstate_t+set}" = set; then
22918 echo $ECHO_N "(cached) $ECHO_C" >&6
22919 else
22920 cat >conftest.$ac_ext <<_ACEOF
22921 /* confdefs.h. */
22922 _ACEOF
22923 cat confdefs.h >>conftest.$ac_ext
22924 cat >>conftest.$ac_ext <<_ACEOF
22925 /* end confdefs.h. */
22926 $ac_includes_default
22927 # include <wchar.h>
22928 int
22929 main ()
22930 {
22931 mbstate_t x; return sizeof x;
22932 ;
22933 return 0;
22934 }
22935 _ACEOF
22936 rm -f conftest.$ac_objext
22937 if { (ac_try="$ac_compile"
22938 case "(($ac_try" in
22939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22940 *) ac_try_echo=$ac_try;;
22941 esac
22942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22943 (eval "$ac_compile") 2>conftest.er1
22944 ac_status=$?
22945 grep -v '^ *+' conftest.er1 >conftest.err
22946 rm -f conftest.er1
22947 cat conftest.err >&5
22948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949 (exit $ac_status); } && {
22950 test -z "$ac_c_werror_flag" ||
22951 test ! -s conftest.err
22952 } && test -s conftest.$ac_objext; then
22953 ac_cv_type_mbstate_t=yes
22954 else
22955 echo "$as_me: failed program was:" >&5
22956 sed 's/^/| /' conftest.$ac_ext >&5
22957
22958 ac_cv_type_mbstate_t=no
22959 fi
22960
22961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22962 fi
22963 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22964 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22965 if test $ac_cv_type_mbstate_t = yes; then
22966
22967 cat >>confdefs.h <<\_ACEOF
22968 #define HAVE_MBSTATE_T 1
22969 _ACEOF
22970
22971 else
22972
22973 cat >>confdefs.h <<\_ACEOF
22974 #define mbstate_t int
22975 _ACEOF
22976
22977 fi
22978
22979 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22980 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
22981 if test "${emacs_cv_c_restrict+set}" = set; then
22982 echo $ECHO_N "(cached) $ECHO_C" >&6
22983 else
22984 cat >conftest.$ac_ext <<_ACEOF
22985 /* confdefs.h. */
22986 _ACEOF
22987 cat confdefs.h >>conftest.$ac_ext
22988 cat >>conftest.$ac_ext <<_ACEOF
22989 /* end confdefs.h. */
22990 void fred (int *restrict x);
22991 int
22992 main ()
22993 {
22994
22995 ;
22996 return 0;
22997 }
22998 _ACEOF
22999 rm -f conftest.$ac_objext
23000 if { (ac_try="$ac_compile"
23001 case "(($ac_try" in
23002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23003 *) ac_try_echo=$ac_try;;
23004 esac
23005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23006 (eval "$ac_compile") 2>conftest.er1
23007 ac_status=$?
23008 grep -v '^ *+' conftest.er1 >conftest.err
23009 rm -f conftest.er1
23010 cat conftest.err >&5
23011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012 (exit $ac_status); } && {
23013 test -z "$ac_c_werror_flag" ||
23014 test ! -s conftest.err
23015 } && test -s conftest.$ac_objext; then
23016 emacs_cv_c_restrict=yes
23017 else
23018 echo "$as_me: failed program was:" >&5
23019 sed 's/^/| /' conftest.$ac_ext >&5
23020
23021 cat >conftest.$ac_ext <<_ACEOF
23022 /* confdefs.h. */
23023 _ACEOF
23024 cat confdefs.h >>conftest.$ac_ext
23025 cat >>conftest.$ac_ext <<_ACEOF
23026 /* end confdefs.h. */
23027 void fred (int *__restrict x);
23028 int
23029 main ()
23030 {
23031
23032 ;
23033 return 0;
23034 }
23035 _ACEOF
23036 rm -f conftest.$ac_objext
23037 if { (ac_try="$ac_compile"
23038 case "(($ac_try" in
23039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23040 *) ac_try_echo=$ac_try;;
23041 esac
23042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23043 (eval "$ac_compile") 2>conftest.er1
23044 ac_status=$?
23045 grep -v '^ *+' conftest.er1 >conftest.err
23046 rm -f conftest.er1
23047 cat conftest.err >&5
23048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049 (exit $ac_status); } && {
23050 test -z "$ac_c_werror_flag" ||
23051 test ! -s conftest.err
23052 } && test -s conftest.$ac_objext; then
23053 emacs_cv_c_restrict=__restrict
23054 else
23055 echo "$as_me: failed program was:" >&5
23056 sed 's/^/| /' conftest.$ac_ext >&5
23057
23058 emacs_cv_c_restrict=no
23059 fi
23060
23061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23062 fi
23063
23064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23065 fi
23066 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23067 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23068 case "$emacs_cv_c_restrict" in
23069 yes) emacs_restrict=restrict;;
23070 no) emacs_restrict="";;
23071 *) emacs_restrict="$emacs_cv_c_restrict";;
23072 esac
23073 if test "$emacs_restrict" != __restrict; then
23074
23075 cat >>confdefs.h <<_ACEOF
23076 #define __restrict $emacs_restrict
23077 _ACEOF
23078
23079 fi
23080
23081 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23082 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23083 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23084 echo $ECHO_N "(cached) $ECHO_C" >&6
23085 else
23086 cat >conftest.$ac_ext <<_ACEOF
23087 /* confdefs.h. */
23088 _ACEOF
23089 cat confdefs.h >>conftest.$ac_ext
23090 cat >>conftest.$ac_ext <<_ACEOF
23091 /* end confdefs.h. */
23092 void fred (int x[__restrict]);
23093 int
23094 main ()
23095 {
23096
23097 ;
23098 return 0;
23099 }
23100 _ACEOF
23101 rm -f conftest.$ac_objext
23102 if { (ac_try="$ac_compile"
23103 case "(($ac_try" in
23104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23105 *) ac_try_echo=$ac_try;;
23106 esac
23107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23108 (eval "$ac_compile") 2>conftest.er1
23109 ac_status=$?
23110 grep -v '^ *+' conftest.er1 >conftest.err
23111 rm -f conftest.er1
23112 cat conftest.err >&5
23113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114 (exit $ac_status); } && {
23115 test -z "$ac_c_werror_flag" ||
23116 test ! -s conftest.err
23117 } && test -s conftest.$ac_objext; then
23118 emacs_cv_c_restrict_arr=yes
23119 else
23120 echo "$as_me: failed program was:" >&5
23121 sed 's/^/| /' conftest.$ac_ext >&5
23122
23123 emacs_cv_c_restrict_arr=no
23124 fi
23125
23126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23127 fi
23128 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23129 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23130 if test "$emacs_cv_c_restrict_arr" = yes; then
23131
23132 cat >>confdefs.h <<\_ACEOF
23133 #define __restrict_arr __restrict
23134 _ACEOF
23135
23136 fi
23137
23138
23139
23140 # Set up the CFLAGS for real compilation, so we can substitute it.
23141 CFLAGS="$REAL_CFLAGS"
23142 CPPFLAGS="$REAL_CPPFLAGS"
23143
23144 #### Find out which version of Emacs this is.
23145 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23146 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23147 if test x"${version}" = x; then
23148 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23149 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23150 { (exit 1); exit 1; }; }
23151 fi
23152
23153 ### Specify what sort of things we'll be editing into Makefile and config.h.
23154 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23155
23156
23157
23158
23159
23160
23161
23162
23163
23164
23165
23166
23167
23168
23169
23170
23171
23172
23173
23174
23175
23176
23177
23178
23179
23180
23181
23182
23183
23184
23185
23186
23187
23188
23189
23190 cat >>confdefs.h <<_ACEOF
23191 #define EMACS_CONFIGURATION "${canonical}"
23192 _ACEOF
23193
23194
23195 cat >>confdefs.h <<_ACEOF
23196 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23197 _ACEOF
23198
23199
23200 cat >>confdefs.h <<_ACEOF
23201 #define config_machfile "${machfile}"
23202 _ACEOF
23203
23204
23205 cat >>confdefs.h <<_ACEOF
23206 #define config_opsysfile "${opsysfile}"
23207 _ACEOF
23208
23209
23210 cat >>confdefs.h <<_ACEOF
23211 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23212 _ACEOF
23213
23214
23215 cat >>confdefs.h <<_ACEOF
23216 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23217 _ACEOF
23218
23219
23220 cat >>confdefs.h <<_ACEOF
23221 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23222 _ACEOF
23223
23224
23225 cat >>confdefs.h <<_ACEOF
23226 #define UNEXEC_SRC ${UNEXEC_SRC}
23227 _ACEOF
23228
23229
23230 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23231
23232 cat >>confdefs.h <<\_ACEOF
23233 #define HAVE_X_WINDOWS 1
23234 _ACEOF
23235
23236 fi
23237 if test "${USE_X_TOOLKIT}" != "none" ; then
23238
23239 cat >>confdefs.h <<\_ACEOF
23240 #define USE_X_TOOLKIT 1
23241 _ACEOF
23242
23243 fi
23244 if test "${HAVE_X11}" = "yes" ; then
23245
23246 cat >>confdefs.h <<\_ACEOF
23247 #define HAVE_X11 1
23248 _ACEOF
23249
23250 fi
23251 if test "${HAVE_XFREE386}" = "yes" ; then
23252
23253 cat >>confdefs.h <<\_ACEOF
23254 #define HAVE_XFREE386 1
23255 _ACEOF
23256
23257 fi
23258 if test "${HAVE_MENUS}" = "yes" ; then
23259
23260 cat >>confdefs.h <<\_ACEOF
23261 #define HAVE_MENUS 1
23262 _ACEOF
23263
23264 fi
23265 if test "${GNU_MALLOC}" = "yes" ; then
23266
23267 cat >>confdefs.h <<\_ACEOF
23268 #define GNU_MALLOC 1
23269 _ACEOF
23270
23271 fi
23272 if test "${REL_ALLOC}" = "yes" ; then
23273
23274 cat >>confdefs.h <<\_ACEOF
23275 #define REL_ALLOC 1
23276 _ACEOF
23277
23278 fi
23279
23280
23281
23282
23283
23284 #### Report on what we decided to do.
23285 #### Report GTK as a toolkit, even if it doesn't use Xt.
23286 #### It makes printing result more understandable as using GTK sets
23287 #### toolkit_scroll_bars to yes by default.
23288 if test "${HAVE_GTK}" = "yes"; then
23289 USE_X_TOOLKIT=GTK
23290 fi
23291
23292 echo "
23293 Configured for \`${canonical}'.
23294
23295 Where should the build process find the source code? ${srcdir}
23296 What operating system and machine description files should Emacs use?
23297 \`${opsysfile}' and \`${machfile}'
23298 What compiler should emacs be built with? ${CC} ${CFLAGS}
23299 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23300 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23301 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23302 What window system should Emacs use? ${window_system}
23303 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23304
23305 if test -n "${x_includes}"; then
23306 echo " Where do we find X Windows header files? ${x_includes}"
23307 else
23308 echo " Where do we find X Windows header files? Standard dirs"
23309 fi
23310 if test -n "${x_libraries}"; then
23311 echo " Where do we find X Windows libraries? ${x_libraries}"
23312 else
23313 echo " Where do we find X Windows libraries? Standard dirs"
23314 fi
23315
23316 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23317 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23318 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23319 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23320 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23321 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23322 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23323 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23324 echo
23325
23326 if test $USE_XASSERTS = yes; then
23327 echo " Compiling with asserts turned on."
23328 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23329 echo
23330 fi
23331
23332 if test "$USE_X_TOOLKIT" = GTK; then
23333 case "$canonical" in
23334 *cygwin*)
23335 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23336 will probably get a crash on startup. If this happens, please use another
23337 toolkit for Emacs. See etc/PROBLEMS for more information."
23338 ;;
23339 esac
23340 fi
23341
23342
23343
23344 # Remove any trailing slashes in these variables.
23345 test "${prefix}" != NONE &&
23346 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23347 test "${exec_prefix}" != NONE &&
23348 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23349
23350 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23351 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23352 ## from Makefile.c can correctly provide the arg `-traditional' to the
23353 ## C preprocessor.
23354
23355 cat >conftest.$ac_ext <<_ACEOF
23356 /* confdefs.h. */
23357 _ACEOF
23358 cat confdefs.h >>conftest.$ac_ext
23359 cat >>conftest.$ac_ext <<_ACEOF
23360 /* end confdefs.h. */
23361 yes..yes
23362 _ACEOF
23363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23364 $EGREP "yes..yes" >/dev/null 2>&1; then
23365 CPP_NEED_TRADITIONAL=no
23366 else
23367 CPP_NEED_TRADITIONAL=yes
23368 fi
23369 rm -f conftest*
23370
23371
23372 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"
23373
23374 ac_config_commands="$ac_config_commands default"
23375
23376 cat >confcache <<\_ACEOF
23377 # This file is a shell script that caches the results of configure
23378 # tests run on this system so they can be shared between configure
23379 # scripts and configure runs, see configure's option --config-cache.
23380 # It is not useful on other systems. If it contains results you don't
23381 # want to keep, you may remove or edit it.
23382 #
23383 # config.status only pays attention to the cache file if you give it
23384 # the --recheck option to rerun configure.
23385 #
23386 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23387 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23388 # following values.
23389
23390 _ACEOF
23391
23392 # The following way of writing the cache mishandles newlines in values,
23393 # but we know of no workaround that is simple, portable, and efficient.
23394 # So, we kill variables containing newlines.
23395 # Ultrix sh set writes to stderr and can't be redirected directly,
23396 # and sets the high bit in the cache file unless we assign to the vars.
23397 (
23398 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23399 eval ac_val=\$$ac_var
23400 case $ac_val in #(
23401 *${as_nl}*)
23402 case $ac_var in #(
23403 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23404 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23405 esac
23406 case $ac_var in #(
23407 _ | IFS | as_nl) ;; #(
23408 *) $as_unset $ac_var ;;
23409 esac ;;
23410 esac
23411 done
23412
23413 (set) 2>&1 |
23414 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23415 *${as_nl}ac_space=\ *)
23416 # `set' does not quote correctly, so add quotes (double-quote
23417 # substitution turns \\\\ into \\, and sed turns \\ into \).
23418 sed -n \
23419 "s/'/'\\\\''/g;
23420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23421 ;; #(
23422 *)
23423 # `set' quotes correctly as required by POSIX, so do not add quotes.
23424 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23425 ;;
23426 esac |
23427 sort
23428 ) |
23429 sed '
23430 /^ac_cv_env_/b end
23431 t clear
23432 :clear
23433 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23434 t end
23435 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23436 :end' >>confcache
23437 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23438 if test -w "$cache_file"; then
23439 test "x$cache_file" != "x/dev/null" &&
23440 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23441 echo "$as_me: updating cache $cache_file" >&6;}
23442 cat confcache >$cache_file
23443 else
23444 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23445 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23446 fi
23447 fi
23448 rm -f confcache
23449
23450 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23451 # Let make expand exec_prefix.
23452 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23453
23454 DEFS=-DHAVE_CONFIG_H
23455
23456 ac_libobjs=
23457 ac_ltlibobjs=
23458 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23459 # 1. Remove the extension, and $U if already installed.
23460 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23461 ac_i=`echo "$ac_i" | sed "$ac_script"`
23462 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23463 # will be set to the directory where LIBOBJS objects are built.
23464 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23465 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23466 done
23467 LIBOBJS=$ac_libobjs
23468
23469 LTLIBOBJS=$ac_ltlibobjs
23470
23471
23472
23473 : ${CONFIG_STATUS=./config.status}
23474 ac_clean_files_save=$ac_clean_files
23475 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23476 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23477 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23478 cat >$CONFIG_STATUS <<_ACEOF
23479 #! $SHELL
23480 # Generated by $as_me.
23481 # Run this file to recreate the current configuration.
23482 # Compiler output produced by configure, useful for debugging
23483 # configure, is in config.log if it exists.
23484
23485 debug=false
23486 ac_cs_recheck=false
23487 ac_cs_silent=false
23488 SHELL=\${CONFIG_SHELL-$SHELL}
23489 _ACEOF
23490
23491 cat >>$CONFIG_STATUS <<\_ACEOF
23492 ## --------------------- ##
23493 ## M4sh Initialization. ##
23494 ## --------------------- ##
23495
23496 # Be more Bourne compatible
23497 DUALCASE=1; export DUALCASE # for MKS sh
23498 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23499 emulate sh
23500 NULLCMD=:
23501 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23502 # is contrary to our usage. Disable this feature.
23503 alias -g '${1+"$@"}'='"$@"'
23504 setopt NO_GLOB_SUBST
23505 else
23506 case `(set -o) 2>/dev/null` in
23507 *posix*) set -o posix ;;
23508 esac
23509
23510 fi
23511
23512
23513
23514
23515 # PATH needs CR
23516 # Avoid depending upon Character Ranges.
23517 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23518 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23519 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23520 as_cr_digits='0123456789'
23521 as_cr_alnum=$as_cr_Letters$as_cr_digits
23522
23523 # The user is always right.
23524 if test "${PATH_SEPARATOR+set}" != set; then
23525 echo "#! /bin/sh" >conf$$.sh
23526 echo "exit 0" >>conf$$.sh
23527 chmod +x conf$$.sh
23528 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23529 PATH_SEPARATOR=';'
23530 else
23531 PATH_SEPARATOR=:
23532 fi
23533 rm -f conf$$.sh
23534 fi
23535
23536 # Support unset when possible.
23537 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23538 as_unset=unset
23539 else
23540 as_unset=false
23541 fi
23542
23543
23544 # IFS
23545 # We need space, tab and new line, in precisely that order. Quoting is
23546 # there to prevent editors from complaining about space-tab.
23547 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23548 # splitting by setting IFS to empty value.)
23549 as_nl='
23550 '
23551 IFS=" "" $as_nl"
23552
23553 # Find who we are. Look in the path if we contain no directory separator.
23554 case $0 in
23555 *[\\/]* ) as_myself=$0 ;;
23556 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23557 for as_dir in $PATH
23558 do
23559 IFS=$as_save_IFS
23560 test -z "$as_dir" && as_dir=.
23561 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23562 done
23563 IFS=$as_save_IFS
23564
23565 ;;
23566 esac
23567 # We did not find ourselves, most probably we were run as `sh COMMAND'
23568 # in which case we are not to be found in the path.
23569 if test "x$as_myself" = x; then
23570 as_myself=$0
23571 fi
23572 if test ! -f "$as_myself"; then
23573 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23574 { (exit 1); exit 1; }
23575 fi
23576
23577 # Work around bugs in pre-3.0 UWIN ksh.
23578 for as_var in ENV MAIL MAILPATH
23579 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23580 done
23581 PS1='$ '
23582 PS2='> '
23583 PS4='+ '
23584
23585 # NLS nuisances.
23586 for as_var in \
23587 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23588 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23589 LC_TELEPHONE LC_TIME
23590 do
23591 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23592 eval $as_var=C; export $as_var
23593 else
23594 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23595 fi
23596 done
23597
23598 # Required to use basename.
23599 if expr a : '\(a\)' >/dev/null 2>&1 &&
23600 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23601 as_expr=expr
23602 else
23603 as_expr=false
23604 fi
23605
23606 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23607 as_basename=basename
23608 else
23609 as_basename=false
23610 fi
23611
23612
23613 # Name of the executable.
23614 as_me=`$as_basename -- "$0" ||
23615 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23616 X"$0" : 'X\(//\)$' \| \
23617 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23618 echo X/"$0" |
23619 sed '/^.*\/\([^/][^/]*\)\/*$/{
23620 s//\1/
23621 q
23622 }
23623 /^X\/\(\/\/\)$/{
23624 s//\1/
23625 q
23626 }
23627 /^X\/\(\/\).*/{
23628 s//\1/
23629 q
23630 }
23631 s/.*/./; q'`
23632
23633 # CDPATH.
23634 $as_unset CDPATH
23635
23636
23637
23638 as_lineno_1=$LINENO
23639 as_lineno_2=$LINENO
23640 test "x$as_lineno_1" != "x$as_lineno_2" &&
23641 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23642
23643 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23644 # uniformly replaced by the line number. The first 'sed' inserts a
23645 # line-number line after each line using $LINENO; the second 'sed'
23646 # does the real work. The second script uses 'N' to pair each
23647 # line-number line with the line containing $LINENO, and appends
23648 # trailing '-' during substitution so that $LINENO is not a special
23649 # case at line end.
23650 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23651 # scripts with optimization help from Paolo Bonzini. Blame Lee
23652 # E. McMahon (1931-1989) for sed's syntax. :-)
23653 sed -n '
23654 p
23655 /[$]LINENO/=
23656 ' <$as_myself |
23657 sed '
23658 s/[$]LINENO.*/&-/
23659 t lineno
23660 b
23661 :lineno
23662 N
23663 :loop
23664 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23665 t loop
23666 s/-\n.*//
23667 ' >$as_me.lineno &&
23668 chmod +x "$as_me.lineno" ||
23669 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23670 { (exit 1); exit 1; }; }
23671
23672 # Don't try to exec as it changes $[0], causing all sort of problems
23673 # (the dirname of $[0] is not the place where we might find the
23674 # original and so on. Autoconf is especially sensitive to this).
23675 . "./$as_me.lineno"
23676 # Exit status is that of the last command.
23677 exit
23678 }
23679
23680
23681 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23682 as_dirname=dirname
23683 else
23684 as_dirname=false
23685 fi
23686
23687 ECHO_C= ECHO_N= ECHO_T=
23688 case `echo -n x` in
23689 -n*)
23690 case `echo 'x\c'` in
23691 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23692 *) ECHO_C='\c';;
23693 esac;;
23694 *)
23695 ECHO_N='-n';;
23696 esac
23697
23698 if expr a : '\(a\)' >/dev/null 2>&1 &&
23699 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23700 as_expr=expr
23701 else
23702 as_expr=false
23703 fi
23704
23705 rm -f conf$$ conf$$.exe conf$$.file
23706 if test -d conf$$.dir; then
23707 rm -f conf$$.dir/conf$$.file
23708 else
23709 rm -f conf$$.dir
23710 mkdir conf$$.dir
23711 fi
23712 echo >conf$$.file
23713 if ln -s conf$$.file conf$$ 2>/dev/null; then
23714 as_ln_s='ln -s'
23715 # ... but there are two gotchas:
23716 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23717 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23718 # In both cases, we have to default to `cp -p'.
23719 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23720 as_ln_s='cp -p'
23721 elif ln conf$$.file conf$$ 2>/dev/null; then
23722 as_ln_s=ln
23723 else
23724 as_ln_s='cp -p'
23725 fi
23726 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23727 rmdir conf$$.dir 2>/dev/null
23728
23729 if mkdir -p . 2>/dev/null; then
23730 as_mkdir_p=:
23731 else
23732 test -d ./-p && rmdir ./-p
23733 as_mkdir_p=false
23734 fi
23735
23736 if test -x / >/dev/null 2>&1; then
23737 as_test_x='test -x'
23738 else
23739 if ls -dL / >/dev/null 2>&1; then
23740 as_ls_L_option=L
23741 else
23742 as_ls_L_option=
23743 fi
23744 as_test_x='
23745 eval sh -c '\''
23746 if test -d "$1"; then
23747 test -d "$1/.";
23748 else
23749 case $1 in
23750 -*)set "./$1";;
23751 esac;
23752 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23753 ???[sx]*):;;*)false;;esac;fi
23754 '\'' sh
23755 '
23756 fi
23757 as_executable_p=$as_test_x
23758
23759 # Sed expression to map a string onto a valid CPP name.
23760 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23761
23762 # Sed expression to map a string onto a valid variable name.
23763 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23764
23765
23766 exec 6>&1
23767
23768 # Save the log message, to keep $[0] and so on meaningful, and to
23769 # report actual input values of CONFIG_FILES etc. instead of their
23770 # values after options handling.
23771 ac_log="
23772 This file was extended by $as_me, which was
23773 generated by GNU Autoconf 2.61. Invocation command line was
23774
23775 CONFIG_FILES = $CONFIG_FILES
23776 CONFIG_HEADERS = $CONFIG_HEADERS
23777 CONFIG_LINKS = $CONFIG_LINKS
23778 CONFIG_COMMANDS = $CONFIG_COMMANDS
23779 $ $0 $@
23780
23781 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23782 "
23783
23784 _ACEOF
23785
23786 cat >>$CONFIG_STATUS <<_ACEOF
23787 # Files that config.status was made for.
23788 config_files="$ac_config_files"
23789 config_headers="$ac_config_headers"
23790 config_commands="$ac_config_commands"
23791
23792 _ACEOF
23793
23794 cat >>$CONFIG_STATUS <<\_ACEOF
23795 ac_cs_usage="\
23796 \`$as_me' instantiates files from templates according to the
23797 current configuration.
23798
23799 Usage: $0 [OPTIONS] [FILE]...
23800
23801 -h, --help print this help, then exit
23802 -V, --version print version number and configuration settings, then exit
23803 -q, --quiet do not print progress messages
23804 -d, --debug don't remove temporary files
23805 --recheck update $as_me by reconfiguring in the same conditions
23806 --file=FILE[:TEMPLATE]
23807 instantiate the configuration file FILE
23808 --header=FILE[:TEMPLATE]
23809 instantiate the configuration header FILE
23810
23811 Configuration files:
23812 $config_files
23813
23814 Configuration headers:
23815 $config_headers
23816
23817 Configuration commands:
23818 $config_commands
23819
23820 Report bugs to <bug-autoconf@gnu.org>."
23821
23822 _ACEOF
23823 cat >>$CONFIG_STATUS <<_ACEOF
23824 ac_cs_version="\\
23825 config.status
23826 configured by $0, generated by GNU Autoconf 2.61,
23827 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23828
23829 Copyright (C) 2006 Free Software Foundation, Inc.
23830 This config.status script is free software; the Free Software Foundation
23831 gives unlimited permission to copy, distribute and modify it."
23832
23833 ac_pwd='$ac_pwd'
23834 srcdir='$srcdir'
23835 INSTALL='$INSTALL'
23836 _ACEOF
23837
23838 cat >>$CONFIG_STATUS <<\_ACEOF
23839 # If no file are specified by the user, then we need to provide default
23840 # value. By we need to know if files were specified by the user.
23841 ac_need_defaults=:
23842 while test $# != 0
23843 do
23844 case $1 in
23845 --*=*)
23846 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23847 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23848 ac_shift=:
23849 ;;
23850 *)
23851 ac_option=$1
23852 ac_optarg=$2
23853 ac_shift=shift
23854 ;;
23855 esac
23856
23857 case $ac_option in
23858 # Handling of the options.
23859 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23860 ac_cs_recheck=: ;;
23861 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23862 echo "$ac_cs_version"; exit ;;
23863 --debug | --debu | --deb | --de | --d | -d )
23864 debug=: ;;
23865 --file | --fil | --fi | --f )
23866 $ac_shift
23867 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23868 ac_need_defaults=false;;
23869 --header | --heade | --head | --hea )
23870 $ac_shift
23871 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23872 ac_need_defaults=false;;
23873 --he | --h)
23874 # Conflict between --help and --header
23875 { echo "$as_me: error: ambiguous option: $1
23876 Try \`$0 --help' for more information." >&2
23877 { (exit 1); exit 1; }; };;
23878 --help | --hel | -h )
23879 echo "$ac_cs_usage"; exit ;;
23880 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23881 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23882 ac_cs_silent=: ;;
23883
23884 # This is an error.
23885 -*) { echo "$as_me: error: unrecognized option: $1
23886 Try \`$0 --help' for more information." >&2
23887 { (exit 1); exit 1; }; } ;;
23888
23889 *) ac_config_targets="$ac_config_targets $1"
23890 ac_need_defaults=false ;;
23891
23892 esac
23893 shift
23894 done
23895
23896 ac_configure_extra_args=
23897
23898 if $ac_cs_silent; then
23899 exec 6>/dev/null
23900 ac_configure_extra_args="$ac_configure_extra_args --silent"
23901 fi
23902
23903 _ACEOF
23904 cat >>$CONFIG_STATUS <<_ACEOF
23905 if \$ac_cs_recheck; then
23906 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23907 CONFIG_SHELL=$SHELL
23908 export CONFIG_SHELL
23909 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23910 fi
23911
23912 _ACEOF
23913 cat >>$CONFIG_STATUS <<\_ACEOF
23914 exec 5>>config.log
23915 {
23916 echo
23917 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23918 ## Running $as_me. ##
23919 _ASBOX
23920 echo "$ac_log"
23921 } >&5
23922
23923 _ACEOF
23924 cat >>$CONFIG_STATUS <<_ACEOF
23925 #
23926 # INIT-COMMANDS
23927 #
23928 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23929
23930 _ACEOF
23931
23932 cat >>$CONFIG_STATUS <<\_ACEOF
23933
23934 # Handling of arguments.
23935 for ac_config_target in $ac_config_targets
23936 do
23937 case $ac_config_target in
23938 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23939 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23940 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23941 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23942 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23943 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23944 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23945 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23946 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23947 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23948 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23949 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23950
23951 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23952 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23953 { (exit 1); exit 1; }; };;
23954 esac
23955 done
23956
23957
23958 # If the user did not use the arguments to specify the items to instantiate,
23959 # then the envvar interface is used. Set only those that are not.
23960 # We use the long form for the default assignment because of an extremely
23961 # bizarre bug on SunOS 4.1.3.
23962 if $ac_need_defaults; then
23963 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23964 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23965 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23966 fi
23967
23968 # Have a temporary directory for convenience. Make it in the build tree
23969 # simply because there is no reason against having it here, and in addition,
23970 # creating and moving files from /tmp can sometimes cause problems.
23971 # Hook for its removal unless debugging.
23972 # Note that there is a small window in which the directory will not be cleaned:
23973 # after its creation but before its name has been assigned to `$tmp'.
23974 $debug ||
23975 {
23976 tmp=
23977 trap 'exit_status=$?
23978 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23979 ' 0
23980 trap '{ (exit 1); exit 1; }' 1 2 13 15
23981 }
23982 # Create a (secure) tmp directory for tmp files.
23983
23984 {
23985 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23986 test -n "$tmp" && test -d "$tmp"
23987 } ||
23988 {
23989 tmp=./conf$$-$RANDOM
23990 (umask 077 && mkdir "$tmp")
23991 } ||
23992 {
23993 echo "$me: cannot create a temporary directory in ." >&2
23994 { (exit 1); exit 1; }
23995 }
23996
23997 #
23998 # Set up the sed scripts for CONFIG_FILES section.
23999 #
24000
24001 # No need to generate the scripts if there are no CONFIG_FILES.
24002 # This happens for instance when ./config.status config.h
24003 if test -n "$CONFIG_FILES"; then
24004
24005 _ACEOF
24006
24007
24008
24009 ac_delim='%!_!# '
24010 for ac_last_try in false false false false false :; do
24011 cat >conf$$subs.sed <<_ACEOF
24012 SHELL!$SHELL$ac_delim
24013 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24014 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24015 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24016 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24017 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24018 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24019 exec_prefix!$exec_prefix$ac_delim
24020 prefix!$prefix$ac_delim
24021 program_transform_name!$program_transform_name$ac_delim
24022 bindir!$bindir$ac_delim
24023 sbindir!$sbindir$ac_delim
24024 libexecdir!$libexecdir$ac_delim
24025 datarootdir!$datarootdir$ac_delim
24026 datadir!$datadir$ac_delim
24027 sysconfdir!$sysconfdir$ac_delim
24028 sharedstatedir!$sharedstatedir$ac_delim
24029 localstatedir!$localstatedir$ac_delim
24030 includedir!$includedir$ac_delim
24031 oldincludedir!$oldincludedir$ac_delim
24032 docdir!$docdir$ac_delim
24033 infodir!$infodir$ac_delim
24034 htmldir!$htmldir$ac_delim
24035 dvidir!$dvidir$ac_delim
24036 pdfdir!$pdfdir$ac_delim
24037 psdir!$psdir$ac_delim
24038 libdir!$libdir$ac_delim
24039 localedir!$localedir$ac_delim
24040 mandir!$mandir$ac_delim
24041 DEFS!$DEFS$ac_delim
24042 ECHO_C!$ECHO_C$ac_delim
24043 ECHO_N!$ECHO_N$ac_delim
24044 ECHO_T!$ECHO_T$ac_delim
24045 LIBS!$LIBS$ac_delim
24046 build_alias!$build_alias$ac_delim
24047 host_alias!$host_alias$ac_delim
24048 target_alias!$target_alias$ac_delim
24049 MAINT!$MAINT$ac_delim
24050 build!$build$ac_delim
24051 build_cpu!$build_cpu$ac_delim
24052 build_vendor!$build_vendor$ac_delim
24053 build_os!$build_os$ac_delim
24054 host!$host$ac_delim
24055 host_cpu!$host_cpu$ac_delim
24056 host_vendor!$host_vendor$ac_delim
24057 host_os!$host_os$ac_delim
24058 CC!$CC$ac_delim
24059 CFLAGS!$CFLAGS$ac_delim
24060 LDFLAGS!$LDFLAGS$ac_delim
24061 CPPFLAGS!$CPPFLAGS$ac_delim
24062 ac_ct_CC!$ac_ct_CC$ac_delim
24063 EXEEXT!$EXEEXT$ac_delim
24064 OBJEXT!$OBJEXT$ac_delim
24065 CPP!$CPP$ac_delim
24066 GREP!$GREP$ac_delim
24067 EGREP!$EGREP$ac_delim
24068 LN_S!$LN_S$ac_delim
24069 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24070 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24071 INSTALL_DATA!$INSTALL_DATA$ac_delim
24072 RANLIB!$RANLIB$ac_delim
24073 INSTALL_INFO!$INSTALL_INFO$ac_delim
24074 GZIP_PROG!$GZIP_PROG$ac_delim
24075 LIBSOUND!$LIBSOUND$ac_delim
24076 PKG_CONFIG!$PKG_CONFIG$ac_delim
24077 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24078 ALSA_LIBS!$ALSA_LIBS$ac_delim
24079 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24080 SET_MAKE!$SET_MAKE$ac_delim
24081 XMKMF!$XMKMF$ac_delim
24082 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24083 GTK_LIBS!$GTK_LIBS$ac_delim
24084 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24085 XFT_LIBS!$XFT_LIBS$ac_delim
24086 ALLOCA!$ALLOCA$ac_delim
24087 liblockfile!$liblockfile$ac_delim
24088 LIBOBJS!$LIBOBJS$ac_delim
24089 NEED_SETGID!$NEED_SETGID$ac_delim
24090 KMEM_GROUP!$KMEM_GROUP$ac_delim
24091 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24092 GETOPT_H!$GETOPT_H$ac_delim
24093 GETOPTOBJS!$GETOPTOBJS$ac_delim
24094 version!$version$ac_delim
24095 configuration!$configuration$ac_delim
24096 canonical!$canonical$ac_delim
24097 srcdir!$srcdir$ac_delim
24098 lispdir!$lispdir$ac_delim
24099 locallisppath!$locallisppath$ac_delim
24100 lisppath!$lisppath$ac_delim
24101 x_default_search_path!$x_default_search_path$ac_delim
24102 etcdir!$etcdir$ac_delim
24103 archlibdir!$archlibdir$ac_delim
24104 bitmapdir!$bitmapdir$ac_delim
24105 gamedir!$gamedir$ac_delim
24106 gameuser!$gameuser$ac_delim
24107 c_switch_system!$c_switch_system$ac_delim
24108 c_switch_machine!$c_switch_machine$ac_delim
24109 _ACEOF
24110
24111 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24112 break
24113 elif $ac_last_try; then
24114 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24115 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24116 { (exit 1); exit 1; }; }
24117 else
24118 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24119 fi
24120 done
24121
24122 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24123 if test -n "$ac_eof"; then
24124 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24125 ac_eof=`expr $ac_eof + 1`
24126 fi
24127
24128 cat >>$CONFIG_STATUS <<_ACEOF
24129 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24130 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24131 _ACEOF
24132 sed '
24133 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24134 s/^/s,@/; s/!/@,|#_!!_#|/
24135 :n
24136 t n
24137 s/'"$ac_delim"'$/,g/; t
24138 s/$/\\/; p
24139 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24140 ' >>$CONFIG_STATUS <conf$$subs.sed
24141 rm -f conf$$subs.sed
24142 cat >>$CONFIG_STATUS <<_ACEOF
24143 CEOF$ac_eof
24144 _ACEOF
24145
24146
24147 ac_delim='%!_!# '
24148 for ac_last_try in false false false false false :; do
24149 cat >conf$$subs.sed <<_ACEOF
24150 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24151 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24152 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24153 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24154 machfile!$machfile$ac_delim
24155 opsysfile!$opsysfile$ac_delim
24156 carbon_appdir!$carbon_appdir$ac_delim
24157 LTLIBOBJS!$LTLIBOBJS$ac_delim
24158 _ACEOF
24159
24160 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
24161 break
24162 elif $ac_last_try; then
24163 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24164 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24165 { (exit 1); exit 1; }; }
24166 else
24167 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24168 fi
24169 done
24170
24171 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24172 if test -n "$ac_eof"; then
24173 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24174 ac_eof=`expr $ac_eof + 1`
24175 fi
24176
24177 cat >>$CONFIG_STATUS <<_ACEOF
24178 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24179 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24180 _ACEOF
24181 sed '
24182 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24183 s/^/s,@/; s/!/@,|#_!!_#|/
24184 :n
24185 t n
24186 s/'"$ac_delim"'$/,g/; t
24187 s/$/\\/; p
24188 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24189 ' >>$CONFIG_STATUS <conf$$subs.sed
24190 rm -f conf$$subs.sed
24191 cat >>$CONFIG_STATUS <<_ACEOF
24192 :end
24193 s/|#_!!_#|//g
24194 CEOF$ac_eof
24195 _ACEOF
24196
24197
24198 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24199 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24200 # trailing colons and then remove the whole line if VPATH becomes empty
24201 # (actually we leave an empty line to preserve line numbers).
24202 if test "x$srcdir" = x.; then
24203 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24204 s/:*\$(srcdir):*/:/
24205 s/:*\${srcdir}:*/:/
24206 s/:*@srcdir@:*/:/
24207 s/^\([^=]*=[ ]*\):*/\1/
24208 s/:*$//
24209 s/^[^=]*=[ ]*$//
24210 }'
24211 fi
24212
24213 cat >>$CONFIG_STATUS <<\_ACEOF
24214 fi # test -n "$CONFIG_FILES"
24215
24216
24217 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24218 do
24219 case $ac_tag in
24220 :[FHLC]) ac_mode=$ac_tag; continue;;
24221 esac
24222 case $ac_mode$ac_tag in
24223 :[FHL]*:*);;
24224 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24225 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24226 { (exit 1); exit 1; }; };;
24227 :[FH]-) ac_tag=-:-;;
24228 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24229 esac
24230 ac_save_IFS=$IFS
24231 IFS=:
24232 set x $ac_tag
24233 IFS=$ac_save_IFS
24234 shift
24235 ac_file=$1
24236 shift
24237
24238 case $ac_mode in
24239 :L) ac_source=$1;;
24240 :[FH])
24241 ac_file_inputs=
24242 for ac_f
24243 do
24244 case $ac_f in
24245 -) ac_f="$tmp/stdin";;
24246 *) # Look for the file first in the build tree, then in the source tree
24247 # (if the path is not absolute). The absolute path cannot be DOS-style,
24248 # because $ac_f cannot contain `:'.
24249 test -f "$ac_f" ||
24250 case $ac_f in
24251 [\\/$]*) false;;
24252 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24253 esac ||
24254 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24255 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24256 { (exit 1); exit 1; }; };;
24257 esac
24258 ac_file_inputs="$ac_file_inputs $ac_f"
24259 done
24260
24261 # Let's still pretend it is `configure' which instantiates (i.e., don't
24262 # use $as_me), people would be surprised to read:
24263 # /* config.h. Generated by config.status. */
24264 configure_input="Generated from "`IFS=:
24265 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24266 if test x"$ac_file" != x-; then
24267 configure_input="$ac_file. $configure_input"
24268 { echo "$as_me:$LINENO: creating $ac_file" >&5
24269 echo "$as_me: creating $ac_file" >&6;}
24270 fi
24271
24272 case $ac_tag in
24273 *:-:* | *:-) cat >"$tmp/stdin";;
24274 esac
24275 ;;
24276 esac
24277
24278 ac_dir=`$as_dirname -- "$ac_file" ||
24279 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24280 X"$ac_file" : 'X\(//\)[^/]' \| \
24281 X"$ac_file" : 'X\(//\)$' \| \
24282 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24283 echo X"$ac_file" |
24284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24285 s//\1/
24286 q
24287 }
24288 /^X\(\/\/\)[^/].*/{
24289 s//\1/
24290 q
24291 }
24292 /^X\(\/\/\)$/{
24293 s//\1/
24294 q
24295 }
24296 /^X\(\/\).*/{
24297 s//\1/
24298 q
24299 }
24300 s/.*/./; q'`
24301 { as_dir="$ac_dir"
24302 case $as_dir in #(
24303 -*) as_dir=./$as_dir;;
24304 esac
24305 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24306 as_dirs=
24307 while :; do
24308 case $as_dir in #(
24309 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24310 *) as_qdir=$as_dir;;
24311 esac
24312 as_dirs="'$as_qdir' $as_dirs"
24313 as_dir=`$as_dirname -- "$as_dir" ||
24314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24315 X"$as_dir" : 'X\(//\)[^/]' \| \
24316 X"$as_dir" : 'X\(//\)$' \| \
24317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24318 echo X"$as_dir" |
24319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24320 s//\1/
24321 q
24322 }
24323 /^X\(\/\/\)[^/].*/{
24324 s//\1/
24325 q
24326 }
24327 /^X\(\/\/\)$/{
24328 s//\1/
24329 q
24330 }
24331 /^X\(\/\).*/{
24332 s//\1/
24333 q
24334 }
24335 s/.*/./; q'`
24336 test -d "$as_dir" && break
24337 done
24338 test -z "$as_dirs" || eval "mkdir $as_dirs"
24339 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24340 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24341 { (exit 1); exit 1; }; }; }
24342 ac_builddir=.
24343
24344 case "$ac_dir" in
24345 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24346 *)
24347 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24348 # A ".." for each directory in $ac_dir_suffix.
24349 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24350 case $ac_top_builddir_sub in
24351 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24352 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24353 esac ;;
24354 esac
24355 ac_abs_top_builddir=$ac_pwd
24356 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24357 # for backward compatibility:
24358 ac_top_builddir=$ac_top_build_prefix
24359
24360 case $srcdir in
24361 .) # We are building in place.
24362 ac_srcdir=.
24363 ac_top_srcdir=$ac_top_builddir_sub
24364 ac_abs_top_srcdir=$ac_pwd ;;
24365 [\\/]* | ?:[\\/]* ) # Absolute name.
24366 ac_srcdir=$srcdir$ac_dir_suffix;
24367 ac_top_srcdir=$srcdir
24368 ac_abs_top_srcdir=$srcdir ;;
24369 *) # Relative name.
24370 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24371 ac_top_srcdir=$ac_top_build_prefix$srcdir
24372 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24373 esac
24374 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24375
24376
24377 case $ac_mode in
24378 :F)
24379 #
24380 # CONFIG_FILE
24381 #
24382
24383 case $INSTALL in
24384 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24385 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24386 esac
24387 _ACEOF
24388
24389 cat >>$CONFIG_STATUS <<\_ACEOF
24390 # If the template does not know about datarootdir, expand it.
24391 # FIXME: This hack should be removed a few years after 2.60.
24392 ac_datarootdir_hack=; ac_datarootdir_seen=
24393
24394 case `sed -n '/datarootdir/ {
24395 p
24396 q
24397 }
24398 /@datadir@/p
24399 /@docdir@/p
24400 /@infodir@/p
24401 /@localedir@/p
24402 /@mandir@/p
24403 ' $ac_file_inputs` in
24404 *datarootdir*) ac_datarootdir_seen=yes;;
24405 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24406 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24407 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24408 _ACEOF
24409 cat >>$CONFIG_STATUS <<_ACEOF
24410 ac_datarootdir_hack='
24411 s&@datadir@&$datadir&g
24412 s&@docdir@&$docdir&g
24413 s&@infodir@&$infodir&g
24414 s&@localedir@&$localedir&g
24415 s&@mandir@&$mandir&g
24416 s&\\\${datarootdir}&$datarootdir&g' ;;
24417 esac
24418 _ACEOF
24419
24420 # Neutralize VPATH when `$srcdir' = `.'.
24421 # Shell code in configure.ac might set extrasub.
24422 # FIXME: do we really want to maintain this feature?
24423 cat >>$CONFIG_STATUS <<_ACEOF
24424 sed "$ac_vpsub
24425 $extrasub
24426 _ACEOF
24427 cat >>$CONFIG_STATUS <<\_ACEOF
24428 :t
24429 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24430 s&@configure_input@&$configure_input&;t t
24431 s&@top_builddir@&$ac_top_builddir_sub&;t t
24432 s&@srcdir@&$ac_srcdir&;t t
24433 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24434 s&@top_srcdir@&$ac_top_srcdir&;t t
24435 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24436 s&@builddir@&$ac_builddir&;t t
24437 s&@abs_builddir@&$ac_abs_builddir&;t t
24438 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24439 s&@INSTALL@&$ac_INSTALL&;t t
24440 $ac_datarootdir_hack
24441 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24442
24443 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24444 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24445 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24446 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24447 which seems to be undefined. Please make sure it is defined." >&5
24448 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24449 which seems to be undefined. Please make sure it is defined." >&2;}
24450
24451 rm -f "$tmp/stdin"
24452 case $ac_file in
24453 -) cat "$tmp/out"; rm -f "$tmp/out";;
24454 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24455 esac
24456 ;;
24457 :H)
24458 #
24459 # CONFIG_HEADER
24460 #
24461 _ACEOF
24462
24463 # Transform confdefs.h into a sed script `conftest.defines', that
24464 # substitutes the proper values into config.h.in to produce config.h.
24465 rm -f conftest.defines conftest.tail
24466 # First, append a space to every undef/define line, to ease matching.
24467 echo 's/$/ /' >conftest.defines
24468 # Then, protect against being on the right side of a sed subst, or in
24469 # an unquoted here document, in config.status. If some macros were
24470 # called several times there might be several #defines for the same
24471 # symbol, which is useless. But do not sort them, since the last
24472 # AC_DEFINE must be honored.
24473 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24474 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24475 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24476 # PARAMS is the parameter list in the macro definition--in most cases, it's
24477 # just an empty string.
24478 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24479 ac_dB='\\)[ (].*,\\1define\\2'
24480 ac_dC=' '
24481 ac_dD=' ,'
24482
24483 uniq confdefs.h |
24484 sed -n '
24485 t rset
24486 :rset
24487 s/^[ ]*#[ ]*define[ ][ ]*//
24488 t ok
24489 d
24490 :ok
24491 s/[\\&,]/\\&/g
24492 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24493 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24494 ' >>conftest.defines
24495
24496 # Remove the space that was appended to ease matching.
24497 # Then replace #undef with comments. This is necessary, for
24498 # example, in the case of _POSIX_SOURCE, which is predefined and required
24499 # on some systems where configure will not decide to define it.
24500 # (The regexp can be short, since the line contains either #define or #undef.)
24501 echo 's/ $//
24502 s,^[ #]*u.*,/* & */,' >>conftest.defines
24503
24504 # Break up conftest.defines:
24505 ac_max_sed_lines=50
24506
24507 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24508 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24509 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24510 # et cetera.
24511 ac_in='$ac_file_inputs'
24512 ac_out='"$tmp/out1"'
24513 ac_nxt='"$tmp/out2"'
24514
24515 while :
24516 do
24517 # Write a here document:
24518 cat >>$CONFIG_STATUS <<_ACEOF
24519 # First, check the format of the line:
24520 cat >"\$tmp/defines.sed" <<\\CEOF
24521 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24522 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24523 b
24524 :def
24525 _ACEOF
24526 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24527 echo 'CEOF
24528 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24529 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24530 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24531 grep . conftest.tail >/dev/null || break
24532 rm -f conftest.defines
24533 mv conftest.tail conftest.defines
24534 done
24535 rm -f conftest.defines conftest.tail
24536
24537 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24538 cat >>$CONFIG_STATUS <<\_ACEOF
24539 if test x"$ac_file" != x-; then
24540 echo "/* $configure_input */" >"$tmp/config.h"
24541 cat "$ac_result" >>"$tmp/config.h"
24542 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24543 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24544 echo "$as_me: $ac_file is unchanged" >&6;}
24545 else
24546 rm -f $ac_file
24547 mv "$tmp/config.h" $ac_file
24548 fi
24549 else
24550 echo "/* $configure_input */"
24551 cat "$ac_result"
24552 fi
24553 rm -f "$tmp/out12"
24554 ;;
24555
24556 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24557 echo "$as_me: executing $ac_file commands" >&6;}
24558 ;;
24559 esac
24560
24561
24562 case $ac_file$ac_mode in
24563 "default":C)
24564
24565 ### Make the necessary directories, if they don't exist.
24566 for dir in etc lisp ; do
24567 test -d ${dir} || mkdir ${dir}
24568 done
24569
24570 # Build src/Makefile from ${srcdir}/src/Makefile.c
24571 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24572 # This must be done after src/config.h is built, since we rely on that file.
24573
24574 # Now get this: Some word that is part of the ${srcdir} directory name
24575 # or the ${configuration} value might, just might, happen to be an
24576 # identifier like `sun4' or `i386' or something, and be predefined by
24577 # the C preprocessor to some helpful value like 1, or maybe the empty
24578 # string. Needless to say consequent macro substitutions are less
24579 # than conducive to the makefile finding the correct directory.
24580 undefs="`echo $top_srcdir $configuration $canonical |
24581 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24582 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24583 `"
24584
24585 echo creating src/epaths.h
24586 ${MAKE-make} epaths-force
24587
24588 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24589 # `..' to `. .' unless invoked with -traditional
24590
24591 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24592 CPPFLAGS="$CPPFLAGS -traditional"
24593 fi
24594
24595 echo creating lib-src/Makefile
24596 ( cd lib-src
24597 rm -f junk.c junk1.c junk2.c
24598 sed -e '/start of cpp stuff/q' \
24599 < Makefile.c > junk1.c
24600 sed -e '1,/start of cpp stuff/d'\
24601 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24602 < Makefile.c > junk.c
24603 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24604 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24605 cat junk1.c junk2.c > Makefile.new
24606 rm -f junk.c junk1.c junk2.c
24607 chmod 444 Makefile.new
24608 mv -f Makefile.new Makefile
24609 )
24610
24611 echo creating src/Makefile
24612 ( cd src
24613 rm -f junk.c junk1.c junk2.c
24614 sed -e '/start of cpp stuff/q' \
24615 < Makefile.c > junk1.c
24616 sed -e '1,/start of cpp stuff/d'\
24617 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24618 < Makefile.c > junk.c
24619 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24620 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24621 cat junk1.c junk2.c > Makefile.new
24622 rm -f junk.c junk1.c junk2.c
24623 chmod 444 Makefile.new
24624 mv -f Makefile.new Makefile
24625 )
24626
24627 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24628 echo creating src/.gdbinit
24629 echo source $srcdir/src/.gdbinit > src/.gdbinit
24630 fi
24631
24632 # This is how we know whether to re-run configure in certain cases.
24633 touch src/config.stamp
24634
24635 ;;
24636
24637 esac
24638 done # for ac_tag
24639
24640
24641 { (exit 0); exit 0; }
24642 _ACEOF
24643 chmod +x $CONFIG_STATUS
24644 ac_clean_files=$ac_clean_files_save
24645
24646
24647 # configure is writing to config.log, and then calls config.status.
24648 # config.status does its own redirection, appending to config.log.
24649 # Unfortunately, on DOS this fails, as config.log is still kept open
24650 # by configure, so config.status won't be able to write to it; its
24651 # output is simply discarded. So we exec the FD to /dev/null,
24652 # effectively closing config.log, so it can be properly (re)opened and
24653 # appended to by config.status. When coming back to configure, we
24654 # need to make the FD available again.
24655 if test "$no_create" != yes; then
24656 ac_cs_success=:
24657 ac_config_status_args=
24658 test "$silent" = yes &&
24659 ac_config_status_args="$ac_config_status_args --quiet"
24660 exec 5>/dev/null
24661 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24662 exec 5>>config.log
24663 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24664 # would make configure fail if this is the last instruction.
24665 $ac_cs_success || { (exit 1); exit 1; }
24666 fi
24667
24668