(scan_lists): Follow coding convention.
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.50.
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='emacs'
574 PACKAGE_TARNAME='emacs'
575 PACKAGE_VERSION='23.0.50'
576 PACKAGE_STRING='emacs 23.0.50'
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 MAKEINFO
683 LIBSOUND
684 PKG_CONFIG
685 ALSA_CFLAGS
686 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 HAVE_XSERVER
691 RSVG_CFLAGS
692 RSVG_LIBS
693 GTK_CFLAGS
694 GTK_LIBS
695 DBUS_CFLAGS
696 DBUS_LIBS
697 XFT_CFLAGS
698 XFT_LIBS
699 FREETYPE_CFLAGS
700 FREETYPE_LIBS
701 FONTCONFIG_CFLAGS
702 FONTCONFIG_LIBS
703 LIBOTF_CFLAGS
704 LIBOTF_LIBS
705 M17N_FLT_CFLAGS
706 M17N_FLT_LIBS
707 ALLOCA
708 liblockfile
709 LIBOBJS
710 NEED_SETGID
711 KMEM_GROUP
712 GETLOADAVG_LIBS
713 GETOPT_H
714 GETOPTOBJS
715 version
716 configuration
717 canonical
718 srcdir
719 lispdir
720 locallisppath
721 lisppath
722 x_default_search_path
723 etcdir
724 archlibdir
725 bitmapdir
726 gamedir
727 gameuser
728 c_switch_system
729 c_switch_machine
730 LD_SWITCH_X_SITE
731 LD_SWITCH_X_SITE_AUX
732 C_SWITCH_X_SITE
733 X_TOOLKIT_TYPE
734 machfile
735 opsysfile
736 carbon_appdir
737 LTLIBOBJS'
738 ac_subst_files=''
739 ac_precious_vars='build_alias
740 host_alias
741 target_alias
742 CC
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
747 CPP
748 XMKMF'
749
750
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
756 cache_file=/dev/null
757 exec_prefix=NONE
758 no_create=
759 no_recursion=
760 prefix=NONE
761 program_prefix=NONE
762 program_suffix=NONE
763 program_transform_name=s,x,x,
764 silent=
765 site=
766 srcdir=
767 verbose=
768 x_includes=NONE
769 x_libraries=NONE
770
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir='${datarootdir}/info'
789 htmldir='${docdir}'
790 dvidir='${docdir}'
791 pdfdir='${docdir}'
792 psdir='${docdir}'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
796
797 ac_prev=
798 ac_dashdash=
799 for ac_option
800 do
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
804 ac_prev=
805 continue
806 fi
807
808 case $ac_option in
809 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 *) ac_optarg=yes ;;
811 esac
812
813 # Accept the important Cygnus configure options, so we can diagnose typos.
814
815 case $ac_dashdash$ac_option in
816 --)
817 ac_dashdash=yes ;;
818
819 -bindir | --bindir | --bindi | --bind | --bin | --bi)
820 ac_prev=bindir ;;
821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822 bindir=$ac_optarg ;;
823
824 -build | --build | --buil | --bui | --bu)
825 ac_prev=build_alias ;;
826 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827 build_alias=$ac_optarg ;;
828
829 -cache-file | --cache-file | --cache-fil | --cache-fi \
830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831 ac_prev=cache_file ;;
832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834 cache_file=$ac_optarg ;;
835
836 --config-cache | -C)
837 cache_file=config.cache ;;
838
839 -datadir | --datadir | --datadi | --datad)
840 ac_prev=datadir ;;
841 -datadir=* | --datadir=* | --datadi=* | --datad=*)
842 datadir=$ac_optarg ;;
843
844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845 | --dataroo | --dataro | --datar)
846 ac_prev=datarootdir ;;
847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849 datarootdir=$ac_optarg ;;
850
851 -disable-* | --disable-*)
852 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_$ac_feature=no ;;
859
860 -docdir | --docdir | --docdi | --doc | --do)
861 ac_prev=docdir ;;
862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863 docdir=$ac_optarg ;;
864
865 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866 ac_prev=dvidir ;;
867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868 dvidir=$ac_optarg ;;
869
870 -enable-* | --enable-*)
871 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_$ac_feature=\$ac_optarg ;;
878
879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881 | --exec | --exe | --ex)
882 ac_prev=exec_prefix ;;
883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885 | --exec=* | --exe=* | --ex=*)
886 exec_prefix=$ac_optarg ;;
887
888 -gas | --gas | --ga | --g)
889 # Obsolete; use --with-gas.
890 with_gas=yes ;;
891
892 -help | --help | --hel | --he | -h)
893 ac_init_help=long ;;
894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895 ac_init_help=recursive ;;
896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897 ac_init_help=short ;;
898
899 -host | --host | --hos | --ho)
900 ac_prev=host_alias ;;
901 -host=* | --host=* | --hos=* | --ho=*)
902 host_alias=$ac_optarg ;;
903
904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
905 ac_prev=htmldir ;;
906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
907 | --ht=*)
908 htmldir=$ac_optarg ;;
909
910 -includedir | --includedir | --includedi | --included | --include \
911 | --includ | --inclu | --incl | --inc)
912 ac_prev=includedir ;;
913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914 | --includ=* | --inclu=* | --incl=* | --inc=*)
915 includedir=$ac_optarg ;;
916
917 -infodir | --infodir | --infodi | --infod | --info | --inf)
918 ac_prev=infodir ;;
919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920 infodir=$ac_optarg ;;
921
922 -libdir | --libdir | --libdi | --libd)
923 ac_prev=libdir ;;
924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
925 libdir=$ac_optarg ;;
926
927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928 | --libexe | --libex | --libe)
929 ac_prev=libexecdir ;;
930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931 | --libexe=* | --libex=* | --libe=*)
932 libexecdir=$ac_optarg ;;
933
934 -localedir | --localedir | --localedi | --localed | --locale)
935 ac_prev=localedir ;;
936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937 localedir=$ac_optarg ;;
938
939 -localstatedir | --localstatedir | --localstatedi | --localstated \
940 | --localstate | --localstat | --localsta | --localst | --locals)
941 ac_prev=localstatedir ;;
942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944 localstatedir=$ac_optarg ;;
945
946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
947 ac_prev=mandir ;;
948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949 mandir=$ac_optarg ;;
950
951 -nfp | --nfp | --nf)
952 # Obsolete; use --without-fp.
953 with_fp=no ;;
954
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c | -n)
957 no_create=yes ;;
958
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
961 no_recursion=yes ;;
962
963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965 | --oldin | --oldi | --old | --ol | --o)
966 ac_prev=oldincludedir ;;
967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970 oldincludedir=$ac_optarg ;;
971
972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
973 ac_prev=prefix ;;
974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
975 prefix=$ac_optarg ;;
976
977 -program-prefix | --program-prefix | --program-prefi | --program-pref \
978 | --program-pre | --program-pr | --program-p)
979 ac_prev=program_prefix ;;
980 -program-prefix=* | --program-prefix=* | --program-prefi=* \
981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982 program_prefix=$ac_optarg ;;
983
984 -program-suffix | --program-suffix | --program-suffi | --program-suff \
985 | --program-suf | --program-su | --program-s)
986 ac_prev=program_suffix ;;
987 -program-suffix=* | --program-suffix=* | --program-suffi=* \
988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989 program_suffix=$ac_optarg ;;
990
991 -program-transform-name | --program-transform-name \
992 | --program-transform-nam | --program-transform-na \
993 | --program-transform-n | --program-transform- \
994 | --program-transform | --program-transfor \
995 | --program-transfo | --program-transf \
996 | --program-trans | --program-tran \
997 | --progr-tra | --program-tr | --program-t)
998 ac_prev=program_transform_name ;;
999 -program-transform-name=* | --program-transform-name=* \
1000 | --program-transform-nam=* | --program-transform-na=* \
1001 | --program-transform-n=* | --program-transform-=* \
1002 | --program-transform=* | --program-transfor=* \
1003 | --program-transfo=* | --program-transf=* \
1004 | --program-trans=* | --program-tran=* \
1005 | --progr-tra=* | --program-tr=* | --program-t=*)
1006 program_transform_name=$ac_optarg ;;
1007
1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1009 ac_prev=pdfdir ;;
1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011 pdfdir=$ac_optarg ;;
1012
1013 -psdir | --psdir | --psdi | --psd | --ps)
1014 ac_prev=psdir ;;
1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1016 psdir=$ac_optarg ;;
1017
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1020 silent=yes ;;
1021
1022 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1023 ac_prev=sbindir ;;
1024 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1025 | --sbi=* | --sb=*)
1026 sbindir=$ac_optarg ;;
1027
1028 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030 | --sharedst | --shareds | --shared | --share | --shar \
1031 | --sha | --sh)
1032 ac_prev=sharedstatedir ;;
1033 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1036 | --sha=* | --sh=*)
1037 sharedstatedir=$ac_optarg ;;
1038
1039 -site | --site | --sit)
1040 ac_prev=site ;;
1041 -site=* | --site=* | --sit=*)
1042 site=$ac_optarg ;;
1043
1044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1045 ac_prev=srcdir ;;
1046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047 srcdir=$ac_optarg ;;
1048
1049 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050 | --syscon | --sysco | --sysc | --sys | --sy)
1051 ac_prev=sysconfdir ;;
1052 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054 sysconfdir=$ac_optarg ;;
1055
1056 -target | --target | --targe | --targ | --tar | --ta | --t)
1057 ac_prev=target_alias ;;
1058 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059 target_alias=$ac_optarg ;;
1060
1061 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1062 verbose=yes ;;
1063
1064 -version | --version | --versio | --versi | --vers | -V)
1065 ac_init_version=: ;;
1066
1067 -with-* | --with-*)
1068 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_$ac_package=\$ac_optarg ;;
1075
1076 -without-* | --without-*)
1077 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_$ac_package=no ;;
1084
1085 --x)
1086 # Obsolete; use --with-x.
1087 with_x=yes ;;
1088
1089 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090 | --x-incl | --x-inc | --x-in | --x-i)
1091 ac_prev=x_includes ;;
1092 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094 x_includes=$ac_optarg ;;
1095
1096 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098 ac_prev=x_libraries ;;
1099 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101 x_libraries=$ac_optarg ;;
1102
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1106 ;;
1107
1108 *=*)
1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\$ac_optarg
1115 export $ac_envvar ;;
1116
1117 *)
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1123 ;;
1124
1125 esac
1126 done
1127
1128 if test -n "$ac_prev"; then
1129 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1132 fi
1133
1134 # Be sure to have absolute directory names.
1135 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1139 do
1140 eval ac_val=\$$ac_var
1141 case $ac_val in
1142 [\\/$]* | ?:[\\/]* ) continue;;
1143 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1144 esac
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1147 done
1148
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1152 build=$build_alias
1153 host=$host_alias
1154 target=$target_alias
1155
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x; then
1158 if test "x$build_alias" = x; then
1159 cross_compiling=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1163 cross_compiling=yes
1164 fi
1165 fi
1166
1167 ac_tool_prefix=
1168 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1169
1170 test "$silent" = yes && exec 6>/dev/null
1171
1172
1173 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di=`ls -di .` &&
1175 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1181
1182
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192 echo X"$0" |
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1194 s//\1/
1195 q
1196 }
1197 /^X\(\/\/\)[^/].*/{
1198 s//\1/
1199 q
1200 }
1201 /^X\(\/\/\)$/{
1202 s//\1/
1203 q
1204 }
1205 /^X\(\/\).*/{
1206 s//\1/
1207 q
1208 }
1209 s/.*/./; q'`
1210 srcdir=$ac_confdir
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 srcdir=..
1213 fi
1214 else
1215 ac_srcdir_defaulted=no
1216 fi
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1221 fi
1222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 ac_abs_confdir=`(
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1226 pwd)`
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1229 srcdir=.
1230 fi
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1234 case $srcdir in
1235 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 esac
1237 for ac_var in $ac_precious_vars; do
1238 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_${ac_var}_value=\$${ac_var}
1240 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242 done
1243
1244 #
1245 # Report the --help message.
1246 #
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1250 cat <<_ACEOF
1251 \`configure' configures emacs 23.0.50 to adapt to many kinds of systems.
1252
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1254
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1257
1258 Defaults for the options are specified in brackets.
1259
1260 Configuration:
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1270
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1275 [PREFIX]
1276
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1281
1282 For better control, use the options below.
1283
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1304 _ACEOF
1305
1306 cat <<\_ACEOF
1307
1308 Program names:
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1312
1313 X features:
1314 --x-includes=DIR X include files are in DIR
1315 --x-libraries=DIR X library files are in DIR
1316
1317 System types:
1318 --build=BUILD configure for building on BUILD [guessed]
1319 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1320 _ACEOF
1321 fi
1322
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive ) echo "Configuration of emacs 23.0.50:";;
1326 esac
1327 cat <<\_ACEOF
1328
1329 Optional Features:
1330 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1331 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1332 --enable-carbon-app[=DIR]
1333 specify install directory for Emacs.app on Mac OS X
1334 [DIR=/Application]
1335 --enable-font-backend compile code of font-backend support
1336 --enable-asserts compile code with asserts enabled
1337 --enable-maintainer-mode
1338 enable make rules and dependencies not useful (and
1339 sometimes confusing) to the casual installer
1340 --enable-locallisppath=PATH
1341 directories Emacs should search for lisp files
1342 specific to this site
1343 --disable-largefile omit support for large files
1344
1345 Optional Packages:
1346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1348 --without-gcc don't use GCC to compile Emacs even if GCC is found
1349 --without-pop don't support POP mail retrieval with movemail
1350 --with-kerberos support Kerberos-authenticated POP
1351 --with-kerberos5 support Kerberos version 5 authenticated POP
1352 --with-hesiod support Hesiod to get the POP server host
1353 --without-sound don't compile with sound support
1354 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1355 motif, gtk, no)
1356 --without-xpm don't compile with XPM image support
1357 --without-jpeg don't compile with JPEG image support
1358 --without-tiff don't compile with TIFF image support
1359 --without-gif don't compile with GIF image support
1360 --without-png don't compile with PNG image support
1361 --without-rsvg don't compile with SVG image support
1362 --without-freetype don't use Freetype for local font support
1363 --without-xft don't use XFT for anti aliased fonts
1364 --without-libotf don't use libotf for OpenType font support
1365 --without-m17n-flt don't use m17n-flt for text shaping
1366 --with-gtk use GTK toolkit
1367 --without-toolkit-scroll-bars
1368 don't use Motif or Xaw3d scroll bars
1369 --without-xaw3d don't use Xaw3d
1370 --without-xim don't use X11 XIM
1371 --with-carbon use Carbon GUI on Mac OS X. This is unsupported!
1372 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1373 console
1374 --without-dbus don't compile with D-Bus support
1375 --with-pkg-config-prog=PATH
1376 Path to pkg-config for finding GTK and librsvg
1377 --with-x use the X Window System
1378
1379 Some influential environment variables:
1380 CC C compiler command
1381 CFLAGS C compiler flags
1382 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1383 nonstandard directory <lib dir>
1384 LIBS libraries to pass to the linker, e.g. -l<library>
1385 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1386 you have headers in a nonstandard directory <include dir>
1387 CPP C preprocessor
1388 XMKMF Path to xmkmf, Makefile generator for X Window System
1389
1390 Use these variables to override the choices made by `configure' or to help
1391 it to find libraries and programs with nonstandard names/locations.
1392
1393 _ACEOF
1394 ac_status=$?
1395 fi
1396
1397 if test "$ac_init_help" = "recursive"; then
1398 # If there are subdirs, report their specific --help.
1399 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1400 test -d "$ac_dir" || continue
1401 ac_builddir=.
1402
1403 case "$ac_dir" in
1404 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405 *)
1406 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1407 # A ".." for each directory in $ac_dir_suffix.
1408 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1409 case $ac_top_builddir_sub in
1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1412 esac ;;
1413 esac
1414 ac_abs_top_builddir=$ac_pwd
1415 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1416 # for backward compatibility:
1417 ac_top_builddir=$ac_top_build_prefix
1418
1419 case $srcdir in
1420 .) # We are building in place.
1421 ac_srcdir=.
1422 ac_top_srcdir=$ac_top_builddir_sub
1423 ac_abs_top_srcdir=$ac_pwd ;;
1424 [\\/]* | ?:[\\/]* ) # Absolute name.
1425 ac_srcdir=$srcdir$ac_dir_suffix;
1426 ac_top_srcdir=$srcdir
1427 ac_abs_top_srcdir=$srcdir ;;
1428 *) # Relative name.
1429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430 ac_top_srcdir=$ac_top_build_prefix$srcdir
1431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1432 esac
1433 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1434
1435 cd "$ac_dir" || { ac_status=$?; continue; }
1436 # Check for guested configure.
1437 if test -f "$ac_srcdir/configure.gnu"; then
1438 echo &&
1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440 elif test -f "$ac_srcdir/configure"; then
1441 echo &&
1442 $SHELL "$ac_srcdir/configure" --help=recursive
1443 else
1444 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1445 fi || ac_status=$?
1446 cd "$ac_pwd" || { ac_status=$?; break; }
1447 done
1448 fi
1449
1450 test -n "$ac_init_help" && exit $ac_status
1451 if $ac_init_version; then
1452 cat <<\_ACEOF
1453 emacs configure 23.0.50
1454 generated by GNU Autoconf 2.61
1455
1456 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1457 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1458 This configure script is free software; the Free Software Foundation
1459 gives unlimited permission to copy, distribute and modify it.
1460 _ACEOF
1461 exit
1462 fi
1463 cat >config.log <<_ACEOF
1464 This file contains any messages produced by compilers while
1465 running configure, to aid debugging if configure makes a mistake.
1466
1467 It was created by emacs $as_me 23.0.50, which was
1468 generated by GNU Autoconf 2.61. Invocation command line was
1469
1470 $ $0 $@
1471
1472 _ACEOF
1473 exec 5>>config.log
1474 {
1475 cat <<_ASUNAME
1476 ## --------- ##
1477 ## Platform. ##
1478 ## --------- ##
1479
1480 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1481 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1482 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1483 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1484 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1485
1486 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1487 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1488
1489 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1490 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1491 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1492 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1493 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1494 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1495 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1496
1497 _ASUNAME
1498
1499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500 for as_dir in $PATH
1501 do
1502 IFS=$as_save_IFS
1503 test -z "$as_dir" && as_dir=.
1504 echo "PATH: $as_dir"
1505 done
1506 IFS=$as_save_IFS
1507
1508 } >&5
1509
1510 cat >&5 <<_ACEOF
1511
1512
1513 ## ----------- ##
1514 ## Core tests. ##
1515 ## ----------- ##
1516
1517 _ACEOF
1518
1519
1520 # Keep a trace of the command line.
1521 # Strip out --no-create and --no-recursion so they do not pile up.
1522 # Strip out --silent because we don't want to record it for future runs.
1523 # Also quote any args containing shell meta-characters.
1524 # Make two passes to allow for proper duplicate-argument suppression.
1525 ac_configure_args=
1526 ac_configure_args0=
1527 ac_configure_args1=
1528 ac_must_keep_next=false
1529 for ac_pass in 1 2
1530 do
1531 for ac_arg
1532 do
1533 case $ac_arg in
1534 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1536 | -silent | --silent | --silen | --sile | --sil)
1537 continue ;;
1538 *\'*)
1539 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1540 esac
1541 case $ac_pass in
1542 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1543 2)
1544 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1545 if test $ac_must_keep_next = true; then
1546 ac_must_keep_next=false # Got value, back to normal.
1547 else
1548 case $ac_arg in
1549 *=* | --config-cache | -C | -disable-* | --disable-* \
1550 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1551 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1552 | -with-* | --with-* | -without-* | --without-* | --x)
1553 case "$ac_configure_args0 " in
1554 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1555 esac
1556 ;;
1557 -* ) ac_must_keep_next=true ;;
1558 esac
1559 fi
1560 ac_configure_args="$ac_configure_args '$ac_arg'"
1561 ;;
1562 esac
1563 done
1564 done
1565 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1566 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1567
1568 # When interrupted or exit'd, cleanup temporary files, and complete
1569 # config.log. We remove comments because anyway the quotes in there
1570 # would cause problems or look ugly.
1571 # WARNING: Use '\'' to represent an apostrophe within the trap.
1572 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1573 trap 'exit_status=$?
1574 # Save into config.log some information that might help in debugging.
1575 {
1576 echo
1577
1578 cat <<\_ASBOX
1579 ## ---------------- ##
1580 ## Cache variables. ##
1581 ## ---------------- ##
1582 _ASBOX
1583 echo
1584 # The following way of writing the cache mishandles newlines in values,
1585 (
1586 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1587 eval ac_val=\$$ac_var
1588 case $ac_val in #(
1589 *${as_nl}*)
1590 case $ac_var in #(
1591 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1592 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1593 esac
1594 case $ac_var in #(
1595 _ | IFS | as_nl) ;; #(
1596 *) $as_unset $ac_var ;;
1597 esac ;;
1598 esac
1599 done
1600 (set) 2>&1 |
1601 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1602 *${as_nl}ac_space=\ *)
1603 sed -n \
1604 "s/'\''/'\''\\\\'\'''\''/g;
1605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1606 ;; #(
1607 *)
1608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1609 ;;
1610 esac |
1611 sort
1612 )
1613 echo
1614
1615 cat <<\_ASBOX
1616 ## ----------------- ##
1617 ## Output variables. ##
1618 ## ----------------- ##
1619 _ASBOX
1620 echo
1621 for ac_var in $ac_subst_vars
1622 do
1623 eval ac_val=\$$ac_var
1624 case $ac_val in
1625 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 esac
1627 echo "$ac_var='\''$ac_val'\''"
1628 done | sort
1629 echo
1630
1631 if test -n "$ac_subst_files"; then
1632 cat <<\_ASBOX
1633 ## ------------------- ##
1634 ## File substitutions. ##
1635 ## ------------------- ##
1636 _ASBOX
1637 echo
1638 for ac_var in $ac_subst_files
1639 do
1640 eval ac_val=\$$ac_var
1641 case $ac_val in
1642 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1643 esac
1644 echo "$ac_var='\''$ac_val'\''"
1645 done | sort
1646 echo
1647 fi
1648
1649 if test -s confdefs.h; then
1650 cat <<\_ASBOX
1651 ## ----------- ##
1652 ## confdefs.h. ##
1653 ## ----------- ##
1654 _ASBOX
1655 echo
1656 cat confdefs.h
1657 echo
1658 fi
1659 test "$ac_signal" != 0 &&
1660 echo "$as_me: caught signal $ac_signal"
1661 echo "$as_me: exit $exit_status"
1662 } >&5
1663 rm -f core *.core core.conftest.* &&
1664 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1665 exit $exit_status
1666 ' 0
1667 for ac_signal in 1 2 13 15; do
1668 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1669 done
1670 ac_signal=0
1671
1672 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1673 rm -f -r conftest* confdefs.h
1674
1675 # Predefined preprocessor variables.
1676
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_NAME "$PACKAGE_NAME"
1679 _ACEOF
1680
1681
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1684 _ACEOF
1685
1686
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1689 _ACEOF
1690
1691
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_STRING "$PACKAGE_STRING"
1694 _ACEOF
1695
1696
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1699 _ACEOF
1700
1701
1702 # Let the site file select an alternate cache file if it wants to.
1703 # Prefer explicitly selected file to automatically selected ones.
1704 if test -n "$CONFIG_SITE"; then
1705 set x "$CONFIG_SITE"
1706 elif test "x$prefix" != xNONE; then
1707 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1708 else
1709 set x "$ac_default_prefix/share/config.site" \
1710 "$ac_default_prefix/etc/config.site"
1711 fi
1712 shift
1713 for ac_site_file
1714 do
1715 if test -r "$ac_site_file"; then
1716 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1717 echo "$as_me: loading site script $ac_site_file" >&6;}
1718 sed 's/^/| /' "$ac_site_file" >&5
1719 . "$ac_site_file"
1720 fi
1721 done
1722
1723 if test -r "$cache_file"; then
1724 # Some versions of bash will fail to source /dev/null (special
1725 # files actually), so we avoid doing that.
1726 if test -f "$cache_file"; then
1727 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1728 echo "$as_me: loading cache $cache_file" >&6;}
1729 case $cache_file in
1730 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1731 *) . "./$cache_file";;
1732 esac
1733 fi
1734 else
1735 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1736 echo "$as_me: creating cache $cache_file" >&6;}
1737 >$cache_file
1738 fi
1739
1740 ac_header_list="$ac_header_list sys/time.h"
1741 ac_header_list="$ac_header_list unistd.h"
1742 ac_func_list="$ac_func_list alarm"
1743 # Check that the precious variables saved in the cache have kept the same
1744 # value.
1745 ac_cache_corrupted=false
1746 for ac_var in $ac_precious_vars; do
1747 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1748 eval ac_new_set=\$ac_env_${ac_var}_set
1749 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1750 eval ac_new_val=\$ac_env_${ac_var}_value
1751 case $ac_old_set,$ac_new_set in
1752 set,)
1753 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1754 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1755 ac_cache_corrupted=: ;;
1756 ,set)
1757 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1758 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1759 ac_cache_corrupted=: ;;
1760 ,);;
1761 *)
1762 if test "x$ac_old_val" != "x$ac_new_val"; then
1763 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1764 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1765 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1766 echo "$as_me: former value: $ac_old_val" >&2;}
1767 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1768 echo "$as_me: current value: $ac_new_val" >&2;}
1769 ac_cache_corrupted=:
1770 fi;;
1771 esac
1772 # Pass precious variables to config.status.
1773 if test "$ac_new_set" = set; then
1774 case $ac_new_val in
1775 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1776 *) ac_arg=$ac_var=$ac_new_val ;;
1777 esac
1778 case " $ac_configure_args " in
1779 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1780 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1781 esac
1782 fi
1783 done
1784 if $ac_cache_corrupted; then
1785 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1786 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1787 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1788 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1789 { (exit 1); exit 1; }; }
1790 fi
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816 ac_ext=c
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1821
1822
1823 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1824
1825
1826
1827 test "$program_prefix" != NONE &&
1828 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1829 # Use a double $ so make ignores it.
1830 test "$program_suffix" != NONE &&
1831 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1832 # Double any \ or $. echo might interpret backslashes.
1833 # By default was `s,x,x', remove it if useless.
1834 cat <<\_ACEOF >conftest.sed
1835 s/[\\$]/&&/g;s/;s,x,x,$//
1836 _ACEOF
1837 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1838 rm -f conftest.sed
1839
1840
1841 lispdir='${datadir}/emacs/${version}/lisp'
1842 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1843 '${datadir}/emacs/site-lisp'
1844 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1845 etcdir='${datadir}/emacs/${version}/etc'
1846 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1847 docdir='${datadir}/emacs/${version}/etc'
1848 gamedir='${localstatedir}/games/emacs'
1849
1850 gameuser=games
1851
1852
1853
1854
1855 # Check whether --with-gcc was given.
1856 if test "${with_gcc+set}" = set; then
1857 withval=$with_gcc;
1858 fi
1859
1860
1861
1862 # Check whether --with-pop was given.
1863 if test "${with_pop+set}" = set; then
1864 withval=$with_pop;
1865 else
1866 with_pop=yes
1867 fi
1868
1869 if test "$with_pop" = yes; then
1870 cat >>confdefs.h <<\_ACEOF
1871 #define MAIL_USE_POP 1
1872 _ACEOF
1873
1874 fi
1875
1876
1877
1878 # Check whether --with-kerberos was given.
1879 if test "${with_kerberos+set}" = set; then
1880 withval=$with_kerberos;
1881 else
1882 with_kerberos=no
1883 fi
1884
1885 if test "$with_kerberos" = yes; then
1886 cat >>confdefs.h <<\_ACEOF
1887 #define KERBEROS 1
1888 _ACEOF
1889
1890 fi
1891
1892
1893
1894 # Check whether --with-kerberos5 was given.
1895 if test "${with_kerberos5+set}" = set; then
1896 withval=$with_kerberos5;
1897 else
1898 with_kerberos5=no
1899 fi
1900
1901 if test "${with_kerberos5}" = yes; then
1902 if test "${with_kerberos}" != yes; then
1903 with_kerberos=yes
1904 cat >>confdefs.h <<\_ACEOF
1905 #define KERBEROS 1
1906 _ACEOF
1907
1908 fi
1909
1910 cat >>confdefs.h <<\_ACEOF
1911 #define KERBEROS5 1
1912 _ACEOF
1913
1914 fi
1915
1916
1917 # Check whether --with-hesiod was given.
1918 if test "${with_hesiod+set}" = set; then
1919 withval=$with_hesiod;
1920 else
1921 with_hesiod=no
1922 fi
1923
1924 if test "$with_hesiod" = yes; then
1925
1926 cat >>confdefs.h <<\_ACEOF
1927 #define HESIOD 1
1928 _ACEOF
1929
1930 fi
1931
1932
1933 # Check whether --with-sound was given.
1934 if test "${with_sound+set}" = set; then
1935 withval=$with_sound;
1936 else
1937 with_sound=yes
1938 fi
1939
1940
1941
1942 # Check whether --with-x-toolkit was given.
1943 if test "${with_x_toolkit+set}" = set; then
1944 withval=$with_x_toolkit; case "${withval}" in
1945 y | ye | yes ) val=gtk ;;
1946 n | no ) val=no ;;
1947 l | lu | luc | luci | lucid ) val=lucid ;;
1948 a | at | ath | athe | athen | athena ) val=athena ;;
1949 m | mo | mot | moti | motif ) val=motif ;;
1950 g | gt | gtk ) val=gtk ;;
1951 * )
1952 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1953 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1954 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1955 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1956 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1957 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1958 { (exit 1); exit 1; }; }
1959 ;;
1960 esac
1961 with_x_toolkit=$val
1962
1963 fi
1964
1965
1966
1967 # Check whether --with-xpm was given.
1968 if test "${with_xpm+set}" = set; then
1969 withval=$with_xpm;
1970 else
1971 with_xpm=yes
1972 fi
1973
1974
1975 # Check whether --with-jpeg was given.
1976 if test "${with_jpeg+set}" = set; then
1977 withval=$with_jpeg;
1978 else
1979 with_jpeg=yes
1980 fi
1981
1982
1983 # Check whether --with-tiff was given.
1984 if test "${with_tiff+set}" = set; then
1985 withval=$with_tiff;
1986 else
1987 with_tiff=yes
1988 fi
1989
1990
1991 # Check whether --with-gif was given.
1992 if test "${with_gif+set}" = set; then
1993 withval=$with_gif;
1994 else
1995 with_gif=yes
1996 fi
1997
1998
1999 # Check whether --with-png was given.
2000 if test "${with_png+set}" = set; then
2001 withval=$with_png;
2002 else
2003 with_png=yes
2004 fi
2005
2006
2007 # Check whether --with-rsvg was given.
2008 if test "${with_rsvg+set}" = set; then
2009 withval=$with_rsvg;
2010 else
2011 with_rsvg=yes
2012 fi
2013
2014
2015
2016 # Check whether --with-freetype was given.
2017 if test "${with_freetype+set}" = set; then
2018 withval=$with_freetype;
2019 else
2020 with_freetype=yes
2021 fi
2022
2023
2024 # Check whether --with-xft was given.
2025 if test "${with_xft+set}" = set; then
2026 withval=$with_xft;
2027 else
2028 with_xft=yes
2029 fi
2030
2031
2032 # Check whether --with-libotf was given.
2033 if test "${with_libotf+set}" = set; then
2034 withval=$with_libotf;
2035 else
2036 with_libotf=yes
2037 fi
2038
2039
2040 # Check whether --with-m17n-flt was given.
2041 if test "${with_m17n_flt+set}" = set; then
2042 withval=$with_m17n_flt;
2043 else
2044 with_m17n_flt=yes
2045 fi
2046
2047
2048
2049 # Check whether --with-gtk was given.
2050 if test "${with_gtk+set}" = set; then
2051 withval=$with_gtk;
2052 else
2053 with_gtk=no
2054 fi
2055
2056
2057 # Check whether --with-toolkit-scroll-bars was given.
2058 if test "${with_toolkit_scroll_bars+set}" = set; then
2059 withval=$with_toolkit_scroll_bars;
2060 else
2061 with_toolkit_scroll_bars=yes
2062 fi
2063
2064
2065 # Check whether --with-xaw3d was given.
2066 if test "${with_xaw3d+set}" = set; then
2067 withval=$with_xaw3d;
2068 else
2069 with_xaw3d=yes
2070 fi
2071
2072
2073 # Check whether --with-xim was given.
2074 if test "${with_xim+set}" = set; then
2075 withval=$with_xim;
2076 else
2077 with_xim=yes
2078 fi
2079
2080
2081 # Check whether --with-carbon was given.
2082 if test "${with_carbon+set}" = set; then
2083 withval=$with_carbon;
2084 else
2085 with_carbon=no
2086 fi
2087
2088
2089
2090 # Check whether --with-gpm was given.
2091 if test "${with_gpm+set}" = set; then
2092 withval=$with_gpm;
2093 else
2094 with_gpm=yes
2095 fi
2096
2097
2098 # Check whether --with-dbus was given.
2099 if test "${with_dbus+set}" = set; then
2100 withval=$with_dbus;
2101 else
2102 with_dbus=yes
2103 fi
2104
2105
2106
2107 # Check whether --with-pkg-config-prog was given.
2108 if test "${with_pkg_config_prog+set}" = set; then
2109 withval=$with_pkg_config_prog;
2110 fi
2111
2112 if test "X${with_pkg_config_prog}" != X; then
2113 if test "${with_pkg_config_prog}" != yes; then
2114 PKG_CONFIG="${with_pkg_config_prog}"
2115 fi
2116 fi
2117
2118 # Check whether --enable-carbon-app was given.
2119 if test "${enable_carbon_app+set}" = set; then
2120 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2121 fi
2122
2123
2124 # Check whether --enable-font-backend was given.
2125 if test "${enable_font_backend+set}" = set; then
2126 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2127 else
2128 USE_FONT_BACKEND=no
2129 fi
2130
2131
2132 # Check whether --enable-asserts was given.
2133 if test "${enable_asserts+set}" = set; then
2134 enableval=$enable_asserts; USE_XASSERTS=$enableval
2135 else
2136 USE_XASSERTS=no
2137 fi
2138
2139
2140 # Check whether --enable-maintainer-mode was given.
2141 if test "${enable_maintainer_mode+set}" = set; then
2142 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2143 else
2144 USE_MAINTAINER_MODE=no
2145 fi
2146
2147 if test $USE_MAINTAINER_MODE = yes; then
2148 MAINT=
2149 else
2150 MAINT=#
2151 fi
2152
2153
2154 # Check whether --enable-locallisppath was given.
2155 if test "${enable_locallisppath+set}" = set; then
2156 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2157 locallisppath=
2158 elif test "${enableval}" != "yes"; then
2159 locallisppath=${enableval}
2160 fi
2161 fi
2162
2163
2164 #### Make srcdir absolute, if it isn't already. It's important to
2165 #### avoid running the path through pwd unnecessarily, since pwd can
2166 #### give you automounter prefixes, which can go away. We do all this
2167 #### so Emacs can find its files when run uninstalled.
2168 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2169 unset CDPATH
2170 case "${srcdir}" in
2171 /* ) ;;
2172 . )
2173 ## We may be able to use the $PWD environment variable to make this
2174 ## absolute. But sometimes PWD is inaccurate.
2175 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2176 ## but that tested only for a well-formed and valid PWD,
2177 ## it did not object when PWD was well-formed and valid but just wrong.
2178 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2179 then
2180 srcdir="$PWD"
2181 else
2182 srcdir="`(cd ${srcdir}; pwd)`"
2183 fi
2184 ;;
2185 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2186 esac
2187
2188 #### Check if the source directory already has a configured system in it.
2189 if test `pwd` != `(cd ${srcdir} && pwd)` \
2190 && test -f "${srcdir}/src/config.h" ; then
2191 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2192 as a build directory right now; it has been configured in its own
2193 right. To configure in another directory as well, you MUST
2194 use GNU make. If you do not have GNU make, then you must
2195 now do \`make distclean' in ${srcdir},
2196 and then run $0 again." >&5
2197 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2198 as a build directory right now; it has been configured in its own
2199 right. To configure in another directory as well, you MUST
2200 use GNU make. If you do not have GNU make, then you must
2201 now do \`make distclean' in ${srcdir},
2202 and then run $0 again." >&2;}
2203 fi
2204
2205 #### Given the configuration name, set machfile and opsysfile to the
2206 #### names of the m/*.h and s/*.h files we should use.
2207
2208 ### Canonicalize the configuration name.
2209
2210 ac_aux_dir=
2211 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2212 if test -f "$ac_dir/install-sh"; then
2213 ac_aux_dir=$ac_dir
2214 ac_install_sh="$ac_aux_dir/install-sh -c"
2215 break
2216 elif test -f "$ac_dir/install.sh"; then
2217 ac_aux_dir=$ac_dir
2218 ac_install_sh="$ac_aux_dir/install.sh -c"
2219 break
2220 elif test -f "$ac_dir/shtool"; then
2221 ac_aux_dir=$ac_dir
2222 ac_install_sh="$ac_aux_dir/shtool install -c"
2223 break
2224 fi
2225 done
2226 if test -z "$ac_aux_dir"; then
2227 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2228 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2229 { (exit 1); exit 1; }; }
2230 fi
2231
2232 # These three variables are undocumented and unsupported,
2233 # and are intended to be withdrawn in a future Autoconf release.
2234 # They can cause serious problems if a builder's source tree is in a directory
2235 # whose full name contains unusual characters.
2236 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2237 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2238 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2239
2240
2241 # Make sure we can run config.sub.
2242 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2243 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2244 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2245 { (exit 1); exit 1; }; }
2246
2247 { echo "$as_me:$LINENO: checking build system type" >&5
2248 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2249 if test "${ac_cv_build+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 else
2252 ac_build_alias=$build_alias
2253 test "x$ac_build_alias" = x &&
2254 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2255 test "x$ac_build_alias" = x &&
2256 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2257 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2258 { (exit 1); exit 1; }; }
2259 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2260 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2261 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2262 { (exit 1); exit 1; }; }
2263
2264 fi
2265 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2266 echo "${ECHO_T}$ac_cv_build" >&6; }
2267 case $ac_cv_build in
2268 *-*-*) ;;
2269 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2270 echo "$as_me: error: invalid value of canonical build" >&2;}
2271 { (exit 1); exit 1; }; };;
2272 esac
2273 build=$ac_cv_build
2274 ac_save_IFS=$IFS; IFS='-'
2275 set x $ac_cv_build
2276 shift
2277 build_cpu=$1
2278 build_vendor=$2
2279 shift; shift
2280 # Remember, the first character of IFS is used to create $*,
2281 # except with old shells:
2282 build_os=$*
2283 IFS=$ac_save_IFS
2284 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2285
2286
2287 { echo "$as_me:$LINENO: checking host system type" >&5
2288 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2289 if test "${ac_cv_host+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292 if test "x$host_alias" = x; then
2293 ac_cv_host=$ac_cv_build
2294 else
2295 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2296 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2297 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2298 { (exit 1); exit 1; }; }
2299 fi
2300
2301 fi
2302 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2303 echo "${ECHO_T}$ac_cv_host" >&6; }
2304 case $ac_cv_host in
2305 *-*-*) ;;
2306 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2307 echo "$as_me: error: invalid value of canonical host" >&2;}
2308 { (exit 1); exit 1; }; };;
2309 esac
2310 host=$ac_cv_host
2311 ac_save_IFS=$IFS; IFS='-'
2312 set x $ac_cv_host
2313 shift
2314 host_cpu=$1
2315 host_vendor=$2
2316 shift; shift
2317 # Remember, the first character of IFS is used to create $*,
2318 # except with old shells:
2319 host_os=$*
2320 IFS=$ac_save_IFS
2321 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2322
2323
2324 canonical=$host
2325 configuration=${host_alias-${build_alias-$host}}
2326
2327
2328
2329 ### If you add support for a new configuration, add code to this
2330 ### switch statement to recognize your configuration name and select
2331 ### the appropriate operating system and machine description files.
2332
2333 ### You would hope that you could choose an m/*.h file pretty much
2334 ### based on the machine portion of the configuration name, and an s-
2335 ### file based on the operating system portion. However, it turns out
2336 ### that each m/*.h file is pretty manufacturer-specific - for
2337 ### example hp9000s300.h is a 68000 machine;
2338 ### mips.h, pmax.h are all MIPS
2339 ### machines. So we basically have to have a special case for each
2340 ### configuration name.
2341 ###
2342 ### As far as handling version numbers on operating systems is
2343 ### concerned, make sure things will fail in a fixable way. If
2344 ### /etc/MACHINES doesn't say anything about version numbers, be
2345 ### prepared to handle anything reasonably. If version numbers
2346 ### matter, be sure /etc/MACHINES says something about it.
2347 ###
2348 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2349 ### "System V Release 4"; he writes, "The old convention encouraged
2350 ### confusion between `system' and `release' levels'."
2351
2352 machine='' opsys='' unported=no
2353 case "${canonical}" in
2354
2355 ## FreeBSD ports
2356 *-*-freebsd* )
2357 opsys=freebsd
2358 case "${canonical}" in
2359 alpha*-*-freebsd*) machine=alpha ;;
2360 ia64-*-freebsd*) machine=ia64 ;;
2361 sparc64-*-freebsd*) machine=sparc ;;
2362 powerpc-*-freebsd*) machine=macppc ;;
2363 i[3456]86-*-freebsd*) machine=intel386 ;;
2364 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2365 esac
2366 ;;
2367
2368 ## FreeBSD kernel + glibc based userland
2369 *-*-kfreebsd*gnu* )
2370 opsys=gnu-kfreebsd
2371 case "${canonical}" in
2372 alpha*-*-kfreebsd*) machine=alpha ;;
2373 ia64-*-kfreebsd*) machine=ia64 ;;
2374 sparc64-*-kfreebsd*) machine=sparc ;;
2375 powerpc-*-kfreebsd*) machine=macppc ;;
2376 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2377 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2378 esac
2379 ;;
2380
2381 ## NetBSD ports
2382 *-*-netbsd* )
2383 opsys=netbsd
2384 if test -f /usr/lib/crti.o; then
2385
2386 cat >>confdefs.h <<\_ACEOF
2387 #define HAVE_CRTIN
2388 _ACEOF
2389
2390 fi
2391
2392 case "${canonical}" in
2393 alpha*-*-netbsd*) machine=alpha ;;
2394 i[3456]86-*-netbsd*) machine=intel386 ;;
2395 m68k-*-netbsd*)
2396 # This is somewhat bogus.
2397 machine=hp9000s300 ;;
2398 mips-*-netbsd*) machine=pmax ;;
2399 mipsel-*-netbsd*) machine=pmax ;;
2400 mipseb-*-netbsd*) machine=pmax ;;
2401 powerpc-*-netbsd*) machine=macppc ;;
2402 sparc*-*-netbsd*) machine=sparc ;;
2403 vax-*-netbsd*) machine=vax ;;
2404 arm-*-netbsd*) machine=arm ;;
2405 x86_64-*-netbsd*) machine=amdx86-64 ;;
2406 hppa-*-netbsd*) machine=hp800 ;;
2407 esac
2408 ;;
2409
2410 ## OpenBSD ports
2411 *-*-openbsd* )
2412 opsys=openbsd
2413 case "${canonical}" in
2414 alpha*-*-openbsd*) machine=alpha ;;
2415 arm-*-openbsd*) machine=arm ;;
2416 hppa-*-openbsd*) machine=hp9000s300 ;;
2417 i386-*-openbsd*) machine=intel386 ;;
2418 m68k-*-openbsd*) machine=hp9000s300 ;;
2419 mips64-*-openbsd*) machine=mips64 ;;
2420 powerpc-*-openbsd*) machine=macppc ;;
2421 sparc*-*-openbsd*) machine=sparc ;;
2422 vax-*-openbsd*) machine=vax ;;
2423 x86_64-*-openbsd*) machine=amdx86-64 ;;
2424 esac
2425 ;;
2426
2427 ## LynxOS ports
2428 *-*-lynxos* )
2429 opsys=lynxos
2430 case "${canonical}" in
2431 i[3456]86-*-lynxos*) machine=intel386 ;;
2432 powerpc-*-lynxos*) machine=powerpc ;;
2433 esac
2434 ;;
2435
2436 ## BSDI ports
2437 *-*-bsdi* )
2438 opsys=bsdi
2439 case "${canonical}" in
2440 i[345]86-*-bsdi*) machine=intel386 ;;
2441 sparc-*-bsdi*) machine=sparc ;;
2442 powerpc-*-bsdi*) machine=macppc ;;
2443 esac
2444 case "${canonical}" in
2445 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2446 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2447 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2448 *-*-bsdi3* ) opsys=bsdos3 ;;
2449 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2450 esac
2451 ;;
2452
2453 ## Alpha (DEC) machines.
2454 alpha*-dec-osf* )
2455 machine=alpha opsys=osf1
2456 # This is needed to find X11R6.1 libraries for certain tests.
2457 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2458 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2459 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2460 # due to non-traditional preprocessing with the current compiler
2461 # defaults. OSF 4 can also have that compiler version, and there
2462 # seems always to have been a usable /usr/bin/cpp.
2463 NON_GNU_CPP=/usr/bin/cpp
2464 case "${canonical}" in
2465 alpha*-dec-osf[5-9]*)
2466 opsys=osf5-0 ;;
2467 esac
2468 ;;
2469
2470 alpha*-*-linux-gnu* )
2471 machine=alpha opsys=gnu-linux
2472 ;;
2473
2474 arm*-*-linux-gnu* )
2475 machine=arm opsys=gnu-linux
2476 ;;
2477
2478 ## Apple Darwin / Mac OS X
2479 *-apple-darwin* )
2480 case "${canonical}" in
2481 i[3456]86-* ) machine=intel386 ;;
2482 powerpc-* ) machine=powermac ;;
2483 * ) unported=yes ;;
2484 esac
2485 opsys=darwin
2486 # Define CPP as follows to make autoconf work correctly.
2487 CPP="${CC-cc} -E -no-cpp-precomp"
2488 # Use fink packages if available.
2489 if test -d /sw/include && test -d /sw/lib; then
2490 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2491 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2492 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2493 fi
2494 ;;
2495
2496 ## Compaq Nonstop
2497 mips-compaq-nonstopux* )
2498 machine=nonstopux opsys=nonstopux
2499 ;;
2500
2501 ## Cubix QBx/386
2502 i[3456]86-cubix-sysv* )
2503 machine=intel386 opsys=usg5-3
2504 ;;
2505
2506 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2507 machine=pmax opsys=bsd4-2
2508 ;;
2509 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2510 machine=pmax opsys=bsd4-3
2511 ;;
2512 mips-dec-ultrix* )
2513 machine=pmax opsys=ultrix4-3
2514 ;;
2515 mips-dec-osf* )
2516 machine=pmax opsys=osf1
2517 ;;
2518 mips-dec-mach_bsd4.3* )
2519 machine=pmax opsys=mach-bsd4-3
2520 ;;
2521
2522 ## HP 9000 series 200 or 300
2523 m68*-hp-bsd* )
2524 machine=hp9000s300 opsys=bsd4-3
2525 ;;
2526 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2527 m68*-hp-hpux* )
2528 case "`uname -r`" in
2529 ## Someone's system reports A.B8.05 for this.
2530 ## I wonder what other possibilities there are.
2531 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2532 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2533 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2534 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2535 *) machine=hp9000s300 opsys=hpux ;;
2536 esac
2537 ;;
2538
2539 ## HP 9000 series 700 and 800, running HP/UX
2540 hppa*-hp-hpux7* )
2541 machine=hp800 opsys=hpux
2542 ;;
2543 hppa*-hp-hpux8* )
2544 machine=hp800 opsys=hpux8
2545 ;;
2546 hppa*-hp-hpux9shr* )
2547 machine=hp800 opsys=hpux9shr
2548 ;;
2549 hppa*-hp-hpux9* )
2550 machine=hp800 opsys=hpux9
2551 ;;
2552 hppa*-hp-hpux10.2* )
2553 machine=hp800 opsys=hpux10-20
2554 ;;
2555 hppa*-hp-hpux10* )
2556 machine=hp800 opsys=hpux10
2557 ;;
2558 hppa*-hp-hpux1[1-9]* )
2559 machine=hp800 opsys=hpux11
2560 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2561 ;;
2562
2563 hppa*-*-linux-gnu* )
2564 machine=hp800 opsys=gnu-linux
2565 ;;
2566
2567 ## HP 9000 series 700 and 800, running HP/UX
2568 hppa*-hp-hpux* )
2569 ## Cross-compilation? Nah!
2570 case "`uname -r`" in
2571 ## Someone's system reports A.B8.05 for this.
2572 ## I wonder what other possibilities there are.
2573 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2574 *.08.* ) machine=hp800 opsys=hpux8 ;;
2575 *.09.* ) machine=hp800 opsys=hpux9 ;;
2576 *) machine=hp800 opsys=hpux10 ;;
2577 esac
2578 ;;
2579 hppa*-*-nextstep* )
2580 machine=hp800 opsys=nextstep
2581 ;;
2582
2583 ## IBM machines
2584 i370-ibm-aix*)
2585 machine=ibm370aix opsys=usg5-3
2586 ;;
2587 s390-*-linux-gnu* )
2588 machine=ibms390 opsys=gnu-linux
2589 ;;
2590 s390x-*-linux-gnu* )
2591 machine=ibms390x opsys=gnu-linux
2592 ;;
2593 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2594 machine=ibmrs6000 opsys=aix3-1
2595 ;;
2596 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2597 machine=ibmrs6000 opsys=aix3-2-5
2598 ;;
2599 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2600 machine=ibmrs6000 opsys=aix4-1
2601 ;;
2602 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2603 machine=ibmrs6000 opsys=aix4-2
2604 ;;
2605 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2606 machine=ibmrs6000 opsys=aix4-2
2607 ;;
2608 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2609 machine=ibmrs6000 opsys=aix4-2
2610 ;;
2611 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2612 machine=ibmrs6000 opsys=aix4
2613 ;;
2614 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2615 machine=ibmrs6000 opsys=aix4-1
2616 ;;
2617 rs6000-ibm-aix* | powerpc-ibm-aix* )
2618 machine=ibmrs6000 opsys=aix3-2
2619 ;;
2620
2621 ## Prime EXL
2622 i[3456]86-prime-sysv* )
2623 machine=i386 opsys=usg5-3
2624 ;;
2625
2626 ## ncr machine running svr4.3.
2627 i[3456]86-ncr-sysv4.3 )
2628 machine=ncr386 opsys=usg5-4-3
2629 ;;
2630
2631 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2632 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2633 i[3456]86-ncr-sysv* )
2634 machine=ncr386 opsys=usg5-4-2
2635 ;;
2636
2637 ## Macintosh PowerPC
2638 powerpc*-*-linux-gnu* )
2639 machine=macppc opsys=gnu-linux
2640 ;;
2641
2642 ## Workstations sold by MIPS
2643 ## This is not necessarily all workstations using the MIPS processor -
2644 ## Irises are produced by SGI, and DECstations by DEC.
2645
2646 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2647 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2648 ## it gives for choosing between the alternatives seems to be "Use
2649 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2650 ## the BSD world." I'll assume that these are instructions for
2651 ## handling two odd situations, and that every other situation
2652 ## should use mips.h and usg5-2-2, they being listed first.
2653 mips-mips-usg* )
2654 machine=mips4
2655 ## Fall through to the general code at the bottom to decide on the OS.
2656 ;;
2657 mips-mips-riscos4* )
2658 machine=mips4 opsys=bsd4-3
2659 NON_GNU_CC="cc -systype bsd43"
2660 NON_GNU_CPP="cc -systype bsd43 -E"
2661 ;;
2662 mips-mips-riscos5* )
2663 machine=mips4 opsys=riscos5
2664 NON_GNU_CC="cc -systype bsd43"
2665 NON_GNU_CPP="cc -systype bsd43 -E"
2666 ;;
2667 mips-mips-bsd* )
2668 machine=mips opsys=bsd4-3
2669 ;;
2670 mips-mips-* )
2671 machine=mips opsys=usg5-2-2
2672 ;;
2673
2674 ## NeXT
2675 m68*-next-* | m68k-*-nextstep* )
2676 machine=m68k opsys=nextstep
2677 ;;
2678
2679 ## NEC EWS4800
2680 mips-nec-sysv4*)
2681 machine=ews4800 opsys=ux4800
2682 ;;
2683
2684 ## Siemens Nixdorf
2685 mips-siemens-sysv* | mips-sni-sysv*)
2686 machine=mips-siemens opsys=usg5-4
2687 NON_GNU_CC=/usr/ccs/bin/cc
2688 NON_GNU_CPP=/usr/ccs/lib/cpp
2689 ;;
2690
2691 ## Silicon Graphics machines
2692 ## Iris 4D
2693 mips-sgi-irix6.5 )
2694 machine=iris4d opsys=irix6-5
2695 # Without defining _LANGUAGE_C, things get masked out in the headers
2696 # so that, for instance, grepping for `free' in stdlib.h fails and
2697 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2698 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2699 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2700 ;;
2701 mips-sgi-irix6* )
2702 machine=iris4d opsys=irix6-0
2703 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2704 # but presumably it does no harm.
2705 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2706 # -32 probably isn't necessary in later v.6s -- anyone know which?
2707 NON_GCC_TEST_OPTIONS=-32
2708 ;;
2709 mips-sgi-irix5.[01]* )
2710 machine=iris4d opsys=irix5-0
2711 ;;
2712 mips-sgi-irix5* | mips-sgi-irix* )
2713 machine=iris4d opsys=irix5-2
2714 ;;
2715
2716 ## Suns
2717 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2718 machine=sparc opsys=gnu-linux
2719 ;;
2720
2721 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2722 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2723 | rs6000-*-solaris2*)
2724 case "${canonical}" in
2725 i[3456]86-*-* ) machine=intel386 ;;
2726 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2727 powerpcle* ) machine=powerpcle ;;
2728 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2729 sparc* ) machine=sparc ;;
2730 * ) unported=yes ;;
2731 esac
2732 case "${canonical}" in
2733 *-sunos5.3* | *-solaris2.3* )
2734 opsys=sol2-3
2735 NON_GNU_CPP=/usr/ccs/lib/cpp
2736 ;;
2737 *-sunos5.4* | *-solaris2.4* )
2738 opsys=sol2-4
2739 NON_GNU_CPP=/usr/ccs/lib/cpp
2740 RANLIB="ar -ts"
2741 ;;
2742 *-sunos5.5* | *-solaris2.5* )
2743 opsys=sol2-5
2744 NON_GNU_CPP=/usr/ccs/lib/cpp
2745 RANLIB="ar -ts"
2746 ;;
2747 *-sunos5.6* | *-solaris2.6* )
2748 opsys=sol2-6
2749 NON_GNU_CPP=/usr/ccs/lib/cpp
2750 RANLIB="ar -ts"
2751 ;;
2752 *-sunos5* | *-solaris* )
2753 opsys=sol2-6
2754 emacs_check_sunpro_c=yes
2755 NON_GNU_CPP=/usr/ccs/lib/cpp
2756 ;;
2757 * ) opsys=bsd4-2 ;;
2758 esac
2759 ## Watch out for a compiler that we know will not work.
2760 case "${canonical}" in
2761 *-solaris* | *-sunos5* )
2762 if [ "x$CC" = x/usr/ucb/cc ]; then
2763 ## /usr/ucb/cc doesn't work;
2764 ## we should find some other compiler that does work.
2765 unset CC
2766 fi
2767 ;;
2768 *) ;;
2769 esac
2770 ;;
2771 sparc-*-nextstep* )
2772 machine=sparc opsys=nextstep
2773 ;;
2774
2775 ## Tandem Integrity S2
2776 mips-tandem-sysv* )
2777 machine=tandem-s2 opsys=usg5-3
2778 ;;
2779
2780 ## Vaxen.
2781 vax-dec-* )
2782 machine=vax
2783 case "${canonical}" in
2784 *-bsd4.1* ) opsys=bsd4-1 ;;
2785 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2786 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2787 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2788 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2789 *-vms* ) opsys=vms ;;
2790 * ) unported=yes
2791 esac
2792 ;;
2793
2794 ## IA-64
2795 ia64*-*-linux* )
2796 machine=ia64 opsys=gnu-linux
2797 ;;
2798
2799 ## Intel 386 machines where we don't care about the manufacturer
2800 i[3456]86-*-* )
2801 machine=intel386
2802 case "${canonical}" in
2803 *-cygwin ) opsys=cygwin ;;
2804 *-darwin* ) opsys=darwin
2805 CPP="${CC-cc} -E -no-cpp-precomp"
2806 ;;
2807 *-xenix* ) opsys=xenix ;;
2808 *-linux-gnu* ) opsys=gnu-linux ;;
2809 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2810 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2811 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2812 *-386bsd* ) opsys=386bsd ;;
2813 *-nextstep* ) opsys=nextstep ;;
2814 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2815 esac
2816 ;;
2817
2818 ## m68k Linux-based GNU system
2819 m68k-*-linux-gnu* )
2820 machine=m68k opsys=gnu-linux
2821 ;;
2822
2823 ## Mips Linux-based GNU system
2824 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2825 machine=mips opsys=gnu-linux
2826 ;;
2827
2828 ## UXP/DS
2829 sparc-fujitsu-sysv4* )
2830 machine=sparc opsys=uxpds
2831 NON_GNU_CPP=/usr/ccs/lib/cpp
2832 RANLIB="ar -ts"
2833 ;;
2834
2835 ## AMD x86-64 Linux-based GNU system
2836 x86_64-*-linux-gnu* )
2837 machine=amdx86-64 opsys=gnu-linux
2838 ;;
2839
2840 ## Tensilica Xtensa Linux-based GNU system
2841 xtensa*-*-linux-gnu* )
2842 machine=xtensa opsys=gnu-linux
2843 ;;
2844
2845 * )
2846 unported=yes
2847 ;;
2848 esac
2849
2850 ### If the code above didn't choose an operating system, just choose
2851 ### an operating system based on the configuration name. You really
2852 ### only want to use this when you have no idea what the right
2853 ### operating system is; if you know what operating systems a machine
2854 ### runs, it's cleaner to make it explicit in the case statement
2855 ### above.
2856 if test x"${opsys}" = x; then
2857 case "${canonical}" in
2858 *-gnu* ) opsys=gnu ;;
2859 *-bsd4.[01] ) opsys=bsd4-1 ;;
2860 *-bsd4.2 ) opsys=bsd4-2 ;;
2861 *-bsd4.3 ) opsys=bsd4-3 ;;
2862 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2863 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2864 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2865 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2866 *-sysv4.2uw* ) opsys=unixware ;;
2867 *-sysv5uw* ) opsys=unixware ;;
2868 *-sysv5OpenUNIX* ) opsys=unixware ;;
2869 *-sysv4.1* | *-sysvr4.1* )
2870 NON_GNU_CPP=/usr/lib/cpp
2871 opsys=usg5-4 ;;
2872 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2873 if [ x$NON_GNU_CPP = x ]; then
2874 if [ -f /usr/ccs/lib/cpp ]; then
2875 NON_GNU_CPP=/usr/ccs/lib/cpp
2876 else
2877 NON_GNU_CPP=/lib/cpp
2878 fi
2879 fi
2880 opsys=usg5-4-2 ;;
2881 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2882 * )
2883 unported=yes
2884 ;;
2885 esac
2886 fi
2887
2888
2889
2890 if test $unported = yes; then
2891 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2892 Check \`etc/MACHINES' for recognized configuration names." >&5
2893 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2894 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2895 { (exit 1); exit 1; }; }
2896 fi
2897
2898 machfile="m/${machine}.h"
2899 opsysfile="s/${opsys}.h"
2900
2901
2902 #### Choose a compiler.
2903 test -n "$CC" && cc_specified=yes
2904
2905 # Save the value of CFLAGS that the user specified.
2906 SPECIFIED_CFLAGS="$CFLAGS"
2907
2908 case ${with_gcc} in
2909 "yes" ) CC="gcc" GCC=yes ;;
2910 "no" ) : ${CC=cc} ;;
2911 * )
2912 esac
2913 ac_ext=c
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918 if test -n "$ac_tool_prefix"; then
2919 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2920 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2923 if test "${ac_cv_prog_CC+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 else
2926 if test -n "$CC"; then
2927 ac_cv_prog_CC="$CC" # Let the user override the test.
2928 else
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2931 do
2932 IFS=$as_save_IFS
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 break 2
2939 fi
2940 done
2941 done
2942 IFS=$as_save_IFS
2943
2944 fi
2945 fi
2946 CC=$ac_cv_prog_CC
2947 if test -n "$CC"; then
2948 { echo "$as_me:$LINENO: result: $CC" >&5
2949 echo "${ECHO_T}$CC" >&6; }
2950 else
2951 { echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6; }
2953 fi
2954
2955
2956 fi
2957 if test -z "$ac_cv_prog_CC"; then
2958 ac_ct_CC=$CC
2959 # Extract the first word of "gcc", so it can be a program name with args.
2960 set dummy gcc; ac_word=$2
2961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 else
2966 if test -n "$ac_ct_CC"; then
2967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2971 do
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2976 ac_cv_prog_ac_ct_CC="gcc"
2977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 break 2
2979 fi
2980 done
2981 done
2982 IFS=$as_save_IFS
2983
2984 fi
2985 fi
2986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2987 if test -n "$ac_ct_CC"; then
2988 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2989 echo "${ECHO_T}$ac_ct_CC" >&6; }
2990 else
2991 { echo "$as_me:$LINENO: result: no" >&5
2992 echo "${ECHO_T}no" >&6; }
2993 fi
2994
2995 if test "x$ac_ct_CC" = x; then
2996 CC=""
2997 else
2998 case $cross_compiling:$ac_tool_warned in
2999 yes:)
3000 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3001 whose name does not start with the host triplet. If you think this
3002 configuration is useful to you, please write to autoconf@gnu.org." >&5
3003 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3004 whose name does not start with the host triplet. If you think this
3005 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3006 ac_tool_warned=yes ;;
3007 esac
3008 CC=$ac_ct_CC
3009 fi
3010 else
3011 CC="$ac_cv_prog_CC"
3012 fi
3013
3014 if test -z "$CC"; then
3015 if test -n "$ac_tool_prefix"; then
3016 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3017 set dummy ${ac_tool_prefix}cc; ac_word=$2
3018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3020 if test "${ac_cv_prog_CC+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023 if test -n "$CC"; then
3024 ac_cv_prog_CC="$CC" # Let the user override the test.
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3028 do
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033 ac_cv_prog_CC="${ac_tool_prefix}cc"
3034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 break 2
3036 fi
3037 done
3038 done
3039 IFS=$as_save_IFS
3040
3041 fi
3042 fi
3043 CC=$ac_cv_prog_CC
3044 if test -n "$CC"; then
3045 { echo "$as_me:$LINENO: result: $CC" >&5
3046 echo "${ECHO_T}$CC" >&6; }
3047 else
3048 { echo "$as_me:$LINENO: result: no" >&5
3049 echo "${ECHO_T}no" >&6; }
3050 fi
3051
3052
3053 fi
3054 fi
3055 if test -z "$CC"; then
3056 # Extract the first word of "cc", so it can be a program name with args.
3057 set dummy cc; ac_word=$2
3058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3060 if test "${ac_cv_prog_CC+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 else
3063 if test -n "$CC"; then
3064 ac_cv_prog_CC="$CC" # Let the user override the test.
3065 else
3066 ac_prog_rejected=no
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3069 do
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3074 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3075 ac_prog_rejected=yes
3076 continue
3077 fi
3078 ac_cv_prog_CC="cc"
3079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3081 fi
3082 done
3083 done
3084 IFS=$as_save_IFS
3085
3086 if test $ac_prog_rejected = yes; then
3087 # We found a bogon in the path, so make sure we never use it.
3088 set dummy $ac_cv_prog_CC
3089 shift
3090 if test $# != 0; then
3091 # We chose a different compiler from the bogus one.
3092 # However, it has the same basename, so the bogon will be chosen
3093 # first if we set CC to just the basename; use the full file name.
3094 shift
3095 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3096 fi
3097 fi
3098 fi
3099 fi
3100 CC=$ac_cv_prog_CC
3101 if test -n "$CC"; then
3102 { echo "$as_me:$LINENO: result: $CC" >&5
3103 echo "${ECHO_T}$CC" >&6; }
3104 else
3105 { echo "$as_me:$LINENO: result: no" >&5
3106 echo "${ECHO_T}no" >&6; }
3107 fi
3108
3109
3110 fi
3111 if test -z "$CC"; then
3112 if test -n "$ac_tool_prefix"; then
3113 for ac_prog in cl.exe
3114 do
3115 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3116 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3119 if test "${ac_cv_prog_CC+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 else
3122 if test -n "$CC"; then
3123 ac_cv_prog_CC="$CC" # Let the user override the test.
3124 else
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3127 do
3128 IFS=$as_save_IFS
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3132 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 break 2
3135 fi
3136 done
3137 done
3138 IFS=$as_save_IFS
3139
3140 fi
3141 fi
3142 CC=$ac_cv_prog_CC
3143 if test -n "$CC"; then
3144 { echo "$as_me:$LINENO: result: $CC" >&5
3145 echo "${ECHO_T}$CC" >&6; }
3146 else
3147 { echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6; }
3149 fi
3150
3151
3152 test -n "$CC" && break
3153 done
3154 fi
3155 if test -z "$CC"; then
3156 ac_ct_CC=$CC
3157 for ac_prog in cl.exe
3158 do
3159 # Extract the first word of "$ac_prog", so it can be a program name with args.
3160 set dummy $ac_prog; ac_word=$2
3161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3163 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 else
3166 if test -n "$ac_ct_CC"; then
3167 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3171 do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3176 ac_cv_prog_ac_ct_CC="$ac_prog"
3177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3179 fi
3180 done
3181 done
3182 IFS=$as_save_IFS
3183
3184 fi
3185 fi
3186 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3187 if test -n "$ac_ct_CC"; then
3188 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3189 echo "${ECHO_T}$ac_ct_CC" >&6; }
3190 else
3191 { echo "$as_me:$LINENO: result: no" >&5
3192 echo "${ECHO_T}no" >&6; }
3193 fi
3194
3195
3196 test -n "$ac_ct_CC" && break
3197 done
3198
3199 if test "x$ac_ct_CC" = x; then
3200 CC=""
3201 else
3202 case $cross_compiling:$ac_tool_warned in
3203 yes:)
3204 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3205 whose name does not start with the host triplet. If you think this
3206 configuration is useful to you, please write to autoconf@gnu.org." >&5
3207 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3208 whose name does not start with the host triplet. If you think this
3209 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3210 ac_tool_warned=yes ;;
3211 esac
3212 CC=$ac_ct_CC
3213 fi
3214 fi
3215
3216 fi
3217
3218
3219 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3220 See \`config.log' for more details." >&5
3221 echo "$as_me: error: no acceptable C compiler found in \$PATH
3222 See \`config.log' for more details." >&2;}
3223 { (exit 1); exit 1; }; }
3224
3225 # Provide some information about the compiler.
3226 echo "$as_me:$LINENO: checking for C compiler version" >&5
3227 ac_compiler=`set X $ac_compile; echo $2`
3228 { (ac_try="$ac_compiler --version >&5"
3229 case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3232 esac
3233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234 (eval "$ac_compiler --version >&5") 2>&5
3235 ac_status=$?
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }
3238 { (ac_try="$ac_compiler -v >&5"
3239 case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242 esac
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_compiler -v >&5") 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }
3248 { (ac_try="$ac_compiler -V >&5"
3249 case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252 esac
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_compiler -V >&5") 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }
3258
3259 cat >conftest.$ac_ext <<_ACEOF
3260 /* confdefs.h. */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3265
3266 int
3267 main ()
3268 {
3269
3270 ;
3271 return 0;
3272 }
3273 _ACEOF
3274 ac_clean_files_save=$ac_clean_files
3275 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3276 # Try to create an executable without -o first, disregard a.out.
3277 # It will help us diagnose broken compilers, and finding out an intuition
3278 # of exeext.
3279 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3280 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3281 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3282 #
3283 # List of possible output files, starting from the most likely.
3284 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3285 # only as a last resort. b.out is created by i960 compilers.
3286 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3287 #
3288 # The IRIX 6 linker writes into existing files which may not be
3289 # executable, retaining their permissions. Remove them first so a
3290 # subsequent execution test works.
3291 ac_rmfiles=
3292 for ac_file in $ac_files
3293 do
3294 case $ac_file in
3295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3296 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3297 esac
3298 done
3299 rm -f $ac_rmfiles
3300
3301 if { (ac_try="$ac_link_default"
3302 case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3305 esac
3306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307 (eval "$ac_link_default") 2>&5
3308 ac_status=$?
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; then
3311 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3312 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3313 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3314 # so that the user can short-circuit this test for compilers unknown to
3315 # Autoconf.
3316 for ac_file in $ac_files ''
3317 do
3318 test -f "$ac_file" || continue
3319 case $ac_file in
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3321 ;;
3322 [ab].out )
3323 # We found the default executable, but exeext='' is most
3324 # certainly right.
3325 break;;
3326 *.* )
3327 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3328 then :; else
3329 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3330 fi
3331 # We set ac_cv_exeext here because the later test for it is not
3332 # safe: cross compilers may not add the suffix if given an `-o'
3333 # argument, so we may need to know it at that point already.
3334 # Even if this section looks crufty: it has the advantage of
3335 # actually working.
3336 break;;
3337 * )
3338 break;;
3339 esac
3340 done
3341 test "$ac_cv_exeext" = no && ac_cv_exeext=
3342
3343 else
3344 ac_file=''
3345 fi
3346
3347 { echo "$as_me:$LINENO: result: $ac_file" >&5
3348 echo "${ECHO_T}$ac_file" >&6; }
3349 if test -z "$ac_file"; then
3350 echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3352
3353 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3354 See \`config.log' for more details." >&5
3355 echo "$as_me: error: C compiler cannot create executables
3356 See \`config.log' for more details." >&2;}
3357 { (exit 77); exit 77; }; }
3358 fi
3359
3360 ac_exeext=$ac_cv_exeext
3361
3362 # Check that the compiler produces executables we can run. If not, either
3363 # the compiler is broken, or we cross compile.
3364 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3365 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3366 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3367 # If not cross compiling, check that we can run a simple program.
3368 if test "$cross_compiling" != yes; then
3369 if { ac_try='./$ac_file'
3370 { (case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3373 esac
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_try") 2>&5
3376 ac_status=$?
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; }; then
3379 cross_compiling=no
3380 else
3381 if test "$cross_compiling" = maybe; then
3382 cross_compiling=yes
3383 else
3384 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3385 If you meant to cross compile, use \`--host'.
3386 See \`config.log' for more details." >&5
3387 echo "$as_me: error: cannot run C compiled programs.
3388 If you meant to cross compile, use \`--host'.
3389 See \`config.log' for more details." >&2;}
3390 { (exit 1); exit 1; }; }
3391 fi
3392 fi
3393 fi
3394 { echo "$as_me:$LINENO: result: yes" >&5
3395 echo "${ECHO_T}yes" >&6; }
3396
3397 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3398 ac_clean_files=$ac_clean_files_save
3399 # Check that the compiler produces executables we can run. If not, either
3400 # the compiler is broken, or we cross compile.
3401 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3402 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3403 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3404 echo "${ECHO_T}$cross_compiling" >&6; }
3405
3406 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3407 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3408 if { (ac_try="$ac_link"
3409 case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412 esac
3413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414 (eval "$ac_link") 2>&5
3415 ac_status=$?
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); }; then
3418 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3419 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3420 # work properly (i.e., refer to `conftest.exe'), while it won't with
3421 # `rm'.
3422 for ac_file in conftest.exe conftest conftest.*; do
3423 test -f "$ac_file" || continue
3424 case $ac_file in
3425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3426 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3427 break;;
3428 * ) break;;
3429 esac
3430 done
3431 else
3432 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3433 See \`config.log' for more details." >&5
3434 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3435 See \`config.log' for more details." >&2;}
3436 { (exit 1); exit 1; }; }
3437 fi
3438
3439 rm -f conftest$ac_cv_exeext
3440 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3441 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3442
3443 rm -f conftest.$ac_ext
3444 EXEEXT=$ac_cv_exeext
3445 ac_exeext=$EXEEXT
3446 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3447 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3448 if test "${ac_cv_objext+set}" = set; then
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 else
3451 cat >conftest.$ac_ext <<_ACEOF
3452 /* confdefs.h. */
3453 _ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3457
3458 int
3459 main ()
3460 {
3461
3462 ;
3463 return 0;
3464 }
3465 _ACEOF
3466 rm -f conftest.o conftest.obj
3467 if { (ac_try="$ac_compile"
3468 case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3471 esac
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473 (eval "$ac_compile") 2>&5
3474 ac_status=$?
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; then
3477 for ac_file in conftest.o conftest.obj conftest.*; do
3478 test -f "$ac_file" || continue;
3479 case $ac_file in
3480 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3481 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3482 break;;
3483 esac
3484 done
3485 else
3486 echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3488
3489 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3490 See \`config.log' for more details." >&5
3491 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3492 See \`config.log' for more details." >&2;}
3493 { (exit 1); exit 1; }; }
3494 fi
3495
3496 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3497 fi
3498 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3499 echo "${ECHO_T}$ac_cv_objext" >&6; }
3500 OBJEXT=$ac_cv_objext
3501 ac_objext=$OBJEXT
3502 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3503 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3504 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507 cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h. */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3513
3514 int
3515 main ()
3516 {
3517 #ifndef __GNUC__
3518 choke me
3519 #endif
3520
3521 ;
3522 return 0;
3523 }
3524 _ACEOF
3525 rm -f conftest.$ac_objext
3526 if { (ac_try="$ac_compile"
3527 case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530 esac
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_compile") 2>conftest.er1
3533 ac_status=$?
3534 grep -v '^ *+' conftest.er1 >conftest.err
3535 rm -f conftest.er1
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } && {
3539 test -z "$ac_c_werror_flag" ||
3540 test ! -s conftest.err
3541 } && test -s conftest.$ac_objext; then
3542 ac_compiler_gnu=yes
3543 else
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3546
3547 ac_compiler_gnu=no
3548 fi
3549
3550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3552
3553 fi
3554 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3555 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3556 GCC=`test $ac_compiler_gnu = yes && echo yes`
3557 ac_test_CFLAGS=${CFLAGS+set}
3558 ac_save_CFLAGS=$CFLAGS
3559 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3560 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3561 if test "${ac_cv_prog_cc_g+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564 ac_save_c_werror_flag=$ac_c_werror_flag
3565 ac_c_werror_flag=yes
3566 ac_cv_prog_cc_g=no
3567 CFLAGS="-g"
3568 cat >conftest.$ac_ext <<_ACEOF
3569 /* confdefs.h. */
3570 _ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3574
3575 int
3576 main ()
3577 {
3578
3579 ;
3580 return 0;
3581 }
3582 _ACEOF
3583 rm -f conftest.$ac_objext
3584 if { (ac_try="$ac_compile"
3585 case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588 esac
3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590 (eval "$ac_compile") 2>conftest.er1
3591 ac_status=$?
3592 grep -v '^ *+' conftest.er1 >conftest.err
3593 rm -f conftest.er1
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } && {
3597 test -z "$ac_c_werror_flag" ||
3598 test ! -s conftest.err
3599 } && test -s conftest.$ac_objext; then
3600 ac_cv_prog_cc_g=yes
3601 else
3602 echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3604
3605 CFLAGS=""
3606 cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h. */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3612
3613 int
3614 main ()
3615 {
3616
3617 ;
3618 return 0;
3619 }
3620 _ACEOF
3621 rm -f conftest.$ac_objext
3622 if { (ac_try="$ac_compile"
3623 case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626 esac
3627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3628 (eval "$ac_compile") 2>conftest.er1
3629 ac_status=$?
3630 grep -v '^ *+' conftest.er1 >conftest.err
3631 rm -f conftest.er1
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } && {
3635 test -z "$ac_c_werror_flag" ||
3636 test ! -s conftest.err
3637 } && test -s conftest.$ac_objext; then
3638 :
3639 else
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3642
3643 ac_c_werror_flag=$ac_save_c_werror_flag
3644 CFLAGS="-g"
3645 cat >conftest.$ac_ext <<_ACEOF
3646 /* confdefs.h. */
3647 _ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3651
3652 int
3653 main ()
3654 {
3655
3656 ;
3657 return 0;
3658 }
3659 _ACEOF
3660 rm -f conftest.$ac_objext
3661 if { (ac_try="$ac_compile"
3662 case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665 esac
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_compile") 2>conftest.er1
3668 ac_status=$?
3669 grep -v '^ *+' conftest.er1 >conftest.err
3670 rm -f conftest.er1
3671 cat conftest.err >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } && {
3674 test -z "$ac_c_werror_flag" ||
3675 test ! -s conftest.err
3676 } && test -s conftest.$ac_objext; then
3677 ac_cv_prog_cc_g=yes
3678 else
3679 echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3681
3682
3683 fi
3684
3685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3686 fi
3687
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689 fi
3690
3691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692 ac_c_werror_flag=$ac_save_c_werror_flag
3693 fi
3694 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3695 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3696 if test "$ac_test_CFLAGS" = set; then
3697 CFLAGS=$ac_save_CFLAGS
3698 elif test $ac_cv_prog_cc_g = yes; then
3699 if test "$GCC" = yes; then
3700 CFLAGS="-g -O2"
3701 else
3702 CFLAGS="-g"
3703 fi
3704 else
3705 if test "$GCC" = yes; then
3706 CFLAGS="-O2"
3707 else
3708 CFLAGS=
3709 fi
3710 fi
3711 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3712 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3713 if test "${ac_cv_prog_cc_c89+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716 ac_cv_prog_cc_c89=no
3717 ac_save_CC=$CC
3718 cat >conftest.$ac_ext <<_ACEOF
3719 /* confdefs.h. */
3720 _ACEOF
3721 cat confdefs.h >>conftest.$ac_ext
3722 cat >>conftest.$ac_ext <<_ACEOF
3723 /* end confdefs.h. */
3724 #include <stdarg.h>
3725 #include <stdio.h>
3726 #include <sys/types.h>
3727 #include <sys/stat.h>
3728 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3729 struct buf { int x; };
3730 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3731 static char *e (p, i)
3732 char **p;
3733 int i;
3734 {
3735 return p[i];
3736 }
3737 static char *f (char * (*g) (char **, int), char **p, ...)
3738 {
3739 char *s;
3740 va_list v;
3741 va_start (v,p);
3742 s = g (p, va_arg (v,int));
3743 va_end (v);
3744 return s;
3745 }
3746
3747 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3748 function prototypes and stuff, but not '\xHH' hex character constants.
3749 These don't provoke an error unfortunately, instead are silently treated
3750 as 'x'. The following induces an error, until -std is added to get
3751 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3752 array size at least. It's necessary to write '\x00'==0 to get something
3753 that's true only with -std. */
3754 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3755
3756 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3757 inside strings and character constants. */
3758 #define FOO(x) 'x'
3759 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3760
3761 int test (int i, double x);
3762 struct s1 {int (*f) (int a);};
3763 struct s2 {int (*f) (double a);};
3764 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3765 int argc;
3766 char **argv;
3767 int
3768 main ()
3769 {
3770 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3771 ;
3772 return 0;
3773 }
3774 _ACEOF
3775 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3776 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3777 do
3778 CC="$ac_save_CC $ac_arg"
3779 rm -f conftest.$ac_objext
3780 if { (ac_try="$ac_compile"
3781 case "(($ac_try" in
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3784 esac
3785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3786 (eval "$ac_compile") 2>conftest.er1
3787 ac_status=$?
3788 grep -v '^ *+' conftest.er1 >conftest.err
3789 rm -f conftest.er1
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } && {
3793 test -z "$ac_c_werror_flag" ||
3794 test ! -s conftest.err
3795 } && test -s conftest.$ac_objext; then
3796 ac_cv_prog_cc_c89=$ac_arg
3797 else
3798 echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3800
3801
3802 fi
3803
3804 rm -f core conftest.err conftest.$ac_objext
3805 test "x$ac_cv_prog_cc_c89" != "xno" && break
3806 done
3807 rm -f conftest.$ac_ext
3808 CC=$ac_save_CC
3809
3810 fi
3811 # AC_CACHE_VAL
3812 case "x$ac_cv_prog_cc_c89" in
3813 x)
3814 { echo "$as_me:$LINENO: result: none needed" >&5
3815 echo "${ECHO_T}none needed" >&6; } ;;
3816 xno)
3817 { echo "$as_me:$LINENO: result: unsupported" >&5
3818 echo "${ECHO_T}unsupported" >&6; } ;;
3819 *)
3820 CC="$CC $ac_cv_prog_cc_c89"
3821 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3822 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3823 esac
3824
3825
3826 ac_ext=c
3827 ac_cpp='$CPP $CPPFLAGS'
3828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3831
3832
3833 # On Suns, sometimes $CPP names a directory.
3834 if test -n "$CPP" && test -d "$CPP"; then
3835 CPP=
3836 fi
3837
3838 ## If not using gcc, and on Solaris, and no CPP specified, see if
3839 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3840 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3841 test x"$CPP" = x; then
3842 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3843 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3844
3845 if test "${emacs_cv_sunpro_c+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848 cat >conftest.$ac_ext <<_ACEOF
3849 /* confdefs.h. */
3850 _ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h. */
3854
3855 int
3856 main ()
3857 {
3858 #ifndef __SUNPRO_C
3859 fail;
3860 #endif
3861
3862 ;
3863 return 0;
3864 }
3865 _ACEOF
3866 rm -f conftest.$ac_objext conftest$ac_exeext
3867 if { (ac_try="$ac_link"
3868 case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3871 esac
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_link") 2>conftest.er1
3874 ac_status=$?
3875 grep -v '^ *+' conftest.er1 >conftest.err
3876 rm -f conftest.er1
3877 cat conftest.err >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } && {
3880 test -z "$ac_c_werror_flag" ||
3881 test ! -s conftest.err
3882 } && test -s conftest$ac_exeext &&
3883 $as_test_x conftest$ac_exeext; then
3884 emacs_cv_sunpro_c=yes
3885 else
3886 echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3888
3889 emacs_cv_sunpro_c=no
3890 fi
3891
3892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3893 conftest$ac_exeext conftest.$ac_ext
3894 fi
3895
3896 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3897 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3898
3899 if test x"$emacs_cv_sunpro_c" = xyes; then
3900 NON_GNU_CPP="$CC -E -Xs"
3901 fi
3902 fi
3903
3904 #### Some systems specify a CPP to use unless we are using GCC.
3905 #### Now that we know whether we are using GCC, we can decide whether
3906 #### to use that one.
3907 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3908 then
3909 CPP="$NON_GNU_CPP"
3910 fi
3911
3912 #### Some systems specify a CC to use unless we are using GCC.
3913 #### Now that we know whether we are using GCC, we can decide whether
3914 #### to use that one.
3915 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3916 test x$cc_specified != xyes
3917 then
3918 CC="$NON_GNU_CC"
3919 fi
3920
3921 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3922 then
3923 CC="$CC $GCC_TEST_OPTIONS"
3924 fi
3925
3926 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3927 then
3928 CC="$CC $NON_GCC_TEST_OPTIONS"
3929 fi
3930
3931 ac_ext=c
3932 ac_cpp='$CPP $CPPFLAGS'
3933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3936 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3937 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3938 # On Suns, sometimes $CPP names a directory.
3939 if test -n "$CPP" && test -d "$CPP"; then
3940 CPP=
3941 fi
3942 if test -z "$CPP"; then
3943 if test "${ac_cv_prog_CPP+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 else
3946 # Double quotes because CPP needs to be expanded
3947 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3948 do
3949 ac_preproc_ok=false
3950 for ac_c_preproc_warn_flag in '' yes
3951 do
3952 # Use a header file that comes with gcc, so configuring glibc
3953 # with a fresh cross-compiler works.
3954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3955 # <limits.h> exists even on freestanding compilers.
3956 # On the NeXT, cc -E runs the code through the compiler's parser,
3957 # not just through cpp. "Syntax error" is here to catch this case.
3958 cat >conftest.$ac_ext <<_ACEOF
3959 /* confdefs.h. */
3960 _ACEOF
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3964 #ifdef __STDC__
3965 # include <limits.h>
3966 #else
3967 # include <assert.h>
3968 #endif
3969 Syntax error
3970 _ACEOF
3971 if { (ac_try="$ac_cpp conftest.$ac_ext"
3972 case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975 esac
3976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3978 ac_status=$?
3979 grep -v '^ *+' conftest.er1 >conftest.err
3980 rm -f conftest.er1
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } >/dev/null && {
3984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3985 test ! -s conftest.err
3986 }; then
3987 :
3988 else
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3991
3992 # Broken: fails on valid input.
3993 continue
3994 fi
3995
3996 rm -f conftest.err conftest.$ac_ext
3997
3998 # OK, works on sane cases. Now check whether nonexistent headers
3999 # can be detected and how.
4000 cat >conftest.$ac_ext <<_ACEOF
4001 /* confdefs.h. */
4002 _ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4006 #include <ac_nonexistent.h>
4007 _ACEOF
4008 if { (ac_try="$ac_cpp conftest.$ac_ext"
4009 case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012 esac
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4015 ac_status=$?
4016 grep -v '^ *+' conftest.er1 >conftest.err
4017 rm -f conftest.er1
4018 cat conftest.err >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); } >/dev/null && {
4021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4022 test ! -s conftest.err
4023 }; then
4024 # Broken: success on invalid input.
4025 continue
4026 else
4027 echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4029
4030 # Passes both tests.
4031 ac_preproc_ok=:
4032 break
4033 fi
4034
4035 rm -f conftest.err conftest.$ac_ext
4036
4037 done
4038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4039 rm -f conftest.err conftest.$ac_ext
4040 if $ac_preproc_ok; then
4041 break
4042 fi
4043
4044 done
4045 ac_cv_prog_CPP=$CPP
4046
4047 fi
4048 CPP=$ac_cv_prog_CPP
4049 else
4050 ac_cv_prog_CPP=$CPP
4051 fi
4052 { echo "$as_me:$LINENO: result: $CPP" >&5
4053 echo "${ECHO_T}$CPP" >&6; }
4054 ac_preproc_ok=false
4055 for ac_c_preproc_warn_flag in '' yes
4056 do
4057 # Use a header file that comes with gcc, so configuring glibc
4058 # with a fresh cross-compiler works.
4059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4060 # <limits.h> exists even on freestanding compilers.
4061 # On the NeXT, cc -E runs the code through the compiler's parser,
4062 # not just through cpp. "Syntax error" is here to catch this case.
4063 cat >conftest.$ac_ext <<_ACEOF
4064 /* confdefs.h. */
4065 _ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4069 #ifdef __STDC__
4070 # include <limits.h>
4071 #else
4072 # include <assert.h>
4073 #endif
4074 Syntax error
4075 _ACEOF
4076 if { (ac_try="$ac_cpp conftest.$ac_ext"
4077 case "(($ac_try" in
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4080 esac
4081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4083 ac_status=$?
4084 grep -v '^ *+' conftest.er1 >conftest.err
4085 rm -f conftest.er1
4086 cat conftest.err >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } >/dev/null && {
4089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4090 test ! -s conftest.err
4091 }; then
4092 :
4093 else
4094 echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4096
4097 # Broken: fails on valid input.
4098 continue
4099 fi
4100
4101 rm -f conftest.err conftest.$ac_ext
4102
4103 # OK, works on sane cases. Now check whether nonexistent headers
4104 # can be detected and how.
4105 cat >conftest.$ac_ext <<_ACEOF
4106 /* confdefs.h. */
4107 _ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h. */
4111 #include <ac_nonexistent.h>
4112 _ACEOF
4113 if { (ac_try="$ac_cpp conftest.$ac_ext"
4114 case "(($ac_try" in
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4117 esac
4118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4120 ac_status=$?
4121 grep -v '^ *+' conftest.er1 >conftest.err
4122 rm -f conftest.er1
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } >/dev/null && {
4126 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4127 test ! -s conftest.err
4128 }; then
4129 # Broken: success on invalid input.
4130 continue
4131 else
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4134
4135 # Passes both tests.
4136 ac_preproc_ok=:
4137 break
4138 fi
4139
4140 rm -f conftest.err conftest.$ac_ext
4141
4142 done
4143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4144 rm -f conftest.err conftest.$ac_ext
4145 if $ac_preproc_ok; then
4146 :
4147 else
4148 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4149 See \`config.log' for more details." >&5
4150 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4151 See \`config.log' for more details." >&2;}
4152 { (exit 1); exit 1; }; }
4153 fi
4154
4155 ac_ext=c
4156 ac_cpp='$CPP $CPPFLAGS'
4157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4160
4161
4162 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4163 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4164 if test "${ac_cv_path_GREP+set}" = set; then
4165 echo $ECHO_N "(cached) $ECHO_C" >&6
4166 else
4167 # Extract the first word of "grep ggrep" to use in msg output
4168 if test -z "$GREP"; then
4169 set dummy grep ggrep; ac_prog_name=$2
4170 if test "${ac_cv_path_GREP+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173 ac_path_GREP_found=false
4174 # Loop through the user's path and test for each of PROGNAME-LIST
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4177 do
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
4180 for ac_prog in grep ggrep; do
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4183 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4184 # Check for GNU ac_path_GREP and select it if it is found.
4185 # Check for GNU $ac_path_GREP
4186 case `"$ac_path_GREP" --version 2>&1` in
4187 *GNU*)
4188 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4189 *)
4190 ac_count=0
4191 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4192 while :
4193 do
4194 cat "conftest.in" "conftest.in" >"conftest.tmp"
4195 mv "conftest.tmp" "conftest.in"
4196 cp "conftest.in" "conftest.nl"
4197 echo 'GREP' >> "conftest.nl"
4198 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4200 ac_count=`expr $ac_count + 1`
4201 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4202 # Best one so far, save it but keep looking for a better one
4203 ac_cv_path_GREP="$ac_path_GREP"
4204 ac_path_GREP_max=$ac_count
4205 fi
4206 # 10*(2^10) chars as input seems more than enough
4207 test $ac_count -gt 10 && break
4208 done
4209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4210 esac
4211
4212
4213 $ac_path_GREP_found && break 3
4214 done
4215 done
4216
4217 done
4218 IFS=$as_save_IFS
4219
4220
4221 fi
4222
4223 GREP="$ac_cv_path_GREP"
4224 if test -z "$GREP"; then
4225 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4226 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4227 { (exit 1); exit 1; }; }
4228 fi
4229
4230 else
4231 ac_cv_path_GREP=$GREP
4232 fi
4233
4234
4235 fi
4236 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4237 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4238 GREP="$ac_cv_path_GREP"
4239
4240
4241 { echo "$as_me:$LINENO: checking for egrep" >&5
4242 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4243 if test "${ac_cv_path_EGREP+set}" = set; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 else
4246 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4247 then ac_cv_path_EGREP="$GREP -E"
4248 else
4249 # Extract the first word of "egrep" to use in msg output
4250 if test -z "$EGREP"; then
4251 set dummy egrep; ac_prog_name=$2
4252 if test "${ac_cv_path_EGREP+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 else
4255 ac_path_EGREP_found=false
4256 # Loop through the user's path and test for each of PROGNAME-LIST
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4259 do
4260 IFS=$as_save_IFS
4261 test -z "$as_dir" && as_dir=.
4262 for ac_prog in egrep; do
4263 for ac_exec_ext in '' $ac_executable_extensions; do
4264 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4265 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4266 # Check for GNU ac_path_EGREP and select it if it is found.
4267 # Check for GNU $ac_path_EGREP
4268 case `"$ac_path_EGREP" --version 2>&1` in
4269 *GNU*)
4270 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4271 *)
4272 ac_count=0
4273 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4274 while :
4275 do
4276 cat "conftest.in" "conftest.in" >"conftest.tmp"
4277 mv "conftest.tmp" "conftest.in"
4278 cp "conftest.in" "conftest.nl"
4279 echo 'EGREP' >> "conftest.nl"
4280 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4281 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4282 ac_count=`expr $ac_count + 1`
4283 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4284 # Best one so far, save it but keep looking for a better one
4285 ac_cv_path_EGREP="$ac_path_EGREP"
4286 ac_path_EGREP_max=$ac_count
4287 fi
4288 # 10*(2^10) chars as input seems more than enough
4289 test $ac_count -gt 10 && break
4290 done
4291 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4292 esac
4293
4294
4295 $ac_path_EGREP_found && break 3
4296 done
4297 done
4298
4299 done
4300 IFS=$as_save_IFS
4301
4302
4303 fi
4304
4305 EGREP="$ac_cv_path_EGREP"
4306 if test -z "$EGREP"; then
4307 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4308 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4309 { (exit 1); exit 1; }; }
4310 fi
4311
4312 else
4313 ac_cv_path_EGREP=$EGREP
4314 fi
4315
4316
4317 fi
4318 fi
4319 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4320 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4321 EGREP="$ac_cv_path_EGREP"
4322
4323
4324
4325 { echo "$as_me:$LINENO: checking for AIX" >&5
4326 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4327 cat >conftest.$ac_ext <<_ACEOF
4328 /* confdefs.h. */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 #ifdef _AIX
4334 yes
4335 #endif
4336
4337 _ACEOF
4338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4339 $EGREP "yes" >/dev/null 2>&1; then
4340 { echo "$as_me:$LINENO: result: yes" >&5
4341 echo "${ECHO_T}yes" >&6; }
4342 cat >>confdefs.h <<\_ACEOF
4343 #define _ALL_SOURCE 1
4344 _ACEOF
4345
4346 else
4347 { echo "$as_me:$LINENO: result: no" >&5
4348 echo "${ECHO_T}no" >&6; }
4349 fi
4350 rm -f conftest*
4351
4352
4353
4354 cat >>confdefs.h <<\_ACEOF
4355 #define _GNU_SOURCE 1
4356 _ACEOF
4357
4358
4359
4360 ### Use -Wno-pointer-sign if the compiler supports it
4361 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4362 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4363 SAVE_CFLAGS="$CFLAGS"
4364 CFLAGS="$CFLAGS -Wno-pointer-sign"
4365 cat >conftest.$ac_ext <<_ACEOF
4366 /* confdefs.h. */
4367 _ACEOF
4368 cat confdefs.h >>conftest.$ac_ext
4369 cat >>conftest.$ac_ext <<_ACEOF
4370 /* end confdefs.h. */
4371
4372 int
4373 main ()
4374 {
4375
4376 ;
4377 return 0;
4378 }
4379 _ACEOF
4380 rm -f conftest.$ac_objext
4381 if { (ac_try="$ac_compile"
4382 case "(($ac_try" in
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4385 esac
4386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4387 (eval "$ac_compile") 2>conftest.er1
4388 ac_status=$?
4389 grep -v '^ *+' conftest.er1 >conftest.err
4390 rm -f conftest.er1
4391 cat conftest.err >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } && {
4394 test -z "$ac_c_werror_flag" ||
4395 test ! -s conftest.err
4396 } && test -s conftest.$ac_objext; then
4397 has_option=yes
4398 else
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4401
4402 has_option=no
4403 fi
4404
4405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406 if test $has_option = yes; then
4407 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4408 fi
4409 { echo "$as_me:$LINENO: result: $has_option" >&5
4410 echo "${ECHO_T}$has_option" >&6; }
4411 CFLAGS="$SAVE_CFLAGS"
4412 unset has_option
4413 unset SAVE_CFLAGS
4414
4415 #### Some other nice autoconf tests.
4416
4417 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4418 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4419 LN_S=$as_ln_s
4420 if test "$LN_S" = "ln -s"; then
4421 { echo "$as_me:$LINENO: result: yes" >&5
4422 echo "${ECHO_T}yes" >&6; }
4423 else
4424 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4425 echo "${ECHO_T}no, using $LN_S" >&6; }
4426 fi
4427
4428 ac_ext=c
4429 ac_cpp='$CPP $CPPFLAGS'
4430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4433 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4434 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4435 # On Suns, sometimes $CPP names a directory.
4436 if test -n "$CPP" && test -d "$CPP"; then
4437 CPP=
4438 fi
4439 if test -z "$CPP"; then
4440 if test "${ac_cv_prog_CPP+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443 # Double quotes because CPP needs to be expanded
4444 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4445 do
4446 ac_preproc_ok=false
4447 for ac_c_preproc_warn_flag in '' yes
4448 do
4449 # Use a header file that comes with gcc, so configuring glibc
4450 # with a fresh cross-compiler works.
4451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4452 # <limits.h> exists even on freestanding compilers.
4453 # On the NeXT, cc -E runs the code through the compiler's parser,
4454 # not just through cpp. "Syntax error" is here to catch this case.
4455 cat >conftest.$ac_ext <<_ACEOF
4456 /* confdefs.h. */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461 #ifdef __STDC__
4462 # include <limits.h>
4463 #else
4464 # include <assert.h>
4465 #endif
4466 Syntax error
4467 _ACEOF
4468 if { (ac_try="$ac_cpp conftest.$ac_ext"
4469 case "(($ac_try" in
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4472 esac
4473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4475 ac_status=$?
4476 grep -v '^ *+' conftest.er1 >conftest.err
4477 rm -f conftest.er1
4478 cat conftest.err >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } >/dev/null && {
4481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4482 test ! -s conftest.err
4483 }; then
4484 :
4485 else
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4488
4489 # Broken: fails on valid input.
4490 continue
4491 fi
4492
4493 rm -f conftest.err conftest.$ac_ext
4494
4495 # OK, works on sane cases. Now check whether nonexistent headers
4496 # can be detected and how.
4497 cat >conftest.$ac_ext <<_ACEOF
4498 /* confdefs.h. */
4499 _ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h. */
4503 #include <ac_nonexistent.h>
4504 _ACEOF
4505 if { (ac_try="$ac_cpp conftest.$ac_ext"
4506 case "(($ac_try" in
4507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4509 esac
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4512 ac_status=$?
4513 grep -v '^ *+' conftest.er1 >conftest.err
4514 rm -f conftest.er1
4515 cat conftest.err >&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); } >/dev/null && {
4518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4519 test ! -s conftest.err
4520 }; then
4521 # Broken: success on invalid input.
4522 continue
4523 else
4524 echo "$as_me: failed program was:" >&5
4525 sed 's/^/| /' conftest.$ac_ext >&5
4526
4527 # Passes both tests.
4528 ac_preproc_ok=:
4529 break
4530 fi
4531
4532 rm -f conftest.err conftest.$ac_ext
4533
4534 done
4535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4536 rm -f conftest.err conftest.$ac_ext
4537 if $ac_preproc_ok; then
4538 break
4539 fi
4540
4541 done
4542 ac_cv_prog_CPP=$CPP
4543
4544 fi
4545 CPP=$ac_cv_prog_CPP
4546 else
4547 ac_cv_prog_CPP=$CPP
4548 fi
4549 { echo "$as_me:$LINENO: result: $CPP" >&5
4550 echo "${ECHO_T}$CPP" >&6; }
4551 ac_preproc_ok=false
4552 for ac_c_preproc_warn_flag in '' yes
4553 do
4554 # Use a header file that comes with gcc, so configuring glibc
4555 # with a fresh cross-compiler works.
4556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4557 # <limits.h> exists even on freestanding compilers.
4558 # On the NeXT, cc -E runs the code through the compiler's parser,
4559 # not just through cpp. "Syntax error" is here to catch this case.
4560 cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h. */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4566 #ifdef __STDC__
4567 # include <limits.h>
4568 #else
4569 # include <assert.h>
4570 #endif
4571 Syntax error
4572 _ACEOF
4573 if { (ac_try="$ac_cpp conftest.$ac_ext"
4574 case "(($ac_try" in
4575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576 *) ac_try_echo=$ac_try;;
4577 esac
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4580 ac_status=$?
4581 grep -v '^ *+' conftest.er1 >conftest.err
4582 rm -f conftest.er1
4583 cat conftest.err >&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } >/dev/null && {
4586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4587 test ! -s conftest.err
4588 }; then
4589 :
4590 else
4591 echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4593
4594 # Broken: fails on valid input.
4595 continue
4596 fi
4597
4598 rm -f conftest.err conftest.$ac_ext
4599
4600 # OK, works on sane cases. Now check whether nonexistent headers
4601 # can be detected and how.
4602 cat >conftest.$ac_ext <<_ACEOF
4603 /* confdefs.h. */
4604 _ACEOF
4605 cat confdefs.h >>conftest.$ac_ext
4606 cat >>conftest.$ac_ext <<_ACEOF
4607 /* end confdefs.h. */
4608 #include <ac_nonexistent.h>
4609 _ACEOF
4610 if { (ac_try="$ac_cpp conftest.$ac_ext"
4611 case "(($ac_try" in
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4614 esac
4615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4617 ac_status=$?
4618 grep -v '^ *+' conftest.er1 >conftest.err
4619 rm -f conftest.er1
4620 cat conftest.err >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } >/dev/null && {
4623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4624 test ! -s conftest.err
4625 }; then
4626 # Broken: success on invalid input.
4627 continue
4628 else
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4631
4632 # Passes both tests.
4633 ac_preproc_ok=:
4634 break
4635 fi
4636
4637 rm -f conftest.err conftest.$ac_ext
4638
4639 done
4640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4641 rm -f conftest.err conftest.$ac_ext
4642 if $ac_preproc_ok; then
4643 :
4644 else
4645 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4646 See \`config.log' for more details." >&5
4647 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4648 See \`config.log' for more details." >&2;}
4649 { (exit 1); exit 1; }; }
4650 fi
4651
4652 ac_ext=c
4653 ac_cpp='$CPP $CPPFLAGS'
4654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4657
4658 # Find a good install program. We prefer a C program (faster),
4659 # so one script is as good as another. But avoid the broken or
4660 # incompatible versions:
4661 # SysV /etc/install, /usr/sbin/install
4662 # SunOS /usr/etc/install
4663 # IRIX /sbin/install
4664 # AIX /bin/install
4665 # AmigaOS /C/install, which installs bootblocks on floppy discs
4666 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4667 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4668 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4669 # OS/2's system install, which has a completely different semantic
4670 # ./install, which can be erroneously created by make from ./install.sh.
4671 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4672 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4673 if test -z "$INSTALL"; then
4674 if test "${ac_cv_path_install+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH
4679 do
4680 IFS=$as_save_IFS
4681 test -z "$as_dir" && as_dir=.
4682 # Account for people who put trailing slashes in PATH elements.
4683 case $as_dir/ in
4684 ./ | .// | /cC/* | \
4685 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4686 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4687 /usr/ucb/* ) ;;
4688 *)
4689 # OSF1 and SCO ODT 3.0 have their own names for install.
4690 # Don't use installbsd from OSF since it installs stuff as root
4691 # by default.
4692 for ac_prog in ginstall scoinst install; do
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4695 if test $ac_prog = install &&
4696 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4697 # AIX install. It has an incompatible calling convention.
4698 :
4699 elif test $ac_prog = install &&
4700 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4701 # program-specific install script used by HP pwplus--don't use.
4702 :
4703 else
4704 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4705 break 3
4706 fi
4707 fi
4708 done
4709 done
4710 ;;
4711 esac
4712 done
4713 IFS=$as_save_IFS
4714
4715
4716 fi
4717 if test "${ac_cv_path_install+set}" = set; then
4718 INSTALL=$ac_cv_path_install
4719 else
4720 # As a last resort, use the slow shell script. Don't cache a
4721 # value for INSTALL within a source directory, because that will
4722 # break other packages using the cache if that directory is
4723 # removed, or if the value is a relative name.
4724 INSTALL=$ac_install_sh
4725 fi
4726 fi
4727 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4728 echo "${ECHO_T}$INSTALL" >&6; }
4729
4730 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4731 # It thinks the first close brace ends the variable substitution.
4732 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4733
4734 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4735
4736 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4737
4738 if test "x$RANLIB" = x; then
4739 if test -n "$ac_tool_prefix"; then
4740 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4741 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4744 if test "${ac_cv_prog_RANLIB+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747 if test -n "$RANLIB"; then
4748 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4749 else
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753 IFS=$as_save_IFS
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4759 break 2
4760 fi
4761 done
4762 done
4763 IFS=$as_save_IFS
4764
4765 fi
4766 fi
4767 RANLIB=$ac_cv_prog_RANLIB
4768 if test -n "$RANLIB"; then
4769 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4770 echo "${ECHO_T}$RANLIB" >&6; }
4771 else
4772 { echo "$as_me:$LINENO: result: no" >&5
4773 echo "${ECHO_T}no" >&6; }
4774 fi
4775
4776
4777 fi
4778 if test -z "$ac_cv_prog_RANLIB"; then
4779 ac_ct_RANLIB=$RANLIB
4780 # Extract the first word of "ranlib", so it can be a program name with args.
4781 set dummy ranlib; ac_word=$2
4782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4784 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 else
4787 if test -n "$ac_ct_RANLIB"; then
4788 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4789 else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4792 do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_prog_ac_ct_RANLIB="ranlib"
4798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4800 fi
4801 done
4802 done
4803 IFS=$as_save_IFS
4804
4805 fi
4806 fi
4807 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4808 if test -n "$ac_ct_RANLIB"; then
4809 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4810 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4811 else
4812 { echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6; }
4814 fi
4815
4816 if test "x$ac_ct_RANLIB" = x; then
4817 RANLIB=":"
4818 else
4819 case $cross_compiling:$ac_tool_warned in
4820 yes:)
4821 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4822 whose name does not start with the host triplet. If you think this
4823 configuration is useful to you, please write to autoconf@gnu.org." >&5
4824 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4825 whose name does not start with the host triplet. If you think this
4826 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4827 ac_tool_warned=yes ;;
4828 esac
4829 RANLIB=$ac_ct_RANLIB
4830 fi
4831 else
4832 RANLIB="$ac_cv_prog_RANLIB"
4833 fi
4834
4835 fi
4836 # Extract the first word of "install-info", so it can be a program name with args.
4837 set dummy install-info; ac_word=$2
4838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4840 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4842 else
4843 case $INSTALL_INFO in
4844 [\\/]* | ?:[\\/]*)
4845 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4846 ;;
4847 *)
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH
4850 do
4851 IFS=$as_save_IFS
4852 test -z "$as_dir" && as_dir=.
4853 for ac_exec_ext in '' $ac_executable_extensions; do
4854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4855 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4857 break 2
4858 fi
4859 done
4860 done
4861 IFS=$as_save_IFS
4862
4863 ;;
4864 esac
4865 fi
4866 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4867 if test -n "$INSTALL_INFO"; then
4868 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4869 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4870 else
4871 { echo "$as_me:$LINENO: result: no" >&5
4872 echo "${ECHO_T}no" >&6; }
4873 fi
4874
4875
4876 # Extract the first word of "install-info", so it can be a program name with args.
4877 set dummy install-info; ac_word=$2
4878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4880 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 else
4883 case $INSTALL_INFO in
4884 [\\/]* | ?:[\\/]*)
4885 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4886 ;;
4887 *)
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in /usr/sbin
4890 do
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 break 2
4898 fi
4899 done
4900 done
4901 IFS=$as_save_IFS
4902
4903 ;;
4904 esac
4905 fi
4906 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4907 if test -n "$INSTALL_INFO"; then
4908 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4909 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4910 else
4911 { echo "$as_me:$LINENO: result: no" >&5
4912 echo "${ECHO_T}no" >&6; }
4913 fi
4914
4915
4916 # Extract the first word of "install-info", so it can be a program name with args.
4917 set dummy install-info; ac_word=$2
4918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4920 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923 case $INSTALL_INFO in
4924 [\\/]* | ?:[\\/]*)
4925 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4926 ;;
4927 *)
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in /sbin
4930 do
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4935 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 break 2
4938 fi
4939 done
4940 done
4941 IFS=$as_save_IFS
4942
4943 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4944 ;;
4945 esac
4946 fi
4947 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4948 if test -n "$INSTALL_INFO"; then
4949 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4950 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4951 else
4952 { echo "$as_me:$LINENO: result: no" >&5
4953 echo "${ECHO_T}no" >&6; }
4954 fi
4955
4956
4957 # Extract the first word of "gzip", so it can be a program name with args.
4958 set dummy gzip; ac_word=$2
4959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4961 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964 case $GZIP_PROG in
4965 [\\/]* | ?:[\\/]*)
4966 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4967 ;;
4968 *)
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4971 do
4972 IFS=$as_save_IFS
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4976 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 break 2
4979 fi
4980 done
4981 done
4982 IFS=$as_save_IFS
4983
4984 ;;
4985 esac
4986 fi
4987 GZIP_PROG=$ac_cv_path_GZIP_PROG
4988 if test -n "$GZIP_PROG"; then
4989 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4990 echo "${ECHO_T}$GZIP_PROG" >&6; }
4991 else
4992 { echo "$as_me:$LINENO: result: no" >&5
4993 echo "${ECHO_T}no" >&6; }
4994 fi
4995
4996
4997
4998
4999 ## Need makeinfo >= 4.6 (?) to build the manuals.
5000 # Extract the first word of "makeinfo", so it can be a program name with args.
5001 set dummy makeinfo; ac_word=$2
5002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5004 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007 case $MAKEINFO in
5008 [\\/]* | ?:[\\/]*)
5009 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5010 ;;
5011 *)
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5014 do
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 break 2
5022 fi
5023 done
5024 done
5025 IFS=$as_save_IFS
5026
5027 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5028 ;;
5029 esac
5030 fi
5031 MAKEINFO=$ac_cv_path_MAKEINFO
5032 if test -n "$MAKEINFO"; then
5033 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5034 echo "${ECHO_T}$MAKEINFO" >&6; }
5035 else
5036 { echo "$as_me:$LINENO: result: no" >&5
5037 echo "${ECHO_T}no" >&6; }
5038 fi
5039
5040
5041 if test "$MAKEINFO" != "no" && \
5042 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then
5043 MAKEINFO=no
5044 fi
5045
5046 if test "$MAKEINFO" = "no"; then
5047 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5048 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5049 { (exit 1); exit 1; }; }
5050 fi
5051
5052
5053
5054 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5055 then
5056 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5057 fi
5058
5059 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5060 then
5061 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5062 fi
5063
5064
5065 late_LDFLAGS=$LDFLAGS
5066 if test "$GCC" = yes; then
5067 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5068 else
5069 LDFLAGS="$LDFLAGS -znocombreloc"
5070 fi
5071
5072 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5073 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5074 cat >conftest.$ac_ext <<_ACEOF
5075 main(){return 0;}
5076 _ACEOF
5077 rm -f conftest.$ac_objext conftest$ac_exeext
5078 if { (ac_try="$ac_link"
5079 case "(($ac_try" in
5080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081 *) ac_try_echo=$ac_try;;
5082 esac
5083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084 (eval "$ac_link") 2>conftest.er1
5085 ac_status=$?
5086 grep -v '^ *+' conftest.er1 >conftest.err
5087 rm -f conftest.er1
5088 cat conftest.err >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); } && {
5091 test -z "$ac_c_werror_flag" ||
5092 test ! -s conftest.err
5093 } && test -s conftest$ac_exeext &&
5094 $as_test_x conftest$ac_exeext; then
5095 { echo "$as_me:$LINENO: result: yes" >&5
5096 echo "${ECHO_T}yes" >&6; }
5097 else
5098 echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.$ac_ext >&5
5100
5101 LDFLAGS=$late_LDFLAGS
5102 { echo "$as_me:$LINENO: result: no" >&5
5103 echo "${ECHO_T}no" >&6; }
5104 fi
5105
5106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5107 conftest$ac_exeext conftest.$ac_ext
5108
5109 #### Extract some information from the operating system and machine files.
5110
5111 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5112 - which libraries the lib-src programs will want, and
5113 - whether the GNU malloc routines are usable..." >&5
5114 echo "$as_me: checking the machine- and system-dependent files to find out
5115 - which libraries the lib-src programs will want, and
5116 - whether the GNU malloc routines are usable..." >&6;}
5117
5118 ### First figure out CFLAGS (which we use for running the compiler here)
5119 ### and REAL_CFLAGS (which we use for real compilation).
5120 ### The two are the same except on a few systems, where they are made
5121 ### different to work around various lossages. For example,
5122 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5123 ### as implying static linking.
5124
5125 ### If the CFLAGS env var is specified, we use that value
5126 ### instead of the default.
5127
5128 ### It's not important that this name contain the PID; you can't run
5129 ### two configures in the same directory and have anything work
5130 ### anyway.
5131 tempcname="conftest.c"
5132
5133 echo '
5134 #include "'${srcdir}'/src/'${opsysfile}'"
5135 #include "'${srcdir}'/src/'${machfile}'"
5136 #ifndef LIBS_MACHINE
5137 #define LIBS_MACHINE
5138 #endif
5139 #ifndef LIBS_SYSTEM
5140 #define LIBS_SYSTEM
5141 #endif
5142 #ifndef C_SWITCH_SYSTEM
5143 #define C_SWITCH_SYSTEM
5144 #endif
5145 #ifndef C_SWITCH_MACHINE
5146 #define C_SWITCH_MACHINE
5147 #endif
5148 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5149 configure___ c_switch_system=C_SWITCH_SYSTEM
5150 configure___ c_switch_machine=C_SWITCH_MACHINE
5151
5152 #ifndef LIB_X11_LIB
5153 #define LIB_X11_LIB -lX11
5154 #endif
5155
5156 #ifndef LIBX11_MACHINE
5157 #define LIBX11_MACHINE
5158 #endif
5159
5160 #ifndef LIBX11_SYSTEM
5161 #define LIBX11_SYSTEM
5162 #endif
5163 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5164
5165 #ifdef UNEXEC
5166 configure___ unexec=UNEXEC
5167 #else
5168 configure___ unexec=unexec.o
5169 #endif
5170
5171 #ifdef SYSTEM_MALLOC
5172 configure___ system_malloc=yes
5173 #else
5174 configure___ system_malloc=no
5175 #endif
5176
5177 #ifdef USE_MMAP_FOR_BUFFERS
5178 configure___ use_mmap_for_buffers=yes
5179 #else
5180 configure___ use_mmap_for_buffers=no
5181 #endif
5182
5183 #ifndef C_DEBUG_SWITCH
5184 #define C_DEBUG_SWITCH -g
5185 #endif
5186
5187 #ifndef C_OPTIMIZE_SWITCH
5188 #ifdef __GNUC__
5189 #define C_OPTIMIZE_SWITCH -O2
5190 #else
5191 #define C_OPTIMIZE_SWITCH -O
5192 #endif
5193 #endif
5194
5195 #ifndef C_WARNINGS_SWITCH
5196 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5197 #endif
5198
5199 #ifndef LD_SWITCH_MACHINE
5200 #define LD_SWITCH_MACHINE
5201 #endif
5202
5203 #ifndef LD_SWITCH_SYSTEM
5204 #define LD_SWITCH_SYSTEM
5205 #endif
5206
5207 #ifndef LD_SWITCH_X_SITE_AUX
5208 #define LD_SWITCH_X_SITE_AUX
5209 #endif
5210
5211 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5212 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5213
5214 #ifdef THIS_IS_CONFIGURE
5215
5216 /* Get the CFLAGS for tests in configure. */
5217 #ifdef __GNUC__
5218 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5219 #else
5220 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5221 #endif
5222
5223 #else /* not THIS_IS_CONFIGURE */
5224
5225 /* Get the CFLAGS for real compilation. */
5226 #ifdef __GNUC__
5227 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5228 #else
5229 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5230 #endif
5231
5232 #endif /* not THIS_IS_CONFIGURE */
5233 ' > ${tempcname}
5234
5235 # The value of CPP is a quoted variable reference, so we need to do this
5236 # to get its actual value...
5237 CPP=`eval "echo $CPP"`
5238 eval `${CPP} -Isrc ${tempcname} \
5239 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5240 if test "x$SPECIFIED_CFLAGS" = x; then
5241 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5242 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5243 else
5244 REAL_CFLAGS="$CFLAGS"
5245 fi
5246 rm ${tempcname}
5247
5248 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5249
5250 ### Make sure subsequent tests use flags consistent with the build flags.
5251
5252 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5253 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5254 else
5255 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5256 fi
5257
5258
5259
5260 # Check whether --enable-largefile was given.
5261 if test "${enable_largefile+set}" = set; then
5262 enableval=$enable_largefile;
5263 fi
5264
5265 if test "$enable_largefile" != no; then
5266
5267 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5268 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5269 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272 ac_cv_sys_largefile_CC=no
5273 if test "$GCC" != yes; then
5274 ac_save_CC=$CC
5275 while :; do
5276 # IRIX 6.2 and later do not support large files by default,
5277 # so use the C compiler's -n32 option if that helps.
5278 cat >conftest.$ac_ext <<_ACEOF
5279 /* confdefs.h. */
5280 _ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h. */
5284 #include <sys/types.h>
5285 /* Check that off_t can represent 2**63 - 1 correctly.
5286 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5287 since some C++ compilers masquerading as C compilers
5288 incorrectly reject 9223372036854775807. */
5289 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5290 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5291 && LARGE_OFF_T % 2147483647 == 1)
5292 ? 1 : -1];
5293 int
5294 main ()
5295 {
5296
5297 ;
5298 return 0;
5299 }
5300 _ACEOF
5301 rm -f conftest.$ac_objext
5302 if { (ac_try="$ac_compile"
5303 case "(($ac_try" in
5304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305 *) ac_try_echo=$ac_try;;
5306 esac
5307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308 (eval "$ac_compile") 2>conftest.er1
5309 ac_status=$?
5310 grep -v '^ *+' conftest.er1 >conftest.err
5311 rm -f conftest.er1
5312 cat conftest.err >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); } && {
5315 test -z "$ac_c_werror_flag" ||
5316 test ! -s conftest.err
5317 } && test -s conftest.$ac_objext; then
5318 break
5319 else
5320 echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.$ac_ext >&5
5322
5323
5324 fi
5325
5326 rm -f core conftest.err conftest.$ac_objext
5327 CC="$CC -n32"
5328 rm -f conftest.$ac_objext
5329 if { (ac_try="$ac_compile"
5330 case "(($ac_try" in
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5333 esac
5334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335 (eval "$ac_compile") 2>conftest.er1
5336 ac_status=$?
5337 grep -v '^ *+' conftest.er1 >conftest.err
5338 rm -f conftest.er1
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } && {
5342 test -z "$ac_c_werror_flag" ||
5343 test ! -s conftest.err
5344 } && test -s conftest.$ac_objext; then
5345 ac_cv_sys_largefile_CC=' -n32'; break
5346 else
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5349
5350
5351 fi
5352
5353 rm -f core conftest.err conftest.$ac_objext
5354 break
5355 done
5356 CC=$ac_save_CC
5357 rm -f conftest.$ac_ext
5358 fi
5359 fi
5360 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5361 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5362 if test "$ac_cv_sys_largefile_CC" != no; then
5363 CC=$CC$ac_cv_sys_largefile_CC
5364 fi
5365
5366 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5367 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5368 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371 while :; do
5372 cat >conftest.$ac_ext <<_ACEOF
5373 /* confdefs.h. */
5374 _ACEOF
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h. */
5378 #include <sys/types.h>
5379 /* Check that off_t can represent 2**63 - 1 correctly.
5380 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5381 since some C++ compilers masquerading as C compilers
5382 incorrectly reject 9223372036854775807. */
5383 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5384 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5385 && LARGE_OFF_T % 2147483647 == 1)
5386 ? 1 : -1];
5387 int
5388 main ()
5389 {
5390
5391 ;
5392 return 0;
5393 }
5394 _ACEOF
5395 rm -f conftest.$ac_objext
5396 if { (ac_try="$ac_compile"
5397 case "(($ac_try" in
5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399 *) ac_try_echo=$ac_try;;
5400 esac
5401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402 (eval "$ac_compile") 2>conftest.er1
5403 ac_status=$?
5404 grep -v '^ *+' conftest.er1 >conftest.err
5405 rm -f conftest.er1
5406 cat conftest.err >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } && {
5409 test -z "$ac_c_werror_flag" ||
5410 test ! -s conftest.err
5411 } && test -s conftest.$ac_objext; then
5412 ac_cv_sys_file_offset_bits=no; break
5413 else
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5416
5417
5418 fi
5419
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 cat >conftest.$ac_ext <<_ACEOF
5422 /* confdefs.h. */
5423 _ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h. */
5427 #define _FILE_OFFSET_BITS 64
5428 #include <sys/types.h>
5429 /* Check that off_t can represent 2**63 - 1 correctly.
5430 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5431 since some C++ compilers masquerading as C compilers
5432 incorrectly reject 9223372036854775807. */
5433 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5434 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5435 && LARGE_OFF_T % 2147483647 == 1)
5436 ? 1 : -1];
5437 int
5438 main ()
5439 {
5440
5441 ;
5442 return 0;
5443 }
5444 _ACEOF
5445 rm -f conftest.$ac_objext
5446 if { (ac_try="$ac_compile"
5447 case "(($ac_try" in
5448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449 *) ac_try_echo=$ac_try;;
5450 esac
5451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5452 (eval "$ac_compile") 2>conftest.er1
5453 ac_status=$?
5454 grep -v '^ *+' conftest.er1 >conftest.err
5455 rm -f conftest.er1
5456 cat conftest.err >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } && {
5459 test -z "$ac_c_werror_flag" ||
5460 test ! -s conftest.err
5461 } && test -s conftest.$ac_objext; then
5462 ac_cv_sys_file_offset_bits=64; break
5463 else
5464 echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.$ac_ext >&5
5466
5467
5468 fi
5469
5470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471 ac_cv_sys_file_offset_bits=unknown
5472 break
5473 done
5474 fi
5475 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5476 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5477 case $ac_cv_sys_file_offset_bits in #(
5478 no | unknown) ;;
5479 *)
5480 cat >>confdefs.h <<_ACEOF
5481 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5482 _ACEOF
5483 ;;
5484 esac
5485 rm -f conftest*
5486 if test $ac_cv_sys_file_offset_bits = unknown; then
5487 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5488 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5489 if test "${ac_cv_sys_large_files+set}" = set; then
5490 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 else
5492 while :; do
5493 cat >conftest.$ac_ext <<_ACEOF
5494 /* confdefs.h. */
5495 _ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5499 #include <sys/types.h>
5500 /* Check that off_t can represent 2**63 - 1 correctly.
5501 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5502 since some C++ compilers masquerading as C compilers
5503 incorrectly reject 9223372036854775807. */
5504 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5505 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5506 && LARGE_OFF_T % 2147483647 == 1)
5507 ? 1 : -1];
5508 int
5509 main ()
5510 {
5511
5512 ;
5513 return 0;
5514 }
5515 _ACEOF
5516 rm -f conftest.$ac_objext
5517 if { (ac_try="$ac_compile"
5518 case "(($ac_try" in
5519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5520 *) ac_try_echo=$ac_try;;
5521 esac
5522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5523 (eval "$ac_compile") 2>conftest.er1
5524 ac_status=$?
5525 grep -v '^ *+' conftest.er1 >conftest.err
5526 rm -f conftest.er1
5527 cat conftest.err >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); } && {
5530 test -z "$ac_c_werror_flag" ||
5531 test ! -s conftest.err
5532 } && test -s conftest.$ac_objext; then
5533 ac_cv_sys_large_files=no; break
5534 else
5535 echo "$as_me: failed program was:" >&5
5536 sed 's/^/| /' conftest.$ac_ext >&5
5537
5538
5539 fi
5540
5541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5542 cat >conftest.$ac_ext <<_ACEOF
5543 /* confdefs.h. */
5544 _ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5548 #define _LARGE_FILES 1
5549 #include <sys/types.h>
5550 /* Check that off_t can represent 2**63 - 1 correctly.
5551 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5552 since some C++ compilers masquerading as C compilers
5553 incorrectly reject 9223372036854775807. */
5554 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5555 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5556 && LARGE_OFF_T % 2147483647 == 1)
5557 ? 1 : -1];
5558 int
5559 main ()
5560 {
5561
5562 ;
5563 return 0;
5564 }
5565 _ACEOF
5566 rm -f conftest.$ac_objext
5567 if { (ac_try="$ac_compile"
5568 case "(($ac_try" in
5569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570 *) ac_try_echo=$ac_try;;
5571 esac
5572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5573 (eval "$ac_compile") 2>conftest.er1
5574 ac_status=$?
5575 grep -v '^ *+' conftest.er1 >conftest.err
5576 rm -f conftest.er1
5577 cat conftest.err >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } && {
5580 test -z "$ac_c_werror_flag" ||
5581 test ! -s conftest.err
5582 } && test -s conftest.$ac_objext; then
5583 ac_cv_sys_large_files=1; break
5584 else
5585 echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5587
5588
5589 fi
5590
5591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5592 ac_cv_sys_large_files=unknown
5593 break
5594 done
5595 fi
5596 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5597 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5598 case $ac_cv_sys_large_files in #(
5599 no | unknown) ;;
5600 *)
5601 cat >>confdefs.h <<_ACEOF
5602 #define _LARGE_FILES $ac_cv_sys_large_files
5603 _ACEOF
5604 ;;
5605 esac
5606 rm -f conftest*
5607 fi
5608 fi
5609
5610
5611
5612 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5613 ### be located in either /usr/lib64 or /usr/lib.
5614 case "${canonical}" in
5615 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5616 if test -d /usr/lib64; then
5617
5618 cat >>confdefs.h <<\_ACEOF
5619 #define HAVE_LIB64_DIR 1
5620 _ACEOF
5621
5622 fi
5623 esac
5624
5625
5626
5627
5628 if test "${with_sound}" != "no"; then
5629 # Sound support for GNU/Linux and the free BSDs.
5630 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5631 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5632 if test "${ac_cv_header_stdc+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635 cat >conftest.$ac_ext <<_ACEOF
5636 /* confdefs.h. */
5637 _ACEOF
5638 cat confdefs.h >>conftest.$ac_ext
5639 cat >>conftest.$ac_ext <<_ACEOF
5640 /* end confdefs.h. */
5641 #include <stdlib.h>
5642 #include <stdarg.h>
5643 #include <string.h>
5644 #include <float.h>
5645
5646 int
5647 main ()
5648 {
5649
5650 ;
5651 return 0;
5652 }
5653 _ACEOF
5654 rm -f conftest.$ac_objext
5655 if { (ac_try="$ac_compile"
5656 case "(($ac_try" in
5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658 *) ac_try_echo=$ac_try;;
5659 esac
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661 (eval "$ac_compile") 2>conftest.er1
5662 ac_status=$?
5663 grep -v '^ *+' conftest.er1 >conftest.err
5664 rm -f conftest.er1
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } && {
5668 test -z "$ac_c_werror_flag" ||
5669 test ! -s conftest.err
5670 } && test -s conftest.$ac_objext; then
5671 ac_cv_header_stdc=yes
5672 else
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5675
5676 ac_cv_header_stdc=no
5677 fi
5678
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680
5681 if test $ac_cv_header_stdc = yes; then
5682 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5683 cat >conftest.$ac_ext <<_ACEOF
5684 /* confdefs.h. */
5685 _ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h. */
5689 #include <string.h>
5690
5691 _ACEOF
5692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5693 $EGREP "memchr" >/dev/null 2>&1; then
5694 :
5695 else
5696 ac_cv_header_stdc=no
5697 fi
5698 rm -f conftest*
5699
5700 fi
5701
5702 if test $ac_cv_header_stdc = yes; then
5703 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5704 cat >conftest.$ac_ext <<_ACEOF
5705 /* confdefs.h. */
5706 _ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5710 #include <stdlib.h>
5711
5712 _ACEOF
5713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5714 $EGREP "free" >/dev/null 2>&1; then
5715 :
5716 else
5717 ac_cv_header_stdc=no
5718 fi
5719 rm -f conftest*
5720
5721 fi
5722
5723 if test $ac_cv_header_stdc = yes; then
5724 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5725 if test "$cross_compiling" = yes; then
5726 :
5727 else
5728 cat >conftest.$ac_ext <<_ACEOF
5729 /* confdefs.h. */
5730 _ACEOF
5731 cat confdefs.h >>conftest.$ac_ext
5732 cat >>conftest.$ac_ext <<_ACEOF
5733 /* end confdefs.h. */
5734 #include <ctype.h>
5735 #include <stdlib.h>
5736 #if ((' ' & 0x0FF) == 0x020)
5737 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5738 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5739 #else
5740 # define ISLOWER(c) \
5741 (('a' <= (c) && (c) <= 'i') \
5742 || ('j' <= (c) && (c) <= 'r') \
5743 || ('s' <= (c) && (c) <= 'z'))
5744 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5745 #endif
5746
5747 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5748 int
5749 main ()
5750 {
5751 int i;
5752 for (i = 0; i < 256; i++)
5753 if (XOR (islower (i), ISLOWER (i))
5754 || toupper (i) != TOUPPER (i))
5755 return 2;
5756 return 0;
5757 }
5758 _ACEOF
5759 rm -f conftest$ac_exeext
5760 if { (ac_try="$ac_link"
5761 case "(($ac_try" in
5762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763 *) ac_try_echo=$ac_try;;
5764 esac
5765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766 (eval "$ac_link") 2>&5
5767 ac_status=$?
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5770 { (case "(($ac_try" in
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5773 esac
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_try") 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 :
5780 else
5781 echo "$as_me: program exited with status $ac_status" >&5
5782 echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.$ac_ext >&5
5784
5785 ( exit $ac_status )
5786 ac_cv_header_stdc=no
5787 fi
5788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5789 fi
5790
5791
5792 fi
5793 fi
5794 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5795 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5796 if test $ac_cv_header_stdc = yes; then
5797
5798 cat >>confdefs.h <<\_ACEOF
5799 #define STDC_HEADERS 1
5800 _ACEOF
5801
5802 fi
5803
5804 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5815 inttypes.h stdint.h unistd.h
5816 do
5817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823 cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h. */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 $ac_includes_default
5830
5831 #include <$ac_header>
5832 _ACEOF
5833 rm -f conftest.$ac_objext
5834 if { (ac_try="$ac_compile"
5835 case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5838 esac
5839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840 (eval "$ac_compile") 2>conftest.er1
5841 ac_status=$?
5842 grep -v '^ *+' conftest.er1 >conftest.err
5843 rm -f conftest.er1
5844 cat conftest.err >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } && {
5847 test -z "$ac_c_werror_flag" ||
5848 test ! -s conftest.err
5849 } && test -s conftest.$ac_objext; then
5850 eval "$as_ac_Header=yes"
5851 else
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5854
5855 eval "$as_ac_Header=no"
5856 fi
5857
5858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859 fi
5860 ac_res=`eval echo '${'$as_ac_Header'}'`
5861 { echo "$as_me:$LINENO: result: $ac_res" >&5
5862 echo "${ECHO_T}$ac_res" >&6; }
5863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5864 cat >>confdefs.h <<_ACEOF
5865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5866 _ACEOF
5867
5868 fi
5869
5870 done
5871
5872
5873
5874
5875
5876 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5877 do
5878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5884 fi
5885 ac_res=`eval echo '${'$as_ac_Header'}'`
5886 { echo "$as_me:$LINENO: result: $ac_res" >&5
5887 echo "${ECHO_T}$ac_res" >&6; }
5888 else
5889 # Is the header compilable?
5890 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5892 cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h. */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 $ac_includes_default
5899 #include <$ac_header>
5900 _ACEOF
5901 rm -f conftest.$ac_objext
5902 if { (ac_try="$ac_compile"
5903 case "(($ac_try" in
5904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905 *) ac_try_echo=$ac_try;;
5906 esac
5907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5908 (eval "$ac_compile") 2>conftest.er1
5909 ac_status=$?
5910 grep -v '^ *+' conftest.er1 >conftest.err
5911 rm -f conftest.er1
5912 cat conftest.err >&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } && {
5915 test -z "$ac_c_werror_flag" ||
5916 test ! -s conftest.err
5917 } && test -s conftest.$ac_objext; then
5918 ac_header_compiler=yes
5919 else
5920 echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5922
5923 ac_header_compiler=no
5924 fi
5925
5926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5927 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5928 echo "${ECHO_T}$ac_header_compiler" >&6; }
5929
5930 # Is the header present?
5931 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5932 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5933 cat >conftest.$ac_ext <<_ACEOF
5934 /* confdefs.h. */
5935 _ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5939 #include <$ac_header>
5940 _ACEOF
5941 if { (ac_try="$ac_cpp conftest.$ac_ext"
5942 case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5945 esac
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5948 ac_status=$?
5949 grep -v '^ *+' conftest.er1 >conftest.err
5950 rm -f conftest.er1
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } >/dev/null && {
5954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5955 test ! -s conftest.err
5956 }; then
5957 ac_header_preproc=yes
5958 else
5959 echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.$ac_ext >&5
5961
5962 ac_header_preproc=no
5963 fi
5964
5965 rm -f conftest.err conftest.$ac_ext
5966 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5967 echo "${ECHO_T}$ac_header_preproc" >&6; }
5968
5969 # So? What about this header?
5970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5971 yes:no: )
5972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5975 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5976 ac_header_preproc=yes
5977 ;;
5978 no:yes:* )
5979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5982 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5984 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5986 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5990 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5991
5992 ;;
5993 esac
5994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999 eval "$as_ac_Header=\$ac_header_preproc"
6000 fi
6001 ac_res=`eval echo '${'$as_ac_Header'}'`
6002 { echo "$as_me:$LINENO: result: $ac_res" >&5
6003 echo "${ECHO_T}$ac_res" >&6; }
6004
6005 fi
6006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6007 cat >>confdefs.h <<_ACEOF
6008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6009 _ACEOF
6010
6011 fi
6012
6013 done
6014
6015 # Emulation library used on NetBSD.
6016 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6017 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6018 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021 ac_check_lib_save_LIBS=$LIBS
6022 LIBS="-lossaudio $LIBS"
6023 cat >conftest.$ac_ext <<_ACEOF
6024 /* confdefs.h. */
6025 _ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6029
6030 /* Override any GCC internal prototype to avoid an error.
6031 Use char because int might match the return type of a GCC
6032 builtin and then its argument prototype would still apply. */
6033 #ifdef __cplusplus
6034 extern "C"
6035 #endif
6036 char _oss_ioctl ();
6037 int
6038 main ()
6039 {
6040 return _oss_ioctl ();
6041 ;
6042 return 0;
6043 }
6044 _ACEOF
6045 rm -f conftest.$ac_objext conftest$ac_exeext
6046 if { (ac_try="$ac_link"
6047 case "(($ac_try" in
6048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049 *) ac_try_echo=$ac_try;;
6050 esac
6051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052 (eval "$ac_link") 2>conftest.er1
6053 ac_status=$?
6054 grep -v '^ *+' conftest.er1 >conftest.err
6055 rm -f conftest.er1
6056 cat conftest.err >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } && {
6059 test -z "$ac_c_werror_flag" ||
6060 test ! -s conftest.err
6061 } && test -s conftest$ac_exeext &&
6062 $as_test_x conftest$ac_exeext; then
6063 ac_cv_lib_ossaudio__oss_ioctl=yes
6064 else
6065 echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6067
6068 ac_cv_lib_ossaudio__oss_ioctl=no
6069 fi
6070
6071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6072 conftest$ac_exeext conftest.$ac_ext
6073 LIBS=$ac_check_lib_save_LIBS
6074 fi
6075 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6076 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6077 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6078 LIBSOUND=-lossaudio
6079 else
6080 LIBSOUND=
6081 fi
6082
6083
6084
6085 ALSA_REQUIRED=1.0.0
6086 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6087
6088 succeeded=no
6089
6090 # Extract the first word of "pkg-config", so it can be a program name with args.
6091 set dummy pkg-config; ac_word=$2
6092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6094 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097 case $PKG_CONFIG in
6098 [\\/]* | ?:[\\/]*)
6099 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6100 ;;
6101 *)
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 for as_dir in $PATH
6104 do
6105 IFS=$as_save_IFS
6106 test -z "$as_dir" && as_dir=.
6107 for ac_exec_ext in '' $ac_executable_extensions; do
6108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6109 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6111 break 2
6112 fi
6113 done
6114 done
6115 IFS=$as_save_IFS
6116
6117 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6118 ;;
6119 esac
6120 fi
6121 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6122 if test -n "$PKG_CONFIG"; then
6123 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6124 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6125 else
6126 { echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6; }
6128 fi
6129
6130
6131
6132 if test "$PKG_CONFIG" = "no" ; then
6133 HAVE_ALSA=no
6134 else
6135 PKG_CONFIG_MIN_VERSION=0.9.0
6136 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6137 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6138 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6139
6140 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6141 { echo "$as_me:$LINENO: result: yes" >&5
6142 echo "${ECHO_T}yes" >&6; }
6143 succeeded=yes
6144
6145 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6146 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6147 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6148 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6149 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6150
6151 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6152 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6153 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6154 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6155 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6156 else
6157 { echo "$as_me:$LINENO: result: no" >&5
6158 echo "${ECHO_T}no" >&6; }
6159 ALSA_CFLAGS=""
6160 ALSA_LIBS=""
6161 ## If we have a custom action on failure, don't print errors, but
6162 ## do set a variable so people can do so.
6163 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6164
6165 fi
6166
6167
6168
6169 else
6170 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6171 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6172 fi
6173 fi
6174
6175 if test $succeeded = yes; then
6176 HAVE_ALSA=yes
6177 else
6178 HAVE_ALSA=no
6179 fi
6180
6181 if test $HAVE_ALSA = yes; then
6182 SAVE_CFLAGS="$CFLAGS"
6183 SAVE_LDFLAGS="$LDFLAGS"
6184 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6185 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6186 cat >conftest.$ac_ext <<_ACEOF
6187 /* confdefs.h. */
6188 _ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6192 #include <asoundlib.h>
6193 int
6194 main ()
6195 {
6196 snd_lib_error_set_handler (0);
6197 ;
6198 return 0;
6199 }
6200 _ACEOF
6201 rm -f conftest.$ac_objext
6202 if { (ac_try="$ac_compile"
6203 case "(($ac_try" in
6204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205 *) ac_try_echo=$ac_try;;
6206 esac
6207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6208 (eval "$ac_compile") 2>conftest.er1
6209 ac_status=$?
6210 grep -v '^ *+' conftest.er1 >conftest.err
6211 rm -f conftest.er1
6212 cat conftest.err >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } && {
6215 test -z "$ac_c_werror_flag" ||
6216 test ! -s conftest.err
6217 } && test -s conftest.$ac_objext; then
6218 emacs_alsa_normal=yes
6219 else
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6222
6223 emacs_alsa_normal=no
6224 fi
6225
6226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6227 if test "$emacs_alsa_normal" != yes; then
6228 cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h. */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234 #include <alsa/asoundlib.h>
6235 int
6236 main ()
6237 {
6238 snd_lib_error_set_handler (0);
6239 ;
6240 return 0;
6241 }
6242 _ACEOF
6243 rm -f conftest.$ac_objext
6244 if { (ac_try="$ac_compile"
6245 case "(($ac_try" in
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6248 esac
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_compile") 2>conftest.er1
6251 ac_status=$?
6252 grep -v '^ *+' conftest.er1 >conftest.err
6253 rm -f conftest.er1
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } && {
6257 test -z "$ac_c_werror_flag" ||
6258 test ! -s conftest.err
6259 } && test -s conftest.$ac_objext; then
6260 emacs_alsa_subdir=yes
6261 else
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6264
6265 emacs_alsa_subdir=no
6266 fi
6267
6268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6269 if test "$emacs_alsa_subdir" != yes; then
6270 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6271 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6272 { (exit 1); exit 1; }; }
6273 fi
6274 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6275 fi
6276
6277 CFLAGS="$SAVE_CFLAGS"
6278 LDFLAGS="$SAVE_LDFLAGS"
6279 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6280 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6281
6282 cat >>confdefs.h <<\_ACEOF
6283 #define HAVE_ALSA 1
6284 _ACEOF
6285
6286 fi
6287
6288 fi
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6316 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6317 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6318 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6319 sys/utsname.h pwd.h
6320 do
6321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 fi
6328 ac_res=`eval echo '${'$as_ac_Header'}'`
6329 { echo "$as_me:$LINENO: result: $ac_res" >&5
6330 echo "${ECHO_T}$ac_res" >&6; }
6331 else
6332 # Is the header compilable?
6333 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6335 cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h. */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 $ac_includes_default
6342 #include <$ac_header>
6343 _ACEOF
6344 rm -f conftest.$ac_objext
6345 if { (ac_try="$ac_compile"
6346 case "(($ac_try" in
6347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6349 esac
6350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351 (eval "$ac_compile") 2>conftest.er1
6352 ac_status=$?
6353 grep -v '^ *+' conftest.er1 >conftest.err
6354 rm -f conftest.er1
6355 cat conftest.err >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } && {
6358 test -z "$ac_c_werror_flag" ||
6359 test ! -s conftest.err
6360 } && test -s conftest.$ac_objext; then
6361 ac_header_compiler=yes
6362 else
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6365
6366 ac_header_compiler=no
6367 fi
6368
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6371 echo "${ECHO_T}$ac_header_compiler" >&6; }
6372
6373 # Is the header present?
6374 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6376 cat >conftest.$ac_ext <<_ACEOF
6377 /* confdefs.h. */
6378 _ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6382 #include <$ac_header>
6383 _ACEOF
6384 if { (ac_try="$ac_cpp conftest.$ac_ext"
6385 case "(($ac_try" in
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6388 esac
6389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6391 ac_status=$?
6392 grep -v '^ *+' conftest.er1 >conftest.err
6393 rm -f conftest.er1
6394 cat conftest.err >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } >/dev/null && {
6397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6398 test ! -s conftest.err
6399 }; then
6400 ac_header_preproc=yes
6401 else
6402 echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6404
6405 ac_header_preproc=no
6406 fi
6407
6408 rm -f conftest.err conftest.$ac_ext
6409 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6410 echo "${ECHO_T}$ac_header_preproc" >&6; }
6411
6412 # So? What about this header?
6413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6414 yes:no: )
6415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6419 ac_header_preproc=yes
6420 ;;
6421 no:yes:* )
6422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6425 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6429 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6434
6435 ;;
6436 esac
6437 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6441 else
6442 eval "$as_ac_Header=\$ac_header_preproc"
6443 fi
6444 ac_res=`eval echo '${'$as_ac_Header'}'`
6445 { echo "$as_me:$LINENO: result: $ac_res" >&5
6446 echo "${ECHO_T}$ac_res" >&6; }
6447
6448 fi
6449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6450 cat >>confdefs.h <<_ACEOF
6451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6452 _ACEOF
6453
6454 fi
6455
6456 done
6457
6458
6459 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6460 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6461 cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h. */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6467 #include <sys/personality.h>
6468 int
6469 main ()
6470 {
6471 personality (PER_LINUX32)
6472 ;
6473 return 0;
6474 }
6475 _ACEOF
6476 rm -f conftest.$ac_objext
6477 if { (ac_try="$ac_compile"
6478 case "(($ac_try" in
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6481 esac
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_compile") 2>conftest.er1
6484 ac_status=$?
6485 grep -v '^ *+' conftest.er1 >conftest.err
6486 rm -f conftest.er1
6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } && {
6490 test -z "$ac_c_werror_flag" ||
6491 test ! -s conftest.err
6492 } && test -s conftest.$ac_objext; then
6493 emacs_cv_personality_linux32=yes
6494 else
6495 echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6497
6498 emacs_cv_personality_linux32=no
6499 fi
6500
6501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6503 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6504
6505 if test $emacs_cv_personality_linux32 = yes; then
6506
6507 cat >>confdefs.h <<\_ACEOF
6508 #define HAVE_PERSONALITY_LINUX32 1
6509 _ACEOF
6510
6511 fi
6512
6513
6514 for ac_header in term.h
6515 do
6516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522 cat >conftest.$ac_ext <<_ACEOF
6523 /* confdefs.h. */
6524 _ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6528 #include <$ac_header>
6529 _ACEOF
6530 if { (ac_try="$ac_cpp conftest.$ac_ext"
6531 case "(($ac_try" in
6532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533 *) ac_try_echo=$ac_try;;
6534 esac
6535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6537 ac_status=$?
6538 grep -v '^ *+' conftest.er1 >conftest.err
6539 rm -f conftest.er1
6540 cat conftest.err >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } >/dev/null && {
6543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6544 test ! -s conftest.err
6545 }; then
6546 eval "$as_ac_Header=yes"
6547 else
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6550
6551 eval "$as_ac_Header=no"
6552 fi
6553
6554 rm -f conftest.err conftest.$ac_ext
6555 fi
6556 ac_res=`eval echo '${'$as_ac_Header'}'`
6557 { echo "$as_me:$LINENO: result: $ac_res" >&5
6558 echo "${ECHO_T}$ac_res" >&6; }
6559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6560 cat >>confdefs.h <<_ACEOF
6561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6562 _ACEOF
6563
6564 fi
6565
6566 done
6567
6568 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6569 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6570 if test "${ac_cv_header_stdc+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 else
6573 cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h. */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6579 #include <stdlib.h>
6580 #include <stdarg.h>
6581 #include <string.h>
6582 #include <float.h>
6583
6584 int
6585 main ()
6586 {
6587
6588 ;
6589 return 0;
6590 }
6591 _ACEOF
6592 rm -f conftest.$ac_objext
6593 if { (ac_try="$ac_compile"
6594 case "(($ac_try" in
6595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596 *) ac_try_echo=$ac_try;;
6597 esac
6598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599 (eval "$ac_compile") 2>conftest.er1
6600 ac_status=$?
6601 grep -v '^ *+' conftest.er1 >conftest.err
6602 rm -f conftest.er1
6603 cat conftest.err >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } && {
6606 test -z "$ac_c_werror_flag" ||
6607 test ! -s conftest.err
6608 } && test -s conftest.$ac_objext; then
6609 ac_cv_header_stdc=yes
6610 else
6611 echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6613
6614 ac_cv_header_stdc=no
6615 fi
6616
6617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618
6619 if test $ac_cv_header_stdc = yes; then
6620 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6621 cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h. */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 #include <string.h>
6628
6629 _ACEOF
6630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6631 $EGREP "memchr" >/dev/null 2>&1; then
6632 :
6633 else
6634 ac_cv_header_stdc=no
6635 fi
6636 rm -f conftest*
6637
6638 fi
6639
6640 if test $ac_cv_header_stdc = yes; then
6641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6642 cat >conftest.$ac_ext <<_ACEOF
6643 /* confdefs.h. */
6644 _ACEOF
6645 cat confdefs.h >>conftest.$ac_ext
6646 cat >>conftest.$ac_ext <<_ACEOF
6647 /* end confdefs.h. */
6648 #include <stdlib.h>
6649
6650 _ACEOF
6651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6652 $EGREP "free" >/dev/null 2>&1; then
6653 :
6654 else
6655 ac_cv_header_stdc=no
6656 fi
6657 rm -f conftest*
6658
6659 fi
6660
6661 if test $ac_cv_header_stdc = yes; then
6662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6663 if test "$cross_compiling" = yes; then
6664 :
6665 else
6666 cat >conftest.$ac_ext <<_ACEOF
6667 /* confdefs.h. */
6668 _ACEOF
6669 cat confdefs.h >>conftest.$ac_ext
6670 cat >>conftest.$ac_ext <<_ACEOF
6671 /* end confdefs.h. */
6672 #include <ctype.h>
6673 #include <stdlib.h>
6674 #if ((' ' & 0x0FF) == 0x020)
6675 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6676 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6677 #else
6678 # define ISLOWER(c) \
6679 (('a' <= (c) && (c) <= 'i') \
6680 || ('j' <= (c) && (c) <= 'r') \
6681 || ('s' <= (c) && (c) <= 'z'))
6682 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6683 #endif
6684
6685 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6686 int
6687 main ()
6688 {
6689 int i;
6690 for (i = 0; i < 256; i++)
6691 if (XOR (islower (i), ISLOWER (i))
6692 || toupper (i) != TOUPPER (i))
6693 return 2;
6694 return 0;
6695 }
6696 _ACEOF
6697 rm -f conftest$ac_exeext
6698 if { (ac_try="$ac_link"
6699 case "(($ac_try" in
6700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701 *) ac_try_echo=$ac_try;;
6702 esac
6703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704 (eval "$ac_link") 2>&5
6705 ac_status=$?
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6708 { (case "(($ac_try" in
6709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6710 *) ac_try_echo=$ac_try;;
6711 esac
6712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6713 (eval "$ac_try") 2>&5
6714 ac_status=$?
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; }; then
6717 :
6718 else
6719 echo "$as_me: program exited with status $ac_status" >&5
6720 echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6722
6723 ( exit $ac_status )
6724 ac_cv_header_stdc=no
6725 fi
6726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6727 fi
6728
6729
6730 fi
6731 fi
6732 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6733 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6734 if test $ac_cv_header_stdc = yes; then
6735
6736 cat >>confdefs.h <<\_ACEOF
6737 #define STDC_HEADERS 1
6738 _ACEOF
6739
6740 fi
6741
6742 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6743 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6744 if test "${ac_cv_header_time+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747 cat >conftest.$ac_ext <<_ACEOF
6748 /* confdefs.h. */
6749 _ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6753 #include <sys/types.h>
6754 #include <sys/time.h>
6755 #include <time.h>
6756
6757 int
6758 main ()
6759 {
6760 if ((struct tm *) 0)
6761 return 0;
6762 ;
6763 return 0;
6764 }
6765 _ACEOF
6766 rm -f conftest.$ac_objext
6767 if { (ac_try="$ac_compile"
6768 case "(($ac_try" in
6769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6770 *) ac_try_echo=$ac_try;;
6771 esac
6772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6773 (eval "$ac_compile") 2>conftest.er1
6774 ac_status=$?
6775 grep -v '^ *+' conftest.er1 >conftest.err
6776 rm -f conftest.er1
6777 cat conftest.err >&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } && {
6780 test -z "$ac_c_werror_flag" ||
6781 test ! -s conftest.err
6782 } && test -s conftest.$ac_objext; then
6783 ac_cv_header_time=yes
6784 else
6785 echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.$ac_ext >&5
6787
6788 ac_cv_header_time=no
6789 fi
6790
6791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6792 fi
6793 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6794 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6795 if test $ac_cv_header_time = yes; then
6796
6797 cat >>confdefs.h <<\_ACEOF
6798 #define TIME_WITH_SYS_TIME 1
6799 _ACEOF
6800
6801 fi
6802
6803 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6804 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6805 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 else
6808 cat >conftest.$ac_ext <<_ACEOF
6809 /* confdefs.h. */
6810 _ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6814 $ac_includes_default
6815 int
6816 main ()
6817 {
6818 #ifndef sys_siglist
6819 (void) sys_siglist;
6820 #endif
6821
6822 ;
6823 return 0;
6824 }
6825 _ACEOF
6826 rm -f conftest.$ac_objext
6827 if { (ac_try="$ac_compile"
6828 case "(($ac_try" in
6829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6830 *) ac_try_echo=$ac_try;;
6831 esac
6832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6833 (eval "$ac_compile") 2>conftest.er1
6834 ac_status=$?
6835 grep -v '^ *+' conftest.er1 >conftest.err
6836 rm -f conftest.er1
6837 cat conftest.err >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } && {
6840 test -z "$ac_c_werror_flag" ||
6841 test ! -s conftest.err
6842 } && test -s conftest.$ac_objext; then
6843 ac_cv_have_decl_sys_siglist=yes
6844 else
6845 echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.$ac_ext >&5
6847
6848 ac_cv_have_decl_sys_siglist=no
6849 fi
6850
6851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6852 fi
6853 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6854 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6855 if test $ac_cv_have_decl_sys_siglist = yes; then
6856
6857 cat >>confdefs.h <<_ACEOF
6858 #define HAVE_DECL_SYS_SIGLIST 1
6859 _ACEOF
6860
6861
6862 else
6863 cat >>confdefs.h <<_ACEOF
6864 #define HAVE_DECL_SYS_SIGLIST 0
6865 _ACEOF
6866
6867
6868 fi
6869
6870
6871 if test $ac_cv_have_decl_sys_siglist != yes; then
6872 # For Tru64, at least:
6873 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6874 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6875 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878 cat >conftest.$ac_ext <<_ACEOF
6879 /* confdefs.h. */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 $ac_includes_default
6885 int
6886 main ()
6887 {
6888 #ifndef __sys_siglist
6889 (void) __sys_siglist;
6890 #endif
6891
6892 ;
6893 return 0;
6894 }
6895 _ACEOF
6896 rm -f conftest.$ac_objext
6897 if { (ac_try="$ac_compile"
6898 case "(($ac_try" in
6899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6900 *) ac_try_echo=$ac_try;;
6901 esac
6902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6903 (eval "$ac_compile") 2>conftest.er1
6904 ac_status=$?
6905 grep -v '^ *+' conftest.er1 >conftest.err
6906 rm -f conftest.er1
6907 cat conftest.err >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } && {
6910 test -z "$ac_c_werror_flag" ||
6911 test ! -s conftest.err
6912 } && test -s conftest.$ac_objext; then
6913 ac_cv_have_decl___sys_siglist=yes
6914 else
6915 echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6917
6918 ac_cv_have_decl___sys_siglist=no
6919 fi
6920
6921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6922 fi
6923 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6924 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6925 if test $ac_cv_have_decl___sys_siglist = yes; then
6926
6927 cat >>confdefs.h <<_ACEOF
6928 #define HAVE_DECL___SYS_SIGLIST 1
6929 _ACEOF
6930
6931
6932 else
6933 cat >>confdefs.h <<_ACEOF
6934 #define HAVE_DECL___SYS_SIGLIST 0
6935 _ACEOF
6936
6937
6938 fi
6939
6940
6941 if test $ac_cv_have_decl___sys_siglist = yes; then
6942
6943 cat >>confdefs.h <<\_ACEOF
6944 #define sys_siglist __sys_siglist
6945 _ACEOF
6946
6947 fi
6948 fi
6949 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6950 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6951 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954 cat >conftest.$ac_ext <<_ACEOF
6955 /* confdefs.h. */
6956 _ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6960 #include <sys/types.h>
6961 #include <sys/wait.h>
6962 #ifndef WEXITSTATUS
6963 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6964 #endif
6965 #ifndef WIFEXITED
6966 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6967 #endif
6968
6969 int
6970 main ()
6971 {
6972 int s;
6973 wait (&s);
6974 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6975 ;
6976 return 0;
6977 }
6978 _ACEOF
6979 rm -f conftest.$ac_objext
6980 if { (ac_try="$ac_compile"
6981 case "(($ac_try" in
6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6984 esac
6985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986 (eval "$ac_compile") 2>conftest.er1
6987 ac_status=$?
6988 grep -v '^ *+' conftest.er1 >conftest.err
6989 rm -f conftest.er1
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } && {
6993 test -z "$ac_c_werror_flag" ||
6994 test ! -s conftest.err
6995 } && test -s conftest.$ac_objext; then
6996 ac_cv_header_sys_wait_h=yes
6997 else
6998 echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7000
7001 ac_cv_header_sys_wait_h=no
7002 fi
7003
7004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005 fi
7006 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7007 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7008 if test $ac_cv_header_sys_wait_h = yes; then
7009
7010 cat >>confdefs.h <<\_ACEOF
7011 #define HAVE_SYS_WAIT_H 1
7012 _ACEOF
7013
7014 fi
7015
7016
7017 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7018 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7019 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022 cat >conftest.$ac_ext <<_ACEOF
7023 /* confdefs.h. */
7024 _ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 #ifdef TIME_WITH_SYS_TIME
7029 #include <sys/time.h>
7030 #include <time.h>
7031 #else
7032 #ifdef HAVE_SYS_TIME_H
7033 #include <sys/time.h>
7034 #else
7035 #include <time.h>
7036 #endif
7037 #endif
7038 #ifdef HAVE_UTIME_H
7039 #include <utime.h>
7040 #endif
7041 int
7042 main ()
7043 {
7044 static struct utimbuf x; x.actime = x.modtime;
7045 ;
7046 return 0;
7047 }
7048 _ACEOF
7049 rm -f conftest.$ac_objext
7050 if { (ac_try="$ac_compile"
7051 case "(($ac_try" in
7052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7053 *) ac_try_echo=$ac_try;;
7054 esac
7055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7056 (eval "$ac_compile") 2>conftest.er1
7057 ac_status=$?
7058 grep -v '^ *+' conftest.er1 >conftest.err
7059 rm -f conftest.er1
7060 cat conftest.err >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } && {
7063 test -z "$ac_c_werror_flag" ||
7064 test ! -s conftest.err
7065 } && test -s conftest.$ac_objext; then
7066 emacs_cv_struct_utimbuf=yes
7067 else
7068 echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.$ac_ext >&5
7070
7071 emacs_cv_struct_utimbuf=no
7072 fi
7073
7074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7075 fi
7076 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7077 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7078 if test $emacs_cv_struct_utimbuf = yes; then
7079
7080 cat >>confdefs.h <<\_ACEOF
7081 #define HAVE_STRUCT_UTIMBUF 1
7082 _ACEOF
7083
7084 fi
7085
7086 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7087 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7088 if test "${ac_cv_type_signal+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 else
7091 cat >conftest.$ac_ext <<_ACEOF
7092 /* confdefs.h. */
7093 _ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7097 #include <sys/types.h>
7098 #include <signal.h>
7099
7100 int
7101 main ()
7102 {
7103 return *(signal (0, 0)) (0) == 1;
7104 ;
7105 return 0;
7106 }
7107 _ACEOF
7108 rm -f conftest.$ac_objext
7109 if { (ac_try="$ac_compile"
7110 case "(($ac_try" in
7111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7112 *) ac_try_echo=$ac_try;;
7113 esac
7114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7115 (eval "$ac_compile") 2>conftest.er1
7116 ac_status=$?
7117 grep -v '^ *+' conftest.er1 >conftest.err
7118 rm -f conftest.er1
7119 cat conftest.err >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } && {
7122 test -z "$ac_c_werror_flag" ||
7123 test ! -s conftest.err
7124 } && test -s conftest.$ac_objext; then
7125 ac_cv_type_signal=int
7126 else
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7129
7130 ac_cv_type_signal=void
7131 fi
7132
7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134 fi
7135 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7136 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7137
7138 cat >>confdefs.h <<_ACEOF
7139 #define RETSIGTYPE $ac_cv_type_signal
7140 _ACEOF
7141
7142
7143
7144 { echo "$as_me:$LINENO: checking for speed_t" >&5
7145 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7146 if test "${emacs_cv_speed_t+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 else
7149 cat >conftest.$ac_ext <<_ACEOF
7150 /* confdefs.h. */
7151 _ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7155 #include <termios.h>
7156 int
7157 main ()
7158 {
7159 speed_t x = 1;
7160 ;
7161 return 0;
7162 }
7163 _ACEOF
7164 rm -f conftest.$ac_objext
7165 if { (ac_try="$ac_compile"
7166 case "(($ac_try" in
7167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7168 *) ac_try_echo=$ac_try;;
7169 esac
7170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7171 (eval "$ac_compile") 2>conftest.er1
7172 ac_status=$?
7173 grep -v '^ *+' conftest.er1 >conftest.err
7174 rm -f conftest.er1
7175 cat conftest.err >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } && {
7178 test -z "$ac_c_werror_flag" ||
7179 test ! -s conftest.err
7180 } && test -s conftest.$ac_objext; then
7181 emacs_cv_speed_t=yes
7182 else
7183 echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.$ac_ext >&5
7185
7186 emacs_cv_speed_t=no
7187 fi
7188
7189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7190 fi
7191 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7192 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7193 if test $emacs_cv_speed_t = yes; then
7194
7195 cat >>confdefs.h <<\_ACEOF
7196 #define HAVE_SPEED_T 1
7197 _ACEOF
7198
7199 fi
7200
7201 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7202 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7203 if test "${emacs_cv_struct_timeval+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 else
7206 cat >conftest.$ac_ext <<_ACEOF
7207 /* confdefs.h. */
7208 _ACEOF
7209 cat confdefs.h >>conftest.$ac_ext
7210 cat >>conftest.$ac_ext <<_ACEOF
7211 /* end confdefs.h. */
7212 #ifdef TIME_WITH_SYS_TIME
7213 #include <sys/time.h>
7214 #include <time.h>
7215 #else
7216 #ifdef HAVE_SYS_TIME_H
7217 #include <sys/time.h>
7218 #else
7219 #include <time.h>
7220 #endif
7221 #endif
7222 int
7223 main ()
7224 {
7225 static struct timeval x; x.tv_sec = x.tv_usec;
7226 ;
7227 return 0;
7228 }
7229 _ACEOF
7230 rm -f conftest.$ac_objext
7231 if { (ac_try="$ac_compile"
7232 case "(($ac_try" in
7233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7234 *) ac_try_echo=$ac_try;;
7235 esac
7236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7237 (eval "$ac_compile") 2>conftest.er1
7238 ac_status=$?
7239 grep -v '^ *+' conftest.er1 >conftest.err
7240 rm -f conftest.er1
7241 cat conftest.err >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } && {
7244 test -z "$ac_c_werror_flag" ||
7245 test ! -s conftest.err
7246 } && test -s conftest.$ac_objext; then
7247 emacs_cv_struct_timeval=yes
7248 else
7249 echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.$ac_ext >&5
7251
7252 emacs_cv_struct_timeval=no
7253 fi
7254
7255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7256 fi
7257 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7258 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7259 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7260 if test $emacs_cv_struct_timeval = yes; then
7261
7262 cat >>confdefs.h <<\_ACEOF
7263 #define HAVE_TIMEVAL 1
7264 _ACEOF
7265
7266 fi
7267
7268 { echo "$as_me:$LINENO: checking for struct exception" >&5
7269 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7270 if test "${emacs_cv_struct_exception+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 else
7273 cat >conftest.$ac_ext <<_ACEOF
7274 /* confdefs.h. */
7275 _ACEOF
7276 cat confdefs.h >>conftest.$ac_ext
7277 cat >>conftest.$ac_ext <<_ACEOF
7278 /* end confdefs.h. */
7279 #include <math.h>
7280 int
7281 main ()
7282 {
7283 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7284 ;
7285 return 0;
7286 }
7287 _ACEOF
7288 rm -f conftest.$ac_objext
7289 if { (ac_try="$ac_compile"
7290 case "(($ac_try" in
7291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7292 *) ac_try_echo=$ac_try;;
7293 esac
7294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7295 (eval "$ac_compile") 2>conftest.er1
7296 ac_status=$?
7297 grep -v '^ *+' conftest.er1 >conftest.err
7298 rm -f conftest.er1
7299 cat conftest.err >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); } && {
7302 test -z "$ac_c_werror_flag" ||
7303 test ! -s conftest.err
7304 } && test -s conftest.$ac_objext; then
7305 emacs_cv_struct_exception=yes
7306 else
7307 echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7309
7310 emacs_cv_struct_exception=no
7311 fi
7312
7313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7314 fi
7315 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7316 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7317 HAVE_EXCEPTION=$emacs_cv_struct_exception
7318 if test $emacs_cv_struct_exception != yes; then
7319
7320 cat >>confdefs.h <<\_ACEOF
7321 #define NO_MATHERR 1
7322 _ACEOF
7323
7324 fi
7325
7326
7327 for ac_header in sys/socket.h
7328 do
7329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 fi
7336 ac_res=`eval echo '${'$as_ac_Header'}'`
7337 { echo "$as_me:$LINENO: result: $ac_res" >&5
7338 echo "${ECHO_T}$ac_res" >&6; }
7339 else
7340 # Is the header compilable?
7341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7343 cat >conftest.$ac_ext <<_ACEOF
7344 /* confdefs.h. */
7345 _ACEOF
7346 cat confdefs.h >>conftest.$ac_ext
7347 cat >>conftest.$ac_ext <<_ACEOF
7348 /* end confdefs.h. */
7349 $ac_includes_default
7350 #include <$ac_header>
7351 _ACEOF
7352 rm -f conftest.$ac_objext
7353 if { (ac_try="$ac_compile"
7354 case "(($ac_try" in
7355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356 *) ac_try_echo=$ac_try;;
7357 esac
7358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7359 (eval "$ac_compile") 2>conftest.er1
7360 ac_status=$?
7361 grep -v '^ *+' conftest.er1 >conftest.err
7362 rm -f conftest.er1
7363 cat conftest.err >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } && {
7366 test -z "$ac_c_werror_flag" ||
7367 test ! -s conftest.err
7368 } && test -s conftest.$ac_objext; then
7369 ac_header_compiler=yes
7370 else
7371 echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7373
7374 ac_header_compiler=no
7375 fi
7376
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7379 echo "${ECHO_T}$ac_header_compiler" >&6; }
7380
7381 # Is the header present?
7382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7384 cat >conftest.$ac_ext <<_ACEOF
7385 /* confdefs.h. */
7386 _ACEOF
7387 cat confdefs.h >>conftest.$ac_ext
7388 cat >>conftest.$ac_ext <<_ACEOF
7389 /* end confdefs.h. */
7390 #include <$ac_header>
7391 _ACEOF
7392 if { (ac_try="$ac_cpp conftest.$ac_ext"
7393 case "(($ac_try" in
7394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7395 *) ac_try_echo=$ac_try;;
7396 esac
7397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7399 ac_status=$?
7400 grep -v '^ *+' conftest.er1 >conftest.err
7401 rm -f conftest.er1
7402 cat conftest.err >&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); } >/dev/null && {
7405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7406 test ! -s conftest.err
7407 }; then
7408 ac_header_preproc=yes
7409 else
7410 echo "$as_me: failed program was:" >&5
7411 sed 's/^/| /' conftest.$ac_ext >&5
7412
7413 ac_header_preproc=no
7414 fi
7415
7416 rm -f conftest.err conftest.$ac_ext
7417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7418 echo "${ECHO_T}$ac_header_preproc" >&6; }
7419
7420 # So? What about this header?
7421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7422 yes:no: )
7423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7427 ac_header_preproc=yes
7428 ;;
7429 no:yes:* )
7430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7442
7443 ;;
7444 esac
7445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450 eval "$as_ac_Header=\$ac_header_preproc"
7451 fi
7452 ac_res=`eval echo '${'$as_ac_Header'}'`
7453 { echo "$as_me:$LINENO: result: $ac_res" >&5
7454 echo "${ECHO_T}$ac_res" >&6; }
7455
7456 fi
7457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7458 cat >>confdefs.h <<_ACEOF
7459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7460 _ACEOF
7461
7462 fi
7463
7464 done
7465
7466
7467 for ac_header in net/if.h
7468 do
7469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475 cat >conftest.$ac_ext <<_ACEOF
7476 /* confdefs.h. */
7477 _ACEOF
7478 cat confdefs.h >>conftest.$ac_ext
7479 cat >>conftest.$ac_ext <<_ACEOF
7480 /* end confdefs.h. */
7481 $ac_includes_default
7482 #if HAVE_SYS_SOCKET_H
7483 #include <sys/socket.h>
7484 #endif
7485
7486 #include <$ac_header>
7487 _ACEOF
7488 rm -f conftest.$ac_objext
7489 if { (ac_try="$ac_compile"
7490 case "(($ac_try" in
7491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7492 *) ac_try_echo=$ac_try;;
7493 esac
7494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7495 (eval "$ac_compile") 2>conftest.er1
7496 ac_status=$?
7497 grep -v '^ *+' conftest.er1 >conftest.err
7498 rm -f conftest.er1
7499 cat conftest.err >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } && {
7502 test -z "$ac_c_werror_flag" ||
7503 test ! -s conftest.err
7504 } && test -s conftest.$ac_objext; then
7505 eval "$as_ac_Header=yes"
7506 else
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7509
7510 eval "$as_ac_Header=no"
7511 fi
7512
7513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514 fi
7515 ac_res=`eval echo '${'$as_ac_Header'}'`
7516 { echo "$as_me:$LINENO: result: $ac_res" >&5
7517 echo "${ECHO_T}$ac_res" >&6; }
7518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7519 cat >>confdefs.h <<_ACEOF
7520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7521 _ACEOF
7522
7523 fi
7524
7525 done
7526
7527
7528 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7529 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7530 if test "${ac_cv_struct_tm+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7532 else
7533 cat >conftest.$ac_ext <<_ACEOF
7534 /* confdefs.h. */
7535 _ACEOF
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h. */
7539 #include <sys/types.h>
7540 #include <time.h>
7541
7542 int
7543 main ()
7544 {
7545 struct tm tm;
7546 int *p = &tm.tm_sec;
7547 return !p;
7548 ;
7549 return 0;
7550 }
7551 _ACEOF
7552 rm -f conftest.$ac_objext
7553 if { (ac_try="$ac_compile"
7554 case "(($ac_try" in
7555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556 *) ac_try_echo=$ac_try;;
7557 esac
7558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7559 (eval "$ac_compile") 2>conftest.er1
7560 ac_status=$?
7561 grep -v '^ *+' conftest.er1 >conftest.err
7562 rm -f conftest.er1
7563 cat conftest.err >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } && {
7566 test -z "$ac_c_werror_flag" ||
7567 test ! -s conftest.err
7568 } && test -s conftest.$ac_objext; then
7569 ac_cv_struct_tm=time.h
7570 else
7571 echo "$as_me: failed program was:" >&5
7572 sed 's/^/| /' conftest.$ac_ext >&5
7573
7574 ac_cv_struct_tm=sys/time.h
7575 fi
7576
7577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578 fi
7579 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7580 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7581 if test $ac_cv_struct_tm = sys/time.h; then
7582
7583 cat >>confdefs.h <<\_ACEOF
7584 #define TM_IN_SYS_TIME 1
7585 _ACEOF
7586
7587 fi
7588
7589 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7590 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7591 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 else
7594 cat >conftest.$ac_ext <<_ACEOF
7595 /* confdefs.h. */
7596 _ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h. */
7600 #include <sys/types.h>
7601 #include <$ac_cv_struct_tm>
7602
7603
7604 int
7605 main ()
7606 {
7607 static struct tm ac_aggr;
7608 if (ac_aggr.tm_zone)
7609 return 0;
7610 ;
7611 return 0;
7612 }
7613 _ACEOF
7614 rm -f conftest.$ac_objext
7615 if { (ac_try="$ac_compile"
7616 case "(($ac_try" in
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7619 esac
7620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7621 (eval "$ac_compile") 2>conftest.er1
7622 ac_status=$?
7623 grep -v '^ *+' conftest.er1 >conftest.err
7624 rm -f conftest.er1
7625 cat conftest.err >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); } && {
7628 test -z "$ac_c_werror_flag" ||
7629 test ! -s conftest.err
7630 } && test -s conftest.$ac_objext; then
7631 ac_cv_member_struct_tm_tm_zone=yes
7632 else
7633 echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7635
7636 cat >conftest.$ac_ext <<_ACEOF
7637 /* confdefs.h. */
7638 _ACEOF
7639 cat confdefs.h >>conftest.$ac_ext
7640 cat >>conftest.$ac_ext <<_ACEOF
7641 /* end confdefs.h. */
7642 #include <sys/types.h>
7643 #include <$ac_cv_struct_tm>
7644
7645
7646 int
7647 main ()
7648 {
7649 static struct tm ac_aggr;
7650 if (sizeof ac_aggr.tm_zone)
7651 return 0;
7652 ;
7653 return 0;
7654 }
7655 _ACEOF
7656 rm -f conftest.$ac_objext
7657 if { (ac_try="$ac_compile"
7658 case "(($ac_try" in
7659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7660 *) ac_try_echo=$ac_try;;
7661 esac
7662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7663 (eval "$ac_compile") 2>conftest.er1
7664 ac_status=$?
7665 grep -v '^ *+' conftest.er1 >conftest.err
7666 rm -f conftest.er1
7667 cat conftest.err >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } && {
7670 test -z "$ac_c_werror_flag" ||
7671 test ! -s conftest.err
7672 } && test -s conftest.$ac_objext; then
7673 ac_cv_member_struct_tm_tm_zone=yes
7674 else
7675 echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7677
7678 ac_cv_member_struct_tm_tm_zone=no
7679 fi
7680
7681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682 fi
7683
7684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7685 fi
7686 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7687 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7688 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7689
7690 cat >>confdefs.h <<_ACEOF
7691 #define HAVE_STRUCT_TM_TM_ZONE 1
7692 _ACEOF
7693
7694
7695 fi
7696
7697 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7698
7699 cat >>confdefs.h <<\_ACEOF
7700 #define HAVE_TM_ZONE 1
7701 _ACEOF
7702
7703 else
7704 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7705 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7706 if test "${ac_cv_have_decl_tzname+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709 cat >conftest.$ac_ext <<_ACEOF
7710 /* confdefs.h. */
7711 _ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7715 #include <time.h>
7716
7717 int
7718 main ()
7719 {
7720 #ifndef tzname
7721 (void) tzname;
7722 #endif
7723
7724 ;
7725 return 0;
7726 }
7727 _ACEOF
7728 rm -f conftest.$ac_objext
7729 if { (ac_try="$ac_compile"
7730 case "(($ac_try" in
7731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7733 esac
7734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7735 (eval "$ac_compile") 2>conftest.er1
7736 ac_status=$?
7737 grep -v '^ *+' conftest.er1 >conftest.err
7738 rm -f conftest.er1
7739 cat conftest.err >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); } && {
7742 test -z "$ac_c_werror_flag" ||
7743 test ! -s conftest.err
7744 } && test -s conftest.$ac_objext; then
7745 ac_cv_have_decl_tzname=yes
7746 else
7747 echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.$ac_ext >&5
7749
7750 ac_cv_have_decl_tzname=no
7751 fi
7752
7753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7754 fi
7755 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7756 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7757 if test $ac_cv_have_decl_tzname = yes; then
7758
7759 cat >>confdefs.h <<_ACEOF
7760 #define HAVE_DECL_TZNAME 1
7761 _ACEOF
7762
7763
7764 else
7765 cat >>confdefs.h <<_ACEOF
7766 #define HAVE_DECL_TZNAME 0
7767 _ACEOF
7768
7769
7770 fi
7771
7772
7773 { echo "$as_me:$LINENO: checking for tzname" >&5
7774 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7775 if test "${ac_cv_var_tzname+set}" = set; then
7776 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 else
7778 cat >conftest.$ac_ext <<_ACEOF
7779 /* confdefs.h. */
7780 _ACEOF
7781 cat confdefs.h >>conftest.$ac_ext
7782 cat >>conftest.$ac_ext <<_ACEOF
7783 /* end confdefs.h. */
7784 #include <time.h>
7785 #if !HAVE_DECL_TZNAME
7786 extern char *tzname[];
7787 #endif
7788
7789 int
7790 main ()
7791 {
7792 return tzname[0][0];
7793 ;
7794 return 0;
7795 }
7796 _ACEOF
7797 rm -f conftest.$ac_objext conftest$ac_exeext
7798 if { (ac_try="$ac_link"
7799 case "(($ac_try" in
7800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7801 *) ac_try_echo=$ac_try;;
7802 esac
7803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7804 (eval "$ac_link") 2>conftest.er1
7805 ac_status=$?
7806 grep -v '^ *+' conftest.er1 >conftest.err
7807 rm -f conftest.er1
7808 cat conftest.err >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } && {
7811 test -z "$ac_c_werror_flag" ||
7812 test ! -s conftest.err
7813 } && test -s conftest$ac_exeext &&
7814 $as_test_x conftest$ac_exeext; then
7815 ac_cv_var_tzname=yes
7816 else
7817 echo "$as_me: failed program was:" >&5
7818 sed 's/^/| /' conftest.$ac_ext >&5
7819
7820 ac_cv_var_tzname=no
7821 fi
7822
7823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7824 conftest$ac_exeext conftest.$ac_ext
7825 fi
7826 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7827 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7828 if test $ac_cv_var_tzname = yes; then
7829
7830 cat >>confdefs.h <<\_ACEOF
7831 #define HAVE_TZNAME 1
7832 _ACEOF
7833
7834 fi
7835 fi
7836
7837 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7838 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7839 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 else
7842 cat >conftest.$ac_ext <<_ACEOF
7843 /* confdefs.h. */
7844 _ACEOF
7845 cat confdefs.h >>conftest.$ac_ext
7846 cat >>conftest.$ac_ext <<_ACEOF
7847 /* end confdefs.h. */
7848 #include <time.h>
7849
7850 int
7851 main ()
7852 {
7853 static struct tm ac_aggr;
7854 if (ac_aggr.tm_gmtoff)
7855 return 0;
7856 ;
7857 return 0;
7858 }
7859 _ACEOF
7860 rm -f conftest.$ac_objext
7861 if { (ac_try="$ac_compile"
7862 case "(($ac_try" in
7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7865 esac
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_compile") 2>conftest.er1
7868 ac_status=$?
7869 grep -v '^ *+' conftest.er1 >conftest.err
7870 rm -f conftest.er1
7871 cat conftest.err >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } && {
7874 test -z "$ac_c_werror_flag" ||
7875 test ! -s conftest.err
7876 } && test -s conftest.$ac_objext; then
7877 ac_cv_member_struct_tm_tm_gmtoff=yes
7878 else
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7881
7882 cat >conftest.$ac_ext <<_ACEOF
7883 /* confdefs.h. */
7884 _ACEOF
7885 cat confdefs.h >>conftest.$ac_ext
7886 cat >>conftest.$ac_ext <<_ACEOF
7887 /* end confdefs.h. */
7888 #include <time.h>
7889
7890 int
7891 main ()
7892 {
7893 static struct tm ac_aggr;
7894 if (sizeof ac_aggr.tm_gmtoff)
7895 return 0;
7896 ;
7897 return 0;
7898 }
7899 _ACEOF
7900 rm -f conftest.$ac_objext
7901 if { (ac_try="$ac_compile"
7902 case "(($ac_try" in
7903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7904 *) ac_try_echo=$ac_try;;
7905 esac
7906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7907 (eval "$ac_compile") 2>conftest.er1
7908 ac_status=$?
7909 grep -v '^ *+' conftest.er1 >conftest.err
7910 rm -f conftest.er1
7911 cat conftest.err >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } && {
7914 test -z "$ac_c_werror_flag" ||
7915 test ! -s conftest.err
7916 } && test -s conftest.$ac_objext; then
7917 ac_cv_member_struct_tm_tm_gmtoff=yes
7918 else
7919 echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7921
7922 ac_cv_member_struct_tm_tm_gmtoff=no
7923 fi
7924
7925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7926 fi
7927
7928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7929 fi
7930 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7931 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7932 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7933
7934 cat >>confdefs.h <<\_ACEOF
7935 #define HAVE_TM_GMTOFF 1
7936 _ACEOF
7937
7938 fi
7939
7940 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7941 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7942 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 else
7945 cat >conftest.$ac_ext <<_ACEOF
7946 /* confdefs.h. */
7947 _ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h. */
7951 $ac_includes_default
7952 #if HAVE_SYS_SOCKET_H
7953 #include <sys/socket.h>
7954 #endif
7955 #if HAVE_NET_IF_H
7956 #include <net/if.h>
7957 #endif
7958
7959 int
7960 main ()
7961 {
7962 static struct ifreq ac_aggr;
7963 if (ac_aggr.ifr_flags)
7964 return 0;
7965 ;
7966 return 0;
7967 }
7968 _ACEOF
7969 rm -f conftest.$ac_objext
7970 if { (ac_try="$ac_compile"
7971 case "(($ac_try" in
7972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973 *) ac_try_echo=$ac_try;;
7974 esac
7975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7976 (eval "$ac_compile") 2>conftest.er1
7977 ac_status=$?
7978 grep -v '^ *+' conftest.er1 >conftest.err
7979 rm -f conftest.er1
7980 cat conftest.err >&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); } && {
7983 test -z "$ac_c_werror_flag" ||
7984 test ! -s conftest.err
7985 } && test -s conftest.$ac_objext; then
7986 ac_cv_member_struct_ifreq_ifr_flags=yes
7987 else
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7990
7991 cat >conftest.$ac_ext <<_ACEOF
7992 /* confdefs.h. */
7993 _ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
7997 $ac_includes_default
7998 #if HAVE_SYS_SOCKET_H
7999 #include <sys/socket.h>
8000 #endif
8001 #if HAVE_NET_IF_H
8002 #include <net/if.h>
8003 #endif
8004
8005 int
8006 main ()
8007 {
8008 static struct ifreq ac_aggr;
8009 if (sizeof ac_aggr.ifr_flags)
8010 return 0;
8011 ;
8012 return 0;
8013 }
8014 _ACEOF
8015 rm -f conftest.$ac_objext
8016 if { (ac_try="$ac_compile"
8017 case "(($ac_try" in
8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8020 esac
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022 (eval "$ac_compile") 2>conftest.er1
8023 ac_status=$?
8024 grep -v '^ *+' conftest.er1 >conftest.err
8025 rm -f conftest.er1
8026 cat conftest.err >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } && {
8029 test -z "$ac_c_werror_flag" ||
8030 test ! -s conftest.err
8031 } && test -s conftest.$ac_objext; then
8032 ac_cv_member_struct_ifreq_ifr_flags=yes
8033 else
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8036
8037 ac_cv_member_struct_ifreq_ifr_flags=no
8038 fi
8039
8040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8041 fi
8042
8043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044 fi
8045 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8046 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8047 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8048
8049 cat >>confdefs.h <<_ACEOF
8050 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8051 _ACEOF
8052
8053
8054 fi
8055 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8056 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8057 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
8059 else
8060 cat >conftest.$ac_ext <<_ACEOF
8061 /* confdefs.h. */
8062 _ACEOF
8063 cat confdefs.h >>conftest.$ac_ext
8064 cat >>conftest.$ac_ext <<_ACEOF
8065 /* end confdefs.h. */
8066 $ac_includes_default
8067 #if HAVE_SYS_SOCKET_H
8068 #include <sys/socket.h>
8069 #endif
8070 #if HAVE_NET_IF_H
8071 #include <net/if.h>
8072 #endif
8073
8074 int
8075 main ()
8076 {
8077 static struct ifreq ac_aggr;
8078 if (ac_aggr.ifr_hwaddr)
8079 return 0;
8080 ;
8081 return 0;
8082 }
8083 _ACEOF
8084 rm -f conftest.$ac_objext
8085 if { (ac_try="$ac_compile"
8086 case "(($ac_try" in
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8089 esac
8090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091 (eval "$ac_compile") 2>conftest.er1
8092 ac_status=$?
8093 grep -v '^ *+' conftest.er1 >conftest.err
8094 rm -f conftest.er1
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } && {
8098 test -z "$ac_c_werror_flag" ||
8099 test ! -s conftest.err
8100 } && test -s conftest.$ac_objext; then
8101 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8102 else
8103 echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8105
8106 cat >conftest.$ac_ext <<_ACEOF
8107 /* confdefs.h. */
8108 _ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h. */
8112 $ac_includes_default
8113 #if HAVE_SYS_SOCKET_H
8114 #include <sys/socket.h>
8115 #endif
8116 #if HAVE_NET_IF_H
8117 #include <net/if.h>
8118 #endif
8119
8120 int
8121 main ()
8122 {
8123 static struct ifreq ac_aggr;
8124 if (sizeof ac_aggr.ifr_hwaddr)
8125 return 0;
8126 ;
8127 return 0;
8128 }
8129 _ACEOF
8130 rm -f conftest.$ac_objext
8131 if { (ac_try="$ac_compile"
8132 case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8135 esac
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_compile") 2>conftest.er1
8138 ac_status=$?
8139 grep -v '^ *+' conftest.er1 >conftest.err
8140 rm -f conftest.er1
8141 cat conftest.err >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } && {
8144 test -z "$ac_c_werror_flag" ||
8145 test ! -s conftest.err
8146 } && test -s conftest.$ac_objext; then
8147 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8148 else
8149 echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8151
8152 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8153 fi
8154
8155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8156 fi
8157
8158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8159 fi
8160 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8161 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8162 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8163
8164 cat >>confdefs.h <<_ACEOF
8165 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8166 _ACEOF
8167
8168
8169 fi
8170 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8171 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8172 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8174 else
8175 cat >conftest.$ac_ext <<_ACEOF
8176 /* confdefs.h. */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8181 $ac_includes_default
8182 #if HAVE_SYS_SOCKET_H
8183 #include <sys/socket.h>
8184 #endif
8185 #if HAVE_NET_IF_H
8186 #include <net/if.h>
8187 #endif
8188
8189 int
8190 main ()
8191 {
8192 static struct ifreq ac_aggr;
8193 if (ac_aggr.ifr_netmask)
8194 return 0;
8195 ;
8196 return 0;
8197 }
8198 _ACEOF
8199 rm -f conftest.$ac_objext
8200 if { (ac_try="$ac_compile"
8201 case "(($ac_try" in
8202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203 *) ac_try_echo=$ac_try;;
8204 esac
8205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8206 (eval "$ac_compile") 2>conftest.er1
8207 ac_status=$?
8208 grep -v '^ *+' conftest.er1 >conftest.err
8209 rm -f conftest.er1
8210 cat conftest.err >&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); } && {
8213 test -z "$ac_c_werror_flag" ||
8214 test ! -s conftest.err
8215 } && test -s conftest.$ac_objext; then
8216 ac_cv_member_struct_ifreq_ifr_netmask=yes
8217 else
8218 echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.$ac_ext >&5
8220
8221 cat >conftest.$ac_ext <<_ACEOF
8222 /* confdefs.h. */
8223 _ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8227 $ac_includes_default
8228 #if HAVE_SYS_SOCKET_H
8229 #include <sys/socket.h>
8230 #endif
8231 #if HAVE_NET_IF_H
8232 #include <net/if.h>
8233 #endif
8234
8235 int
8236 main ()
8237 {
8238 static struct ifreq ac_aggr;
8239 if (sizeof ac_aggr.ifr_netmask)
8240 return 0;
8241 ;
8242 return 0;
8243 }
8244 _ACEOF
8245 rm -f conftest.$ac_objext
8246 if { (ac_try="$ac_compile"
8247 case "(($ac_try" in
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8250 esac
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_compile") 2>conftest.er1
8253 ac_status=$?
8254 grep -v '^ *+' conftest.er1 >conftest.err
8255 rm -f conftest.er1
8256 cat conftest.err >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } && {
8259 test -z "$ac_c_werror_flag" ||
8260 test ! -s conftest.err
8261 } && test -s conftest.$ac_objext; then
8262 ac_cv_member_struct_ifreq_ifr_netmask=yes
8263 else
8264 echo "$as_me: failed program was:" >&5
8265 sed 's/^/| /' conftest.$ac_ext >&5
8266
8267 ac_cv_member_struct_ifreq_ifr_netmask=no
8268 fi
8269
8270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8271 fi
8272
8273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274 fi
8275 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8276 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8277 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8278
8279 cat >>confdefs.h <<_ACEOF
8280 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8281 _ACEOF
8282
8283
8284 fi
8285 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8286 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8287 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8289 else
8290 cat >conftest.$ac_ext <<_ACEOF
8291 /* confdefs.h. */
8292 _ACEOF
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h. */
8296 $ac_includes_default
8297 #if HAVE_SYS_SOCKET_H
8298 #include <sys/socket.h>
8299 #endif
8300 #if HAVE_NET_IF_H
8301 #include <net/if.h>
8302 #endif
8303
8304 int
8305 main ()
8306 {
8307 static struct ifreq ac_aggr;
8308 if (ac_aggr.ifr_broadaddr)
8309 return 0;
8310 ;
8311 return 0;
8312 }
8313 _ACEOF
8314 rm -f conftest.$ac_objext
8315 if { (ac_try="$ac_compile"
8316 case "(($ac_try" in
8317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318 *) ac_try_echo=$ac_try;;
8319 esac
8320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321 (eval "$ac_compile") 2>conftest.er1
8322 ac_status=$?
8323 grep -v '^ *+' conftest.er1 >conftest.err
8324 rm -f conftest.er1
8325 cat conftest.err >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } && {
8328 test -z "$ac_c_werror_flag" ||
8329 test ! -s conftest.err
8330 } && test -s conftest.$ac_objext; then
8331 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8332 else
8333 echo "$as_me: failed program was:" >&5
8334 sed 's/^/| /' conftest.$ac_ext >&5
8335
8336 cat >conftest.$ac_ext <<_ACEOF
8337 /* confdefs.h. */
8338 _ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h. */
8342 $ac_includes_default
8343 #if HAVE_SYS_SOCKET_H
8344 #include <sys/socket.h>
8345 #endif
8346 #if HAVE_NET_IF_H
8347 #include <net/if.h>
8348 #endif
8349
8350 int
8351 main ()
8352 {
8353 static struct ifreq ac_aggr;
8354 if (sizeof ac_aggr.ifr_broadaddr)
8355 return 0;
8356 ;
8357 return 0;
8358 }
8359 _ACEOF
8360 rm -f conftest.$ac_objext
8361 if { (ac_try="$ac_compile"
8362 case "(($ac_try" in
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8365 esac
8366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367 (eval "$ac_compile") 2>conftest.er1
8368 ac_status=$?
8369 grep -v '^ *+' conftest.er1 >conftest.err
8370 rm -f conftest.er1
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } && {
8374 test -z "$ac_c_werror_flag" ||
8375 test ! -s conftest.err
8376 } && test -s conftest.$ac_objext; then
8377 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8378 else
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8381
8382 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8383 fi
8384
8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386 fi
8387
8388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8389 fi
8390 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8391 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8392 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8393
8394 cat >>confdefs.h <<_ACEOF
8395 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8396 _ACEOF
8397
8398
8399 fi
8400 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8401 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8402 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 else
8405 cat >conftest.$ac_ext <<_ACEOF
8406 /* confdefs.h. */
8407 _ACEOF
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h. */
8411 $ac_includes_default
8412 #if HAVE_SYS_SOCKET_H
8413 #include <sys/socket.h>
8414 #endif
8415 #if HAVE_NET_IF_H
8416 #include <net/if.h>
8417 #endif
8418
8419 int
8420 main ()
8421 {
8422 static struct ifreq ac_aggr;
8423 if (ac_aggr.ifr_addr)
8424 return 0;
8425 ;
8426 return 0;
8427 }
8428 _ACEOF
8429 rm -f conftest.$ac_objext
8430 if { (ac_try="$ac_compile"
8431 case "(($ac_try" in
8432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8433 *) ac_try_echo=$ac_try;;
8434 esac
8435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8436 (eval "$ac_compile") 2>conftest.er1
8437 ac_status=$?
8438 grep -v '^ *+' conftest.er1 >conftest.err
8439 rm -f conftest.er1
8440 cat conftest.err >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } && {
8443 test -z "$ac_c_werror_flag" ||
8444 test ! -s conftest.err
8445 } && test -s conftest.$ac_objext; then
8446 ac_cv_member_struct_ifreq_ifr_addr=yes
8447 else
8448 echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.$ac_ext >&5
8450
8451 cat >conftest.$ac_ext <<_ACEOF
8452 /* confdefs.h. */
8453 _ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8457 $ac_includes_default
8458 #if HAVE_SYS_SOCKET_H
8459 #include <sys/socket.h>
8460 #endif
8461 #if HAVE_NET_IF_H
8462 #include <net/if.h>
8463 #endif
8464
8465 int
8466 main ()
8467 {
8468 static struct ifreq ac_aggr;
8469 if (sizeof ac_aggr.ifr_addr)
8470 return 0;
8471 ;
8472 return 0;
8473 }
8474 _ACEOF
8475 rm -f conftest.$ac_objext
8476 if { (ac_try="$ac_compile"
8477 case "(($ac_try" in
8478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8479 *) ac_try_echo=$ac_try;;
8480 esac
8481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8482 (eval "$ac_compile") 2>conftest.er1
8483 ac_status=$?
8484 grep -v '^ *+' conftest.er1 >conftest.err
8485 rm -f conftest.er1
8486 cat conftest.err >&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } && {
8489 test -z "$ac_c_werror_flag" ||
8490 test ! -s conftest.err
8491 } && test -s conftest.$ac_objext; then
8492 ac_cv_member_struct_ifreq_ifr_addr=yes
8493 else
8494 echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.$ac_ext >&5
8496
8497 ac_cv_member_struct_ifreq_ifr_addr=no
8498 fi
8499
8500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8501 fi
8502
8503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8504 fi
8505 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8506 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8507 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8508
8509 cat >>confdefs.h <<_ACEOF
8510 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8511 _ACEOF
8512
8513
8514 fi
8515
8516
8517
8518 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8519 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8520 if test "$ac_cv_prog_cc_c89" != no; then
8521 { echo "$as_me:$LINENO: result: yes" >&5
8522 echo "${ECHO_T}yes" >&6; }
8523
8524 cat >>confdefs.h <<\_ACEOF
8525 #define PROTOTYPES 1
8526 _ACEOF
8527
8528
8529 cat >>confdefs.h <<\_ACEOF
8530 #define __PROTOTYPES 1
8531 _ACEOF
8532
8533 else
8534 { echo "$as_me:$LINENO: result: no" >&5
8535 echo "${ECHO_T}no" >&6; }
8536 fi
8537
8538 { echo "$as_me:$LINENO: checking for working volatile" >&5
8539 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8540 if test "${ac_cv_c_volatile+set}" = set; then
8541 echo $ECHO_N "(cached) $ECHO_C" >&6
8542 else
8543 cat >conftest.$ac_ext <<_ACEOF
8544 /* confdefs.h. */
8545 _ACEOF
8546 cat confdefs.h >>conftest.$ac_ext
8547 cat >>conftest.$ac_ext <<_ACEOF
8548 /* end confdefs.h. */
8549
8550 int
8551 main ()
8552 {
8553
8554 volatile int x;
8555 int * volatile y = (int *) 0;
8556 return !x && !y;
8557 ;
8558 return 0;
8559 }
8560 _ACEOF
8561 rm -f conftest.$ac_objext
8562 if { (ac_try="$ac_compile"
8563 case "(($ac_try" in
8564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565 *) ac_try_echo=$ac_try;;
8566 esac
8567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8568 (eval "$ac_compile") 2>conftest.er1
8569 ac_status=$?
8570 grep -v '^ *+' conftest.er1 >conftest.err
8571 rm -f conftest.er1
8572 cat conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } && {
8575 test -z "$ac_c_werror_flag" ||
8576 test ! -s conftest.err
8577 } && test -s conftest.$ac_objext; then
8578 ac_cv_c_volatile=yes
8579 else
8580 echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8582
8583 ac_cv_c_volatile=no
8584 fi
8585
8586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587 fi
8588 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8589 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8590 if test $ac_cv_c_volatile = no; then
8591
8592 cat >>confdefs.h <<\_ACEOF
8593 #define volatile
8594 _ACEOF
8595
8596 fi
8597
8598 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8599 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8600 if test "${ac_cv_c_const+set}" = set; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8602 else
8603 cat >conftest.$ac_ext <<_ACEOF
8604 /* confdefs.h. */
8605 _ACEOF
8606 cat confdefs.h >>conftest.$ac_ext
8607 cat >>conftest.$ac_ext <<_ACEOF
8608 /* end confdefs.h. */
8609
8610 int
8611 main ()
8612 {
8613 /* FIXME: Include the comments suggested by Paul. */
8614 #ifndef __cplusplus
8615 /* Ultrix mips cc rejects this. */
8616 typedef int charset[2];
8617 const charset cs;
8618 /* SunOS 4.1.1 cc rejects this. */
8619 char const *const *pcpcc;
8620 char **ppc;
8621 /* NEC SVR4.0.2 mips cc rejects this. */
8622 struct point {int x, y;};
8623 static struct point const zero = {0,0};
8624 /* AIX XL C 1.02.0.0 rejects this.
8625 It does not let you subtract one const X* pointer from another in
8626 an arm of an if-expression whose if-part is not a constant
8627 expression */
8628 const char *g = "string";
8629 pcpcc = &g + (g ? g-g : 0);
8630 /* HPUX 7.0 cc rejects these. */
8631 ++pcpcc;
8632 ppc = (char**) pcpcc;
8633 pcpcc = (char const *const *) ppc;
8634 { /* SCO 3.2v4 cc rejects this. */
8635 char *t;
8636 char const *s = 0 ? (char *) 0 : (char const *) 0;
8637
8638 *t++ = 0;
8639 if (s) return 0;
8640 }
8641 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8642 int x[] = {25, 17};
8643 const int *foo = &x[0];
8644 ++foo;
8645 }
8646 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8647 typedef const int *iptr;
8648 iptr p = 0;
8649 ++p;
8650 }
8651 { /* AIX XL C 1.02.0.0 rejects this saying
8652 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8653 struct s { int j; const int *ap[3]; };
8654 struct s *b; b->j = 5;
8655 }
8656 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8657 const int foo = 10;
8658 if (!foo) return 0;
8659 }
8660 return !cs[0] && !zero.x;
8661 #endif
8662
8663 ;
8664 return 0;
8665 }
8666 _ACEOF
8667 rm -f conftest.$ac_objext
8668 if { (ac_try="$ac_compile"
8669 case "(($ac_try" in
8670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671 *) ac_try_echo=$ac_try;;
8672 esac
8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674 (eval "$ac_compile") 2>conftest.er1
8675 ac_status=$?
8676 grep -v '^ *+' conftest.er1 >conftest.err
8677 rm -f conftest.er1
8678 cat conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } && {
8681 test -z "$ac_c_werror_flag" ||
8682 test ! -s conftest.err
8683 } && test -s conftest.$ac_objext; then
8684 ac_cv_c_const=yes
8685 else
8686 echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8688
8689 ac_cv_c_const=no
8690 fi
8691
8692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8693 fi
8694 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8695 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8696 if test $ac_cv_c_const = no; then
8697
8698 cat >>confdefs.h <<\_ACEOF
8699 #define const
8700 _ACEOF
8701
8702 fi
8703
8704 { echo "$as_me:$LINENO: checking for void * support" >&5
8705 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8706 if test "${emacs_cv_void_star+set}" = set; then
8707 echo $ECHO_N "(cached) $ECHO_C" >&6
8708 else
8709 cat >conftest.$ac_ext <<_ACEOF
8710 /* confdefs.h. */
8711 _ACEOF
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h. */
8715
8716 int
8717 main ()
8718 {
8719 void * foo;
8720 ;
8721 return 0;
8722 }
8723 _ACEOF
8724 rm -f conftest.$ac_objext
8725 if { (ac_try="$ac_compile"
8726 case "(($ac_try" in
8727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8728 *) ac_try_echo=$ac_try;;
8729 esac
8730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8731 (eval "$ac_compile") 2>conftest.er1
8732 ac_status=$?
8733 grep -v '^ *+' conftest.er1 >conftest.err
8734 rm -f conftest.er1
8735 cat conftest.err >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } && {
8738 test -z "$ac_c_werror_flag" ||
8739 test ! -s conftest.err
8740 } && test -s conftest.$ac_objext; then
8741 emacs_cv_void_star=yes
8742 else
8743 echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8745
8746 emacs_cv_void_star=no
8747 fi
8748
8749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750 fi
8751 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8752 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8753 if test $emacs_cv_void_star = yes; then
8754 cat >>confdefs.h <<\_ACEOF
8755 #define POINTER_TYPE void
8756 _ACEOF
8757
8758 else
8759 cat >>confdefs.h <<\_ACEOF
8760 #define POINTER_TYPE char
8761 _ACEOF
8762
8763 fi
8764
8765
8766
8767
8768
8769 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8770 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8771 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8772 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8774 else
8775 cat >conftest.make <<\_ACEOF
8776 SHELL = /bin/sh
8777 all:
8778 @echo '@@@%%%=$(MAKE)=@@@%%%'
8779 _ACEOF
8780 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8781 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8782 *@@@%%%=?*=@@@%%%*)
8783 eval ac_cv_prog_make_${ac_make}_set=yes;;
8784 *)
8785 eval ac_cv_prog_make_${ac_make}_set=no;;
8786 esac
8787 rm -f conftest.make
8788 fi
8789 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8790 { echo "$as_me:$LINENO: result: yes" >&5
8791 echo "${ECHO_T}yes" >&6; }
8792 SET_MAKE=
8793 else
8794 { echo "$as_me:$LINENO: result: no" >&5
8795 echo "${ECHO_T}no" >&6; }
8796 SET_MAKE="MAKE=${MAKE-make}"
8797 fi
8798
8799
8800 { echo "$as_me:$LINENO: checking for long file names" >&5
8801 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8802 if test "${ac_cv_sys_long_file_names+set}" = set; then
8803 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 else
8805 ac_cv_sys_long_file_names=yes
8806 # Test for long file names in all the places we know might matter:
8807 # . the current directory, where building will happen
8808 # $prefix/lib where we will be installing things
8809 # $exec_prefix/lib likewise
8810 # $TMPDIR if set, where it might want to write temporary files
8811 # /tmp where it might want to write temporary files
8812 # /var/tmp likewise
8813 # /usr/tmp likewise
8814 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8815 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8816 # in the usual case where exec_prefix is '${prefix}'.
8817 case $ac_dir in #(
8818 . | /* | ?:[\\/]*) ;; #(
8819 *) continue;;
8820 esac
8821 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8822 ac_xdir=$ac_dir/cf$$
8823 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8824 ac_tf1=$ac_xdir/conftest9012345
8825 ac_tf2=$ac_xdir/conftest9012346
8826 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8827 ac_cv_sys_long_file_names=no
8828 rm -f -r "$ac_xdir" 2>/dev/null
8829 test $ac_cv_sys_long_file_names = no && break
8830 done
8831 fi
8832 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8833 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8834 if test $ac_cv_sys_long_file_names = yes; then
8835
8836 cat >>confdefs.h <<\_ACEOF
8837 #define HAVE_LONG_FILE_NAMES 1
8838 _ACEOF
8839
8840 fi
8841
8842
8843 #### Choose a window system.
8844
8845 { echo "$as_me:$LINENO: checking for X" >&5
8846 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8847
8848
8849 # Check whether --with-x was given.
8850 if test "${with_x+set}" = set; then
8851 withval=$with_x;
8852 fi
8853
8854 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8855 if test "x$with_x" = xno; then
8856 # The user explicitly disabled X.
8857 have_x=disabled
8858 else
8859 case $x_includes,$x_libraries in #(
8860 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8861 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8862 { (exit 1); exit 1; }; };; #(
8863 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8865 else
8866 # One or both of the vars are not set, and there is no cached value.
8867 ac_x_includes=no ac_x_libraries=no
8868 rm -f -r conftest.dir
8869 if mkdir conftest.dir; then
8870 cd conftest.dir
8871 cat >Imakefile <<'_ACEOF'
8872 incroot:
8873 @echo incroot='${INCROOT}'
8874 usrlibdir:
8875 @echo usrlibdir='${USRLIBDIR}'
8876 libdir:
8877 @echo libdir='${LIBDIR}'
8878 _ACEOF
8879 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8880 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8881 for ac_var in incroot usrlibdir libdir; do
8882 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8883 done
8884 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8885 for ac_extension in a so sl; do
8886 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8887 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8888 ac_im_usrlibdir=$ac_im_libdir; break
8889 fi
8890 done
8891 # Screen out bogus values from the imake configuration. They are
8892 # bogus both because they are the default anyway, and because
8893 # using them would break gcc on systems where it needs fixed includes.
8894 case $ac_im_incroot in
8895 /usr/include) ac_x_includes= ;;
8896 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8897 esac
8898 case $ac_im_usrlibdir in
8899 /usr/lib | /lib) ;;
8900 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8901 esac
8902 fi
8903 cd ..
8904 rm -f -r conftest.dir
8905 fi
8906
8907 # Standard set of common directories for X headers.
8908 # Check X11 before X11Rn because it is often a symlink to the current release.
8909 ac_x_header_dirs='
8910 /usr/X11/include
8911 /usr/X11R6/include
8912 /usr/X11R5/include
8913 /usr/X11R4/include
8914
8915 /usr/include/X11
8916 /usr/include/X11R6
8917 /usr/include/X11R5
8918 /usr/include/X11R4
8919
8920 /usr/local/X11/include
8921 /usr/local/X11R6/include
8922 /usr/local/X11R5/include
8923 /usr/local/X11R4/include
8924
8925 /usr/local/include/X11
8926 /usr/local/include/X11R6
8927 /usr/local/include/X11R5
8928 /usr/local/include/X11R4
8929
8930 /usr/X386/include
8931 /usr/x386/include
8932 /usr/XFree86/include/X11
8933
8934 /usr/include
8935 /usr/local/include
8936 /usr/unsupported/include
8937 /usr/athena/include
8938 /usr/local/x11r5/include
8939 /usr/lpp/Xamples/include
8940
8941 /usr/openwin/include
8942 /usr/openwin/share/include'
8943
8944 if test "$ac_x_includes" = no; then
8945 # Guess where to find include files, by looking for Xlib.h.
8946 # First, try using that file with no special directory specified.
8947 cat >conftest.$ac_ext <<_ACEOF
8948 /* confdefs.h. */
8949 _ACEOF
8950 cat confdefs.h >>conftest.$ac_ext
8951 cat >>conftest.$ac_ext <<_ACEOF
8952 /* end confdefs.h. */
8953 #include <X11/Xlib.h>
8954 _ACEOF
8955 if { (ac_try="$ac_cpp conftest.$ac_ext"
8956 case "(($ac_try" in
8957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958 *) ac_try_echo=$ac_try;;
8959 esac
8960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8962 ac_status=$?
8963 grep -v '^ *+' conftest.er1 >conftest.err
8964 rm -f conftest.er1
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } >/dev/null && {
8968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8969 test ! -s conftest.err
8970 }; then
8971 # We can compile using X headers with no special include directory.
8972 ac_x_includes=
8973 else
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8976
8977 for ac_dir in $ac_x_header_dirs; do
8978 if test -r "$ac_dir/X11/Xlib.h"; then
8979 ac_x_includes=$ac_dir
8980 break
8981 fi
8982 done
8983 fi
8984
8985 rm -f conftest.err conftest.$ac_ext
8986 fi # $ac_x_includes = no
8987
8988 if test "$ac_x_libraries" = no; then
8989 # Check for the libraries.
8990 # See if we find them without any special options.
8991 # Don't add to $LIBS permanently.
8992 ac_save_LIBS=$LIBS
8993 LIBS="-lX11 $LIBS"
8994 cat >conftest.$ac_ext <<_ACEOF
8995 /* confdefs.h. */
8996 _ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h. */
9000 #include <X11/Xlib.h>
9001 int
9002 main ()
9003 {
9004 XrmInitialize ()
9005 ;
9006 return 0;
9007 }
9008 _ACEOF
9009 rm -f conftest.$ac_objext conftest$ac_exeext
9010 if { (ac_try="$ac_link"
9011 case "(($ac_try" in
9012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9013 *) ac_try_echo=$ac_try;;
9014 esac
9015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9016 (eval "$ac_link") 2>conftest.er1
9017 ac_status=$?
9018 grep -v '^ *+' conftest.er1 >conftest.err
9019 rm -f conftest.er1
9020 cat conftest.err >&5
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); } && {
9023 test -z "$ac_c_werror_flag" ||
9024 test ! -s conftest.err
9025 } && test -s conftest$ac_exeext &&
9026 $as_test_x conftest$ac_exeext; then
9027 LIBS=$ac_save_LIBS
9028 # We can link X programs with no special library path.
9029 ac_x_libraries=
9030 else
9031 echo "$as_me: failed program was:" >&5
9032 sed 's/^/| /' conftest.$ac_ext >&5
9033
9034 LIBS=$ac_save_LIBS
9035 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9036 do
9037 # Don't even attempt the hair of trying to link an X program!
9038 for ac_extension in a so sl; do
9039 if test -r "$ac_dir/libX11.$ac_extension"; then
9040 ac_x_libraries=$ac_dir
9041 break 2
9042 fi
9043 done
9044 done
9045 fi
9046
9047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9048 conftest$ac_exeext conftest.$ac_ext
9049 fi # $ac_x_libraries = no
9050
9051 case $ac_x_includes,$ac_x_libraries in #(
9052 no,* | *,no | *\'*)
9053 # Didn't find X, or a directory has "'" in its name.
9054 ac_cv_have_x="have_x=no";; #(
9055 *)
9056 # Record where we found X for the cache.
9057 ac_cv_have_x="have_x=yes\
9058 ac_x_includes='$ac_x_includes'\
9059 ac_x_libraries='$ac_x_libraries'"
9060 esac
9061 fi
9062 ;; #(
9063 *) have_x=yes;;
9064 esac
9065 eval "$ac_cv_have_x"
9066 fi # $with_x != no
9067
9068 if test "$have_x" != yes; then
9069 { echo "$as_me:$LINENO: result: $have_x" >&5
9070 echo "${ECHO_T}$have_x" >&6; }
9071 no_x=yes
9072 else
9073 # If each of the values was on the command line, it overrides each guess.
9074 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9075 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9076 # Update the cache value to reflect the command line values.
9077 ac_cv_have_x="have_x=yes\
9078 ac_x_includes='$x_includes'\
9079 ac_x_libraries='$x_libraries'"
9080 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9081 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9082 fi
9083
9084 if test "$no_x" = yes; then
9085 window_system=none
9086 else
9087 window_system=x11
9088 fi
9089
9090 if test "${x_libraries}" != NONE; then
9091 if test -n "${x_libraries}"; then
9092 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9093 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9094 fi
9095 x_default_search_path=""
9096 x_search_path=${x_libraries}
9097 if test -z "${x_search_path}"; then
9098 x_search_path=/usr/lib
9099 fi
9100 for x_library in `echo ${x_search_path}: | \
9101 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9102 x_search_path="\
9103 ${x_library}/X11/%L/%T/%N%C%S:\
9104 ${x_library}/X11/%l/%T/%N%C%S:\
9105 ${x_library}/X11/%T/%N%C%S:\
9106 ${x_library}/X11/%L/%T/%N%S:\
9107 ${x_library}/X11/%l/%T/%N%S:\
9108 ${x_library}/X11/%T/%N%S"
9109 if test x"${x_default_search_path}" = x; then
9110 x_default_search_path=${x_search_path}
9111 else
9112 x_default_search_path="${x_search_path}:${x_default_search_path}"
9113 fi
9114 done
9115 fi
9116 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9117 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9118 fi
9119
9120 if test x"${x_includes}" = x; then
9121 bitmapdir=/usr/include/X11/bitmaps
9122 else
9123 # accumulate include directories that have X11 bitmap subdirectories
9124 bmd_acc="dummyval"
9125 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9126 if test -d "${bmd}/X11/bitmaps"; then
9127 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9128 fi
9129 if test -d "${bmd}/bitmaps"; then
9130 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9131 fi
9132 done
9133 if test ${bmd_acc} != "dummyval"; then
9134 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9135 fi
9136 fi
9137
9138 HAVE_CARBON=no
9139 if test "${with_carbon}" != no; then
9140 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9141 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9142 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9143 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9145 fi
9146 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9147 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9148 else
9149 # Is the header compilable?
9150 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9151 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9152 cat >conftest.$ac_ext <<_ACEOF
9153 /* confdefs.h. */
9154 _ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9158 $ac_includes_default
9159 #include <Carbon/Carbon.h>
9160 _ACEOF
9161 rm -f conftest.$ac_objext
9162 if { (ac_try="$ac_compile"
9163 case "(($ac_try" in
9164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165 *) ac_try_echo=$ac_try;;
9166 esac
9167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9168 (eval "$ac_compile") 2>conftest.er1
9169 ac_status=$?
9170 grep -v '^ *+' conftest.er1 >conftest.err
9171 rm -f conftest.er1
9172 cat conftest.err >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } && {
9175 test -z "$ac_c_werror_flag" ||
9176 test ! -s conftest.err
9177 } && test -s conftest.$ac_objext; then
9178 ac_header_compiler=yes
9179 else
9180 echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9182
9183 ac_header_compiler=no
9184 fi
9185
9186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9187 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9188 echo "${ECHO_T}$ac_header_compiler" >&6; }
9189
9190 # Is the header present?
9191 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9192 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9193 cat >conftest.$ac_ext <<_ACEOF
9194 /* confdefs.h. */
9195 _ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9199 #include <Carbon/Carbon.h>
9200 _ACEOF
9201 if { (ac_try="$ac_cpp conftest.$ac_ext"
9202 case "(($ac_try" in
9203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204 *) ac_try_echo=$ac_try;;
9205 esac
9206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9208 ac_status=$?
9209 grep -v '^ *+' conftest.er1 >conftest.err
9210 rm -f conftest.er1
9211 cat conftest.err >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } >/dev/null && {
9214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9215 test ! -s conftest.err
9216 }; then
9217 ac_header_preproc=yes
9218 else
9219 echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9221
9222 ac_header_preproc=no
9223 fi
9224
9225 rm -f conftest.err conftest.$ac_ext
9226 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9227 echo "${ECHO_T}$ac_header_preproc" >&6; }
9228
9229 # So? What about this header?
9230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9231 yes:no: )
9232 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9233 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9234 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9235 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9236 ac_header_preproc=yes
9237 ;;
9238 no:yes:* )
9239 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9240 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9241 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9242 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9243 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9244 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9245 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9246 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9247 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9248 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9249 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9250 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9251
9252 ;;
9253 esac
9254 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9255 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9256 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
9258 else
9259 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9260 fi
9261 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9262 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9263
9264 fi
9265 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9266 HAVE_CARBON=yes
9267 fi
9268
9269
9270 fi
9271 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9272 if test "${with_carbon+set}" != set \
9273 && test "${carbon_appdir_x+set}" != set; then
9274 for var in with_x with_x_toolkit with_gtk with_xim \
9275 with_xpm with_jpeg with_tiff with_gif with_png; do
9276 if eval test \"\${$var+set}\" = set; then
9277 HAVE_CARBON=no
9278 break
9279 fi
9280 done
9281 fi
9282 fi
9283 if test "${HAVE_CARBON}" = yes; then
9284 window_system=mac
9285 fi
9286
9287 case "${window_system}" in
9288 x11 )
9289 HAVE_X_WINDOWS=yes
9290 HAVE_X11=yes
9291 case "${with_x_toolkit}" in
9292 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9293 motif ) USE_X_TOOLKIT=MOTIF ;;
9294 gtk ) with_gtk=yes
9295 USE_X_TOOLKIT=none ;;
9296 no ) USE_X_TOOLKIT=none ;;
9297 * )
9298 if test x"$with_gtk" = xyes; then
9299 USE_X_TOOLKIT=none
9300 else
9301 USE_X_TOOLKIT=maybe
9302 fi
9303 ;;
9304 esac
9305 ;;
9306 mac | none )
9307 HAVE_X_WINDOWS=no
9308 HAVE_X11=no
9309 USE_X_TOOLKIT=none
9310 ;;
9311 esac
9312
9313 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9314 # Extract the first word of "X", so it can be a program name with args.
9315 set dummy X; ac_word=$2
9316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9318 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 else
9321 if test -n "$HAVE_XSERVER"; then
9322 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9323 else
9324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9325 for as_dir in $PATH
9326 do
9327 IFS=$as_save_IFS
9328 test -z "$as_dir" && as_dir=.
9329 for ac_exec_ext in '' $ac_executable_extensions; do
9330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9331 ac_cv_prog_HAVE_XSERVER="true"
9332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9333 break 2
9334 fi
9335 done
9336 done
9337 IFS=$as_save_IFS
9338
9339 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9340 fi
9341 fi
9342 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9343 if test -n "$HAVE_XSERVER"; then
9344 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9345 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9346 else
9347 { echo "$as_me:$LINENO: result: no" >&5
9348 echo "${ECHO_T}no" >&6; }
9349 fi
9350
9351
9352 if test "$HAVE_XSERVER" = true ||
9353 test -n "$DISPLAY" ||
9354 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9355 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9356 were found. You should install the relevant development files for X
9357 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9358 sure you have development files for image handling, i.e.
9359 tiff, gif, jpeg, png and xpm.
9360 If you are sure you want Emacs compiled without X window support, pass
9361 --without-x
9362 to configure." >&5
9363 echo "$as_me: error: You seem to be running X, but no X development libraries
9364 were found. You should install the relevant development files for X
9365 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9366 sure you have development files for image handling, i.e.
9367 tiff, gif, jpeg, png and xpm.
9368 If you are sure you want Emacs compiled without X window support, pass
9369 --without-x
9370 to configure." >&2;}
9371 { (exit 1); exit 1; }; }
9372 fi
9373 fi
9374
9375 ### If we're using X11, we should use the X menu package.
9376 HAVE_MENUS=no
9377 case ${HAVE_X11} in
9378 yes ) HAVE_MENUS=yes ;;
9379 esac
9380
9381 ### Compute the unexec source name from the object name.
9382 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9383
9384 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9385 # Assume not, until told otherwise.
9386 GNU_MALLOC=yes
9387 doug_lea_malloc=yes
9388 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9389 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9390 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9392 else
9393 cat >conftest.$ac_ext <<_ACEOF
9394 /* confdefs.h. */
9395 _ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9399 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9401 #define malloc_get_state innocuous_malloc_get_state
9402
9403 /* System header to define __stub macros and hopefully few prototypes,
9404 which can conflict with char malloc_get_state (); below.
9405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9406 <limits.h> exists even on freestanding compilers. */
9407
9408 #ifdef __STDC__
9409 # include <limits.h>
9410 #else
9411 # include <assert.h>
9412 #endif
9413
9414 #undef malloc_get_state
9415
9416 /* Override any GCC internal prototype to avoid an error.
9417 Use char because int might match the return type of a GCC
9418 builtin and then its argument prototype would still apply. */
9419 #ifdef __cplusplus
9420 extern "C"
9421 #endif
9422 char malloc_get_state ();
9423 /* The GNU C library defines this for functions which it implements
9424 to always fail with ENOSYS. Some functions are actually named
9425 something starting with __ and the normal name is an alias. */
9426 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9427 choke me
9428 #endif
9429
9430 int
9431 main ()
9432 {
9433 return malloc_get_state ();
9434 ;
9435 return 0;
9436 }
9437 _ACEOF
9438 rm -f conftest.$ac_objext conftest$ac_exeext
9439 if { (ac_try="$ac_link"
9440 case "(($ac_try" in
9441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9442 *) ac_try_echo=$ac_try;;
9443 esac
9444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9445 (eval "$ac_link") 2>conftest.er1
9446 ac_status=$?
9447 grep -v '^ *+' conftest.er1 >conftest.err
9448 rm -f conftest.er1
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } && {
9452 test -z "$ac_c_werror_flag" ||
9453 test ! -s conftest.err
9454 } && test -s conftest$ac_exeext &&
9455 $as_test_x conftest$ac_exeext; then
9456 ac_cv_func_malloc_get_state=yes
9457 else
9458 echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.$ac_ext >&5
9460
9461 ac_cv_func_malloc_get_state=no
9462 fi
9463
9464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9465 conftest$ac_exeext conftest.$ac_ext
9466 fi
9467 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9468 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9469 if test $ac_cv_func_malloc_get_state = yes; then
9470 :
9471 else
9472 doug_lea_malloc=no
9473 fi
9474
9475 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9476 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9477 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9478 echo $ECHO_N "(cached) $ECHO_C" >&6
9479 else
9480 cat >conftest.$ac_ext <<_ACEOF
9481 /* confdefs.h. */
9482 _ACEOF
9483 cat confdefs.h >>conftest.$ac_ext
9484 cat >>conftest.$ac_ext <<_ACEOF
9485 /* end confdefs.h. */
9486 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9488 #define malloc_set_state innocuous_malloc_set_state
9489
9490 /* System header to define __stub macros and hopefully few prototypes,
9491 which can conflict with char malloc_set_state (); below.
9492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9493 <limits.h> exists even on freestanding compilers. */
9494
9495 #ifdef __STDC__
9496 # include <limits.h>
9497 #else
9498 # include <assert.h>
9499 #endif
9500
9501 #undef malloc_set_state
9502
9503 /* Override any GCC internal prototype to avoid an error.
9504 Use char because int might match the return type of a GCC
9505 builtin and then its argument prototype would still apply. */
9506 #ifdef __cplusplus
9507 extern "C"
9508 #endif
9509 char malloc_set_state ();
9510 /* The GNU C library defines this for functions which it implements
9511 to always fail with ENOSYS. Some functions are actually named
9512 something starting with __ and the normal name is an alias. */
9513 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9514 choke me
9515 #endif
9516
9517 int
9518 main ()
9519 {
9520 return malloc_set_state ();
9521 ;
9522 return 0;
9523 }
9524 _ACEOF
9525 rm -f conftest.$ac_objext conftest$ac_exeext
9526 if { (ac_try="$ac_link"
9527 case "(($ac_try" in
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9530 esac
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_link") 2>conftest.er1
9533 ac_status=$?
9534 grep -v '^ *+' conftest.er1 >conftest.err
9535 rm -f conftest.er1
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } && {
9539 test -z "$ac_c_werror_flag" ||
9540 test ! -s conftest.err
9541 } && test -s conftest$ac_exeext &&
9542 $as_test_x conftest$ac_exeext; then
9543 ac_cv_func_malloc_set_state=yes
9544 else
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9547
9548 ac_cv_func_malloc_set_state=no
9549 fi
9550
9551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9552 conftest$ac_exeext conftest.$ac_ext
9553 fi
9554 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9555 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9556 if test $ac_cv_func_malloc_set_state = yes; then
9557 :
9558 else
9559 doug_lea_malloc=no
9560 fi
9561
9562 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9563 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9564 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 else
9567 cat >conftest.$ac_ext <<_ACEOF
9568 /* confdefs.h. */
9569 _ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9573 extern void (* __after_morecore_hook)();
9574 int
9575 main ()
9576 {
9577 __after_morecore_hook = 0
9578 ;
9579 return 0;
9580 }
9581 _ACEOF
9582 rm -f conftest.$ac_objext conftest$ac_exeext
9583 if { (ac_try="$ac_link"
9584 case "(($ac_try" in
9585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586 *) ac_try_echo=$ac_try;;
9587 esac
9588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589 (eval "$ac_link") 2>conftest.er1
9590 ac_status=$?
9591 grep -v '^ *+' conftest.er1 >conftest.err
9592 rm -f conftest.er1
9593 cat conftest.err >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } && {
9596 test -z "$ac_c_werror_flag" ||
9597 test ! -s conftest.err
9598 } && test -s conftest$ac_exeext &&
9599 $as_test_x conftest$ac_exeext; then
9600 emacs_cv_var___after_morecore_hook=yes
9601 else
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9604
9605 emacs_cv_var___after_morecore_hook=no
9606 fi
9607
9608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9609 conftest$ac_exeext conftest.$ac_ext
9610 fi
9611 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9612 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9613 if test $emacs_cv_var___after_morecore_hook = no; then
9614 doug_lea_malloc=no
9615 fi
9616 if test "${system_malloc}" = "yes"; then
9617 GNU_MALLOC=no
9618 GNU_MALLOC_reason="
9619 (The GNU allocators don't work with this system configuration.)"
9620 fi
9621 if test "$doug_lea_malloc" = "yes" ; then
9622 if test "$GNU_MALLOC" = yes ; then
9623 GNU_MALLOC_reason="
9624 (Using Doug Lea's new malloc from the GNU C Library.)"
9625 fi
9626
9627 cat >>confdefs.h <<\_ACEOF
9628 #define DOUG_LEA_MALLOC 1
9629 _ACEOF
9630
9631 fi
9632
9633 if test x"${REL_ALLOC}" = x; then
9634 REL_ALLOC=${GNU_MALLOC}
9635 fi
9636
9637
9638
9639
9640 for ac_header in stdlib.h unistd.h
9641 do
9642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9648 fi
9649 ac_res=`eval echo '${'$as_ac_Header'}'`
9650 { echo "$as_me:$LINENO: result: $ac_res" >&5
9651 echo "${ECHO_T}$ac_res" >&6; }
9652 else
9653 # Is the header compilable?
9654 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9656 cat >conftest.$ac_ext <<_ACEOF
9657 /* confdefs.h. */
9658 _ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9662 $ac_includes_default
9663 #include <$ac_header>
9664 _ACEOF
9665 rm -f conftest.$ac_objext
9666 if { (ac_try="$ac_compile"
9667 case "(($ac_try" in
9668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669 *) ac_try_echo=$ac_try;;
9670 esac
9671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672 (eval "$ac_compile") 2>conftest.er1
9673 ac_status=$?
9674 grep -v '^ *+' conftest.er1 >conftest.err
9675 rm -f conftest.er1
9676 cat conftest.err >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } && {
9679 test -z "$ac_c_werror_flag" ||
9680 test ! -s conftest.err
9681 } && test -s conftest.$ac_objext; then
9682 ac_header_compiler=yes
9683 else
9684 echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9686
9687 ac_header_compiler=no
9688 fi
9689
9690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9692 echo "${ECHO_T}$ac_header_compiler" >&6; }
9693
9694 # Is the header present?
9695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9697 cat >conftest.$ac_ext <<_ACEOF
9698 /* confdefs.h. */
9699 _ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9703 #include <$ac_header>
9704 _ACEOF
9705 if { (ac_try="$ac_cpp conftest.$ac_ext"
9706 case "(($ac_try" in
9707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9708 *) ac_try_echo=$ac_try;;
9709 esac
9710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9712 ac_status=$?
9713 grep -v '^ *+' conftest.er1 >conftest.err
9714 rm -f conftest.er1
9715 cat conftest.err >&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); } >/dev/null && {
9718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9719 test ! -s conftest.err
9720 }; then
9721 ac_header_preproc=yes
9722 else
9723 echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9725
9726 ac_header_preproc=no
9727 fi
9728
9729 rm -f conftest.err conftest.$ac_ext
9730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9731 echo "${ECHO_T}$ac_header_preproc" >&6; }
9732
9733 # So? What about this header?
9734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9735 yes:no: )
9736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9740 ac_header_preproc=yes
9741 ;;
9742 no:yes:* )
9743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9755
9756 ;;
9757 esac
9758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9762 else
9763 eval "$as_ac_Header=\$ac_header_preproc"
9764 fi
9765 ac_res=`eval echo '${'$as_ac_Header'}'`
9766 { echo "$as_me:$LINENO: result: $ac_res" >&5
9767 echo "${ECHO_T}$ac_res" >&6; }
9768
9769 fi
9770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9771 cat >>confdefs.h <<_ACEOF
9772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9773 _ACEOF
9774
9775 fi
9776
9777 done
9778
9779
9780 for ac_func in getpagesize
9781 do
9782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9783 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 else
9788 cat >conftest.$ac_ext <<_ACEOF
9789 /* confdefs.h. */
9790 _ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9796 #define $ac_func innocuous_$ac_func
9797
9798 /* System header to define __stub macros and hopefully few prototypes,
9799 which can conflict with char $ac_func (); below.
9800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9801 <limits.h> exists even on freestanding compilers. */
9802
9803 #ifdef __STDC__
9804 # include <limits.h>
9805 #else
9806 # include <assert.h>
9807 #endif
9808
9809 #undef $ac_func
9810
9811 /* Override any GCC internal prototype to avoid an error.
9812 Use char because int might match the return type of a GCC
9813 builtin and then its argument prototype would still apply. */
9814 #ifdef __cplusplus
9815 extern "C"
9816 #endif
9817 char $ac_func ();
9818 /* The GNU C library defines this for functions which it implements
9819 to always fail with ENOSYS. Some functions are actually named
9820 something starting with __ and the normal name is an alias. */
9821 #if defined __stub_$ac_func || defined __stub___$ac_func
9822 choke me
9823 #endif
9824
9825 int
9826 main ()
9827 {
9828 return $ac_func ();
9829 ;
9830 return 0;
9831 }
9832 _ACEOF
9833 rm -f conftest.$ac_objext conftest$ac_exeext
9834 if { (ac_try="$ac_link"
9835 case "(($ac_try" in
9836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837 *) ac_try_echo=$ac_try;;
9838 esac
9839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840 (eval "$ac_link") 2>conftest.er1
9841 ac_status=$?
9842 grep -v '^ *+' conftest.er1 >conftest.err
9843 rm -f conftest.er1
9844 cat conftest.err >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } && {
9847 test -z "$ac_c_werror_flag" ||
9848 test ! -s conftest.err
9849 } && test -s conftest$ac_exeext &&
9850 $as_test_x conftest$ac_exeext; then
9851 eval "$as_ac_var=yes"
9852 else
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9855
9856 eval "$as_ac_var=no"
9857 fi
9858
9859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9860 conftest$ac_exeext conftest.$ac_ext
9861 fi
9862 ac_res=`eval echo '${'$as_ac_var'}'`
9863 { echo "$as_me:$LINENO: result: $ac_res" >&5
9864 echo "${ECHO_T}$ac_res" >&6; }
9865 if test `eval echo '${'$as_ac_var'}'` = yes; then
9866 cat >>confdefs.h <<_ACEOF
9867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9868 _ACEOF
9869
9870 fi
9871 done
9872
9873 { echo "$as_me:$LINENO: checking for working mmap" >&5
9874 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9875 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9877 else
9878 if test "$cross_compiling" = yes; then
9879 ac_cv_func_mmap_fixed_mapped=no
9880 else
9881 cat >conftest.$ac_ext <<_ACEOF
9882 /* confdefs.h. */
9883 _ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h. */
9887 $ac_includes_default
9888 /* malloc might have been renamed as rpl_malloc. */
9889 #undef malloc
9890
9891 /* Thanks to Mike Haertel and Jim Avera for this test.
9892 Here is a matrix of mmap possibilities:
9893 mmap private not fixed
9894 mmap private fixed at somewhere currently unmapped
9895 mmap private fixed at somewhere already mapped
9896 mmap shared not fixed
9897 mmap shared fixed at somewhere currently unmapped
9898 mmap shared fixed at somewhere already mapped
9899 For private mappings, we should verify that changes cannot be read()
9900 back from the file, nor mmap's back from the file at a different
9901 address. (There have been systems where private was not correctly
9902 implemented like the infamous i386 svr4.0, and systems where the
9903 VM page cache was not coherent with the file system buffer cache
9904 like early versions of FreeBSD and possibly contemporary NetBSD.)
9905 For shared mappings, we should conversely verify that changes get
9906 propagated back to all the places they're supposed to be.
9907
9908 Grep wants private fixed already mapped.
9909 The main things grep needs to know about mmap are:
9910 * does it exist and is it safe to write into the mmap'd area
9911 * how to use it (BSD variants) */
9912
9913 #include <fcntl.h>
9914 #include <sys/mman.h>
9915
9916 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9917 char *malloc ();
9918 #endif
9919
9920 /* This mess was copied from the GNU getpagesize.h. */
9921 #ifndef HAVE_GETPAGESIZE
9922 /* Assume that all systems that can run configure have sys/param.h. */
9923 # ifndef HAVE_SYS_PARAM_H
9924 # define HAVE_SYS_PARAM_H 1
9925 # endif
9926
9927 # ifdef _SC_PAGESIZE
9928 # define getpagesize() sysconf(_SC_PAGESIZE)
9929 # else /* no _SC_PAGESIZE */
9930 # ifdef HAVE_SYS_PARAM_H
9931 # include <sys/param.h>
9932 # ifdef EXEC_PAGESIZE
9933 # define getpagesize() EXEC_PAGESIZE
9934 # else /* no EXEC_PAGESIZE */
9935 # ifdef NBPG
9936 # define getpagesize() NBPG * CLSIZE
9937 # ifndef CLSIZE
9938 # define CLSIZE 1
9939 # endif /* no CLSIZE */
9940 # else /* no NBPG */
9941 # ifdef NBPC
9942 # define getpagesize() NBPC
9943 # else /* no NBPC */
9944 # ifdef PAGESIZE
9945 # define getpagesize() PAGESIZE
9946 # endif /* PAGESIZE */
9947 # endif /* no NBPC */
9948 # endif /* no NBPG */
9949 # endif /* no EXEC_PAGESIZE */
9950 # else /* no HAVE_SYS_PARAM_H */
9951 # define getpagesize() 8192 /* punt totally */
9952 # endif /* no HAVE_SYS_PARAM_H */
9953 # endif /* no _SC_PAGESIZE */
9954
9955 #endif /* no HAVE_GETPAGESIZE */
9956
9957 int
9958 main ()
9959 {
9960 char *data, *data2, *data3;
9961 int i, pagesize;
9962 int fd;
9963
9964 pagesize = getpagesize ();
9965
9966 /* First, make a file with some known garbage in it. */
9967 data = (char *) malloc (pagesize);
9968 if (!data)
9969 return 1;
9970 for (i = 0; i < pagesize; ++i)
9971 *(data + i) = rand ();
9972 umask (0);
9973 fd = creat ("conftest.mmap", 0600);
9974 if (fd < 0)
9975 return 1;
9976 if (write (fd, data, pagesize) != pagesize)
9977 return 1;
9978 close (fd);
9979
9980 /* Next, try to mmap the file at a fixed address which already has
9981 something else allocated at it. If we can, also make sure that
9982 we see the same garbage. */
9983 fd = open ("conftest.mmap", O_RDWR);
9984 if (fd < 0)
9985 return 1;
9986 data2 = (char *) malloc (2 * pagesize);
9987 if (!data2)
9988 return 1;
9989 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9990 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9991 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9992 return 1;
9993 for (i = 0; i < pagesize; ++i)
9994 if (*(data + i) != *(data2 + i))
9995 return 1;
9996
9997 /* Finally, make sure that changes to the mapped area do not
9998 percolate back to the file as seen by read(). (This is a bug on
9999 some variants of i386 svr4.0.) */
10000 for (i = 0; i < pagesize; ++i)
10001 *(data2 + i) = *(data2 + i) + 1;
10002 data3 = (char *) malloc (pagesize);
10003 if (!data3)
10004 return 1;
10005 if (read (fd, data3, pagesize) != pagesize)
10006 return 1;
10007 for (i = 0; i < pagesize; ++i)
10008 if (*(data + i) != *(data3 + i))
10009 return 1;
10010 close (fd);
10011 return 0;
10012 }
10013 _ACEOF
10014 rm -f conftest$ac_exeext
10015 if { (ac_try="$ac_link"
10016 case "(($ac_try" in
10017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018 *) ac_try_echo=$ac_try;;
10019 esac
10020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10021 (eval "$ac_link") 2>&5
10022 ac_status=$?
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10025 { (case "(($ac_try" in
10026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027 *) ac_try_echo=$ac_try;;
10028 esac
10029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030 (eval "$ac_try") 2>&5
10031 ac_status=$?
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; }; then
10034 ac_cv_func_mmap_fixed_mapped=yes
10035 else
10036 echo "$as_me: program exited with status $ac_status" >&5
10037 echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10039
10040 ( exit $ac_status )
10041 ac_cv_func_mmap_fixed_mapped=no
10042 fi
10043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10044 fi
10045
10046
10047 fi
10048 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10049 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10050 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10051
10052 cat >>confdefs.h <<\_ACEOF
10053 #define HAVE_MMAP 1
10054 _ACEOF
10055
10056 fi
10057 rm -f conftest.mmap
10058
10059 if test $use_mmap_for_buffers = yes; then
10060 REL_ALLOC=no
10061 fi
10062
10063 LIBS="$libsrc_libs $LIBS"
10064
10065
10066 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10067 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10068 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10070 else
10071 ac_check_lib_save_LIBS=$LIBS
10072 LIBS="-ldnet $LIBS"
10073 cat >conftest.$ac_ext <<_ACEOF
10074 /* confdefs.h. */
10075 _ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h. */
10079
10080 /* Override any GCC internal prototype to avoid an error.
10081 Use char because int might match the return type of a GCC
10082 builtin and then its argument prototype would still apply. */
10083 #ifdef __cplusplus
10084 extern "C"
10085 #endif
10086 char dnet_ntoa ();
10087 int
10088 main ()
10089 {
10090 return dnet_ntoa ();
10091 ;
10092 return 0;
10093 }
10094 _ACEOF
10095 rm -f conftest.$ac_objext conftest$ac_exeext
10096 if { (ac_try="$ac_link"
10097 case "(($ac_try" in
10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099 *) ac_try_echo=$ac_try;;
10100 esac
10101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10102 (eval "$ac_link") 2>conftest.er1
10103 ac_status=$?
10104 grep -v '^ *+' conftest.er1 >conftest.err
10105 rm -f conftest.er1
10106 cat conftest.err >&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); } && {
10109 test -z "$ac_c_werror_flag" ||
10110 test ! -s conftest.err
10111 } && test -s conftest$ac_exeext &&
10112 $as_test_x conftest$ac_exeext; then
10113 ac_cv_lib_dnet_dnet_ntoa=yes
10114 else
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10117
10118 ac_cv_lib_dnet_dnet_ntoa=no
10119 fi
10120
10121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10122 conftest$ac_exeext conftest.$ac_ext
10123 LIBS=$ac_check_lib_save_LIBS
10124 fi
10125 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10126 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10127 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10128 cat >>confdefs.h <<_ACEOF
10129 #define HAVE_LIBDNET 1
10130 _ACEOF
10131
10132 LIBS="-ldnet $LIBS"
10133
10134 fi
10135
10136
10137 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10138 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10139 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10140 echo $ECHO_N "(cached) $ECHO_C" >&6
10141 else
10142 ac_check_lib_save_LIBS=$LIBS
10143 LIBS="-lXbsd $LIBS"
10144 cat >conftest.$ac_ext <<_ACEOF
10145 /* confdefs.h. */
10146 _ACEOF
10147 cat confdefs.h >>conftest.$ac_ext
10148 cat >>conftest.$ac_ext <<_ACEOF
10149 /* end confdefs.h. */
10150
10151
10152 int
10153 main ()
10154 {
10155 return main ();
10156 ;
10157 return 0;
10158 }
10159 _ACEOF
10160 rm -f conftest.$ac_objext conftest$ac_exeext
10161 if { (ac_try="$ac_link"
10162 case "(($ac_try" in
10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10165 esac
10166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167 (eval "$ac_link") 2>conftest.er1
10168 ac_status=$?
10169 grep -v '^ *+' conftest.er1 >conftest.err
10170 rm -f conftest.er1
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } && {
10174 test -z "$ac_c_werror_flag" ||
10175 test ! -s conftest.err
10176 } && test -s conftest$ac_exeext &&
10177 $as_test_x conftest$ac_exeext; then
10178 ac_cv_lib_Xbsd_main=yes
10179 else
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10182
10183 ac_cv_lib_Xbsd_main=no
10184 fi
10185
10186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10187 conftest$ac_exeext conftest.$ac_ext
10188 LIBS=$ac_check_lib_save_LIBS
10189 fi
10190 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10191 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10192 if test $ac_cv_lib_Xbsd_main = yes; then
10193 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10194 fi
10195
10196
10197
10198 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10199 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10200 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10202 else
10203 ac_check_lib_save_LIBS=$LIBS
10204 LIBS="-lpthreads $LIBS"
10205 cat >conftest.$ac_ext <<_ACEOF
10206 /* confdefs.h. */
10207 _ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10211
10212 /* Override any GCC internal prototype to avoid an error.
10213 Use char because int might match the return type of a GCC
10214 builtin and then its argument prototype would still apply. */
10215 #ifdef __cplusplus
10216 extern "C"
10217 #endif
10218 char cma_open ();
10219 int
10220 main ()
10221 {
10222 return cma_open ();
10223 ;
10224 return 0;
10225 }
10226 _ACEOF
10227 rm -f conftest.$ac_objext conftest$ac_exeext
10228 if { (ac_try="$ac_link"
10229 case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10232 esac
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_link") 2>conftest.er1
10235 ac_status=$?
10236 grep -v '^ *+' conftest.er1 >conftest.err
10237 rm -f conftest.er1
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } && {
10241 test -z "$ac_c_werror_flag" ||
10242 test ! -s conftest.err
10243 } && test -s conftest$ac_exeext &&
10244 $as_test_x conftest$ac_exeext; then
10245 ac_cv_lib_pthreads_cma_open=yes
10246 else
10247 echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10249
10250 ac_cv_lib_pthreads_cma_open=no
10251 fi
10252
10253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10254 conftest$ac_exeext conftest.$ac_ext
10255 LIBS=$ac_check_lib_save_LIBS
10256 fi
10257 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10258 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10259 if test $ac_cv_lib_pthreads_cma_open = yes; then
10260 cat >>confdefs.h <<_ACEOF
10261 #define HAVE_LIBPTHREADS 1
10262 _ACEOF
10263
10264 LIBS="-lpthreads $LIBS"
10265
10266 fi
10267
10268
10269 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10270 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10271 if test -d /usr/X386/include; then
10272 HAVE_XFREE386=yes
10273 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10274 else
10275 HAVE_XFREE386=no
10276 fi
10277 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10278 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10279
10280
10281 case ${host_os} in
10282 aix*)
10283 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10284 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10285 if test "${gdb_cv_bigtoc+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10287 else
10288
10289 case $GCC in
10290 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10291 *) gdb_cv_bigtoc=-bbigtoc ;;
10292 esac
10293
10294 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10295 cat >conftest.$ac_ext <<_ACEOF
10296 /* confdefs.h. */
10297 _ACEOF
10298 cat confdefs.h >>conftest.$ac_ext
10299 cat >>conftest.$ac_ext <<_ACEOF
10300 /* end confdefs.h. */
10301
10302 int
10303 main ()
10304 {
10305 int i;
10306 ;
10307 return 0;
10308 }
10309 _ACEOF
10310 rm -f conftest.$ac_objext conftest$ac_exeext
10311 if { (ac_try="$ac_link"
10312 case "(($ac_try" in
10313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314 *) ac_try_echo=$ac_try;;
10315 esac
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_link") 2>conftest.er1
10318 ac_status=$?
10319 grep -v '^ *+' conftest.er1 >conftest.err
10320 rm -f conftest.er1
10321 cat conftest.err >&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } && {
10324 test -z "$ac_c_werror_flag" ||
10325 test ! -s conftest.err
10326 } && test -s conftest$ac_exeext &&
10327 $as_test_x conftest$ac_exeext; then
10328 :
10329 else
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10332
10333 gdb_cv_bigtoc=
10334 fi
10335
10336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10337 conftest$ac_exeext conftest.$ac_ext
10338
10339 fi
10340 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10341 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10342 ;;
10343 esac
10344
10345 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10346 # used for the tests that follow. We set them back to REAL_CFLAGS and
10347 # REAL_CPPFLAGS later on.
10348
10349 REAL_CPPFLAGS="$CPPFLAGS"
10350
10351 if test "${HAVE_X11}" = "yes"; then
10352 DEFS="$C_SWITCH_X_SITE $DEFS"
10353 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10354 LIBS="$LIBX $LIBS"
10355 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10356 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10357
10358 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10359 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10360 # but it's more convenient here to set LD_RUN_PATH
10361 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10362 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10363 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10364 export LD_RUN_PATH
10365 fi
10366
10367 if test "${opsys}" = "gnu-linux"; then
10368 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10369 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10370 cat >conftest.$ac_ext <<_ACEOF
10371 /* confdefs.h. */
10372 _ACEOF
10373 cat confdefs.h >>conftest.$ac_ext
10374 cat >>conftest.$ac_ext <<_ACEOF
10375 /* end confdefs.h. */
10376
10377 int
10378 main ()
10379 {
10380 XOpenDisplay ("foo");
10381 ;
10382 return 0;
10383 }
10384 _ACEOF
10385 rm -f conftest.$ac_objext conftest$ac_exeext
10386 if { (ac_try="$ac_link"
10387 case "(($ac_try" in
10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10390 esac
10391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10392 (eval "$ac_link") 2>conftest.er1
10393 ac_status=$?
10394 grep -v '^ *+' conftest.er1 >conftest.err
10395 rm -f conftest.er1
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } && {
10399 test -z "$ac_c_werror_flag" ||
10400 test ! -s conftest.err
10401 } && test -s conftest$ac_exeext &&
10402 $as_test_x conftest$ac_exeext; then
10403 xlinux_first_failure=no
10404 else
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10407
10408 xlinux_first_failure=yes
10409 fi
10410
10411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10412 conftest$ac_exeext conftest.$ac_ext
10413 if test "${xlinux_first_failure}" = "yes"; then
10414 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10415 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10416 OLD_CPPFLAGS="$CPPFLAGS"
10417 OLD_LIBS="$LIBS"
10418 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10419 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10420 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10421 LIBS="$LIBS -b i486-linuxaout"
10422 cat >conftest.$ac_ext <<_ACEOF
10423 /* confdefs.h. */
10424 _ACEOF
10425 cat confdefs.h >>conftest.$ac_ext
10426 cat >>conftest.$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10428
10429 int
10430 main ()
10431 {
10432 XOpenDisplay ("foo");
10433 ;
10434 return 0;
10435 }
10436 _ACEOF
10437 rm -f conftest.$ac_objext conftest$ac_exeext
10438 if { (ac_try="$ac_link"
10439 case "(($ac_try" in
10440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10441 *) ac_try_echo=$ac_try;;
10442 esac
10443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10444 (eval "$ac_link") 2>conftest.er1
10445 ac_status=$?
10446 grep -v '^ *+' conftest.er1 >conftest.err
10447 rm -f conftest.er1
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } && {
10451 test -z "$ac_c_werror_flag" ||
10452 test ! -s conftest.err
10453 } && test -s conftest$ac_exeext &&
10454 $as_test_x conftest$ac_exeext; then
10455 xlinux_second_failure=no
10456 else
10457 echo "$as_me: failed program was:" >&5
10458 sed 's/^/| /' conftest.$ac_ext >&5
10459
10460 xlinux_second_failure=yes
10461 fi
10462
10463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10464 conftest$ac_exeext conftest.$ac_ext
10465 if test "${xlinux_second_failure}" = "yes"; then
10466 # If we get the same failure with -b, there is no use adding -b.
10467 # So take it out. This plays safe.
10468 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10469 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10470 CPPFLAGS="$OLD_CPPFLAGS"
10471 LIBS="$OLD_LIBS"
10472 { echo "$as_me:$LINENO: result: no" >&5
10473 echo "${ECHO_T}no" >&6; }
10474 else
10475 { echo "$as_me:$LINENO: result: yes" >&5
10476 echo "${ECHO_T}yes" >&6; }
10477 fi
10478 else
10479 { echo "$as_me:$LINENO: result: no" >&5
10480 echo "${ECHO_T}no" >&6; }
10481 fi
10482 fi
10483
10484 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10485 # header files included from there.
10486 { echo "$as_me:$LINENO: checking for Xkb" >&5
10487 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10488 cat >conftest.$ac_ext <<_ACEOF
10489 /* confdefs.h. */
10490 _ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10494 #include <X11/Xlib.h>
10495 #include <X11/XKBlib.h>
10496 int
10497 main ()
10498 {
10499 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10500 ;
10501 return 0;
10502 }
10503 _ACEOF
10504 rm -f conftest.$ac_objext conftest$ac_exeext
10505 if { (ac_try="$ac_link"
10506 case "(($ac_try" in
10507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508 *) ac_try_echo=$ac_try;;
10509 esac
10510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511 (eval "$ac_link") 2>conftest.er1
10512 ac_status=$?
10513 grep -v '^ *+' conftest.er1 >conftest.err
10514 rm -f conftest.er1
10515 cat conftest.err >&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } && {
10518 test -z "$ac_c_werror_flag" ||
10519 test ! -s conftest.err
10520 } && test -s conftest$ac_exeext &&
10521 $as_test_x conftest$ac_exeext; then
10522 emacs_xkb=yes
10523 else
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10526
10527 emacs_xkb=no
10528 fi
10529
10530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10531 conftest$ac_exeext conftest.$ac_ext
10532 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10533 echo "${ECHO_T}$emacs_xkb" >&6; }
10534 if test $emacs_xkb = yes; then
10535
10536 cat >>confdefs.h <<\_ACEOF
10537 #define HAVE_XKBGETKEYBOARD 1
10538 _ACEOF
10539
10540 fi
10541
10542
10543
10544
10545
10546 for ac_func in XrmSetDatabase XScreenResourceString \
10547 XScreenNumberOfScreen XSetWMProtocols
10548 do
10549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10552 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10553 echo $ECHO_N "(cached) $ECHO_C" >&6
10554 else
10555 cat >conftest.$ac_ext <<_ACEOF
10556 /* confdefs.h. */
10557 _ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10563 #define $ac_func innocuous_$ac_func
10564
10565 /* System header to define __stub macros and hopefully few prototypes,
10566 which can conflict with char $ac_func (); below.
10567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10568 <limits.h> exists even on freestanding compilers. */
10569
10570 #ifdef __STDC__
10571 # include <limits.h>
10572 #else
10573 # include <assert.h>
10574 #endif
10575
10576 #undef $ac_func
10577
10578 /* Override any GCC internal prototype to avoid an error.
10579 Use char because int might match the return type of a GCC
10580 builtin and then its argument prototype would still apply. */
10581 #ifdef __cplusplus
10582 extern "C"
10583 #endif
10584 char $ac_func ();
10585 /* The GNU C library defines this for functions which it implements
10586 to always fail with ENOSYS. Some functions are actually named
10587 something starting with __ and the normal name is an alias. */
10588 #if defined __stub_$ac_func || defined __stub___$ac_func
10589 choke me
10590 #endif
10591
10592 int
10593 main ()
10594 {
10595 return $ac_func ();
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 eval "$as_ac_var=yes"
10619 else
10620 echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10622
10623 eval "$as_ac_var=no"
10624 fi
10625
10626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10627 conftest$ac_exeext conftest.$ac_ext
10628 fi
10629 ac_res=`eval echo '${'$as_ac_var'}'`
10630 { echo "$as_me:$LINENO: result: $ac_res" >&5
10631 echo "${ECHO_T}$ac_res" >&6; }
10632 if test `eval echo '${'$as_ac_var'}'` = yes; then
10633 cat >>confdefs.h <<_ACEOF
10634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10635 _ACEOF
10636
10637 fi
10638 done
10639
10640 fi
10641
10642 if test "${window_system}" = "x11"; then
10643 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10644 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10645 if test "${emacs_cv_x11_version_6+set}" = set; then
10646 echo $ECHO_N "(cached) $ECHO_C" >&6
10647 else
10648 cat >conftest.$ac_ext <<_ACEOF
10649 /* confdefs.h. */
10650 _ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10654 #include <X11/Xlib.h>
10655 int
10656 main ()
10657 {
10658 #if XlibSpecificationRelease < 6
10659 fail;
10660 #endif
10661
10662 ;
10663 return 0;
10664 }
10665 _ACEOF
10666 rm -f conftest.$ac_objext conftest$ac_exeext
10667 if { (ac_try="$ac_link"
10668 case "(($ac_try" in
10669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10670 *) ac_try_echo=$ac_try;;
10671 esac
10672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10673 (eval "$ac_link") 2>conftest.er1
10674 ac_status=$?
10675 grep -v '^ *+' conftest.er1 >conftest.err
10676 rm -f conftest.er1
10677 cat conftest.err >&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } && {
10680 test -z "$ac_c_werror_flag" ||
10681 test ! -s conftest.err
10682 } && test -s conftest$ac_exeext &&
10683 $as_test_x conftest$ac_exeext; then
10684 emacs_cv_x11_version_6=yes
10685 else
10686 echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.$ac_ext >&5
10688
10689 emacs_cv_x11_version_6=no
10690 fi
10691
10692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10693 conftest$ac_exeext conftest.$ac_ext
10694 fi
10695
10696 if test $emacs_cv_x11_version_6 = yes; then
10697 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10698 echo "${ECHO_T}6 or newer" >&6; }
10699
10700 cat >>confdefs.h <<\_ACEOF
10701 #define HAVE_X11R6 1
10702 _ACEOF
10703
10704 else
10705 { echo "$as_me:$LINENO: result: before 6" >&5
10706 echo "${ECHO_T}before 6" >&6; }
10707 fi
10708 fi
10709
10710
10711 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10712 HAVE_RSVG=no
10713 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
10714 if test "${with_rsvg}" != "no"; then
10715 RSVG_REQUIRED=2.0.0
10716 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10717
10718
10719 succeeded=no
10720
10721 # Extract the first word of "pkg-config", so it can be a program name with args.
10722 set dummy pkg-config; ac_word=$2
10723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10725 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10727 else
10728 case $PKG_CONFIG in
10729 [\\/]* | ?:[\\/]*)
10730 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10731 ;;
10732 *)
10733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10734 for as_dir in $PATH
10735 do
10736 IFS=$as_save_IFS
10737 test -z "$as_dir" && as_dir=.
10738 for ac_exec_ext in '' $ac_executable_extensions; do
10739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10740 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10742 break 2
10743 fi
10744 done
10745 done
10746 IFS=$as_save_IFS
10747
10748 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10749 ;;
10750 esac
10751 fi
10752 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10753 if test -n "$PKG_CONFIG"; then
10754 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10755 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10756 else
10757 { echo "$as_me:$LINENO: result: no" >&5
10758 echo "${ECHO_T}no" >&6; }
10759 fi
10760
10761
10762
10763 if test "$PKG_CONFIG" = "no" ; then
10764 :
10765 else
10766 PKG_CONFIG_MIN_VERSION=0.9.0
10767 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10768 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10769 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10770
10771 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10772 { echo "$as_me:$LINENO: result: yes" >&5
10773 echo "${ECHO_T}yes" >&6; }
10774 succeeded=yes
10775
10776 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10777 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10778 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10779 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10780 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10781
10782 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10783 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10784 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10785 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10786 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10787 else
10788 { echo "$as_me:$LINENO: result: no" >&5
10789 echo "${ECHO_T}no" >&6; }
10790 RSVG_CFLAGS=""
10791 RSVG_LIBS=""
10792 ## If we have a custom action on failure, don't print errors, but
10793 ## do set a variable so people can do so.
10794 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10795
10796 fi
10797
10798
10799
10800 else
10801 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10802 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10803 fi
10804 fi
10805
10806 if test $succeeded = yes; then
10807 :
10808 else
10809 :
10810 fi
10811
10812
10813
10814
10815 if test ".${RSVG_CFLAGS}" != "."; then
10816 HAVE_RSVG=yes
10817
10818 cat >>confdefs.h <<\_ACEOF
10819 #define HAVE_RSVG 1
10820 _ACEOF
10821
10822 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10823 LIBS="$RSVG_LIBS $LIBS"
10824 fi
10825 fi
10826 fi
10827
10828
10829 HAVE_GTK=no
10830 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10831 USE_X_TOOLKIT=none
10832 fi
10833 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
10834 test "$USE_X_TOOLKIT" = "maybe"; then
10835 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10836 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10837 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10838 { (exit 1); exit 1; }; };
10839 fi
10840 GLIB_REQUIRED=2.6
10841 GTK_REQUIRED=2.6
10842 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10843
10844
10845 succeeded=no
10846
10847 # Extract the first word of "pkg-config", so it can be a program name with args.
10848 set dummy pkg-config; ac_word=$2
10849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10851 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10853 else
10854 case $PKG_CONFIG in
10855 [\\/]* | ?:[\\/]*)
10856 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10857 ;;
10858 *)
10859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860 for as_dir in $PATH
10861 do
10862 IFS=$as_save_IFS
10863 test -z "$as_dir" && as_dir=.
10864 for ac_exec_ext in '' $ac_executable_extensions; do
10865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10866 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10868 break 2
10869 fi
10870 done
10871 done
10872 IFS=$as_save_IFS
10873
10874 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10875 ;;
10876 esac
10877 fi
10878 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10879 if test -n "$PKG_CONFIG"; then
10880 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10881 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10882 else
10883 { echo "$as_me:$LINENO: result: no" >&5
10884 echo "${ECHO_T}no" >&6; }
10885 fi
10886
10887
10888
10889 if test "$PKG_CONFIG" = "no" ; then
10890 pkg_check_gtk=no
10891 else
10892 PKG_CONFIG_MIN_VERSION=0.9.0
10893 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10894 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10895 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10896
10897 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10898 { echo "$as_me:$LINENO: result: yes" >&5
10899 echo "${ECHO_T}yes" >&6; }
10900 succeeded=yes
10901
10902 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10903 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10904 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10905 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10906 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10907
10908 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10909 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10910 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10911 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10912 echo "${ECHO_T}$GTK_LIBS" >&6; }
10913 else
10914 { echo "$as_me:$LINENO: result: no" >&5
10915 echo "${ECHO_T}no" >&6; }
10916 GTK_CFLAGS=""
10917 GTK_LIBS=""
10918 ## If we have a custom action on failure, don't print errors, but
10919 ## do set a variable so people can do so.
10920 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10921
10922 fi
10923
10924
10925
10926 else
10927 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10928 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10929 fi
10930 fi
10931
10932 if test $succeeded = yes; then
10933 pkg_check_gtk=yes
10934 else
10935 pkg_check_gtk=no
10936 fi
10937
10938 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10939 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10940 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10941 { (exit 1); exit 1; }; }
10942 fi
10943 fi
10944
10945
10946 if test x"$pkg_check_gtk" = xyes; then
10947
10948
10949
10950 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10951 CFLAGS="$CFLAGS $GTK_CFLAGS"
10952 LIBS="$GTK_LIBS $LIBS"
10953 GTK_COMPILES=no
10954
10955 for ac_func in gtk_main
10956 do
10957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10958 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10962 else
10963 cat >conftest.$ac_ext <<_ACEOF
10964 /* confdefs.h. */
10965 _ACEOF
10966 cat confdefs.h >>conftest.$ac_ext
10967 cat >>conftest.$ac_ext <<_ACEOF
10968 /* end confdefs.h. */
10969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10971 #define $ac_func innocuous_$ac_func
10972
10973 /* System header to define __stub macros and hopefully few prototypes,
10974 which can conflict with char $ac_func (); below.
10975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10976 <limits.h> exists even on freestanding compilers. */
10977
10978 #ifdef __STDC__
10979 # include <limits.h>
10980 #else
10981 # include <assert.h>
10982 #endif
10983
10984 #undef $ac_func
10985
10986 /* Override any GCC internal prototype to avoid an error.
10987 Use char because int might match the return type of a GCC
10988 builtin and then its argument prototype would still apply. */
10989 #ifdef __cplusplus
10990 extern "C"
10991 #endif
10992 char $ac_func ();
10993 /* The GNU C library defines this for functions which it implements
10994 to always fail with ENOSYS. Some functions are actually named
10995 something starting with __ and the normal name is an alias. */
10996 #if defined __stub_$ac_func || defined __stub___$ac_func
10997 choke me
10998 #endif
10999
11000 int
11001 main ()
11002 {
11003 return $ac_func ();
11004 ;
11005 return 0;
11006 }
11007 _ACEOF
11008 rm -f conftest.$ac_objext conftest$ac_exeext
11009 if { (ac_try="$ac_link"
11010 case "(($ac_try" in
11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11013 esac
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015 (eval "$ac_link") 2>conftest.er1
11016 ac_status=$?
11017 grep -v '^ *+' conftest.er1 >conftest.err
11018 rm -f conftest.er1
11019 cat conftest.err >&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } && {
11022 test -z "$ac_c_werror_flag" ||
11023 test ! -s conftest.err
11024 } && test -s conftest$ac_exeext &&
11025 $as_test_x conftest$ac_exeext; then
11026 eval "$as_ac_var=yes"
11027 else
11028 echo "$as_me: failed program was:" >&5
11029 sed 's/^/| /' conftest.$ac_ext >&5
11030
11031 eval "$as_ac_var=no"
11032 fi
11033
11034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11035 conftest$ac_exeext conftest.$ac_ext
11036 fi
11037 ac_res=`eval echo '${'$as_ac_var'}'`
11038 { echo "$as_me:$LINENO: result: $ac_res" >&5
11039 echo "${ECHO_T}$ac_res" >&6; }
11040 if test `eval echo '${'$as_ac_var'}'` = yes; then
11041 cat >>confdefs.h <<_ACEOF
11042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11043 _ACEOF
11044 GTK_COMPILES=yes
11045 fi
11046 done
11047
11048 if test "${GTK_COMPILES}" != "yes"; then
11049 if test "$USE_X_TOOLKIT" != "maybe"; then
11050 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11051 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11052 { (exit 1); exit 1; }; };
11053 fi
11054 else
11055 HAVE_GTK=yes
11056
11057 cat >>confdefs.h <<\_ACEOF
11058 #define HAVE_GTK 1
11059 _ACEOF
11060
11061 USE_X_TOOLKIT=none
11062 fi
11063
11064 fi
11065
11066
11067 if test "${HAVE_GTK}" = "yes"; then
11068
11069 if test "$with_toolkit_scroll_bars" != no; then
11070 with_toolkit_scroll_bars=yes
11071 fi
11072
11073 HAVE_GTK_MULTIDISPLAY=no
11074
11075 for ac_func in gdk_display_open
11076 do
11077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11078 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11082 else
11083 cat >conftest.$ac_ext <<_ACEOF
11084 /* confdefs.h. */
11085 _ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11091 #define $ac_func innocuous_$ac_func
11092
11093 /* System header to define __stub macros and hopefully few prototypes,
11094 which can conflict with char $ac_func (); below.
11095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11096 <limits.h> exists even on freestanding compilers. */
11097
11098 #ifdef __STDC__
11099 # include <limits.h>
11100 #else
11101 # include <assert.h>
11102 #endif
11103
11104 #undef $ac_func
11105
11106 /* Override any GCC internal prototype to avoid an error.
11107 Use char because int might match the return type of a GCC
11108 builtin and then its argument prototype would still apply. */
11109 #ifdef __cplusplus
11110 extern "C"
11111 #endif
11112 char $ac_func ();
11113 /* The GNU C library defines this for functions which it implements
11114 to always fail with ENOSYS. Some functions are actually named
11115 something starting with __ and the normal name is an alias. */
11116 #if defined __stub_$ac_func || defined __stub___$ac_func
11117 choke me
11118 #endif
11119
11120 int
11121 main ()
11122 {
11123 return $ac_func ();
11124 ;
11125 return 0;
11126 }
11127 _ACEOF
11128 rm -f conftest.$ac_objext conftest$ac_exeext
11129 if { (ac_try="$ac_link"
11130 case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11133 esac
11134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_link") 2>conftest.er1
11136 ac_status=$?
11137 grep -v '^ *+' conftest.er1 >conftest.err
11138 rm -f conftest.er1
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } && {
11142 test -z "$ac_c_werror_flag" ||
11143 test ! -s conftest.err
11144 } && test -s conftest$ac_exeext &&
11145 $as_test_x conftest$ac_exeext; then
11146 eval "$as_ac_var=yes"
11147 else
11148 echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11150
11151 eval "$as_ac_var=no"
11152 fi
11153
11154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11155 conftest$ac_exeext conftest.$ac_ext
11156 fi
11157 ac_res=`eval echo '${'$as_ac_var'}'`
11158 { echo "$as_me:$LINENO: result: $ac_res" >&5
11159 echo "${ECHO_T}$ac_res" >&6; }
11160 if test `eval echo '${'$as_ac_var'}'` = yes; then
11161 cat >>confdefs.h <<_ACEOF
11162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11163 _ACEOF
11164 HAVE_GTK_MULTIDISPLAY=yes
11165 fi
11166 done
11167
11168 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11169
11170 cat >>confdefs.h <<\_ACEOF
11171 #define HAVE_GTK_MULTIDISPLAY 1
11172 _ACEOF
11173
11174 fi
11175
11176 HAVE_GTK_FILE_SELECTION=no
11177
11178 for ac_func in gtk_file_selection_new
11179 do
11180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11181 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11183 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11185 else
11186 cat >conftest.$ac_ext <<_ACEOF
11187 /* confdefs.h. */
11188 _ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11194 #define $ac_func innocuous_$ac_func
11195
11196 /* System header to define __stub macros and hopefully few prototypes,
11197 which can conflict with char $ac_func (); below.
11198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11199 <limits.h> exists even on freestanding compilers. */
11200
11201 #ifdef __STDC__
11202 # include <limits.h>
11203 #else
11204 # include <assert.h>
11205 #endif
11206
11207 #undef $ac_func
11208
11209 /* Override any GCC internal prototype to avoid an error.
11210 Use char because int might match the return type of a GCC
11211 builtin and then its argument prototype would still apply. */
11212 #ifdef __cplusplus
11213 extern "C"
11214 #endif
11215 char $ac_func ();
11216 /* The GNU C library defines this for functions which it implements
11217 to always fail with ENOSYS. Some functions are actually named
11218 something starting with __ and the normal name is an alias. */
11219 #if defined __stub_$ac_func || defined __stub___$ac_func
11220 choke me
11221 #endif
11222
11223 int
11224 main ()
11225 {
11226 return $ac_func ();
11227 ;
11228 return 0;
11229 }
11230 _ACEOF
11231 rm -f conftest.$ac_objext conftest$ac_exeext
11232 if { (ac_try="$ac_link"
11233 case "(($ac_try" in
11234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11235 *) ac_try_echo=$ac_try;;
11236 esac
11237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11238 (eval "$ac_link") 2>conftest.er1
11239 ac_status=$?
11240 grep -v '^ *+' conftest.er1 >conftest.err
11241 rm -f conftest.er1
11242 cat conftest.err >&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } && {
11245 test -z "$ac_c_werror_flag" ||
11246 test ! -s conftest.err
11247 } && test -s conftest$ac_exeext &&
11248 $as_test_x conftest$ac_exeext; then
11249 eval "$as_ac_var=yes"
11250 else
11251 echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11253
11254 eval "$as_ac_var=no"
11255 fi
11256
11257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11258 conftest$ac_exeext conftest.$ac_ext
11259 fi
11260 ac_res=`eval echo '${'$as_ac_var'}'`
11261 { echo "$as_me:$LINENO: result: $ac_res" >&5
11262 echo "${ECHO_T}$ac_res" >&6; }
11263 if test `eval echo '${'$as_ac_var'}'` = yes; then
11264 cat >>confdefs.h <<_ACEOF
11265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11266 _ACEOF
11267 HAVE_GTK_FILE_SELECTION=yes
11268 fi
11269 done
11270
11271
11272 HAVE_GTK_FILE_CHOOSER=no
11273
11274 for ac_func in gtk_file_chooser_dialog_new
11275 do
11276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11281 else
11282 cat >conftest.$ac_ext <<_ACEOF
11283 /* confdefs.h. */
11284 _ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11290 #define $ac_func innocuous_$ac_func
11291
11292 /* System header to define __stub macros and hopefully few prototypes,
11293 which can conflict with char $ac_func (); below.
11294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11295 <limits.h> exists even on freestanding compilers. */
11296
11297 #ifdef __STDC__
11298 # include <limits.h>
11299 #else
11300 # include <assert.h>
11301 #endif
11302
11303 #undef $ac_func
11304
11305 /* Override any GCC internal prototype to avoid an error.
11306 Use char because int might match the return type of a GCC
11307 builtin and then its argument prototype would still apply. */
11308 #ifdef __cplusplus
11309 extern "C"
11310 #endif
11311 char $ac_func ();
11312 /* The GNU C library defines this for functions which it implements
11313 to always fail with ENOSYS. Some functions are actually named
11314 something starting with __ and the normal name is an alias. */
11315 #if defined __stub_$ac_func || defined __stub___$ac_func
11316 choke me
11317 #endif
11318
11319 int
11320 main ()
11321 {
11322 return $ac_func ();
11323 ;
11324 return 0;
11325 }
11326 _ACEOF
11327 rm -f conftest.$ac_objext conftest$ac_exeext
11328 if { (ac_try="$ac_link"
11329 case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11332 esac
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_link") 2>conftest.er1
11335 ac_status=$?
11336 grep -v '^ *+' conftest.er1 >conftest.err
11337 rm -f conftest.er1
11338 cat conftest.err >&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } && {
11341 test -z "$ac_c_werror_flag" ||
11342 test ! -s conftest.err
11343 } && test -s conftest$ac_exeext &&
11344 $as_test_x conftest$ac_exeext; then
11345 eval "$as_ac_var=yes"
11346 else
11347 echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11349
11350 eval "$as_ac_var=no"
11351 fi
11352
11353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11354 conftest$ac_exeext conftest.$ac_ext
11355 fi
11356 ac_res=`eval echo '${'$as_ac_var'}'`
11357 { echo "$as_me:$LINENO: result: $ac_res" >&5
11358 echo "${ECHO_T}$ac_res" >&6; }
11359 if test `eval echo '${'$as_ac_var'}'` = yes; then
11360 cat >>confdefs.h <<_ACEOF
11361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11362 _ACEOF
11363 HAVE_GTK_FILE_CHOOSER=yes
11364 fi
11365 done
11366
11367
11368 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11369 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11370
11371 cat >>confdefs.h <<\_ACEOF
11372 #define HAVE_GTK_FILE_BOTH 1
11373 _ACEOF
11374
11375 fi
11376
11377 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11378 HAVE_GTK_AND_PTHREAD=no
11379
11380 for ac_header in pthread.h
11381 do
11382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11387 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 fi
11389 ac_res=`eval echo '${'$as_ac_Header'}'`
11390 { echo "$as_me:$LINENO: result: $ac_res" >&5
11391 echo "${ECHO_T}$ac_res" >&6; }
11392 else
11393 # Is the header compilable?
11394 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11396 cat >conftest.$ac_ext <<_ACEOF
11397 /* confdefs.h. */
11398 _ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11402 $ac_includes_default
11403 #include <$ac_header>
11404 _ACEOF
11405 rm -f conftest.$ac_objext
11406 if { (ac_try="$ac_compile"
11407 case "(($ac_try" in
11408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11409 *) ac_try_echo=$ac_try;;
11410 esac
11411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11412 (eval "$ac_compile") 2>conftest.er1
11413 ac_status=$?
11414 grep -v '^ *+' conftest.er1 >conftest.err
11415 rm -f conftest.er1
11416 cat conftest.err >&5
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); } && {
11419 test -z "$ac_c_werror_flag" ||
11420 test ! -s conftest.err
11421 } && test -s conftest.$ac_objext; then
11422 ac_header_compiler=yes
11423 else
11424 echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.$ac_ext >&5
11426
11427 ac_header_compiler=no
11428 fi
11429
11430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11432 echo "${ECHO_T}$ac_header_compiler" >&6; }
11433
11434 # Is the header present?
11435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11437 cat >conftest.$ac_ext <<_ACEOF
11438 /* confdefs.h. */
11439 _ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11443 #include <$ac_header>
11444 _ACEOF
11445 if { (ac_try="$ac_cpp conftest.$ac_ext"
11446 case "(($ac_try" in
11447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448 *) ac_try_echo=$ac_try;;
11449 esac
11450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11452 ac_status=$?
11453 grep -v '^ *+' conftest.er1 >conftest.err
11454 rm -f conftest.er1
11455 cat conftest.err >&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } >/dev/null && {
11458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11459 test ! -s conftest.err
11460 }; then
11461 ac_header_preproc=yes
11462 else
11463 echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.$ac_ext >&5
11465
11466 ac_header_preproc=no
11467 fi
11468
11469 rm -f conftest.err conftest.$ac_ext
11470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11471 echo "${ECHO_T}$ac_header_preproc" >&6; }
11472
11473 # So? What about this header?
11474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11475 yes:no: )
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11480 ac_header_preproc=yes
11481 ;;
11482 no:yes:* )
11483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11495
11496 ;;
11497 esac
11498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11502 else
11503 eval "$as_ac_Header=\$ac_header_preproc"
11504 fi
11505 ac_res=`eval echo '${'$as_ac_Header'}'`
11506 { echo "$as_me:$LINENO: result: $ac_res" >&5
11507 echo "${ECHO_T}$ac_res" >&6; }
11508
11509 fi
11510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11511 cat >>confdefs.h <<_ACEOF
11512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11513 _ACEOF
11514
11515 fi
11516
11517 done
11518
11519 if test "$ac_cv_header_pthread_h"; then
11520 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11521 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11522 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11523 echo $ECHO_N "(cached) $ECHO_C" >&6
11524 else
11525 ac_check_lib_save_LIBS=$LIBS
11526 LIBS="-lpthread $LIBS"
11527 cat >conftest.$ac_ext <<_ACEOF
11528 /* confdefs.h. */
11529 _ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h. */
11533
11534 /* Override any GCC internal prototype to avoid an error.
11535 Use char because int might match the return type of a GCC
11536 builtin and then its argument prototype would still apply. */
11537 #ifdef __cplusplus
11538 extern "C"
11539 #endif
11540 char pthread_self ();
11541 int
11542 main ()
11543 {
11544 return pthread_self ();
11545 ;
11546 return 0;
11547 }
11548 _ACEOF
11549 rm -f conftest.$ac_objext conftest$ac_exeext
11550 if { (ac_try="$ac_link"
11551 case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11554 esac
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_link") 2>conftest.er1
11557 ac_status=$?
11558 grep -v '^ *+' conftest.er1 >conftest.err
11559 rm -f conftest.er1
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } && {
11563 test -z "$ac_c_werror_flag" ||
11564 test ! -s conftest.err
11565 } && test -s conftest$ac_exeext &&
11566 $as_test_x conftest$ac_exeext; then
11567 ac_cv_lib_pthread_pthread_self=yes
11568 else
11569 echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11571
11572 ac_cv_lib_pthread_pthread_self=no
11573 fi
11574
11575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11576 conftest$ac_exeext conftest.$ac_ext
11577 LIBS=$ac_check_lib_save_LIBS
11578 fi
11579 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11580 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11581 if test $ac_cv_lib_pthread_pthread_self = yes; then
11582 HAVE_GTK_AND_PTHREAD=yes
11583 fi
11584
11585 fi
11586 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11587 case "${canonical}" in
11588 *-hpux*) ;;
11589 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11590 esac
11591
11592 cat >>confdefs.h <<\_ACEOF
11593 #define HAVE_GTK_AND_PTHREAD 1
11594 _ACEOF
11595
11596 fi
11597 fi
11598 fi
11599
11600 HAVE_DBUS=no
11601 if test "${with_dbus}" = "yes"; then
11602
11603 succeeded=no
11604
11605 # Extract the first word of "pkg-config", so it can be a program name with args.
11606 set dummy pkg-config; ac_word=$2
11607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11609 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11611 else
11612 case $PKG_CONFIG in
11613 [\\/]* | ?:[\\/]*)
11614 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11615 ;;
11616 *)
11617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618 for as_dir in $PATH
11619 do
11620 IFS=$as_save_IFS
11621 test -z "$as_dir" && as_dir=.
11622 for ac_exec_ext in '' $ac_executable_extensions; do
11623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11624 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11626 break 2
11627 fi
11628 done
11629 done
11630 IFS=$as_save_IFS
11631
11632 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11633 ;;
11634 esac
11635 fi
11636 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11637 if test -n "$PKG_CONFIG"; then
11638 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11639 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11640 else
11641 { echo "$as_me:$LINENO: result: no" >&5
11642 echo "${ECHO_T}no" >&6; }
11643 fi
11644
11645
11646
11647 if test "$PKG_CONFIG" = "no" ; then
11648 HAVE_DBUS=no
11649 else
11650 PKG_CONFIG_MIN_VERSION=0.9.0
11651 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11652 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11653 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11654
11655 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11656 { echo "$as_me:$LINENO: result: yes" >&5
11657 echo "${ECHO_T}yes" >&6; }
11658 succeeded=yes
11659
11660 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11661 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11662 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11663 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11664 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11665
11666 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11667 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11668 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11669 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11670 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11671 else
11672 { echo "$as_me:$LINENO: result: no" >&5
11673 echo "${ECHO_T}no" >&6; }
11674 DBUS_CFLAGS=""
11675 DBUS_LIBS=""
11676 ## If we have a custom action on failure, don't print errors, but
11677 ## do set a variable so people can do so.
11678 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11679
11680 fi
11681
11682
11683
11684 else
11685 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11686 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11687 fi
11688 fi
11689
11690 if test $succeeded = yes; then
11691 HAVE_DBUS=yes
11692 else
11693 HAVE_DBUS=no
11694 fi
11695
11696 if test "$HAVE_DBUS" = yes; then
11697
11698 cat >>confdefs.h <<\_ACEOF
11699 #define HAVE_DBUS 1
11700 _ACEOF
11701
11702 fi
11703 fi
11704
11705 HAVE_XAW3D=no
11706 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11707 if test "$with_xaw3d" != no; then
11708 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11709 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11710 if test "${emacs_cv_xaw3d+set}" = set; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713 cat >conftest.$ac_ext <<_ACEOF
11714 /* confdefs.h. */
11715 _ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11719
11720 #include <X11/Intrinsic.h>
11721 #include <X11/Xaw3d/Simple.h>
11722 int
11723 main ()
11724 {
11725
11726 ;
11727 return 0;
11728 }
11729 _ACEOF
11730 rm -f conftest.$ac_objext conftest$ac_exeext
11731 if { (ac_try="$ac_link"
11732 case "(($ac_try" in
11733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11734 *) ac_try_echo=$ac_try;;
11735 esac
11736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11737 (eval "$ac_link") 2>conftest.er1
11738 ac_status=$?
11739 grep -v '^ *+' conftest.er1 >conftest.err
11740 rm -f conftest.er1
11741 cat conftest.err >&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } && {
11744 test -z "$ac_c_werror_flag" ||
11745 test ! -s conftest.err
11746 } && test -s conftest$ac_exeext &&
11747 $as_test_x conftest$ac_exeext; then
11748 emacs_cv_xaw3d=yes
11749 else
11750 echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.$ac_ext >&5
11752
11753 emacs_cv_xaw3d=no
11754 fi
11755
11756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11757 conftest$ac_exeext conftest.$ac_ext
11758 fi
11759
11760 else
11761 emacs_cv_xaw3d=no
11762 fi
11763 if test $emacs_cv_xaw3d = yes; then
11764 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11765 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11766 USE_X_TOOLKIT=LUCID
11767 HAVE_XAW3D=yes
11768
11769 cat >>confdefs.h <<\_ACEOF
11770 #define HAVE_XAW3D 1
11771 _ACEOF
11772
11773 else
11774 { echo "$as_me:$LINENO: result: no" >&5
11775 echo "${ECHO_T}no" >&6; }
11776 { echo "$as_me:$LINENO: checking for libXaw" >&5
11777 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11778 if test "${emacs_cv_xaw+set}" = set; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
11780 else
11781 cat >conftest.$ac_ext <<_ACEOF
11782 /* confdefs.h. */
11783 _ACEOF
11784 cat confdefs.h >>conftest.$ac_ext
11785 cat >>conftest.$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11787
11788 #include <X11/Intrinsic.h>
11789 #include <X11/Xaw/Simple.h>
11790 int
11791 main ()
11792 {
11793
11794 ;
11795 return 0;
11796 }
11797 _ACEOF
11798 rm -f conftest.$ac_objext conftest$ac_exeext
11799 if { (ac_try="$ac_link"
11800 case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11803 esac
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_link") 2>conftest.er1
11806 ac_status=$?
11807 grep -v '^ *+' conftest.er1 >conftest.err
11808 rm -f conftest.er1
11809 cat conftest.err >&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); } && {
11812 test -z "$ac_c_werror_flag" ||
11813 test ! -s conftest.err
11814 } && test -s conftest$ac_exeext &&
11815 $as_test_x conftest$ac_exeext; then
11816 emacs_cv_xaw=yes
11817 else
11818 echo "$as_me: failed program was:" >&5
11819 sed 's/^/| /' conftest.$ac_ext >&5
11820
11821 emacs_cv_xaw=no
11822 fi
11823
11824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11825 conftest$ac_exeext conftest.$ac_ext
11826 fi
11827
11828 if test $emacs_cv_xaw = yes; then
11829 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11830 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11831 USE_X_TOOLKIT=LUCID
11832 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11833 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11834 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11835 { (exit 1); exit 1; }; }
11836 else
11837 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11838 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11839 USE_X_TOOLKIT=none
11840 fi
11841 fi
11842 fi
11843
11844 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11845
11846 if test "${USE_X_TOOLKIT}" != "none"; then
11847 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11848 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11849 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11851 else
11852 cat >conftest.$ac_ext <<_ACEOF
11853 /* confdefs.h. */
11854 _ACEOF
11855 cat confdefs.h >>conftest.$ac_ext
11856 cat >>conftest.$ac_ext <<_ACEOF
11857 /* end confdefs.h. */
11858 #include <X11/Intrinsic.h>
11859 int
11860 main ()
11861 {
11862 #if XtSpecificationRelease < 6
11863 fail;
11864 #endif
11865
11866 ;
11867 return 0;
11868 }
11869 _ACEOF
11870 rm -f conftest.$ac_objext conftest$ac_exeext
11871 if { (ac_try="$ac_link"
11872 case "(($ac_try" in
11873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874 *) ac_try_echo=$ac_try;;
11875 esac
11876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11877 (eval "$ac_link") 2>conftest.er1
11878 ac_status=$?
11879 grep -v '^ *+' conftest.er1 >conftest.err
11880 rm -f conftest.er1
11881 cat conftest.err >&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } && {
11884 test -z "$ac_c_werror_flag" ||
11885 test ! -s conftest.err
11886 } && test -s conftest$ac_exeext &&
11887 $as_test_x conftest$ac_exeext; then
11888 emacs_cv_x11_toolkit_version_6=yes
11889 else
11890 echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11892
11893 emacs_cv_x11_toolkit_version_6=no
11894 fi
11895
11896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11897 conftest$ac_exeext conftest.$ac_ext
11898 fi
11899
11900 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11901 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11902 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11903 echo "${ECHO_T}6 or newer" >&6; }
11904
11905 cat >>confdefs.h <<\_ACEOF
11906 #define HAVE_X11XTR6 1
11907 _ACEOF
11908
11909 else
11910 { echo "$as_me:$LINENO: result: before 6" >&5
11911 echo "${ECHO_T}before 6" >&6; }
11912 fi
11913
11914 OLDLIBS="$LIBS"
11915 if test x$HAVE_X11XTR6 = xyes; then
11916 LIBS="-lXt -lSM -lICE $LIBS"
11917 else
11918 LIBS="-lXt $LIBS"
11919 fi
11920
11921 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11922 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11923 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11925 else
11926 ac_check_lib_save_LIBS=$LIBS
11927 LIBS="-lXmu $LIBS"
11928 cat >conftest.$ac_ext <<_ACEOF
11929 /* confdefs.h. */
11930 _ACEOF
11931 cat confdefs.h >>conftest.$ac_ext
11932 cat >>conftest.$ac_ext <<_ACEOF
11933 /* end confdefs.h. */
11934
11935 /* Override any GCC internal prototype to avoid an error.
11936 Use char because int might match the return type of a GCC
11937 builtin and then its argument prototype would still apply. */
11938 #ifdef __cplusplus
11939 extern "C"
11940 #endif
11941 char XmuConvertStandardSelection ();
11942 int
11943 main ()
11944 {
11945 return XmuConvertStandardSelection ();
11946 ;
11947 return 0;
11948 }
11949 _ACEOF
11950 rm -f conftest.$ac_objext conftest$ac_exeext
11951 if { (ac_try="$ac_link"
11952 case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11955 esac
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_link") 2>conftest.er1
11958 ac_status=$?
11959 grep -v '^ *+' conftest.er1 >conftest.err
11960 rm -f conftest.er1
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } && {
11964 test -z "$ac_c_werror_flag" ||
11965 test ! -s conftest.err
11966 } && test -s conftest$ac_exeext &&
11967 $as_test_x conftest$ac_exeext; then
11968 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11969 else
11970 echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11972
11973 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11974 fi
11975
11976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11977 conftest$ac_exeext conftest.$ac_ext
11978 LIBS=$ac_check_lib_save_LIBS
11979 fi
11980 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11981 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11982 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11983 cat >>confdefs.h <<_ACEOF
11984 #define HAVE_LIBXMU 1
11985 _ACEOF
11986
11987 LIBS="-lXmu $LIBS"
11988
11989 fi
11990
11991 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11992 fi
11993
11994 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11995 if test "${HAVE_X11}" = "yes"; then
11996 if test "${USE_X_TOOLKIT}" != "none"; then
11997
11998 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11999 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12000 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12003 ac_check_lib_save_LIBS=$LIBS
12004 LIBS="-lXext $LIBS"
12005 cat >conftest.$ac_ext <<_ACEOF
12006 /* confdefs.h. */
12007 _ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12011
12012 /* Override any GCC internal prototype to avoid an error.
12013 Use char because int might match the return type of a GCC
12014 builtin and then its argument prototype would still apply. */
12015 #ifdef __cplusplus
12016 extern "C"
12017 #endif
12018 char XShapeQueryExtension ();
12019 int
12020 main ()
12021 {
12022 return XShapeQueryExtension ();
12023 ;
12024 return 0;
12025 }
12026 _ACEOF
12027 rm -f conftest.$ac_objext conftest$ac_exeext
12028 if { (ac_try="$ac_link"
12029 case "(($ac_try" in
12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12032 esac
12033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034 (eval "$ac_link") 2>conftest.er1
12035 ac_status=$?
12036 grep -v '^ *+' conftest.er1 >conftest.err
12037 rm -f conftest.er1
12038 cat conftest.err >&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } && {
12041 test -z "$ac_c_werror_flag" ||
12042 test ! -s conftest.err
12043 } && test -s conftest$ac_exeext &&
12044 $as_test_x conftest$ac_exeext; then
12045 ac_cv_lib_Xext_XShapeQueryExtension=yes
12046 else
12047 echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12049
12050 ac_cv_lib_Xext_XShapeQueryExtension=no
12051 fi
12052
12053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12054 conftest$ac_exeext conftest.$ac_ext
12055 LIBS=$ac_check_lib_save_LIBS
12056 fi
12057 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12058 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12059 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12060 cat >>confdefs.h <<_ACEOF
12061 #define HAVE_LIBXEXT 1
12062 _ACEOF
12063
12064 LIBS="-lXext $LIBS"
12065
12066 fi
12067
12068 fi
12069 fi
12070
12071 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12072 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12073 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12074 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12076 else
12077 cat >conftest.$ac_ext <<_ACEOF
12078 /* confdefs.h. */
12079 _ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h. */
12083 #include <Xm/Xm.h>
12084 int
12085 main ()
12086 {
12087 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12088 int x = 5;
12089 #else
12090 Motif version prior to 2.1.
12091 #endif
12092 ;
12093 return 0;
12094 }
12095 _ACEOF
12096 rm -f conftest.$ac_objext
12097 if { (ac_try="$ac_compile"
12098 case "(($ac_try" in
12099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12100 *) ac_try_echo=$ac_try;;
12101 esac
12102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12103 (eval "$ac_compile") 2>conftest.er1
12104 ac_status=$?
12105 grep -v '^ *+' conftest.er1 >conftest.err
12106 rm -f conftest.er1
12107 cat conftest.err >&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } && {
12110 test -z "$ac_c_werror_flag" ||
12111 test ! -s conftest.err
12112 } && test -s conftest.$ac_objext; then
12113 emacs_cv_motif_version_2_1=yes
12114 else
12115 echo "$as_me: failed program was:" >&5
12116 sed 's/^/| /' conftest.$ac_ext >&5
12117
12118 emacs_cv_motif_version_2_1=no
12119 fi
12120
12121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12122 fi
12123 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12124 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12125 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12126 if test $emacs_cv_motif_version_2_1 = yes; then
12127 HAVE_LIBXP=no
12128
12129 cat >>confdefs.h <<\_ACEOF
12130 #define HAVE_MOTIF_2_1 1
12131 _ACEOF
12132
12133 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12134 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12135 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12137 else
12138 ac_check_lib_save_LIBS=$LIBS
12139 LIBS="-lXp $LIBS"
12140 cat >conftest.$ac_ext <<_ACEOF
12141 /* confdefs.h. */
12142 _ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h. */
12146
12147 /* Override any GCC internal prototype to avoid an error.
12148 Use char because int might match the return type of a GCC
12149 builtin and then its argument prototype would still apply. */
12150 #ifdef __cplusplus
12151 extern "C"
12152 #endif
12153 char XpCreateContext ();
12154 int
12155 main ()
12156 {
12157 return XpCreateContext ();
12158 ;
12159 return 0;
12160 }
12161 _ACEOF
12162 rm -f conftest.$ac_objext conftest$ac_exeext
12163 if { (ac_try="$ac_link"
12164 case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12167 esac
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_link") 2>conftest.er1
12170 ac_status=$?
12171 grep -v '^ *+' conftest.er1 >conftest.err
12172 rm -f conftest.er1
12173 cat conftest.err >&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } && {
12176 test -z "$ac_c_werror_flag" ||
12177 test ! -s conftest.err
12178 } && test -s conftest$ac_exeext &&
12179 $as_test_x conftest$ac_exeext; then
12180 ac_cv_lib_Xp_XpCreateContext=yes
12181 else
12182 echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12184
12185 ac_cv_lib_Xp_XpCreateContext=no
12186 fi
12187
12188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12189 conftest$ac_exeext conftest.$ac_ext
12190 LIBS=$ac_check_lib_save_LIBS
12191 fi
12192 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12193 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12194 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12195 HAVE_LIBXP=yes
12196 fi
12197
12198 if test ${HAVE_LIBXP} = yes; then
12199
12200 cat >>confdefs.h <<\_ACEOF
12201 #define HAVE_LIBXP 1
12202 _ACEOF
12203
12204 fi
12205 else
12206 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12207 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12208 if test "${emacs_cv_lesstif+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 else
12211 # We put this in CFLAGS temporarily to precede other -I options
12212 # that might be in CFLAGS temporarily.
12213 # We put this in CPPFLAGS where it precedes the other -I options.
12214 OLD_CPPFLAGS=$CPPFLAGS
12215 OLD_CFLAGS=$CFLAGS
12216 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12217 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12218 cat >conftest.$ac_ext <<_ACEOF
12219 /* confdefs.h. */
12220 _ACEOF
12221 cat confdefs.h >>conftest.$ac_ext
12222 cat >>conftest.$ac_ext <<_ACEOF
12223 /* end confdefs.h. */
12224 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12225 int
12226 main ()
12227 {
12228 int x = 5;
12229 ;
12230 return 0;
12231 }
12232 _ACEOF
12233 rm -f conftest.$ac_objext
12234 if { (ac_try="$ac_compile"
12235 case "(($ac_try" in
12236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237 *) ac_try_echo=$ac_try;;
12238 esac
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240 (eval "$ac_compile") 2>conftest.er1
12241 ac_status=$?
12242 grep -v '^ *+' conftest.er1 >conftest.err
12243 rm -f conftest.er1
12244 cat conftest.err >&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } && {
12247 test -z "$ac_c_werror_flag" ||
12248 test ! -s conftest.err
12249 } && test -s conftest.$ac_objext; then
12250 emacs_cv_lesstif=yes
12251 else
12252 echo "$as_me: failed program was:" >&5
12253 sed 's/^/| /' conftest.$ac_ext >&5
12254
12255 emacs_cv_lesstif=no
12256 fi
12257
12258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12259 fi
12260 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12261 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12262 if test $emacs_cv_lesstif = yes; then
12263 # Make sure this -I option remains in CPPFLAGS after it is set
12264 # back to REAL_CPPFLAGS.
12265 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12266 # have those other -I options anyway. Ultimately, having this
12267 # directory ultimately in CPPFLAGS will be enough.
12268 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12269 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12270 else
12271 CFLAGS=$OLD_CFLAGS
12272 CPPFLAGS=$OLD_CPPFLAGS
12273 fi
12274 fi
12275 fi
12276
12277
12278
12279 USE_TOOLKIT_SCROLL_BARS=no
12280 if test "${with_toolkit_scroll_bars}" != "no"; then
12281 if test "${USE_X_TOOLKIT}" != "none"; then
12282 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12283 cat >>confdefs.h <<\_ACEOF
12284 #define USE_TOOLKIT_SCROLL_BARS 1
12285 _ACEOF
12286
12287 HAVE_XAW3D=no
12288 USE_TOOLKIT_SCROLL_BARS=yes
12289 elif test "${HAVE_XAW3D}" = "yes"; then
12290 cat >>confdefs.h <<\_ACEOF
12291 #define USE_TOOLKIT_SCROLL_BARS 1
12292 _ACEOF
12293
12294 USE_TOOLKIT_SCROLL_BARS=yes
12295 fi
12296 elif test "${HAVE_GTK}" = "yes"; then
12297 cat >>confdefs.h <<\_ACEOF
12298 #define USE_TOOLKIT_SCROLL_BARS 1
12299 _ACEOF
12300
12301 USE_TOOLKIT_SCROLL_BARS=yes
12302 elif test "${HAVE_CARBON}" = "yes"; then
12303 cat >>confdefs.h <<\_ACEOF
12304 #define USE_TOOLKIT_SCROLL_BARS 1
12305 _ACEOF
12306
12307 USE_TOOLKIT_SCROLL_BARS=yes
12308 fi
12309 fi
12310
12311 cat >conftest.$ac_ext <<_ACEOF
12312 /* confdefs.h. */
12313 _ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12317
12318 #include <X11/Xlib.h>
12319 #include <X11/Xresource.h>
12320 int
12321 main ()
12322 {
12323 XIMProc callback;
12324 ;
12325 return 0;
12326 }
12327 _ACEOF
12328 rm -f conftest.$ac_objext
12329 if { (ac_try="$ac_compile"
12330 case "(($ac_try" in
12331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12332 *) ac_try_echo=$ac_try;;
12333 esac
12334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12335 (eval "$ac_compile") 2>conftest.er1
12336 ac_status=$?
12337 grep -v '^ *+' conftest.er1 >conftest.err
12338 rm -f conftest.er1
12339 cat conftest.err >&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); } && {
12342 test -z "$ac_c_werror_flag" ||
12343 test ! -s conftest.err
12344 } && test -s conftest.$ac_objext; then
12345 HAVE_XIM=yes
12346
12347 cat >>confdefs.h <<\_ACEOF
12348 #define HAVE_XIM 1
12349 _ACEOF
12350
12351 else
12352 echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12354
12355 HAVE_XIM=no
12356 fi
12357
12358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12359
12360
12361 if test "${with_xim}" != "no"; then
12362
12363 cat >>confdefs.h <<\_ACEOF
12364 #define USE_XIM 1
12365 _ACEOF
12366
12367 fi
12368
12369
12370 if test "${HAVE_XIM}" != "no"; then
12371 late_CFLAGS=$CFLAGS
12372 if test "$GCC" = yes; then
12373 CFLAGS="$CFLAGS --pedantic-errors"
12374 fi
12375 cat >conftest.$ac_ext <<_ACEOF
12376 /* confdefs.h. */
12377 _ACEOF
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h. */
12381
12382 #include <X11/Xlib.h>
12383 #include <X11/Xresource.h>
12384 int
12385 main ()
12386 {
12387 Display *display;
12388 XrmDatabase db;
12389 char *res_name;
12390 char *res_class;
12391 XIMProc callback;
12392 XPointer *client_data;
12393 #ifndef __GNUC__
12394 /* If we're not using GCC, it's probably not XFree86, and this is
12395 probably right, but we can't use something like --pedantic-errors. */
12396 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12397 char*, XIMProc, XPointer*);
12398 #endif
12399 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12400 client_data);
12401 ;
12402 return 0;
12403 }
12404 _ACEOF
12405 rm -f conftest.$ac_objext
12406 if { (ac_try="$ac_compile"
12407 case "(($ac_try" in
12408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409 *) ac_try_echo=$ac_try;;
12410 esac
12411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12412 (eval "$ac_compile") 2>conftest.er1
12413 ac_status=$?
12414 grep -v '^ *+' conftest.er1 >conftest.err
12415 rm -f conftest.er1
12416 cat conftest.err >&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); } && {
12419 test -z "$ac_c_werror_flag" ||
12420 test ! -s conftest.err
12421 } && test -s conftest.$ac_objext; then
12422 emacs_cv_arg6_star=yes
12423 else
12424 echo "$as_me: failed program was:" >&5
12425 sed 's/^/| /' conftest.$ac_ext >&5
12426
12427
12428 fi
12429
12430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12431
12432 if test "$emacs_cv_arg6_star" = yes; then
12433 cat >>confdefs.h <<\_ACEOF
12434 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12435 _ACEOF
12436
12437 else
12438 cat >>confdefs.h <<\_ACEOF
12439 #define XRegisterIMInstantiateCallback_arg6 XPointer
12440 _ACEOF
12441
12442 fi
12443 CFLAGS=$late_CFLAGS
12444 fi
12445
12446 #### For font-backend
12447 if test "${USE_FONT_BACKEND}" = "yes"; then
12448
12449
12450 cat >>confdefs.h <<\_ACEOF
12451 #define USE_FONT_BACKEND 1
12452 _ACEOF
12453
12454
12455 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12456 HAVE_XFT=maybe
12457 if test "${HAVE_X11}" = "yes"; then
12458 if test "x${with_freetype}" = "xno"; then
12459 with_xft="no";
12460 fi
12461 if test "x${with_xft}" != "xno"; then
12462
12463 if test "X${with_pkg_config_prog}" != X; then
12464 PKG_CONFIG="${with_pkg_config_prog}"
12465 fi
12466
12467
12468 succeeded=no
12469
12470 # Extract the first word of "pkg-config", so it can be a program name with args.
12471 set dummy pkg-config; ac_word=$2
12472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12474 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12476 else
12477 case $PKG_CONFIG in
12478 [\\/]* | ?:[\\/]*)
12479 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12480 ;;
12481 *)
12482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12483 for as_dir in $PATH
12484 do
12485 IFS=$as_save_IFS
12486 test -z "$as_dir" && as_dir=.
12487 for ac_exec_ext in '' $ac_executable_extensions; do
12488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12489 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12491 break 2
12492 fi
12493 done
12494 done
12495 IFS=$as_save_IFS
12496
12497 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12498 ;;
12499 esac
12500 fi
12501 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12502 if test -n "$PKG_CONFIG"; then
12503 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12504 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12505 else
12506 { echo "$as_me:$LINENO: result: no" >&5
12507 echo "${ECHO_T}no" >&6; }
12508 fi
12509
12510
12511
12512 if test "$PKG_CONFIG" = "no" ; then
12513 HAVE_XFT=no
12514 else
12515 PKG_CONFIG_MIN_VERSION=0.9.0
12516 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12517 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12518 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12519
12520 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12521 { echo "$as_me:$LINENO: result: yes" >&5
12522 echo "${ECHO_T}yes" >&6; }
12523 succeeded=yes
12524
12525 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12526 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12527 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12528 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12529 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12530
12531 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12532 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12533 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12534 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12535 echo "${ECHO_T}$XFT_LIBS" >&6; }
12536 else
12537 { echo "$as_me:$LINENO: result: no" >&5
12538 echo "${ECHO_T}no" >&6; }
12539 XFT_CFLAGS=""
12540 XFT_LIBS=""
12541 ## If we have a custom action on failure, don't print errors, but
12542 ## do set a variable so people can do so.
12543 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12544
12545 fi
12546
12547
12548
12549 else
12550 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12551 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12552 fi
12553 fi
12554
12555 if test $succeeded = yes; then
12556 :
12557 else
12558 HAVE_XFT=no
12559 fi
12560
12561 if test "$HAVE_XFT" != no; then
12562 OLD_CPPFLAGS="$CPPFLAGS"
12563 OLD_CFLAGS="$CFLAGS"
12564 OLD_LIBS="$LIBS"
12565 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12566 CFLAGS="$CFLAGS $XFT_CFLAGS"
12567 LIBS="$XFT_LIBS $LIBS"
12568 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12569 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12570 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12571 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12573 fi
12574 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12575 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12576 else
12577 # Is the header compilable?
12578 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12579 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12580 cat >conftest.$ac_ext <<_ACEOF
12581 /* confdefs.h. */
12582 _ACEOF
12583 cat confdefs.h >>conftest.$ac_ext
12584 cat >>conftest.$ac_ext <<_ACEOF
12585 /* end confdefs.h. */
12586 $ac_includes_default
12587 #include <X11/Xft/Xft.h>
12588 _ACEOF
12589 rm -f conftest.$ac_objext
12590 if { (ac_try="$ac_compile"
12591 case "(($ac_try" in
12592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593 *) ac_try_echo=$ac_try;;
12594 esac
12595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596 (eval "$ac_compile") 2>conftest.er1
12597 ac_status=$?
12598 grep -v '^ *+' conftest.er1 >conftest.err
12599 rm -f conftest.er1
12600 cat conftest.err >&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); } && {
12603 test -z "$ac_c_werror_flag" ||
12604 test ! -s conftest.err
12605 } && test -s conftest.$ac_objext; then
12606 ac_header_compiler=yes
12607 else
12608 echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12610
12611 ac_header_compiler=no
12612 fi
12613
12614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12616 echo "${ECHO_T}$ac_header_compiler" >&6; }
12617
12618 # Is the header present?
12619 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12620 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12621 cat >conftest.$ac_ext <<_ACEOF
12622 /* confdefs.h. */
12623 _ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h. */
12627 #include <X11/Xft/Xft.h>
12628 _ACEOF
12629 if { (ac_try="$ac_cpp conftest.$ac_ext"
12630 case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12633 esac
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12636 ac_status=$?
12637 grep -v '^ *+' conftest.er1 >conftest.err
12638 rm -f conftest.er1
12639 cat conftest.err >&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } >/dev/null && {
12642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12643 test ! -s conftest.err
12644 }; then
12645 ac_header_preproc=yes
12646 else
12647 echo "$as_me: failed program was:" >&5
12648 sed 's/^/| /' conftest.$ac_ext >&5
12649
12650 ac_header_preproc=no
12651 fi
12652
12653 rm -f conftest.err conftest.$ac_ext
12654 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12655 echo "${ECHO_T}$ac_header_preproc" >&6; }
12656
12657 # So? What about this header?
12658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12659 yes:no: )
12660 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12661 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12662 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12663 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12664 ac_header_preproc=yes
12665 ;;
12666 no:yes:* )
12667 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12668 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12669 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12670 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12671 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12672 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12673 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12674 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12675 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12676 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12677 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12678 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12679
12680 ;;
12681 esac
12682 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12683 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12684 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12685 echo $ECHO_N "(cached) $ECHO_C" >&6
12686 else
12687 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12688 fi
12689 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12690 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12691
12692 fi
12693 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12694 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12695 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12696 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12697 echo $ECHO_N "(cached) $ECHO_C" >&6
12698 else
12699 ac_check_lib_save_LIBS=$LIBS
12700 LIBS="-lXft $XFT_LIBS $LIBS"
12701 cat >conftest.$ac_ext <<_ACEOF
12702 /* confdefs.h. */
12703 _ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12707
12708 /* Override any GCC internal prototype to avoid an error.
12709 Use char because int might match the return type of a GCC
12710 builtin and then its argument prototype would still apply. */
12711 #ifdef __cplusplus
12712 extern "C"
12713 #endif
12714 char XftFontOpen ();
12715 int
12716 main ()
12717 {
12718 return XftFontOpen ();
12719 ;
12720 return 0;
12721 }
12722 _ACEOF
12723 rm -f conftest.$ac_objext conftest$ac_exeext
12724 if { (ac_try="$ac_link"
12725 case "(($ac_try" in
12726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12727 *) ac_try_echo=$ac_try;;
12728 esac
12729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12730 (eval "$ac_link") 2>conftest.er1
12731 ac_status=$?
12732 grep -v '^ *+' conftest.er1 >conftest.err
12733 rm -f conftest.er1
12734 cat conftest.err >&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } && {
12737 test -z "$ac_c_werror_flag" ||
12738 test ! -s conftest.err
12739 } && test -s conftest$ac_exeext &&
12740 $as_test_x conftest$ac_exeext; then
12741 ac_cv_lib_Xft_XftFontOpen=yes
12742 else
12743 echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12745
12746 ac_cv_lib_Xft_XftFontOpen=no
12747 fi
12748
12749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12750 conftest$ac_exeext conftest.$ac_ext
12751 LIBS=$ac_check_lib_save_LIBS
12752 fi
12753 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12754 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12755 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12756 HAVE_XFT=yes
12757 fi
12758
12759 fi
12760
12761
12762
12763 if test "${HAVE_XFT}" = "yes"; then
12764
12765 cat >>confdefs.h <<\_ACEOF
12766 #define HAVE_XFT 1
12767 _ACEOF
12768
12769
12770 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12771 else
12772 CPPFLAGS="$OLD_CPPFLAGS"
12773 CFLAGS="$OLD_CFLAGS"
12774 LIBS="$OLD_LIBS"
12775 fi
12776 fi
12777 fi
12778 fi
12779 if test "$HAVE_XFT" != "yes"; then
12780 HAVE_XFT=no
12781 fi
12782
12783
12784 HAVE_FREETYPE=no
12785 ### Use -lfreetype if available, unless `--with-freetype=no'.
12786 if test "${HAVE_XFT}" = "yes"; then
12787 HAVE_FREETYPE=yes
12788 elif test "x${with_freetype}" != "xno"; then
12789 if test "X${with_pkg_config_prog}" != X; then
12790 PKG_CONFIG="${with_pkg_config_prog}"
12791 fi
12792
12793
12794 succeeded=no
12795
12796 # Extract the first word of "pkg-config", so it can be a program name with args.
12797 set dummy pkg-config; ac_word=$2
12798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12800 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12801 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 else
12803 case $PKG_CONFIG in
12804 [\\/]* | ?:[\\/]*)
12805 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12806 ;;
12807 *)
12808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12809 for as_dir in $PATH
12810 do
12811 IFS=$as_save_IFS
12812 test -z "$as_dir" && as_dir=.
12813 for ac_exec_ext in '' $ac_executable_extensions; do
12814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12815 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12817 break 2
12818 fi
12819 done
12820 done
12821 IFS=$as_save_IFS
12822
12823 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12824 ;;
12825 esac
12826 fi
12827 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12828 if test -n "$PKG_CONFIG"; then
12829 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12830 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12831 else
12832 { echo "$as_me:$LINENO: result: no" >&5
12833 echo "${ECHO_T}no" >&6; }
12834 fi
12835
12836
12837
12838 if test "$PKG_CONFIG" = "no" ; then
12839 HAVE_FREETYPE=no
12840 else
12841 PKG_CONFIG_MIN_VERSION=0.9.0
12842 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12843 { echo "$as_me:$LINENO: checking for freetype2" >&5
12844 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12845
12846 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12847 { echo "$as_me:$LINENO: result: yes" >&5
12848 echo "${ECHO_T}yes" >&6; }
12849 succeeded=yes
12850
12851 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12852 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12853 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12854 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12855 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12856
12857 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12858 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12859 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12860 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12861 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12862 else
12863 { echo "$as_me:$LINENO: result: no" >&5
12864 echo "${ECHO_T}no" >&6; }
12865 FREETYPE_CFLAGS=""
12866 FREETYPE_LIBS=""
12867 ## If we have a custom action on failure, don't print errors, but
12868 ## do set a variable so people can do so.
12869 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12870
12871 fi
12872
12873
12874
12875 else
12876 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12877 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12878 fi
12879 fi
12880
12881 if test $succeeded = yes; then
12882 HAVE_FREETYPE=yes
12883 else
12884 HAVE_FREETYPE=no
12885 fi
12886
12887 if test "${HAVE_FREETYPE}" = "yes"; then
12888
12889 succeeded=no
12890
12891 # Extract the first word of "pkg-config", so it can be a program name with args.
12892 set dummy pkg-config; ac_word=$2
12893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12895 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12897 else
12898 case $PKG_CONFIG in
12899 [\\/]* | ?:[\\/]*)
12900 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12901 ;;
12902 *)
12903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12904 for as_dir in $PATH
12905 do
12906 IFS=$as_save_IFS
12907 test -z "$as_dir" && as_dir=.
12908 for ac_exec_ext in '' $ac_executable_extensions; do
12909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12910 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12912 break 2
12913 fi
12914 done
12915 done
12916 IFS=$as_save_IFS
12917
12918 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12919 ;;
12920 esac
12921 fi
12922 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12923 if test -n "$PKG_CONFIG"; then
12924 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12925 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12926 else
12927 { echo "$as_me:$LINENO: result: no" >&5
12928 echo "${ECHO_T}no" >&6; }
12929 fi
12930
12931
12932
12933 if test "$PKG_CONFIG" = "no" ; then
12934 HAVE_FC=no
12935 else
12936 PKG_CONFIG_MIN_VERSION=0.9.0
12937 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12938 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12939 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12940
12941 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12942 { echo "$as_me:$LINENO: result: yes" >&5
12943 echo "${ECHO_T}yes" >&6; }
12944 succeeded=yes
12945
12946 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12947 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12948 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12949 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12950 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12951
12952 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12953 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12954 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12955 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12956 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12957 else
12958 { echo "$as_me:$LINENO: result: no" >&5
12959 echo "${ECHO_T}no" >&6; }
12960 FONTCONFIG_CFLAGS=""
12961 FONTCONFIG_LIBS=""
12962 ## If we have a custom action on failure, don't print errors, but
12963 ## do set a variable so people can do so.
12964 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12965
12966 fi
12967
12968
12969
12970 else
12971 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12972 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12973 fi
12974 fi
12975
12976 if test $succeeded = yes; then
12977 HAVE_FC=yes
12978 else
12979 HAVE_FC=no
12980 fi
12981
12982 if test "${HAVE_FC}" = "no"; then
12983 HAVE_FREETYPE=no
12984 fi
12985 fi
12986 fi
12987
12988 HAVE_LIBOTF=no
12989 if test "${HAVE_FREETYPE}" = "yes"; then
12990
12991 cat >>confdefs.h <<\_ACEOF
12992 #define HAVE_FREETYPE 1
12993 _ACEOF
12994
12995 if test "${with_libotf}" != "no"; then
12996 if test "X${with_pkg_config_prog}" != X; then
12997 PKG_CONFIG="${with_pkg_config_prog}"
12998 fi
12999
13000 succeeded=no
13001
13002 # Extract the first word of "pkg-config", so it can be a program name with args.
13003 set dummy pkg-config; ac_word=$2
13004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13006 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13007 echo $ECHO_N "(cached) $ECHO_C" >&6
13008 else
13009 case $PKG_CONFIG in
13010 [\\/]* | ?:[\\/]*)
13011 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13012 ;;
13013 *)
13014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13015 for as_dir in $PATH
13016 do
13017 IFS=$as_save_IFS
13018 test -z "$as_dir" && as_dir=.
13019 for ac_exec_ext in '' $ac_executable_extensions; do
13020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13021 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13023 break 2
13024 fi
13025 done
13026 done
13027 IFS=$as_save_IFS
13028
13029 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13030 ;;
13031 esac
13032 fi
13033 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13034 if test -n "$PKG_CONFIG"; then
13035 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13036 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13037 else
13038 { echo "$as_me:$LINENO: result: no" >&5
13039 echo "${ECHO_T}no" >&6; }
13040 fi
13041
13042
13043
13044 if test "$PKG_CONFIG" = "no" ; then
13045 HAVE_LIBOTF=no
13046 else
13047 PKG_CONFIG_MIN_VERSION=0.9.0
13048 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13049 { echo "$as_me:$LINENO: checking for libotf" >&5
13050 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13051
13052 if $PKG_CONFIG --exists "libotf" 2>&5; then
13053 { echo "$as_me:$LINENO: result: yes" >&5
13054 echo "${ECHO_T}yes" >&6; }
13055 succeeded=yes
13056
13057 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13058 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13059 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13060 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13061 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13062
13063 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13064 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13065 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13066 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13067 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13068 else
13069 { echo "$as_me:$LINENO: result: no" >&5
13070 echo "${ECHO_T}no" >&6; }
13071 LIBOTF_CFLAGS=""
13072 LIBOTF_LIBS=""
13073 ## If we have a custom action on failure, don't print errors, but
13074 ## do set a variable so people can do so.
13075 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13076
13077 fi
13078
13079
13080
13081 else
13082 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13083 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13084 fi
13085 fi
13086
13087 if test $succeeded = yes; then
13088 HAVE_LIBOTF=yes
13089 else
13090 HAVE_LIBOTF=no
13091 fi
13092
13093 if test "$HAVE_LIBOTF" = "yes"; then
13094
13095 cat >>confdefs.h <<\_ACEOF
13096 #define HAVE_LIBOTF 1
13097 _ACEOF
13098
13099 fi
13100 fi
13101 fi
13102
13103 HAVE_M17N_FLT=no
13104 if test "${with_m17n_flt}" != "no"; then
13105 if test "X${with_pkg_config_prog}" != X; then
13106 PKG_CONFIG="${with_pkg_config_prog}"
13107 fi
13108
13109 succeeded=no
13110
13111 # Extract the first word of "pkg-config", so it can be a program name with args.
13112 set dummy pkg-config; ac_word=$2
13113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13115 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13116 echo $ECHO_N "(cached) $ECHO_C" >&6
13117 else
13118 case $PKG_CONFIG in
13119 [\\/]* | ?:[\\/]*)
13120 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13121 ;;
13122 *)
13123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13124 for as_dir in $PATH
13125 do
13126 IFS=$as_save_IFS
13127 test -z "$as_dir" && as_dir=.
13128 for ac_exec_ext in '' $ac_executable_extensions; do
13129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13130 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13132 break 2
13133 fi
13134 done
13135 done
13136 IFS=$as_save_IFS
13137
13138 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13139 ;;
13140 esac
13141 fi
13142 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13143 if test -n "$PKG_CONFIG"; then
13144 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13145 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13146 else
13147 { echo "$as_me:$LINENO: result: no" >&5
13148 echo "${ECHO_T}no" >&6; }
13149 fi
13150
13151
13152
13153 if test "$PKG_CONFIG" = "no" ; then
13154 HAVE_M17N_FLT=no
13155 else
13156 PKG_CONFIG_MIN_VERSION=0.9.0
13157 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13158 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13159 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13160
13161 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13162 { echo "$as_me:$LINENO: result: yes" >&5
13163 echo "${ECHO_T}yes" >&6; }
13164 succeeded=yes
13165
13166 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13167 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13168 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13169 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13170 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13171
13172 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13173 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13174 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13175 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13176 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13177 else
13178 { echo "$as_me:$LINENO: result: no" >&5
13179 echo "${ECHO_T}no" >&6; }
13180 M17N_FLT_CFLAGS=""
13181 M17N_FLT_LIBS=""
13182 ## If we have a custom action on failure, don't print errors, but
13183 ## do set a variable so people can do so.
13184 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13185
13186 fi
13187
13188
13189
13190 else
13191 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13192 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13193 fi
13194 fi
13195
13196 if test $succeeded = yes; then
13197 HAVE_M17N_FLT=yes
13198 else
13199 HAVE_M17N_FLT=no
13200 fi
13201
13202 if test "$HAVE_M17N_FLT" = "yes"; then
13203
13204 cat >>confdefs.h <<\_ACEOF
13205 #define HAVE_M17N_FLT 1
13206 _ACEOF
13207
13208 fi
13209 fi
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220 fi
13221 #### End for font-backend
13222
13223 ### Use -lXpm if available, unless `--with-xpm=no'.
13224 HAVE_XPM=no
13225 if test "${HAVE_X11}" = "yes"; then
13226 if test "${with_xpm}" != "no"; then
13227 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13228 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13229 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13230 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13231 echo $ECHO_N "(cached) $ECHO_C" >&6
13232 fi
13233 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13234 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13235 else
13236 # Is the header compilable?
13237 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13238 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13239 cat >conftest.$ac_ext <<_ACEOF
13240 /* confdefs.h. */
13241 _ACEOF
13242 cat confdefs.h >>conftest.$ac_ext
13243 cat >>conftest.$ac_ext <<_ACEOF
13244 /* end confdefs.h. */
13245 $ac_includes_default
13246 #include <X11/xpm.h>
13247 _ACEOF
13248 rm -f conftest.$ac_objext
13249 if { (ac_try="$ac_compile"
13250 case "(($ac_try" in
13251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252 *) ac_try_echo=$ac_try;;
13253 esac
13254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255 (eval "$ac_compile") 2>conftest.er1
13256 ac_status=$?
13257 grep -v '^ *+' conftest.er1 >conftest.err
13258 rm -f conftest.er1
13259 cat conftest.err >&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); } && {
13262 test -z "$ac_c_werror_flag" ||
13263 test ! -s conftest.err
13264 } && test -s conftest.$ac_objext; then
13265 ac_header_compiler=yes
13266 else
13267 echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13269
13270 ac_header_compiler=no
13271 fi
13272
13273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13274 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13275 echo "${ECHO_T}$ac_header_compiler" >&6; }
13276
13277 # Is the header present?
13278 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13279 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13280 cat >conftest.$ac_ext <<_ACEOF
13281 /* confdefs.h. */
13282 _ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13286 #include <X11/xpm.h>
13287 _ACEOF
13288 if { (ac_try="$ac_cpp conftest.$ac_ext"
13289 case "(($ac_try" in
13290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13291 *) ac_try_echo=$ac_try;;
13292 esac
13293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13295 ac_status=$?
13296 grep -v '^ *+' conftest.er1 >conftest.err
13297 rm -f conftest.er1
13298 cat conftest.err >&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } >/dev/null && {
13301 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13302 test ! -s conftest.err
13303 }; then
13304 ac_header_preproc=yes
13305 else
13306 echo "$as_me: failed program was:" >&5
13307 sed 's/^/| /' conftest.$ac_ext >&5
13308
13309 ac_header_preproc=no
13310 fi
13311
13312 rm -f conftest.err conftest.$ac_ext
13313 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13314 echo "${ECHO_T}$ac_header_preproc" >&6; }
13315
13316 # So? What about this header?
13317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13318 yes:no: )
13319 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13320 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13321 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13322 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13323 ac_header_preproc=yes
13324 ;;
13325 no:yes:* )
13326 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13327 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13328 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13329 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13330 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13331 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13332 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13333 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13334 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13335 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13336 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13337 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13338
13339 ;;
13340 esac
13341 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13342 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13343 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13344 echo $ECHO_N "(cached) $ECHO_C" >&6
13345 else
13346 ac_cv_header_X11_xpm_h=$ac_header_preproc
13347 fi
13348 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13349 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13350
13351 fi
13352 if test $ac_cv_header_X11_xpm_h = yes; then
13353 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13354 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13355 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13356 echo $ECHO_N "(cached) $ECHO_C" >&6
13357 else
13358 ac_check_lib_save_LIBS=$LIBS
13359 LIBS="-lXpm -lX11 $LIBS"
13360 cat >conftest.$ac_ext <<_ACEOF
13361 /* confdefs.h. */
13362 _ACEOF
13363 cat confdefs.h >>conftest.$ac_ext
13364 cat >>conftest.$ac_ext <<_ACEOF
13365 /* end confdefs.h. */
13366
13367 /* Override any GCC internal prototype to avoid an error.
13368 Use char because int might match the return type of a GCC
13369 builtin and then its argument prototype would still apply. */
13370 #ifdef __cplusplus
13371 extern "C"
13372 #endif
13373 char XpmReadFileToPixmap ();
13374 int
13375 main ()
13376 {
13377 return XpmReadFileToPixmap ();
13378 ;
13379 return 0;
13380 }
13381 _ACEOF
13382 rm -f conftest.$ac_objext conftest$ac_exeext
13383 if { (ac_try="$ac_link"
13384 case "(($ac_try" in
13385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13386 *) ac_try_echo=$ac_try;;
13387 esac
13388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389 (eval "$ac_link") 2>conftest.er1
13390 ac_status=$?
13391 grep -v '^ *+' conftest.er1 >conftest.err
13392 rm -f conftest.er1
13393 cat conftest.err >&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); } && {
13396 test -z "$ac_c_werror_flag" ||
13397 test ! -s conftest.err
13398 } && test -s conftest$ac_exeext &&
13399 $as_test_x conftest$ac_exeext; then
13400 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13401 else
13402 echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13404
13405 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13406 fi
13407
13408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13409 conftest$ac_exeext conftest.$ac_ext
13410 LIBS=$ac_check_lib_save_LIBS
13411 fi
13412 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13413 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13414 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13415 HAVE_XPM=yes
13416 fi
13417
13418 fi
13419
13420
13421 if test "${HAVE_XPM}" = "yes"; then
13422 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13423 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13424 cat >conftest.$ac_ext <<_ACEOF
13425 /* confdefs.h. */
13426 _ACEOF
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h. */
13430 #include "X11/xpm.h"
13431 #ifndef XpmReturnAllocPixels
13432 no_return_alloc_pixels
13433 #endif
13434
13435 _ACEOF
13436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13437 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13438 HAVE_XPM=no
13439 else
13440 HAVE_XPM=yes
13441 fi
13442 rm -f conftest*
13443
13444
13445 if test "${HAVE_XPM}" = "yes"; then
13446 { echo "$as_me:$LINENO: result: yes" >&5
13447 echo "${ECHO_T}yes" >&6; }
13448 else
13449 { echo "$as_me:$LINENO: result: no" >&5
13450 echo "${ECHO_T}no" >&6; }
13451 fi
13452 fi
13453 fi
13454
13455 if test "${HAVE_XPM}" = "yes"; then
13456
13457 cat >>confdefs.h <<\_ACEOF
13458 #define HAVE_XPM 1
13459 _ACEOF
13460
13461 fi
13462 fi
13463
13464 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13465 HAVE_JPEG=no
13466 if test "${HAVE_X11}" = "yes"; then
13467 if test "${with_jpeg}" != "no"; then
13468 if test "${ac_cv_header_jerror_h+set}" = set; then
13469 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13470 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13471 if test "${ac_cv_header_jerror_h+set}" = set; then
13472 echo $ECHO_N "(cached) $ECHO_C" >&6
13473 fi
13474 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13475 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13476 else
13477 # Is the header compilable?
13478 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13479 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13480 cat >conftest.$ac_ext <<_ACEOF
13481 /* confdefs.h. */
13482 _ACEOF
13483 cat confdefs.h >>conftest.$ac_ext
13484 cat >>conftest.$ac_ext <<_ACEOF
13485 /* end confdefs.h. */
13486 $ac_includes_default
13487 #include <jerror.h>
13488 _ACEOF
13489 rm -f conftest.$ac_objext
13490 if { (ac_try="$ac_compile"
13491 case "(($ac_try" in
13492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493 *) ac_try_echo=$ac_try;;
13494 esac
13495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496 (eval "$ac_compile") 2>conftest.er1
13497 ac_status=$?
13498 grep -v '^ *+' conftest.er1 >conftest.err
13499 rm -f conftest.er1
13500 cat conftest.err >&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } && {
13503 test -z "$ac_c_werror_flag" ||
13504 test ! -s conftest.err
13505 } && test -s conftest.$ac_objext; then
13506 ac_header_compiler=yes
13507 else
13508 echo "$as_me: failed program was:" >&5
13509 sed 's/^/| /' conftest.$ac_ext >&5
13510
13511 ac_header_compiler=no
13512 fi
13513
13514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13515 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13516 echo "${ECHO_T}$ac_header_compiler" >&6; }
13517
13518 # Is the header present?
13519 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13520 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13521 cat >conftest.$ac_ext <<_ACEOF
13522 /* confdefs.h. */
13523 _ACEOF
13524 cat confdefs.h >>conftest.$ac_ext
13525 cat >>conftest.$ac_ext <<_ACEOF
13526 /* end confdefs.h. */
13527 #include <jerror.h>
13528 _ACEOF
13529 if { (ac_try="$ac_cpp conftest.$ac_ext"
13530 case "(($ac_try" in
13531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532 *) ac_try_echo=$ac_try;;
13533 esac
13534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13536 ac_status=$?
13537 grep -v '^ *+' conftest.er1 >conftest.err
13538 rm -f conftest.er1
13539 cat conftest.err >&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } >/dev/null && {
13542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13543 test ! -s conftest.err
13544 }; then
13545 ac_header_preproc=yes
13546 else
13547 echo "$as_me: failed program was:" >&5
13548 sed 's/^/| /' conftest.$ac_ext >&5
13549
13550 ac_header_preproc=no
13551 fi
13552
13553 rm -f conftest.err conftest.$ac_ext
13554 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13555 echo "${ECHO_T}$ac_header_preproc" >&6; }
13556
13557 # So? What about this header?
13558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13559 yes:no: )
13560 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13561 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13562 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13563 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13564 ac_header_preproc=yes
13565 ;;
13566 no:yes:* )
13567 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13568 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13569 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13570 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13571 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13572 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13573 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13574 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13575 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13576 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13577 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13578 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13579
13580 ;;
13581 esac
13582 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13583 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13584 if test "${ac_cv_header_jerror_h+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13586 else
13587 ac_cv_header_jerror_h=$ac_header_preproc
13588 fi
13589 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13590 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13591
13592 fi
13593 if test $ac_cv_header_jerror_h = yes; then
13594 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13595 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13596 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13597 echo $ECHO_N "(cached) $ECHO_C" >&6
13598 else
13599 ac_check_lib_save_LIBS=$LIBS
13600 LIBS="-ljpeg $LIBS"
13601 cat >conftest.$ac_ext <<_ACEOF
13602 /* confdefs.h. */
13603 _ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h. */
13607
13608 /* Override any GCC internal prototype to avoid an error.
13609 Use char because int might match the return type of a GCC
13610 builtin and then its argument prototype would still apply. */
13611 #ifdef __cplusplus
13612 extern "C"
13613 #endif
13614 char jpeg_destroy_compress ();
13615 int
13616 main ()
13617 {
13618 return jpeg_destroy_compress ();
13619 ;
13620 return 0;
13621 }
13622 _ACEOF
13623 rm -f conftest.$ac_objext conftest$ac_exeext
13624 if { (ac_try="$ac_link"
13625 case "(($ac_try" in
13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13628 esac
13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630 (eval "$ac_link") 2>conftest.er1
13631 ac_status=$?
13632 grep -v '^ *+' conftest.er1 >conftest.err
13633 rm -f conftest.er1
13634 cat conftest.err >&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } && {
13637 test -z "$ac_c_werror_flag" ||
13638 test ! -s conftest.err
13639 } && test -s conftest$ac_exeext &&
13640 $as_test_x conftest$ac_exeext; then
13641 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13642 else
13643 echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13645
13646 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13647 fi
13648
13649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13650 conftest$ac_exeext conftest.$ac_ext
13651 LIBS=$ac_check_lib_save_LIBS
13652 fi
13653 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13654 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13655 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13656 HAVE_JPEG=yes
13657 fi
13658
13659 fi
13660
13661
13662 fi
13663
13664
13665 if test "${HAVE_JPEG}" = "yes"; then
13666 cat >>confdefs.h <<\_ACEOF
13667 #define HAVE_JPEG 1
13668 _ACEOF
13669
13670 cat >conftest.$ac_ext <<_ACEOF
13671 /* confdefs.h. */
13672 _ACEOF
13673 cat confdefs.h >>conftest.$ac_ext
13674 cat >>conftest.$ac_ext <<_ACEOF
13675 /* end confdefs.h. */
13676 #include <jpeglib.h>
13677 version=JPEG_LIB_VERSION
13678
13679 _ACEOF
13680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13681 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13682 cat >>confdefs.h <<\_ACEOF
13683 #define HAVE_JPEG 1
13684 _ACEOF
13685
13686 else
13687 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13688 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13689 HAVE_JPEG=no
13690 fi
13691 rm -f conftest*
13692
13693 fi
13694 fi
13695
13696 ### Use -lpng if available, unless `--with-png=no'.
13697 HAVE_PNG=no
13698 if test "${HAVE_X11}" = "yes"; then
13699 if test "${with_png}" != "no"; then
13700 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13701 # in /usr/include/libpng.
13702
13703
13704 for ac_header in png.h libpng/png.h
13705 do
13706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13711 echo $ECHO_N "(cached) $ECHO_C" >&6
13712 fi
13713 ac_res=`eval echo '${'$as_ac_Header'}'`
13714 { echo "$as_me:$LINENO: result: $ac_res" >&5
13715 echo "${ECHO_T}$ac_res" >&6; }
13716 else
13717 # Is the header compilable?
13718 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13720 cat >conftest.$ac_ext <<_ACEOF
13721 /* confdefs.h. */
13722 _ACEOF
13723 cat confdefs.h >>conftest.$ac_ext
13724 cat >>conftest.$ac_ext <<_ACEOF
13725 /* end confdefs.h. */
13726 $ac_includes_default
13727 #include <$ac_header>
13728 _ACEOF
13729 rm -f conftest.$ac_objext
13730 if { (ac_try="$ac_compile"
13731 case "(($ac_try" in
13732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733 *) ac_try_echo=$ac_try;;
13734 esac
13735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736 (eval "$ac_compile") 2>conftest.er1
13737 ac_status=$?
13738 grep -v '^ *+' conftest.er1 >conftest.err
13739 rm -f conftest.er1
13740 cat conftest.err >&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } && {
13743 test -z "$ac_c_werror_flag" ||
13744 test ! -s conftest.err
13745 } && test -s conftest.$ac_objext; then
13746 ac_header_compiler=yes
13747 else
13748 echo "$as_me: failed program was:" >&5
13749 sed 's/^/| /' conftest.$ac_ext >&5
13750
13751 ac_header_compiler=no
13752 fi
13753
13754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13755 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13756 echo "${ECHO_T}$ac_header_compiler" >&6; }
13757
13758 # Is the header present?
13759 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13761 cat >conftest.$ac_ext <<_ACEOF
13762 /* confdefs.h. */
13763 _ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h. */
13767 #include <$ac_header>
13768 _ACEOF
13769 if { (ac_try="$ac_cpp conftest.$ac_ext"
13770 case "(($ac_try" in
13771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13772 *) ac_try_echo=$ac_try;;
13773 esac
13774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13776 ac_status=$?
13777 grep -v '^ *+' conftest.er1 >conftest.err
13778 rm -f conftest.er1
13779 cat conftest.err >&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } >/dev/null && {
13782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13783 test ! -s conftest.err
13784 }; then
13785 ac_header_preproc=yes
13786 else
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13789
13790 ac_header_preproc=no
13791 fi
13792
13793 rm -f conftest.err conftest.$ac_ext
13794 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13795 echo "${ECHO_T}$ac_header_preproc" >&6; }
13796
13797 # So? What about this header?
13798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13799 yes:no: )
13800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13804 ac_header_preproc=yes
13805 ;;
13806 no:yes:* )
13807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13810 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13814 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13819
13820 ;;
13821 esac
13822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13825 echo $ECHO_N "(cached) $ECHO_C" >&6
13826 else
13827 eval "$as_ac_Header=\$ac_header_preproc"
13828 fi
13829 ac_res=`eval echo '${'$as_ac_Header'}'`
13830 { echo "$as_me:$LINENO: result: $ac_res" >&5
13831 echo "${ECHO_T}$ac_res" >&6; }
13832
13833 fi
13834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13835 cat >>confdefs.h <<_ACEOF
13836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13837 _ACEOF
13838
13839 fi
13840
13841 done
13842
13843 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13844 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13845 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13846 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13848 else
13849 ac_check_lib_save_LIBS=$LIBS
13850 LIBS="-lpng -lz -lm $LIBS"
13851 cat >conftest.$ac_ext <<_ACEOF
13852 /* confdefs.h. */
13853 _ACEOF
13854 cat confdefs.h >>conftest.$ac_ext
13855 cat >>conftest.$ac_ext <<_ACEOF
13856 /* end confdefs.h. */
13857
13858 /* Override any GCC internal prototype to avoid an error.
13859 Use char because int might match the return type of a GCC
13860 builtin and then its argument prototype would still apply. */
13861 #ifdef __cplusplus
13862 extern "C"
13863 #endif
13864 char png_get_channels ();
13865 int
13866 main ()
13867 {
13868 return png_get_channels ();
13869 ;
13870 return 0;
13871 }
13872 _ACEOF
13873 rm -f conftest.$ac_objext conftest$ac_exeext
13874 if { (ac_try="$ac_link"
13875 case "(($ac_try" in
13876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13877 *) ac_try_echo=$ac_try;;
13878 esac
13879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13880 (eval "$ac_link") 2>conftest.er1
13881 ac_status=$?
13882 grep -v '^ *+' conftest.er1 >conftest.err
13883 rm -f conftest.er1
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } && {
13887 test -z "$ac_c_werror_flag" ||
13888 test ! -s conftest.err
13889 } && test -s conftest$ac_exeext &&
13890 $as_test_x conftest$ac_exeext; then
13891 ac_cv_lib_png_png_get_channels=yes
13892 else
13893 echo "$as_me: failed program was:" >&5
13894 sed 's/^/| /' conftest.$ac_ext >&5
13895
13896 ac_cv_lib_png_png_get_channels=no
13897 fi
13898
13899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13900 conftest$ac_exeext conftest.$ac_ext
13901 LIBS=$ac_check_lib_save_LIBS
13902 fi
13903 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13904 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13905 if test $ac_cv_lib_png_png_get_channels = yes; then
13906 HAVE_PNG=yes
13907 fi
13908
13909 fi
13910 fi
13911
13912 if test "${HAVE_PNG}" = "yes"; then
13913
13914 cat >>confdefs.h <<\_ACEOF
13915 #define HAVE_PNG 1
13916 _ACEOF
13917
13918 fi
13919 fi
13920
13921 ### Use -ltiff if available, unless `--with-tiff=no'.
13922 HAVE_TIFF=no
13923 if test "${HAVE_X11}" = "yes"; then
13924 if test "${with_tiff}" != "no"; then
13925 if test "${ac_cv_header_tiffio_h+set}" = set; then
13926 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13927 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13928 if test "${ac_cv_header_tiffio_h+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13930 fi
13931 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13932 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13933 else
13934 # Is the header compilable?
13935 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13936 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13937 cat >conftest.$ac_ext <<_ACEOF
13938 /* confdefs.h. */
13939 _ACEOF
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h. */
13943 $ac_includes_default
13944 #include <tiffio.h>
13945 _ACEOF
13946 rm -f conftest.$ac_objext
13947 if { (ac_try="$ac_compile"
13948 case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13951 esac
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_compile") 2>conftest.er1
13954 ac_status=$?
13955 grep -v '^ *+' conftest.er1 >conftest.err
13956 rm -f conftest.er1
13957 cat conftest.err >&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } && {
13960 test -z "$ac_c_werror_flag" ||
13961 test ! -s conftest.err
13962 } && test -s conftest.$ac_objext; then
13963 ac_header_compiler=yes
13964 else
13965 echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13967
13968 ac_header_compiler=no
13969 fi
13970
13971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13973 echo "${ECHO_T}$ac_header_compiler" >&6; }
13974
13975 # Is the header present?
13976 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13977 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13978 cat >conftest.$ac_ext <<_ACEOF
13979 /* confdefs.h. */
13980 _ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h. */
13984 #include <tiffio.h>
13985 _ACEOF
13986 if { (ac_try="$ac_cpp conftest.$ac_ext"
13987 case "(($ac_try" in
13988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989 *) ac_try_echo=$ac_try;;
13990 esac
13991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13993 ac_status=$?
13994 grep -v '^ *+' conftest.er1 >conftest.err
13995 rm -f conftest.er1
13996 cat conftest.err >&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } >/dev/null && {
13999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14000 test ! -s conftest.err
14001 }; then
14002 ac_header_preproc=yes
14003 else
14004 echo "$as_me: failed program was:" >&5
14005 sed 's/^/| /' conftest.$ac_ext >&5
14006
14007 ac_header_preproc=no
14008 fi
14009
14010 rm -f conftest.err conftest.$ac_ext
14011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14012 echo "${ECHO_T}$ac_header_preproc" >&6; }
14013
14014 # So? What about this header?
14015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14016 yes:no: )
14017 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14018 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14020 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14021 ac_header_preproc=yes
14022 ;;
14023 no:yes:* )
14024 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14025 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14026 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14027 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14029 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14031 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14032 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14033 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14034 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14035 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14036
14037 ;;
14038 esac
14039 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14040 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14041 if test "${ac_cv_header_tiffio_h+set}" = set; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14043 else
14044 ac_cv_header_tiffio_h=$ac_header_preproc
14045 fi
14046 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14047 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14048
14049 fi
14050 if test $ac_cv_header_tiffio_h = yes; then
14051 tifflibs="-lz -lm"
14052 # At least one tiff package requires the jpeg library.
14053 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14054 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14055 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14056 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
14058 else
14059 ac_check_lib_save_LIBS=$LIBS
14060 LIBS="-ltiff $tifflibs $LIBS"
14061 cat >conftest.$ac_ext <<_ACEOF
14062 /* confdefs.h. */
14063 _ACEOF
14064 cat confdefs.h >>conftest.$ac_ext
14065 cat >>conftest.$ac_ext <<_ACEOF
14066 /* end confdefs.h. */
14067
14068 /* Override any GCC internal prototype to avoid an error.
14069 Use char because int might match the return type of a GCC
14070 builtin and then its argument prototype would still apply. */
14071 #ifdef __cplusplus
14072 extern "C"
14073 #endif
14074 char TIFFGetVersion ();
14075 int
14076 main ()
14077 {
14078 return TIFFGetVersion ();
14079 ;
14080 return 0;
14081 }
14082 _ACEOF
14083 rm -f conftest.$ac_objext conftest$ac_exeext
14084 if { (ac_try="$ac_link"
14085 case "(($ac_try" in
14086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087 *) ac_try_echo=$ac_try;;
14088 esac
14089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14090 (eval "$ac_link") 2>conftest.er1
14091 ac_status=$?
14092 grep -v '^ *+' conftest.er1 >conftest.err
14093 rm -f conftest.er1
14094 cat conftest.err >&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } && {
14097 test -z "$ac_c_werror_flag" ||
14098 test ! -s conftest.err
14099 } && test -s conftest$ac_exeext &&
14100 $as_test_x conftest$ac_exeext; then
14101 ac_cv_lib_tiff_TIFFGetVersion=yes
14102 else
14103 echo "$as_me: failed program was:" >&5
14104 sed 's/^/| /' conftest.$ac_ext >&5
14105
14106 ac_cv_lib_tiff_TIFFGetVersion=no
14107 fi
14108
14109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14110 conftest$ac_exeext conftest.$ac_ext
14111 LIBS=$ac_check_lib_save_LIBS
14112 fi
14113 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14114 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14115 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14116 HAVE_TIFF=yes
14117 fi
14118
14119 fi
14120
14121
14122 fi
14123
14124 if test "${HAVE_TIFF}" = "yes"; then
14125
14126 cat >>confdefs.h <<\_ACEOF
14127 #define HAVE_TIFF 1
14128 _ACEOF
14129
14130 fi
14131 fi
14132
14133 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14134 HAVE_GIF=no
14135 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14136 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14137 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14138 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14139 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14141 fi
14142 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14143 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14144 else
14145 # Is the header compilable?
14146 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14147 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14148 cat >conftest.$ac_ext <<_ACEOF
14149 /* confdefs.h. */
14150 _ACEOF
14151 cat confdefs.h >>conftest.$ac_ext
14152 cat >>conftest.$ac_ext <<_ACEOF
14153 /* end confdefs.h. */
14154 $ac_includes_default
14155 #include <gif_lib.h>
14156 _ACEOF
14157 rm -f conftest.$ac_objext
14158 if { (ac_try="$ac_compile"
14159 case "(($ac_try" in
14160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161 *) ac_try_echo=$ac_try;;
14162 esac
14163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14164 (eval "$ac_compile") 2>conftest.er1
14165 ac_status=$?
14166 grep -v '^ *+' conftest.er1 >conftest.err
14167 rm -f conftest.er1
14168 cat conftest.err >&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); } && {
14171 test -z "$ac_c_werror_flag" ||
14172 test ! -s conftest.err
14173 } && test -s conftest.$ac_objext; then
14174 ac_header_compiler=yes
14175 else
14176 echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.$ac_ext >&5
14178
14179 ac_header_compiler=no
14180 fi
14181
14182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14183 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14184 echo "${ECHO_T}$ac_header_compiler" >&6; }
14185
14186 # Is the header present?
14187 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14188 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14189 cat >conftest.$ac_ext <<_ACEOF
14190 /* confdefs.h. */
14191 _ACEOF
14192 cat confdefs.h >>conftest.$ac_ext
14193 cat >>conftest.$ac_ext <<_ACEOF
14194 /* end confdefs.h. */
14195 #include <gif_lib.h>
14196 _ACEOF
14197 if { (ac_try="$ac_cpp conftest.$ac_ext"
14198 case "(($ac_try" in
14199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14200 *) ac_try_echo=$ac_try;;
14201 esac
14202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14204 ac_status=$?
14205 grep -v '^ *+' conftest.er1 >conftest.err
14206 rm -f conftest.er1
14207 cat conftest.err >&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } >/dev/null && {
14210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14211 test ! -s conftest.err
14212 }; then
14213 ac_header_preproc=yes
14214 else
14215 echo "$as_me: failed program was:" >&5
14216 sed 's/^/| /' conftest.$ac_ext >&5
14217
14218 ac_header_preproc=no
14219 fi
14220
14221 rm -f conftest.err conftest.$ac_ext
14222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14223 echo "${ECHO_T}$ac_header_preproc" >&6; }
14224
14225 # So? What about this header?
14226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14227 yes:no: )
14228 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14229 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14230 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14231 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14232 ac_header_preproc=yes
14233 ;;
14234 no:yes:* )
14235 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14236 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14237 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14238 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14239 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14240 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14241 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14242 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14243 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14244 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14245 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14246 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14247
14248 ;;
14249 esac
14250 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14251 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14252 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14253 echo $ECHO_N "(cached) $ECHO_C" >&6
14254 else
14255 ac_cv_header_gif_lib_h=$ac_header_preproc
14256 fi
14257 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14258 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14259
14260 fi
14261 if test $ac_cv_header_gif_lib_h = yes; then
14262 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14263 # Earlier versions can crash Emacs.
14264 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14265 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14266 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14267 echo $ECHO_N "(cached) $ECHO_C" >&6
14268 else
14269 ac_check_lib_save_LIBS=$LIBS
14270 LIBS="-lgif $LIBS"
14271 cat >conftest.$ac_ext <<_ACEOF
14272 /* confdefs.h. */
14273 _ACEOF
14274 cat confdefs.h >>conftest.$ac_ext
14275 cat >>conftest.$ac_ext <<_ACEOF
14276 /* end confdefs.h. */
14277
14278 /* Override any GCC internal prototype to avoid an error.
14279 Use char because int might match the return type of a GCC
14280 builtin and then its argument prototype would still apply. */
14281 #ifdef __cplusplus
14282 extern "C"
14283 #endif
14284 char EGifPutExtensionLast ();
14285 int
14286 main ()
14287 {
14288 return EGifPutExtensionLast ();
14289 ;
14290 return 0;
14291 }
14292 _ACEOF
14293 rm -f conftest.$ac_objext conftest$ac_exeext
14294 if { (ac_try="$ac_link"
14295 case "(($ac_try" in
14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14298 esac
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_link") 2>conftest.er1
14301 ac_status=$?
14302 grep -v '^ *+' conftest.er1 >conftest.err
14303 rm -f conftest.er1
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } && {
14307 test -z "$ac_c_werror_flag" ||
14308 test ! -s conftest.err
14309 } && test -s conftest$ac_exeext &&
14310 $as_test_x conftest$ac_exeext; then
14311 ac_cv_lib_gif_EGifPutExtensionLast=yes
14312 else
14313 echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.$ac_ext >&5
14315
14316 ac_cv_lib_gif_EGifPutExtensionLast=no
14317 fi
14318
14319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14320 conftest$ac_exeext conftest.$ac_ext
14321 LIBS=$ac_check_lib_save_LIBS
14322 fi
14323 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14324 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14325 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14326 HAVE_GIF=yes
14327 else
14328 try_libungif=yes
14329 fi
14330
14331 fi
14332
14333
14334
14335 if test "$HAVE_GIF" = yes; then
14336 ac_gif_lib_name="-lgif"
14337 fi
14338
14339 # If gif_lib.h but no libgif, try libungif.
14340 if test x"$try_libungif" = xyes; then
14341 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14342 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14343 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14344 echo $ECHO_N "(cached) $ECHO_C" >&6
14345 else
14346 ac_check_lib_save_LIBS=$LIBS
14347 LIBS="-lungif $LIBS"
14348 cat >conftest.$ac_ext <<_ACEOF
14349 /* confdefs.h. */
14350 _ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h. */
14354
14355 /* Override any GCC internal prototype to avoid an error.
14356 Use char because int might match the return type of a GCC
14357 builtin and then its argument prototype would still apply. */
14358 #ifdef __cplusplus
14359 extern "C"
14360 #endif
14361 char EGifPutExtensionLast ();
14362 int
14363 main ()
14364 {
14365 return EGifPutExtensionLast ();
14366 ;
14367 return 0;
14368 }
14369 _ACEOF
14370 rm -f conftest.$ac_objext conftest$ac_exeext
14371 if { (ac_try="$ac_link"
14372 case "(($ac_try" in
14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374 *) ac_try_echo=$ac_try;;
14375 esac
14376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377 (eval "$ac_link") 2>conftest.er1
14378 ac_status=$?
14379 grep -v '^ *+' conftest.er1 >conftest.err
14380 rm -f conftest.er1
14381 cat conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } && {
14384 test -z "$ac_c_werror_flag" ||
14385 test ! -s conftest.err
14386 } && test -s conftest$ac_exeext &&
14387 $as_test_x conftest$ac_exeext; then
14388 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14389 else
14390 echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.$ac_ext >&5
14392
14393 ac_cv_lib_ungif_EGifPutExtensionLast=no
14394 fi
14395
14396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14397 conftest$ac_exeext conftest.$ac_ext
14398 LIBS=$ac_check_lib_save_LIBS
14399 fi
14400 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14401 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14402 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14403 HAVE_GIF=yes
14404 fi
14405
14406
14407 if test "$HAVE_GIF" = yes; then
14408
14409 cat >>confdefs.h <<\_ACEOF
14410 #define LIBGIF -lungif
14411 _ACEOF
14412
14413 ac_gif_lib_name="-lungif"
14414 fi
14415 fi
14416
14417 if test "${HAVE_GIF}" = "yes"; then
14418
14419 cat >>confdefs.h <<\_ACEOF
14420 #define HAVE_GIF 1
14421 _ACEOF
14422
14423 fi
14424 fi
14425
14426 if test "${HAVE_X11}" = "yes"; then
14427 MISSING=""
14428 WITH_NO=""
14429 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14430 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14431 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14432 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14433 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14434 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14435 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14436 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14437 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14438 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14439
14440 if test "X${MISSING}" != X; then
14441 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14442 $MISSING
14443 Maybe some development libraries/packages are missing?
14444 If you don't want to link with them give
14445 $WITH_NO
14446 as options to configure" >&5
14447 echo "$as_me: error: The following required libraries were not found:
14448 $MISSING
14449 Maybe some development libraries/packages are missing?
14450 If you don't want to link with them give
14451 $WITH_NO
14452 as options to configure" >&2;}
14453 { (exit 1); exit 1; }; }
14454 fi
14455 fi
14456
14457 ### Use -lgpm if available, unless `--with-gpm=no'.
14458 HAVE_GPM=no
14459 if test "${with_gpm}" != "no"; then
14460 if test "${ac_cv_header_gpm_h+set}" = set; then
14461 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14462 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14463 if test "${ac_cv_header_gpm_h+set}" = set; then
14464 echo $ECHO_N "(cached) $ECHO_C" >&6
14465 fi
14466 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14467 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14468 else
14469 # Is the header compilable?
14470 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14471 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14472 cat >conftest.$ac_ext <<_ACEOF
14473 /* confdefs.h. */
14474 _ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14478 $ac_includes_default
14479 #include <gpm.h>
14480 _ACEOF
14481 rm -f conftest.$ac_objext
14482 if { (ac_try="$ac_compile"
14483 case "(($ac_try" in
14484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485 *) ac_try_echo=$ac_try;;
14486 esac
14487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14488 (eval "$ac_compile") 2>conftest.er1
14489 ac_status=$?
14490 grep -v '^ *+' conftest.er1 >conftest.err
14491 rm -f conftest.er1
14492 cat conftest.err >&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); } && {
14495 test -z "$ac_c_werror_flag" ||
14496 test ! -s conftest.err
14497 } && test -s conftest.$ac_objext; then
14498 ac_header_compiler=yes
14499 else
14500 echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14502
14503 ac_header_compiler=no
14504 fi
14505
14506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14508 echo "${ECHO_T}$ac_header_compiler" >&6; }
14509
14510 # Is the header present?
14511 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14512 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14513 cat >conftest.$ac_ext <<_ACEOF
14514 /* confdefs.h. */
14515 _ACEOF
14516 cat confdefs.h >>conftest.$ac_ext
14517 cat >>conftest.$ac_ext <<_ACEOF
14518 /* end confdefs.h. */
14519 #include <gpm.h>
14520 _ACEOF
14521 if { (ac_try="$ac_cpp conftest.$ac_ext"
14522 case "(($ac_try" in
14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524 *) ac_try_echo=$ac_try;;
14525 esac
14526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14528 ac_status=$?
14529 grep -v '^ *+' conftest.er1 >conftest.err
14530 rm -f conftest.er1
14531 cat conftest.err >&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } >/dev/null && {
14534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14535 test ! -s conftest.err
14536 }; then
14537 ac_header_preproc=yes
14538 else
14539 echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.$ac_ext >&5
14541
14542 ac_header_preproc=no
14543 fi
14544
14545 rm -f conftest.err conftest.$ac_ext
14546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14547 echo "${ECHO_T}$ac_header_preproc" >&6; }
14548
14549 # So? What about this header?
14550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14551 yes:no: )
14552 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14553 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14554 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14555 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14556 ac_header_preproc=yes
14557 ;;
14558 no:yes:* )
14559 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14560 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14561 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14562 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14563 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14564 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14565 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14566 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14567 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14568 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14569 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14570 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14571
14572 ;;
14573 esac
14574 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14575 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14576 if test "${ac_cv_header_gpm_h+set}" = set; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14578 else
14579 ac_cv_header_gpm_h=$ac_header_preproc
14580 fi
14581 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14582 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14583
14584 fi
14585 if test $ac_cv_header_gpm_h = yes; then
14586 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14587 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14588 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14589 echo $ECHO_N "(cached) $ECHO_C" >&6
14590 else
14591 ac_check_lib_save_LIBS=$LIBS
14592 LIBS="-lgpm $LIBS"
14593 cat >conftest.$ac_ext <<_ACEOF
14594 /* confdefs.h. */
14595 _ACEOF
14596 cat confdefs.h >>conftest.$ac_ext
14597 cat >>conftest.$ac_ext <<_ACEOF
14598 /* end confdefs.h. */
14599
14600 /* Override any GCC internal prototype to avoid an error.
14601 Use char because int might match the return type of a GCC
14602 builtin and then its argument prototype would still apply. */
14603 #ifdef __cplusplus
14604 extern "C"
14605 #endif
14606 char Gpm_Open ();
14607 int
14608 main ()
14609 {
14610 return Gpm_Open ();
14611 ;
14612 return 0;
14613 }
14614 _ACEOF
14615 rm -f conftest.$ac_objext conftest$ac_exeext
14616 if { (ac_try="$ac_link"
14617 case "(($ac_try" in
14618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619 *) ac_try_echo=$ac_try;;
14620 esac
14621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622 (eval "$ac_link") 2>conftest.er1
14623 ac_status=$?
14624 grep -v '^ *+' conftest.er1 >conftest.err
14625 rm -f conftest.er1
14626 cat conftest.err >&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } && {
14629 test -z "$ac_c_werror_flag" ||
14630 test ! -s conftest.err
14631 } && test -s conftest$ac_exeext &&
14632 $as_test_x conftest$ac_exeext; then
14633 ac_cv_lib_gpm_Gpm_Open=yes
14634 else
14635 echo "$as_me: failed program was:" >&5
14636 sed 's/^/| /' conftest.$ac_ext >&5
14637
14638 ac_cv_lib_gpm_Gpm_Open=no
14639 fi
14640
14641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14642 conftest$ac_exeext conftest.$ac_ext
14643 LIBS=$ac_check_lib_save_LIBS
14644 fi
14645 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14646 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14647 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14648 HAVE_GPM=yes
14649 fi
14650
14651 fi
14652
14653
14654 fi
14655
14656 if test "${HAVE_GPM}" = "yes"; then
14657
14658 cat >>confdefs.h <<\_ACEOF
14659 #define HAVE_GPM 1
14660 _ACEOF
14661
14662 fi
14663
14664 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14665 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14666 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14667 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14668 echo $ECHO_N "(cached) $ECHO_C" >&6
14669 fi
14670 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14671 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14672 else
14673 # Is the header compilable?
14674 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14675 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14676 cat >conftest.$ac_ext <<_ACEOF
14677 /* confdefs.h. */
14678 _ACEOF
14679 cat confdefs.h >>conftest.$ac_ext
14680 cat >>conftest.$ac_ext <<_ACEOF
14681 /* end confdefs.h. */
14682 $ac_includes_default
14683 #include <malloc/malloc.h>
14684 _ACEOF
14685 rm -f conftest.$ac_objext
14686 if { (ac_try="$ac_compile"
14687 case "(($ac_try" in
14688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14689 *) ac_try_echo=$ac_try;;
14690 esac
14691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14692 (eval "$ac_compile") 2>conftest.er1
14693 ac_status=$?
14694 grep -v '^ *+' conftest.er1 >conftest.err
14695 rm -f conftest.er1
14696 cat conftest.err >&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); } && {
14699 test -z "$ac_c_werror_flag" ||
14700 test ! -s conftest.err
14701 } && test -s conftest.$ac_objext; then
14702 ac_header_compiler=yes
14703 else
14704 echo "$as_me: failed program was:" >&5
14705 sed 's/^/| /' conftest.$ac_ext >&5
14706
14707 ac_header_compiler=no
14708 fi
14709
14710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14712 echo "${ECHO_T}$ac_header_compiler" >&6; }
14713
14714 # Is the header present?
14715 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14716 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14717 cat >conftest.$ac_ext <<_ACEOF
14718 /* confdefs.h. */
14719 _ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14723 #include <malloc/malloc.h>
14724 _ACEOF
14725 if { (ac_try="$ac_cpp conftest.$ac_ext"
14726 case "(($ac_try" in
14727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728 *) ac_try_echo=$ac_try;;
14729 esac
14730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14732 ac_status=$?
14733 grep -v '^ *+' conftest.er1 >conftest.err
14734 rm -f conftest.er1
14735 cat conftest.err >&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } >/dev/null && {
14738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14739 test ! -s conftest.err
14740 }; then
14741 ac_header_preproc=yes
14742 else
14743 echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14745
14746 ac_header_preproc=no
14747 fi
14748
14749 rm -f conftest.err conftest.$ac_ext
14750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14751 echo "${ECHO_T}$ac_header_preproc" >&6; }
14752
14753 # So? What about this header?
14754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14755 yes:no: )
14756 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14757 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14758 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14759 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14760 ac_header_preproc=yes
14761 ;;
14762 no:yes:* )
14763 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14764 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14765 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14766 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14767 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14768 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14769 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14770 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14771 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14772 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14773 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14774 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14775
14776 ;;
14777 esac
14778 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14779 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14780 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14781 echo $ECHO_N "(cached) $ECHO_C" >&6
14782 else
14783 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14784 fi
14785 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14786 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14787
14788 fi
14789 if test $ac_cv_header_malloc_malloc_h = yes; then
14790
14791 cat >>confdefs.h <<\_ACEOF
14792 #define HAVE_MALLOC_MALLOC_H 1
14793 _ACEOF
14794
14795 fi
14796
14797
14798
14799 ### Use Mac OS X Carbon API to implement GUI.
14800 if test "${HAVE_CARBON}" = "yes"; then
14801
14802 cat >>confdefs.h <<\_ACEOF
14803 #define HAVE_CARBON 1
14804 _ACEOF
14805
14806 ## Specify the install directory
14807 carbon_appdir=
14808 if test "${carbon_appdir_x}" != ""; then
14809 case ${carbon_appdir_x} in
14810 y | ye | yes) carbon_appdir=/Applications ;;
14811 * ) carbon_appdir=${carbon_appdir_x} ;;
14812 esac
14813 fi
14814 # We also have mouse menus.
14815 HAVE_MENUS=yes
14816 fi
14817
14818 ### Use session management (-lSM -lICE) if available
14819 HAVE_X_SM=no
14820 if test "${HAVE_X11}" = "yes"; then
14821 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14822 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14823 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14824 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14825 echo $ECHO_N "(cached) $ECHO_C" >&6
14826 fi
14827 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14828 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14829 else
14830 # Is the header compilable?
14831 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14832 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14833 cat >conftest.$ac_ext <<_ACEOF
14834 /* confdefs.h. */
14835 _ACEOF
14836 cat confdefs.h >>conftest.$ac_ext
14837 cat >>conftest.$ac_ext <<_ACEOF
14838 /* end confdefs.h. */
14839 $ac_includes_default
14840 #include <X11/SM/SMlib.h>
14841 _ACEOF
14842 rm -f conftest.$ac_objext
14843 if { (ac_try="$ac_compile"
14844 case "(($ac_try" in
14845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846 *) ac_try_echo=$ac_try;;
14847 esac
14848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849 (eval "$ac_compile") 2>conftest.er1
14850 ac_status=$?
14851 grep -v '^ *+' conftest.er1 >conftest.err
14852 rm -f conftest.er1
14853 cat conftest.err >&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); } && {
14856 test -z "$ac_c_werror_flag" ||
14857 test ! -s conftest.err
14858 } && test -s conftest.$ac_objext; then
14859 ac_header_compiler=yes
14860 else
14861 echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.$ac_ext >&5
14863
14864 ac_header_compiler=no
14865 fi
14866
14867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14869 echo "${ECHO_T}$ac_header_compiler" >&6; }
14870
14871 # Is the header present?
14872 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14873 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14874 cat >conftest.$ac_ext <<_ACEOF
14875 /* confdefs.h. */
14876 _ACEOF
14877 cat confdefs.h >>conftest.$ac_ext
14878 cat >>conftest.$ac_ext <<_ACEOF
14879 /* end confdefs.h. */
14880 #include <X11/SM/SMlib.h>
14881 _ACEOF
14882 if { (ac_try="$ac_cpp conftest.$ac_ext"
14883 case "(($ac_try" in
14884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14885 *) ac_try_echo=$ac_try;;
14886 esac
14887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14889 ac_status=$?
14890 grep -v '^ *+' conftest.er1 >conftest.err
14891 rm -f conftest.er1
14892 cat conftest.err >&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } >/dev/null && {
14895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14896 test ! -s conftest.err
14897 }; then
14898 ac_header_preproc=yes
14899 else
14900 echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14902
14903 ac_header_preproc=no
14904 fi
14905
14906 rm -f conftest.err conftest.$ac_ext
14907 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14908 echo "${ECHO_T}$ac_header_preproc" >&6; }
14909
14910 # So? What about this header?
14911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14912 yes:no: )
14913 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14914 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14915 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14916 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14917 ac_header_preproc=yes
14918 ;;
14919 no:yes:* )
14920 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14921 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14922 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14923 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14924 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14925 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14927 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14928 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14929 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14930 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14931 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14932
14933 ;;
14934 esac
14935 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14936 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14937 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14938 echo $ECHO_N "(cached) $ECHO_C" >&6
14939 else
14940 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14941 fi
14942 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14943 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14944
14945 fi
14946 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14947 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14948 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14949 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14951 else
14952 ac_check_lib_save_LIBS=$LIBS
14953 LIBS="-lSM -lICE $LIBS"
14954 cat >conftest.$ac_ext <<_ACEOF
14955 /* confdefs.h. */
14956 _ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14960
14961 /* Override any GCC internal prototype to avoid an error.
14962 Use char because int might match the return type of a GCC
14963 builtin and then its argument prototype would still apply. */
14964 #ifdef __cplusplus
14965 extern "C"
14966 #endif
14967 char SmcOpenConnection ();
14968 int
14969 main ()
14970 {
14971 return SmcOpenConnection ();
14972 ;
14973 return 0;
14974 }
14975 _ACEOF
14976 rm -f conftest.$ac_objext conftest$ac_exeext
14977 if { (ac_try="$ac_link"
14978 case "(($ac_try" in
14979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980 *) ac_try_echo=$ac_try;;
14981 esac
14982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983 (eval "$ac_link") 2>conftest.er1
14984 ac_status=$?
14985 grep -v '^ *+' conftest.er1 >conftest.err
14986 rm -f conftest.er1
14987 cat conftest.err >&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } && {
14990 test -z "$ac_c_werror_flag" ||
14991 test ! -s conftest.err
14992 } && test -s conftest$ac_exeext &&
14993 $as_test_x conftest$ac_exeext; then
14994 ac_cv_lib_SM_SmcOpenConnection=yes
14995 else
14996 echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.$ac_ext >&5
14998
14999 ac_cv_lib_SM_SmcOpenConnection=no
15000 fi
15001
15002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15003 conftest$ac_exeext conftest.$ac_ext
15004 LIBS=$ac_check_lib_save_LIBS
15005 fi
15006 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15007 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15008 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15009 HAVE_X_SM=yes
15010 fi
15011
15012 fi
15013
15014
15015
15016 if test "${HAVE_X_SM}" = "yes"; then
15017
15018 cat >>confdefs.h <<\_ACEOF
15019 #define HAVE_X_SM 1
15020 _ACEOF
15021
15022 case "$LIBS" in
15023 *-lSM*) ;;
15024 *) LIBS="-lSM -lICE $LIBS" ;;
15025 esac
15026 fi
15027 fi
15028
15029 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15030 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15031 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15032 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15033 echo $ECHO_N "(cached) $ECHO_C" >&6
15034 else
15035 cat >conftest.$ac_ext <<_ACEOF
15036 /* confdefs.h. */
15037 _ACEOF
15038 cat confdefs.h >>conftest.$ac_ext
15039 cat >>conftest.$ac_ext <<_ACEOF
15040 /* end confdefs.h. */
15041 #include <netdb.h>
15042 int
15043 main ()
15044 {
15045 return h_errno;
15046 ;
15047 return 0;
15048 }
15049 _ACEOF
15050 rm -f conftest.$ac_objext conftest$ac_exeext
15051 if { (ac_try="$ac_link"
15052 case "(($ac_try" in
15053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054 *) ac_try_echo=$ac_try;;
15055 esac
15056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057 (eval "$ac_link") 2>conftest.er1
15058 ac_status=$?
15059 grep -v '^ *+' conftest.er1 >conftest.err
15060 rm -f conftest.er1
15061 cat conftest.err >&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } && {
15064 test -z "$ac_c_werror_flag" ||
15065 test ! -s conftest.err
15066 } && test -s conftest$ac_exeext &&
15067 $as_test_x conftest$ac_exeext; then
15068 emacs_cv_netdb_declares_h_errno=yes
15069 else
15070 echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15072
15073 emacs_cv_netdb_declares_h_errno=no
15074 fi
15075
15076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15077 conftest$ac_exeext conftest.$ac_ext
15078 fi
15079 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15080 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15081 if test $emacs_cv_netdb_declares_h_errno = yes; then
15082
15083 cat >>confdefs.h <<\_ACEOF
15084 #define HAVE_H_ERRNO 1
15085 _ACEOF
15086
15087 fi
15088
15089 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15090 # for constant arguments. Useless!
15091 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15092 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15093 if test "${ac_cv_working_alloca_h+set}" = set; then
15094 echo $ECHO_N "(cached) $ECHO_C" >&6
15095 else
15096 cat >conftest.$ac_ext <<_ACEOF
15097 /* confdefs.h. */
15098 _ACEOF
15099 cat confdefs.h >>conftest.$ac_ext
15100 cat >>conftest.$ac_ext <<_ACEOF
15101 /* end confdefs.h. */
15102 #include <alloca.h>
15103 int
15104 main ()
15105 {
15106 char *p = (char *) alloca (2 * sizeof (int));
15107 if (p) return 0;
15108 ;
15109 return 0;
15110 }
15111 _ACEOF
15112 rm -f conftest.$ac_objext conftest$ac_exeext
15113 if { (ac_try="$ac_link"
15114 case "(($ac_try" in
15115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15116 *) ac_try_echo=$ac_try;;
15117 esac
15118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15119 (eval "$ac_link") 2>conftest.er1
15120 ac_status=$?
15121 grep -v '^ *+' conftest.er1 >conftest.err
15122 rm -f conftest.er1
15123 cat conftest.err >&5
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); } && {
15126 test -z "$ac_c_werror_flag" ||
15127 test ! -s conftest.err
15128 } && test -s conftest$ac_exeext &&
15129 $as_test_x conftest$ac_exeext; then
15130 ac_cv_working_alloca_h=yes
15131 else
15132 echo "$as_me: failed program was:" >&5
15133 sed 's/^/| /' conftest.$ac_ext >&5
15134
15135 ac_cv_working_alloca_h=no
15136 fi
15137
15138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15139 conftest$ac_exeext conftest.$ac_ext
15140 fi
15141 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15142 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15143 if test $ac_cv_working_alloca_h = yes; then
15144
15145 cat >>confdefs.h <<\_ACEOF
15146 #define HAVE_ALLOCA_H 1
15147 _ACEOF
15148
15149 fi
15150
15151 { echo "$as_me:$LINENO: checking for alloca" >&5
15152 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15153 if test "${ac_cv_func_alloca_works+set}" = set; then
15154 echo $ECHO_N "(cached) $ECHO_C" >&6
15155 else
15156 cat >conftest.$ac_ext <<_ACEOF
15157 /* confdefs.h. */
15158 _ACEOF
15159 cat confdefs.h >>conftest.$ac_ext
15160 cat >>conftest.$ac_ext <<_ACEOF
15161 /* end confdefs.h. */
15162 #ifdef __GNUC__
15163 # define alloca __builtin_alloca
15164 #else
15165 # ifdef _MSC_VER
15166 # include <malloc.h>
15167 # define alloca _alloca
15168 # else
15169 # ifdef HAVE_ALLOCA_H
15170 # include <alloca.h>
15171 # else
15172 # ifdef _AIX
15173 #pragma alloca
15174 # else
15175 # ifndef alloca /* predefined by HP cc +Olibcalls */
15176 char *alloca ();
15177 # endif
15178 # endif
15179 # endif
15180 # endif
15181 #endif
15182
15183 int
15184 main ()
15185 {
15186 char *p = (char *) alloca (1);
15187 if (p) return 0;
15188 ;
15189 return 0;
15190 }
15191 _ACEOF
15192 rm -f conftest.$ac_objext conftest$ac_exeext
15193 if { (ac_try="$ac_link"
15194 case "(($ac_try" in
15195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15196 *) ac_try_echo=$ac_try;;
15197 esac
15198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15199 (eval "$ac_link") 2>conftest.er1
15200 ac_status=$?
15201 grep -v '^ *+' conftest.er1 >conftest.err
15202 rm -f conftest.er1
15203 cat conftest.err >&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); } && {
15206 test -z "$ac_c_werror_flag" ||
15207 test ! -s conftest.err
15208 } && test -s conftest$ac_exeext &&
15209 $as_test_x conftest$ac_exeext; then
15210 ac_cv_func_alloca_works=yes
15211 else
15212 echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15214
15215 ac_cv_func_alloca_works=no
15216 fi
15217
15218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15219 conftest$ac_exeext conftest.$ac_ext
15220 fi
15221 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15222 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15223
15224 if test $ac_cv_func_alloca_works = yes; then
15225
15226 cat >>confdefs.h <<\_ACEOF
15227 #define HAVE_ALLOCA 1
15228 _ACEOF
15229
15230 else
15231 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15232 # that cause trouble. Some versions do not even contain alloca or
15233 # contain a buggy version. If you still want to use their alloca,
15234 # use ar to extract alloca.o from them instead of compiling alloca.c.
15235
15236 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15237
15238 cat >>confdefs.h <<\_ACEOF
15239 #define C_ALLOCA 1
15240 _ACEOF
15241
15242
15243 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15244 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15245 if test "${ac_cv_os_cray+set}" = set; then
15246 echo $ECHO_N "(cached) $ECHO_C" >&6
15247 else
15248 cat >conftest.$ac_ext <<_ACEOF
15249 /* confdefs.h. */
15250 _ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15254 #if defined CRAY && ! defined CRAY2
15255 webecray
15256 #else
15257 wenotbecray
15258 #endif
15259
15260 _ACEOF
15261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15262 $EGREP "webecray" >/dev/null 2>&1; then
15263 ac_cv_os_cray=yes
15264 else
15265 ac_cv_os_cray=no
15266 fi
15267 rm -f conftest*
15268
15269 fi
15270 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15271 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15272 if test $ac_cv_os_cray = yes; then
15273 for ac_func in _getb67 GETB67 getb67; do
15274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15278 echo $ECHO_N "(cached) $ECHO_C" >&6
15279 else
15280 cat >conftest.$ac_ext <<_ACEOF
15281 /* confdefs.h. */
15282 _ACEOF
15283 cat confdefs.h >>conftest.$ac_ext
15284 cat >>conftest.$ac_ext <<_ACEOF
15285 /* end confdefs.h. */
15286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15288 #define $ac_func innocuous_$ac_func
15289
15290 /* System header to define __stub macros and hopefully few prototypes,
15291 which can conflict with char $ac_func (); below.
15292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15293 <limits.h> exists even on freestanding compilers. */
15294
15295 #ifdef __STDC__
15296 # include <limits.h>
15297 #else
15298 # include <assert.h>
15299 #endif
15300
15301 #undef $ac_func
15302
15303 /* Override any GCC internal prototype to avoid an error.
15304 Use char because int might match the return type of a GCC
15305 builtin and then its argument prototype would still apply. */
15306 #ifdef __cplusplus
15307 extern "C"
15308 #endif
15309 char $ac_func ();
15310 /* The GNU C library defines this for functions which it implements
15311 to always fail with ENOSYS. Some functions are actually named
15312 something starting with __ and the normal name is an alias. */
15313 #if defined __stub_$ac_func || defined __stub___$ac_func
15314 choke me
15315 #endif
15316
15317 int
15318 main ()
15319 {
15320 return $ac_func ();
15321 ;
15322 return 0;
15323 }
15324 _ACEOF
15325 rm -f conftest.$ac_objext conftest$ac_exeext
15326 if { (ac_try="$ac_link"
15327 case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15330 esac
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332 (eval "$ac_link") 2>conftest.er1
15333 ac_status=$?
15334 grep -v '^ *+' conftest.er1 >conftest.err
15335 rm -f conftest.er1
15336 cat conftest.err >&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); } && {
15339 test -z "$ac_c_werror_flag" ||
15340 test ! -s conftest.err
15341 } && test -s conftest$ac_exeext &&
15342 $as_test_x conftest$ac_exeext; then
15343 eval "$as_ac_var=yes"
15344 else
15345 echo "$as_me: failed program was:" >&5
15346 sed 's/^/| /' conftest.$ac_ext >&5
15347
15348 eval "$as_ac_var=no"
15349 fi
15350
15351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15352 conftest$ac_exeext conftest.$ac_ext
15353 fi
15354 ac_res=`eval echo '${'$as_ac_var'}'`
15355 { echo "$as_me:$LINENO: result: $ac_res" >&5
15356 echo "${ECHO_T}$ac_res" >&6; }
15357 if test `eval echo '${'$as_ac_var'}'` = yes; then
15358
15359 cat >>confdefs.h <<_ACEOF
15360 #define CRAY_STACKSEG_END $ac_func
15361 _ACEOF
15362
15363 break
15364 fi
15365
15366 done
15367 fi
15368
15369 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15370 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15371 if test "${ac_cv_c_stack_direction+set}" = set; then
15372 echo $ECHO_N "(cached) $ECHO_C" >&6
15373 else
15374 if test "$cross_compiling" = yes; then
15375 ac_cv_c_stack_direction=0
15376 else
15377 cat >conftest.$ac_ext <<_ACEOF
15378 /* confdefs.h. */
15379 _ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h. */
15383 $ac_includes_default
15384 int
15385 find_stack_direction ()
15386 {
15387 static char *addr = 0;
15388 auto char dummy;
15389 if (addr == 0)
15390 {
15391 addr = &dummy;
15392 return find_stack_direction ();
15393 }
15394 else
15395 return (&dummy > addr) ? 1 : -1;
15396 }
15397
15398 int
15399 main ()
15400 {
15401 return find_stack_direction () < 0;
15402 }
15403 _ACEOF
15404 rm -f conftest$ac_exeext
15405 if { (ac_try="$ac_link"
15406 case "(($ac_try" in
15407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408 *) ac_try_echo=$ac_try;;
15409 esac
15410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411 (eval "$ac_link") 2>&5
15412 ac_status=$?
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15415 { (case "(($ac_try" in
15416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417 *) ac_try_echo=$ac_try;;
15418 esac
15419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420 (eval "$ac_try") 2>&5
15421 ac_status=$?
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; }; then
15424 ac_cv_c_stack_direction=1
15425 else
15426 echo "$as_me: program exited with status $ac_status" >&5
15427 echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15429
15430 ( exit $ac_status )
15431 ac_cv_c_stack_direction=-1
15432 fi
15433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15434 fi
15435
15436
15437 fi
15438 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15439 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15440
15441 cat >>confdefs.h <<_ACEOF
15442 #define STACK_DIRECTION $ac_cv_c_stack_direction
15443 _ACEOF
15444
15445
15446 fi
15447
15448
15449 if test x"$ac_cv_func_alloca_works" != xyes; then
15450 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15451 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15452 { (exit 1); exit 1; }; }
15453 fi
15454
15455 # fmod, logb, and frexp are found in -lm on most systems.
15456 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15457
15458 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15459 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15460 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
15462 else
15463 ac_check_lib_save_LIBS=$LIBS
15464 LIBS="-lm $LIBS"
15465 cat >conftest.$ac_ext <<_ACEOF
15466 /* confdefs.h. */
15467 _ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h. */
15471
15472 /* Override any GCC internal prototype to avoid an error.
15473 Use char because int might match the return type of a GCC
15474 builtin and then its argument prototype would still apply. */
15475 #ifdef __cplusplus
15476 extern "C"
15477 #endif
15478 char sqrt ();
15479 int
15480 main ()
15481 {
15482 return sqrt ();
15483 ;
15484 return 0;
15485 }
15486 _ACEOF
15487 rm -f conftest.$ac_objext conftest$ac_exeext
15488 if { (ac_try="$ac_link"
15489 case "(($ac_try" in
15490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491 *) ac_try_echo=$ac_try;;
15492 esac
15493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494 (eval "$ac_link") 2>conftest.er1
15495 ac_status=$?
15496 grep -v '^ *+' conftest.er1 >conftest.err
15497 rm -f conftest.er1
15498 cat conftest.err >&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); } && {
15501 test -z "$ac_c_werror_flag" ||
15502 test ! -s conftest.err
15503 } && test -s conftest$ac_exeext &&
15504 $as_test_x conftest$ac_exeext; then
15505 ac_cv_lib_m_sqrt=yes
15506 else
15507 echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15509
15510 ac_cv_lib_m_sqrt=no
15511 fi
15512
15513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15514 conftest$ac_exeext conftest.$ac_ext
15515 LIBS=$ac_check_lib_save_LIBS
15516 fi
15517 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15518 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15519 if test $ac_cv_lib_m_sqrt = yes; then
15520 cat >>confdefs.h <<_ACEOF
15521 #define HAVE_LIBM 1
15522 _ACEOF
15523
15524 LIBS="-lm $LIBS"
15525
15526 fi
15527
15528
15529 # Check for mail-locking functions in a "mail" library. Probably this should
15530 # have the same check as for liblockfile below.
15531
15532 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15533 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15534 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15535 echo $ECHO_N "(cached) $ECHO_C" >&6
15536 else
15537 ac_check_lib_save_LIBS=$LIBS
15538 LIBS="-lmail $LIBS"
15539 cat >conftest.$ac_ext <<_ACEOF
15540 /* confdefs.h. */
15541 _ACEOF
15542 cat confdefs.h >>conftest.$ac_ext
15543 cat >>conftest.$ac_ext <<_ACEOF
15544 /* end confdefs.h. */
15545
15546 /* Override any GCC internal prototype to avoid an error.
15547 Use char because int might match the return type of a GCC
15548 builtin and then its argument prototype would still apply. */
15549 #ifdef __cplusplus
15550 extern "C"
15551 #endif
15552 char maillock ();
15553 int
15554 main ()
15555 {
15556 return maillock ();
15557 ;
15558 return 0;
15559 }
15560 _ACEOF
15561 rm -f conftest.$ac_objext conftest$ac_exeext
15562 if { (ac_try="$ac_link"
15563 case "(($ac_try" in
15564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565 *) ac_try_echo=$ac_try;;
15566 esac
15567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15568 (eval "$ac_link") 2>conftest.er1
15569 ac_status=$?
15570 grep -v '^ *+' conftest.er1 >conftest.err
15571 rm -f conftest.er1
15572 cat conftest.err >&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } && {
15575 test -z "$ac_c_werror_flag" ||
15576 test ! -s conftest.err
15577 } && test -s conftest$ac_exeext &&
15578 $as_test_x conftest$ac_exeext; then
15579 ac_cv_lib_mail_maillock=yes
15580 else
15581 echo "$as_me: failed program was:" >&5
15582 sed 's/^/| /' conftest.$ac_ext >&5
15583
15584 ac_cv_lib_mail_maillock=no
15585 fi
15586
15587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15588 conftest$ac_exeext conftest.$ac_ext
15589 LIBS=$ac_check_lib_save_LIBS
15590 fi
15591 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15592 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15593 if test $ac_cv_lib_mail_maillock = yes; then
15594 cat >>confdefs.h <<_ACEOF
15595 #define HAVE_LIBMAIL 1
15596 _ACEOF
15597
15598 LIBS="-lmail $LIBS"
15599
15600 fi
15601
15602
15603 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15604 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15605 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15606 echo $ECHO_N "(cached) $ECHO_C" >&6
15607 else
15608 ac_check_lib_save_LIBS=$LIBS
15609 LIBS="-llockfile $LIBS"
15610 cat >conftest.$ac_ext <<_ACEOF
15611 /* confdefs.h. */
15612 _ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h. */
15616
15617 /* Override any GCC internal prototype to avoid an error.
15618 Use char because int might match the return type of a GCC
15619 builtin and then its argument prototype would still apply. */
15620 #ifdef __cplusplus
15621 extern "C"
15622 #endif
15623 char maillock ();
15624 int
15625 main ()
15626 {
15627 return maillock ();
15628 ;
15629 return 0;
15630 }
15631 _ACEOF
15632 rm -f conftest.$ac_objext conftest$ac_exeext
15633 if { (ac_try="$ac_link"
15634 case "(($ac_try" in
15635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15636 *) ac_try_echo=$ac_try;;
15637 esac
15638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15639 (eval "$ac_link") 2>conftest.er1
15640 ac_status=$?
15641 grep -v '^ *+' conftest.er1 >conftest.err
15642 rm -f conftest.er1
15643 cat conftest.err >&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); } && {
15646 test -z "$ac_c_werror_flag" ||
15647 test ! -s conftest.err
15648 } && test -s conftest$ac_exeext &&
15649 $as_test_x conftest$ac_exeext; then
15650 ac_cv_lib_lockfile_maillock=yes
15651 else
15652 echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15654
15655 ac_cv_lib_lockfile_maillock=no
15656 fi
15657
15658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15659 conftest$ac_exeext conftest.$ac_ext
15660 LIBS=$ac_check_lib_save_LIBS
15661 fi
15662 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15663 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15664 if test $ac_cv_lib_lockfile_maillock = yes; then
15665 cat >>confdefs.h <<_ACEOF
15666 #define HAVE_LIBLOCKFILE 1
15667 _ACEOF
15668
15669 LIBS="-llockfile $LIBS"
15670
15671 fi
15672
15673 # If we have the shared liblockfile, assume we must use it for mail
15674 # locking (e.g. Debian). If we couldn't link against liblockfile
15675 # (no liblockfile.a installed), ensure that we don't need to.
15676 if test "$ac_cv_lib_lockfile_maillock" = no; then
15677 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15678 set dummy liblockfile.so; ac_word=$2
15679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15681 if test "${ac_cv_prog_liblockfile+set}" = set; then
15682 echo $ECHO_N "(cached) $ECHO_C" >&6
15683 else
15684 if test -n "$liblockfile"; then
15685 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15686 else
15687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15688 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15689 for as_dir in $as_dummy
15690 do
15691 IFS=$as_save_IFS
15692 test -z "$as_dir" && as_dir=.
15693 for ac_exec_ext in '' $ac_executable_extensions; do
15694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15695 ac_cv_prog_liblockfile="yes"
15696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15697 break 2
15698 fi
15699 done
15700 done
15701 IFS=$as_save_IFS
15702
15703 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15704 fi
15705 fi
15706 liblockfile=$ac_cv_prog_liblockfile
15707 if test -n "$liblockfile"; then
15708 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15709 echo "${ECHO_T}$liblockfile" >&6; }
15710 else
15711 { echo "$as_me:$LINENO: result: no" >&5
15712 echo "${ECHO_T}no" >&6; }
15713 fi
15714
15715
15716 if test $ac_cv_prog_liblockfile = yes; then
15717 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15718 This probably means that movemail could lose mail.
15719 There may be a \`development' package to install containing liblockfile." >&5
15720 echo "$as_me: error: Shared liblockfile found but can't link against it.
15721 This probably means that movemail could lose mail.
15722 There may be a \`development' package to install containing liblockfile." >&2;}
15723 { (exit 1); exit 1; }; }
15724 else :
15725 fi
15726 fi
15727
15728 for ac_func in touchlock
15729 do
15730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15731 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15733 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15734 echo $ECHO_N "(cached) $ECHO_C" >&6
15735 else
15736 cat >conftest.$ac_ext <<_ACEOF
15737 /* confdefs.h. */
15738 _ACEOF
15739 cat confdefs.h >>conftest.$ac_ext
15740 cat >>conftest.$ac_ext <<_ACEOF
15741 /* end confdefs.h. */
15742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15744 #define $ac_func innocuous_$ac_func
15745
15746 /* System header to define __stub macros and hopefully few prototypes,
15747 which can conflict with char $ac_func (); below.
15748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15749 <limits.h> exists even on freestanding compilers. */
15750
15751 #ifdef __STDC__
15752 # include <limits.h>
15753 #else
15754 # include <assert.h>
15755 #endif
15756
15757 #undef $ac_func
15758
15759 /* Override any GCC internal prototype to avoid an error.
15760 Use char because int might match the return type of a GCC
15761 builtin and then its argument prototype would still apply. */
15762 #ifdef __cplusplus
15763 extern "C"
15764 #endif
15765 char $ac_func ();
15766 /* The GNU C library defines this for functions which it implements
15767 to always fail with ENOSYS. Some functions are actually named
15768 something starting with __ and the normal name is an alias. */
15769 #if defined __stub_$ac_func || defined __stub___$ac_func
15770 choke me
15771 #endif
15772
15773 int
15774 main ()
15775 {
15776 return $ac_func ();
15777 ;
15778 return 0;
15779 }
15780 _ACEOF
15781 rm -f conftest.$ac_objext conftest$ac_exeext
15782 if { (ac_try="$ac_link"
15783 case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15786 esac
15787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788 (eval "$ac_link") 2>conftest.er1
15789 ac_status=$?
15790 grep -v '^ *+' conftest.er1 >conftest.err
15791 rm -f conftest.er1
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } && {
15795 test -z "$ac_c_werror_flag" ||
15796 test ! -s conftest.err
15797 } && test -s conftest$ac_exeext &&
15798 $as_test_x conftest$ac_exeext; then
15799 eval "$as_ac_var=yes"
15800 else
15801 echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15803
15804 eval "$as_ac_var=no"
15805 fi
15806
15807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15808 conftest$ac_exeext conftest.$ac_ext
15809 fi
15810 ac_res=`eval echo '${'$as_ac_var'}'`
15811 { echo "$as_me:$LINENO: result: $ac_res" >&5
15812 echo "${ECHO_T}$ac_res" >&6; }
15813 if test `eval echo '${'$as_ac_var'}'` = yes; then
15814 cat >>confdefs.h <<_ACEOF
15815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15816 _ACEOF
15817
15818 fi
15819 done
15820
15821
15822 for ac_header in maillock.h
15823 do
15824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15829 echo $ECHO_N "(cached) $ECHO_C" >&6
15830 fi
15831 ac_res=`eval echo '${'$as_ac_Header'}'`
15832 { echo "$as_me:$LINENO: result: $ac_res" >&5
15833 echo "${ECHO_T}$ac_res" >&6; }
15834 else
15835 # Is the header compilable?
15836 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15838 cat >conftest.$ac_ext <<_ACEOF
15839 /* confdefs.h. */
15840 _ACEOF
15841 cat confdefs.h >>conftest.$ac_ext
15842 cat >>conftest.$ac_ext <<_ACEOF
15843 /* end confdefs.h. */
15844 $ac_includes_default
15845 #include <$ac_header>
15846 _ACEOF
15847 rm -f conftest.$ac_objext
15848 if { (ac_try="$ac_compile"
15849 case "(($ac_try" in
15850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15851 *) ac_try_echo=$ac_try;;
15852 esac
15853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15854 (eval "$ac_compile") 2>conftest.er1
15855 ac_status=$?
15856 grep -v '^ *+' conftest.er1 >conftest.err
15857 rm -f conftest.er1
15858 cat conftest.err >&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); } && {
15861 test -z "$ac_c_werror_flag" ||
15862 test ! -s conftest.err
15863 } && test -s conftest.$ac_objext; then
15864 ac_header_compiler=yes
15865 else
15866 echo "$as_me: failed program was:" >&5
15867 sed 's/^/| /' conftest.$ac_ext >&5
15868
15869 ac_header_compiler=no
15870 fi
15871
15872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15874 echo "${ECHO_T}$ac_header_compiler" >&6; }
15875
15876 # Is the header present?
15877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15879 cat >conftest.$ac_ext <<_ACEOF
15880 /* confdefs.h. */
15881 _ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h. */
15885 #include <$ac_header>
15886 _ACEOF
15887 if { (ac_try="$ac_cpp conftest.$ac_ext"
15888 case "(($ac_try" in
15889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15890 *) ac_try_echo=$ac_try;;
15891 esac
15892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15894 ac_status=$?
15895 grep -v '^ *+' conftest.er1 >conftest.err
15896 rm -f conftest.er1
15897 cat conftest.err >&5
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); } >/dev/null && {
15900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15901 test ! -s conftest.err
15902 }; then
15903 ac_header_preproc=yes
15904 else
15905 echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15907
15908 ac_header_preproc=no
15909 fi
15910
15911 rm -f conftest.err conftest.$ac_ext
15912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15913 echo "${ECHO_T}$ac_header_preproc" >&6; }
15914
15915 # So? What about this header?
15916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15917 yes:no: )
15918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15922 ac_header_preproc=yes
15923 ;;
15924 no:yes:* )
15925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15932 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15937
15938 ;;
15939 esac
15940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15943 echo $ECHO_N "(cached) $ECHO_C" >&6
15944 else
15945 eval "$as_ac_Header=\$ac_header_preproc"
15946 fi
15947 ac_res=`eval echo '${'$as_ac_Header'}'`
15948 { echo "$as_me:$LINENO: result: $ac_res" >&5
15949 echo "${ECHO_T}$ac_res" >&6; }
15950
15951 fi
15952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15953 cat >>confdefs.h <<_ACEOF
15954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15955 _ACEOF
15956
15957 fi
15958
15959 done
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030 for ac_func in gethostname getdomainname dup2 \
16031 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16032 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16033 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16034 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16035 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16036 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16037 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16038 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16039 do
16040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16044 echo $ECHO_N "(cached) $ECHO_C" >&6
16045 else
16046 cat >conftest.$ac_ext <<_ACEOF
16047 /* confdefs.h. */
16048 _ACEOF
16049 cat confdefs.h >>conftest.$ac_ext
16050 cat >>conftest.$ac_ext <<_ACEOF
16051 /* end confdefs.h. */
16052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16054 #define $ac_func innocuous_$ac_func
16055
16056 /* System header to define __stub macros and hopefully few prototypes,
16057 which can conflict with char $ac_func (); below.
16058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16059 <limits.h> exists even on freestanding compilers. */
16060
16061 #ifdef __STDC__
16062 # include <limits.h>
16063 #else
16064 # include <assert.h>
16065 #endif
16066
16067 #undef $ac_func
16068
16069 /* Override any GCC internal prototype to avoid an error.
16070 Use char because int might match the return type of a GCC
16071 builtin and then its argument prototype would still apply. */
16072 #ifdef __cplusplus
16073 extern "C"
16074 #endif
16075 char $ac_func ();
16076 /* The GNU C library defines this for functions which it implements
16077 to always fail with ENOSYS. Some functions are actually named
16078 something starting with __ and the normal name is an alias. */
16079 #if defined __stub_$ac_func || defined __stub___$ac_func
16080 choke me
16081 #endif
16082
16083 int
16084 main ()
16085 {
16086 return $ac_func ();
16087 ;
16088 return 0;
16089 }
16090 _ACEOF
16091 rm -f conftest.$ac_objext conftest$ac_exeext
16092 if { (ac_try="$ac_link"
16093 case "(($ac_try" in
16094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16095 *) ac_try_echo=$ac_try;;
16096 esac
16097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16098 (eval "$ac_link") 2>conftest.er1
16099 ac_status=$?
16100 grep -v '^ *+' conftest.er1 >conftest.err
16101 rm -f conftest.er1
16102 cat conftest.err >&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } && {
16105 test -z "$ac_c_werror_flag" ||
16106 test ! -s conftest.err
16107 } && test -s conftest$ac_exeext &&
16108 $as_test_x conftest$ac_exeext; then
16109 eval "$as_ac_var=yes"
16110 else
16111 echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.$ac_ext >&5
16113
16114 eval "$as_ac_var=no"
16115 fi
16116
16117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16118 conftest$ac_exeext conftest.$ac_ext
16119 fi
16120 ac_res=`eval echo '${'$as_ac_var'}'`
16121 { echo "$as_me:$LINENO: result: $ac_res" >&5
16122 echo "${ECHO_T}$ac_res" >&6; }
16123 if test `eval echo '${'$as_ac_var'}'` = yes; then
16124 cat >>confdefs.h <<_ACEOF
16125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16126 _ACEOF
16127
16128 fi
16129 done
16130
16131
16132
16133 for ac_header in sys/un.h
16134 do
16135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16140 echo $ECHO_N "(cached) $ECHO_C" >&6
16141 fi
16142 ac_res=`eval echo '${'$as_ac_Header'}'`
16143 { echo "$as_me:$LINENO: result: $ac_res" >&5
16144 echo "${ECHO_T}$ac_res" >&6; }
16145 else
16146 # Is the header compilable?
16147 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16149 cat >conftest.$ac_ext <<_ACEOF
16150 /* confdefs.h. */
16151 _ACEOF
16152 cat confdefs.h >>conftest.$ac_ext
16153 cat >>conftest.$ac_ext <<_ACEOF
16154 /* end confdefs.h. */
16155 $ac_includes_default
16156 #include <$ac_header>
16157 _ACEOF
16158 rm -f conftest.$ac_objext
16159 if { (ac_try="$ac_compile"
16160 case "(($ac_try" in
16161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16162 *) ac_try_echo=$ac_try;;
16163 esac
16164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16165 (eval "$ac_compile") 2>conftest.er1
16166 ac_status=$?
16167 grep -v '^ *+' conftest.er1 >conftest.err
16168 rm -f conftest.er1
16169 cat conftest.err >&5
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } && {
16172 test -z "$ac_c_werror_flag" ||
16173 test ! -s conftest.err
16174 } && test -s conftest.$ac_objext; then
16175 ac_header_compiler=yes
16176 else
16177 echo "$as_me: failed program was:" >&5
16178 sed 's/^/| /' conftest.$ac_ext >&5
16179
16180 ac_header_compiler=no
16181 fi
16182
16183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16185 echo "${ECHO_T}$ac_header_compiler" >&6; }
16186
16187 # Is the header present?
16188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16190 cat >conftest.$ac_ext <<_ACEOF
16191 /* confdefs.h. */
16192 _ACEOF
16193 cat confdefs.h >>conftest.$ac_ext
16194 cat >>conftest.$ac_ext <<_ACEOF
16195 /* end confdefs.h. */
16196 #include <$ac_header>
16197 _ACEOF
16198 if { (ac_try="$ac_cpp conftest.$ac_ext"
16199 case "(($ac_try" in
16200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201 *) ac_try_echo=$ac_try;;
16202 esac
16203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16205 ac_status=$?
16206 grep -v '^ *+' conftest.er1 >conftest.err
16207 rm -f conftest.er1
16208 cat conftest.err >&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } >/dev/null && {
16211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16212 test ! -s conftest.err
16213 }; then
16214 ac_header_preproc=yes
16215 else
16216 echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16218
16219 ac_header_preproc=no
16220 fi
16221
16222 rm -f conftest.err conftest.$ac_ext
16223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16224 echo "${ECHO_T}$ac_header_preproc" >&6; }
16225
16226 # So? What about this header?
16227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16228 yes:no: )
16229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16233 ac_header_preproc=yes
16234 ;;
16235 no:yes:* )
16236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16239 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16243 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16248
16249 ;;
16250 esac
16251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16254 echo $ECHO_N "(cached) $ECHO_C" >&6
16255 else
16256 eval "$as_ac_Header=\$ac_header_preproc"
16257 fi
16258 ac_res=`eval echo '${'$as_ac_Header'}'`
16259 { echo "$as_me:$LINENO: result: $ac_res" >&5
16260 echo "${ECHO_T}$ac_res" >&6; }
16261
16262 fi
16263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16264 cat >>confdefs.h <<_ACEOF
16265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16266 _ACEOF
16267
16268 fi
16269
16270 done
16271
16272
16273
16274
16275
16276
16277 for ac_header in $ac_header_list
16278 do
16279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16284 echo $ECHO_N "(cached) $ECHO_C" >&6
16285 fi
16286 ac_res=`eval echo '${'$as_ac_Header'}'`
16287 { echo "$as_me:$LINENO: result: $ac_res" >&5
16288 echo "${ECHO_T}$ac_res" >&6; }
16289 else
16290 # Is the header compilable?
16291 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16292 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16293 cat >conftest.$ac_ext <<_ACEOF
16294 /* confdefs.h. */
16295 _ACEOF
16296 cat confdefs.h >>conftest.$ac_ext
16297 cat >>conftest.$ac_ext <<_ACEOF
16298 /* end confdefs.h. */
16299 $ac_includes_default
16300 #include <$ac_header>
16301 _ACEOF
16302 rm -f conftest.$ac_objext
16303 if { (ac_try="$ac_compile"
16304 case "(($ac_try" in
16305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16306 *) ac_try_echo=$ac_try;;
16307 esac
16308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16309 (eval "$ac_compile") 2>conftest.er1
16310 ac_status=$?
16311 grep -v '^ *+' conftest.er1 >conftest.err
16312 rm -f conftest.er1
16313 cat conftest.err >&5
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); } && {
16316 test -z "$ac_c_werror_flag" ||
16317 test ! -s conftest.err
16318 } && test -s conftest.$ac_objext; then
16319 ac_header_compiler=yes
16320 else
16321 echo "$as_me: failed program was:" >&5
16322 sed 's/^/| /' conftest.$ac_ext >&5
16323
16324 ac_header_compiler=no
16325 fi
16326
16327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16329 echo "${ECHO_T}$ac_header_compiler" >&6; }
16330
16331 # Is the header present?
16332 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16334 cat >conftest.$ac_ext <<_ACEOF
16335 /* confdefs.h. */
16336 _ACEOF
16337 cat confdefs.h >>conftest.$ac_ext
16338 cat >>conftest.$ac_ext <<_ACEOF
16339 /* end confdefs.h. */
16340 #include <$ac_header>
16341 _ACEOF
16342 if { (ac_try="$ac_cpp conftest.$ac_ext"
16343 case "(($ac_try" in
16344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16345 *) ac_try_echo=$ac_try;;
16346 esac
16347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16349 ac_status=$?
16350 grep -v '^ *+' conftest.er1 >conftest.err
16351 rm -f conftest.er1
16352 cat conftest.err >&5
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); } >/dev/null && {
16355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16356 test ! -s conftest.err
16357 }; then
16358 ac_header_preproc=yes
16359 else
16360 echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16362
16363 ac_header_preproc=no
16364 fi
16365
16366 rm -f conftest.err conftest.$ac_ext
16367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16368 echo "${ECHO_T}$ac_header_preproc" >&6; }
16369
16370 # So? What about this header?
16371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16372 yes:no: )
16373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16377 ac_header_preproc=yes
16378 ;;
16379 no:yes:* )
16380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16383 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16387 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16392
16393 ;;
16394 esac
16395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16398 echo $ECHO_N "(cached) $ECHO_C" >&6
16399 else
16400 eval "$as_ac_Header=\$ac_header_preproc"
16401 fi
16402 ac_res=`eval echo '${'$as_ac_Header'}'`
16403 { echo "$as_me:$LINENO: result: $ac_res" >&5
16404 echo "${ECHO_T}$ac_res" >&6; }
16405
16406 fi
16407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16408 cat >>confdefs.h <<_ACEOF
16409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16410 _ACEOF
16411
16412 fi
16413
16414 done
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424 for ac_func in $ac_func_list
16425 do
16426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16427 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16429 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16430 echo $ECHO_N "(cached) $ECHO_C" >&6
16431 else
16432 cat >conftest.$ac_ext <<_ACEOF
16433 /* confdefs.h. */
16434 _ACEOF
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h. */
16438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16440 #define $ac_func innocuous_$ac_func
16441
16442 /* System header to define __stub macros and hopefully few prototypes,
16443 which can conflict with char $ac_func (); below.
16444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16445 <limits.h> exists even on freestanding compilers. */
16446
16447 #ifdef __STDC__
16448 # include <limits.h>
16449 #else
16450 # include <assert.h>
16451 #endif
16452
16453 #undef $ac_func
16454
16455 /* Override any GCC internal prototype to avoid an error.
16456 Use char because int might match the return type of a GCC
16457 builtin and then its argument prototype would still apply. */
16458 #ifdef __cplusplus
16459 extern "C"
16460 #endif
16461 char $ac_func ();
16462 /* The GNU C library defines this for functions which it implements
16463 to always fail with ENOSYS. Some functions are actually named
16464 something starting with __ and the normal name is an alias. */
16465 #if defined __stub_$ac_func || defined __stub___$ac_func
16466 choke me
16467 #endif
16468
16469 int
16470 main ()
16471 {
16472 return $ac_func ();
16473 ;
16474 return 0;
16475 }
16476 _ACEOF
16477 rm -f conftest.$ac_objext conftest$ac_exeext
16478 if { (ac_try="$ac_link"
16479 case "(($ac_try" in
16480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481 *) ac_try_echo=$ac_try;;
16482 esac
16483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484 (eval "$ac_link") 2>conftest.er1
16485 ac_status=$?
16486 grep -v '^ *+' conftest.er1 >conftest.err
16487 rm -f conftest.er1
16488 cat conftest.err >&5
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } && {
16491 test -z "$ac_c_werror_flag" ||
16492 test ! -s conftest.err
16493 } && test -s conftest$ac_exeext &&
16494 $as_test_x conftest$ac_exeext; then
16495 eval "$as_ac_var=yes"
16496 else
16497 echo "$as_me: failed program was:" >&5
16498 sed 's/^/| /' conftest.$ac_ext >&5
16499
16500 eval "$as_ac_var=no"
16501 fi
16502
16503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16504 conftest$ac_exeext conftest.$ac_ext
16505 fi
16506 ac_res=`eval echo '${'$as_ac_var'}'`
16507 { echo "$as_me:$LINENO: result: $ac_res" >&5
16508 echo "${ECHO_T}$ac_res" >&6; }
16509 if test `eval echo '${'$as_ac_var'}'` = yes; then
16510 cat >>confdefs.h <<_ACEOF
16511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16512 _ACEOF
16513
16514 fi
16515 done
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533 { echo "$as_me:$LINENO: checking for working mktime" >&5
16534 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16535 if test "${ac_cv_func_working_mktime+set}" = set; then
16536 echo $ECHO_N "(cached) $ECHO_C" >&6
16537 else
16538 if test "$cross_compiling" = yes; then
16539 ac_cv_func_working_mktime=no
16540 else
16541 cat >conftest.$ac_ext <<_ACEOF
16542 /* confdefs.h. */
16543 _ACEOF
16544 cat confdefs.h >>conftest.$ac_ext
16545 cat >>conftest.$ac_ext <<_ACEOF
16546 /* end confdefs.h. */
16547 /* Test program from Paul Eggert and Tony Leneis. */
16548 #ifdef TIME_WITH_SYS_TIME
16549 # include <sys/time.h>
16550 # include <time.h>
16551 #else
16552 # ifdef HAVE_SYS_TIME_H
16553 # include <sys/time.h>
16554 # else
16555 # include <time.h>
16556 # endif
16557 #endif
16558
16559 #include <stdlib.h>
16560
16561 #ifdef HAVE_UNISTD_H
16562 # include <unistd.h>
16563 #endif
16564
16565 #ifndef HAVE_ALARM
16566 # define alarm(X) /* empty */
16567 #endif
16568
16569 /* Work around redefinition to rpl_putenv by other config tests. */
16570 #undef putenv
16571
16572 static time_t time_t_max;
16573 static time_t time_t_min;
16574
16575 /* Values we'll use to set the TZ environment variable. */
16576 static char *tz_strings[] = {
16577 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16578 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16579 };
16580 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16581
16582 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16583 Based on a problem report from Andreas Jaeger. */
16584 static int
16585 spring_forward_gap ()
16586 {
16587 /* glibc (up to about 1998-10-07) failed this test. */
16588 struct tm tm;
16589
16590 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16591 instead of "TZ=America/Vancouver" in order to detect the bug even
16592 on systems that don't support the Olson extension, or don't have the
16593 full zoneinfo tables installed. */
16594 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16595
16596 tm.tm_year = 98;
16597 tm.tm_mon = 3;
16598 tm.tm_mday = 5;
16599 tm.tm_hour = 2;
16600 tm.tm_min = 0;
16601 tm.tm_sec = 0;
16602 tm.tm_isdst = -1;
16603 return mktime (&tm) != (time_t) -1;
16604 }
16605
16606 static int
16607 mktime_test1 (now)
16608 time_t now;
16609 {
16610 struct tm *lt;
16611 return ! (lt = localtime (&now)) || mktime (lt) == now;
16612 }
16613
16614 static int
16615 mktime_test (now)
16616 time_t now;
16617 {
16618 return (mktime_test1 (now)
16619 && mktime_test1 ((time_t) (time_t_max - now))
16620 && mktime_test1 ((time_t) (time_t_min + now)));
16621 }
16622
16623 static int
16624 irix_6_4_bug ()
16625 {
16626 /* Based on code from Ariel Faigon. */
16627 struct tm tm;
16628 tm.tm_year = 96;
16629 tm.tm_mon = 3;
16630 tm.tm_mday = 0;
16631 tm.tm_hour = 0;
16632 tm.tm_min = 0;
16633 tm.tm_sec = 0;
16634 tm.tm_isdst = -1;
16635 mktime (&tm);
16636 return tm.tm_mon == 2 && tm.tm_mday == 31;
16637 }
16638
16639 static int
16640 bigtime_test (j)
16641 int j;
16642 {
16643 struct tm tm;
16644 time_t now;
16645 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16646 now = mktime (&tm);
16647 if (now != (time_t) -1)
16648 {
16649 struct tm *lt = localtime (&now);
16650 if (! (lt
16651 && lt->tm_year == tm.tm_year
16652 && lt->tm_mon == tm.tm_mon
16653 && lt->tm_mday == tm.tm_mday
16654 && lt->tm_hour == tm.tm_hour
16655 && lt->tm_min == tm.tm_min
16656 && lt->tm_sec == tm.tm_sec
16657 && lt->tm_yday == tm.tm_yday
16658 && lt->tm_wday == tm.tm_wday
16659 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16660 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16661 return 0;
16662 }
16663 return 1;
16664 }
16665
16666 static int
16667 year_2050_test ()
16668 {
16669 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16670 ignoring leap seconds. */
16671 unsigned long int answer = 2527315200UL;
16672
16673 struct tm tm;
16674 time_t t;
16675 tm.tm_year = 2050 - 1900;
16676 tm.tm_mon = 2 - 1;
16677 tm.tm_mday = 1;
16678 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16679 tm.tm_isdst = -1;
16680
16681 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16682 instead of "TZ=America/Vancouver" in order to detect the bug even
16683 on systems that don't support the Olson extension, or don't have the
16684 full zoneinfo tables installed. */
16685 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16686
16687 t = mktime (&tm);
16688
16689 /* Check that the result is either a failure, or close enough
16690 to the correct answer that we can assume the discrepancy is
16691 due to leap seconds. */
16692 return (t == (time_t) -1
16693 || (0 < t && answer - 120 <= t && t <= answer + 120));
16694 }
16695
16696 int
16697 main ()
16698 {
16699 time_t t, delta;
16700 int i, j;
16701
16702 /* This test makes some buggy mktime implementations loop.
16703 Give up after 60 seconds; a mktime slower than that
16704 isn't worth using anyway. */
16705 alarm (60);
16706
16707 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16708 continue;
16709 time_t_max--;
16710 if ((time_t) -1 < 0)
16711 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16712 continue;
16713 delta = time_t_max / 997; /* a suitable prime number */
16714 for (i = 0; i < N_STRINGS; i++)
16715 {
16716 if (tz_strings[i])
16717 putenv (tz_strings[i]);
16718
16719 for (t = 0; t <= time_t_max - delta; t += delta)
16720 if (! mktime_test (t))
16721 return 1;
16722 if (! (mktime_test ((time_t) 1)
16723 && mktime_test ((time_t) (60 * 60))
16724 && mktime_test ((time_t) (60 * 60 * 24))))
16725 return 1;
16726
16727 for (j = 1; 0 < j; j *= 2)
16728 if (! bigtime_test (j))
16729 return 1;
16730 if (! bigtime_test (j - 1))
16731 return 1;
16732 }
16733 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16734 }
16735 _ACEOF
16736 rm -f conftest$ac_exeext
16737 if { (ac_try="$ac_link"
16738 case "(($ac_try" in
16739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740 *) ac_try_echo=$ac_try;;
16741 esac
16742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743 (eval "$ac_link") 2>&5
16744 ac_status=$?
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16747 { (case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16750 esac
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_try") 2>&5
16753 ac_status=$?
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; }; then
16756 ac_cv_func_working_mktime=yes
16757 else
16758 echo "$as_me: program exited with status $ac_status" >&5
16759 echo "$as_me: failed program was:" >&5
16760 sed 's/^/| /' conftest.$ac_ext >&5
16761
16762 ( exit $ac_status )
16763 ac_cv_func_working_mktime=no
16764 fi
16765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16766 fi
16767
16768
16769 fi
16770 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16771 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16772 if test $ac_cv_func_working_mktime = no; then
16773 case " $LIBOBJS " in
16774 *" mktime.$ac_objext "* ) ;;
16775 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16776 ;;
16777 esac
16778
16779 fi
16780
16781 if test "$ac_cv_func_working_mktime" = no; then
16782
16783 cat >>confdefs.h <<\_ACEOF
16784 #define BROKEN_MKTIME 1
16785 _ACEOF
16786
16787 fi
16788
16789 ac_have_func=no # yes means we've found a way to get the load average.
16790
16791 # Make sure getloadavg.c is where it belongs, at configure-time.
16792 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16793 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16794 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16795 { (exit 1); exit 1; }; }
16796
16797 ac_save_LIBS=$LIBS
16798
16799 # Check for getloadavg, but be sure not to touch the cache variable.
16800 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16801 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16802 if test "${ac_cv_func_getloadavg+set}" = set; then
16803 echo $ECHO_N "(cached) $ECHO_C" >&6
16804 else
16805 cat >conftest.$ac_ext <<_ACEOF
16806 /* confdefs.h. */
16807 _ACEOF
16808 cat confdefs.h >>conftest.$ac_ext
16809 cat >>conftest.$ac_ext <<_ACEOF
16810 /* end confdefs.h. */
16811 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16813 #define getloadavg innocuous_getloadavg
16814
16815 /* System header to define __stub macros and hopefully few prototypes,
16816 which can conflict with char getloadavg (); below.
16817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16818 <limits.h> exists even on freestanding compilers. */
16819
16820 #ifdef __STDC__
16821 # include <limits.h>
16822 #else
16823 # include <assert.h>
16824 #endif
16825
16826 #undef getloadavg
16827
16828 /* Override any GCC internal prototype to avoid an error.
16829 Use char because int might match the return type of a GCC
16830 builtin and then its argument prototype would still apply. */
16831 #ifdef __cplusplus
16832 extern "C"
16833 #endif
16834 char getloadavg ();
16835 /* The GNU C library defines this for functions which it implements
16836 to always fail with ENOSYS. Some functions are actually named
16837 something starting with __ and the normal name is an alias. */
16838 #if defined __stub_getloadavg || defined __stub___getloadavg
16839 choke me
16840 #endif
16841
16842 int
16843 main ()
16844 {
16845 return getloadavg ();
16846 ;
16847 return 0;
16848 }
16849 _ACEOF
16850 rm -f conftest.$ac_objext conftest$ac_exeext
16851 if { (ac_try="$ac_link"
16852 case "(($ac_try" in
16853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854 *) ac_try_echo=$ac_try;;
16855 esac
16856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857 (eval "$ac_link") 2>conftest.er1
16858 ac_status=$?
16859 grep -v '^ *+' conftest.er1 >conftest.err
16860 rm -f conftest.er1
16861 cat conftest.err >&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); } && {
16864 test -z "$ac_c_werror_flag" ||
16865 test ! -s conftest.err
16866 } && test -s conftest$ac_exeext &&
16867 $as_test_x conftest$ac_exeext; then
16868 ac_cv_func_getloadavg=yes
16869 else
16870 echo "$as_me: failed program was:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16872
16873 ac_cv_func_getloadavg=no
16874 fi
16875
16876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16877 conftest$ac_exeext conftest.$ac_ext
16878 fi
16879 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16880 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16881 if test $ac_cv_func_getloadavg = yes; then
16882 exit 0
16883 else
16884 exit 1
16885 fi
16886 ) && ac_have_func=yes
16887
16888 # On HPUX9, an unprivileged user can get load averages through this function.
16889
16890 for ac_func in pstat_getdynamic
16891 do
16892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16896 echo $ECHO_N "(cached) $ECHO_C" >&6
16897 else
16898 cat >conftest.$ac_ext <<_ACEOF
16899 /* confdefs.h. */
16900 _ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16906 #define $ac_func innocuous_$ac_func
16907
16908 /* System header to define __stub macros and hopefully few prototypes,
16909 which can conflict with char $ac_func (); below.
16910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16911 <limits.h> exists even on freestanding compilers. */
16912
16913 #ifdef __STDC__
16914 # include <limits.h>
16915 #else
16916 # include <assert.h>
16917 #endif
16918
16919 #undef $ac_func
16920
16921 /* Override any GCC internal prototype to avoid an error.
16922 Use char because int might match the return type of a GCC
16923 builtin and then its argument prototype would still apply. */
16924 #ifdef __cplusplus
16925 extern "C"
16926 #endif
16927 char $ac_func ();
16928 /* The GNU C library defines this for functions which it implements
16929 to always fail with ENOSYS. Some functions are actually named
16930 something starting with __ and the normal name is an alias. */
16931 #if defined __stub_$ac_func || defined __stub___$ac_func
16932 choke me
16933 #endif
16934
16935 int
16936 main ()
16937 {
16938 return $ac_func ();
16939 ;
16940 return 0;
16941 }
16942 _ACEOF
16943 rm -f conftest.$ac_objext conftest$ac_exeext
16944 if { (ac_try="$ac_link"
16945 case "(($ac_try" in
16946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16947 *) ac_try_echo=$ac_try;;
16948 esac
16949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16950 (eval "$ac_link") 2>conftest.er1
16951 ac_status=$?
16952 grep -v '^ *+' conftest.er1 >conftest.err
16953 rm -f conftest.er1
16954 cat conftest.err >&5
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); } && {
16957 test -z "$ac_c_werror_flag" ||
16958 test ! -s conftest.err
16959 } && test -s conftest$ac_exeext &&
16960 $as_test_x conftest$ac_exeext; then
16961 eval "$as_ac_var=yes"
16962 else
16963 echo "$as_me: failed program was:" >&5
16964 sed 's/^/| /' conftest.$ac_ext >&5
16965
16966 eval "$as_ac_var=no"
16967 fi
16968
16969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16970 conftest$ac_exeext conftest.$ac_ext
16971 fi
16972 ac_res=`eval echo '${'$as_ac_var'}'`
16973 { echo "$as_me:$LINENO: result: $ac_res" >&5
16974 echo "${ECHO_T}$ac_res" >&6; }
16975 if test `eval echo '${'$as_ac_var'}'` = yes; then
16976 cat >>confdefs.h <<_ACEOF
16977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16978 _ACEOF
16979
16980 fi
16981 done
16982
16983
16984 # Solaris has libkstat which does not require root.
16985
16986 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16987 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16988 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16989 echo $ECHO_N "(cached) $ECHO_C" >&6
16990 else
16991 ac_check_lib_save_LIBS=$LIBS
16992 LIBS="-lkstat $LIBS"
16993 cat >conftest.$ac_ext <<_ACEOF
16994 /* confdefs.h. */
16995 _ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
16999
17000 /* Override any GCC internal prototype to avoid an error.
17001 Use char because int might match the return type of a GCC
17002 builtin and then its argument prototype would still apply. */
17003 #ifdef __cplusplus
17004 extern "C"
17005 #endif
17006 char kstat_open ();
17007 int
17008 main ()
17009 {
17010 return kstat_open ();
17011 ;
17012 return 0;
17013 }
17014 _ACEOF
17015 rm -f conftest.$ac_objext conftest$ac_exeext
17016 if { (ac_try="$ac_link"
17017 case "(($ac_try" in
17018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019 *) ac_try_echo=$ac_try;;
17020 esac
17021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17022 (eval "$ac_link") 2>conftest.er1
17023 ac_status=$?
17024 grep -v '^ *+' conftest.er1 >conftest.err
17025 rm -f conftest.er1
17026 cat conftest.err >&5
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); } && {
17029 test -z "$ac_c_werror_flag" ||
17030 test ! -s conftest.err
17031 } && test -s conftest$ac_exeext &&
17032 $as_test_x conftest$ac_exeext; then
17033 ac_cv_lib_kstat_kstat_open=yes
17034 else
17035 echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.$ac_ext >&5
17037
17038 ac_cv_lib_kstat_kstat_open=no
17039 fi
17040
17041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17042 conftest$ac_exeext conftest.$ac_ext
17043 LIBS=$ac_check_lib_save_LIBS
17044 fi
17045 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17046 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17047 if test $ac_cv_lib_kstat_kstat_open = yes; then
17048 cat >>confdefs.h <<_ACEOF
17049 #define HAVE_LIBKSTAT 1
17050 _ACEOF
17051
17052 LIBS="-lkstat $LIBS"
17053
17054 fi
17055
17056 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17057
17058 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17059 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17060 # to get the right answer into the cache.
17061 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17062 if test $ac_have_func = no; then
17063 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17064 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17065 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17066 echo $ECHO_N "(cached) $ECHO_C" >&6
17067 else
17068 ac_check_lib_save_LIBS=$LIBS
17069 LIBS="-lelf $LIBS"
17070 cat >conftest.$ac_ext <<_ACEOF
17071 /* confdefs.h. */
17072 _ACEOF
17073 cat confdefs.h >>conftest.$ac_ext
17074 cat >>conftest.$ac_ext <<_ACEOF
17075 /* end confdefs.h. */
17076
17077 /* Override any GCC internal prototype to avoid an error.
17078 Use char because int might match the return type of a GCC
17079 builtin and then its argument prototype would still apply. */
17080 #ifdef __cplusplus
17081 extern "C"
17082 #endif
17083 char elf_begin ();
17084 int
17085 main ()
17086 {
17087 return elf_begin ();
17088 ;
17089 return 0;
17090 }
17091 _ACEOF
17092 rm -f conftest.$ac_objext conftest$ac_exeext
17093 if { (ac_try="$ac_link"
17094 case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17097 esac
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_link") 2>conftest.er1
17100 ac_status=$?
17101 grep -v '^ *+' conftest.er1 >conftest.err
17102 rm -f conftest.er1
17103 cat conftest.err >&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); } && {
17106 test -z "$ac_c_werror_flag" ||
17107 test ! -s conftest.err
17108 } && test -s conftest$ac_exeext &&
17109 $as_test_x conftest$ac_exeext; then
17110 ac_cv_lib_elf_elf_begin=yes
17111 else
17112 echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17114
17115 ac_cv_lib_elf_elf_begin=no
17116 fi
17117
17118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17119 conftest$ac_exeext conftest.$ac_ext
17120 LIBS=$ac_check_lib_save_LIBS
17121 fi
17122 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17123 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17124 if test $ac_cv_lib_elf_elf_begin = yes; then
17125 LIBS="-lelf $LIBS"
17126 fi
17127
17128 fi
17129 if test $ac_have_func = no; then
17130 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17131 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17132 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17133 echo $ECHO_N "(cached) $ECHO_C" >&6
17134 else
17135 ac_check_lib_save_LIBS=$LIBS
17136 LIBS="-lkvm $LIBS"
17137 cat >conftest.$ac_ext <<_ACEOF
17138 /* confdefs.h. */
17139 _ACEOF
17140 cat confdefs.h >>conftest.$ac_ext
17141 cat >>conftest.$ac_ext <<_ACEOF
17142 /* end confdefs.h. */
17143
17144 /* Override any GCC internal prototype to avoid an error.
17145 Use char because int might match the return type of a GCC
17146 builtin and then its argument prototype would still apply. */
17147 #ifdef __cplusplus
17148 extern "C"
17149 #endif
17150 char kvm_open ();
17151 int
17152 main ()
17153 {
17154 return kvm_open ();
17155 ;
17156 return 0;
17157 }
17158 _ACEOF
17159 rm -f conftest.$ac_objext conftest$ac_exeext
17160 if { (ac_try="$ac_link"
17161 case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17164 esac
17165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_link") 2>conftest.er1
17167 ac_status=$?
17168 grep -v '^ *+' conftest.er1 >conftest.err
17169 rm -f conftest.er1
17170 cat conftest.err >&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); } && {
17173 test -z "$ac_c_werror_flag" ||
17174 test ! -s conftest.err
17175 } && test -s conftest$ac_exeext &&
17176 $as_test_x conftest$ac_exeext; then
17177 ac_cv_lib_kvm_kvm_open=yes
17178 else
17179 echo "$as_me: failed program was:" >&5
17180 sed 's/^/| /' conftest.$ac_ext >&5
17181
17182 ac_cv_lib_kvm_kvm_open=no
17183 fi
17184
17185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17186 conftest$ac_exeext conftest.$ac_ext
17187 LIBS=$ac_check_lib_save_LIBS
17188 fi
17189 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17190 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17191 if test $ac_cv_lib_kvm_kvm_open = yes; then
17192 LIBS="-lkvm $LIBS"
17193 fi
17194
17195 # Check for the 4.4BSD definition of getloadavg.
17196 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17197 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17198 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17199 echo $ECHO_N "(cached) $ECHO_C" >&6
17200 else
17201 ac_check_lib_save_LIBS=$LIBS
17202 LIBS="-lutil $LIBS"
17203 cat >conftest.$ac_ext <<_ACEOF
17204 /* confdefs.h. */
17205 _ACEOF
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h. */
17209
17210 /* Override any GCC internal prototype to avoid an error.
17211 Use char because int might match the return type of a GCC
17212 builtin and then its argument prototype would still apply. */
17213 #ifdef __cplusplus
17214 extern "C"
17215 #endif
17216 char getloadavg ();
17217 int
17218 main ()
17219 {
17220 return getloadavg ();
17221 ;
17222 return 0;
17223 }
17224 _ACEOF
17225 rm -f conftest.$ac_objext conftest$ac_exeext
17226 if { (ac_try="$ac_link"
17227 case "(($ac_try" in
17228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229 *) ac_try_echo=$ac_try;;
17230 esac
17231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232 (eval "$ac_link") 2>conftest.er1
17233 ac_status=$?
17234 grep -v '^ *+' conftest.er1 >conftest.err
17235 rm -f conftest.er1
17236 cat conftest.err >&5
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); } && {
17239 test -z "$ac_c_werror_flag" ||
17240 test ! -s conftest.err
17241 } && test -s conftest$ac_exeext &&
17242 $as_test_x conftest$ac_exeext; then
17243 ac_cv_lib_util_getloadavg=yes
17244 else
17245 echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17247
17248 ac_cv_lib_util_getloadavg=no
17249 fi
17250
17251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17252 conftest$ac_exeext conftest.$ac_ext
17253 LIBS=$ac_check_lib_save_LIBS
17254 fi
17255 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17256 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17257 if test $ac_cv_lib_util_getloadavg = yes; then
17258 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17259 fi
17260
17261 fi
17262
17263 if test $ac_have_func = no; then
17264 # There is a commonly available library for RS/6000 AIX.
17265 # Since it is not a standard part of AIX, it might be installed locally.
17266 ac_getloadavg_LIBS=$LIBS
17267 LIBS="-L/usr/local/lib $LIBS"
17268 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17269 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17270 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17271 echo $ECHO_N "(cached) $ECHO_C" >&6
17272 else
17273 ac_check_lib_save_LIBS=$LIBS
17274 LIBS="-lgetloadavg $LIBS"
17275 cat >conftest.$ac_ext <<_ACEOF
17276 /* confdefs.h. */
17277 _ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17281
17282 /* Override any GCC internal prototype to avoid an error.
17283 Use char because int might match the return type of a GCC
17284 builtin and then its argument prototype would still apply. */
17285 #ifdef __cplusplus
17286 extern "C"
17287 #endif
17288 char getloadavg ();
17289 int
17290 main ()
17291 {
17292 return getloadavg ();
17293 ;
17294 return 0;
17295 }
17296 _ACEOF
17297 rm -f conftest.$ac_objext conftest$ac_exeext
17298 if { (ac_try="$ac_link"
17299 case "(($ac_try" in
17300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301 *) ac_try_echo=$ac_try;;
17302 esac
17303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17304 (eval "$ac_link") 2>conftest.er1
17305 ac_status=$?
17306 grep -v '^ *+' conftest.er1 >conftest.err
17307 rm -f conftest.er1
17308 cat conftest.err >&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); } && {
17311 test -z "$ac_c_werror_flag" ||
17312 test ! -s conftest.err
17313 } && test -s conftest$ac_exeext &&
17314 $as_test_x conftest$ac_exeext; then
17315 ac_cv_lib_getloadavg_getloadavg=yes
17316 else
17317 echo "$as_me: failed program was:" >&5
17318 sed 's/^/| /' conftest.$ac_ext >&5
17319
17320 ac_cv_lib_getloadavg_getloadavg=no
17321 fi
17322
17323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17324 conftest$ac_exeext conftest.$ac_ext
17325 LIBS=$ac_check_lib_save_LIBS
17326 fi
17327 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17328 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17329 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17330 LIBS="-lgetloadavg $LIBS"
17331 else
17332 LIBS=$ac_getloadavg_LIBS
17333 fi
17334
17335 fi
17336
17337 # Make sure it is really in the library, if we think we found it,
17338 # otherwise set up the replacement function.
17339
17340 for ac_func in getloadavg
17341 do
17342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17343 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17345 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17346 echo $ECHO_N "(cached) $ECHO_C" >&6
17347 else
17348 cat >conftest.$ac_ext <<_ACEOF
17349 /* confdefs.h. */
17350 _ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h. */
17354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17356 #define $ac_func innocuous_$ac_func
17357
17358 /* System header to define __stub macros and hopefully few prototypes,
17359 which can conflict with char $ac_func (); below.
17360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17361 <limits.h> exists even on freestanding compilers. */
17362
17363 #ifdef __STDC__
17364 # include <limits.h>
17365 #else
17366 # include <assert.h>
17367 #endif
17368
17369 #undef $ac_func
17370
17371 /* Override any GCC internal prototype to avoid an error.
17372 Use char because int might match the return type of a GCC
17373 builtin and then its argument prototype would still apply. */
17374 #ifdef __cplusplus
17375 extern "C"
17376 #endif
17377 char $ac_func ();
17378 /* The GNU C library defines this for functions which it implements
17379 to always fail with ENOSYS. Some functions are actually named
17380 something starting with __ and the normal name is an alias. */
17381 #if defined __stub_$ac_func || defined __stub___$ac_func
17382 choke me
17383 #endif
17384
17385 int
17386 main ()
17387 {
17388 return $ac_func ();
17389 ;
17390 return 0;
17391 }
17392 _ACEOF
17393 rm -f conftest.$ac_objext conftest$ac_exeext
17394 if { (ac_try="$ac_link"
17395 case "(($ac_try" in
17396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17397 *) ac_try_echo=$ac_try;;
17398 esac
17399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17400 (eval "$ac_link") 2>conftest.er1
17401 ac_status=$?
17402 grep -v '^ *+' conftest.er1 >conftest.err
17403 rm -f conftest.er1
17404 cat conftest.err >&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); } && {
17407 test -z "$ac_c_werror_flag" ||
17408 test ! -s conftest.err
17409 } && test -s conftest$ac_exeext &&
17410 $as_test_x conftest$ac_exeext; then
17411 eval "$as_ac_var=yes"
17412 else
17413 echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.$ac_ext >&5
17415
17416 eval "$as_ac_var=no"
17417 fi
17418
17419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17420 conftest$ac_exeext conftest.$ac_ext
17421 fi
17422 ac_res=`eval echo '${'$as_ac_var'}'`
17423 { echo "$as_me:$LINENO: result: $ac_res" >&5
17424 echo "${ECHO_T}$ac_res" >&6; }
17425 if test `eval echo '${'$as_ac_var'}'` = yes; then
17426 cat >>confdefs.h <<_ACEOF
17427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17428 _ACEOF
17429
17430 else
17431 case " $LIBOBJS " in
17432 *" getloadavg.$ac_objext "* ) ;;
17433 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17434 ;;
17435 esac
17436
17437
17438 cat >>confdefs.h <<\_ACEOF
17439 #define C_GETLOADAVG 1
17440 _ACEOF
17441
17442 # Figure out what our getloadavg.c needs.
17443 ac_have_func=no
17444 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17445 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17446 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17447 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17448 echo $ECHO_N "(cached) $ECHO_C" >&6
17449 fi
17450 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17451 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17452 else
17453 # Is the header compilable?
17454 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17455 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17456 cat >conftest.$ac_ext <<_ACEOF
17457 /* confdefs.h. */
17458 _ACEOF
17459 cat confdefs.h >>conftest.$ac_ext
17460 cat >>conftest.$ac_ext <<_ACEOF
17461 /* end confdefs.h. */
17462 $ac_includes_default
17463 #include <sys/dg_sys_info.h>
17464 _ACEOF
17465 rm -f conftest.$ac_objext
17466 if { (ac_try="$ac_compile"
17467 case "(($ac_try" in
17468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469 *) ac_try_echo=$ac_try;;
17470 esac
17471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17472 (eval "$ac_compile") 2>conftest.er1
17473 ac_status=$?
17474 grep -v '^ *+' conftest.er1 >conftest.err
17475 rm -f conftest.er1
17476 cat conftest.err >&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); } && {
17479 test -z "$ac_c_werror_flag" ||
17480 test ! -s conftest.err
17481 } && test -s conftest.$ac_objext; then
17482 ac_header_compiler=yes
17483 else
17484 echo "$as_me: failed program was:" >&5
17485 sed 's/^/| /' conftest.$ac_ext >&5
17486
17487 ac_header_compiler=no
17488 fi
17489
17490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17492 echo "${ECHO_T}$ac_header_compiler" >&6; }
17493
17494 # Is the header present?
17495 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17496 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17497 cat >conftest.$ac_ext <<_ACEOF
17498 /* confdefs.h. */
17499 _ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h. */
17503 #include <sys/dg_sys_info.h>
17504 _ACEOF
17505 if { (ac_try="$ac_cpp conftest.$ac_ext"
17506 case "(($ac_try" in
17507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508 *) ac_try_echo=$ac_try;;
17509 esac
17510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17512 ac_status=$?
17513 grep -v '^ *+' conftest.er1 >conftest.err
17514 rm -f conftest.er1
17515 cat conftest.err >&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); } >/dev/null && {
17518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17519 test ! -s conftest.err
17520 }; then
17521 ac_header_preproc=yes
17522 else
17523 echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17525
17526 ac_header_preproc=no
17527 fi
17528
17529 rm -f conftest.err conftest.$ac_ext
17530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17531 echo "${ECHO_T}$ac_header_preproc" >&6; }
17532
17533 # So? What about this header?
17534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17535 yes:no: )
17536 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17537 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17538 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17539 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17540 ac_header_preproc=yes
17541 ;;
17542 no:yes:* )
17543 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17544 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17545 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17546 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17547 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17548 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17549 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17550 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17551 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17552 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17553 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17554 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17555
17556 ;;
17557 esac
17558 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17559 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17560 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17561 echo $ECHO_N "(cached) $ECHO_C" >&6
17562 else
17563 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17564 fi
17565 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17566 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17567
17568 fi
17569 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17570 ac_have_func=yes
17571
17572 cat >>confdefs.h <<\_ACEOF
17573 #define DGUX 1
17574 _ACEOF
17575
17576
17577 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17578 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17579 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17580 echo $ECHO_N "(cached) $ECHO_C" >&6
17581 else
17582 ac_check_lib_save_LIBS=$LIBS
17583 LIBS="-ldgc $LIBS"
17584 cat >conftest.$ac_ext <<_ACEOF
17585 /* confdefs.h. */
17586 _ACEOF
17587 cat confdefs.h >>conftest.$ac_ext
17588 cat >>conftest.$ac_ext <<_ACEOF
17589 /* end confdefs.h. */
17590
17591 /* Override any GCC internal prototype to avoid an error.
17592 Use char because int might match the return type of a GCC
17593 builtin and then its argument prototype would still apply. */
17594 #ifdef __cplusplus
17595 extern "C"
17596 #endif
17597 char dg_sys_info ();
17598 int
17599 main ()
17600 {
17601 return dg_sys_info ();
17602 ;
17603 return 0;
17604 }
17605 _ACEOF
17606 rm -f conftest.$ac_objext conftest$ac_exeext
17607 if { (ac_try="$ac_link"
17608 case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17611 esac
17612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_link") 2>conftest.er1
17614 ac_status=$?
17615 grep -v '^ *+' conftest.er1 >conftest.err
17616 rm -f conftest.er1
17617 cat conftest.err >&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); } && {
17620 test -z "$ac_c_werror_flag" ||
17621 test ! -s conftest.err
17622 } && test -s conftest$ac_exeext &&
17623 $as_test_x conftest$ac_exeext; then
17624 ac_cv_lib_dgc_dg_sys_info=yes
17625 else
17626 echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17628
17629 ac_cv_lib_dgc_dg_sys_info=no
17630 fi
17631
17632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17633 conftest$ac_exeext conftest.$ac_ext
17634 LIBS=$ac_check_lib_save_LIBS
17635 fi
17636 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17637 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17638 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17639 cat >>confdefs.h <<_ACEOF
17640 #define HAVE_LIBDGC 1
17641 _ACEOF
17642
17643 LIBS="-ldgc $LIBS"
17644
17645 fi
17646
17647 fi
17648
17649
17650
17651 if test "${ac_cv_header_locale_h+set}" = set; then
17652 { echo "$as_me:$LINENO: checking for locale.h" >&5
17653 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17654 if test "${ac_cv_header_locale_h+set}" = set; then
17655 echo $ECHO_N "(cached) $ECHO_C" >&6
17656 fi
17657 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17658 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17659 else
17660 # Is the header compilable?
17661 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17662 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17663 cat >conftest.$ac_ext <<_ACEOF
17664 /* confdefs.h. */
17665 _ACEOF
17666 cat confdefs.h >>conftest.$ac_ext
17667 cat >>conftest.$ac_ext <<_ACEOF
17668 /* end confdefs.h. */
17669 $ac_includes_default
17670 #include <locale.h>
17671 _ACEOF
17672 rm -f conftest.$ac_objext
17673 if { (ac_try="$ac_compile"
17674 case "(($ac_try" in
17675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676 *) ac_try_echo=$ac_try;;
17677 esac
17678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679 (eval "$ac_compile") 2>conftest.er1
17680 ac_status=$?
17681 grep -v '^ *+' conftest.er1 >conftest.err
17682 rm -f conftest.er1
17683 cat conftest.err >&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); } && {
17686 test -z "$ac_c_werror_flag" ||
17687 test ! -s conftest.err
17688 } && test -s conftest.$ac_objext; then
17689 ac_header_compiler=yes
17690 else
17691 echo "$as_me: failed program was:" >&5
17692 sed 's/^/| /' conftest.$ac_ext >&5
17693
17694 ac_header_compiler=no
17695 fi
17696
17697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17699 echo "${ECHO_T}$ac_header_compiler" >&6; }
17700
17701 # Is the header present?
17702 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17703 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17704 cat >conftest.$ac_ext <<_ACEOF
17705 /* confdefs.h. */
17706 _ACEOF
17707 cat confdefs.h >>conftest.$ac_ext
17708 cat >>conftest.$ac_ext <<_ACEOF
17709 /* end confdefs.h. */
17710 #include <locale.h>
17711 _ACEOF
17712 if { (ac_try="$ac_cpp conftest.$ac_ext"
17713 case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17716 esac
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17719 ac_status=$?
17720 grep -v '^ *+' conftest.er1 >conftest.err
17721 rm -f conftest.er1
17722 cat conftest.err >&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); } >/dev/null && {
17725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17726 test ! -s conftest.err
17727 }; then
17728 ac_header_preproc=yes
17729 else
17730 echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17732
17733 ac_header_preproc=no
17734 fi
17735
17736 rm -f conftest.err conftest.$ac_ext
17737 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17738 echo "${ECHO_T}$ac_header_preproc" >&6; }
17739
17740 # So? What about this header?
17741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17742 yes:no: )
17743 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17744 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17745 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17746 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17747 ac_header_preproc=yes
17748 ;;
17749 no:yes:* )
17750 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17751 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17752 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17753 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17754 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17755 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17756 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17757 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17758 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17759 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17760 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17761 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17762
17763 ;;
17764 esac
17765 { echo "$as_me:$LINENO: checking for locale.h" >&5
17766 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17767 if test "${ac_cv_header_locale_h+set}" = set; then
17768 echo $ECHO_N "(cached) $ECHO_C" >&6
17769 else
17770 ac_cv_header_locale_h=$ac_header_preproc
17771 fi
17772 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17773 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17774
17775 fi
17776
17777
17778
17779 for ac_func in setlocale
17780 do
17781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17782 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17785 echo $ECHO_N "(cached) $ECHO_C" >&6
17786 else
17787 cat >conftest.$ac_ext <<_ACEOF
17788 /* confdefs.h. */
17789 _ACEOF
17790 cat confdefs.h >>conftest.$ac_ext
17791 cat >>conftest.$ac_ext <<_ACEOF
17792 /* end confdefs.h. */
17793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17795 #define $ac_func innocuous_$ac_func
17796
17797 /* System header to define __stub macros and hopefully few prototypes,
17798 which can conflict with char $ac_func (); below.
17799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17800 <limits.h> exists even on freestanding compilers. */
17801
17802 #ifdef __STDC__
17803 # include <limits.h>
17804 #else
17805 # include <assert.h>
17806 #endif
17807
17808 #undef $ac_func
17809
17810 /* Override any GCC internal prototype to avoid an error.
17811 Use char because int might match the return type of a GCC
17812 builtin and then its argument prototype would still apply. */
17813 #ifdef __cplusplus
17814 extern "C"
17815 #endif
17816 char $ac_func ();
17817 /* The GNU C library defines this for functions which it implements
17818 to always fail with ENOSYS. Some functions are actually named
17819 something starting with __ and the normal name is an alias. */
17820 #if defined __stub_$ac_func || defined __stub___$ac_func
17821 choke me
17822 #endif
17823
17824 int
17825 main ()
17826 {
17827 return $ac_func ();
17828 ;
17829 return 0;
17830 }
17831 _ACEOF
17832 rm -f conftest.$ac_objext conftest$ac_exeext
17833 if { (ac_try="$ac_link"
17834 case "(($ac_try" in
17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17837 esac
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_link") 2>conftest.er1
17840 ac_status=$?
17841 grep -v '^ *+' conftest.er1 >conftest.err
17842 rm -f conftest.er1
17843 cat conftest.err >&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } && {
17846 test -z "$ac_c_werror_flag" ||
17847 test ! -s conftest.err
17848 } && test -s conftest$ac_exeext &&
17849 $as_test_x conftest$ac_exeext; then
17850 eval "$as_ac_var=yes"
17851 else
17852 echo "$as_me: failed program was:" >&5
17853 sed 's/^/| /' conftest.$ac_ext >&5
17854
17855 eval "$as_ac_var=no"
17856 fi
17857
17858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17859 conftest$ac_exeext conftest.$ac_ext
17860 fi
17861 ac_res=`eval echo '${'$as_ac_var'}'`
17862 { echo "$as_me:$LINENO: result: $ac_res" >&5
17863 echo "${ECHO_T}$ac_res" >&6; }
17864 if test `eval echo '${'$as_ac_var'}'` = yes; then
17865 cat >>confdefs.h <<_ACEOF
17866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17867 _ACEOF
17868
17869 fi
17870 done
17871
17872
17873 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17874 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17875 # Irix 4.0.5F has the header but not the library.
17876 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17877 ac_have_func=yes
17878
17879 cat >>confdefs.h <<\_ACEOF
17880 #define SVR4 1
17881 _ACEOF
17882
17883 fi
17884
17885 if test $ac_have_func = no; then
17886 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17887 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17888 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17889 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17890 echo $ECHO_N "(cached) $ECHO_C" >&6
17891 fi
17892 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17893 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17894 else
17895 # Is the header compilable?
17896 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17897 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17898 cat >conftest.$ac_ext <<_ACEOF
17899 /* confdefs.h. */
17900 _ACEOF
17901 cat confdefs.h >>conftest.$ac_ext
17902 cat >>conftest.$ac_ext <<_ACEOF
17903 /* end confdefs.h. */
17904 $ac_includes_default
17905 #include <inq_stats/cpustats.h>
17906 _ACEOF
17907 rm -f conftest.$ac_objext
17908 if { (ac_try="$ac_compile"
17909 case "(($ac_try" in
17910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17911 *) ac_try_echo=$ac_try;;
17912 esac
17913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17914 (eval "$ac_compile") 2>conftest.er1
17915 ac_status=$?
17916 grep -v '^ *+' conftest.er1 >conftest.err
17917 rm -f conftest.er1
17918 cat conftest.err >&5
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); } && {
17921 test -z "$ac_c_werror_flag" ||
17922 test ! -s conftest.err
17923 } && test -s conftest.$ac_objext; then
17924 ac_header_compiler=yes
17925 else
17926 echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17928
17929 ac_header_compiler=no
17930 fi
17931
17932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17934 echo "${ECHO_T}$ac_header_compiler" >&6; }
17935
17936 # Is the header present?
17937 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17938 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17939 cat >conftest.$ac_ext <<_ACEOF
17940 /* confdefs.h. */
17941 _ACEOF
17942 cat confdefs.h >>conftest.$ac_ext
17943 cat >>conftest.$ac_ext <<_ACEOF
17944 /* end confdefs.h. */
17945 #include <inq_stats/cpustats.h>
17946 _ACEOF
17947 if { (ac_try="$ac_cpp conftest.$ac_ext"
17948 case "(($ac_try" in
17949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17950 *) ac_try_echo=$ac_try;;
17951 esac
17952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17954 ac_status=$?
17955 grep -v '^ *+' conftest.er1 >conftest.err
17956 rm -f conftest.er1
17957 cat conftest.err >&5
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); } >/dev/null && {
17960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17961 test ! -s conftest.err
17962 }; then
17963 ac_header_preproc=yes
17964 else
17965 echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17967
17968 ac_header_preproc=no
17969 fi
17970
17971 rm -f conftest.err conftest.$ac_ext
17972 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17973 echo "${ECHO_T}$ac_header_preproc" >&6; }
17974
17975 # So? What about this header?
17976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17977 yes:no: )
17978 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17979 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17980 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17981 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17982 ac_header_preproc=yes
17983 ;;
17984 no:yes:* )
17985 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17986 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17987 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17988 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17989 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17990 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17991 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17992 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17993 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17994 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17995 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17996 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17997
17998 ;;
17999 esac
18000 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18001 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18002 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18003 echo $ECHO_N "(cached) $ECHO_C" >&6
18004 else
18005 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18006 fi
18007 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18008 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18009
18010 fi
18011 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18012 ac_have_func=yes
18013
18014 cat >>confdefs.h <<\_ACEOF
18015 #define UMAX 1
18016 _ACEOF
18017
18018
18019 cat >>confdefs.h <<\_ACEOF
18020 #define UMAX4_3 1
18021 _ACEOF
18022
18023 fi
18024
18025
18026 fi
18027
18028 if test $ac_have_func = no; then
18029 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18030 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18031 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18032 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18033 echo $ECHO_N "(cached) $ECHO_C" >&6
18034 fi
18035 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18036 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18037 else
18038 # Is the header compilable?
18039 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18040 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18041 cat >conftest.$ac_ext <<_ACEOF
18042 /* confdefs.h. */
18043 _ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h. */
18047 $ac_includes_default
18048 #include <sys/cpustats.h>
18049 _ACEOF
18050 rm -f conftest.$ac_objext
18051 if { (ac_try="$ac_compile"
18052 case "(($ac_try" in
18053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18054 *) ac_try_echo=$ac_try;;
18055 esac
18056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18057 (eval "$ac_compile") 2>conftest.er1
18058 ac_status=$?
18059 grep -v '^ *+' conftest.er1 >conftest.err
18060 rm -f conftest.er1
18061 cat conftest.err >&5
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); } && {
18064 test -z "$ac_c_werror_flag" ||
18065 test ! -s conftest.err
18066 } && test -s conftest.$ac_objext; then
18067 ac_header_compiler=yes
18068 else
18069 echo "$as_me: failed program was:" >&5
18070 sed 's/^/| /' conftest.$ac_ext >&5
18071
18072 ac_header_compiler=no
18073 fi
18074
18075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18077 echo "${ECHO_T}$ac_header_compiler" >&6; }
18078
18079 # Is the header present?
18080 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18081 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18082 cat >conftest.$ac_ext <<_ACEOF
18083 /* confdefs.h. */
18084 _ACEOF
18085 cat confdefs.h >>conftest.$ac_ext
18086 cat >>conftest.$ac_ext <<_ACEOF
18087 /* end confdefs.h. */
18088 #include <sys/cpustats.h>
18089 _ACEOF
18090 if { (ac_try="$ac_cpp conftest.$ac_ext"
18091 case "(($ac_try" in
18092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093 *) ac_try_echo=$ac_try;;
18094 esac
18095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18097 ac_status=$?
18098 grep -v '^ *+' conftest.er1 >conftest.err
18099 rm -f conftest.er1
18100 cat conftest.err >&5
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); } >/dev/null && {
18103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18104 test ! -s conftest.err
18105 }; then
18106 ac_header_preproc=yes
18107 else
18108 echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18110
18111 ac_header_preproc=no
18112 fi
18113
18114 rm -f conftest.err conftest.$ac_ext
18115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18116 echo "${ECHO_T}$ac_header_preproc" >&6; }
18117
18118 # So? What about this header?
18119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18120 yes:no: )
18121 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18122 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18123 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18124 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18125 ac_header_preproc=yes
18126 ;;
18127 no:yes:* )
18128 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18129 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18130 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18131 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18132 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18133 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18134 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18135 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18136 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18137 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18138 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18139 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18140
18141 ;;
18142 esac
18143 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18144 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18145 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18147 else
18148 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18149 fi
18150 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18151 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18152
18153 fi
18154 if test $ac_cv_header_sys_cpustats_h = yes; then
18155 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18156 #define UMAX 1
18157 _ACEOF
18158
18159 fi
18160
18161
18162 fi
18163
18164 if test $ac_have_func = no; then
18165
18166 for ac_header in mach/mach.h
18167 do
18168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18173 echo $ECHO_N "(cached) $ECHO_C" >&6
18174 fi
18175 ac_res=`eval echo '${'$as_ac_Header'}'`
18176 { echo "$as_me:$LINENO: result: $ac_res" >&5
18177 echo "${ECHO_T}$ac_res" >&6; }
18178 else
18179 # Is the header compilable?
18180 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18182 cat >conftest.$ac_ext <<_ACEOF
18183 /* confdefs.h. */
18184 _ACEOF
18185 cat confdefs.h >>conftest.$ac_ext
18186 cat >>conftest.$ac_ext <<_ACEOF
18187 /* end confdefs.h. */
18188 $ac_includes_default
18189 #include <$ac_header>
18190 _ACEOF
18191 rm -f conftest.$ac_objext
18192 if { (ac_try="$ac_compile"
18193 case "(($ac_try" in
18194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195 *) ac_try_echo=$ac_try;;
18196 esac
18197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18198 (eval "$ac_compile") 2>conftest.er1
18199 ac_status=$?
18200 grep -v '^ *+' conftest.er1 >conftest.err
18201 rm -f conftest.er1
18202 cat conftest.err >&5
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); } && {
18205 test -z "$ac_c_werror_flag" ||
18206 test ! -s conftest.err
18207 } && test -s conftest.$ac_objext; then
18208 ac_header_compiler=yes
18209 else
18210 echo "$as_me: failed program was:" >&5
18211 sed 's/^/| /' conftest.$ac_ext >&5
18212
18213 ac_header_compiler=no
18214 fi
18215
18216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18217 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18218 echo "${ECHO_T}$ac_header_compiler" >&6; }
18219
18220 # Is the header present?
18221 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18222 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18223 cat >conftest.$ac_ext <<_ACEOF
18224 /* confdefs.h. */
18225 _ACEOF
18226 cat confdefs.h >>conftest.$ac_ext
18227 cat >>conftest.$ac_ext <<_ACEOF
18228 /* end confdefs.h. */
18229 #include <$ac_header>
18230 _ACEOF
18231 if { (ac_try="$ac_cpp conftest.$ac_ext"
18232 case "(($ac_try" in
18233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234 *) ac_try_echo=$ac_try;;
18235 esac
18236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18238 ac_status=$?
18239 grep -v '^ *+' conftest.er1 >conftest.err
18240 rm -f conftest.er1
18241 cat conftest.err >&5
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); } >/dev/null && {
18244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18245 test ! -s conftest.err
18246 }; then
18247 ac_header_preproc=yes
18248 else
18249 echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18251
18252 ac_header_preproc=no
18253 fi
18254
18255 rm -f conftest.err conftest.$ac_ext
18256 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18257 echo "${ECHO_T}$ac_header_preproc" >&6; }
18258
18259 # So? What about this header?
18260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18261 yes:no: )
18262 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18263 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18265 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18266 ac_header_preproc=yes
18267 ;;
18268 no:yes:* )
18269 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18270 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18271 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18272 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18273 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18274 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18275 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18276 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18278 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18279 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18280 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18281
18282 ;;
18283 esac
18284 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18287 echo $ECHO_N "(cached) $ECHO_C" >&6
18288 else
18289 eval "$as_ac_Header=\$ac_header_preproc"
18290 fi
18291 ac_res=`eval echo '${'$as_ac_Header'}'`
18292 { echo "$as_me:$LINENO: result: $ac_res" >&5
18293 echo "${ECHO_T}$ac_res" >&6; }
18294
18295 fi
18296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18297 cat >>confdefs.h <<_ACEOF
18298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18299 _ACEOF
18300
18301 fi
18302
18303 done
18304
18305 fi
18306
18307
18308 for ac_header in nlist.h
18309 do
18310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18312 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18315 echo $ECHO_N "(cached) $ECHO_C" >&6
18316 fi
18317 ac_res=`eval echo '${'$as_ac_Header'}'`
18318 { echo "$as_me:$LINENO: result: $ac_res" >&5
18319 echo "${ECHO_T}$ac_res" >&6; }
18320 else
18321 # Is the header compilable?
18322 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18324 cat >conftest.$ac_ext <<_ACEOF
18325 /* confdefs.h. */
18326 _ACEOF
18327 cat confdefs.h >>conftest.$ac_ext
18328 cat >>conftest.$ac_ext <<_ACEOF
18329 /* end confdefs.h. */
18330 $ac_includes_default
18331 #include <$ac_header>
18332 _ACEOF
18333 rm -f conftest.$ac_objext
18334 if { (ac_try="$ac_compile"
18335 case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18338 esac
18339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340 (eval "$ac_compile") 2>conftest.er1
18341 ac_status=$?
18342 grep -v '^ *+' conftest.er1 >conftest.err
18343 rm -f conftest.er1
18344 cat conftest.err >&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } && {
18347 test -z "$ac_c_werror_flag" ||
18348 test ! -s conftest.err
18349 } && test -s conftest.$ac_objext; then
18350 ac_header_compiler=yes
18351 else
18352 echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18354
18355 ac_header_compiler=no
18356 fi
18357
18358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18360 echo "${ECHO_T}$ac_header_compiler" >&6; }
18361
18362 # Is the header present?
18363 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18364 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18365 cat >conftest.$ac_ext <<_ACEOF
18366 /* confdefs.h. */
18367 _ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h. */
18371 #include <$ac_header>
18372 _ACEOF
18373 if { (ac_try="$ac_cpp conftest.$ac_ext"
18374 case "(($ac_try" in
18375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18376 *) ac_try_echo=$ac_try;;
18377 esac
18378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18380 ac_status=$?
18381 grep -v '^ *+' conftest.er1 >conftest.err
18382 rm -f conftest.er1
18383 cat conftest.err >&5
18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18385 (exit $ac_status); } >/dev/null && {
18386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18387 test ! -s conftest.err
18388 }; then
18389 ac_header_preproc=yes
18390 else
18391 echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18393
18394 ac_header_preproc=no
18395 fi
18396
18397 rm -f conftest.err conftest.$ac_ext
18398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18399 echo "${ECHO_T}$ac_header_preproc" >&6; }
18400
18401 # So? What about this header?
18402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18403 yes:no: )
18404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18408 ac_header_preproc=yes
18409 ;;
18410 no:yes:* )
18411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18423
18424 ;;
18425 esac
18426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18429 echo $ECHO_N "(cached) $ECHO_C" >&6
18430 else
18431 eval "$as_ac_Header=\$ac_header_preproc"
18432 fi
18433 ac_res=`eval echo '${'$as_ac_Header'}'`
18434 { echo "$as_me:$LINENO: result: $ac_res" >&5
18435 echo "${ECHO_T}$ac_res" >&6; }
18436
18437 fi
18438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18439 cat >>confdefs.h <<_ACEOF
18440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18441 _ACEOF
18442 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18443 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18444 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18445 echo $ECHO_N "(cached) $ECHO_C" >&6
18446 else
18447 cat >conftest.$ac_ext <<_ACEOF
18448 /* confdefs.h. */
18449 _ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h. */
18453 #include <nlist.h>
18454
18455 int
18456 main ()
18457 {
18458 static struct nlist ac_aggr;
18459 if (ac_aggr.n_un.n_name)
18460 return 0;
18461 ;
18462 return 0;
18463 }
18464 _ACEOF
18465 rm -f conftest.$ac_objext
18466 if { (ac_try="$ac_compile"
18467 case "(($ac_try" in
18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469 *) ac_try_echo=$ac_try;;
18470 esac
18471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18472 (eval "$ac_compile") 2>conftest.er1
18473 ac_status=$?
18474 grep -v '^ *+' conftest.er1 >conftest.err
18475 rm -f conftest.er1
18476 cat conftest.err >&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } && {
18479 test -z "$ac_c_werror_flag" ||
18480 test ! -s conftest.err
18481 } && test -s conftest.$ac_objext; then
18482 ac_cv_member_struct_nlist_n_un_n_name=yes
18483 else
18484 echo "$as_me: failed program was:" >&5
18485 sed 's/^/| /' conftest.$ac_ext >&5
18486
18487 cat >conftest.$ac_ext <<_ACEOF
18488 /* confdefs.h. */
18489 _ACEOF
18490 cat confdefs.h >>conftest.$ac_ext
18491 cat >>conftest.$ac_ext <<_ACEOF
18492 /* end confdefs.h. */
18493 #include <nlist.h>
18494
18495 int
18496 main ()
18497 {
18498 static struct nlist ac_aggr;
18499 if (sizeof ac_aggr.n_un.n_name)
18500 return 0;
18501 ;
18502 return 0;
18503 }
18504 _ACEOF
18505 rm -f conftest.$ac_objext
18506 if { (ac_try="$ac_compile"
18507 case "(($ac_try" in
18508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509 *) ac_try_echo=$ac_try;;
18510 esac
18511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512 (eval "$ac_compile") 2>conftest.er1
18513 ac_status=$?
18514 grep -v '^ *+' conftest.er1 >conftest.err
18515 rm -f conftest.er1
18516 cat conftest.err >&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); } && {
18519 test -z "$ac_c_werror_flag" ||
18520 test ! -s conftest.err
18521 } && test -s conftest.$ac_objext; then
18522 ac_cv_member_struct_nlist_n_un_n_name=yes
18523 else
18524 echo "$as_me: failed program was:" >&5
18525 sed 's/^/| /' conftest.$ac_ext >&5
18526
18527 ac_cv_member_struct_nlist_n_un_n_name=no
18528 fi
18529
18530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18531 fi
18532
18533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18534 fi
18535 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18536 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18537 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18538
18539 cat >>confdefs.h <<_ACEOF
18540 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18541 _ACEOF
18542
18543
18544 cat >>confdefs.h <<\_ACEOF
18545 #define NLIST_NAME_UNION 1
18546 _ACEOF
18547
18548 fi
18549
18550
18551 fi
18552
18553 done
18554
18555 fi
18556 done
18557
18558
18559 # Some definitions of getloadavg require that the program be installed setgid.
18560 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18561 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18562 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18563 echo $ECHO_N "(cached) $ECHO_C" >&6
18564 else
18565 cat >conftest.$ac_ext <<_ACEOF
18566 /* confdefs.h. */
18567 _ACEOF
18568 cat confdefs.h >>conftest.$ac_ext
18569 cat >>conftest.$ac_ext <<_ACEOF
18570 /* end confdefs.h. */
18571 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18572 #ifdef LDAV_PRIVILEGED
18573 Yowza Am I SETGID yet
18574 #endif
18575 _ACEOF
18576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18577 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18578 ac_cv_func_getloadavg_setgid=yes
18579 else
18580 ac_cv_func_getloadavg_setgid=no
18581 fi
18582 rm -f conftest*
18583
18584 fi
18585 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18586 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18587 if test $ac_cv_func_getloadavg_setgid = yes; then
18588 NEED_SETGID=true
18589
18590 cat >>confdefs.h <<\_ACEOF
18591 #define GETLOADAVG_PRIVILEGED 1
18592 _ACEOF
18593
18594 else
18595 NEED_SETGID=false
18596 fi
18597
18598 if test $ac_cv_func_getloadavg_setgid = yes; then
18599 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18600 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18601 if test "${ac_cv_group_kmem+set}" = set; then
18602 echo $ECHO_N "(cached) $ECHO_C" >&6
18603 else
18604 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18605 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18606 # If we got an error (system does not support symlinks), try without -L.
18607 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18608 ac_cv_group_kmem=`echo $ac_ls_output \
18609 | sed -ne 's/[ ][ ]*/ /g;
18610 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18611 / /s/.* //;p;'`
18612
18613 fi
18614 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18615 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18616 KMEM_GROUP=$ac_cv_group_kmem
18617 fi
18618 if test "x$ac_save_LIBS" = x; then
18619 GETLOADAVG_LIBS=$LIBS
18620 else
18621 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18622 fi
18623 LIBS=$ac_save_LIBS
18624
18625
18626
18627 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18628 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18629 if test "${ac_cv_sys_largefile_source+set}" = set; then
18630 echo $ECHO_N "(cached) $ECHO_C" >&6
18631 else
18632 while :; do
18633 cat >conftest.$ac_ext <<_ACEOF
18634 /* confdefs.h. */
18635 _ACEOF
18636 cat confdefs.h >>conftest.$ac_ext
18637 cat >>conftest.$ac_ext <<_ACEOF
18638 /* end confdefs.h. */
18639 #include <sys/types.h> /* for off_t */
18640 #include <stdio.h>
18641 int
18642 main ()
18643 {
18644 int (*fp) (FILE *, off_t, int) = fseeko;
18645 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18646 ;
18647 return 0;
18648 }
18649 _ACEOF
18650 rm -f conftest.$ac_objext conftest$ac_exeext
18651 if { (ac_try="$ac_link"
18652 case "(($ac_try" in
18653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18654 *) ac_try_echo=$ac_try;;
18655 esac
18656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18657 (eval "$ac_link") 2>conftest.er1
18658 ac_status=$?
18659 grep -v '^ *+' conftest.er1 >conftest.err
18660 rm -f conftest.er1
18661 cat conftest.err >&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); } && {
18664 test -z "$ac_c_werror_flag" ||
18665 test ! -s conftest.err
18666 } && test -s conftest$ac_exeext &&
18667 $as_test_x conftest$ac_exeext; then
18668 ac_cv_sys_largefile_source=no; break
18669 else
18670 echo "$as_me: failed program was:" >&5
18671 sed 's/^/| /' conftest.$ac_ext >&5
18672
18673
18674 fi
18675
18676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18677 conftest$ac_exeext conftest.$ac_ext
18678 cat >conftest.$ac_ext <<_ACEOF
18679 /* confdefs.h. */
18680 _ACEOF
18681 cat confdefs.h >>conftest.$ac_ext
18682 cat >>conftest.$ac_ext <<_ACEOF
18683 /* end confdefs.h. */
18684 #define _LARGEFILE_SOURCE 1
18685 #include <sys/types.h> /* for off_t */
18686 #include <stdio.h>
18687 int
18688 main ()
18689 {
18690 int (*fp) (FILE *, off_t, int) = fseeko;
18691 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18692 ;
18693 return 0;
18694 }
18695 _ACEOF
18696 rm -f conftest.$ac_objext conftest$ac_exeext
18697 if { (ac_try="$ac_link"
18698 case "(($ac_try" in
18699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700 *) ac_try_echo=$ac_try;;
18701 esac
18702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703 (eval "$ac_link") 2>conftest.er1
18704 ac_status=$?
18705 grep -v '^ *+' conftest.er1 >conftest.err
18706 rm -f conftest.er1
18707 cat conftest.err >&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); } && {
18710 test -z "$ac_c_werror_flag" ||
18711 test ! -s conftest.err
18712 } && test -s conftest$ac_exeext &&
18713 $as_test_x conftest$ac_exeext; then
18714 ac_cv_sys_largefile_source=1; break
18715 else
18716 echo "$as_me: failed program was:" >&5
18717 sed 's/^/| /' conftest.$ac_ext >&5
18718
18719
18720 fi
18721
18722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18723 conftest$ac_exeext conftest.$ac_ext
18724 ac_cv_sys_largefile_source=unknown
18725 break
18726 done
18727 fi
18728 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18729 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18730 case $ac_cv_sys_largefile_source in #(
18731 no | unknown) ;;
18732 *)
18733 cat >>confdefs.h <<_ACEOF
18734 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18735 _ACEOF
18736 ;;
18737 esac
18738 rm -f conftest*
18739
18740 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18741 # in glibc 2.1.3, but that breaks too many other things.
18742 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18743 if test $ac_cv_sys_largefile_source != unknown; then
18744
18745 cat >>confdefs.h <<\_ACEOF
18746 #define HAVE_FSEEKO 1
18747 _ACEOF
18748
18749 fi
18750
18751
18752 # Configure getopt.
18753 # getopt.m4 serial 10
18754
18755 # The getopt module assume you want GNU getopt, with getopt_long etc,
18756 # rather than vanilla POSIX getopt. This means your your code should
18757 # always include <getopt.h> for the getopt prototypes.
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769 # Prerequisites of lib/getopt*.
18770
18771
18772
18773
18774 GETOPT_H=
18775
18776 for ac_header in getopt.h
18777 do
18778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18783 echo $ECHO_N "(cached) $ECHO_C" >&6
18784 fi
18785 ac_res=`eval echo '${'$as_ac_Header'}'`
18786 { echo "$as_me:$LINENO: result: $ac_res" >&5
18787 echo "${ECHO_T}$ac_res" >&6; }
18788 else
18789 # Is the header compilable?
18790 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18792 cat >conftest.$ac_ext <<_ACEOF
18793 /* confdefs.h. */
18794 _ACEOF
18795 cat confdefs.h >>conftest.$ac_ext
18796 cat >>conftest.$ac_ext <<_ACEOF
18797 /* end confdefs.h. */
18798 $ac_includes_default
18799 #include <$ac_header>
18800 _ACEOF
18801 rm -f conftest.$ac_objext
18802 if { (ac_try="$ac_compile"
18803 case "(($ac_try" in
18804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805 *) ac_try_echo=$ac_try;;
18806 esac
18807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808 (eval "$ac_compile") 2>conftest.er1
18809 ac_status=$?
18810 grep -v '^ *+' conftest.er1 >conftest.err
18811 rm -f conftest.er1
18812 cat conftest.err >&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); } && {
18815 test -z "$ac_c_werror_flag" ||
18816 test ! -s conftest.err
18817 } && test -s conftest.$ac_objext; then
18818 ac_header_compiler=yes
18819 else
18820 echo "$as_me: failed program was:" >&5
18821 sed 's/^/| /' conftest.$ac_ext >&5
18822
18823 ac_header_compiler=no
18824 fi
18825
18826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18828 echo "${ECHO_T}$ac_header_compiler" >&6; }
18829
18830 # Is the header present?
18831 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18833 cat >conftest.$ac_ext <<_ACEOF
18834 /* confdefs.h. */
18835 _ACEOF
18836 cat confdefs.h >>conftest.$ac_ext
18837 cat >>conftest.$ac_ext <<_ACEOF
18838 /* end confdefs.h. */
18839 #include <$ac_header>
18840 _ACEOF
18841 if { (ac_try="$ac_cpp conftest.$ac_ext"
18842 case "(($ac_try" in
18843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18844 *) ac_try_echo=$ac_try;;
18845 esac
18846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18848 ac_status=$?
18849 grep -v '^ *+' conftest.er1 >conftest.err
18850 rm -f conftest.er1
18851 cat conftest.err >&5
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); } >/dev/null && {
18854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18855 test ! -s conftest.err
18856 }; then
18857 ac_header_preproc=yes
18858 else
18859 echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18861
18862 ac_header_preproc=no
18863 fi
18864
18865 rm -f conftest.err conftest.$ac_ext
18866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18867 echo "${ECHO_T}$ac_header_preproc" >&6; }
18868
18869 # So? What about this header?
18870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18871 yes:no: )
18872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18876 ac_header_preproc=yes
18877 ;;
18878 no:yes:* )
18879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18891
18892 ;;
18893 esac
18894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18897 echo $ECHO_N "(cached) $ECHO_C" >&6
18898 else
18899 eval "$as_ac_Header=\$ac_header_preproc"
18900 fi
18901 ac_res=`eval echo '${'$as_ac_Header'}'`
18902 { echo "$as_me:$LINENO: result: $ac_res" >&5
18903 echo "${ECHO_T}$ac_res" >&6; }
18904
18905 fi
18906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18907 cat >>confdefs.h <<_ACEOF
18908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18909 _ACEOF
18910
18911 else
18912 GETOPT_H=getopt.h
18913 fi
18914
18915 done
18916
18917 if test -z "$GETOPT_H"; then
18918
18919 for ac_func in getopt_long_only
18920 do
18921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18922 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18924 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18925 echo $ECHO_N "(cached) $ECHO_C" >&6
18926 else
18927 cat >conftest.$ac_ext <<_ACEOF
18928 /* confdefs.h. */
18929 _ACEOF
18930 cat confdefs.h >>conftest.$ac_ext
18931 cat >>conftest.$ac_ext <<_ACEOF
18932 /* end confdefs.h. */
18933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18935 #define $ac_func innocuous_$ac_func
18936
18937 /* System header to define __stub macros and hopefully few prototypes,
18938 which can conflict with char $ac_func (); below.
18939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18940 <limits.h> exists even on freestanding compilers. */
18941
18942 #ifdef __STDC__
18943 # include <limits.h>
18944 #else
18945 # include <assert.h>
18946 #endif
18947
18948 #undef $ac_func
18949
18950 /* Override any GCC internal prototype to avoid an error.
18951 Use char because int might match the return type of a GCC
18952 builtin and then its argument prototype would still apply. */
18953 #ifdef __cplusplus
18954 extern "C"
18955 #endif
18956 char $ac_func ();
18957 /* The GNU C library defines this for functions which it implements
18958 to always fail with ENOSYS. Some functions are actually named
18959 something starting with __ and the normal name is an alias. */
18960 #if defined __stub_$ac_func || defined __stub___$ac_func
18961 choke me
18962 #endif
18963
18964 int
18965 main ()
18966 {
18967 return $ac_func ();
18968 ;
18969 return 0;
18970 }
18971 _ACEOF
18972 rm -f conftest.$ac_objext conftest$ac_exeext
18973 if { (ac_try="$ac_link"
18974 case "(($ac_try" in
18975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976 *) ac_try_echo=$ac_try;;
18977 esac
18978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18979 (eval "$ac_link") 2>conftest.er1
18980 ac_status=$?
18981 grep -v '^ *+' conftest.er1 >conftest.err
18982 rm -f conftest.er1
18983 cat conftest.err >&5
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); } && {
18986 test -z "$ac_c_werror_flag" ||
18987 test ! -s conftest.err
18988 } && test -s conftest$ac_exeext &&
18989 $as_test_x conftest$ac_exeext; then
18990 eval "$as_ac_var=yes"
18991 else
18992 echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18994
18995 eval "$as_ac_var=no"
18996 fi
18997
18998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18999 conftest$ac_exeext conftest.$ac_ext
19000 fi
19001 ac_res=`eval echo '${'$as_ac_var'}'`
19002 { echo "$as_me:$LINENO: result: $ac_res" >&5
19003 echo "${ECHO_T}$ac_res" >&6; }
19004 if test `eval echo '${'$as_ac_var'}'` = yes; then
19005 cat >>confdefs.h <<_ACEOF
19006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19007 _ACEOF
19008
19009 else
19010 GETOPT_H=getopt.h
19011 fi
19012 done
19013
19014 fi
19015
19016 if test -z "$GETOPT_H"; then
19017 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19018 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19019 if test "${ac_cv_have_decl_optreset+set}" = set; then
19020 echo $ECHO_N "(cached) $ECHO_C" >&6
19021 else
19022 cat >conftest.$ac_ext <<_ACEOF
19023 /* confdefs.h. */
19024 _ACEOF
19025 cat confdefs.h >>conftest.$ac_ext
19026 cat >>conftest.$ac_ext <<_ACEOF
19027 /* end confdefs.h. */
19028 #include <getopt.h>
19029
19030 int
19031 main ()
19032 {
19033 #ifndef optreset
19034 (void) optreset;
19035 #endif
19036
19037 ;
19038 return 0;
19039 }
19040 _ACEOF
19041 rm -f conftest.$ac_objext
19042 if { (ac_try="$ac_compile"
19043 case "(($ac_try" in
19044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045 *) ac_try_echo=$ac_try;;
19046 esac
19047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048 (eval "$ac_compile") 2>conftest.er1
19049 ac_status=$?
19050 grep -v '^ *+' conftest.er1 >conftest.err
19051 rm -f conftest.er1
19052 cat conftest.err >&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } && {
19055 test -z "$ac_c_werror_flag" ||
19056 test ! -s conftest.err
19057 } && test -s conftest.$ac_objext; then
19058 ac_cv_have_decl_optreset=yes
19059 else
19060 echo "$as_me: failed program was:" >&5
19061 sed 's/^/| /' conftest.$ac_ext >&5
19062
19063 ac_cv_have_decl_optreset=no
19064 fi
19065
19066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19067 fi
19068 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19069 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19070 if test $ac_cv_have_decl_optreset = yes; then
19071 GETOPT_H=getopt.h
19072 fi
19073
19074 fi
19075
19076 if test -z "$GETOPT_H"; then
19077 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19078 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19079 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19080 echo $ECHO_N "(cached) $ECHO_C" >&6
19081 else
19082 if test "$cross_compiling" = yes; then
19083 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19084 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19085 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19086 echo $ECHO_N "(cached) $ECHO_C" >&6
19087 else
19088 cat >conftest.$ac_ext <<_ACEOF
19089 /* confdefs.h. */
19090 _ACEOF
19091 cat confdefs.h >>conftest.$ac_ext
19092 cat >>conftest.$ac_ext <<_ACEOF
19093 /* end confdefs.h. */
19094 #include <getopt.h>
19095
19096 int
19097 main ()
19098 {
19099 #ifndef getopt_clip
19100 (void) getopt_clip;
19101 #endif
19102
19103 ;
19104 return 0;
19105 }
19106 _ACEOF
19107 rm -f conftest.$ac_objext
19108 if { (ac_try="$ac_compile"
19109 case "(($ac_try" in
19110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19111 *) ac_try_echo=$ac_try;;
19112 esac
19113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19114 (eval "$ac_compile") 2>conftest.er1
19115 ac_status=$?
19116 grep -v '^ *+' conftest.er1 >conftest.err
19117 rm -f conftest.er1
19118 cat conftest.err >&5
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); } && {
19121 test -z "$ac_c_werror_flag" ||
19122 test ! -s conftest.err
19123 } && test -s conftest.$ac_objext; then
19124 ac_cv_have_decl_getopt_clip=yes
19125 else
19126 echo "$as_me: failed program was:" >&5
19127 sed 's/^/| /' conftest.$ac_ext >&5
19128
19129 ac_cv_have_decl_getopt_clip=no
19130 fi
19131
19132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19133 fi
19134 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19135 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19136 if test $ac_cv_have_decl_getopt_clip = yes; then
19137 gl_cv_func_gnu_getopt=no
19138 else
19139 gl_cv_func_gnu_getopt=yes
19140 fi
19141
19142 else
19143 cat >conftest.$ac_ext <<_ACEOF
19144 /* confdefs.h. */
19145 _ACEOF
19146 cat confdefs.h >>conftest.$ac_ext
19147 cat >>conftest.$ac_ext <<_ACEOF
19148 /* end confdefs.h. */
19149 #include <getopt.h>
19150 int
19151 main ()
19152 {
19153
19154 char *myargv[3];
19155 myargv[0] = "conftest";
19156 myargv[1] = "-+";
19157 myargv[2] = 0;
19158 return getopt (2, myargv, "+a") != '?';
19159
19160 ;
19161 return 0;
19162 }
19163 _ACEOF
19164 rm -f conftest$ac_exeext
19165 if { (ac_try="$ac_link"
19166 case "(($ac_try" in
19167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19168 *) ac_try_echo=$ac_try;;
19169 esac
19170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19171 (eval "$ac_link") 2>&5
19172 ac_status=$?
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19175 { (case "(($ac_try" in
19176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19177 *) ac_try_echo=$ac_try;;
19178 esac
19179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19180 (eval "$ac_try") 2>&5
19181 ac_status=$?
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); }; }; then
19184 gl_cv_func_gnu_getopt=yes
19185 else
19186 echo "$as_me: program exited with status $ac_status" >&5
19187 echo "$as_me: failed program was:" >&5
19188 sed 's/^/| /' conftest.$ac_ext >&5
19189
19190 ( exit $ac_status )
19191 gl_cv_func_gnu_getopt=no
19192 fi
19193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19194 fi
19195
19196
19197 fi
19198 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19199 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19200 if test "$gl_cv_func_gnu_getopt" = "no"; then
19201 GETOPT_H=getopt.h
19202 fi
19203 fi
19204
19205
19206
19207 if test -n "$GETOPT_H"; then
19208
19209
19210 GETOPT_H=getopt.h
19211
19212 cat >>confdefs.h <<\_ACEOF
19213 #define __GETOPT_PREFIX rpl_
19214 _ACEOF
19215
19216
19217
19218 :
19219 GETOPTOBJS='getopt.o getopt1.o'
19220
19221 fi
19222
19223
19224
19225
19226 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19227 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19228 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19229 echo $ECHO_N "(cached) $ECHO_C" >&6
19230 else
19231 # Use it with a single arg.
19232 cat >conftest.$ac_ext <<_ACEOF
19233 /* confdefs.h. */
19234 _ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h. */
19238 $ac_includes_default
19239 int
19240 main ()
19241 {
19242 getpgrp (0);
19243 ;
19244 return 0;
19245 }
19246 _ACEOF
19247 rm -f conftest.$ac_objext
19248 if { (ac_try="$ac_compile"
19249 case "(($ac_try" in
19250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19251 *) ac_try_echo=$ac_try;;
19252 esac
19253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19254 (eval "$ac_compile") 2>conftest.er1
19255 ac_status=$?
19256 grep -v '^ *+' conftest.er1 >conftest.err
19257 rm -f conftest.er1
19258 cat conftest.err >&5
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); } && {
19261 test -z "$ac_c_werror_flag" ||
19262 test ! -s conftest.err
19263 } && test -s conftest.$ac_objext; then
19264 ac_cv_func_getpgrp_void=no
19265 else
19266 echo "$as_me: failed program was:" >&5
19267 sed 's/^/| /' conftest.$ac_ext >&5
19268
19269 ac_cv_func_getpgrp_void=yes
19270 fi
19271
19272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19273
19274 fi
19275 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19276 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19277 if test $ac_cv_func_getpgrp_void = yes; then
19278
19279 cat >>confdefs.h <<\_ACEOF
19280 #define GETPGRP_VOID 1
19281 _ACEOF
19282
19283 fi
19284
19285
19286
19287 for ac_func in strftime
19288 do
19289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19290 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19292 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19293 echo $ECHO_N "(cached) $ECHO_C" >&6
19294 else
19295 cat >conftest.$ac_ext <<_ACEOF
19296 /* confdefs.h. */
19297 _ACEOF
19298 cat confdefs.h >>conftest.$ac_ext
19299 cat >>conftest.$ac_ext <<_ACEOF
19300 /* end confdefs.h. */
19301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19303 #define $ac_func innocuous_$ac_func
19304
19305 /* System header to define __stub macros and hopefully few prototypes,
19306 which can conflict with char $ac_func (); below.
19307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19308 <limits.h> exists even on freestanding compilers. */
19309
19310 #ifdef __STDC__
19311 # include <limits.h>
19312 #else
19313 # include <assert.h>
19314 #endif
19315
19316 #undef $ac_func
19317
19318 /* Override any GCC internal prototype to avoid an error.
19319 Use char because int might match the return type of a GCC
19320 builtin and then its argument prototype would still apply. */
19321 #ifdef __cplusplus
19322 extern "C"
19323 #endif
19324 char $ac_func ();
19325 /* The GNU C library defines this for functions which it implements
19326 to always fail with ENOSYS. Some functions are actually named
19327 something starting with __ and the normal name is an alias. */
19328 #if defined __stub_$ac_func || defined __stub___$ac_func
19329 choke me
19330 #endif
19331
19332 int
19333 main ()
19334 {
19335 return $ac_func ();
19336 ;
19337 return 0;
19338 }
19339 _ACEOF
19340 rm -f conftest.$ac_objext conftest$ac_exeext
19341 if { (ac_try="$ac_link"
19342 case "(($ac_try" in
19343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344 *) ac_try_echo=$ac_try;;
19345 esac
19346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347 (eval "$ac_link") 2>conftest.er1
19348 ac_status=$?
19349 grep -v '^ *+' conftest.er1 >conftest.err
19350 rm -f conftest.er1
19351 cat conftest.err >&5
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); } && {
19354 test -z "$ac_c_werror_flag" ||
19355 test ! -s conftest.err
19356 } && test -s conftest$ac_exeext &&
19357 $as_test_x conftest$ac_exeext; then
19358 eval "$as_ac_var=yes"
19359 else
19360 echo "$as_me: failed program was:" >&5
19361 sed 's/^/| /' conftest.$ac_ext >&5
19362
19363 eval "$as_ac_var=no"
19364 fi
19365
19366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19367 conftest$ac_exeext conftest.$ac_ext
19368 fi
19369 ac_res=`eval echo '${'$as_ac_var'}'`
19370 { echo "$as_me:$LINENO: result: $ac_res" >&5
19371 echo "${ECHO_T}$ac_res" >&6; }
19372 if test `eval echo '${'$as_ac_var'}'` = yes; then
19373 cat >>confdefs.h <<_ACEOF
19374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19375 _ACEOF
19376
19377 else
19378 # strftime is in -lintl on SCO UNIX.
19379 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19380 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19381 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19382 echo $ECHO_N "(cached) $ECHO_C" >&6
19383 else
19384 ac_check_lib_save_LIBS=$LIBS
19385 LIBS="-lintl $LIBS"
19386 cat >conftest.$ac_ext <<_ACEOF
19387 /* confdefs.h. */
19388 _ACEOF
19389 cat confdefs.h >>conftest.$ac_ext
19390 cat >>conftest.$ac_ext <<_ACEOF
19391 /* end confdefs.h. */
19392
19393 /* Override any GCC internal prototype to avoid an error.
19394 Use char because int might match the return type of a GCC
19395 builtin and then its argument prototype would still apply. */
19396 #ifdef __cplusplus
19397 extern "C"
19398 #endif
19399 char strftime ();
19400 int
19401 main ()
19402 {
19403 return strftime ();
19404 ;
19405 return 0;
19406 }
19407 _ACEOF
19408 rm -f conftest.$ac_objext conftest$ac_exeext
19409 if { (ac_try="$ac_link"
19410 case "(($ac_try" in
19411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412 *) ac_try_echo=$ac_try;;
19413 esac
19414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415 (eval "$ac_link") 2>conftest.er1
19416 ac_status=$?
19417 grep -v '^ *+' conftest.er1 >conftest.err
19418 rm -f conftest.er1
19419 cat conftest.err >&5
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); } && {
19422 test -z "$ac_c_werror_flag" ||
19423 test ! -s conftest.err
19424 } && test -s conftest$ac_exeext &&
19425 $as_test_x conftest$ac_exeext; then
19426 ac_cv_lib_intl_strftime=yes
19427 else
19428 echo "$as_me: failed program was:" >&5
19429 sed 's/^/| /' conftest.$ac_ext >&5
19430
19431 ac_cv_lib_intl_strftime=no
19432 fi
19433
19434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19435 conftest$ac_exeext conftest.$ac_ext
19436 LIBS=$ac_check_lib_save_LIBS
19437 fi
19438 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19439 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19440 if test $ac_cv_lib_intl_strftime = yes; then
19441 cat >>confdefs.h <<\_ACEOF
19442 #define HAVE_STRFTIME 1
19443 _ACEOF
19444
19445 LIBS="-lintl $LIBS"
19446 fi
19447
19448 fi
19449 done
19450
19451
19452 # UNIX98 PTYs.
19453
19454 for ac_func in grantpt
19455 do
19456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19457 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19459 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19461 else
19462 cat >conftest.$ac_ext <<_ACEOF
19463 /* confdefs.h. */
19464 _ACEOF
19465 cat confdefs.h >>conftest.$ac_ext
19466 cat >>conftest.$ac_ext <<_ACEOF
19467 /* end confdefs.h. */
19468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19470 #define $ac_func innocuous_$ac_func
19471
19472 /* System header to define __stub macros and hopefully few prototypes,
19473 which can conflict with char $ac_func (); below.
19474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19475 <limits.h> exists even on freestanding compilers. */
19476
19477 #ifdef __STDC__
19478 # include <limits.h>
19479 #else
19480 # include <assert.h>
19481 #endif
19482
19483 #undef $ac_func
19484
19485 /* Override any GCC internal prototype to avoid an error.
19486 Use char because int might match the return type of a GCC
19487 builtin and then its argument prototype would still apply. */
19488 #ifdef __cplusplus
19489 extern "C"
19490 #endif
19491 char $ac_func ();
19492 /* The GNU C library defines this for functions which it implements
19493 to always fail with ENOSYS. Some functions are actually named
19494 something starting with __ and the normal name is an alias. */
19495 #if defined __stub_$ac_func || defined __stub___$ac_func
19496 choke me
19497 #endif
19498
19499 int
19500 main ()
19501 {
19502 return $ac_func ();
19503 ;
19504 return 0;
19505 }
19506 _ACEOF
19507 rm -f conftest.$ac_objext conftest$ac_exeext
19508 if { (ac_try="$ac_link"
19509 case "(($ac_try" in
19510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511 *) ac_try_echo=$ac_try;;
19512 esac
19513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514 (eval "$ac_link") 2>conftest.er1
19515 ac_status=$?
19516 grep -v '^ *+' conftest.er1 >conftest.err
19517 rm -f conftest.er1
19518 cat conftest.err >&5
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); } && {
19521 test -z "$ac_c_werror_flag" ||
19522 test ! -s conftest.err
19523 } && test -s conftest$ac_exeext &&
19524 $as_test_x conftest$ac_exeext; then
19525 eval "$as_ac_var=yes"
19526 else
19527 echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19529
19530 eval "$as_ac_var=no"
19531 fi
19532
19533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19534 conftest$ac_exeext conftest.$ac_ext
19535 fi
19536 ac_res=`eval echo '${'$as_ac_var'}'`
19537 { echo "$as_me:$LINENO: result: $ac_res" >&5
19538 echo "${ECHO_T}$ac_res" >&6; }
19539 if test `eval echo '${'$as_ac_var'}'` = yes; then
19540 cat >>confdefs.h <<_ACEOF
19541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19542 _ACEOF
19543
19544 fi
19545 done
19546
19547
19548 # PTY-related GNU extensions.
19549
19550 for ac_func in getpt
19551 do
19552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19553 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19555 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19556 echo $ECHO_N "(cached) $ECHO_C" >&6
19557 else
19558 cat >conftest.$ac_ext <<_ACEOF
19559 /* confdefs.h. */
19560 _ACEOF
19561 cat confdefs.h >>conftest.$ac_ext
19562 cat >>conftest.$ac_ext <<_ACEOF
19563 /* end confdefs.h. */
19564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19566 #define $ac_func innocuous_$ac_func
19567
19568 /* System header to define __stub macros and hopefully few prototypes,
19569 which can conflict with char $ac_func (); below.
19570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19571 <limits.h> exists even on freestanding compilers. */
19572
19573 #ifdef __STDC__
19574 # include <limits.h>
19575 #else
19576 # include <assert.h>
19577 #endif
19578
19579 #undef $ac_func
19580
19581 /* Override any GCC internal prototype to avoid an error.
19582 Use char because int might match the return type of a GCC
19583 builtin and then its argument prototype would still apply. */
19584 #ifdef __cplusplus
19585 extern "C"
19586 #endif
19587 char $ac_func ();
19588 /* The GNU C library defines this for functions which it implements
19589 to always fail with ENOSYS. Some functions are actually named
19590 something starting with __ and the normal name is an alias. */
19591 #if defined __stub_$ac_func || defined __stub___$ac_func
19592 choke me
19593 #endif
19594
19595 int
19596 main ()
19597 {
19598 return $ac_func ();
19599 ;
19600 return 0;
19601 }
19602 _ACEOF
19603 rm -f conftest.$ac_objext conftest$ac_exeext
19604 if { (ac_try="$ac_link"
19605 case "(($ac_try" in
19606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19607 *) ac_try_echo=$ac_try;;
19608 esac
19609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19610 (eval "$ac_link") 2>conftest.er1
19611 ac_status=$?
19612 grep -v '^ *+' conftest.er1 >conftest.err
19613 rm -f conftest.er1
19614 cat conftest.err >&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); } && {
19617 test -z "$ac_c_werror_flag" ||
19618 test ! -s conftest.err
19619 } && test -s conftest$ac_exeext &&
19620 $as_test_x conftest$ac_exeext; then
19621 eval "$as_ac_var=yes"
19622 else
19623 echo "$as_me: failed program was:" >&5
19624 sed 's/^/| /' conftest.$ac_ext >&5
19625
19626 eval "$as_ac_var=no"
19627 fi
19628
19629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19630 conftest$ac_exeext conftest.$ac_ext
19631 fi
19632 ac_res=`eval echo '${'$as_ac_var'}'`
19633 { echo "$as_me:$LINENO: result: $ac_res" >&5
19634 echo "${ECHO_T}$ac_res" >&6; }
19635 if test `eval echo '${'$as_ac_var'}'` = yes; then
19636 cat >>confdefs.h <<_ACEOF
19637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19638 _ACEOF
19639
19640 fi
19641 done
19642
19643
19644 # Check this now, so that we will NOT find the above functions in ncurses.
19645 # That is because we have not set up to link ncurses in lib-src.
19646 # It's better to believe a function is not available
19647 # than to expect to find it in ncurses.
19648
19649 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19650 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19651 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19652 echo $ECHO_N "(cached) $ECHO_C" >&6
19653 else
19654 ac_check_lib_save_LIBS=$LIBS
19655 LIBS="-lncurses $LIBS"
19656 cat >conftest.$ac_ext <<_ACEOF
19657 /* confdefs.h. */
19658 _ACEOF
19659 cat confdefs.h >>conftest.$ac_ext
19660 cat >>conftest.$ac_ext <<_ACEOF
19661 /* end confdefs.h. */
19662
19663 /* Override any GCC internal prototype to avoid an error.
19664 Use char because int might match the return type of a GCC
19665 builtin and then its argument prototype would still apply. */
19666 #ifdef __cplusplus
19667 extern "C"
19668 #endif
19669 char tparm ();
19670 int
19671 main ()
19672 {
19673 return tparm ();
19674 ;
19675 return 0;
19676 }
19677 _ACEOF
19678 rm -f conftest.$ac_objext conftest$ac_exeext
19679 if { (ac_try="$ac_link"
19680 case "(($ac_try" in
19681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19682 *) ac_try_echo=$ac_try;;
19683 esac
19684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19685 (eval "$ac_link") 2>conftest.er1
19686 ac_status=$?
19687 grep -v '^ *+' conftest.er1 >conftest.err
19688 rm -f conftest.er1
19689 cat conftest.err >&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); } && {
19692 test -z "$ac_c_werror_flag" ||
19693 test ! -s conftest.err
19694 } && test -s conftest$ac_exeext &&
19695 $as_test_x conftest$ac_exeext; then
19696 ac_cv_lib_ncurses_tparm=yes
19697 else
19698 echo "$as_me: failed program was:" >&5
19699 sed 's/^/| /' conftest.$ac_ext >&5
19700
19701 ac_cv_lib_ncurses_tparm=no
19702 fi
19703
19704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19705 conftest$ac_exeext conftest.$ac_ext
19706 LIBS=$ac_check_lib_save_LIBS
19707 fi
19708 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19709 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19710 if test $ac_cv_lib_ncurses_tparm = yes; then
19711 cat >>confdefs.h <<_ACEOF
19712 #define HAVE_LIBNCURSES 1
19713 _ACEOF
19714
19715 LIBS="-lncurses $LIBS"
19716
19717 fi
19718
19719
19720 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19721
19722 resolv=no
19723 cat >conftest.$ac_ext <<_ACEOF
19724 /* confdefs.h. */
19725 _ACEOF
19726 cat confdefs.h >>conftest.$ac_ext
19727 cat >>conftest.$ac_ext <<_ACEOF
19728 /* end confdefs.h. */
19729 #include <netinet/in.h>
19730 #include <arpa/nameser.h>
19731 #include <resolv.h>
19732 int
19733 main ()
19734 {
19735 return res_init();
19736 ;
19737 return 0;
19738 }
19739 _ACEOF
19740 rm -f conftest.$ac_objext conftest$ac_exeext
19741 if { (ac_try="$ac_link"
19742 case "(($ac_try" in
19743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19744 *) ac_try_echo=$ac_try;;
19745 esac
19746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19747 (eval "$ac_link") 2>conftest.er1
19748 ac_status=$?
19749 grep -v '^ *+' conftest.er1 >conftest.err
19750 rm -f conftest.er1
19751 cat conftest.err >&5
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); } && {
19754 test -z "$ac_c_werror_flag" ||
19755 test ! -s conftest.err
19756 } && test -s conftest$ac_exeext &&
19757 $as_test_x conftest$ac_exeext; then
19758 have_res_init=yes
19759 else
19760 echo "$as_me: failed program was:" >&5
19761 sed 's/^/| /' conftest.$ac_ext >&5
19762
19763 have_res_init=no
19764 fi
19765
19766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19767 conftest$ac_exeext conftest.$ac_ext
19768 if test "$have_res_init" = no; then
19769 OLIBS="$LIBS"
19770 LIBS="$LIBS -lresolv"
19771 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19772 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19773 cat >conftest.$ac_ext <<_ACEOF
19774 /* confdefs.h. */
19775 _ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h. */
19779 #include <netinet/in.h>
19780 #include <arpa/nameser.h>
19781 #include <resolv.h>
19782 int
19783 main ()
19784 {
19785 return res_init();
19786 ;
19787 return 0;
19788 }
19789 _ACEOF
19790 rm -f conftest.$ac_objext conftest$ac_exeext
19791 if { (ac_try="$ac_link"
19792 case "(($ac_try" in
19793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794 *) ac_try_echo=$ac_try;;
19795 esac
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797 (eval "$ac_link") 2>conftest.er1
19798 ac_status=$?
19799 grep -v '^ *+' conftest.er1 >conftest.err
19800 rm -f conftest.er1
19801 cat conftest.err >&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); } && {
19804 test -z "$ac_c_werror_flag" ||
19805 test ! -s conftest.err
19806 } && test -s conftest$ac_exeext &&
19807 $as_test_x conftest$ac_exeext; then
19808 have_res_init=yes
19809 else
19810 echo "$as_me: failed program was:" >&5
19811 sed 's/^/| /' conftest.$ac_ext >&5
19812
19813 have_res_init=no
19814 fi
19815
19816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19817 conftest$ac_exeext conftest.$ac_ext
19818 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19819 echo "${ECHO_T}$have_res_init" >&6; }
19820 if test "$have_res_init" = yes ; then
19821 resolv=yes
19822 fi
19823 LIBS="$OLIBS"
19824 fi
19825
19826 if test "$have_res_init" = yes; then
19827
19828 cat >>confdefs.h <<\_ACEOF
19829 #define HAVE_RES_INIT 1
19830 _ACEOF
19831
19832 fi
19833
19834 # Do we need the Hesiod library to provide the support routines?
19835 if test "$with_hesiod" = yes ; then
19836 # Don't set $LIBS here -- see comments above.
19837 { echo "$as_me:$LINENO: checking for res_send" >&5
19838 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19839 if test "${ac_cv_func_res_send+set}" = set; then
19840 echo $ECHO_N "(cached) $ECHO_C" >&6
19841 else
19842 cat >conftest.$ac_ext <<_ACEOF
19843 /* confdefs.h. */
19844 _ACEOF
19845 cat confdefs.h >>conftest.$ac_ext
19846 cat >>conftest.$ac_ext <<_ACEOF
19847 /* end confdefs.h. */
19848 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19850 #define res_send innocuous_res_send
19851
19852 /* System header to define __stub macros and hopefully few prototypes,
19853 which can conflict with char res_send (); below.
19854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19855 <limits.h> exists even on freestanding compilers. */
19856
19857 #ifdef __STDC__
19858 # include <limits.h>
19859 #else
19860 # include <assert.h>
19861 #endif
19862
19863 #undef res_send
19864
19865 /* Override any GCC internal prototype to avoid an error.
19866 Use char because int might match the return type of a GCC
19867 builtin and then its argument prototype would still apply. */
19868 #ifdef __cplusplus
19869 extern "C"
19870 #endif
19871 char res_send ();
19872 /* The GNU C library defines this for functions which it implements
19873 to always fail with ENOSYS. Some functions are actually named
19874 something starting with __ and the normal name is an alias. */
19875 #if defined __stub_res_send || defined __stub___res_send
19876 choke me
19877 #endif
19878
19879 int
19880 main ()
19881 {
19882 return res_send ();
19883 ;
19884 return 0;
19885 }
19886 _ACEOF
19887 rm -f conftest.$ac_objext conftest$ac_exeext
19888 if { (ac_try="$ac_link"
19889 case "(($ac_try" in
19890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19891 *) ac_try_echo=$ac_try;;
19892 esac
19893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19894 (eval "$ac_link") 2>conftest.er1
19895 ac_status=$?
19896 grep -v '^ *+' conftest.er1 >conftest.err
19897 rm -f conftest.er1
19898 cat conftest.err >&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); } && {
19901 test -z "$ac_c_werror_flag" ||
19902 test ! -s conftest.err
19903 } && test -s conftest$ac_exeext &&
19904 $as_test_x conftest$ac_exeext; then
19905 ac_cv_func_res_send=yes
19906 else
19907 echo "$as_me: failed program was:" >&5
19908 sed 's/^/| /' conftest.$ac_ext >&5
19909
19910 ac_cv_func_res_send=no
19911 fi
19912
19913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19914 conftest$ac_exeext conftest.$ac_ext
19915 fi
19916 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19917 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19918 if test $ac_cv_func_res_send = yes; then
19919 :
19920 else
19921 { echo "$as_me:$LINENO: checking for __res_send" >&5
19922 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19923 if test "${ac_cv_func___res_send+set}" = set; then
19924 echo $ECHO_N "(cached) $ECHO_C" >&6
19925 else
19926 cat >conftest.$ac_ext <<_ACEOF
19927 /* confdefs.h. */
19928 _ACEOF
19929 cat confdefs.h >>conftest.$ac_ext
19930 cat >>conftest.$ac_ext <<_ACEOF
19931 /* end confdefs.h. */
19932 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19934 #define __res_send innocuous___res_send
19935
19936 /* System header to define __stub macros and hopefully few prototypes,
19937 which can conflict with char __res_send (); below.
19938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19939 <limits.h> exists even on freestanding compilers. */
19940
19941 #ifdef __STDC__
19942 # include <limits.h>
19943 #else
19944 # include <assert.h>
19945 #endif
19946
19947 #undef __res_send
19948
19949 /* Override any GCC internal prototype to avoid an error.
19950 Use char because int might match the return type of a GCC
19951 builtin and then its argument prototype would still apply. */
19952 #ifdef __cplusplus
19953 extern "C"
19954 #endif
19955 char __res_send ();
19956 /* The GNU C library defines this for functions which it implements
19957 to always fail with ENOSYS. Some functions are actually named
19958 something starting with __ and the normal name is an alias. */
19959 #if defined __stub___res_send || defined __stub_____res_send
19960 choke me
19961 #endif
19962
19963 int
19964 main ()
19965 {
19966 return __res_send ();
19967 ;
19968 return 0;
19969 }
19970 _ACEOF
19971 rm -f conftest.$ac_objext conftest$ac_exeext
19972 if { (ac_try="$ac_link"
19973 case "(($ac_try" in
19974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975 *) ac_try_echo=$ac_try;;
19976 esac
19977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978 (eval "$ac_link") 2>conftest.er1
19979 ac_status=$?
19980 grep -v '^ *+' conftest.er1 >conftest.err
19981 rm -f conftest.er1
19982 cat conftest.err >&5
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } && {
19985 test -z "$ac_c_werror_flag" ||
19986 test ! -s conftest.err
19987 } && test -s conftest$ac_exeext &&
19988 $as_test_x conftest$ac_exeext; then
19989 ac_cv_func___res_send=yes
19990 else
19991 echo "$as_me: failed program was:" >&5
19992 sed 's/^/| /' conftest.$ac_ext >&5
19993
19994 ac_cv_func___res_send=no
19995 fi
19996
19997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19998 conftest$ac_exeext conftest.$ac_ext
19999 fi
20000 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20001 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20002 if test $ac_cv_func___res_send = yes; then
20003 :
20004 else
20005 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20006 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20007 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20008 echo $ECHO_N "(cached) $ECHO_C" >&6
20009 else
20010 ac_check_lib_save_LIBS=$LIBS
20011 LIBS="-lresolv $LIBS"
20012 cat >conftest.$ac_ext <<_ACEOF
20013 /* confdefs.h. */
20014 _ACEOF
20015 cat confdefs.h >>conftest.$ac_ext
20016 cat >>conftest.$ac_ext <<_ACEOF
20017 /* end confdefs.h. */
20018
20019 /* Override any GCC internal prototype to avoid an error.
20020 Use char because int might match the return type of a GCC
20021 builtin and then its argument prototype would still apply. */
20022 #ifdef __cplusplus
20023 extern "C"
20024 #endif
20025 char res_send ();
20026 int
20027 main ()
20028 {
20029 return res_send ();
20030 ;
20031 return 0;
20032 }
20033 _ACEOF
20034 rm -f conftest.$ac_objext conftest$ac_exeext
20035 if { (ac_try="$ac_link"
20036 case "(($ac_try" in
20037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20038 *) ac_try_echo=$ac_try;;
20039 esac
20040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041 (eval "$ac_link") 2>conftest.er1
20042 ac_status=$?
20043 grep -v '^ *+' conftest.er1 >conftest.err
20044 rm -f conftest.er1
20045 cat conftest.err >&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } && {
20048 test -z "$ac_c_werror_flag" ||
20049 test ! -s conftest.err
20050 } && test -s conftest$ac_exeext &&
20051 $as_test_x conftest$ac_exeext; then
20052 ac_cv_lib_resolv_res_send=yes
20053 else
20054 echo "$as_me: failed program was:" >&5
20055 sed 's/^/| /' conftest.$ac_ext >&5
20056
20057 ac_cv_lib_resolv_res_send=no
20058 fi
20059
20060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20061 conftest$ac_exeext conftest.$ac_ext
20062 LIBS=$ac_check_lib_save_LIBS
20063 fi
20064 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20065 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20066 if test $ac_cv_lib_resolv_res_send = yes; then
20067 resolv=yes
20068 else
20069 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20070 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20071 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20072 echo $ECHO_N "(cached) $ECHO_C" >&6
20073 else
20074 ac_check_lib_save_LIBS=$LIBS
20075 LIBS="-lresolv $LIBS"
20076 cat >conftest.$ac_ext <<_ACEOF
20077 /* confdefs.h. */
20078 _ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h. */
20082
20083 /* Override any GCC internal prototype to avoid an error.
20084 Use char because int might match the return type of a GCC
20085 builtin and then its argument prototype would still apply. */
20086 #ifdef __cplusplus
20087 extern "C"
20088 #endif
20089 char __res_send ();
20090 int
20091 main ()
20092 {
20093 return __res_send ();
20094 ;
20095 return 0;
20096 }
20097 _ACEOF
20098 rm -f conftest.$ac_objext conftest$ac_exeext
20099 if { (ac_try="$ac_link"
20100 case "(($ac_try" in
20101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20102 *) ac_try_echo=$ac_try;;
20103 esac
20104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20105 (eval "$ac_link") 2>conftest.er1
20106 ac_status=$?
20107 grep -v '^ *+' conftest.er1 >conftest.err
20108 rm -f conftest.er1
20109 cat conftest.err >&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } && {
20112 test -z "$ac_c_werror_flag" ||
20113 test ! -s conftest.err
20114 } && test -s conftest$ac_exeext &&
20115 $as_test_x conftest$ac_exeext; then
20116 ac_cv_lib_resolv___res_send=yes
20117 else
20118 echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20120
20121 ac_cv_lib_resolv___res_send=no
20122 fi
20123
20124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20125 conftest$ac_exeext conftest.$ac_ext
20126 LIBS=$ac_check_lib_save_LIBS
20127 fi
20128 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20129 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20130 if test $ac_cv_lib_resolv___res_send = yes; then
20131 resolv=yes
20132 fi
20133
20134 fi
20135
20136 fi
20137
20138 fi
20139
20140 if test "$resolv" = yes ; then
20141 RESOLVLIB=-lresolv
20142 else
20143 RESOLVLIB=
20144 fi
20145 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20146 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20147 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20148 echo $ECHO_N "(cached) $ECHO_C" >&6
20149 else
20150 cat >conftest.$ac_ext <<_ACEOF
20151 /* confdefs.h. */
20152 _ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h. */
20156 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20158 #define hes_getmailhost innocuous_hes_getmailhost
20159
20160 /* System header to define __stub macros and hopefully few prototypes,
20161 which can conflict with char hes_getmailhost (); below.
20162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20163 <limits.h> exists even on freestanding compilers. */
20164
20165 #ifdef __STDC__
20166 # include <limits.h>
20167 #else
20168 # include <assert.h>
20169 #endif
20170
20171 #undef hes_getmailhost
20172
20173 /* Override any GCC internal prototype to avoid an error.
20174 Use char because int might match the return type of a GCC
20175 builtin and then its argument prototype would still apply. */
20176 #ifdef __cplusplus
20177 extern "C"
20178 #endif
20179 char hes_getmailhost ();
20180 /* The GNU C library defines this for functions which it implements
20181 to always fail with ENOSYS. Some functions are actually named
20182 something starting with __ and the normal name is an alias. */
20183 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20184 choke me
20185 #endif
20186
20187 int
20188 main ()
20189 {
20190 return hes_getmailhost ();
20191 ;
20192 return 0;
20193 }
20194 _ACEOF
20195 rm -f conftest.$ac_objext conftest$ac_exeext
20196 if { (ac_try="$ac_link"
20197 case "(($ac_try" in
20198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20199 *) ac_try_echo=$ac_try;;
20200 esac
20201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20202 (eval "$ac_link") 2>conftest.er1
20203 ac_status=$?
20204 grep -v '^ *+' conftest.er1 >conftest.err
20205 rm -f conftest.er1
20206 cat conftest.err >&5
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); } && {
20209 test -z "$ac_c_werror_flag" ||
20210 test ! -s conftest.err
20211 } && test -s conftest$ac_exeext &&
20212 $as_test_x conftest$ac_exeext; then
20213 ac_cv_func_hes_getmailhost=yes
20214 else
20215 echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20217
20218 ac_cv_func_hes_getmailhost=no
20219 fi
20220
20221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20222 conftest$ac_exeext conftest.$ac_ext
20223 fi
20224 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20225 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20226 if test $ac_cv_func_hes_getmailhost = yes; then
20227 :
20228 else
20229 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20230 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20231 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20232 echo $ECHO_N "(cached) $ECHO_C" >&6
20233 else
20234 ac_check_lib_save_LIBS=$LIBS
20235 LIBS="-lhesiod $RESOLVLIB $LIBS"
20236 cat >conftest.$ac_ext <<_ACEOF
20237 /* confdefs.h. */
20238 _ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h. */
20242
20243 /* Override any GCC internal prototype to avoid an error.
20244 Use char because int might match the return type of a GCC
20245 builtin and then its argument prototype would still apply. */
20246 #ifdef __cplusplus
20247 extern "C"
20248 #endif
20249 char hes_getmailhost ();
20250 int
20251 main ()
20252 {
20253 return hes_getmailhost ();
20254 ;
20255 return 0;
20256 }
20257 _ACEOF
20258 rm -f conftest.$ac_objext conftest$ac_exeext
20259 if { (ac_try="$ac_link"
20260 case "(($ac_try" in
20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262 *) ac_try_echo=$ac_try;;
20263 esac
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265 (eval "$ac_link") 2>conftest.er1
20266 ac_status=$?
20267 grep -v '^ *+' conftest.er1 >conftest.err
20268 rm -f conftest.er1
20269 cat conftest.err >&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } && {
20272 test -z "$ac_c_werror_flag" ||
20273 test ! -s conftest.err
20274 } && test -s conftest$ac_exeext &&
20275 $as_test_x conftest$ac_exeext; then
20276 ac_cv_lib_hesiod_hes_getmailhost=yes
20277 else
20278 echo "$as_me: failed program was:" >&5
20279 sed 's/^/| /' conftest.$ac_ext >&5
20280
20281 ac_cv_lib_hesiod_hes_getmailhost=no
20282 fi
20283
20284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20285 conftest$ac_exeext conftest.$ac_ext
20286 LIBS=$ac_check_lib_save_LIBS
20287 fi
20288 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20289 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20290 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20291
20292 cat >>confdefs.h <<\_ACEOF
20293 #define HAVE_LIBHESIOD 1
20294 _ACEOF
20295
20296 else
20297 :
20298 fi
20299
20300 fi
20301
20302 fi
20303
20304 # Do we need libresolv (due to res_init or Hesiod)?
20305 if test "$resolv" = yes ; then
20306
20307 cat >>confdefs.h <<\_ACEOF
20308 #define HAVE_LIBRESOLV 1
20309 _ACEOF
20310
20311 fi
20312
20313 # These tell us which Kerberos-related libraries to use.
20314 if test "${with_kerberos+set}" = set; then
20315
20316 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20317 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20318 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20319 echo $ECHO_N "(cached) $ECHO_C" >&6
20320 else
20321 ac_check_lib_save_LIBS=$LIBS
20322 LIBS="-lcom_err $LIBS"
20323 cat >conftest.$ac_ext <<_ACEOF
20324 /* confdefs.h. */
20325 _ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h. */
20329
20330 /* Override any GCC internal prototype to avoid an error.
20331 Use char because int might match the return type of a GCC
20332 builtin and then its argument prototype would still apply. */
20333 #ifdef __cplusplus
20334 extern "C"
20335 #endif
20336 char com_err ();
20337 int
20338 main ()
20339 {
20340 return com_err ();
20341 ;
20342 return 0;
20343 }
20344 _ACEOF
20345 rm -f conftest.$ac_objext conftest$ac_exeext
20346 if { (ac_try="$ac_link"
20347 case "(($ac_try" in
20348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349 *) ac_try_echo=$ac_try;;
20350 esac
20351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20352 (eval "$ac_link") 2>conftest.er1
20353 ac_status=$?
20354 grep -v '^ *+' conftest.er1 >conftest.err
20355 rm -f conftest.er1
20356 cat conftest.err >&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); } && {
20359 test -z "$ac_c_werror_flag" ||
20360 test ! -s conftest.err
20361 } && test -s conftest$ac_exeext &&
20362 $as_test_x conftest$ac_exeext; then
20363 ac_cv_lib_com_err_com_err=yes
20364 else
20365 echo "$as_me: failed program was:" >&5
20366 sed 's/^/| /' conftest.$ac_ext >&5
20367
20368 ac_cv_lib_com_err_com_err=no
20369 fi
20370
20371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20372 conftest$ac_exeext conftest.$ac_ext
20373 LIBS=$ac_check_lib_save_LIBS
20374 fi
20375 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20376 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20377 if test $ac_cv_lib_com_err_com_err = yes; then
20378 cat >>confdefs.h <<_ACEOF
20379 #define HAVE_LIBCOM_ERR 1
20380 _ACEOF
20381
20382 LIBS="-lcom_err $LIBS"
20383
20384 fi
20385
20386
20387 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20388 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20389 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20390 echo $ECHO_N "(cached) $ECHO_C" >&6
20391 else
20392 ac_check_lib_save_LIBS=$LIBS
20393 LIBS="-lk5crypto $LIBS"
20394 cat >conftest.$ac_ext <<_ACEOF
20395 /* confdefs.h. */
20396 _ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h. */
20400
20401 /* Override any GCC internal prototype to avoid an error.
20402 Use char because int might match the return type of a GCC
20403 builtin and then its argument prototype would still apply. */
20404 #ifdef __cplusplus
20405 extern "C"
20406 #endif
20407 char mit_des_cbc_encrypt ();
20408 int
20409 main ()
20410 {
20411 return mit_des_cbc_encrypt ();
20412 ;
20413 return 0;
20414 }
20415 _ACEOF
20416 rm -f conftest.$ac_objext conftest$ac_exeext
20417 if { (ac_try="$ac_link"
20418 case "(($ac_try" in
20419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420 *) ac_try_echo=$ac_try;;
20421 esac
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_link") 2>conftest.er1
20424 ac_status=$?
20425 grep -v '^ *+' conftest.er1 >conftest.err
20426 rm -f conftest.er1
20427 cat conftest.err >&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } && {
20430 test -z "$ac_c_werror_flag" ||
20431 test ! -s conftest.err
20432 } && test -s conftest$ac_exeext &&
20433 $as_test_x conftest$ac_exeext; then
20434 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20435 else
20436 echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20438
20439 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20440 fi
20441
20442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20443 conftest$ac_exeext conftest.$ac_ext
20444 LIBS=$ac_check_lib_save_LIBS
20445 fi
20446 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20447 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20448 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20449 cat >>confdefs.h <<_ACEOF
20450 #define HAVE_LIBK5CRYPTO 1
20451 _ACEOF
20452
20453 LIBS="-lk5crypto $LIBS"
20454
20455 fi
20456
20457
20458 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20459 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20460 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20461 echo $ECHO_N "(cached) $ECHO_C" >&6
20462 else
20463 ac_check_lib_save_LIBS=$LIBS
20464 LIBS="-lcrypto $LIBS"
20465 cat >conftest.$ac_ext <<_ACEOF
20466 /* confdefs.h. */
20467 _ACEOF
20468 cat confdefs.h >>conftest.$ac_ext
20469 cat >>conftest.$ac_ext <<_ACEOF
20470 /* end confdefs.h. */
20471
20472 /* Override any GCC internal prototype to avoid an error.
20473 Use char because int might match the return type of a GCC
20474 builtin and then its argument prototype would still apply. */
20475 #ifdef __cplusplus
20476 extern "C"
20477 #endif
20478 char mit_des_cbc_encrypt ();
20479 int
20480 main ()
20481 {
20482 return mit_des_cbc_encrypt ();
20483 ;
20484 return 0;
20485 }
20486 _ACEOF
20487 rm -f conftest.$ac_objext conftest$ac_exeext
20488 if { (ac_try="$ac_link"
20489 case "(($ac_try" in
20490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491 *) ac_try_echo=$ac_try;;
20492 esac
20493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20494 (eval "$ac_link") 2>conftest.er1
20495 ac_status=$?
20496 grep -v '^ *+' conftest.er1 >conftest.err
20497 rm -f conftest.er1
20498 cat conftest.err >&5
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); } && {
20501 test -z "$ac_c_werror_flag" ||
20502 test ! -s conftest.err
20503 } && test -s conftest$ac_exeext &&
20504 $as_test_x conftest$ac_exeext; then
20505 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20506 else
20507 echo "$as_me: failed program was:" >&5
20508 sed 's/^/| /' conftest.$ac_ext >&5
20509
20510 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20511 fi
20512
20513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20514 conftest$ac_exeext conftest.$ac_ext
20515 LIBS=$ac_check_lib_save_LIBS
20516 fi
20517 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20518 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20519 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20520 cat >>confdefs.h <<_ACEOF
20521 #define HAVE_LIBCRYPTO 1
20522 _ACEOF
20523
20524 LIBS="-lcrypto $LIBS"
20525
20526 fi
20527
20528
20529 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20530 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20531 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20532 echo $ECHO_N "(cached) $ECHO_C" >&6
20533 else
20534 ac_check_lib_save_LIBS=$LIBS
20535 LIBS="-lkrb5 $LIBS"
20536 cat >conftest.$ac_ext <<_ACEOF
20537 /* confdefs.h. */
20538 _ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h. */
20542
20543 /* Override any GCC internal prototype to avoid an error.
20544 Use char because int might match the return type of a GCC
20545 builtin and then its argument prototype would still apply. */
20546 #ifdef __cplusplus
20547 extern "C"
20548 #endif
20549 char krb5_init_context ();
20550 int
20551 main ()
20552 {
20553 return krb5_init_context ();
20554 ;
20555 return 0;
20556 }
20557 _ACEOF
20558 rm -f conftest.$ac_objext conftest$ac_exeext
20559 if { (ac_try="$ac_link"
20560 case "(($ac_try" in
20561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20562 *) ac_try_echo=$ac_try;;
20563 esac
20564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20565 (eval "$ac_link") 2>conftest.er1
20566 ac_status=$?
20567 grep -v '^ *+' conftest.er1 >conftest.err
20568 rm -f conftest.er1
20569 cat conftest.err >&5
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); } && {
20572 test -z "$ac_c_werror_flag" ||
20573 test ! -s conftest.err
20574 } && test -s conftest$ac_exeext &&
20575 $as_test_x conftest$ac_exeext; then
20576 ac_cv_lib_krb5_krb5_init_context=yes
20577 else
20578 echo "$as_me: failed program was:" >&5
20579 sed 's/^/| /' conftest.$ac_ext >&5
20580
20581 ac_cv_lib_krb5_krb5_init_context=no
20582 fi
20583
20584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20585 conftest$ac_exeext conftest.$ac_ext
20586 LIBS=$ac_check_lib_save_LIBS
20587 fi
20588 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20589 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20590 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20591 cat >>confdefs.h <<_ACEOF
20592 #define HAVE_LIBKRB5 1
20593 _ACEOF
20594
20595 LIBS="-lkrb5 $LIBS"
20596
20597 fi
20598
20599 if test "${with_kerberos5+set}" != set; then
20600
20601 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20602 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20603 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20604 echo $ECHO_N "(cached) $ECHO_C" >&6
20605 else
20606 ac_check_lib_save_LIBS=$LIBS
20607 LIBS="-ldes425 $LIBS"
20608 cat >conftest.$ac_ext <<_ACEOF
20609 /* confdefs.h. */
20610 _ACEOF
20611 cat confdefs.h >>conftest.$ac_ext
20612 cat >>conftest.$ac_ext <<_ACEOF
20613 /* end confdefs.h. */
20614
20615 /* Override any GCC internal prototype to avoid an error.
20616 Use char because int might match the return type of a GCC
20617 builtin and then its argument prototype would still apply. */
20618 #ifdef __cplusplus
20619 extern "C"
20620 #endif
20621 char des_cbc_encrypt ();
20622 int
20623 main ()
20624 {
20625 return des_cbc_encrypt ();
20626 ;
20627 return 0;
20628 }
20629 _ACEOF
20630 rm -f conftest.$ac_objext conftest$ac_exeext
20631 if { (ac_try="$ac_link"
20632 case "(($ac_try" in
20633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20634 *) ac_try_echo=$ac_try;;
20635 esac
20636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20637 (eval "$ac_link") 2>conftest.er1
20638 ac_status=$?
20639 grep -v '^ *+' conftest.er1 >conftest.err
20640 rm -f conftest.er1
20641 cat conftest.err >&5
20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20643 (exit $ac_status); } && {
20644 test -z "$ac_c_werror_flag" ||
20645 test ! -s conftest.err
20646 } && test -s conftest$ac_exeext &&
20647 $as_test_x conftest$ac_exeext; then
20648 ac_cv_lib_des425_des_cbc_encrypt=yes
20649 else
20650 echo "$as_me: failed program was:" >&5
20651 sed 's/^/| /' conftest.$ac_ext >&5
20652
20653 ac_cv_lib_des425_des_cbc_encrypt=no
20654 fi
20655
20656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20657 conftest$ac_exeext conftest.$ac_ext
20658 LIBS=$ac_check_lib_save_LIBS
20659 fi
20660 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20661 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20662 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20663 cat >>confdefs.h <<_ACEOF
20664 #define HAVE_LIBDES425 1
20665 _ACEOF
20666
20667 LIBS="-ldes425 $LIBS"
20668
20669 else
20670
20671 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20672 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20673 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20674 echo $ECHO_N "(cached) $ECHO_C" >&6
20675 else
20676 ac_check_lib_save_LIBS=$LIBS
20677 LIBS="-ldes $LIBS"
20678 cat >conftest.$ac_ext <<_ACEOF
20679 /* confdefs.h. */
20680 _ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h. */
20684
20685 /* Override any GCC internal prototype to avoid an error.
20686 Use char because int might match the return type of a GCC
20687 builtin and then its argument prototype would still apply. */
20688 #ifdef __cplusplus
20689 extern "C"
20690 #endif
20691 char des_cbc_encrypt ();
20692 int
20693 main ()
20694 {
20695 return des_cbc_encrypt ();
20696 ;
20697 return 0;
20698 }
20699 _ACEOF
20700 rm -f conftest.$ac_objext conftest$ac_exeext
20701 if { (ac_try="$ac_link"
20702 case "(($ac_try" in
20703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20704 *) ac_try_echo=$ac_try;;
20705 esac
20706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20707 (eval "$ac_link") 2>conftest.er1
20708 ac_status=$?
20709 grep -v '^ *+' conftest.er1 >conftest.err
20710 rm -f conftest.er1
20711 cat conftest.err >&5
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); } && {
20714 test -z "$ac_c_werror_flag" ||
20715 test ! -s conftest.err
20716 } && test -s conftest$ac_exeext &&
20717 $as_test_x conftest$ac_exeext; then
20718 ac_cv_lib_des_des_cbc_encrypt=yes
20719 else
20720 echo "$as_me: failed program was:" >&5
20721 sed 's/^/| /' conftest.$ac_ext >&5
20722
20723 ac_cv_lib_des_des_cbc_encrypt=no
20724 fi
20725
20726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20727 conftest$ac_exeext conftest.$ac_ext
20728 LIBS=$ac_check_lib_save_LIBS
20729 fi
20730 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20731 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20732 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20733 cat >>confdefs.h <<_ACEOF
20734 #define HAVE_LIBDES 1
20735 _ACEOF
20736
20737 LIBS="-ldes $LIBS"
20738
20739 fi
20740
20741 fi
20742
20743
20744 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20745 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20746 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20747 echo $ECHO_N "(cached) $ECHO_C" >&6
20748 else
20749 ac_check_lib_save_LIBS=$LIBS
20750 LIBS="-lkrb4 $LIBS"
20751 cat >conftest.$ac_ext <<_ACEOF
20752 /* confdefs.h. */
20753 _ACEOF
20754 cat confdefs.h >>conftest.$ac_ext
20755 cat >>conftest.$ac_ext <<_ACEOF
20756 /* end confdefs.h. */
20757
20758 /* Override any GCC internal prototype to avoid an error.
20759 Use char because int might match the return type of a GCC
20760 builtin and then its argument prototype would still apply. */
20761 #ifdef __cplusplus
20762 extern "C"
20763 #endif
20764 char krb_get_cred ();
20765 int
20766 main ()
20767 {
20768 return krb_get_cred ();
20769 ;
20770 return 0;
20771 }
20772 _ACEOF
20773 rm -f conftest.$ac_objext conftest$ac_exeext
20774 if { (ac_try="$ac_link"
20775 case "(($ac_try" in
20776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20778 esac
20779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780 (eval "$ac_link") 2>conftest.er1
20781 ac_status=$?
20782 grep -v '^ *+' conftest.er1 >conftest.err
20783 rm -f conftest.er1
20784 cat conftest.err >&5
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); } && {
20787 test -z "$ac_c_werror_flag" ||
20788 test ! -s conftest.err
20789 } && test -s conftest$ac_exeext &&
20790 $as_test_x conftest$ac_exeext; then
20791 ac_cv_lib_krb4_krb_get_cred=yes
20792 else
20793 echo "$as_me: failed program was:" >&5
20794 sed 's/^/| /' conftest.$ac_ext >&5
20795
20796 ac_cv_lib_krb4_krb_get_cred=no
20797 fi
20798
20799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20800 conftest$ac_exeext conftest.$ac_ext
20801 LIBS=$ac_check_lib_save_LIBS
20802 fi
20803 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20804 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20805 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20806 cat >>confdefs.h <<_ACEOF
20807 #define HAVE_LIBKRB4 1
20808 _ACEOF
20809
20810 LIBS="-lkrb4 $LIBS"
20811
20812 else
20813
20814 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20815 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20816 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20818 else
20819 ac_check_lib_save_LIBS=$LIBS
20820 LIBS="-lkrb $LIBS"
20821 cat >conftest.$ac_ext <<_ACEOF
20822 /* confdefs.h. */
20823 _ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20827
20828 /* Override any GCC internal prototype to avoid an error.
20829 Use char because int might match the return type of a GCC
20830 builtin and then its argument prototype would still apply. */
20831 #ifdef __cplusplus
20832 extern "C"
20833 #endif
20834 char krb_get_cred ();
20835 int
20836 main ()
20837 {
20838 return krb_get_cred ();
20839 ;
20840 return 0;
20841 }
20842 _ACEOF
20843 rm -f conftest.$ac_objext conftest$ac_exeext
20844 if { (ac_try="$ac_link"
20845 case "(($ac_try" in
20846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847 *) ac_try_echo=$ac_try;;
20848 esac
20849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850 (eval "$ac_link") 2>conftest.er1
20851 ac_status=$?
20852 grep -v '^ *+' conftest.er1 >conftest.err
20853 rm -f conftest.er1
20854 cat conftest.err >&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); } && {
20857 test -z "$ac_c_werror_flag" ||
20858 test ! -s conftest.err
20859 } && test -s conftest$ac_exeext &&
20860 $as_test_x conftest$ac_exeext; then
20861 ac_cv_lib_krb_krb_get_cred=yes
20862 else
20863 echo "$as_me: failed program was:" >&5
20864 sed 's/^/| /' conftest.$ac_ext >&5
20865
20866 ac_cv_lib_krb_krb_get_cred=no
20867 fi
20868
20869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20870 conftest$ac_exeext conftest.$ac_ext
20871 LIBS=$ac_check_lib_save_LIBS
20872 fi
20873 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20874 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20875 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20876 cat >>confdefs.h <<_ACEOF
20877 #define HAVE_LIBKRB 1
20878 _ACEOF
20879
20880 LIBS="-lkrb $LIBS"
20881
20882 fi
20883
20884 fi
20885
20886 fi
20887
20888 if test "${with_kerberos5+set}" = set; then
20889
20890 for ac_header in krb5.h
20891 do
20892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20897 echo $ECHO_N "(cached) $ECHO_C" >&6
20898 fi
20899 ac_res=`eval echo '${'$as_ac_Header'}'`
20900 { echo "$as_me:$LINENO: result: $ac_res" >&5
20901 echo "${ECHO_T}$ac_res" >&6; }
20902 else
20903 # Is the header compilable?
20904 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20906 cat >conftest.$ac_ext <<_ACEOF
20907 /* confdefs.h. */
20908 _ACEOF
20909 cat confdefs.h >>conftest.$ac_ext
20910 cat >>conftest.$ac_ext <<_ACEOF
20911 /* end confdefs.h. */
20912 $ac_includes_default
20913 #include <$ac_header>
20914 _ACEOF
20915 rm -f conftest.$ac_objext
20916 if { (ac_try="$ac_compile"
20917 case "(($ac_try" in
20918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919 *) ac_try_echo=$ac_try;;
20920 esac
20921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20922 (eval "$ac_compile") 2>conftest.er1
20923 ac_status=$?
20924 grep -v '^ *+' conftest.er1 >conftest.err
20925 rm -f conftest.er1
20926 cat conftest.err >&5
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); } && {
20929 test -z "$ac_c_werror_flag" ||
20930 test ! -s conftest.err
20931 } && test -s conftest.$ac_objext; then
20932 ac_header_compiler=yes
20933 else
20934 echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20936
20937 ac_header_compiler=no
20938 fi
20939
20940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20942 echo "${ECHO_T}$ac_header_compiler" >&6; }
20943
20944 # Is the header present?
20945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20947 cat >conftest.$ac_ext <<_ACEOF
20948 /* confdefs.h. */
20949 _ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h. */
20953 #include <$ac_header>
20954 _ACEOF
20955 if { (ac_try="$ac_cpp conftest.$ac_ext"
20956 case "(($ac_try" in
20957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20958 *) ac_try_echo=$ac_try;;
20959 esac
20960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20962 ac_status=$?
20963 grep -v '^ *+' conftest.er1 >conftest.err
20964 rm -f conftest.er1
20965 cat conftest.err >&5
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); } >/dev/null && {
20968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20969 test ! -s conftest.err
20970 }; then
20971 ac_header_preproc=yes
20972 else
20973 echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20975
20976 ac_header_preproc=no
20977 fi
20978
20979 rm -f conftest.err conftest.$ac_ext
20980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20981 echo "${ECHO_T}$ac_header_preproc" >&6; }
20982
20983 # So? What about this header?
20984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20985 yes:no: )
20986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20990 ac_header_preproc=yes
20991 ;;
20992 no:yes:* )
20993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21005
21006 ;;
21007 esac
21008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21011 echo $ECHO_N "(cached) $ECHO_C" >&6
21012 else
21013 eval "$as_ac_Header=\$ac_header_preproc"
21014 fi
21015 ac_res=`eval echo '${'$as_ac_Header'}'`
21016 { echo "$as_me:$LINENO: result: $ac_res" >&5
21017 echo "${ECHO_T}$ac_res" >&6; }
21018
21019 fi
21020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21021 cat >>confdefs.h <<_ACEOF
21022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21023 _ACEOF
21024
21025 fi
21026
21027 done
21028
21029 else
21030
21031 for ac_header in des.h
21032 do
21033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21038 echo $ECHO_N "(cached) $ECHO_C" >&6
21039 fi
21040 ac_res=`eval echo '${'$as_ac_Header'}'`
21041 { echo "$as_me:$LINENO: result: $ac_res" >&5
21042 echo "${ECHO_T}$ac_res" >&6; }
21043 else
21044 # Is the header compilable?
21045 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21047 cat >conftest.$ac_ext <<_ACEOF
21048 /* confdefs.h. */
21049 _ACEOF
21050 cat confdefs.h >>conftest.$ac_ext
21051 cat >>conftest.$ac_ext <<_ACEOF
21052 /* end confdefs.h. */
21053 $ac_includes_default
21054 #include <$ac_header>
21055 _ACEOF
21056 rm -f conftest.$ac_objext
21057 if { (ac_try="$ac_compile"
21058 case "(($ac_try" in
21059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21060 *) ac_try_echo=$ac_try;;
21061 esac
21062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21063 (eval "$ac_compile") 2>conftest.er1
21064 ac_status=$?
21065 grep -v '^ *+' conftest.er1 >conftest.err
21066 rm -f conftest.er1
21067 cat conftest.err >&5
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); } && {
21070 test -z "$ac_c_werror_flag" ||
21071 test ! -s conftest.err
21072 } && test -s conftest.$ac_objext; then
21073 ac_header_compiler=yes
21074 else
21075 echo "$as_me: failed program was:" >&5
21076 sed 's/^/| /' conftest.$ac_ext >&5
21077
21078 ac_header_compiler=no
21079 fi
21080
21081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21082 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21083 echo "${ECHO_T}$ac_header_compiler" >&6; }
21084
21085 # Is the header present?
21086 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21088 cat >conftest.$ac_ext <<_ACEOF
21089 /* confdefs.h. */
21090 _ACEOF
21091 cat confdefs.h >>conftest.$ac_ext
21092 cat >>conftest.$ac_ext <<_ACEOF
21093 /* end confdefs.h. */
21094 #include <$ac_header>
21095 _ACEOF
21096 if { (ac_try="$ac_cpp conftest.$ac_ext"
21097 case "(($ac_try" in
21098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21099 *) ac_try_echo=$ac_try;;
21100 esac
21101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21103 ac_status=$?
21104 grep -v '^ *+' conftest.er1 >conftest.err
21105 rm -f conftest.er1
21106 cat conftest.err >&5
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); } >/dev/null && {
21109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21110 test ! -s conftest.err
21111 }; then
21112 ac_header_preproc=yes
21113 else
21114 echo "$as_me: failed program was:" >&5
21115 sed 's/^/| /' conftest.$ac_ext >&5
21116
21117 ac_header_preproc=no
21118 fi
21119
21120 rm -f conftest.err conftest.$ac_ext
21121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21122 echo "${ECHO_T}$ac_header_preproc" >&6; }
21123
21124 # So? What about this header?
21125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21126 yes:no: )
21127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21131 ac_header_preproc=yes
21132 ;;
21133 no:yes:* )
21134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21146
21147 ;;
21148 esac
21149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21152 echo $ECHO_N "(cached) $ECHO_C" >&6
21153 else
21154 eval "$as_ac_Header=\$ac_header_preproc"
21155 fi
21156 ac_res=`eval echo '${'$as_ac_Header'}'`
21157 { echo "$as_me:$LINENO: result: $ac_res" >&5
21158 echo "${ECHO_T}$ac_res" >&6; }
21159
21160 fi
21161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21162 cat >>confdefs.h <<_ACEOF
21163 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21164 _ACEOF
21165
21166 else
21167
21168 for ac_header in kerberosIV/des.h
21169 do
21170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21175 echo $ECHO_N "(cached) $ECHO_C" >&6
21176 fi
21177 ac_res=`eval echo '${'$as_ac_Header'}'`
21178 { echo "$as_me:$LINENO: result: $ac_res" >&5
21179 echo "${ECHO_T}$ac_res" >&6; }
21180 else
21181 # Is the header compilable?
21182 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21184 cat >conftest.$ac_ext <<_ACEOF
21185 /* confdefs.h. */
21186 _ACEOF
21187 cat confdefs.h >>conftest.$ac_ext
21188 cat >>conftest.$ac_ext <<_ACEOF
21189 /* end confdefs.h. */
21190 $ac_includes_default
21191 #include <$ac_header>
21192 _ACEOF
21193 rm -f conftest.$ac_objext
21194 if { (ac_try="$ac_compile"
21195 case "(($ac_try" in
21196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21197 *) ac_try_echo=$ac_try;;
21198 esac
21199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21200 (eval "$ac_compile") 2>conftest.er1
21201 ac_status=$?
21202 grep -v '^ *+' conftest.er1 >conftest.err
21203 rm -f conftest.er1
21204 cat conftest.err >&5
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); } && {
21207 test -z "$ac_c_werror_flag" ||
21208 test ! -s conftest.err
21209 } && test -s conftest.$ac_objext; then
21210 ac_header_compiler=yes
21211 else
21212 echo "$as_me: failed program was:" >&5
21213 sed 's/^/| /' conftest.$ac_ext >&5
21214
21215 ac_header_compiler=no
21216 fi
21217
21218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21220 echo "${ECHO_T}$ac_header_compiler" >&6; }
21221
21222 # Is the header present?
21223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21225 cat >conftest.$ac_ext <<_ACEOF
21226 /* confdefs.h. */
21227 _ACEOF
21228 cat confdefs.h >>conftest.$ac_ext
21229 cat >>conftest.$ac_ext <<_ACEOF
21230 /* end confdefs.h. */
21231 #include <$ac_header>
21232 _ACEOF
21233 if { (ac_try="$ac_cpp conftest.$ac_ext"
21234 case "(($ac_try" in
21235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236 *) ac_try_echo=$ac_try;;
21237 esac
21238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21240 ac_status=$?
21241 grep -v '^ *+' conftest.er1 >conftest.err
21242 rm -f conftest.er1
21243 cat conftest.err >&5
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); } >/dev/null && {
21246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21247 test ! -s conftest.err
21248 }; then
21249 ac_header_preproc=yes
21250 else
21251 echo "$as_me: failed program was:" >&5
21252 sed 's/^/| /' conftest.$ac_ext >&5
21253
21254 ac_header_preproc=no
21255 fi
21256
21257 rm -f conftest.err conftest.$ac_ext
21258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21259 echo "${ECHO_T}$ac_header_preproc" >&6; }
21260
21261 # So? What about this header?
21262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21263 yes:no: )
21264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21268 ac_header_preproc=yes
21269 ;;
21270 no:yes:* )
21271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21274 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21278 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21283
21284 ;;
21285 esac
21286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21289 echo $ECHO_N "(cached) $ECHO_C" >&6
21290 else
21291 eval "$as_ac_Header=\$ac_header_preproc"
21292 fi
21293 ac_res=`eval echo '${'$as_ac_Header'}'`
21294 { echo "$as_me:$LINENO: result: $ac_res" >&5
21295 echo "${ECHO_T}$ac_res" >&6; }
21296
21297 fi
21298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21299 cat >>confdefs.h <<_ACEOF
21300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21301 _ACEOF
21302
21303 else
21304
21305 for ac_header in kerberos/des.h
21306 do
21307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21312 echo $ECHO_N "(cached) $ECHO_C" >&6
21313 fi
21314 ac_res=`eval echo '${'$as_ac_Header'}'`
21315 { echo "$as_me:$LINENO: result: $ac_res" >&5
21316 echo "${ECHO_T}$ac_res" >&6; }
21317 else
21318 # Is the header compilable?
21319 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21321 cat >conftest.$ac_ext <<_ACEOF
21322 /* confdefs.h. */
21323 _ACEOF
21324 cat confdefs.h >>conftest.$ac_ext
21325 cat >>conftest.$ac_ext <<_ACEOF
21326 /* end confdefs.h. */
21327 $ac_includes_default
21328 #include <$ac_header>
21329 _ACEOF
21330 rm -f conftest.$ac_objext
21331 if { (ac_try="$ac_compile"
21332 case "(($ac_try" in
21333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21334 *) ac_try_echo=$ac_try;;
21335 esac
21336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21337 (eval "$ac_compile") 2>conftest.er1
21338 ac_status=$?
21339 grep -v '^ *+' conftest.er1 >conftest.err
21340 rm -f conftest.er1
21341 cat conftest.err >&5
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); } && {
21344 test -z "$ac_c_werror_flag" ||
21345 test ! -s conftest.err
21346 } && test -s conftest.$ac_objext; then
21347 ac_header_compiler=yes
21348 else
21349 echo "$as_me: failed program was:" >&5
21350 sed 's/^/| /' conftest.$ac_ext >&5
21351
21352 ac_header_compiler=no
21353 fi
21354
21355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21356 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21357 echo "${ECHO_T}$ac_header_compiler" >&6; }
21358
21359 # Is the header present?
21360 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21362 cat >conftest.$ac_ext <<_ACEOF
21363 /* confdefs.h. */
21364 _ACEOF
21365 cat confdefs.h >>conftest.$ac_ext
21366 cat >>conftest.$ac_ext <<_ACEOF
21367 /* end confdefs.h. */
21368 #include <$ac_header>
21369 _ACEOF
21370 if { (ac_try="$ac_cpp conftest.$ac_ext"
21371 case "(($ac_try" in
21372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21373 *) ac_try_echo=$ac_try;;
21374 esac
21375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21377 ac_status=$?
21378 grep -v '^ *+' conftest.er1 >conftest.err
21379 rm -f conftest.er1
21380 cat conftest.err >&5
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); } >/dev/null && {
21383 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21384 test ! -s conftest.err
21385 }; then
21386 ac_header_preproc=yes
21387 else
21388 echo "$as_me: failed program was:" >&5
21389 sed 's/^/| /' conftest.$ac_ext >&5
21390
21391 ac_header_preproc=no
21392 fi
21393
21394 rm -f conftest.err conftest.$ac_ext
21395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21396 echo "${ECHO_T}$ac_header_preproc" >&6; }
21397
21398 # So? What about this header?
21399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21400 yes:no: )
21401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21405 ac_header_preproc=yes
21406 ;;
21407 no:yes:* )
21408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21420
21421 ;;
21422 esac
21423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21426 echo $ECHO_N "(cached) $ECHO_C" >&6
21427 else
21428 eval "$as_ac_Header=\$ac_header_preproc"
21429 fi
21430 ac_res=`eval echo '${'$as_ac_Header'}'`
21431 { echo "$as_me:$LINENO: result: $ac_res" >&5
21432 echo "${ECHO_T}$ac_res" >&6; }
21433
21434 fi
21435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21436 cat >>confdefs.h <<_ACEOF
21437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21438 _ACEOF
21439
21440 fi
21441
21442 done
21443
21444 fi
21445
21446 done
21447
21448 fi
21449
21450 done
21451
21452
21453 for ac_header in krb.h
21454 do
21455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21460 echo $ECHO_N "(cached) $ECHO_C" >&6
21461 fi
21462 ac_res=`eval echo '${'$as_ac_Header'}'`
21463 { echo "$as_me:$LINENO: result: $ac_res" >&5
21464 echo "${ECHO_T}$ac_res" >&6; }
21465 else
21466 # Is the header compilable?
21467 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21469 cat >conftest.$ac_ext <<_ACEOF
21470 /* confdefs.h. */
21471 _ACEOF
21472 cat confdefs.h >>conftest.$ac_ext
21473 cat >>conftest.$ac_ext <<_ACEOF
21474 /* end confdefs.h. */
21475 $ac_includes_default
21476 #include <$ac_header>
21477 _ACEOF
21478 rm -f conftest.$ac_objext
21479 if { (ac_try="$ac_compile"
21480 case "(($ac_try" in
21481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21482 *) ac_try_echo=$ac_try;;
21483 esac
21484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21485 (eval "$ac_compile") 2>conftest.er1
21486 ac_status=$?
21487 grep -v '^ *+' conftest.er1 >conftest.err
21488 rm -f conftest.er1
21489 cat conftest.err >&5
21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); } && {
21492 test -z "$ac_c_werror_flag" ||
21493 test ! -s conftest.err
21494 } && test -s conftest.$ac_objext; then
21495 ac_header_compiler=yes
21496 else
21497 echo "$as_me: failed program was:" >&5
21498 sed 's/^/| /' conftest.$ac_ext >&5
21499
21500 ac_header_compiler=no
21501 fi
21502
21503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21505 echo "${ECHO_T}$ac_header_compiler" >&6; }
21506
21507 # Is the header present?
21508 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21510 cat >conftest.$ac_ext <<_ACEOF
21511 /* confdefs.h. */
21512 _ACEOF
21513 cat confdefs.h >>conftest.$ac_ext
21514 cat >>conftest.$ac_ext <<_ACEOF
21515 /* end confdefs.h. */
21516 #include <$ac_header>
21517 _ACEOF
21518 if { (ac_try="$ac_cpp conftest.$ac_ext"
21519 case "(($ac_try" in
21520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521 *) ac_try_echo=$ac_try;;
21522 esac
21523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21525 ac_status=$?
21526 grep -v '^ *+' conftest.er1 >conftest.err
21527 rm -f conftest.er1
21528 cat conftest.err >&5
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); } >/dev/null && {
21531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21532 test ! -s conftest.err
21533 }; then
21534 ac_header_preproc=yes
21535 else
21536 echo "$as_me: failed program was:" >&5
21537 sed 's/^/| /' conftest.$ac_ext >&5
21538
21539 ac_header_preproc=no
21540 fi
21541
21542 rm -f conftest.err conftest.$ac_ext
21543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21544 echo "${ECHO_T}$ac_header_preproc" >&6; }
21545
21546 # So? What about this header?
21547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21548 yes:no: )
21549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21552 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21553 ac_header_preproc=yes
21554 ;;
21555 no:yes:* )
21556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21559 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21560 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21561 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21562 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21563 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21566 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21567 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21568
21569 ;;
21570 esac
21571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21574 echo $ECHO_N "(cached) $ECHO_C" >&6
21575 else
21576 eval "$as_ac_Header=\$ac_header_preproc"
21577 fi
21578 ac_res=`eval echo '${'$as_ac_Header'}'`
21579 { echo "$as_me:$LINENO: result: $ac_res" >&5
21580 echo "${ECHO_T}$ac_res" >&6; }
21581
21582 fi
21583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21584 cat >>confdefs.h <<_ACEOF
21585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21586 _ACEOF
21587
21588 else
21589
21590 for ac_header in kerberosIV/krb.h
21591 do
21592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21597 echo $ECHO_N "(cached) $ECHO_C" >&6
21598 fi
21599 ac_res=`eval echo '${'$as_ac_Header'}'`
21600 { echo "$as_me:$LINENO: result: $ac_res" >&5
21601 echo "${ECHO_T}$ac_res" >&6; }
21602 else
21603 # Is the header compilable?
21604 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21606 cat >conftest.$ac_ext <<_ACEOF
21607 /* confdefs.h. */
21608 _ACEOF
21609 cat confdefs.h >>conftest.$ac_ext
21610 cat >>conftest.$ac_ext <<_ACEOF
21611 /* end confdefs.h. */
21612 $ac_includes_default
21613 #include <$ac_header>
21614 _ACEOF
21615 rm -f conftest.$ac_objext
21616 if { (ac_try="$ac_compile"
21617 case "(($ac_try" in
21618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21619 *) ac_try_echo=$ac_try;;
21620 esac
21621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21622 (eval "$ac_compile") 2>conftest.er1
21623 ac_status=$?
21624 grep -v '^ *+' conftest.er1 >conftest.err
21625 rm -f conftest.er1
21626 cat conftest.err >&5
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); } && {
21629 test -z "$ac_c_werror_flag" ||
21630 test ! -s conftest.err
21631 } && test -s conftest.$ac_objext; then
21632 ac_header_compiler=yes
21633 else
21634 echo "$as_me: failed program was:" >&5
21635 sed 's/^/| /' conftest.$ac_ext >&5
21636
21637 ac_header_compiler=no
21638 fi
21639
21640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21641 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21642 echo "${ECHO_T}$ac_header_compiler" >&6; }
21643
21644 # Is the header present?
21645 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21647 cat >conftest.$ac_ext <<_ACEOF
21648 /* confdefs.h. */
21649 _ACEOF
21650 cat confdefs.h >>conftest.$ac_ext
21651 cat >>conftest.$ac_ext <<_ACEOF
21652 /* end confdefs.h. */
21653 #include <$ac_header>
21654 _ACEOF
21655 if { (ac_try="$ac_cpp conftest.$ac_ext"
21656 case "(($ac_try" in
21657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21658 *) ac_try_echo=$ac_try;;
21659 esac
21660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21662 ac_status=$?
21663 grep -v '^ *+' conftest.er1 >conftest.err
21664 rm -f conftest.er1
21665 cat conftest.err >&5
21666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667 (exit $ac_status); } >/dev/null && {
21668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21669 test ! -s conftest.err
21670 }; then
21671 ac_header_preproc=yes
21672 else
21673 echo "$as_me: failed program was:" >&5
21674 sed 's/^/| /' conftest.$ac_ext >&5
21675
21676 ac_header_preproc=no
21677 fi
21678
21679 rm -f conftest.err conftest.$ac_ext
21680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21681 echo "${ECHO_T}$ac_header_preproc" >&6; }
21682
21683 # So? What about this header?
21684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21685 yes:no: )
21686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21690 ac_header_preproc=yes
21691 ;;
21692 no:yes:* )
21693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21705
21706 ;;
21707 esac
21708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21711 echo $ECHO_N "(cached) $ECHO_C" >&6
21712 else
21713 eval "$as_ac_Header=\$ac_header_preproc"
21714 fi
21715 ac_res=`eval echo '${'$as_ac_Header'}'`
21716 { echo "$as_me:$LINENO: result: $ac_res" >&5
21717 echo "${ECHO_T}$ac_res" >&6; }
21718
21719 fi
21720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21721 cat >>confdefs.h <<_ACEOF
21722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21723 _ACEOF
21724
21725 else
21726
21727 for ac_header in kerberos/krb.h
21728 do
21729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21734 echo $ECHO_N "(cached) $ECHO_C" >&6
21735 fi
21736 ac_res=`eval echo '${'$as_ac_Header'}'`
21737 { echo "$as_me:$LINENO: result: $ac_res" >&5
21738 echo "${ECHO_T}$ac_res" >&6; }
21739 else
21740 # Is the header compilable?
21741 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21743 cat >conftest.$ac_ext <<_ACEOF
21744 /* confdefs.h. */
21745 _ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h. */
21749 $ac_includes_default
21750 #include <$ac_header>
21751 _ACEOF
21752 rm -f conftest.$ac_objext
21753 if { (ac_try="$ac_compile"
21754 case "(($ac_try" in
21755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21756 *) ac_try_echo=$ac_try;;
21757 esac
21758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21759 (eval "$ac_compile") 2>conftest.er1
21760 ac_status=$?
21761 grep -v '^ *+' conftest.er1 >conftest.err
21762 rm -f conftest.er1
21763 cat conftest.err >&5
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); } && {
21766 test -z "$ac_c_werror_flag" ||
21767 test ! -s conftest.err
21768 } && test -s conftest.$ac_objext; then
21769 ac_header_compiler=yes
21770 else
21771 echo "$as_me: failed program was:" >&5
21772 sed 's/^/| /' conftest.$ac_ext >&5
21773
21774 ac_header_compiler=no
21775 fi
21776
21777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21778 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21779 echo "${ECHO_T}$ac_header_compiler" >&6; }
21780
21781 # Is the header present?
21782 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21784 cat >conftest.$ac_ext <<_ACEOF
21785 /* confdefs.h. */
21786 _ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h. */
21790 #include <$ac_header>
21791 _ACEOF
21792 if { (ac_try="$ac_cpp conftest.$ac_ext"
21793 case "(($ac_try" in
21794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21795 *) ac_try_echo=$ac_try;;
21796 esac
21797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21799 ac_status=$?
21800 grep -v '^ *+' conftest.er1 >conftest.err
21801 rm -f conftest.er1
21802 cat conftest.err >&5
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); } >/dev/null && {
21805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21806 test ! -s conftest.err
21807 }; then
21808 ac_header_preproc=yes
21809 else
21810 echo "$as_me: failed program was:" >&5
21811 sed 's/^/| /' conftest.$ac_ext >&5
21812
21813 ac_header_preproc=no
21814 fi
21815
21816 rm -f conftest.err conftest.$ac_ext
21817 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21818 echo "${ECHO_T}$ac_header_preproc" >&6; }
21819
21820 # So? What about this header?
21821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21822 yes:no: )
21823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21826 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21827 ac_header_preproc=yes
21828 ;;
21829 no:yes:* )
21830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21833 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21834 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21835 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21836 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21837 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21840 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21841 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21842
21843 ;;
21844 esac
21845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21848 echo $ECHO_N "(cached) $ECHO_C" >&6
21849 else
21850 eval "$as_ac_Header=\$ac_header_preproc"
21851 fi
21852 ac_res=`eval echo '${'$as_ac_Header'}'`
21853 { echo "$as_me:$LINENO: result: $ac_res" >&5
21854 echo "${ECHO_T}$ac_res" >&6; }
21855
21856 fi
21857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21858 cat >>confdefs.h <<_ACEOF
21859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21860 _ACEOF
21861
21862 fi
21863
21864 done
21865
21866 fi
21867
21868 done
21869
21870 fi
21871
21872 done
21873
21874 fi
21875
21876 for ac_header in com_err.h
21877 do
21878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21883 echo $ECHO_N "(cached) $ECHO_C" >&6
21884 fi
21885 ac_res=`eval echo '${'$as_ac_Header'}'`
21886 { echo "$as_me:$LINENO: result: $ac_res" >&5
21887 echo "${ECHO_T}$ac_res" >&6; }
21888 else
21889 # Is the header compilable?
21890 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21892 cat >conftest.$ac_ext <<_ACEOF
21893 /* confdefs.h. */
21894 _ACEOF
21895 cat confdefs.h >>conftest.$ac_ext
21896 cat >>conftest.$ac_ext <<_ACEOF
21897 /* end confdefs.h. */
21898 $ac_includes_default
21899 #include <$ac_header>
21900 _ACEOF
21901 rm -f conftest.$ac_objext
21902 if { (ac_try="$ac_compile"
21903 case "(($ac_try" in
21904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21905 *) ac_try_echo=$ac_try;;
21906 esac
21907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21908 (eval "$ac_compile") 2>conftest.er1
21909 ac_status=$?
21910 grep -v '^ *+' conftest.er1 >conftest.err
21911 rm -f conftest.er1
21912 cat conftest.err >&5
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); } && {
21915 test -z "$ac_c_werror_flag" ||
21916 test ! -s conftest.err
21917 } && test -s conftest.$ac_objext; then
21918 ac_header_compiler=yes
21919 else
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21922
21923 ac_header_compiler=no
21924 fi
21925
21926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21927 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21928 echo "${ECHO_T}$ac_header_compiler" >&6; }
21929
21930 # Is the header present?
21931 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21932 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21933 cat >conftest.$ac_ext <<_ACEOF
21934 /* confdefs.h. */
21935 _ACEOF
21936 cat confdefs.h >>conftest.$ac_ext
21937 cat >>conftest.$ac_ext <<_ACEOF
21938 /* end confdefs.h. */
21939 #include <$ac_header>
21940 _ACEOF
21941 if { (ac_try="$ac_cpp conftest.$ac_ext"
21942 case "(($ac_try" in
21943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21944 *) ac_try_echo=$ac_try;;
21945 esac
21946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21948 ac_status=$?
21949 grep -v '^ *+' conftest.er1 >conftest.err
21950 rm -f conftest.er1
21951 cat conftest.err >&5
21952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953 (exit $ac_status); } >/dev/null && {
21954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21955 test ! -s conftest.err
21956 }; then
21957 ac_header_preproc=yes
21958 else
21959 echo "$as_me: failed program was:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21961
21962 ac_header_preproc=no
21963 fi
21964
21965 rm -f conftest.err conftest.$ac_ext
21966 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21967 echo "${ECHO_T}$ac_header_preproc" >&6; }
21968
21969 # So? What about this header?
21970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21971 yes:no: )
21972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21975 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21976 ac_header_preproc=yes
21977 ;;
21978 no:yes:* )
21979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21982 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21984 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21986 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21990 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21991
21992 ;;
21993 esac
21994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21997 echo $ECHO_N "(cached) $ECHO_C" >&6
21998 else
21999 eval "$as_ac_Header=\$ac_header_preproc"
22000 fi
22001 ac_res=`eval echo '${'$as_ac_Header'}'`
22002 { echo "$as_me:$LINENO: result: $ac_res" >&5
22003 echo "${ECHO_T}$ac_res" >&6; }
22004
22005 fi
22006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22007 cat >>confdefs.h <<_ACEOF
22008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22009 _ACEOF
22010
22011 fi
22012
22013 done
22014
22015 fi
22016
22017 # Solaris requires -lintl if you want strerror (which calls dgettext)
22018 # to return localized messages.
22019
22020 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22021 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22022 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22023 echo $ECHO_N "(cached) $ECHO_C" >&6
22024 else
22025 ac_check_lib_save_LIBS=$LIBS
22026 LIBS="-lintl $LIBS"
22027 cat >conftest.$ac_ext <<_ACEOF
22028 /* confdefs.h. */
22029 _ACEOF
22030 cat confdefs.h >>conftest.$ac_ext
22031 cat >>conftest.$ac_ext <<_ACEOF
22032 /* end confdefs.h. */
22033
22034 /* Override any GCC internal prototype to avoid an error.
22035 Use char because int might match the return type of a GCC
22036 builtin and then its argument prototype would still apply. */
22037 #ifdef __cplusplus
22038 extern "C"
22039 #endif
22040 char dgettext ();
22041 int
22042 main ()
22043 {
22044 return dgettext ();
22045 ;
22046 return 0;
22047 }
22048 _ACEOF
22049 rm -f conftest.$ac_objext conftest$ac_exeext
22050 if { (ac_try="$ac_link"
22051 case "(($ac_try" in
22052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22053 *) ac_try_echo=$ac_try;;
22054 esac
22055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22056 (eval "$ac_link") 2>conftest.er1
22057 ac_status=$?
22058 grep -v '^ *+' conftest.er1 >conftest.err
22059 rm -f conftest.er1
22060 cat conftest.err >&5
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); } && {
22063 test -z "$ac_c_werror_flag" ||
22064 test ! -s conftest.err
22065 } && test -s conftest$ac_exeext &&
22066 $as_test_x conftest$ac_exeext; then
22067 ac_cv_lib_intl_dgettext=yes
22068 else
22069 echo "$as_me: failed program was:" >&5
22070 sed 's/^/| /' conftest.$ac_ext >&5
22071
22072 ac_cv_lib_intl_dgettext=no
22073 fi
22074
22075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22076 conftest$ac_exeext conftest.$ac_ext
22077 LIBS=$ac_check_lib_save_LIBS
22078 fi
22079 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22080 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22081 if test $ac_cv_lib_intl_dgettext = yes; then
22082 cat >>confdefs.h <<_ACEOF
22083 #define HAVE_LIBINTL 1
22084 _ACEOF
22085
22086 LIBS="-lintl $LIBS"
22087
22088 fi
22089
22090
22091 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22092 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22093 if test "${emacs_cv_localtime_cache+set}" = set; then
22094 echo $ECHO_N "(cached) $ECHO_C" >&6
22095 else
22096 if test x$ac_cv_func_tzset = xyes; then
22097 if test "$cross_compiling" = yes; then
22098 # If we have tzset, assume the worst when cross-compiling.
22099 emacs_cv_localtime_cache=yes
22100 else
22101 cat >conftest.$ac_ext <<_ACEOF
22102 /* confdefs.h. */
22103 _ACEOF
22104 cat confdefs.h >>conftest.$ac_ext
22105 cat >>conftest.$ac_ext <<_ACEOF
22106 /* end confdefs.h. */
22107 #include <time.h>
22108 extern char **environ;
22109 unset_TZ ()
22110 {
22111 char **from, **to;
22112 for (to = from = environ; (*to = *from); from++)
22113 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22114 to++;
22115 }
22116 char TZ_GMT0[] = "TZ=GMT0";
22117 char TZ_PST8[] = "TZ=PST8";
22118 main()
22119 {
22120 time_t now = time ((time_t *) 0);
22121 int hour_GMT0, hour_unset;
22122 if (putenv (TZ_GMT0) != 0)
22123 exit (1);
22124 hour_GMT0 = localtime (&now)->tm_hour;
22125 unset_TZ ();
22126 hour_unset = localtime (&now)->tm_hour;
22127 if (putenv (TZ_PST8) != 0)
22128 exit (1);
22129 if (localtime (&now)->tm_hour == hour_GMT0)
22130 exit (1);
22131 unset_TZ ();
22132 if (localtime (&now)->tm_hour != hour_unset)
22133 exit (1);
22134 exit (0);
22135 }
22136 _ACEOF
22137 rm -f conftest$ac_exeext
22138 if { (ac_try="$ac_link"
22139 case "(($ac_try" in
22140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22141 *) ac_try_echo=$ac_try;;
22142 esac
22143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22144 (eval "$ac_link") 2>&5
22145 ac_status=$?
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22148 { (case "(($ac_try" in
22149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22150 *) ac_try_echo=$ac_try;;
22151 esac
22152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22153 (eval "$ac_try") 2>&5
22154 ac_status=$?
22155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156 (exit $ac_status); }; }; then
22157 emacs_cv_localtime_cache=no
22158 else
22159 echo "$as_me: program exited with status $ac_status" >&5
22160 echo "$as_me: failed program was:" >&5
22161 sed 's/^/| /' conftest.$ac_ext >&5
22162
22163 ( exit $ac_status )
22164 emacs_cv_localtime_cache=yes
22165 fi
22166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22167 fi
22168
22169
22170 else
22171 # If we lack tzset, report that localtime does not cache TZ,
22172 # since we can't invalidate the cache if we don't have tzset.
22173 emacs_cv_localtime_cache=no
22174 fi
22175 fi
22176 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22177 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22178 if test $emacs_cv_localtime_cache = yes; then
22179
22180 cat >>confdefs.h <<\_ACEOF
22181 #define LOCALTIME_CACHE 1
22182 _ACEOF
22183
22184 fi
22185
22186 if test "x$HAVE_TIMEVAL" = xyes; then
22187
22188 for ac_func in gettimeofday
22189 do
22190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22193 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22194 echo $ECHO_N "(cached) $ECHO_C" >&6
22195 else
22196 cat >conftest.$ac_ext <<_ACEOF
22197 /* confdefs.h. */
22198 _ACEOF
22199 cat confdefs.h >>conftest.$ac_ext
22200 cat >>conftest.$ac_ext <<_ACEOF
22201 /* end confdefs.h. */
22202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22204 #define $ac_func innocuous_$ac_func
22205
22206 /* System header to define __stub macros and hopefully few prototypes,
22207 which can conflict with char $ac_func (); below.
22208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22209 <limits.h> exists even on freestanding compilers. */
22210
22211 #ifdef __STDC__
22212 # include <limits.h>
22213 #else
22214 # include <assert.h>
22215 #endif
22216
22217 #undef $ac_func
22218
22219 /* Override any GCC internal prototype to avoid an error.
22220 Use char because int might match the return type of a GCC
22221 builtin and then its argument prototype would still apply. */
22222 #ifdef __cplusplus
22223 extern "C"
22224 #endif
22225 char $ac_func ();
22226 /* The GNU C library defines this for functions which it implements
22227 to always fail with ENOSYS. Some functions are actually named
22228 something starting with __ and the normal name is an alias. */
22229 #if defined __stub_$ac_func || defined __stub___$ac_func
22230 choke me
22231 #endif
22232
22233 int
22234 main ()
22235 {
22236 return $ac_func ();
22237 ;
22238 return 0;
22239 }
22240 _ACEOF
22241 rm -f conftest.$ac_objext conftest$ac_exeext
22242 if { (ac_try="$ac_link"
22243 case "(($ac_try" in
22244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22245 *) ac_try_echo=$ac_try;;
22246 esac
22247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22248 (eval "$ac_link") 2>conftest.er1
22249 ac_status=$?
22250 grep -v '^ *+' conftest.er1 >conftest.err
22251 rm -f conftest.er1
22252 cat conftest.err >&5
22253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); } && {
22255 test -z "$ac_c_werror_flag" ||
22256 test ! -s conftest.err
22257 } && test -s conftest$ac_exeext &&
22258 $as_test_x conftest$ac_exeext; then
22259 eval "$as_ac_var=yes"
22260 else
22261 echo "$as_me: failed program was:" >&5
22262 sed 's/^/| /' conftest.$ac_ext >&5
22263
22264 eval "$as_ac_var=no"
22265 fi
22266
22267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22268 conftest$ac_exeext conftest.$ac_ext
22269 fi
22270 ac_res=`eval echo '${'$as_ac_var'}'`
22271 { echo "$as_me:$LINENO: result: $ac_res" >&5
22272 echo "${ECHO_T}$ac_res" >&6; }
22273 if test `eval echo '${'$as_ac_var'}'` = yes; then
22274 cat >>confdefs.h <<_ACEOF
22275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22276 _ACEOF
22277
22278 fi
22279 done
22280
22281 if test $ac_cv_func_gettimeofday = yes; then
22282 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22283 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22284 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22285 echo $ECHO_N "(cached) $ECHO_C" >&6
22286 else
22287 cat >conftest.$ac_ext <<_ACEOF
22288 /* confdefs.h. */
22289 _ACEOF
22290 cat confdefs.h >>conftest.$ac_ext
22291 cat >>conftest.$ac_ext <<_ACEOF
22292 /* end confdefs.h. */
22293
22294 #ifdef TIME_WITH_SYS_TIME
22295 #include <sys/time.h>
22296 #include <time.h>
22297 #else
22298 #ifdef HAVE_SYS_TIME_H
22299 #include <sys/time.h>
22300 #else
22301 #include <time.h>
22302 #endif
22303 #endif
22304 int
22305 main ()
22306 {
22307 struct timeval time;
22308 gettimeofday (&time, 0);
22309 ;
22310 return 0;
22311 }
22312 _ACEOF
22313 rm -f conftest.$ac_objext
22314 if { (ac_try="$ac_compile"
22315 case "(($ac_try" in
22316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22317 *) ac_try_echo=$ac_try;;
22318 esac
22319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22320 (eval "$ac_compile") 2>conftest.er1
22321 ac_status=$?
22322 grep -v '^ *+' conftest.er1 >conftest.err
22323 rm -f conftest.er1
22324 cat conftest.err >&5
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); } && {
22327 test -z "$ac_c_werror_flag" ||
22328 test ! -s conftest.err
22329 } && test -s conftest.$ac_objext; then
22330 emacs_cv_gettimeofday_two_arguments=yes
22331 else
22332 echo "$as_me: failed program was:" >&5
22333 sed 's/^/| /' conftest.$ac_ext >&5
22334
22335 emacs_cv_gettimeofday_two_arguments=no
22336 fi
22337
22338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22339 fi
22340 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22341 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22342 if test $emacs_cv_gettimeofday_two_arguments = no; then
22343
22344 cat >>confdefs.h <<\_ACEOF
22345 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22346 _ACEOF
22347
22348 fi
22349 fi
22350 fi
22351
22352 ok_so_far=yes
22353 { echo "$as_me:$LINENO: checking for socket" >&5
22354 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22355 if test "${ac_cv_func_socket+set}" = set; then
22356 echo $ECHO_N "(cached) $ECHO_C" >&6
22357 else
22358 cat >conftest.$ac_ext <<_ACEOF
22359 /* confdefs.h. */
22360 _ACEOF
22361 cat confdefs.h >>conftest.$ac_ext
22362 cat >>conftest.$ac_ext <<_ACEOF
22363 /* end confdefs.h. */
22364 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22366 #define socket innocuous_socket
22367
22368 /* System header to define __stub macros and hopefully few prototypes,
22369 which can conflict with char socket (); below.
22370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22371 <limits.h> exists even on freestanding compilers. */
22372
22373 #ifdef __STDC__
22374 # include <limits.h>
22375 #else
22376 # include <assert.h>
22377 #endif
22378
22379 #undef socket
22380
22381 /* Override any GCC internal prototype to avoid an error.
22382 Use char because int might match the return type of a GCC
22383 builtin and then its argument prototype would still apply. */
22384 #ifdef __cplusplus
22385 extern "C"
22386 #endif
22387 char socket ();
22388 /* The GNU C library defines this for functions which it implements
22389 to always fail with ENOSYS. Some functions are actually named
22390 something starting with __ and the normal name is an alias. */
22391 #if defined __stub_socket || defined __stub___socket
22392 choke me
22393 #endif
22394
22395 int
22396 main ()
22397 {
22398 return socket ();
22399 ;
22400 return 0;
22401 }
22402 _ACEOF
22403 rm -f conftest.$ac_objext conftest$ac_exeext
22404 if { (ac_try="$ac_link"
22405 case "(($ac_try" in
22406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22407 *) ac_try_echo=$ac_try;;
22408 esac
22409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22410 (eval "$ac_link") 2>conftest.er1
22411 ac_status=$?
22412 grep -v '^ *+' conftest.er1 >conftest.err
22413 rm -f conftest.er1
22414 cat conftest.err >&5
22415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416 (exit $ac_status); } && {
22417 test -z "$ac_c_werror_flag" ||
22418 test ! -s conftest.err
22419 } && test -s conftest$ac_exeext &&
22420 $as_test_x conftest$ac_exeext; then
22421 ac_cv_func_socket=yes
22422 else
22423 echo "$as_me: failed program was:" >&5
22424 sed 's/^/| /' conftest.$ac_ext >&5
22425
22426 ac_cv_func_socket=no
22427 fi
22428
22429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22430 conftest$ac_exeext conftest.$ac_ext
22431 fi
22432 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22433 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22434 if test $ac_cv_func_socket = yes; then
22435 :
22436 else
22437 ok_so_far=no
22438 fi
22439
22440 if test $ok_so_far = yes; then
22441 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22442 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22443 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22444 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22445 echo $ECHO_N "(cached) $ECHO_C" >&6
22446 fi
22447 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22448 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22449 else
22450 # Is the header compilable?
22451 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22452 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22453 cat >conftest.$ac_ext <<_ACEOF
22454 /* confdefs.h. */
22455 _ACEOF
22456 cat confdefs.h >>conftest.$ac_ext
22457 cat >>conftest.$ac_ext <<_ACEOF
22458 /* end confdefs.h. */
22459 $ac_includes_default
22460 #include <netinet/in.h>
22461 _ACEOF
22462 rm -f conftest.$ac_objext
22463 if { (ac_try="$ac_compile"
22464 case "(($ac_try" in
22465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22466 *) ac_try_echo=$ac_try;;
22467 esac
22468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22469 (eval "$ac_compile") 2>conftest.er1
22470 ac_status=$?
22471 grep -v '^ *+' conftest.er1 >conftest.err
22472 rm -f conftest.er1
22473 cat conftest.err >&5
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); } && {
22476 test -z "$ac_c_werror_flag" ||
22477 test ! -s conftest.err
22478 } && test -s conftest.$ac_objext; then
22479 ac_header_compiler=yes
22480 else
22481 echo "$as_me: failed program was:" >&5
22482 sed 's/^/| /' conftest.$ac_ext >&5
22483
22484 ac_header_compiler=no
22485 fi
22486
22487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22488 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22489 echo "${ECHO_T}$ac_header_compiler" >&6; }
22490
22491 # Is the header present?
22492 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22493 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22494 cat >conftest.$ac_ext <<_ACEOF
22495 /* confdefs.h. */
22496 _ACEOF
22497 cat confdefs.h >>conftest.$ac_ext
22498 cat >>conftest.$ac_ext <<_ACEOF
22499 /* end confdefs.h. */
22500 #include <netinet/in.h>
22501 _ACEOF
22502 if { (ac_try="$ac_cpp conftest.$ac_ext"
22503 case "(($ac_try" in
22504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22505 *) ac_try_echo=$ac_try;;
22506 esac
22507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22509 ac_status=$?
22510 grep -v '^ *+' conftest.er1 >conftest.err
22511 rm -f conftest.er1
22512 cat conftest.err >&5
22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); } >/dev/null && {
22515 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22516 test ! -s conftest.err
22517 }; then
22518 ac_header_preproc=yes
22519 else
22520 echo "$as_me: failed program was:" >&5
22521 sed 's/^/| /' conftest.$ac_ext >&5
22522
22523 ac_header_preproc=no
22524 fi
22525
22526 rm -f conftest.err conftest.$ac_ext
22527 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22528 echo "${ECHO_T}$ac_header_preproc" >&6; }
22529
22530 # So? What about this header?
22531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22532 yes:no: )
22533 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22534 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22535 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22536 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22537 ac_header_preproc=yes
22538 ;;
22539 no:yes:* )
22540 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22541 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22542 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22543 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22544 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22545 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22546 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22547 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22548 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22549 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22550 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22551 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22552
22553 ;;
22554 esac
22555 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22556 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22557 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22558 echo $ECHO_N "(cached) $ECHO_C" >&6
22559 else
22560 ac_cv_header_netinet_in_h=$ac_header_preproc
22561 fi
22562 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22563 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22564
22565 fi
22566 if test $ac_cv_header_netinet_in_h = yes; then
22567 :
22568 else
22569 ok_so_far=no
22570 fi
22571
22572
22573 fi
22574 if test $ok_so_far = yes; then
22575 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22576 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22577 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22578 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22579 echo $ECHO_N "(cached) $ECHO_C" >&6
22580 fi
22581 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22582 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22583 else
22584 # Is the header compilable?
22585 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22586 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22587 cat >conftest.$ac_ext <<_ACEOF
22588 /* confdefs.h. */
22589 _ACEOF
22590 cat confdefs.h >>conftest.$ac_ext
22591 cat >>conftest.$ac_ext <<_ACEOF
22592 /* end confdefs.h. */
22593 $ac_includes_default
22594 #include <arpa/inet.h>
22595 _ACEOF
22596 rm -f conftest.$ac_objext
22597 if { (ac_try="$ac_compile"
22598 case "(($ac_try" in
22599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22600 *) ac_try_echo=$ac_try;;
22601 esac
22602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22603 (eval "$ac_compile") 2>conftest.er1
22604 ac_status=$?
22605 grep -v '^ *+' conftest.er1 >conftest.err
22606 rm -f conftest.er1
22607 cat conftest.err >&5
22608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609 (exit $ac_status); } && {
22610 test -z "$ac_c_werror_flag" ||
22611 test ! -s conftest.err
22612 } && test -s conftest.$ac_objext; then
22613 ac_header_compiler=yes
22614 else
22615 echo "$as_me: failed program was:" >&5
22616 sed 's/^/| /' conftest.$ac_ext >&5
22617
22618 ac_header_compiler=no
22619 fi
22620
22621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22623 echo "${ECHO_T}$ac_header_compiler" >&6; }
22624
22625 # Is the header present?
22626 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22627 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22628 cat >conftest.$ac_ext <<_ACEOF
22629 /* confdefs.h. */
22630 _ACEOF
22631 cat confdefs.h >>conftest.$ac_ext
22632 cat >>conftest.$ac_ext <<_ACEOF
22633 /* end confdefs.h. */
22634 #include <arpa/inet.h>
22635 _ACEOF
22636 if { (ac_try="$ac_cpp conftest.$ac_ext"
22637 case "(($ac_try" in
22638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22639 *) ac_try_echo=$ac_try;;
22640 esac
22641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22643 ac_status=$?
22644 grep -v '^ *+' conftest.er1 >conftest.err
22645 rm -f conftest.er1
22646 cat conftest.err >&5
22647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 (exit $ac_status); } >/dev/null && {
22649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22650 test ! -s conftest.err
22651 }; then
22652 ac_header_preproc=yes
22653 else
22654 echo "$as_me: failed program was:" >&5
22655 sed 's/^/| /' conftest.$ac_ext >&5
22656
22657 ac_header_preproc=no
22658 fi
22659
22660 rm -f conftest.err conftest.$ac_ext
22661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22662 echo "${ECHO_T}$ac_header_preproc" >&6; }
22663
22664 # So? What about this header?
22665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22666 yes:no: )
22667 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22668 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22669 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22670 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22671 ac_header_preproc=yes
22672 ;;
22673 no:yes:* )
22674 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22675 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22676 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22677 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22678 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22679 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22680 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22681 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22682 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22683 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22684 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22685 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22686
22687 ;;
22688 esac
22689 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22690 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22691 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22692 echo $ECHO_N "(cached) $ECHO_C" >&6
22693 else
22694 ac_cv_header_arpa_inet_h=$ac_header_preproc
22695 fi
22696 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22697 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22698
22699 fi
22700 if test $ac_cv_header_arpa_inet_h = yes; then
22701 :
22702 else
22703 ok_so_far=no
22704 fi
22705
22706
22707 fi
22708 if test $ok_so_far = yes; then
22709
22710 cat >>confdefs.h <<\_ACEOF
22711 #define HAVE_INET_SOCKETS 1
22712 _ACEOF
22713
22714 fi
22715
22716
22717 for ac_header in sys/ioctl.h
22718 do
22719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22721 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22724 echo $ECHO_N "(cached) $ECHO_C" >&6
22725 fi
22726 ac_res=`eval echo '${'$as_ac_Header'}'`
22727 { echo "$as_me:$LINENO: result: $ac_res" >&5
22728 echo "${ECHO_T}$ac_res" >&6; }
22729 else
22730 # Is the header compilable?
22731 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22733 cat >conftest.$ac_ext <<_ACEOF
22734 /* confdefs.h. */
22735 _ACEOF
22736 cat confdefs.h >>conftest.$ac_ext
22737 cat >>conftest.$ac_ext <<_ACEOF
22738 /* end confdefs.h. */
22739 $ac_includes_default
22740 #include <$ac_header>
22741 _ACEOF
22742 rm -f conftest.$ac_objext
22743 if { (ac_try="$ac_compile"
22744 case "(($ac_try" in
22745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22746 *) ac_try_echo=$ac_try;;
22747 esac
22748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22749 (eval "$ac_compile") 2>conftest.er1
22750 ac_status=$?
22751 grep -v '^ *+' conftest.er1 >conftest.err
22752 rm -f conftest.er1
22753 cat conftest.err >&5
22754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755 (exit $ac_status); } && {
22756 test -z "$ac_c_werror_flag" ||
22757 test ! -s conftest.err
22758 } && test -s conftest.$ac_objext; then
22759 ac_header_compiler=yes
22760 else
22761 echo "$as_me: failed program was:" >&5
22762 sed 's/^/| /' conftest.$ac_ext >&5
22763
22764 ac_header_compiler=no
22765 fi
22766
22767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22768 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22769 echo "${ECHO_T}$ac_header_compiler" >&6; }
22770
22771 # Is the header present?
22772 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22774 cat >conftest.$ac_ext <<_ACEOF
22775 /* confdefs.h. */
22776 _ACEOF
22777 cat confdefs.h >>conftest.$ac_ext
22778 cat >>conftest.$ac_ext <<_ACEOF
22779 /* end confdefs.h. */
22780 #include <$ac_header>
22781 _ACEOF
22782 if { (ac_try="$ac_cpp conftest.$ac_ext"
22783 case "(($ac_try" in
22784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22785 *) ac_try_echo=$ac_try;;
22786 esac
22787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22789 ac_status=$?
22790 grep -v '^ *+' conftest.er1 >conftest.err
22791 rm -f conftest.er1
22792 cat conftest.err >&5
22793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794 (exit $ac_status); } >/dev/null && {
22795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22796 test ! -s conftest.err
22797 }; then
22798 ac_header_preproc=yes
22799 else
22800 echo "$as_me: failed program was:" >&5
22801 sed 's/^/| /' conftest.$ac_ext >&5
22802
22803 ac_header_preproc=no
22804 fi
22805
22806 rm -f conftest.err conftest.$ac_ext
22807 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22808 echo "${ECHO_T}$ac_header_preproc" >&6; }
22809
22810 # So? What about this header?
22811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22812 yes:no: )
22813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22817 ac_header_preproc=yes
22818 ;;
22819 no:yes:* )
22820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22823 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22824 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22825 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22826 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22827 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22830 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22831 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22832
22833 ;;
22834 esac
22835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22838 echo $ECHO_N "(cached) $ECHO_C" >&6
22839 else
22840 eval "$as_ac_Header=\$ac_header_preproc"
22841 fi
22842 ac_res=`eval echo '${'$as_ac_Header'}'`
22843 { echo "$as_me:$LINENO: result: $ac_res" >&5
22844 echo "${ECHO_T}$ac_res" >&6; }
22845
22846 fi
22847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22848 cat >>confdefs.h <<_ACEOF
22849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22850 _ACEOF
22851
22852 fi
22853
22854 done
22855
22856
22857 if test -f /usr/lpp/X11/bin/smt.exp; then
22858
22859 cat >>confdefs.h <<\_ACEOF
22860 #define HAVE_AIX_SMT_EXP 1
22861 _ACEOF
22862
22863 fi
22864
22865 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22866 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22867 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22868 { echo "$as_me:$LINENO: result: yes" >&5
22869 echo "${ECHO_T}yes" >&6; }
22870
22871 cat >>confdefs.h <<\_ACEOF
22872 #define HAVE_DEV_PTMX 1
22873 _ACEOF
22874
22875 else
22876 { echo "$as_me:$LINENO: result: no" >&5
22877 echo "${ECHO_T}no" >&6; }
22878 fi
22879
22880 { echo "$as_me:$LINENO: checking for pid_t" >&5
22881 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22882 if test "${ac_cv_type_pid_t+set}" = set; then
22883 echo $ECHO_N "(cached) $ECHO_C" >&6
22884 else
22885 cat >conftest.$ac_ext <<_ACEOF
22886 /* confdefs.h. */
22887 _ACEOF
22888 cat confdefs.h >>conftest.$ac_ext
22889 cat >>conftest.$ac_ext <<_ACEOF
22890 /* end confdefs.h. */
22891 $ac_includes_default
22892 typedef pid_t ac__type_new_;
22893 int
22894 main ()
22895 {
22896 if ((ac__type_new_ *) 0)
22897 return 0;
22898 if (sizeof (ac__type_new_))
22899 return 0;
22900 ;
22901 return 0;
22902 }
22903 _ACEOF
22904 rm -f conftest.$ac_objext
22905 if { (ac_try="$ac_compile"
22906 case "(($ac_try" in
22907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22908 *) ac_try_echo=$ac_try;;
22909 esac
22910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22911 (eval "$ac_compile") 2>conftest.er1
22912 ac_status=$?
22913 grep -v '^ *+' conftest.er1 >conftest.err
22914 rm -f conftest.er1
22915 cat conftest.err >&5
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); } && {
22918 test -z "$ac_c_werror_flag" ||
22919 test ! -s conftest.err
22920 } && test -s conftest.$ac_objext; then
22921 ac_cv_type_pid_t=yes
22922 else
22923 echo "$as_me: failed program was:" >&5
22924 sed 's/^/| /' conftest.$ac_ext >&5
22925
22926 ac_cv_type_pid_t=no
22927 fi
22928
22929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22930 fi
22931 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22932 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22933 if test $ac_cv_type_pid_t = yes; then
22934 :
22935 else
22936
22937 cat >>confdefs.h <<_ACEOF
22938 #define pid_t int
22939 _ACEOF
22940
22941 fi
22942
22943
22944 for ac_header in vfork.h
22945 do
22946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22951 echo $ECHO_N "(cached) $ECHO_C" >&6
22952 fi
22953 ac_res=`eval echo '${'$as_ac_Header'}'`
22954 { echo "$as_me:$LINENO: result: $ac_res" >&5
22955 echo "${ECHO_T}$ac_res" >&6; }
22956 else
22957 # Is the header compilable?
22958 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22960 cat >conftest.$ac_ext <<_ACEOF
22961 /* confdefs.h. */
22962 _ACEOF
22963 cat confdefs.h >>conftest.$ac_ext
22964 cat >>conftest.$ac_ext <<_ACEOF
22965 /* end confdefs.h. */
22966 $ac_includes_default
22967 #include <$ac_header>
22968 _ACEOF
22969 rm -f conftest.$ac_objext
22970 if { (ac_try="$ac_compile"
22971 case "(($ac_try" in
22972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22973 *) ac_try_echo=$ac_try;;
22974 esac
22975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22976 (eval "$ac_compile") 2>conftest.er1
22977 ac_status=$?
22978 grep -v '^ *+' conftest.er1 >conftest.err
22979 rm -f conftest.er1
22980 cat conftest.err >&5
22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982 (exit $ac_status); } && {
22983 test -z "$ac_c_werror_flag" ||
22984 test ! -s conftest.err
22985 } && test -s conftest.$ac_objext; then
22986 ac_header_compiler=yes
22987 else
22988 echo "$as_me: failed program was:" >&5
22989 sed 's/^/| /' conftest.$ac_ext >&5
22990
22991 ac_header_compiler=no
22992 fi
22993
22994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22995 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22996 echo "${ECHO_T}$ac_header_compiler" >&6; }
22997
22998 # Is the header present?
22999 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23001 cat >conftest.$ac_ext <<_ACEOF
23002 /* confdefs.h. */
23003 _ACEOF
23004 cat confdefs.h >>conftest.$ac_ext
23005 cat >>conftest.$ac_ext <<_ACEOF
23006 /* end confdefs.h. */
23007 #include <$ac_header>
23008 _ACEOF
23009 if { (ac_try="$ac_cpp conftest.$ac_ext"
23010 case "(($ac_try" in
23011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23012 *) ac_try_echo=$ac_try;;
23013 esac
23014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23016 ac_status=$?
23017 grep -v '^ *+' conftest.er1 >conftest.err
23018 rm -f conftest.er1
23019 cat conftest.err >&5
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); } >/dev/null && {
23022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23023 test ! -s conftest.err
23024 }; then
23025 ac_header_preproc=yes
23026 else
23027 echo "$as_me: failed program was:" >&5
23028 sed 's/^/| /' conftest.$ac_ext >&5
23029
23030 ac_header_preproc=no
23031 fi
23032
23033 rm -f conftest.err conftest.$ac_ext
23034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23035 echo "${ECHO_T}$ac_header_preproc" >&6; }
23036
23037 # So? What about this header?
23038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23039 yes:no: )
23040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23044 ac_header_preproc=yes
23045 ;;
23046 no:yes:* )
23047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23059
23060 ;;
23061 esac
23062 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23065 echo $ECHO_N "(cached) $ECHO_C" >&6
23066 else
23067 eval "$as_ac_Header=\$ac_header_preproc"
23068 fi
23069 ac_res=`eval echo '${'$as_ac_Header'}'`
23070 { echo "$as_me:$LINENO: result: $ac_res" >&5
23071 echo "${ECHO_T}$ac_res" >&6; }
23072
23073 fi
23074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23075 cat >>confdefs.h <<_ACEOF
23076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23077 _ACEOF
23078
23079 fi
23080
23081 done
23082
23083
23084
23085 for ac_func in fork vfork
23086 do
23087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23088 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23090 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23091 echo $ECHO_N "(cached) $ECHO_C" >&6
23092 else
23093 cat >conftest.$ac_ext <<_ACEOF
23094 /* confdefs.h. */
23095 _ACEOF
23096 cat confdefs.h >>conftest.$ac_ext
23097 cat >>conftest.$ac_ext <<_ACEOF
23098 /* end confdefs.h. */
23099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23101 #define $ac_func innocuous_$ac_func
23102
23103 /* System header to define __stub macros and hopefully few prototypes,
23104 which can conflict with char $ac_func (); below.
23105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23106 <limits.h> exists even on freestanding compilers. */
23107
23108 #ifdef __STDC__
23109 # include <limits.h>
23110 #else
23111 # include <assert.h>
23112 #endif
23113
23114 #undef $ac_func
23115
23116 /* Override any GCC internal prototype to avoid an error.
23117 Use char because int might match the return type of a GCC
23118 builtin and then its argument prototype would still apply. */
23119 #ifdef __cplusplus
23120 extern "C"
23121 #endif
23122 char $ac_func ();
23123 /* The GNU C library defines this for functions which it implements
23124 to always fail with ENOSYS. Some functions are actually named
23125 something starting with __ and the normal name is an alias. */
23126 #if defined __stub_$ac_func || defined __stub___$ac_func
23127 choke me
23128 #endif
23129
23130 int
23131 main ()
23132 {
23133 return $ac_func ();
23134 ;
23135 return 0;
23136 }
23137 _ACEOF
23138 rm -f conftest.$ac_objext conftest$ac_exeext
23139 if { (ac_try="$ac_link"
23140 case "(($ac_try" in
23141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23142 *) ac_try_echo=$ac_try;;
23143 esac
23144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23145 (eval "$ac_link") 2>conftest.er1
23146 ac_status=$?
23147 grep -v '^ *+' conftest.er1 >conftest.err
23148 rm -f conftest.er1
23149 cat conftest.err >&5
23150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); } && {
23152 test -z "$ac_c_werror_flag" ||
23153 test ! -s conftest.err
23154 } && test -s conftest$ac_exeext &&
23155 $as_test_x conftest$ac_exeext; then
23156 eval "$as_ac_var=yes"
23157 else
23158 echo "$as_me: failed program was:" >&5
23159 sed 's/^/| /' conftest.$ac_ext >&5
23160
23161 eval "$as_ac_var=no"
23162 fi
23163
23164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23165 conftest$ac_exeext conftest.$ac_ext
23166 fi
23167 ac_res=`eval echo '${'$as_ac_var'}'`
23168 { echo "$as_me:$LINENO: result: $ac_res" >&5
23169 echo "${ECHO_T}$ac_res" >&6; }
23170 if test `eval echo '${'$as_ac_var'}'` = yes; then
23171 cat >>confdefs.h <<_ACEOF
23172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23173 _ACEOF
23174
23175 fi
23176 done
23177
23178 if test "x$ac_cv_func_fork" = xyes; then
23179 { echo "$as_me:$LINENO: checking for working fork" >&5
23180 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23181 if test "${ac_cv_func_fork_works+set}" = set; then
23182 echo $ECHO_N "(cached) $ECHO_C" >&6
23183 else
23184 if test "$cross_compiling" = yes; then
23185 ac_cv_func_fork_works=cross
23186 else
23187 cat >conftest.$ac_ext <<_ACEOF
23188 /* confdefs.h. */
23189 _ACEOF
23190 cat confdefs.h >>conftest.$ac_ext
23191 cat >>conftest.$ac_ext <<_ACEOF
23192 /* end confdefs.h. */
23193 $ac_includes_default
23194 int
23195 main ()
23196 {
23197
23198 /* By Ruediger Kuhlmann. */
23199 return fork () < 0;
23200
23201 ;
23202 return 0;
23203 }
23204 _ACEOF
23205 rm -f conftest$ac_exeext
23206 if { (ac_try="$ac_link"
23207 case "(($ac_try" in
23208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23209 *) ac_try_echo=$ac_try;;
23210 esac
23211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23212 (eval "$ac_link") 2>&5
23213 ac_status=$?
23214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23216 { (case "(($ac_try" in
23217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23218 *) ac_try_echo=$ac_try;;
23219 esac
23220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23221 (eval "$ac_try") 2>&5
23222 ac_status=$?
23223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); }; }; then
23225 ac_cv_func_fork_works=yes
23226 else
23227 echo "$as_me: program exited with status $ac_status" >&5
23228 echo "$as_me: failed program was:" >&5
23229 sed 's/^/| /' conftest.$ac_ext >&5
23230
23231 ( exit $ac_status )
23232 ac_cv_func_fork_works=no
23233 fi
23234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23235 fi
23236
23237
23238 fi
23239 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23240 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23241
23242 else
23243 ac_cv_func_fork_works=$ac_cv_func_fork
23244 fi
23245 if test "x$ac_cv_func_fork_works" = xcross; then
23246 case $host in
23247 *-*-amigaos* | *-*-msdosdjgpp*)
23248 # Override, as these systems have only a dummy fork() stub
23249 ac_cv_func_fork_works=no
23250 ;;
23251 *)
23252 ac_cv_func_fork_works=yes
23253 ;;
23254 esac
23255 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23256 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23257 fi
23258 ac_cv_func_vfork_works=$ac_cv_func_vfork
23259 if test "x$ac_cv_func_vfork" = xyes; then
23260 { echo "$as_me:$LINENO: checking for working vfork" >&5
23261 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23262 if test "${ac_cv_func_vfork_works+set}" = set; then
23263 echo $ECHO_N "(cached) $ECHO_C" >&6
23264 else
23265 if test "$cross_compiling" = yes; then
23266 ac_cv_func_vfork_works=cross
23267 else
23268 cat >conftest.$ac_ext <<_ACEOF
23269 /* confdefs.h. */
23270 _ACEOF
23271 cat confdefs.h >>conftest.$ac_ext
23272 cat >>conftest.$ac_ext <<_ACEOF
23273 /* end confdefs.h. */
23274 /* Thanks to Paul Eggert for this test. */
23275 $ac_includes_default
23276 #include <sys/wait.h>
23277 #ifdef HAVE_VFORK_H
23278 # include <vfork.h>
23279 #endif
23280 /* On some sparc systems, changes by the child to local and incoming
23281 argument registers are propagated back to the parent. The compiler
23282 is told about this with #include <vfork.h>, but some compilers
23283 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23284 static variable whose address is put into a register that is
23285 clobbered by the vfork. */
23286 static void
23287 #ifdef __cplusplus
23288 sparc_address_test (int arg)
23289 # else
23290 sparc_address_test (arg) int arg;
23291 #endif
23292 {
23293 static pid_t child;
23294 if (!child) {
23295 child = vfork ();
23296 if (child < 0) {
23297 perror ("vfork");
23298 _exit(2);
23299 }
23300 if (!child) {
23301 arg = getpid();
23302 write(-1, "", 0);
23303 _exit (arg);
23304 }
23305 }
23306 }
23307
23308 int
23309 main ()
23310 {
23311 pid_t parent = getpid ();
23312 pid_t child;
23313
23314 sparc_address_test (0);
23315
23316 child = vfork ();
23317
23318 if (child == 0) {
23319 /* Here is another test for sparc vfork register problems. This
23320 test uses lots of local variables, at least as many local
23321 variables as main has allocated so far including compiler
23322 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23323 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23324 reuse the register of parent for one of the local variables,
23325 since it will think that parent can't possibly be used any more
23326 in this routine. Assigning to the local variable will thus
23327 munge parent in the parent process. */
23328 pid_t
23329 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23330 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23331 /* Convince the compiler that p..p7 are live; otherwise, it might
23332 use the same hardware register for all 8 local variables. */
23333 if (p != p1 || p != p2 || p != p3 || p != p4
23334 || p != p5 || p != p6 || p != p7)
23335 _exit(1);
23336
23337 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23338 from child file descriptors. If the child closes a descriptor
23339 before it execs or exits, this munges the parent's descriptor
23340 as well. Test for this by closing stdout in the child. */
23341 _exit(close(fileno(stdout)) != 0);
23342 } else {
23343 int status;
23344 struct stat st;
23345
23346 while (wait(&status) != child)
23347 ;
23348 return (
23349 /* Was there some problem with vforking? */
23350 child < 0
23351
23352 /* Did the child fail? (This shouldn't happen.) */
23353 || status
23354
23355 /* Did the vfork/compiler bug occur? */
23356 || parent != getpid()
23357
23358 /* Did the file descriptor bug occur? */
23359 || fstat(fileno(stdout), &st) != 0
23360 );
23361 }
23362 }
23363 _ACEOF
23364 rm -f conftest$ac_exeext
23365 if { (ac_try="$ac_link"
23366 case "(($ac_try" in
23367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23368 *) ac_try_echo=$ac_try;;
23369 esac
23370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23371 (eval "$ac_link") 2>&5
23372 ac_status=$?
23373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23375 { (case "(($ac_try" in
23376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23377 *) ac_try_echo=$ac_try;;
23378 esac
23379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23380 (eval "$ac_try") 2>&5
23381 ac_status=$?
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); }; }; then
23384 ac_cv_func_vfork_works=yes
23385 else
23386 echo "$as_me: program exited with status $ac_status" >&5
23387 echo "$as_me: failed program was:" >&5
23388 sed 's/^/| /' conftest.$ac_ext >&5
23389
23390 ( exit $ac_status )
23391 ac_cv_func_vfork_works=no
23392 fi
23393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23394 fi
23395
23396
23397 fi
23398 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23399 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23400
23401 fi;
23402 if test "x$ac_cv_func_fork_works" = xcross; then
23403 ac_cv_func_vfork_works=$ac_cv_func_vfork
23404 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23405 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23406 fi
23407
23408 if test "x$ac_cv_func_vfork_works" = xyes; then
23409
23410 cat >>confdefs.h <<\_ACEOF
23411 #define HAVE_WORKING_VFORK 1
23412 _ACEOF
23413
23414 else
23415
23416 cat >>confdefs.h <<\_ACEOF
23417 #define vfork fork
23418 _ACEOF
23419
23420 fi
23421 if test "x$ac_cv_func_fork_works" = xyes; then
23422
23423 cat >>confdefs.h <<\_ACEOF
23424 #define HAVE_WORKING_FORK 1
23425 _ACEOF
23426
23427 fi
23428
23429
23430 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23431 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23432 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23433 echo $ECHO_N "(cached) $ECHO_C" >&6
23434 else
23435 cat >conftest.$ac_ext <<_ACEOF
23436 /* confdefs.h. */
23437 _ACEOF
23438 cat confdefs.h >>conftest.$ac_ext
23439 cat >>conftest.$ac_ext <<_ACEOF
23440 /* end confdefs.h. */
23441 #include <langinfo.h>
23442 int
23443 main ()
23444 {
23445 char* cs = nl_langinfo(CODESET);
23446 ;
23447 return 0;
23448 }
23449 _ACEOF
23450 rm -f conftest.$ac_objext conftest$ac_exeext
23451 if { (ac_try="$ac_link"
23452 case "(($ac_try" in
23453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23454 *) ac_try_echo=$ac_try;;
23455 esac
23456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23457 (eval "$ac_link") 2>conftest.er1
23458 ac_status=$?
23459 grep -v '^ *+' conftest.er1 >conftest.err
23460 rm -f conftest.er1
23461 cat conftest.err >&5
23462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463 (exit $ac_status); } && {
23464 test -z "$ac_c_werror_flag" ||
23465 test ! -s conftest.err
23466 } && test -s conftest$ac_exeext &&
23467 $as_test_x conftest$ac_exeext; then
23468 emacs_cv_langinfo_codeset=yes
23469 else
23470 echo "$as_me: failed program was:" >&5
23471 sed 's/^/| /' conftest.$ac_ext >&5
23472
23473 emacs_cv_langinfo_codeset=no
23474 fi
23475
23476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23477 conftest$ac_exeext conftest.$ac_ext
23478
23479 fi
23480 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23481 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23482 if test $emacs_cv_langinfo_codeset = yes; then
23483
23484 cat >>confdefs.h <<\_ACEOF
23485 #define HAVE_LANGINFO_CODESET 1
23486 _ACEOF
23487
23488 fi
23489
23490 { echo "$as_me:$LINENO: checking for size_t" >&5
23491 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23492 if test "${ac_cv_type_size_t+set}" = set; then
23493 echo $ECHO_N "(cached) $ECHO_C" >&6
23494 else
23495 cat >conftest.$ac_ext <<_ACEOF
23496 /* confdefs.h. */
23497 _ACEOF
23498 cat confdefs.h >>conftest.$ac_ext
23499 cat >>conftest.$ac_ext <<_ACEOF
23500 /* end confdefs.h. */
23501 $ac_includes_default
23502 typedef size_t ac__type_new_;
23503 int
23504 main ()
23505 {
23506 if ((ac__type_new_ *) 0)
23507 return 0;
23508 if (sizeof (ac__type_new_))
23509 return 0;
23510 ;
23511 return 0;
23512 }
23513 _ACEOF
23514 rm -f conftest.$ac_objext
23515 if { (ac_try="$ac_compile"
23516 case "(($ac_try" in
23517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23518 *) ac_try_echo=$ac_try;;
23519 esac
23520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23521 (eval "$ac_compile") 2>conftest.er1
23522 ac_status=$?
23523 grep -v '^ *+' conftest.er1 >conftest.err
23524 rm -f conftest.er1
23525 cat conftest.err >&5
23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); } && {
23528 test -z "$ac_c_werror_flag" ||
23529 test ! -s conftest.err
23530 } && test -s conftest.$ac_objext; then
23531 ac_cv_type_size_t=yes
23532 else
23533 echo "$as_me: failed program was:" >&5
23534 sed 's/^/| /' conftest.$ac_ext >&5
23535
23536 ac_cv_type_size_t=no
23537 fi
23538
23539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23540 fi
23541 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23542 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23543 if test $ac_cv_type_size_t = yes; then
23544
23545 cat >>confdefs.h <<_ACEOF
23546 #define HAVE_SIZE_T 1
23547 _ACEOF
23548
23549
23550 fi
23551
23552
23553 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23554 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23555 if test "${ac_cv_type_mbstate_t+set}" = set; then
23556 echo $ECHO_N "(cached) $ECHO_C" >&6
23557 else
23558 cat >conftest.$ac_ext <<_ACEOF
23559 /* confdefs.h. */
23560 _ACEOF
23561 cat confdefs.h >>conftest.$ac_ext
23562 cat >>conftest.$ac_ext <<_ACEOF
23563 /* end confdefs.h. */
23564 $ac_includes_default
23565 # include <wchar.h>
23566 int
23567 main ()
23568 {
23569 mbstate_t x; return sizeof x;
23570 ;
23571 return 0;
23572 }
23573 _ACEOF
23574 rm -f conftest.$ac_objext
23575 if { (ac_try="$ac_compile"
23576 case "(($ac_try" in
23577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23578 *) ac_try_echo=$ac_try;;
23579 esac
23580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23581 (eval "$ac_compile") 2>conftest.er1
23582 ac_status=$?
23583 grep -v '^ *+' conftest.er1 >conftest.err
23584 rm -f conftest.er1
23585 cat conftest.err >&5
23586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587 (exit $ac_status); } && {
23588 test -z "$ac_c_werror_flag" ||
23589 test ! -s conftest.err
23590 } && test -s conftest.$ac_objext; then
23591 ac_cv_type_mbstate_t=yes
23592 else
23593 echo "$as_me: failed program was:" >&5
23594 sed 's/^/| /' conftest.$ac_ext >&5
23595
23596 ac_cv_type_mbstate_t=no
23597 fi
23598
23599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23600 fi
23601 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23602 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23603 if test $ac_cv_type_mbstate_t = yes; then
23604
23605 cat >>confdefs.h <<\_ACEOF
23606 #define HAVE_MBSTATE_T 1
23607 _ACEOF
23608
23609 else
23610
23611 cat >>confdefs.h <<\_ACEOF
23612 #define mbstate_t int
23613 _ACEOF
23614
23615 fi
23616
23617 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23618 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23619 if test "${emacs_cv_c_restrict+set}" = set; then
23620 echo $ECHO_N "(cached) $ECHO_C" >&6
23621 else
23622 cat >conftest.$ac_ext <<_ACEOF
23623 /* confdefs.h. */
23624 _ACEOF
23625 cat confdefs.h >>conftest.$ac_ext
23626 cat >>conftest.$ac_ext <<_ACEOF
23627 /* end confdefs.h. */
23628 void fred (int *restrict x);
23629 int
23630 main ()
23631 {
23632
23633 ;
23634 return 0;
23635 }
23636 _ACEOF
23637 rm -f conftest.$ac_objext
23638 if { (ac_try="$ac_compile"
23639 case "(($ac_try" in
23640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23641 *) ac_try_echo=$ac_try;;
23642 esac
23643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23644 (eval "$ac_compile") 2>conftest.er1
23645 ac_status=$?
23646 grep -v '^ *+' conftest.er1 >conftest.err
23647 rm -f conftest.er1
23648 cat conftest.err >&5
23649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650 (exit $ac_status); } && {
23651 test -z "$ac_c_werror_flag" ||
23652 test ! -s conftest.err
23653 } && test -s conftest.$ac_objext; then
23654 emacs_cv_c_restrict=yes
23655 else
23656 echo "$as_me: failed program was:" >&5
23657 sed 's/^/| /' conftest.$ac_ext >&5
23658
23659 cat >conftest.$ac_ext <<_ACEOF
23660 /* confdefs.h. */
23661 _ACEOF
23662 cat confdefs.h >>conftest.$ac_ext
23663 cat >>conftest.$ac_ext <<_ACEOF
23664 /* end confdefs.h. */
23665 void fred (int *__restrict x);
23666 int
23667 main ()
23668 {
23669
23670 ;
23671 return 0;
23672 }
23673 _ACEOF
23674 rm -f conftest.$ac_objext
23675 if { (ac_try="$ac_compile"
23676 case "(($ac_try" in
23677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23678 *) ac_try_echo=$ac_try;;
23679 esac
23680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23681 (eval "$ac_compile") 2>conftest.er1
23682 ac_status=$?
23683 grep -v '^ *+' conftest.er1 >conftest.err
23684 rm -f conftest.er1
23685 cat conftest.err >&5
23686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687 (exit $ac_status); } && {
23688 test -z "$ac_c_werror_flag" ||
23689 test ! -s conftest.err
23690 } && test -s conftest.$ac_objext; then
23691 emacs_cv_c_restrict=__restrict
23692 else
23693 echo "$as_me: failed program was:" >&5
23694 sed 's/^/| /' conftest.$ac_ext >&5
23695
23696 emacs_cv_c_restrict=no
23697 fi
23698
23699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23700 fi
23701
23702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23703 fi
23704 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23705 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23706 case "$emacs_cv_c_restrict" in
23707 yes) emacs_restrict=restrict;;
23708 no) emacs_restrict="";;
23709 *) emacs_restrict="$emacs_cv_c_restrict";;
23710 esac
23711 if test "$emacs_restrict" != __restrict; then
23712
23713 cat >>confdefs.h <<_ACEOF
23714 #define __restrict $emacs_restrict
23715 _ACEOF
23716
23717 fi
23718
23719 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23720 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23721 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23722 echo $ECHO_N "(cached) $ECHO_C" >&6
23723 else
23724 cat >conftest.$ac_ext <<_ACEOF
23725 /* confdefs.h. */
23726 _ACEOF
23727 cat confdefs.h >>conftest.$ac_ext
23728 cat >>conftest.$ac_ext <<_ACEOF
23729 /* end confdefs.h. */
23730 void fred (int x[__restrict]);
23731 int
23732 main ()
23733 {
23734
23735 ;
23736 return 0;
23737 }
23738 _ACEOF
23739 rm -f conftest.$ac_objext
23740 if { (ac_try="$ac_compile"
23741 case "(($ac_try" in
23742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23743 *) ac_try_echo=$ac_try;;
23744 esac
23745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23746 (eval "$ac_compile") 2>conftest.er1
23747 ac_status=$?
23748 grep -v '^ *+' conftest.er1 >conftest.err
23749 rm -f conftest.er1
23750 cat conftest.err >&5
23751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752 (exit $ac_status); } && {
23753 test -z "$ac_c_werror_flag" ||
23754 test ! -s conftest.err
23755 } && test -s conftest.$ac_objext; then
23756 emacs_cv_c_restrict_arr=yes
23757 else
23758 echo "$as_me: failed program was:" >&5
23759 sed 's/^/| /' conftest.$ac_ext >&5
23760
23761 emacs_cv_c_restrict_arr=no
23762 fi
23763
23764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23765 fi
23766 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23767 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23768 if test "$emacs_cv_c_restrict_arr" = yes; then
23769
23770 cat >>confdefs.h <<\_ACEOF
23771 #define __restrict_arr __restrict
23772 _ACEOF
23773
23774 fi
23775
23776
23777
23778 # Set up the CFLAGS for real compilation, so we can substitute it.
23779 CFLAGS="$REAL_CFLAGS"
23780 CPPFLAGS="$REAL_CPPFLAGS"
23781
23782 #### Find out which version of Emacs this is.
23783 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23784 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23785 if test x"${version}" = x; then
23786 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23787 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23788 { (exit 1); exit 1; }; }
23789 fi
23790
23791 ### Specify what sort of things we'll be editing into Makefile and config.h.
23792 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23793
23794
23795
23796
23797
23798
23799
23800
23801
23802
23803
23804
23805
23806
23807
23808
23809
23810
23811
23812
23813
23814
23815
23816
23817
23818
23819
23820
23821
23822
23823
23824
23825
23826
23827
23828 cat >>confdefs.h <<_ACEOF
23829 #define EMACS_CONFIGURATION "${canonical}"
23830 _ACEOF
23831
23832
23833 cat >>confdefs.h <<_ACEOF
23834 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23835 _ACEOF
23836
23837
23838 cat >>confdefs.h <<_ACEOF
23839 #define config_machfile "${machfile}"
23840 _ACEOF
23841
23842
23843 cat >>confdefs.h <<_ACEOF
23844 #define config_opsysfile "${opsysfile}"
23845 _ACEOF
23846
23847
23848 cat >>confdefs.h <<_ACEOF
23849 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23850 _ACEOF
23851
23852
23853 cat >>confdefs.h <<_ACEOF
23854 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23855 _ACEOF
23856
23857
23858 cat >>confdefs.h <<_ACEOF
23859 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23860 _ACEOF
23861
23862
23863 cat >>confdefs.h <<_ACEOF
23864 #define UNEXEC_SRC ${UNEXEC_SRC}
23865 _ACEOF
23866
23867
23868 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23869
23870 cat >>confdefs.h <<\_ACEOF
23871 #define HAVE_X_WINDOWS 1
23872 _ACEOF
23873
23874 fi
23875 if test "${USE_X_TOOLKIT}" != "none" ; then
23876
23877 cat >>confdefs.h <<\_ACEOF
23878 #define USE_X_TOOLKIT 1
23879 _ACEOF
23880
23881 fi
23882 if test "${HAVE_X11}" = "yes" ; then
23883
23884 cat >>confdefs.h <<\_ACEOF
23885 #define HAVE_X11 1
23886 _ACEOF
23887
23888 fi
23889 if test "${HAVE_XFREE386}" = "yes" ; then
23890
23891 cat >>confdefs.h <<\_ACEOF
23892 #define HAVE_XFREE386 1
23893 _ACEOF
23894
23895 fi
23896 if test "${HAVE_MENUS}" = "yes" ; then
23897
23898 cat >>confdefs.h <<\_ACEOF
23899 #define HAVE_MENUS 1
23900 _ACEOF
23901
23902 fi
23903 if test "${GNU_MALLOC}" = "yes" ; then
23904
23905 cat >>confdefs.h <<\_ACEOF
23906 #define GNU_MALLOC 1
23907 _ACEOF
23908
23909 fi
23910 if test "${REL_ALLOC}" = "yes" ; then
23911
23912 cat >>confdefs.h <<\_ACEOF
23913 #define REL_ALLOC 1
23914 _ACEOF
23915
23916 fi
23917
23918
23919
23920
23921
23922
23923 #### Report on what we decided to do.
23924 #### Report GTK as a toolkit, even if it doesn't use Xt.
23925 #### It makes printing result more understandable as using GTK sets
23926 #### toolkit_scroll_bars to yes by default.
23927 if test "${HAVE_GTK}" = "yes"; then
23928 USE_X_TOOLKIT=GTK
23929 fi
23930
23931 echo "
23932 Configured for \`${canonical}'.
23933
23934 Where should the build process find the source code? ${srcdir}
23935 What operating system and machine description files should Emacs use?
23936 \`${opsysfile}' and \`${machfile}'
23937 What compiler should emacs be built with? ${CC} ${CFLAGS}
23938 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23939 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23940 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23941 What window system should Emacs use? ${window_system}
23942 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23943
23944 if test -n "${x_includes}"; then
23945 echo " Where do we find X Windows header files? ${x_includes}"
23946 else
23947 echo " Where do we find X Windows header files? Standard dirs"
23948 fi
23949 if test -n "${x_libraries}"; then
23950 echo " Where do we find X Windows libraries? ${x_libraries}"
23951 else
23952 echo " Where do we find X Windows libraries? Standard dirs"
23953 fi
23954
23955 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23956 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23957 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23958 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23959 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23960 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23961 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23962 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23963 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23964 echo " Does Emacs use a font backend? ${USE_FONT_BACKEND}"
23965
23966 if test "${USE_FONT_BACKEND}" = "yes"; then
23967 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23968 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23969 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23970 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23971 fi
23972 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23973 echo
23974
23975 if test $USE_XASSERTS = yes; then
23976 echo " Compiling with asserts turned on."
23977 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23978 echo
23979 fi
23980
23981 if test "$USE_X_TOOLKIT" = GTK; then
23982 case "$canonical" in
23983 *cygwin*)
23984 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23985 will probably get a crash on startup. If this happens, please use another
23986 toolkit for Emacs. See etc/PROBLEMS for more information."
23987 ;;
23988 esac
23989 fi
23990
23991
23992 if test "$HAVE_CARBON" = "yes"; then
23993 echo
23994 echo "Warning: The Mac Carbon port is currently unsupported and has
23995 known problems. It is not recommended for use by non-developers.
23996 Read the emacs-devel archives for more information."
23997 echo
23998 fi
23999
24000 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24001 echo "D-Bus integration has been tested for GNU/Linux only."
24002 echo
24003 fi
24004
24005
24006 # Remove any trailing slashes in these variables.
24007 test "${prefix}" != NONE &&
24008 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24009 test "${exec_prefix}" != NONE &&
24010 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24011
24012 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24013 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24014 ## from Makefile.c can correctly provide the arg `-traditional' to the
24015 ## C preprocessor.
24016
24017 cat >conftest.$ac_ext <<_ACEOF
24018 /* confdefs.h. */
24019 _ACEOF
24020 cat confdefs.h >>conftest.$ac_ext
24021 cat >>conftest.$ac_ext <<_ACEOF
24022 /* end confdefs.h. */
24023 yes..yes
24024 _ACEOF
24025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24026 $EGREP "yes..yes" >/dev/null 2>&1; then
24027 CPP_NEED_TRADITIONAL=no
24028 else
24029 CPP_NEED_TRADITIONAL=yes
24030 fi
24031 rm -f conftest*
24032
24033
24034 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
24035
24036 ac_config_commands="$ac_config_commands default"
24037
24038 cat >confcache <<\_ACEOF
24039 # This file is a shell script that caches the results of configure
24040 # tests run on this system so they can be shared between configure
24041 # scripts and configure runs, see configure's option --config-cache.
24042 # It is not useful on other systems. If it contains results you don't
24043 # want to keep, you may remove or edit it.
24044 #
24045 # config.status only pays attention to the cache file if you give it
24046 # the --recheck option to rerun configure.
24047 #
24048 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24049 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24050 # following values.
24051
24052 _ACEOF
24053
24054 # The following way of writing the cache mishandles newlines in values,
24055 # but we know of no workaround that is simple, portable, and efficient.
24056 # So, we kill variables containing newlines.
24057 # Ultrix sh set writes to stderr and can't be redirected directly,
24058 # and sets the high bit in the cache file unless we assign to the vars.
24059 (
24060 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24061 eval ac_val=\$$ac_var
24062 case $ac_val in #(
24063 *${as_nl}*)
24064 case $ac_var in #(
24065 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24066 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24067 esac
24068 case $ac_var in #(
24069 _ | IFS | as_nl) ;; #(
24070 *) $as_unset $ac_var ;;
24071 esac ;;
24072 esac
24073 done
24074
24075 (set) 2>&1 |
24076 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24077 *${as_nl}ac_space=\ *)
24078 # `set' does not quote correctly, so add quotes (double-quote
24079 # substitution turns \\\\ into \\, and sed turns \\ into \).
24080 sed -n \
24081 "s/'/'\\\\''/g;
24082 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24083 ;; #(
24084 *)
24085 # `set' quotes correctly as required by POSIX, so do not add quotes.
24086 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24087 ;;
24088 esac |
24089 sort
24090 ) |
24091 sed '
24092 /^ac_cv_env_/b end
24093 t clear
24094 :clear
24095 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24096 t end
24097 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24098 :end' >>confcache
24099 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24100 if test -w "$cache_file"; then
24101 test "x$cache_file" != "x/dev/null" &&
24102 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24103 echo "$as_me: updating cache $cache_file" >&6;}
24104 cat confcache >$cache_file
24105 else
24106 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24107 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24108 fi
24109 fi
24110 rm -f confcache
24111
24112 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24113 # Let make expand exec_prefix.
24114 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24115
24116 DEFS=-DHAVE_CONFIG_H
24117
24118 ac_libobjs=
24119 ac_ltlibobjs=
24120 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24121 # 1. Remove the extension, and $U if already installed.
24122 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24123 ac_i=`echo "$ac_i" | sed "$ac_script"`
24124 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24125 # will be set to the directory where LIBOBJS objects are built.
24126 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24127 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24128 done
24129 LIBOBJS=$ac_libobjs
24130
24131 LTLIBOBJS=$ac_ltlibobjs
24132
24133
24134
24135 : ${CONFIG_STATUS=./config.status}
24136 ac_clean_files_save=$ac_clean_files
24137 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24138 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24139 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24140 cat >$CONFIG_STATUS <<_ACEOF
24141 #! $SHELL
24142 # Generated by $as_me.
24143 # Run this file to recreate the current configuration.
24144 # Compiler output produced by configure, useful for debugging
24145 # configure, is in config.log if it exists.
24146
24147 debug=false
24148 ac_cs_recheck=false
24149 ac_cs_silent=false
24150 SHELL=\${CONFIG_SHELL-$SHELL}
24151 _ACEOF
24152
24153 cat >>$CONFIG_STATUS <<\_ACEOF
24154 ## --------------------- ##
24155 ## M4sh Initialization. ##
24156 ## --------------------- ##
24157
24158 # Be more Bourne compatible
24159 DUALCASE=1; export DUALCASE # for MKS sh
24160 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24161 emulate sh
24162 NULLCMD=:
24163 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24164 # is contrary to our usage. Disable this feature.
24165 alias -g '${1+"$@"}'='"$@"'
24166 setopt NO_GLOB_SUBST
24167 else
24168 case `(set -o) 2>/dev/null` in
24169 *posix*) set -o posix ;;
24170 esac
24171
24172 fi
24173
24174
24175
24176
24177 # PATH needs CR
24178 # Avoid depending upon Character Ranges.
24179 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24180 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24181 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24182 as_cr_digits='0123456789'
24183 as_cr_alnum=$as_cr_Letters$as_cr_digits
24184
24185 # The user is always right.
24186 if test "${PATH_SEPARATOR+set}" != set; then
24187 echo "#! /bin/sh" >conf$$.sh
24188 echo "exit 0" >>conf$$.sh
24189 chmod +x conf$$.sh
24190 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24191 PATH_SEPARATOR=';'
24192 else
24193 PATH_SEPARATOR=:
24194 fi
24195 rm -f conf$$.sh
24196 fi
24197
24198 # Support unset when possible.
24199 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24200 as_unset=unset
24201 else
24202 as_unset=false
24203 fi
24204
24205
24206 # IFS
24207 # We need space, tab and new line, in precisely that order. Quoting is
24208 # there to prevent editors from complaining about space-tab.
24209 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24210 # splitting by setting IFS to empty value.)
24211 as_nl='
24212 '
24213 IFS=" "" $as_nl"
24214
24215 # Find who we are. Look in the path if we contain no directory separator.
24216 case $0 in
24217 *[\\/]* ) as_myself=$0 ;;
24218 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24219 for as_dir in $PATH
24220 do
24221 IFS=$as_save_IFS
24222 test -z "$as_dir" && as_dir=.
24223 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24224 done
24225 IFS=$as_save_IFS
24226
24227 ;;
24228 esac
24229 # We did not find ourselves, most probably we were run as `sh COMMAND'
24230 # in which case we are not to be found in the path.
24231 if test "x$as_myself" = x; then
24232 as_myself=$0
24233 fi
24234 if test ! -f "$as_myself"; then
24235 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24236 { (exit 1); exit 1; }
24237 fi
24238
24239 # Work around bugs in pre-3.0 UWIN ksh.
24240 for as_var in ENV MAIL MAILPATH
24241 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24242 done
24243 PS1='$ '
24244 PS2='> '
24245 PS4='+ '
24246
24247 # NLS nuisances.
24248 for as_var in \
24249 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24250 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24251 LC_TELEPHONE LC_TIME
24252 do
24253 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24254 eval $as_var=C; export $as_var
24255 else
24256 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24257 fi
24258 done
24259
24260 # Required to use basename.
24261 if expr a : '\(a\)' >/dev/null 2>&1 &&
24262 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24263 as_expr=expr
24264 else
24265 as_expr=false
24266 fi
24267
24268 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24269 as_basename=basename
24270 else
24271 as_basename=false
24272 fi
24273
24274
24275 # Name of the executable.
24276 as_me=`$as_basename -- "$0" ||
24277 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24278 X"$0" : 'X\(//\)$' \| \
24279 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24280 echo X/"$0" |
24281 sed '/^.*\/\([^/][^/]*\)\/*$/{
24282 s//\1/
24283 q
24284 }
24285 /^X\/\(\/\/\)$/{
24286 s//\1/
24287 q
24288 }
24289 /^X\/\(\/\).*/{
24290 s//\1/
24291 q
24292 }
24293 s/.*/./; q'`
24294
24295 # CDPATH.
24296 $as_unset CDPATH
24297
24298
24299
24300 as_lineno_1=$LINENO
24301 as_lineno_2=$LINENO
24302 test "x$as_lineno_1" != "x$as_lineno_2" &&
24303 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24304
24305 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24306 # uniformly replaced by the line number. The first 'sed' inserts a
24307 # line-number line after each line using $LINENO; the second 'sed'
24308 # does the real work. The second script uses 'N' to pair each
24309 # line-number line with the line containing $LINENO, and appends
24310 # trailing '-' during substitution so that $LINENO is not a special
24311 # case at line end.
24312 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24313 # scripts with optimization help from Paolo Bonzini. Blame Lee
24314 # E. McMahon (1931-1989) for sed's syntax. :-)
24315 sed -n '
24316 p
24317 /[$]LINENO/=
24318 ' <$as_myself |
24319 sed '
24320 s/[$]LINENO.*/&-/
24321 t lineno
24322 b
24323 :lineno
24324 N
24325 :loop
24326 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24327 t loop
24328 s/-\n.*//
24329 ' >$as_me.lineno &&
24330 chmod +x "$as_me.lineno" ||
24331 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24332 { (exit 1); exit 1; }; }
24333
24334 # Don't try to exec as it changes $[0], causing all sort of problems
24335 # (the dirname of $[0] is not the place where we might find the
24336 # original and so on. Autoconf is especially sensitive to this).
24337 . "./$as_me.lineno"
24338 # Exit status is that of the last command.
24339 exit
24340 }
24341
24342
24343 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24344 as_dirname=dirname
24345 else
24346 as_dirname=false
24347 fi
24348
24349 ECHO_C= ECHO_N= ECHO_T=
24350 case `echo -n x` in
24351 -n*)
24352 case `echo 'x\c'` in
24353 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24354 *) ECHO_C='\c';;
24355 esac;;
24356 *)
24357 ECHO_N='-n';;
24358 esac
24359
24360 if expr a : '\(a\)' >/dev/null 2>&1 &&
24361 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24362 as_expr=expr
24363 else
24364 as_expr=false
24365 fi
24366
24367 rm -f conf$$ conf$$.exe conf$$.file
24368 if test -d conf$$.dir; then
24369 rm -f conf$$.dir/conf$$.file
24370 else
24371 rm -f conf$$.dir
24372 mkdir conf$$.dir
24373 fi
24374 echo >conf$$.file
24375 if ln -s conf$$.file conf$$ 2>/dev/null; then
24376 as_ln_s='ln -s'
24377 # ... but there are two gotchas:
24378 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24379 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24380 # In both cases, we have to default to `cp -p'.
24381 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24382 as_ln_s='cp -p'
24383 elif ln conf$$.file conf$$ 2>/dev/null; then
24384 as_ln_s=ln
24385 else
24386 as_ln_s='cp -p'
24387 fi
24388 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24389 rmdir conf$$.dir 2>/dev/null
24390
24391 if mkdir -p . 2>/dev/null; then
24392 as_mkdir_p=:
24393 else
24394 test -d ./-p && rmdir ./-p
24395 as_mkdir_p=false
24396 fi
24397
24398 if test -x / >/dev/null 2>&1; then
24399 as_test_x='test -x'
24400 else
24401 if ls -dL / >/dev/null 2>&1; then
24402 as_ls_L_option=L
24403 else
24404 as_ls_L_option=
24405 fi
24406 as_test_x='
24407 eval sh -c '\''
24408 if test -d "$1"; then
24409 test -d "$1/.";
24410 else
24411 case $1 in
24412 -*)set "./$1";;
24413 esac;
24414 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24415 ???[sx]*):;;*)false;;esac;fi
24416 '\'' sh
24417 '
24418 fi
24419 as_executable_p=$as_test_x
24420
24421 # Sed expression to map a string onto a valid CPP name.
24422 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24423
24424 # Sed expression to map a string onto a valid variable name.
24425 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24426
24427
24428 exec 6>&1
24429
24430 # Save the log message, to keep $[0] and so on meaningful, and to
24431 # report actual input values of CONFIG_FILES etc. instead of their
24432 # values after options handling.
24433 ac_log="
24434 This file was extended by emacs $as_me 23.0.50, which was
24435 generated by GNU Autoconf 2.61. Invocation command line was
24436
24437 CONFIG_FILES = $CONFIG_FILES
24438 CONFIG_HEADERS = $CONFIG_HEADERS
24439 CONFIG_LINKS = $CONFIG_LINKS
24440 CONFIG_COMMANDS = $CONFIG_COMMANDS
24441 $ $0 $@
24442
24443 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24444 "
24445
24446 _ACEOF
24447
24448 cat >>$CONFIG_STATUS <<_ACEOF
24449 # Files that config.status was made for.
24450 config_files="$ac_config_files"
24451 config_headers="$ac_config_headers"
24452 config_commands="$ac_config_commands"
24453
24454 _ACEOF
24455
24456 cat >>$CONFIG_STATUS <<\_ACEOF
24457 ac_cs_usage="\
24458 \`$as_me' instantiates files from templates according to the
24459 current configuration.
24460
24461 Usage: $0 [OPTIONS] [FILE]...
24462
24463 -h, --help print this help, then exit
24464 -V, --version print version number and configuration settings, then exit
24465 -q, --quiet do not print progress messages
24466 -d, --debug don't remove temporary files
24467 --recheck update $as_me by reconfiguring in the same conditions
24468 --file=FILE[:TEMPLATE]
24469 instantiate the configuration file FILE
24470 --header=FILE[:TEMPLATE]
24471 instantiate the configuration header FILE
24472
24473 Configuration files:
24474 $config_files
24475
24476 Configuration headers:
24477 $config_headers
24478
24479 Configuration commands:
24480 $config_commands
24481
24482 Report bugs to <bug-autoconf@gnu.org>."
24483
24484 _ACEOF
24485 cat >>$CONFIG_STATUS <<_ACEOF
24486 ac_cs_version="\\
24487 emacs config.status 23.0.50
24488 configured by $0, generated by GNU Autoconf 2.61,
24489 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24490
24491 Copyright (C) 2006 Free Software Foundation, Inc.
24492 This config.status script is free software; the Free Software Foundation
24493 gives unlimited permission to copy, distribute and modify it."
24494
24495 ac_pwd='$ac_pwd'
24496 srcdir='$srcdir'
24497 INSTALL='$INSTALL'
24498 _ACEOF
24499
24500 cat >>$CONFIG_STATUS <<\_ACEOF
24501 # If no file are specified by the user, then we need to provide default
24502 # value. By we need to know if files were specified by the user.
24503 ac_need_defaults=:
24504 while test $# != 0
24505 do
24506 case $1 in
24507 --*=*)
24508 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24509 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24510 ac_shift=:
24511 ;;
24512 *)
24513 ac_option=$1
24514 ac_optarg=$2
24515 ac_shift=shift
24516 ;;
24517 esac
24518
24519 case $ac_option in
24520 # Handling of the options.
24521 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24522 ac_cs_recheck=: ;;
24523 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24524 echo "$ac_cs_version"; exit ;;
24525 --debug | --debu | --deb | --de | --d | -d )
24526 debug=: ;;
24527 --file | --fil | --fi | --f )
24528 $ac_shift
24529 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24530 ac_need_defaults=false;;
24531 --header | --heade | --head | --hea )
24532 $ac_shift
24533 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24534 ac_need_defaults=false;;
24535 --he | --h)
24536 # Conflict between --help and --header
24537 { echo "$as_me: error: ambiguous option: $1
24538 Try \`$0 --help' for more information." >&2
24539 { (exit 1); exit 1; }; };;
24540 --help | --hel | -h )
24541 echo "$ac_cs_usage"; exit ;;
24542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24543 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24544 ac_cs_silent=: ;;
24545
24546 # This is an error.
24547 -*) { echo "$as_me: error: unrecognized option: $1
24548 Try \`$0 --help' for more information." >&2
24549 { (exit 1); exit 1; }; } ;;
24550
24551 *) ac_config_targets="$ac_config_targets $1"
24552 ac_need_defaults=false ;;
24553
24554 esac
24555 shift
24556 done
24557
24558 ac_configure_extra_args=
24559
24560 if $ac_cs_silent; then
24561 exec 6>/dev/null
24562 ac_configure_extra_args="$ac_configure_extra_args --silent"
24563 fi
24564
24565 _ACEOF
24566 cat >>$CONFIG_STATUS <<_ACEOF
24567 if \$ac_cs_recheck; then
24568 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24569 CONFIG_SHELL=$SHELL
24570 export CONFIG_SHELL
24571 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24572 fi
24573
24574 _ACEOF
24575 cat >>$CONFIG_STATUS <<\_ACEOF
24576 exec 5>>config.log
24577 {
24578 echo
24579 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24580 ## Running $as_me. ##
24581 _ASBOX
24582 echo "$ac_log"
24583 } >&5
24584
24585 _ACEOF
24586 cat >>$CONFIG_STATUS <<_ACEOF
24587 #
24588 # INIT-COMMANDS
24589 #
24590 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24591
24592 _ACEOF
24593
24594 cat >>$CONFIG_STATUS <<\_ACEOF
24595
24596 # Handling of arguments.
24597 for ac_config_target in $ac_config_targets
24598 do
24599 case $ac_config_target in
24600 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24601 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24602 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24603 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24604 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24605 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24606 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24607 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24608 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24609 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24610 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24611 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24612 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24613
24614 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24615 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24616 { (exit 1); exit 1; }; };;
24617 esac
24618 done
24619
24620
24621 # If the user did not use the arguments to specify the items to instantiate,
24622 # then the envvar interface is used. Set only those that are not.
24623 # We use the long form for the default assignment because of an extremely
24624 # bizarre bug on SunOS 4.1.3.
24625 if $ac_need_defaults; then
24626 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24627 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24628 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24629 fi
24630
24631 # Have a temporary directory for convenience. Make it in the build tree
24632 # simply because there is no reason against having it here, and in addition,
24633 # creating and moving files from /tmp can sometimes cause problems.
24634 # Hook for its removal unless debugging.
24635 # Note that there is a small window in which the directory will not be cleaned:
24636 # after its creation but before its name has been assigned to `$tmp'.
24637 $debug ||
24638 {
24639 tmp=
24640 trap 'exit_status=$?
24641 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24642 ' 0
24643 trap '{ (exit 1); exit 1; }' 1 2 13 15
24644 }
24645 # Create a (secure) tmp directory for tmp files.
24646
24647 {
24648 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24649 test -n "$tmp" && test -d "$tmp"
24650 } ||
24651 {
24652 tmp=./conf$$-$RANDOM
24653 (umask 077 && mkdir "$tmp")
24654 } ||
24655 {
24656 echo "$me: cannot create a temporary directory in ." >&2
24657 { (exit 1); exit 1; }
24658 }
24659
24660 #
24661 # Set up the sed scripts for CONFIG_FILES section.
24662 #
24663
24664 # No need to generate the scripts if there are no CONFIG_FILES.
24665 # This happens for instance when ./config.status config.h
24666 if test -n "$CONFIG_FILES"; then
24667
24668 _ACEOF
24669
24670
24671
24672 ac_delim='%!_!# '
24673 for ac_last_try in false false false false false :; do
24674 cat >conf$$subs.sed <<_ACEOF
24675 SHELL!$SHELL$ac_delim
24676 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24677 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24678 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24679 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24680 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24681 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24682 exec_prefix!$exec_prefix$ac_delim
24683 prefix!$prefix$ac_delim
24684 program_transform_name!$program_transform_name$ac_delim
24685 bindir!$bindir$ac_delim
24686 sbindir!$sbindir$ac_delim
24687 libexecdir!$libexecdir$ac_delim
24688 datarootdir!$datarootdir$ac_delim
24689 datadir!$datadir$ac_delim
24690 sysconfdir!$sysconfdir$ac_delim
24691 sharedstatedir!$sharedstatedir$ac_delim
24692 localstatedir!$localstatedir$ac_delim
24693 includedir!$includedir$ac_delim
24694 oldincludedir!$oldincludedir$ac_delim
24695 docdir!$docdir$ac_delim
24696 infodir!$infodir$ac_delim
24697 htmldir!$htmldir$ac_delim
24698 dvidir!$dvidir$ac_delim
24699 pdfdir!$pdfdir$ac_delim
24700 psdir!$psdir$ac_delim
24701 libdir!$libdir$ac_delim
24702 localedir!$localedir$ac_delim
24703 mandir!$mandir$ac_delim
24704 DEFS!$DEFS$ac_delim
24705 ECHO_C!$ECHO_C$ac_delim
24706 ECHO_N!$ECHO_N$ac_delim
24707 ECHO_T!$ECHO_T$ac_delim
24708 LIBS!$LIBS$ac_delim
24709 build_alias!$build_alias$ac_delim
24710 host_alias!$host_alias$ac_delim
24711 target_alias!$target_alias$ac_delim
24712 MAINT!$MAINT$ac_delim
24713 build!$build$ac_delim
24714 build_cpu!$build_cpu$ac_delim
24715 build_vendor!$build_vendor$ac_delim
24716 build_os!$build_os$ac_delim
24717 host!$host$ac_delim
24718 host_cpu!$host_cpu$ac_delim
24719 host_vendor!$host_vendor$ac_delim
24720 host_os!$host_os$ac_delim
24721 CC!$CC$ac_delim
24722 CFLAGS!$CFLAGS$ac_delim
24723 LDFLAGS!$LDFLAGS$ac_delim
24724 CPPFLAGS!$CPPFLAGS$ac_delim
24725 ac_ct_CC!$ac_ct_CC$ac_delim
24726 EXEEXT!$EXEEXT$ac_delim
24727 OBJEXT!$OBJEXT$ac_delim
24728 CPP!$CPP$ac_delim
24729 GREP!$GREP$ac_delim
24730 EGREP!$EGREP$ac_delim
24731 LN_S!$LN_S$ac_delim
24732 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24733 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24734 INSTALL_DATA!$INSTALL_DATA$ac_delim
24735 RANLIB!$RANLIB$ac_delim
24736 INSTALL_INFO!$INSTALL_INFO$ac_delim
24737 GZIP_PROG!$GZIP_PROG$ac_delim
24738 MAKEINFO!$MAKEINFO$ac_delim
24739 LIBSOUND!$LIBSOUND$ac_delim
24740 PKG_CONFIG!$PKG_CONFIG$ac_delim
24741 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24742 ALSA_LIBS!$ALSA_LIBS$ac_delim
24743 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24744 SET_MAKE!$SET_MAKE$ac_delim
24745 XMKMF!$XMKMF$ac_delim
24746 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24747 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24748 RSVG_LIBS!$RSVG_LIBS$ac_delim
24749 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24750 GTK_LIBS!$GTK_LIBS$ac_delim
24751 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24752 DBUS_LIBS!$DBUS_LIBS$ac_delim
24753 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24754 XFT_LIBS!$XFT_LIBS$ac_delim
24755 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24756 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24757 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24758 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24759 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24760 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24761 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24762 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24763 ALLOCA!$ALLOCA$ac_delim
24764 liblockfile!$liblockfile$ac_delim
24765 LIBOBJS!$LIBOBJS$ac_delim
24766 NEED_SETGID!$NEED_SETGID$ac_delim
24767 KMEM_GROUP!$KMEM_GROUP$ac_delim
24768 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24769 GETOPT_H!$GETOPT_H$ac_delim
24770 GETOPTOBJS!$GETOPTOBJS$ac_delim
24771 version!$version$ac_delim
24772 _ACEOF
24773
24774 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24775 break
24776 elif $ac_last_try; then
24777 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24778 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24779 { (exit 1); exit 1; }; }
24780 else
24781 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24782 fi
24783 done
24784
24785 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24786 if test -n "$ac_eof"; then
24787 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24788 ac_eof=`expr $ac_eof + 1`
24789 fi
24790
24791 cat >>$CONFIG_STATUS <<_ACEOF
24792 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24793 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24794 _ACEOF
24795 sed '
24796 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24797 s/^/s,@/; s/!/@,|#_!!_#|/
24798 :n
24799 t n
24800 s/'"$ac_delim"'$/,g/; t
24801 s/$/\\/; p
24802 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24803 ' >>$CONFIG_STATUS <conf$$subs.sed
24804 rm -f conf$$subs.sed
24805 cat >>$CONFIG_STATUS <<_ACEOF
24806 CEOF$ac_eof
24807 _ACEOF
24808
24809
24810 ac_delim='%!_!# '
24811 for ac_last_try in false false false false false :; do
24812 cat >conf$$subs.sed <<_ACEOF
24813 configuration!$configuration$ac_delim
24814 canonical!$canonical$ac_delim
24815 srcdir!$srcdir$ac_delim
24816 lispdir!$lispdir$ac_delim
24817 locallisppath!$locallisppath$ac_delim
24818 lisppath!$lisppath$ac_delim
24819 x_default_search_path!$x_default_search_path$ac_delim
24820 etcdir!$etcdir$ac_delim
24821 archlibdir!$archlibdir$ac_delim
24822 bitmapdir!$bitmapdir$ac_delim
24823 gamedir!$gamedir$ac_delim
24824 gameuser!$gameuser$ac_delim
24825 c_switch_system!$c_switch_system$ac_delim
24826 c_switch_machine!$c_switch_machine$ac_delim
24827 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24828 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24829 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24830 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24831 machfile!$machfile$ac_delim
24832 opsysfile!$opsysfile$ac_delim
24833 carbon_appdir!$carbon_appdir$ac_delim
24834 LTLIBOBJS!$LTLIBOBJS$ac_delim
24835 _ACEOF
24836
24837 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
24838 break
24839 elif $ac_last_try; then
24840 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24841 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24842 { (exit 1); exit 1; }; }
24843 else
24844 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24845 fi
24846 done
24847
24848 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24849 if test -n "$ac_eof"; then
24850 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24851 ac_eof=`expr $ac_eof + 1`
24852 fi
24853
24854 cat >>$CONFIG_STATUS <<_ACEOF
24855 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24856 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24857 _ACEOF
24858 sed '
24859 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24860 s/^/s,@/; s/!/@,|#_!!_#|/
24861 :n
24862 t n
24863 s/'"$ac_delim"'$/,g/; t
24864 s/$/\\/; p
24865 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24866 ' >>$CONFIG_STATUS <conf$$subs.sed
24867 rm -f conf$$subs.sed
24868 cat >>$CONFIG_STATUS <<_ACEOF
24869 :end
24870 s/|#_!!_#|//g
24871 CEOF$ac_eof
24872 _ACEOF
24873
24874
24875 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24876 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24877 # trailing colons and then remove the whole line if VPATH becomes empty
24878 # (actually we leave an empty line to preserve line numbers).
24879 if test "x$srcdir" = x.; then
24880 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24881 s/:*\$(srcdir):*/:/
24882 s/:*\${srcdir}:*/:/
24883 s/:*@srcdir@:*/:/
24884 s/^\([^=]*=[ ]*\):*/\1/
24885 s/:*$//
24886 s/^[^=]*=[ ]*$//
24887 }'
24888 fi
24889
24890 cat >>$CONFIG_STATUS <<\_ACEOF
24891 fi # test -n "$CONFIG_FILES"
24892
24893
24894 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24895 do
24896 case $ac_tag in
24897 :[FHLC]) ac_mode=$ac_tag; continue;;
24898 esac
24899 case $ac_mode$ac_tag in
24900 :[FHL]*:*);;
24901 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24902 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24903 { (exit 1); exit 1; }; };;
24904 :[FH]-) ac_tag=-:-;;
24905 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24906 esac
24907 ac_save_IFS=$IFS
24908 IFS=:
24909 set x $ac_tag
24910 IFS=$ac_save_IFS
24911 shift
24912 ac_file=$1
24913 shift
24914
24915 case $ac_mode in
24916 :L) ac_source=$1;;
24917 :[FH])
24918 ac_file_inputs=
24919 for ac_f
24920 do
24921 case $ac_f in
24922 -) ac_f="$tmp/stdin";;
24923 *) # Look for the file first in the build tree, then in the source tree
24924 # (if the path is not absolute). The absolute path cannot be DOS-style,
24925 # because $ac_f cannot contain `:'.
24926 test -f "$ac_f" ||
24927 case $ac_f in
24928 [\\/$]*) false;;
24929 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24930 esac ||
24931 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24932 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24933 { (exit 1); exit 1; }; };;
24934 esac
24935 ac_file_inputs="$ac_file_inputs $ac_f"
24936 done
24937
24938 # Let's still pretend it is `configure' which instantiates (i.e., don't
24939 # use $as_me), people would be surprised to read:
24940 # /* config.h. Generated by config.status. */
24941 configure_input="Generated from "`IFS=:
24942 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24943 if test x"$ac_file" != x-; then
24944 configure_input="$ac_file. $configure_input"
24945 { echo "$as_me:$LINENO: creating $ac_file" >&5
24946 echo "$as_me: creating $ac_file" >&6;}
24947 fi
24948
24949 case $ac_tag in
24950 *:-:* | *:-) cat >"$tmp/stdin";;
24951 esac
24952 ;;
24953 esac
24954
24955 ac_dir=`$as_dirname -- "$ac_file" ||
24956 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24957 X"$ac_file" : 'X\(//\)[^/]' \| \
24958 X"$ac_file" : 'X\(//\)$' \| \
24959 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24960 echo X"$ac_file" |
24961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24962 s//\1/
24963 q
24964 }
24965 /^X\(\/\/\)[^/].*/{
24966 s//\1/
24967 q
24968 }
24969 /^X\(\/\/\)$/{
24970 s//\1/
24971 q
24972 }
24973 /^X\(\/\).*/{
24974 s//\1/
24975 q
24976 }
24977 s/.*/./; q'`
24978 { as_dir="$ac_dir"
24979 case $as_dir in #(
24980 -*) as_dir=./$as_dir;;
24981 esac
24982 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24983 as_dirs=
24984 while :; do
24985 case $as_dir in #(
24986 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24987 *) as_qdir=$as_dir;;
24988 esac
24989 as_dirs="'$as_qdir' $as_dirs"
24990 as_dir=`$as_dirname -- "$as_dir" ||
24991 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24992 X"$as_dir" : 'X\(//\)[^/]' \| \
24993 X"$as_dir" : 'X\(//\)$' \| \
24994 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24995 echo X"$as_dir" |
24996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24997 s//\1/
24998 q
24999 }
25000 /^X\(\/\/\)[^/].*/{
25001 s//\1/
25002 q
25003 }
25004 /^X\(\/\/\)$/{
25005 s//\1/
25006 q
25007 }
25008 /^X\(\/\).*/{
25009 s//\1/
25010 q
25011 }
25012 s/.*/./; q'`
25013 test -d "$as_dir" && break
25014 done
25015 test -z "$as_dirs" || eval "mkdir $as_dirs"
25016 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25017 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25018 { (exit 1); exit 1; }; }; }
25019 ac_builddir=.
25020
25021 case "$ac_dir" in
25022 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25023 *)
25024 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25025 # A ".." for each directory in $ac_dir_suffix.
25026 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25027 case $ac_top_builddir_sub in
25028 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25029 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25030 esac ;;
25031 esac
25032 ac_abs_top_builddir=$ac_pwd
25033 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25034 # for backward compatibility:
25035 ac_top_builddir=$ac_top_build_prefix
25036
25037 case $srcdir in
25038 .) # We are building in place.
25039 ac_srcdir=.
25040 ac_top_srcdir=$ac_top_builddir_sub
25041 ac_abs_top_srcdir=$ac_pwd ;;
25042 [\\/]* | ?:[\\/]* ) # Absolute name.
25043 ac_srcdir=$srcdir$ac_dir_suffix;
25044 ac_top_srcdir=$srcdir
25045 ac_abs_top_srcdir=$srcdir ;;
25046 *) # Relative name.
25047 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25048 ac_top_srcdir=$ac_top_build_prefix$srcdir
25049 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25050 esac
25051 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25052
25053
25054 case $ac_mode in
25055 :F)
25056 #
25057 # CONFIG_FILE
25058 #
25059
25060 case $INSTALL in
25061 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25062 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25063 esac
25064 _ACEOF
25065
25066 cat >>$CONFIG_STATUS <<\_ACEOF
25067 # If the template does not know about datarootdir, expand it.
25068 # FIXME: This hack should be removed a few years after 2.60.
25069 ac_datarootdir_hack=; ac_datarootdir_seen=
25070
25071 case `sed -n '/datarootdir/ {
25072 p
25073 q
25074 }
25075 /@datadir@/p
25076 /@docdir@/p
25077 /@infodir@/p
25078 /@localedir@/p
25079 /@mandir@/p
25080 ' $ac_file_inputs` in
25081 *datarootdir*) ac_datarootdir_seen=yes;;
25082 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25083 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25084 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25085 _ACEOF
25086 cat >>$CONFIG_STATUS <<_ACEOF
25087 ac_datarootdir_hack='
25088 s&@datadir@&$datadir&g
25089 s&@docdir@&$docdir&g
25090 s&@infodir@&$infodir&g
25091 s&@localedir@&$localedir&g
25092 s&@mandir@&$mandir&g
25093 s&\\\${datarootdir}&$datarootdir&g' ;;
25094 esac
25095 _ACEOF
25096
25097 # Neutralize VPATH when `$srcdir' = `.'.
25098 # Shell code in configure.ac might set extrasub.
25099 # FIXME: do we really want to maintain this feature?
25100 cat >>$CONFIG_STATUS <<_ACEOF
25101 sed "$ac_vpsub
25102 $extrasub
25103 _ACEOF
25104 cat >>$CONFIG_STATUS <<\_ACEOF
25105 :t
25106 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25107 s&@configure_input@&$configure_input&;t t
25108 s&@top_builddir@&$ac_top_builddir_sub&;t t
25109 s&@srcdir@&$ac_srcdir&;t t
25110 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25111 s&@top_srcdir@&$ac_top_srcdir&;t t
25112 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25113 s&@builddir@&$ac_builddir&;t t
25114 s&@abs_builddir@&$ac_abs_builddir&;t t
25115 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25116 s&@INSTALL@&$ac_INSTALL&;t t
25117 $ac_datarootdir_hack
25118 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25119
25120 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25121 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25122 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25123 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25124 which seems to be undefined. Please make sure it is defined." >&5
25125 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25126 which seems to be undefined. Please make sure it is defined." >&2;}
25127
25128 rm -f "$tmp/stdin"
25129 case $ac_file in
25130 -) cat "$tmp/out"; rm -f "$tmp/out";;
25131 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25132 esac
25133 ;;
25134 :H)
25135 #
25136 # CONFIG_HEADER
25137 #
25138 _ACEOF
25139
25140 # Transform confdefs.h into a sed script `conftest.defines', that
25141 # substitutes the proper values into config.h.in to produce config.h.
25142 rm -f conftest.defines conftest.tail
25143 # First, append a space to every undef/define line, to ease matching.
25144 echo 's/$/ /' >conftest.defines
25145 # Then, protect against being on the right side of a sed subst, or in
25146 # an unquoted here document, in config.status. If some macros were
25147 # called several times there might be several #defines for the same
25148 # symbol, which is useless. But do not sort them, since the last
25149 # AC_DEFINE must be honored.
25150 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25151 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25152 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25153 # PARAMS is the parameter list in the macro definition--in most cases, it's
25154 # just an empty string.
25155 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25156 ac_dB='\\)[ (].*,\\1define\\2'
25157 ac_dC=' '
25158 ac_dD=' ,'
25159
25160 uniq confdefs.h |
25161 sed -n '
25162 t rset
25163 :rset
25164 s/^[ ]*#[ ]*define[ ][ ]*//
25165 t ok
25166 d
25167 :ok
25168 s/[\\&,]/\\&/g
25169 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25170 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25171 ' >>conftest.defines
25172
25173 # Remove the space that was appended to ease matching.
25174 # Then replace #undef with comments. This is necessary, for
25175 # example, in the case of _POSIX_SOURCE, which is predefined and required
25176 # on some systems where configure will not decide to define it.
25177 # (The regexp can be short, since the line contains either #define or #undef.)
25178 echo 's/ $//
25179 s,^[ #]*u.*,/* & */,' >>conftest.defines
25180
25181 # Break up conftest.defines:
25182 ac_max_sed_lines=50
25183
25184 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25185 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25186 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25187 # et cetera.
25188 ac_in='$ac_file_inputs'
25189 ac_out='"$tmp/out1"'
25190 ac_nxt='"$tmp/out2"'
25191
25192 while :
25193 do
25194 # Write a here document:
25195 cat >>$CONFIG_STATUS <<_ACEOF
25196 # First, check the format of the line:
25197 cat >"\$tmp/defines.sed" <<\\CEOF
25198 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25199 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25200 b
25201 :def
25202 _ACEOF
25203 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25204 echo 'CEOF
25205 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25206 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25207 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25208 grep . conftest.tail >/dev/null || break
25209 rm -f conftest.defines
25210 mv conftest.tail conftest.defines
25211 done
25212 rm -f conftest.defines conftest.tail
25213
25214 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25215 cat >>$CONFIG_STATUS <<\_ACEOF
25216 if test x"$ac_file" != x-; then
25217 echo "/* $configure_input */" >"$tmp/config.h"
25218 cat "$ac_result" >>"$tmp/config.h"
25219 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25220 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25221 echo "$as_me: $ac_file is unchanged" >&6;}
25222 else
25223 rm -f $ac_file
25224 mv "$tmp/config.h" $ac_file
25225 fi
25226 else
25227 echo "/* $configure_input */"
25228 cat "$ac_result"
25229 fi
25230 rm -f "$tmp/out12"
25231 ;;
25232
25233 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25234 echo "$as_me: executing $ac_file commands" >&6;}
25235 ;;
25236 esac
25237
25238
25239 case $ac_file$ac_mode in
25240 "default":C)
25241
25242 ### Make the necessary directories, if they don't exist.
25243 for dir in etc lisp ; do
25244 test -d ${dir} || mkdir ${dir}
25245 done
25246
25247 # Build src/Makefile from ${srcdir}/src/Makefile.c
25248 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25249 # This must be done after src/config.h is built, since we rely on that file.
25250
25251 # Now get this: Some word that is part of the ${srcdir} directory name
25252 # or the ${configuration} value might, just might, happen to be an
25253 # identifier like `sun4' or `i386' or something, and be predefined by
25254 # the C preprocessor to some helpful value like 1, or maybe the empty
25255 # string. Needless to say consequent macro substitutions are less
25256 # than conducive to the makefile finding the correct directory.
25257 undefs="`echo $top_srcdir $configuration $canonical |
25258 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25259 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25260 `"
25261
25262 echo creating src/epaths.h
25263 ${MAKE-make} epaths-force
25264
25265 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25266 # `..' to `. .' unless invoked with -traditional
25267
25268 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25269 CPPFLAGS="$CPPFLAGS -traditional"
25270 fi
25271
25272 echo creating lib-src/Makefile
25273 ( cd lib-src
25274 rm -f junk.c junk1.c junk2.c
25275 sed -e '/start of cpp stuff/q' \
25276 < Makefile.c > junk1.c
25277 sed -e '1,/start of cpp stuff/d'\
25278 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25279 < Makefile.c > junk.c
25280 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25281 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25282 cat junk1.c junk2.c > Makefile.new
25283 rm -f junk.c junk1.c junk2.c
25284 chmod 444 Makefile.new
25285 mv -f Makefile.new Makefile
25286 )
25287
25288 echo creating src/Makefile
25289 ( cd src
25290 rm -f junk.c junk1.c junk2.c
25291 sed -e '/start of cpp stuff/q' \
25292 < Makefile.c > junk1.c
25293 sed -e '1,/start of cpp stuff/d'\
25294 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25295 < Makefile.c > junk.c
25296 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
25297 echo creating ${srcdir}/admin/unidata/Makefile
25298 cp ${srcdir}/admin/unidata/Makefile.in ${srcdir}/admin/unidata/Makefile
25299 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
25300 fi
25301 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25302 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25303 cat junk1.c junk2.c > Makefile.new
25304 rm -f junk.c junk1.c junk2.c
25305 chmod 444 Makefile.new
25306 mv -f Makefile.new Makefile
25307 )
25308
25309 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25310 echo creating src/.gdbinit
25311 echo source $srcdir/src/.gdbinit > src/.gdbinit
25312 fi
25313
25314 # This is how we know whether to re-run configure in certain cases.
25315 touch src/config.stamp
25316
25317 ;;
25318
25319 esac
25320 done # for ac_tag
25321
25322
25323 { (exit 0); exit 0; }
25324 _ACEOF
25325 chmod +x $CONFIG_STATUS
25326 ac_clean_files=$ac_clean_files_save
25327
25328
25329 # configure is writing to config.log, and then calls config.status.
25330 # config.status does its own redirection, appending to config.log.
25331 # Unfortunately, on DOS this fails, as config.log is still kept open
25332 # by configure, so config.status won't be able to write to it; its
25333 # output is simply discarded. So we exec the FD to /dev/null,
25334 # effectively closing config.log, so it can be properly (re)opened and
25335 # appended to by config.status. When coming back to configure, we
25336 # need to make the FD available again.
25337 if test "$no_create" != yes; then
25338 ac_cs_success=:
25339 ac_config_status_args=
25340 test "$silent" = yes &&
25341 ac_config_status_args="$ac_config_status_args --quiet"
25342 exec 5>/dev/null
25343 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25344 exec 5>>config.log
25345 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25346 # would make configure fail if this is the last instruction.
25347 $ac_cs_success || { (exit 1); exit 1; }
25348 fi
25349
25350