Regenerate with fixed AC_FUNC_MKTIME.
[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.90.
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.90'
576 PACKAGE_STRING='emacs 23.0.90'
577 PACKAGE_BUGREPORT=''
578
579 ac_unique_file="src/lisp.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_config_libobj_dir=src
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
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 FONTCONFIG_CFLAGS
698 FONTCONFIG_LIBS
699 XFT_CFLAGS
700 XFT_LIBS
701 FREETYPE_CFLAGS
702 FREETYPE_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 ns_appdir
737 ns_appbindir
738 ns_appresdir
739 ns_appsrc
740 GNUSTEP_MAKEFILES
741 GNUSTEP_SYSTEM_HEADERS
742 GNUSTEP_SYSTEM_LIBRARIES
743 GNU_OBJC_CFLAGS
744 LIB_SRC_EXTRA_INSTALLABLES
745 LTLIBOBJS'
746 ac_subst_files=''
747 ac_precious_vars='build_alias
748 host_alias
749 target_alias
750 CC
751 CFLAGS
752 LDFLAGS
753 LIBS
754 CPPFLAGS
755 CPP
756 XMKMF'
757
758
759 # Initialize some variables set by options.
760 ac_init_help=
761 ac_init_version=false
762 # The variables have the same names as the options, with
763 # dashes changed to underlines.
764 cache_file=/dev/null
765 exec_prefix=NONE
766 no_create=
767 no_recursion=
768 prefix=NONE
769 program_prefix=NONE
770 program_suffix=NONE
771 program_transform_name=s,x,x,
772 silent=
773 site=
774 srcdir=
775 verbose=
776 x_includes=NONE
777 x_libraries=NONE
778
779 # Installation directory options.
780 # These are left unexpanded so users can "make install exec_prefix=/foo"
781 # and all the variables that are supposed to be based on exec_prefix
782 # by default will actually change.
783 # Use braces instead of parens because sh, perl, etc. also accept them.
784 # (The list follows the same order as the GNU Coding Standards.)
785 bindir='${exec_prefix}/bin'
786 sbindir='${exec_prefix}/sbin'
787 libexecdir='${exec_prefix}/libexec'
788 datarootdir='${prefix}/share'
789 datadir='${datarootdir}'
790 sysconfdir='${prefix}/etc'
791 sharedstatedir='${prefix}/com'
792 localstatedir='${prefix}/var'
793 includedir='${prefix}/include'
794 oldincludedir='/usr/include'
795 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
796 infodir='${datarootdir}/info'
797 htmldir='${docdir}'
798 dvidir='${docdir}'
799 pdfdir='${docdir}'
800 psdir='${docdir}'
801 libdir='${exec_prefix}/lib'
802 localedir='${datarootdir}/locale'
803 mandir='${datarootdir}/man'
804
805 ac_prev=
806 ac_dashdash=
807 for ac_option
808 do
809 # If the previous option needs an argument, assign it.
810 if test -n "$ac_prev"; then
811 eval $ac_prev=\$ac_option
812 ac_prev=
813 continue
814 fi
815
816 case $ac_option in
817 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818 *) ac_optarg=yes ;;
819 esac
820
821 # Accept the important Cygnus configure options, so we can diagnose typos.
822
823 case $ac_dashdash$ac_option in
824 --)
825 ac_dashdash=yes ;;
826
827 -bindir | --bindir | --bindi | --bind | --bin | --bi)
828 ac_prev=bindir ;;
829 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
830 bindir=$ac_optarg ;;
831
832 -build | --build | --buil | --bui | --bu)
833 ac_prev=build_alias ;;
834 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
835 build_alias=$ac_optarg ;;
836
837 -cache-file | --cache-file | --cache-fil | --cache-fi \
838 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
839 ac_prev=cache_file ;;
840 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
841 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
842 cache_file=$ac_optarg ;;
843
844 --config-cache | -C)
845 cache_file=config.cache ;;
846
847 -datadir | --datadir | --datadi | --datad)
848 ac_prev=datadir ;;
849 -datadir=* | --datadir=* | --datadi=* | --datad=*)
850 datadir=$ac_optarg ;;
851
852 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
853 | --dataroo | --dataro | --datar)
854 ac_prev=datarootdir ;;
855 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
856 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
857 datarootdir=$ac_optarg ;;
858
859 -disable-* | --disable-*)
860 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
863 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
864 { (exit 1); exit 1; }; }
865 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
866 eval enable_$ac_feature=no ;;
867
868 -docdir | --docdir | --docdi | --doc | --do)
869 ac_prev=docdir ;;
870 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
871 docdir=$ac_optarg ;;
872
873 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
874 ac_prev=dvidir ;;
875 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
876 dvidir=$ac_optarg ;;
877
878 -enable-* | --enable-*)
879 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
882 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
883 { (exit 1); exit 1; }; }
884 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
885 eval enable_$ac_feature=\$ac_optarg ;;
886
887 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
888 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
889 | --exec | --exe | --ex)
890 ac_prev=exec_prefix ;;
891 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
892 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
893 | --exec=* | --exe=* | --ex=*)
894 exec_prefix=$ac_optarg ;;
895
896 -gas | --gas | --ga | --g)
897 # Obsolete; use --with-gas.
898 with_gas=yes ;;
899
900 -help | --help | --hel | --he | -h)
901 ac_init_help=long ;;
902 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
903 ac_init_help=recursive ;;
904 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
905 ac_init_help=short ;;
906
907 -host | --host | --hos | --ho)
908 ac_prev=host_alias ;;
909 -host=* | --host=* | --hos=* | --ho=*)
910 host_alias=$ac_optarg ;;
911
912 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
913 ac_prev=htmldir ;;
914 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
915 | --ht=*)
916 htmldir=$ac_optarg ;;
917
918 -includedir | --includedir | --includedi | --included | --include \
919 | --includ | --inclu | --incl | --inc)
920 ac_prev=includedir ;;
921 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
922 | --includ=* | --inclu=* | --incl=* | --inc=*)
923 includedir=$ac_optarg ;;
924
925 -infodir | --infodir | --infodi | --infod | --info | --inf)
926 ac_prev=infodir ;;
927 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
928 infodir=$ac_optarg ;;
929
930 -libdir | --libdir | --libdi | --libd)
931 ac_prev=libdir ;;
932 -libdir=* | --libdir=* | --libdi=* | --libd=*)
933 libdir=$ac_optarg ;;
934
935 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
936 | --libexe | --libex | --libe)
937 ac_prev=libexecdir ;;
938 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
939 | --libexe=* | --libex=* | --libe=*)
940 libexecdir=$ac_optarg ;;
941
942 -localedir | --localedir | --localedi | --localed | --locale)
943 ac_prev=localedir ;;
944 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
945 localedir=$ac_optarg ;;
946
947 -localstatedir | --localstatedir | --localstatedi | --localstated \
948 | --localstate | --localstat | --localsta | --localst | --locals)
949 ac_prev=localstatedir ;;
950 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
951 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
952 localstatedir=$ac_optarg ;;
953
954 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
955 ac_prev=mandir ;;
956 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
957 mandir=$ac_optarg ;;
958
959 -nfp | --nfp | --nf)
960 # Obsolete; use --without-fp.
961 with_fp=no ;;
962
963 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
964 | --no-cr | --no-c | -n)
965 no_create=yes ;;
966
967 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
968 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
969 no_recursion=yes ;;
970
971 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
972 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
973 | --oldin | --oldi | --old | --ol | --o)
974 ac_prev=oldincludedir ;;
975 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
976 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
977 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
978 oldincludedir=$ac_optarg ;;
979
980 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
981 ac_prev=prefix ;;
982 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
983 prefix=$ac_optarg ;;
984
985 -program-prefix | --program-prefix | --program-prefi | --program-pref \
986 | --program-pre | --program-pr | --program-p)
987 ac_prev=program_prefix ;;
988 -program-prefix=* | --program-prefix=* | --program-prefi=* \
989 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
990 program_prefix=$ac_optarg ;;
991
992 -program-suffix | --program-suffix | --program-suffi | --program-suff \
993 | --program-suf | --program-su | --program-s)
994 ac_prev=program_suffix ;;
995 -program-suffix=* | --program-suffix=* | --program-suffi=* \
996 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
997 program_suffix=$ac_optarg ;;
998
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 ac_prev=program_transform_name ;;
1007 -program-transform-name=* | --program-transform-name=* \
1008 | --program-transform-nam=* | --program-transform-na=* \
1009 | --program-transform-n=* | --program-transform-=* \
1010 | --program-transform=* | --program-transfor=* \
1011 | --program-transfo=* | --program-transf=* \
1012 | --program-trans=* | --program-tran=* \
1013 | --progr-tra=* | --program-tr=* | --program-t=*)
1014 program_transform_name=$ac_optarg ;;
1015
1016 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1017 ac_prev=pdfdir ;;
1018 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1019 pdfdir=$ac_optarg ;;
1020
1021 -psdir | --psdir | --psdi | --psd | --ps)
1022 ac_prev=psdir ;;
1023 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1024 psdir=$ac_optarg ;;
1025
1026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027 | -silent | --silent | --silen | --sile | --sil)
1028 silent=yes ;;
1029
1030 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1031 ac_prev=sbindir ;;
1032 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1033 | --sbi=* | --sb=*)
1034 sbindir=$ac_optarg ;;
1035
1036 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1037 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1038 | --sharedst | --shareds | --shared | --share | --shar \
1039 | --sha | --sh)
1040 ac_prev=sharedstatedir ;;
1041 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1042 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1043 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1044 | --sha=* | --sh=*)
1045 sharedstatedir=$ac_optarg ;;
1046
1047 -site | --site | --sit)
1048 ac_prev=site ;;
1049 -site=* | --site=* | --sit=*)
1050 site=$ac_optarg ;;
1051
1052 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1053 ac_prev=srcdir ;;
1054 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1055 srcdir=$ac_optarg ;;
1056
1057 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1058 | --syscon | --sysco | --sysc | --sys | --sy)
1059 ac_prev=sysconfdir ;;
1060 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1061 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1062 sysconfdir=$ac_optarg ;;
1063
1064 -target | --target | --targe | --targ | --tar | --ta | --t)
1065 ac_prev=target_alias ;;
1066 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1067 target_alias=$ac_optarg ;;
1068
1069 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1070 verbose=yes ;;
1071
1072 -version | --version | --versio | --versi | --vers | -V)
1073 ac_init_version=: ;;
1074
1075 -with-* | --with-*)
1076 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid package name: $ac_package" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1082 eval with_$ac_package=\$ac_optarg ;;
1083
1084 -without-* | --without-*)
1085 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1088 { echo "$as_me: error: invalid package name: $ac_package" >&2
1089 { (exit 1); exit 1; }; }
1090 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1091 eval with_$ac_package=no ;;
1092
1093 --x)
1094 # Obsolete; use --with-x.
1095 with_x=yes ;;
1096
1097 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1098 | --x-incl | --x-inc | --x-in | --x-i)
1099 ac_prev=x_includes ;;
1100 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1101 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1102 x_includes=$ac_optarg ;;
1103
1104 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1105 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1106 ac_prev=x_libraries ;;
1107 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1108 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1109 x_libraries=$ac_optarg ;;
1110
1111 -*) { echo "$as_me: error: unrecognized option: $ac_option
1112 Try \`$0 --help' for more information." >&2
1113 { (exit 1); exit 1; }; }
1114 ;;
1115
1116 *=*)
1117 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1120 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1121 { (exit 1); exit 1; }; }
1122 eval $ac_envvar=\$ac_optarg
1123 export $ac_envvar ;;
1124
1125 *)
1126 # FIXME: should be removed in autoconf 3.0.
1127 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1128 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1129 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1130 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1131 ;;
1132
1133 esac
1134 done
1135
1136 if test -n "$ac_prev"; then
1137 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1138 { echo "$as_me: error: missing argument to $ac_option" >&2
1139 { (exit 1); exit 1; }; }
1140 fi
1141
1142 # Be sure to have absolute directory names.
1143 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1144 datadir sysconfdir sharedstatedir localstatedir includedir \
1145 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1146 libdir localedir mandir
1147 do
1148 eval ac_val=\$$ac_var
1149 case $ac_val in
1150 [\\/$]* | ?:[\\/]* ) continue;;
1151 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1152 esac
1153 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1154 { (exit 1); exit 1; }; }
1155 done
1156
1157 # There might be people who depend on the old broken behavior: `$host'
1158 # used to hold the argument of --host etc.
1159 # FIXME: To remove some day.
1160 build=$build_alias
1161 host=$host_alias
1162 target=$target_alias
1163
1164 # FIXME: To remove some day.
1165 if test "x$host_alias" != x; then
1166 if test "x$build_alias" = x; then
1167 cross_compiling=maybe
1168 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1169 If a cross compiler is detected then cross compile mode will be used." >&2
1170 elif test "x$build_alias" != "x$host_alias"; then
1171 cross_compiling=yes
1172 fi
1173 fi
1174
1175 ac_tool_prefix=
1176 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1177
1178 test "$silent" = yes && exec 6>/dev/null
1179
1180
1181 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1182 ac_ls_di=`ls -di .` &&
1183 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1184 { echo "$as_me: error: Working directory cannot be determined" >&2
1185 { (exit 1); exit 1; }; }
1186 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1187 { echo "$as_me: error: pwd does not report name of working directory" >&2
1188 { (exit 1); exit 1; }; }
1189
1190
1191 # Find the source files, if location was not specified.
1192 if test -z "$srcdir"; then
1193 ac_srcdir_defaulted=yes
1194 # Try the directory containing this script, then the parent directory.
1195 ac_confdir=`$as_dirname -- "$0" ||
1196 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1197 X"$0" : 'X\(//\)[^/]' \| \
1198 X"$0" : 'X\(//\)$' \| \
1199 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1200 echo X"$0" |
1201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1202 s//\1/
1203 q
1204 }
1205 /^X\(\/\/\)[^/].*/{
1206 s//\1/
1207 q
1208 }
1209 /^X\(\/\/\)$/{
1210 s//\1/
1211 q
1212 }
1213 /^X\(\/\).*/{
1214 s//\1/
1215 q
1216 }
1217 s/.*/./; q'`
1218 srcdir=$ac_confdir
1219 if test ! -r "$srcdir/$ac_unique_file"; then
1220 srcdir=..
1221 fi
1222 else
1223 ac_srcdir_defaulted=no
1224 fi
1225 if test ! -r "$srcdir/$ac_unique_file"; then
1226 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1227 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1228 { (exit 1); exit 1; }; }
1229 fi
1230 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1231 ac_abs_confdir=`(
1232 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1233 { (exit 1); exit 1; }; }
1234 pwd)`
1235 # When building in place, set srcdir=.
1236 if test "$ac_abs_confdir" = "$ac_pwd"; then
1237 srcdir=.
1238 fi
1239 # Remove unnecessary trailing slashes from srcdir.
1240 # Double slashes in file names in object file debugging info
1241 # mess up M-x gdb in Emacs.
1242 case $srcdir in
1243 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1244 esac
1245 for ac_var in $ac_precious_vars; do
1246 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1247 eval ac_env_${ac_var}_value=\$${ac_var}
1248 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1249 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1250 done
1251
1252 #
1253 # Report the --help message.
1254 #
1255 if test "$ac_init_help" = "long"; then
1256 # Omit some internal or obsolete options to make the list less imposing.
1257 # This message is too long to be a string in the A/UX 3.1 sh.
1258 cat <<_ACEOF
1259 \`configure' configures emacs 23.0.90 to adapt to many kinds of systems.
1260
1261 Usage: $0 [OPTION]... [VAR=VALUE]...
1262
1263 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1264 VAR=VALUE. See below for descriptions of some of the useful variables.
1265
1266 Defaults for the options are specified in brackets.
1267
1268 Configuration:
1269 -h, --help display this help and exit
1270 --help=short display options specific to this package
1271 --help=recursive display the short help of all the included packages
1272 -V, --version display version information and exit
1273 -q, --quiet, --silent do not print \`checking...' messages
1274 --cache-file=FILE cache test results in FILE [disabled]
1275 -C, --config-cache alias for \`--cache-file=config.cache'
1276 -n, --no-create do not create output files
1277 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1278
1279 Installation directories:
1280 --prefix=PREFIX install architecture-independent files in PREFIX
1281 [$ac_default_prefix]
1282 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1283 [PREFIX]
1284
1285 By default, \`make install' will install all the files in
1286 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1287 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1288 for instance \`--prefix=\$HOME'.
1289
1290 For better control, use the options below.
1291
1292 Fine tuning of the installation directories:
1293 --bindir=DIR user executables [EPREFIX/bin]
1294 --sbindir=DIR system admin executables [EPREFIX/sbin]
1295 --libexecdir=DIR program executables [EPREFIX/libexec]
1296 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1297 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1298 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1299 --libdir=DIR object code libraries [EPREFIX/lib]
1300 --includedir=DIR C header files [PREFIX/include]
1301 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1302 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1303 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1304 --infodir=DIR info documentation [DATAROOTDIR/info]
1305 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1306 --mandir=DIR man documentation [DATAROOTDIR/man]
1307 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1308 --htmldir=DIR html documentation [DOCDIR]
1309 --dvidir=DIR dvi documentation [DOCDIR]
1310 --pdfdir=DIR pdf documentation [DOCDIR]
1311 --psdir=DIR ps documentation [DOCDIR]
1312 _ACEOF
1313
1314 cat <<\_ACEOF
1315
1316 Program names:
1317 --program-prefix=PREFIX prepend PREFIX to installed program names
1318 --program-suffix=SUFFIX append SUFFIX to installed program names
1319 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1320
1321 X features:
1322 --x-includes=DIR X include files are in DIR
1323 --x-libraries=DIR X library files are in DIR
1324
1325 System types:
1326 --build=BUILD configure for building on BUILD [guessed]
1327 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1328 _ACEOF
1329 fi
1330
1331 if test -n "$ac_init_help"; then
1332 case $ac_init_help in
1333 short | recursive ) echo "Configuration of emacs 23.0.90:";;
1334 esac
1335 cat <<\_ACEOF
1336
1337 Optional Features:
1338 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1339 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1340 --enable-cocoa-experimental-ctrl-g
1341 enable experimental improved ctrl-g recognition
1342 --disable-ns-self-contained
1343 disable self contained build under NeXTstep
1344 --enable-asserts compile code with asserts enabled
1345 --enable-maintainer-mode
1346 enable make rules and dependencies not useful (and
1347 sometimes confusing) to the casual installer
1348 --enable-locallisppath=PATH
1349 directories Emacs should search for lisp files
1350 specific to this site
1351 --disable-largefile omit support for large files
1352
1353 Optional Packages:
1354 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1355 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1356 --without-pop don't support POP mail retrieval with movemail
1357 --with-kerberos support Kerberos-authenticated POP
1358 --with-kerberos5 support Kerberos version 5 authenticated POP
1359 --with-hesiod support Hesiod to get the POP server host
1360 --without-sound don't compile with sound support
1361 --without-sync-input process async input synchronously
1362 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1363 motif, gtk, no)
1364 --without-xpm don't compile with XPM image support
1365 --without-jpeg don't compile with JPEG image support
1366 --without-tiff don't compile with TIFF image support
1367 --without-gif don't compile with GIF image support
1368 --without-png don't compile with PNG image support
1369 --without-rsvg don't compile with SVG image support
1370 --without-freetype don't use Freetype for local font support
1371 --without-xft don't use XFT for anti aliased fonts
1372 --without-libotf don't use libotf for OpenType font support
1373 --without-m17n-flt don't use m17n-flt for text shaping
1374 --without-toolkit-scroll-bars
1375 don't use Motif or Xaw3d scroll bars
1376 --without-xaw3d don't use Xaw3d
1377 --without-xim don't use X11 XIM
1378 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1379 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1380 console
1381 --without-dbus don't compile with D-Bus support
1382 --without-makeinfo don't require makeinfo for building manuals
1383
1384 --with-pkg-config-prog=PATH
1385 path to pkg-config for finding GTK and librsvg
1386 --with-gnustep-conf=PATH
1387 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1388 or /etc/GNUstep/GNUstep.conf
1389 --with-x use the X Window System
1390
1391 Some influential environment variables:
1392 CC C compiler command
1393 CFLAGS C compiler flags
1394 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1395 nonstandard directory <lib dir>
1396 LIBS libraries to pass to the linker, e.g. -l<library>
1397 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1398 you have headers in a nonstandard directory <include dir>
1399 CPP C preprocessor
1400 XMKMF Path to xmkmf, Makefile generator for X Window System
1401
1402 Use these variables to override the choices made by `configure' or to help
1403 it to find libraries and programs with nonstandard names/locations.
1404
1405 _ACEOF
1406 ac_status=$?
1407 fi
1408
1409 if test "$ac_init_help" = "recursive"; then
1410 # If there are subdirs, report their specific --help.
1411 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1412 test -d "$ac_dir" || continue
1413 ac_builddir=.
1414
1415 case "$ac_dir" in
1416 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417 *)
1418 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1419 # A ".." for each directory in $ac_dir_suffix.
1420 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1421 case $ac_top_builddir_sub in
1422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1424 esac ;;
1425 esac
1426 ac_abs_top_builddir=$ac_pwd
1427 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1428 # for backward compatibility:
1429 ac_top_builddir=$ac_top_build_prefix
1430
1431 case $srcdir in
1432 .) # We are building in place.
1433 ac_srcdir=.
1434 ac_top_srcdir=$ac_top_builddir_sub
1435 ac_abs_top_srcdir=$ac_pwd ;;
1436 [\\/]* | ?:[\\/]* ) # Absolute name.
1437 ac_srcdir=$srcdir$ac_dir_suffix;
1438 ac_top_srcdir=$srcdir
1439 ac_abs_top_srcdir=$srcdir ;;
1440 *) # Relative name.
1441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1442 ac_top_srcdir=$ac_top_build_prefix$srcdir
1443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1444 esac
1445 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1446
1447 cd "$ac_dir" || { ac_status=$?; continue; }
1448 # Check for guested configure.
1449 if test -f "$ac_srcdir/configure.gnu"; then
1450 echo &&
1451 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1452 elif test -f "$ac_srcdir/configure"; then
1453 echo &&
1454 $SHELL "$ac_srcdir/configure" --help=recursive
1455 else
1456 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1457 fi || ac_status=$?
1458 cd "$ac_pwd" || { ac_status=$?; break; }
1459 done
1460 fi
1461
1462 test -n "$ac_init_help" && exit $ac_status
1463 if $ac_init_version; then
1464 cat <<\_ACEOF
1465 emacs configure 23.0.90
1466 generated by GNU Autoconf 2.61
1467
1468 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1469 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1470 This configure script is free software; the Free Software Foundation
1471 gives unlimited permission to copy, distribute and modify it.
1472 _ACEOF
1473 exit
1474 fi
1475 cat >config.log <<_ACEOF
1476 This file contains any messages produced by compilers while
1477 running configure, to aid debugging if configure makes a mistake.
1478
1479 It was created by emacs $as_me 23.0.90, which was
1480 generated by GNU Autoconf 2.61. Invocation command line was
1481
1482 $ $0 $@
1483
1484 _ACEOF
1485 exec 5>>config.log
1486 {
1487 cat <<_ASUNAME
1488 ## --------- ##
1489 ## Platform. ##
1490 ## --------- ##
1491
1492 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1493 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1494 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1495 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1496 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1497
1498 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1499 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1500
1501 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1502 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1503 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1504 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1505 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1506 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1507 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1508
1509 _ASUNAME
1510
1511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512 for as_dir in $PATH
1513 do
1514 IFS=$as_save_IFS
1515 test -z "$as_dir" && as_dir=.
1516 echo "PATH: $as_dir"
1517 done
1518 IFS=$as_save_IFS
1519
1520 } >&5
1521
1522 cat >&5 <<_ACEOF
1523
1524
1525 ## ----------- ##
1526 ## Core tests. ##
1527 ## ----------- ##
1528
1529 _ACEOF
1530
1531
1532 # Keep a trace of the command line.
1533 # Strip out --no-create and --no-recursion so they do not pile up.
1534 # Strip out --silent because we don't want to record it for future runs.
1535 # Also quote any args containing shell meta-characters.
1536 # Make two passes to allow for proper duplicate-argument suppression.
1537 ac_configure_args=
1538 ac_configure_args0=
1539 ac_configure_args1=
1540 ac_must_keep_next=false
1541 for ac_pass in 1 2
1542 do
1543 for ac_arg
1544 do
1545 case $ac_arg in
1546 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1547 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1548 | -silent | --silent | --silen | --sile | --sil)
1549 continue ;;
1550 *\'*)
1551 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1552 esac
1553 case $ac_pass in
1554 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1555 2)
1556 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1557 if test $ac_must_keep_next = true; then
1558 ac_must_keep_next=false # Got value, back to normal.
1559 else
1560 case $ac_arg in
1561 *=* | --config-cache | -C | -disable-* | --disable-* \
1562 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1563 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1564 | -with-* | --with-* | -without-* | --without-* | --x)
1565 case "$ac_configure_args0 " in
1566 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1567 esac
1568 ;;
1569 -* ) ac_must_keep_next=true ;;
1570 esac
1571 fi
1572 ac_configure_args="$ac_configure_args '$ac_arg'"
1573 ;;
1574 esac
1575 done
1576 done
1577 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1578 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1579
1580 # When interrupted or exit'd, cleanup temporary files, and complete
1581 # config.log. We remove comments because anyway the quotes in there
1582 # would cause problems or look ugly.
1583 # WARNING: Use '\'' to represent an apostrophe within the trap.
1584 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1585 trap 'exit_status=$?
1586 # Save into config.log some information that might help in debugging.
1587 {
1588 echo
1589
1590 cat <<\_ASBOX
1591 ## ---------------- ##
1592 ## Cache variables. ##
1593 ## ---------------- ##
1594 _ASBOX
1595 echo
1596 # The following way of writing the cache mishandles newlines in values,
1597 (
1598 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1599 eval ac_val=\$$ac_var
1600 case $ac_val in #(
1601 *${as_nl}*)
1602 case $ac_var in #(
1603 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1604 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1605 esac
1606 case $ac_var in #(
1607 _ | IFS | as_nl) ;; #(
1608 *) $as_unset $ac_var ;;
1609 esac ;;
1610 esac
1611 done
1612 (set) 2>&1 |
1613 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1614 *${as_nl}ac_space=\ *)
1615 sed -n \
1616 "s/'\''/'\''\\\\'\'''\''/g;
1617 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1618 ;; #(
1619 *)
1620 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1621 ;;
1622 esac |
1623 sort
1624 )
1625 echo
1626
1627 cat <<\_ASBOX
1628 ## ----------------- ##
1629 ## Output variables. ##
1630 ## ----------------- ##
1631 _ASBOX
1632 echo
1633 for ac_var in $ac_subst_vars
1634 do
1635 eval ac_val=\$$ac_var
1636 case $ac_val in
1637 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1638 esac
1639 echo "$ac_var='\''$ac_val'\''"
1640 done | sort
1641 echo
1642
1643 if test -n "$ac_subst_files"; then
1644 cat <<\_ASBOX
1645 ## ------------------- ##
1646 ## File substitutions. ##
1647 ## ------------------- ##
1648 _ASBOX
1649 echo
1650 for ac_var in $ac_subst_files
1651 do
1652 eval ac_val=\$$ac_var
1653 case $ac_val in
1654 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1655 esac
1656 echo "$ac_var='\''$ac_val'\''"
1657 done | sort
1658 echo
1659 fi
1660
1661 if test -s confdefs.h; then
1662 cat <<\_ASBOX
1663 ## ----------- ##
1664 ## confdefs.h. ##
1665 ## ----------- ##
1666 _ASBOX
1667 echo
1668 cat confdefs.h
1669 echo
1670 fi
1671 test "$ac_signal" != 0 &&
1672 echo "$as_me: caught signal $ac_signal"
1673 echo "$as_me: exit $exit_status"
1674 } >&5
1675 rm -f core *.core core.conftest.* &&
1676 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1677 exit $exit_status
1678 ' 0
1679 for ac_signal in 1 2 13 15; do
1680 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1681 done
1682 ac_signal=0
1683
1684 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1685 rm -f -r conftest* confdefs.h
1686
1687 # Predefined preprocessor variables.
1688
1689 cat >>confdefs.h <<_ACEOF
1690 #define PACKAGE_NAME "$PACKAGE_NAME"
1691 _ACEOF
1692
1693
1694 cat >>confdefs.h <<_ACEOF
1695 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1696 _ACEOF
1697
1698
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1701 _ACEOF
1702
1703
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_STRING "$PACKAGE_STRING"
1706 _ACEOF
1707
1708
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1711 _ACEOF
1712
1713
1714 # Let the site file select an alternate cache file if it wants to.
1715 # Prefer explicitly selected file to automatically selected ones.
1716 if test -n "$CONFIG_SITE"; then
1717 set x "$CONFIG_SITE"
1718 elif test "x$prefix" != xNONE; then
1719 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1720 else
1721 set x "$ac_default_prefix/share/config.site" \
1722 "$ac_default_prefix/etc/config.site"
1723 fi
1724 shift
1725 for ac_site_file
1726 do
1727 if test -r "$ac_site_file"; then
1728 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1729 echo "$as_me: loading site script $ac_site_file" >&6;}
1730 sed 's/^/| /' "$ac_site_file" >&5
1731 . "$ac_site_file"
1732 fi
1733 done
1734
1735 if test -r "$cache_file"; then
1736 # Some versions of bash will fail to source /dev/null (special
1737 # files actually), so we avoid doing that.
1738 if test -f "$cache_file"; then
1739 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1740 echo "$as_me: loading cache $cache_file" >&6;}
1741 case $cache_file in
1742 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1743 *) . "./$cache_file";;
1744 esac
1745 fi
1746 else
1747 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1748 echo "$as_me: creating cache $cache_file" >&6;}
1749 >$cache_file
1750 fi
1751
1752 ac_header_list="$ac_header_list sys/time.h"
1753 ac_header_list="$ac_header_list unistd.h"
1754 ac_func_list="$ac_func_list alarm"
1755 # Check that the precious variables saved in the cache have kept the same
1756 # value.
1757 ac_cache_corrupted=false
1758 for ac_var in $ac_precious_vars; do
1759 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1760 eval ac_new_set=\$ac_env_${ac_var}_set
1761 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1762 eval ac_new_val=\$ac_env_${ac_var}_value
1763 case $ac_old_set,$ac_new_set in
1764 set,)
1765 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1766 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1767 ac_cache_corrupted=: ;;
1768 ,set)
1769 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1770 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1771 ac_cache_corrupted=: ;;
1772 ,);;
1773 *)
1774 if test "x$ac_old_val" != "x$ac_new_val"; then
1775 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1776 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1777 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1778 echo "$as_me: former value: $ac_old_val" >&2;}
1779 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1780 echo "$as_me: current value: $ac_new_val" >&2;}
1781 ac_cache_corrupted=:
1782 fi;;
1783 esac
1784 # Pass precious variables to config.status.
1785 if test "$ac_new_set" = set; then
1786 case $ac_new_val in
1787 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1788 *) ac_arg=$ac_var=$ac_new_val ;;
1789 esac
1790 case " $ac_configure_args " in
1791 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1792 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1793 esac
1794 fi
1795 done
1796 if $ac_cache_corrupted; then
1797 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1798 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1799 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1800 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1801 { (exit 1); exit 1; }; }
1802 fi
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828 ac_ext=c
1829 ac_cpp='$CPP $CPPFLAGS'
1830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1833
1834
1835 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1836
1837
1838
1839 test "$program_prefix" != NONE &&
1840 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1841 # Use a double $ so make ignores it.
1842 test "$program_suffix" != NONE &&
1843 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1844 # Double any \ or $. echo might interpret backslashes.
1845 # By default was `s,x,x', remove it if useless.
1846 cat <<\_ACEOF >conftest.sed
1847 s/[\\$]/&&/g;s/;s,x,x,$//
1848 _ACEOF
1849 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1850 rm -f conftest.sed
1851
1852
1853 lispdir='${datadir}/emacs/${version}/lisp'
1854 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1855 '${datadir}/emacs/site-lisp'
1856 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1857 etcdir='${datadir}/emacs/${version}/etc'
1858 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1859 docdir='${datadir}/emacs/${version}/etc'
1860 gamedir='${localstatedir}/games/emacs'
1861
1862 gameuser=games
1863
1864
1865
1866
1867 # Check whether --with-pop was given.
1868 if test "${with_pop+set}" = set; then
1869 withval=$with_pop;
1870 else
1871 with_pop=yes
1872 fi
1873
1874 if test "$with_pop" = yes; then
1875 cat >>confdefs.h <<\_ACEOF
1876 #define MAIL_USE_POP 1
1877 _ACEOF
1878
1879 fi
1880
1881
1882
1883 # Check whether --with-kerberos was given.
1884 if test "${with_kerberos+set}" = set; then
1885 withval=$with_kerberos;
1886 else
1887 with_kerberos=no
1888 fi
1889
1890 if test "$with_kerberos" != no; then
1891 cat >>confdefs.h <<\_ACEOF
1892 #define KERBEROS 1
1893 _ACEOF
1894
1895 fi
1896
1897
1898
1899 # Check whether --with-kerberos5 was given.
1900 if test "${with_kerberos5+set}" = set; then
1901 withval=$with_kerberos5;
1902 else
1903 with_kerberos5=no
1904 fi
1905
1906 if test "${with_kerberos5}" != no; then
1907 if test "${with_kerberos}" = no; then
1908 with_kerberos=yes
1909 cat >>confdefs.h <<\_ACEOF
1910 #define KERBEROS 1
1911 _ACEOF
1912
1913 fi
1914
1915 cat >>confdefs.h <<\_ACEOF
1916 #define KERBEROS5 1
1917 _ACEOF
1918
1919 fi
1920
1921
1922 # Check whether --with-hesiod was given.
1923 if test "${with_hesiod+set}" = set; then
1924 withval=$with_hesiod;
1925 else
1926 with_hesiod=no
1927 fi
1928
1929 if test "$with_hesiod" != no; then
1930
1931 cat >>confdefs.h <<\_ACEOF
1932 #define HESIOD 1
1933 _ACEOF
1934
1935 fi
1936
1937
1938 # Check whether --with-sound was given.
1939 if test "${with_sound+set}" = set; then
1940 withval=$with_sound;
1941 else
1942 with_sound=yes
1943 fi
1944
1945
1946
1947 # Check whether --with-sync-input was given.
1948 if test "${with_sync_input+set}" = set; then
1949 withval=$with_sync_input;
1950 else
1951 with_sync_input=yes
1952 fi
1953
1954 if test "$with_sync_input" = yes; then
1955
1956 cat >>confdefs.h <<\_ACEOF
1957 #define SYNC_INPUT 1
1958 _ACEOF
1959
1960 fi
1961
1962
1963 # Check whether --with-x-toolkit was given.
1964 if test "${with_x_toolkit+set}" = set; then
1965 withval=$with_x_toolkit; case "${withval}" in
1966 y | ye | yes ) val=gtk ;;
1967 n | no ) val=no ;;
1968 l | lu | luc | luci | lucid ) val=lucid ;;
1969 a | at | ath | athe | athen | athena ) val=athena ;;
1970 m | mo | mot | moti | motif ) val=motif ;;
1971 g | gt | gtk ) val=gtk ;;
1972 * )
1973 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1974 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1975 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1976 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1977 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1978 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1979 { (exit 1); exit 1; }; }
1980 ;;
1981 esac
1982 with_x_toolkit=$val
1983
1984 fi
1985
1986
1987
1988 # Check whether --with-xpm was given.
1989 if test "${with_xpm+set}" = set; then
1990 withval=$with_xpm;
1991 else
1992 with_xpm=yes
1993 fi
1994
1995
1996 # Check whether --with-jpeg was given.
1997 if test "${with_jpeg+set}" = set; then
1998 withval=$with_jpeg;
1999 else
2000 with_jpeg=yes
2001 fi
2002
2003
2004 # Check whether --with-tiff was given.
2005 if test "${with_tiff+set}" = set; then
2006 withval=$with_tiff;
2007 else
2008 with_tiff=yes
2009 fi
2010
2011
2012 # Check whether --with-gif was given.
2013 if test "${with_gif+set}" = set; then
2014 withval=$with_gif;
2015 else
2016 with_gif=yes
2017 fi
2018
2019
2020 # Check whether --with-png was given.
2021 if test "${with_png+set}" = set; then
2022 withval=$with_png;
2023 else
2024 with_png=yes
2025 fi
2026
2027
2028 # Check whether --with-rsvg was given.
2029 if test "${with_rsvg+set}" = set; then
2030 withval=$with_rsvg;
2031 else
2032 with_rsvg=yes
2033 fi
2034
2035
2036
2037 # Check whether --with-freetype was given.
2038 if test "${with_freetype+set}" = set; then
2039 withval=$with_freetype;
2040 else
2041 with_freetype=yes
2042 fi
2043
2044
2045 # Check whether --with-xft was given.
2046 if test "${with_xft+set}" = set; then
2047 withval=$with_xft;
2048 else
2049 with_xft=yes
2050 fi
2051
2052
2053 # Check whether --with-libotf was given.
2054 if test "${with_libotf+set}" = set; then
2055 withval=$with_libotf;
2056 else
2057 with_libotf=yes
2058 fi
2059
2060
2061 # Check whether --with-m17n-flt was given.
2062 if test "${with_m17n_flt+set}" = set; then
2063 withval=$with_m17n_flt;
2064 else
2065 with_m17n_flt=yes
2066 fi
2067
2068
2069
2070 # Check whether --with-toolkit-scroll-bars was given.
2071 if test "${with_toolkit_scroll_bars+set}" = set; then
2072 withval=$with_toolkit_scroll_bars;
2073 else
2074 with_toolkit_scroll_bars=yes
2075 fi
2076
2077
2078 # Check whether --with-xaw3d was given.
2079 if test "${with_xaw3d+set}" = set; then
2080 withval=$with_xaw3d;
2081 else
2082 with_xaw3d=yes
2083 fi
2084
2085
2086 # Check whether --with-xim was given.
2087 if test "${with_xim+set}" = set; then
2088 withval=$with_xim;
2089 else
2090 with_xim=yes
2091 fi
2092
2093
2094 # Check whether --with-ns was given.
2095 if test "${with_ns+set}" = set; then
2096 withval=$with_ns;
2097 else
2098 with_ns=no
2099 fi
2100
2101
2102
2103 # Check whether --with-gpm was given.
2104 if test "${with_gpm+set}" = set; then
2105 withval=$with_gpm;
2106 else
2107 with_gpm=yes
2108 fi
2109
2110
2111 # Check whether --with-dbus was given.
2112 if test "${with_dbus+set}" = set; then
2113 withval=$with_dbus;
2114 else
2115 with_dbus=yes
2116 fi
2117
2118
2119 ## For the times when you want to build Emacs but don't have
2120 ## a suitable makeinfo, and can live without the manuals.
2121
2122 # Check whether --with-makeinfo was given.
2123 if test "${with_makeinfo+set}" = set; then
2124 withval=$with_makeinfo;
2125 else
2126 with_makeinfo=yes
2127 fi
2128
2129
2130
2131 # Check whether --with-gtk was given.
2132 if test "${with_gtk+set}" = set; then
2133 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2134 specify a toolkit." >&5
2135 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2136 specify a toolkit." >&2;}
2137 { (exit 1); exit 1; }; }
2138 fi
2139
2140
2141
2142 # Check whether --with-gcc was given.
2143 if test "${with_gcc+set}" = set; then
2144 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2145 variable to specify a compiler." >&5
2146 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2147 variable to specify a compiler." >&2;}
2148 { (exit 1); exit 1; }; }
2149 fi
2150
2151
2152
2153 # Check whether --with-pkg-config-prog was given.
2154 if test "${with_pkg_config_prog+set}" = set; then
2155 withval=$with_pkg_config_prog;
2156 fi
2157
2158 if test "X${with_pkg_config_prog}" != X; then
2159 if test "${with_pkg_config_prog}" != yes; then
2160 PKG_CONFIG="${with_pkg_config_prog}"
2161 fi
2162 fi
2163
2164
2165 # Check whether --with-gnustep-conf was given.
2166 if test "${with_gnustep_conf+set}" = set; then
2167 withval=$with_gnustep_conf;
2168 fi
2169
2170 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2171 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2172 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2173 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2174
2175 # Check whether --enable-cocoa-experimental-ctrl-g was given.
2176 if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then
2177 enableval=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G=$enableval
2178 else
2179 EN_COCOA_EXPERIMENTAL_CTRL_G=no
2180 fi
2181
2182
2183 # Check whether --enable-ns-self-contained was given.
2184 if test "${enable_ns_self_contained+set}" = set; then
2185 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2186 else
2187 EN_NS_SELF_CONTAINED=yes
2188 fi
2189
2190
2191 # Check whether --enable-asserts was given.
2192 if test "${enable_asserts+set}" = set; then
2193 enableval=$enable_asserts; USE_XASSERTS=$enableval
2194 else
2195 USE_XASSERTS=no
2196 fi
2197
2198
2199 # Check whether --enable-maintainer-mode was given.
2200 if test "${enable_maintainer_mode+set}" = set; then
2201 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2202 else
2203 USE_MAINTAINER_MODE=no
2204 fi
2205
2206 if test $USE_MAINTAINER_MODE = yes; then
2207 MAINT=
2208 else
2209 MAINT=#
2210 fi
2211
2212
2213 # Check whether --enable-locallisppath was given.
2214 if test "${enable_locallisppath+set}" = set; then
2215 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2216 locallisppath=
2217 elif test "${enableval}" != "yes"; then
2218 locallisppath=${enableval}
2219 fi
2220 fi
2221
2222
2223 #### Make srcdir absolute, if it isn't already. It's important to
2224 #### avoid running the path through pwd unnecessarily, since pwd can
2225 #### give you automounter prefixes, which can go away. We do all this
2226 #### so Emacs can find its files when run uninstalled.
2227 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2228 unset CDPATH
2229 case "${srcdir}" in
2230 /* ) ;;
2231 . )
2232 ## We may be able to use the $PWD environment variable to make this
2233 ## absolute. But sometimes PWD is inaccurate.
2234 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2235 ## but that tested only for a well-formed and valid PWD,
2236 ## it did not object when PWD was well-formed and valid but just wrong.
2237 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2238 then
2239 srcdir="$PWD"
2240 else
2241 srcdir="`(cd ${srcdir}; pwd)`"
2242 fi
2243 ;;
2244 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2245 esac
2246
2247 #### Check if the source directory already has a configured system in it.
2248 if test `pwd` != `(cd ${srcdir} && pwd)` \
2249 && test -f "${srcdir}/src/config.h" ; then
2250 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2251 as a build directory right now; it has been configured in its own
2252 right. To configure in another directory as well, you MUST
2253 use GNU make. If you do not have GNU make, then you must
2254 now do \`make distclean' in ${srcdir},
2255 and then run $0 again." >&5
2256 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2257 as a build directory right now; it has been configured in its own
2258 right. To configure in another directory as well, you MUST
2259 use GNU make. If you do not have GNU make, then you must
2260 now do \`make distclean' in ${srcdir},
2261 and then run $0 again." >&2;}
2262 fi
2263
2264 #### Given the configuration name, set machfile and opsysfile to the
2265 #### names of the m/*.h and s/*.h files we should use.
2266
2267 ### Canonicalize the configuration name.
2268
2269 ac_aux_dir=
2270 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2271 if test -f "$ac_dir/install-sh"; then
2272 ac_aux_dir=$ac_dir
2273 ac_install_sh="$ac_aux_dir/install-sh -c"
2274 break
2275 elif test -f "$ac_dir/install.sh"; then
2276 ac_aux_dir=$ac_dir
2277 ac_install_sh="$ac_aux_dir/install.sh -c"
2278 break
2279 elif test -f "$ac_dir/shtool"; then
2280 ac_aux_dir=$ac_dir
2281 ac_install_sh="$ac_aux_dir/shtool install -c"
2282 break
2283 fi
2284 done
2285 if test -z "$ac_aux_dir"; then
2286 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2287 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2288 { (exit 1); exit 1; }; }
2289 fi
2290
2291 # These three variables are undocumented and unsupported,
2292 # and are intended to be withdrawn in a future Autoconf release.
2293 # They can cause serious problems if a builder's source tree is in a directory
2294 # whose full name contains unusual characters.
2295 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2296 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2297 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2298
2299
2300 # Make sure we can run config.sub.
2301 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2302 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2303 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2304 { (exit 1); exit 1; }; }
2305
2306 { echo "$as_me:$LINENO: checking build system type" >&5
2307 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2308 if test "${ac_cv_build+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311 ac_build_alias=$build_alias
2312 test "x$ac_build_alias" = x &&
2313 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2314 test "x$ac_build_alias" = x &&
2315 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2316 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2317 { (exit 1); exit 1; }; }
2318 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2319 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2320 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2321 { (exit 1); exit 1; }; }
2322
2323 fi
2324 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2325 echo "${ECHO_T}$ac_cv_build" >&6; }
2326 case $ac_cv_build in
2327 *-*-*) ;;
2328 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2329 echo "$as_me: error: invalid value of canonical build" >&2;}
2330 { (exit 1); exit 1; }; };;
2331 esac
2332 build=$ac_cv_build
2333 ac_save_IFS=$IFS; IFS='-'
2334 set x $ac_cv_build
2335 shift
2336 build_cpu=$1
2337 build_vendor=$2
2338 shift; shift
2339 # Remember, the first character of IFS is used to create $*,
2340 # except with old shells:
2341 build_os=$*
2342 IFS=$ac_save_IFS
2343 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2344
2345
2346 { echo "$as_me:$LINENO: checking host system type" >&5
2347 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2348 if test "${ac_cv_host+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351 if test "x$host_alias" = x; then
2352 ac_cv_host=$ac_cv_build
2353 else
2354 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2355 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2356 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2357 { (exit 1); exit 1; }; }
2358 fi
2359
2360 fi
2361 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2362 echo "${ECHO_T}$ac_cv_host" >&6; }
2363 case $ac_cv_host in
2364 *-*-*) ;;
2365 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2366 echo "$as_me: error: invalid value of canonical host" >&2;}
2367 { (exit 1); exit 1; }; };;
2368 esac
2369 host=$ac_cv_host
2370 ac_save_IFS=$IFS; IFS='-'
2371 set x $ac_cv_host
2372 shift
2373 host_cpu=$1
2374 host_vendor=$2
2375 shift; shift
2376 # Remember, the first character of IFS is used to create $*,
2377 # except with old shells:
2378 host_os=$*
2379 IFS=$ac_save_IFS
2380 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2381
2382
2383 canonical=$host
2384 configuration=${host_alias-${build_alias-$host}}
2385
2386
2387
2388 ### If you add support for a new configuration, add code to this
2389 ### switch statement to recognize your configuration name and select
2390 ### the appropriate operating system and machine description files.
2391
2392 ### You would hope that you could choose an m/*.h file pretty much
2393 ### based on the machine portion of the configuration name, and an s-
2394 ### file based on the operating system portion. However, it turns out
2395 ### that each m/*.h file is pretty manufacturer-specific - for
2396 ### example mips.h is MIPS
2397 ### So we basically have to have a special case for each
2398 ### configuration name.
2399 ###
2400 ### As far as handling version numbers on operating systems is
2401 ### concerned, make sure things will fail in a fixable way. If
2402 ### /etc/MACHINES doesn't say anything about version numbers, be
2403 ### prepared to handle anything reasonably. If version numbers
2404 ### matter, be sure /etc/MACHINES says something about it.
2405 ###
2406 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2407 ### "System V Release 4"; he writes, "The old convention encouraged
2408 ### confusion between `system' and `release' levels'."
2409
2410 machine='' opsys='' unported=no
2411 case "${canonical}" in
2412
2413 ## FreeBSD ports
2414 *-*-freebsd* )
2415 opsys=freebsd
2416 case "${canonical}" in
2417 alpha*-*-freebsd*) machine=alpha ;;
2418 arm*-*-freebsd*) machine=arm ;;
2419 ia64-*-freebsd*) machine=ia64 ;;
2420 sparc-*-freebsd*) machine=sparc ;;
2421 sparc64-*-freebsd*) machine=sparc ;;
2422 powerpc-*-freebsd*) machine=macppc ;;
2423 i[3456]86-*-freebsd*) machine=intel386 ;;
2424 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2425 esac
2426 ;;
2427
2428 ## FreeBSD kernel + glibc based userland
2429 *-*-kfreebsd*gnu* )
2430 opsys=gnu-kfreebsd
2431 case "${canonical}" in
2432 alpha*-*-kfreebsd*) machine=alpha ;;
2433 ia64-*-kfreebsd*) machine=ia64 ;;
2434 sparc-*-kfreebsd*) machine=sparc ;;
2435 sparc64-*-kfreebsd*) machine=sparc ;;
2436 powerpc-*-kfreebsd*) machine=macppc ;;
2437 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2438 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2439 esac
2440 ;;
2441
2442 ## NetBSD ports
2443 *-*-netbsd* )
2444 opsys=netbsd
2445 if test -f /usr/lib/crti.o; then
2446
2447 cat >>confdefs.h <<\_ACEOF
2448 #define HAVE_CRTIN
2449 _ACEOF
2450
2451 fi
2452
2453 case "${canonical}" in
2454 alpha*-*-netbsd*) machine=alpha ;;
2455 i[3456]86-*-netbsd*) machine=intel386 ;;
2456 powerpc-*-netbsd*) machine=macppc ;;
2457 sparc*-*-netbsd*) machine=sparc ;;
2458 vax-*-netbsd*) machine=vax ;;
2459 arm-*-netbsd*) machine=arm ;;
2460 x86_64-*-netbsd*) machine=amdx86-64 ;;
2461 hppa-*-netbsd*) machine=hp800 ;;
2462 m68k-*-netbsd*) machine=m68k ;;
2463 esac
2464 ;;
2465
2466 ## OpenBSD ports
2467 *-*-openbsd* )
2468 opsys=openbsd
2469 case "${canonical}" in
2470 alpha*-*-openbsd*) machine=alpha ;;
2471 arm-*-openbsd*) machine=arm ;;
2472 i386-*-openbsd*) machine=intel386 ;;
2473 powerpc-*-openbsd*) machine=macppc ;;
2474 sparc*-*-openbsd*) machine=sparc ;;
2475 vax-*-openbsd*) machine=vax ;;
2476 x86_64-*-openbsd*) machine=amdx86-64 ;;
2477 hppa-*-openbsd*) machine=hp800 ;;
2478 esac
2479 ;;
2480
2481 ## LynxOS ports
2482 *-*-lynxos* )
2483 opsys=lynxos
2484 case "${canonical}" in
2485 i[3456]86-*-lynxos*) machine=intel386 ;;
2486 powerpc-*-lynxos*) machine=powerpc ;;
2487 esac
2488 ;;
2489
2490 alpha*-*-linux-gnu* )
2491 machine=alpha opsys=gnu-linux
2492 ;;
2493
2494 arm*-*-linux-gnu* )
2495 machine=arm opsys=gnu-linux
2496 ;;
2497
2498 ## Apple Darwin / Mac OS X
2499 *-apple-darwin* )
2500 case "${canonical}" in
2501 i[3456]86-* ) machine=intel386 ;;
2502 powerpc-* ) machine=macppc ;;
2503 * ) unported=yes ;;
2504 esac
2505 opsys=darwin
2506 # Define CPP as follows to make autoconf work correctly.
2507 CPP="${CC-cc} -E -no-cpp-precomp"
2508 # Use fink packages if available.
2509 if test -d /sw/include && test -d /sw/lib; then
2510 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2511 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2512 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2513 fi
2514 ;;
2515
2516 ## HP 9000 series 700 and 800, running HP/UX
2517 hppa*-hp-hpux10.2* )
2518 machine=hp800 opsys=hpux10-20
2519 ;;
2520 hppa*-hp-hpux1[1-9]* )
2521 machine=hp800 opsys=hpux11
2522 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2523 ;;
2524
2525 hppa*-*-linux-gnu* )
2526 machine=hp800 opsys=gnu-linux
2527 ;;
2528
2529 ## IBM machines
2530 s390-*-linux-gnu* )
2531 machine=ibms390 opsys=gnu-linux
2532 ;;
2533 s390x-*-linux-gnu* )
2534 machine=ibms390x opsys=gnu-linux
2535 ;;
2536 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2537 machine=ibmrs6000 opsys=aix4-2
2538 ;;
2539 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2540 machine=ibmrs6000 opsys=aix4-2
2541 ;;
2542 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2543 machine=ibmrs6000 opsys=aix4-2
2544 ;;
2545 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2546 machine=ibmrs6000 opsys=aix4-2
2547 ;;
2548
2549 ## Macintosh PowerPC
2550 powerpc*-*-linux-gnu* )
2551 machine=macppc opsys=gnu-linux
2552 ;;
2553
2554 ## Silicon Graphics machines
2555 ## Iris 4D
2556 mips-sgi-irix6.5 )
2557 machine=iris4d opsys=irix6-5
2558 # Without defining _LANGUAGE_C, things get masked out in the headers
2559 # so that, for instance, grepping for `free' in stdlib.h fails and
2560 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2561 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2562 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2563 ;;
2564
2565 ## Suns
2566 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2567 machine=sparc opsys=gnu-linux
2568 ;;
2569
2570 *-sun-solaris* \
2571 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2572 | x86_64-*-solaris2* | x86_64-*-sunos5* \
2573 | powerpc*-*-solaris2* | rs6000-*-solaris2*)
2574 case "${canonical}" in
2575 i[3456]86-*-* ) machine=intel386 ;;
2576 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2577 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2578 sparc* ) machine=sparc ;;
2579 * ) unported=yes ;;
2580 esac
2581 case "${canonical}" in
2582 *-sunos5.3* | *-solaris2.3* )
2583 opsys=sol2-3
2584 NON_GNU_CPP=/usr/ccs/lib/cpp
2585 ;;
2586 *-sunos5.4* | *-solaris2.4* )
2587 opsys=sol2-4
2588 NON_GNU_CPP=/usr/ccs/lib/cpp
2589 RANLIB="ar -ts"
2590 ;;
2591 *-sunos5.5* | *-solaris2.5* )
2592 opsys=sol2-5
2593 NON_GNU_CPP=/usr/ccs/lib/cpp
2594 RANLIB="ar -ts"
2595 ;;
2596 *-sunos5.6* | *-solaris2.6* )
2597 opsys=sol2-6
2598 NON_GNU_CPP=/usr/ccs/lib/cpp
2599 RANLIB="ar -ts"
2600 ;;
2601 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2602 opsys=sol2-6
2603 emacs_check_sunpro_c=yes
2604 NON_GNU_CPP=/usr/ccs/lib/cpp
2605 ;;
2606 *-sunos5* | *-solaris* )
2607 opsys=sol2-10
2608 emacs_check_sunpro_c=yes
2609 NON_GNU_CPP=/usr/ccs/lib/cpp
2610 ;;
2611 esac
2612 ## Watch out for a compiler that we know will not work.
2613 case "${canonical}" in
2614 *-solaris* | *-sunos5* )
2615 if [ "x$CC" = x/usr/ucb/cc ]; then
2616 ## /usr/ucb/cc doesn't work;
2617 ## we should find some other compiler that does work.
2618 unset CC
2619 fi
2620 ;;
2621 *) ;;
2622 esac
2623 ;;
2624
2625 ## Vaxen.
2626 vax-dec-* )
2627 machine=vax
2628 case "${canonical}" in
2629 *-vms* ) opsys=vms ;;
2630 * ) unported=yes
2631 esac
2632 ;;
2633
2634 ## IA-64
2635 ia64*-*-linux* )
2636 machine=ia64 opsys=gnu-linux
2637 ;;
2638
2639 ## Intel 386 machines where we don't care about the manufacturer
2640 i[3456]86-*-* )
2641 machine=intel386
2642 case "${canonical}" in
2643 *-cygwin ) opsys=cygwin ;;
2644 *-darwin* ) opsys=darwin
2645 CPP="${CC-cc} -E -no-cpp-precomp"
2646 ;;
2647 *-linux-gnu* ) opsys=gnu-linux ;;
2648 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2649 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2650 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2651 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2652 esac
2653 ;;
2654
2655 ## m68k Linux-based GNU system
2656 m68k-*-linux-gnu* )
2657 machine=m68k opsys=gnu-linux
2658 ;;
2659
2660 ## Mips Linux-based GNU system
2661 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2662 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2663 machine=mips opsys=gnu-linux
2664 ;;
2665
2666 ## AMD x86-64 Linux-based GNU system
2667 x86_64-*-linux-gnu* )
2668 machine=amdx86-64 opsys=gnu-linux
2669 ;;
2670
2671 ## Tensilica Xtensa Linux-based GNU system
2672 xtensa*-*-linux-gnu* )
2673 machine=xtensa opsys=gnu-linux
2674 ;;
2675
2676 ## SuperH Linux-based GNU system
2677 sh[34]*-*-linux-gnu* )
2678 machine=sh3 opsys=gnu-linux
2679 ;;
2680
2681 * )
2682 unported=yes
2683 ;;
2684 esac
2685
2686 ### If the code above didn't choose an operating system, just choose
2687 ### an operating system based on the configuration name. You really
2688 ### only want to use this when you have no idea what the right
2689 ### operating system is; if you know what operating systems a machine
2690 ### runs, it's cleaner to make it explicit in the case statement
2691 ### above.
2692 if test x"${opsys}" = x; then
2693 case "${canonical}" in
2694 *-gnu* ) opsys=gnu ;;
2695 *-sysv4.2uw* ) opsys=unixware ;;
2696 *-sysv5uw* ) opsys=unixware ;;
2697 *-sysv5OpenUNIX* ) opsys=unixware ;;
2698 *-sysv4.1* | *-sysvr4.1* )
2699 NON_GNU_CPP=/usr/lib/cpp
2700 opsys=usg5-4 ;;
2701 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2702 if [ x$NON_GNU_CPP = x ]; then
2703 if [ -f /usr/ccs/lib/cpp ]; then
2704 NON_GNU_CPP=/usr/ccs/lib/cpp
2705 else
2706 NON_GNU_CPP=/lib/cpp
2707 fi
2708 fi
2709 opsys=usg5-4-2 ;;
2710 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2711 * )
2712 unported=yes
2713 ;;
2714 esac
2715 fi
2716
2717
2718
2719 if test $unported = yes; then
2720 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2721 Check \`etc/MACHINES' for recognized configuration names." >&5
2722 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2723 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2724 { (exit 1); exit 1; }; }
2725 fi
2726
2727 machfile="m/${machine}.h"
2728 opsysfile="s/${opsys}.h"
2729
2730
2731 #### Choose a compiler.
2732 test -n "$CC" && cc_specified=yes
2733
2734 # Save the value of CFLAGS that the user specified.
2735 SPECIFIED_CFLAGS="$CFLAGS"
2736
2737 ac_ext=c
2738 ac_cpp='$CPP $CPPFLAGS'
2739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2742 if test -n "$ac_tool_prefix"; then
2743 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2744 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2747 if test "${ac_cv_prog_CC+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2749 else
2750 if test -n "$CC"; then
2751 ac_cv_prog_CC="$CC" # Let the user override the test.
2752 else
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 for as_dir in $PATH
2755 do
2756 IFS=$as_save_IFS
2757 test -z "$as_dir" && as_dir=.
2758 for ac_exec_ext in '' $ac_executable_extensions; do
2759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2760 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 break 2
2763 fi
2764 done
2765 done
2766 IFS=$as_save_IFS
2767
2768 fi
2769 fi
2770 CC=$ac_cv_prog_CC
2771 if test -n "$CC"; then
2772 { echo "$as_me:$LINENO: result: $CC" >&5
2773 echo "${ECHO_T}$CC" >&6; }
2774 else
2775 { echo "$as_me:$LINENO: result: no" >&5
2776 echo "${ECHO_T}no" >&6; }
2777 fi
2778
2779
2780 fi
2781 if test -z "$ac_cv_prog_CC"; then
2782 ac_ct_CC=$CC
2783 # Extract the first word of "gcc", so it can be a program name with args.
2784 set dummy gcc; ac_word=$2
2785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2788 echo $ECHO_N "(cached) $ECHO_C" >&6
2789 else
2790 if test -n "$ac_ct_CC"; then
2791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2795 do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800 ac_cv_prog_ac_ct_CC="gcc"
2801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2803 fi
2804 done
2805 done
2806 IFS=$as_save_IFS
2807
2808 fi
2809 fi
2810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2811 if test -n "$ac_ct_CC"; then
2812 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2813 echo "${ECHO_T}$ac_ct_CC" >&6; }
2814 else
2815 { echo "$as_me:$LINENO: result: no" >&5
2816 echo "${ECHO_T}no" >&6; }
2817 fi
2818
2819 if test "x$ac_ct_CC" = x; then
2820 CC=""
2821 else
2822 case $cross_compiling:$ac_tool_warned in
2823 yes:)
2824 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2825 whose name does not start with the host triplet. If you think this
2826 configuration is useful to you, please write to autoconf@gnu.org." >&5
2827 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2828 whose name does not start with the host triplet. If you think this
2829 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2830 ac_tool_warned=yes ;;
2831 esac
2832 CC=$ac_ct_CC
2833 fi
2834 else
2835 CC="$ac_cv_prog_CC"
2836 fi
2837
2838 if test -z "$CC"; then
2839 if test -n "$ac_tool_prefix"; then
2840 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2841 set dummy ${ac_tool_prefix}cc; ac_word=$2
2842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2844 if test "${ac_cv_prog_CC+set}" = set; then
2845 echo $ECHO_N "(cached) $ECHO_C" >&6
2846 else
2847 if test -n "$CC"; then
2848 ac_cv_prog_CC="$CC" # Let the user override the test.
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2852 do
2853 IFS=$as_save_IFS
2854 test -z "$as_dir" && as_dir=.
2855 for ac_exec_ext in '' $ac_executable_extensions; do
2856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2857 ac_cv_prog_CC="${ac_tool_prefix}cc"
2858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 break 2
2860 fi
2861 done
2862 done
2863 IFS=$as_save_IFS
2864
2865 fi
2866 fi
2867 CC=$ac_cv_prog_CC
2868 if test -n "$CC"; then
2869 { echo "$as_me:$LINENO: result: $CC" >&5
2870 echo "${ECHO_T}$CC" >&6; }
2871 else
2872 { echo "$as_me:$LINENO: result: no" >&5
2873 echo "${ECHO_T}no" >&6; }
2874 fi
2875
2876
2877 fi
2878 fi
2879 if test -z "$CC"; then
2880 # Extract the first word of "cc", so it can be a program name with args.
2881 set dummy cc; ac_word=$2
2882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2884 if test "${ac_cv_prog_CC+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 else
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC="$CC" # Let the user override the test.
2889 else
2890 ac_prog_rejected=no
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 for as_dir in $PATH
2893 do
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2898 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2899 ac_prog_rejected=yes
2900 continue
2901 fi
2902 ac_cv_prog_CC="cc"
2903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 break 2
2905 fi
2906 done
2907 done
2908 IFS=$as_save_IFS
2909
2910 if test $ac_prog_rejected = yes; then
2911 # We found a bogon in the path, so make sure we never use it.
2912 set dummy $ac_cv_prog_CC
2913 shift
2914 if test $# != 0; then
2915 # We chose a different compiler from the bogus one.
2916 # However, it has the same basename, so the bogon will be chosen
2917 # first if we set CC to just the basename; use the full file name.
2918 shift
2919 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2920 fi
2921 fi
2922 fi
2923 fi
2924 CC=$ac_cv_prog_CC
2925 if test -n "$CC"; then
2926 { echo "$as_me:$LINENO: result: $CC" >&5
2927 echo "${ECHO_T}$CC" >&6; }
2928 else
2929 { echo "$as_me:$LINENO: result: no" >&5
2930 echo "${ECHO_T}no" >&6; }
2931 fi
2932
2933
2934 fi
2935 if test -z "$CC"; then
2936 if test -n "$ac_tool_prefix"; then
2937 for ac_prog in cl.exe
2938 do
2939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2943 if test "${ac_cv_prog_CC+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2945 else
2946 if test -n "$CC"; then
2947 ac_cv_prog_CC="$CC" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952 IFS=$as_save_IFS
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 break 2
2959 fi
2960 done
2961 done
2962 IFS=$as_save_IFS
2963
2964 fi
2965 fi
2966 CC=$ac_cv_prog_CC
2967 if test -n "$CC"; then
2968 { echo "$as_me:$LINENO: result: $CC" >&5
2969 echo "${ECHO_T}$CC" >&6; }
2970 else
2971 { echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6; }
2973 fi
2974
2975
2976 test -n "$CC" && break
2977 done
2978 fi
2979 if test -z "$CC"; then
2980 ac_ct_CC=$CC
2981 for ac_prog in cl.exe
2982 do
2983 # Extract the first word of "$ac_prog", so it can be a program name with args.
2984 set dummy $ac_prog; ac_word=$2
2985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2987 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990 if test -n "$ac_ct_CC"; then
2991 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2992 else
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 for as_dir in $PATH
2995 do
2996 IFS=$as_save_IFS
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3000 ac_cv_prog_ac_ct_CC="$ac_prog"
3001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 break 2
3003 fi
3004 done
3005 done
3006 IFS=$as_save_IFS
3007
3008 fi
3009 fi
3010 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3011 if test -n "$ac_ct_CC"; then
3012 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3013 echo "${ECHO_T}$ac_ct_CC" >&6; }
3014 else
3015 { echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6; }
3017 fi
3018
3019
3020 test -n "$ac_ct_CC" && break
3021 done
3022
3023 if test "x$ac_ct_CC" = x; then
3024 CC=""
3025 else
3026 case $cross_compiling:$ac_tool_warned in
3027 yes:)
3028 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3029 whose name does not start with the host triplet. If you think this
3030 configuration is useful to you, please write to autoconf@gnu.org." >&5
3031 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3032 whose name does not start with the host triplet. If you think this
3033 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3034 ac_tool_warned=yes ;;
3035 esac
3036 CC=$ac_ct_CC
3037 fi
3038 fi
3039
3040 fi
3041
3042
3043 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3044 See \`config.log' for more details." >&5
3045 echo "$as_me: error: no acceptable C compiler found in \$PATH
3046 See \`config.log' for more details." >&2;}
3047 { (exit 1); exit 1; }; }
3048
3049 # Provide some information about the compiler.
3050 echo "$as_me:$LINENO: checking for C compiler version" >&5
3051 ac_compiler=`set X $ac_compile; echo $2`
3052 { (ac_try="$ac_compiler --version >&5"
3053 case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056 esac
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_compiler --version >&5") 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }
3062 { (ac_try="$ac_compiler -v >&5"
3063 case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066 esac
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_compiler -v >&5") 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }
3072 { (ac_try="$ac_compiler -V >&5"
3073 case "(($ac_try" in
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3076 esac
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078 (eval "$ac_compiler -V >&5") 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }
3082
3083 cat >conftest.$ac_ext <<_ACEOF
3084 /* confdefs.h. */
3085 _ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h. */
3089
3090 int
3091 main ()
3092 {
3093
3094 ;
3095 return 0;
3096 }
3097 _ACEOF
3098 ac_clean_files_save=$ac_clean_files
3099 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3100 # Try to create an executable without -o first, disregard a.out.
3101 # It will help us diagnose broken compilers, and finding out an intuition
3102 # of exeext.
3103 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3104 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3105 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3106 #
3107 # List of possible output files, starting from the most likely.
3108 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3109 # only as a last resort. b.out is created by i960 compilers.
3110 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3111 #
3112 # The IRIX 6 linker writes into existing files which may not be
3113 # executable, retaining their permissions. Remove them first so a
3114 # subsequent execution test works.
3115 ac_rmfiles=
3116 for ac_file in $ac_files
3117 do
3118 case $ac_file in
3119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3120 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3121 esac
3122 done
3123 rm -f $ac_rmfiles
3124
3125 if { (ac_try="$ac_link_default"
3126 case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129 esac
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_link_default") 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; then
3135 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3136 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3137 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3138 # so that the user can short-circuit this test for compilers unknown to
3139 # Autoconf.
3140 for ac_file in $ac_files ''
3141 do
3142 test -f "$ac_file" || continue
3143 case $ac_file in
3144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3145 ;;
3146 [ab].out )
3147 # We found the default executable, but exeext='' is most
3148 # certainly right.
3149 break;;
3150 *.* )
3151 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3152 then :; else
3153 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3154 fi
3155 # We set ac_cv_exeext here because the later test for it is not
3156 # safe: cross compilers may not add the suffix if given an `-o'
3157 # argument, so we may need to know it at that point already.
3158 # Even if this section looks crufty: it has the advantage of
3159 # actually working.
3160 break;;
3161 * )
3162 break;;
3163 esac
3164 done
3165 test "$ac_cv_exeext" = no && ac_cv_exeext=
3166
3167 else
3168 ac_file=''
3169 fi
3170
3171 { echo "$as_me:$LINENO: result: $ac_file" >&5
3172 echo "${ECHO_T}$ac_file" >&6; }
3173 if test -z "$ac_file"; then
3174 echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3176
3177 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3178 See \`config.log' for more details." >&5
3179 echo "$as_me: error: C compiler cannot create executables
3180 See \`config.log' for more details." >&2;}
3181 { (exit 77); exit 77; }; }
3182 fi
3183
3184 ac_exeext=$ac_cv_exeext
3185
3186 # Check that the compiler produces executables we can run. If not, either
3187 # the compiler is broken, or we cross compile.
3188 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3189 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3190 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3191 # If not cross compiling, check that we can run a simple program.
3192 if test "$cross_compiling" != yes; then
3193 if { ac_try='./$ac_file'
3194 { (case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197 esac
3198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_try") 2>&5
3200 ac_status=$?
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; }; then
3203 cross_compiling=no
3204 else
3205 if test "$cross_compiling" = maybe; then
3206 cross_compiling=yes
3207 else
3208 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3209 If you meant to cross compile, use \`--host'.
3210 See \`config.log' for more details." >&5
3211 echo "$as_me: error: cannot run C compiled programs.
3212 If you meant to cross compile, use \`--host'.
3213 See \`config.log' for more details." >&2;}
3214 { (exit 1); exit 1; }; }
3215 fi
3216 fi
3217 fi
3218 { echo "$as_me:$LINENO: result: yes" >&5
3219 echo "${ECHO_T}yes" >&6; }
3220
3221 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3222 ac_clean_files=$ac_clean_files_save
3223 # Check that the compiler produces executables we can run. If not, either
3224 # the compiler is broken, or we cross compile.
3225 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3226 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3227 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3228 echo "${ECHO_T}$cross_compiling" >&6; }
3229
3230 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3231 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3232 if { (ac_try="$ac_link"
3233 case "(($ac_try" in
3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3236 esac
3237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3238 (eval "$ac_link") 2>&5
3239 ac_status=$?
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); }; then
3242 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3243 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3244 # work properly (i.e., refer to `conftest.exe'), while it won't with
3245 # `rm'.
3246 for ac_file in conftest.exe conftest conftest.*; do
3247 test -f "$ac_file" || continue
3248 case $ac_file in
3249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3250 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3251 break;;
3252 * ) break;;
3253 esac
3254 done
3255 else
3256 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3257 See \`config.log' for more details." >&5
3258 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3259 See \`config.log' for more details." >&2;}
3260 { (exit 1); exit 1; }; }
3261 fi
3262
3263 rm -f conftest$ac_cv_exeext
3264 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3265 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3266
3267 rm -f conftest.$ac_ext
3268 EXEEXT=$ac_cv_exeext
3269 ac_exeext=$EXEEXT
3270 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3271 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3272 if test "${ac_cv_objext+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275 cat >conftest.$ac_ext <<_ACEOF
3276 /* confdefs.h. */
3277 _ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h. */
3281
3282 int
3283 main ()
3284 {
3285
3286 ;
3287 return 0;
3288 }
3289 _ACEOF
3290 rm -f conftest.o conftest.obj
3291 if { (ac_try="$ac_compile"
3292 case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295 esac
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_compile") 2>&5
3298 ac_status=$?
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); }; then
3301 for ac_file in conftest.o conftest.obj conftest.*; do
3302 test -f "$ac_file" || continue;
3303 case $ac_file in
3304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3305 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3306 break;;
3307 esac
3308 done
3309 else
3310 echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3312
3313 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3314 See \`config.log' for more details." >&5
3315 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3316 See \`config.log' for more details." >&2;}
3317 { (exit 1); exit 1; }; }
3318 fi
3319
3320 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3321 fi
3322 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3323 echo "${ECHO_T}$ac_cv_objext" >&6; }
3324 OBJEXT=$ac_cv_objext
3325 ac_objext=$OBJEXT
3326 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3327 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3328 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 else
3331 cat >conftest.$ac_ext <<_ACEOF
3332 /* confdefs.h. */
3333 _ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3337
3338 int
3339 main ()
3340 {
3341 #ifndef __GNUC__
3342 choke me
3343 #endif
3344
3345 ;
3346 return 0;
3347 }
3348 _ACEOF
3349 rm -f conftest.$ac_objext
3350 if { (ac_try="$ac_compile"
3351 case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354 esac
3355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3356 (eval "$ac_compile") 2>conftest.er1
3357 ac_status=$?
3358 grep -v '^ *+' conftest.er1 >conftest.err
3359 rm -f conftest.er1
3360 cat conftest.err >&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); } && {
3363 test -z "$ac_c_werror_flag" ||
3364 test ! -s conftest.err
3365 } && test -s conftest.$ac_objext; then
3366 ac_compiler_gnu=yes
3367 else
3368 echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3370
3371 ac_compiler_gnu=no
3372 fi
3373
3374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3375 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3376
3377 fi
3378 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3379 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3380 GCC=`test $ac_compiler_gnu = yes && echo yes`
3381 ac_test_CFLAGS=${CFLAGS+set}
3382 ac_save_CFLAGS=$CFLAGS
3383 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3384 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3385 if test "${ac_cv_prog_cc_g+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388 ac_save_c_werror_flag=$ac_c_werror_flag
3389 ac_c_werror_flag=yes
3390 ac_cv_prog_cc_g=no
3391 CFLAGS="-g"
3392 cat >conftest.$ac_ext <<_ACEOF
3393 /* confdefs.h. */
3394 _ACEOF
3395 cat confdefs.h >>conftest.$ac_ext
3396 cat >>conftest.$ac_ext <<_ACEOF
3397 /* end confdefs.h. */
3398
3399 int
3400 main ()
3401 {
3402
3403 ;
3404 return 0;
3405 }
3406 _ACEOF
3407 rm -f conftest.$ac_objext
3408 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3415 ac_status=$?
3416 grep -v '^ *+' conftest.er1 >conftest.err
3417 rm -f conftest.er1
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } && {
3421 test -z "$ac_c_werror_flag" ||
3422 test ! -s conftest.err
3423 } && test -s conftest.$ac_objext; then
3424 ac_cv_prog_cc_g=yes
3425 else
3426 echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3428
3429 CFLAGS=""
3430 cat >conftest.$ac_ext <<_ACEOF
3431 /* confdefs.h. */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3436
3437 int
3438 main ()
3439 {
3440
3441 ;
3442 return 0;
3443 }
3444 _ACEOF
3445 rm -f conftest.$ac_objext
3446 if { (ac_try="$ac_compile"
3447 case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450 esac
3451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452 (eval "$ac_compile") 2>conftest.er1
3453 ac_status=$?
3454 grep -v '^ *+' conftest.er1 >conftest.err
3455 rm -f conftest.er1
3456 cat conftest.err >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } && {
3459 test -z "$ac_c_werror_flag" ||
3460 test ! -s conftest.err
3461 } && test -s conftest.$ac_objext; then
3462 :
3463 else
3464 echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3466
3467 ac_c_werror_flag=$ac_save_c_werror_flag
3468 CFLAGS="-g"
3469 cat >conftest.$ac_ext <<_ACEOF
3470 /* confdefs.h. */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3475
3476 int
3477 main ()
3478 {
3479
3480 ;
3481 return 0;
3482 }
3483 _ACEOF
3484 rm -f conftest.$ac_objext
3485 if { (ac_try="$ac_compile"
3486 case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489 esac
3490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491 (eval "$ac_compile") 2>conftest.er1
3492 ac_status=$?
3493 grep -v '^ *+' conftest.er1 >conftest.err
3494 rm -f conftest.er1
3495 cat conftest.err >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } && {
3498 test -z "$ac_c_werror_flag" ||
3499 test ! -s conftest.err
3500 } && test -s conftest.$ac_objext; then
3501 ac_cv_prog_cc_g=yes
3502 else
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3505
3506
3507 fi
3508
3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510 fi
3511
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513 fi
3514
3515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3516 ac_c_werror_flag=$ac_save_c_werror_flag
3517 fi
3518 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3519 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3520 if test "$ac_test_CFLAGS" = set; then
3521 CFLAGS=$ac_save_CFLAGS
3522 elif test $ac_cv_prog_cc_g = yes; then
3523 if test "$GCC" = yes; then
3524 CFLAGS="-g -O2"
3525 else
3526 CFLAGS="-g"
3527 fi
3528 else
3529 if test "$GCC" = yes; then
3530 CFLAGS="-O2"
3531 else
3532 CFLAGS=
3533 fi
3534 fi
3535 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3536 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3537 if test "${ac_cv_prog_cc_c89+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540 ac_cv_prog_cc_c89=no
3541 ac_save_CC=$CC
3542 cat >conftest.$ac_ext <<_ACEOF
3543 /* confdefs.h. */
3544 _ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3548 #include <stdarg.h>
3549 #include <stdio.h>
3550 #include <sys/types.h>
3551 #include <sys/stat.h>
3552 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3553 struct buf { int x; };
3554 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3555 static char *e (p, i)
3556 char **p;
3557 int i;
3558 {
3559 return p[i];
3560 }
3561 static char *f (char * (*g) (char **, int), char **p, ...)
3562 {
3563 char *s;
3564 va_list v;
3565 va_start (v,p);
3566 s = g (p, va_arg (v,int));
3567 va_end (v);
3568 return s;
3569 }
3570
3571 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3572 function prototypes and stuff, but not '\xHH' hex character constants.
3573 These don't provoke an error unfortunately, instead are silently treated
3574 as 'x'. The following induces an error, until -std is added to get
3575 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3576 array size at least. It's necessary to write '\x00'==0 to get something
3577 that's true only with -std. */
3578 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3579
3580 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3581 inside strings and character constants. */
3582 #define FOO(x) 'x'
3583 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3584
3585 int test (int i, double x);
3586 struct s1 {int (*f) (int a);};
3587 struct s2 {int (*f) (double a);};
3588 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3589 int argc;
3590 char **argv;
3591 int
3592 main ()
3593 {
3594 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3595 ;
3596 return 0;
3597 }
3598 _ACEOF
3599 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3600 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3601 do
3602 CC="$ac_save_CC $ac_arg"
3603 rm -f conftest.$ac_objext
3604 if { (ac_try="$ac_compile"
3605 case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3608 esac
3609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3610 (eval "$ac_compile") 2>conftest.er1
3611 ac_status=$?
3612 grep -v '^ *+' conftest.er1 >conftest.err
3613 rm -f conftest.er1
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } && {
3617 test -z "$ac_c_werror_flag" ||
3618 test ! -s conftest.err
3619 } && test -s conftest.$ac_objext; then
3620 ac_cv_prog_cc_c89=$ac_arg
3621 else
3622 echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3624
3625
3626 fi
3627
3628 rm -f core conftest.err conftest.$ac_objext
3629 test "x$ac_cv_prog_cc_c89" != "xno" && break
3630 done
3631 rm -f conftest.$ac_ext
3632 CC=$ac_save_CC
3633
3634 fi
3635 # AC_CACHE_VAL
3636 case "x$ac_cv_prog_cc_c89" in
3637 x)
3638 { echo "$as_me:$LINENO: result: none needed" >&5
3639 echo "${ECHO_T}none needed" >&6; } ;;
3640 xno)
3641 { echo "$as_me:$LINENO: result: unsupported" >&5
3642 echo "${ECHO_T}unsupported" >&6; } ;;
3643 *)
3644 CC="$CC $ac_cv_prog_cc_c89"
3645 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3646 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3647 esac
3648
3649
3650 ac_ext=c
3651 ac_cpp='$CPP $CPPFLAGS'
3652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655
3656
3657 # On Suns, sometimes $CPP names a directory.
3658 if test -n "$CPP" && test -d "$CPP"; then
3659 CPP=
3660 fi
3661
3662 ## If not using gcc, and on Solaris, and no CPP specified, see if
3663 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3664 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3665 test x"$CPP" = x; then
3666 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3667 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3668
3669 if test "${emacs_cv_sunpro_c+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672 cat >conftest.$ac_ext <<_ACEOF
3673 /* confdefs.h. */
3674 _ACEOF
3675 cat confdefs.h >>conftest.$ac_ext
3676 cat >>conftest.$ac_ext <<_ACEOF
3677 /* end confdefs.h. */
3678
3679 int
3680 main ()
3681 {
3682 #ifndef __SUNPRO_C
3683 fail;
3684 #endif
3685
3686 ;
3687 return 0;
3688 }
3689 _ACEOF
3690 rm -f conftest.$ac_objext conftest$ac_exeext
3691 if { (ac_try="$ac_link"
3692 case "(($ac_try" in
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3695 esac
3696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3697 (eval "$ac_link") 2>conftest.er1
3698 ac_status=$?
3699 grep -v '^ *+' conftest.er1 >conftest.err
3700 rm -f conftest.er1
3701 cat conftest.err >&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } && {
3704 test -z "$ac_c_werror_flag" ||
3705 test ! -s conftest.err
3706 } && test -s conftest$ac_exeext &&
3707 $as_test_x conftest$ac_exeext; then
3708 emacs_cv_sunpro_c=yes
3709 else
3710 echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3712
3713 emacs_cv_sunpro_c=no
3714 fi
3715
3716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3717 conftest$ac_exeext conftest.$ac_ext
3718 fi
3719
3720 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3721 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3722
3723 if test x"$emacs_cv_sunpro_c" = xyes; then
3724 NON_GNU_CPP="$CC -E -Xs"
3725 fi
3726 fi
3727
3728 #### Some systems specify a CPP to use unless we are using GCC.
3729 #### Now that we know whether we are using GCC, we can decide whether
3730 #### to use that one.
3731 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3732 then
3733 CPP="$NON_GNU_CPP"
3734 fi
3735
3736 #### Some systems specify a CC to use unless we are using GCC.
3737 #### Now that we know whether we are using GCC, we can decide whether
3738 #### to use that one.
3739 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3740 test x$cc_specified != xyes
3741 then
3742 CC="$NON_GNU_CC"
3743 fi
3744
3745 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3746 then
3747 CC="$CC $GCC_TEST_OPTIONS"
3748 fi
3749
3750 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3751 then
3752 CC="$CC $NON_GCC_TEST_OPTIONS"
3753 fi
3754
3755
3756 cat >>confdefs.h <<\_ACEOF
3757 #define _GNU_SOURCE 1
3758 _ACEOF
3759
3760
3761 ac_ext=c
3762 ac_cpp='$CPP $CPPFLAGS'
3763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3766 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3767 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3768 # On Suns, sometimes $CPP names a directory.
3769 if test -n "$CPP" && test -d "$CPP"; then
3770 CPP=
3771 fi
3772 if test -z "$CPP"; then
3773 if test "${ac_cv_prog_CPP+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776 # Double quotes because CPP needs to be expanded
3777 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3778 do
3779 ac_preproc_ok=false
3780 for ac_c_preproc_warn_flag in '' yes
3781 do
3782 # Use a header file that comes with gcc, so configuring glibc
3783 # with a fresh cross-compiler works.
3784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3785 # <limits.h> exists even on freestanding compilers.
3786 # On the NeXT, cc -E runs the code through the compiler's parser,
3787 # not just through cpp. "Syntax error" is here to catch this case.
3788 cat >conftest.$ac_ext <<_ACEOF
3789 /* confdefs.h. */
3790 _ACEOF
3791 cat confdefs.h >>conftest.$ac_ext
3792 cat >>conftest.$ac_ext <<_ACEOF
3793 /* end confdefs.h. */
3794 #ifdef __STDC__
3795 # include <limits.h>
3796 #else
3797 # include <assert.h>
3798 #endif
3799 Syntax error
3800 _ACEOF
3801 if { (ac_try="$ac_cpp conftest.$ac_ext"
3802 case "(($ac_try" in
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3805 esac
3806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3808 ac_status=$?
3809 grep -v '^ *+' conftest.er1 >conftest.err
3810 rm -f conftest.er1
3811 cat conftest.err >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } >/dev/null && {
3814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3815 test ! -s conftest.err
3816 }; then
3817 :
3818 else
3819 echo "$as_me: failed program was:" >&5
3820 sed 's/^/| /' conftest.$ac_ext >&5
3821
3822 # Broken: fails on valid input.
3823 continue
3824 fi
3825
3826 rm -f conftest.err conftest.$ac_ext
3827
3828 # OK, works on sane cases. Now check whether nonexistent headers
3829 # can be detected and how.
3830 cat >conftest.$ac_ext <<_ACEOF
3831 /* confdefs.h. */
3832 _ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h. */
3836 #include <ac_nonexistent.h>
3837 _ACEOF
3838 if { (ac_try="$ac_cpp conftest.$ac_ext"
3839 case "(($ac_try" in
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3842 esac
3843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3845 ac_status=$?
3846 grep -v '^ *+' conftest.er1 >conftest.err
3847 rm -f conftest.er1
3848 cat conftest.err >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); } >/dev/null && {
3851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3852 test ! -s conftest.err
3853 }; then
3854 # Broken: success on invalid input.
3855 continue
3856 else
3857 echo "$as_me: failed program was:" >&5
3858 sed 's/^/| /' conftest.$ac_ext >&5
3859
3860 # Passes both tests.
3861 ac_preproc_ok=:
3862 break
3863 fi
3864
3865 rm -f conftest.err conftest.$ac_ext
3866
3867 done
3868 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3869 rm -f conftest.err conftest.$ac_ext
3870 if $ac_preproc_ok; then
3871 break
3872 fi
3873
3874 done
3875 ac_cv_prog_CPP=$CPP
3876
3877 fi
3878 CPP=$ac_cv_prog_CPP
3879 else
3880 ac_cv_prog_CPP=$CPP
3881 fi
3882 { echo "$as_me:$LINENO: result: $CPP" >&5
3883 echo "${ECHO_T}$CPP" >&6; }
3884 ac_preproc_ok=false
3885 for ac_c_preproc_warn_flag in '' yes
3886 do
3887 # Use a header file that comes with gcc, so configuring glibc
3888 # with a fresh cross-compiler works.
3889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3890 # <limits.h> exists even on freestanding compilers.
3891 # On the NeXT, cc -E runs the code through the compiler's parser,
3892 # not just through cpp. "Syntax error" is here to catch this case.
3893 cat >conftest.$ac_ext <<_ACEOF
3894 /* confdefs.h. */
3895 _ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3899 #ifdef __STDC__
3900 # include <limits.h>
3901 #else
3902 # include <assert.h>
3903 #endif
3904 Syntax error
3905 _ACEOF
3906 if { (ac_try="$ac_cpp conftest.$ac_ext"
3907 case "(($ac_try" in
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3910 esac
3911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3913 ac_status=$?
3914 grep -v '^ *+' conftest.er1 >conftest.err
3915 rm -f conftest.er1
3916 cat conftest.err >&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); } >/dev/null && {
3919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3920 test ! -s conftest.err
3921 }; then
3922 :
3923 else
3924 echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3926
3927 # Broken: fails on valid input.
3928 continue
3929 fi
3930
3931 rm -f conftest.err conftest.$ac_ext
3932
3933 # OK, works on sane cases. Now check whether nonexistent headers
3934 # can be detected and how.
3935 cat >conftest.$ac_ext <<_ACEOF
3936 /* confdefs.h. */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3941 #include <ac_nonexistent.h>
3942 _ACEOF
3943 if { (ac_try="$ac_cpp conftest.$ac_ext"
3944 case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3947 esac
3948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3950 ac_status=$?
3951 grep -v '^ *+' conftest.er1 >conftest.err
3952 rm -f conftest.er1
3953 cat conftest.err >&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } >/dev/null && {
3956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3957 test ! -s conftest.err
3958 }; then
3959 # Broken: success on invalid input.
3960 continue
3961 else
3962 echo "$as_me: failed program was:" >&5
3963 sed 's/^/| /' conftest.$ac_ext >&5
3964
3965 # Passes both tests.
3966 ac_preproc_ok=:
3967 break
3968 fi
3969
3970 rm -f conftest.err conftest.$ac_ext
3971
3972 done
3973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3974 rm -f conftest.err conftest.$ac_ext
3975 if $ac_preproc_ok; then
3976 :
3977 else
3978 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3979 See \`config.log' for more details." >&5
3980 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3981 See \`config.log' for more details." >&2;}
3982 { (exit 1); exit 1; }; }
3983 fi
3984
3985 ac_ext=c
3986 ac_cpp='$CPP $CPPFLAGS'
3987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3990
3991
3992 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3993 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3994 if test "${ac_cv_path_GREP+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 else
3997 # Extract the first word of "grep ggrep" to use in msg output
3998 if test -z "$GREP"; then
3999 set dummy grep ggrep; ac_prog_name=$2
4000 if test "${ac_cv_path_GREP+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 else
4003 ac_path_GREP_found=false
4004 # Loop through the user's path and test for each of PROGNAME-LIST
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4007 do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_prog in grep ggrep; do
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4013 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4014 # Check for GNU ac_path_GREP and select it if it is found.
4015 # Check for GNU $ac_path_GREP
4016 case `"$ac_path_GREP" --version 2>&1` in
4017 *GNU*)
4018 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4019 *)
4020 ac_count=0
4021 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4022 while :
4023 do
4024 cat "conftest.in" "conftest.in" >"conftest.tmp"
4025 mv "conftest.tmp" "conftest.in"
4026 cp "conftest.in" "conftest.nl"
4027 echo 'GREP' >> "conftest.nl"
4028 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4030 ac_count=`expr $ac_count + 1`
4031 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4032 # Best one so far, save it but keep looking for a better one
4033 ac_cv_path_GREP="$ac_path_GREP"
4034 ac_path_GREP_max=$ac_count
4035 fi
4036 # 10*(2^10) chars as input seems more than enough
4037 test $ac_count -gt 10 && break
4038 done
4039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4040 esac
4041
4042
4043 $ac_path_GREP_found && break 3
4044 done
4045 done
4046
4047 done
4048 IFS=$as_save_IFS
4049
4050
4051 fi
4052
4053 GREP="$ac_cv_path_GREP"
4054 if test -z "$GREP"; then
4055 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4056 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4057 { (exit 1); exit 1; }; }
4058 fi
4059
4060 else
4061 ac_cv_path_GREP=$GREP
4062 fi
4063
4064
4065 fi
4066 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4067 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4068 GREP="$ac_cv_path_GREP"
4069
4070
4071 { echo "$as_me:$LINENO: checking for egrep" >&5
4072 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4073 if test "${ac_cv_path_EGREP+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4077 then ac_cv_path_EGREP="$GREP -E"
4078 else
4079 # Extract the first word of "egrep" to use in msg output
4080 if test -z "$EGREP"; then
4081 set dummy egrep; ac_prog_name=$2
4082 if test "${ac_cv_path_EGREP+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 else
4085 ac_path_EGREP_found=false
4086 # Loop through the user's path and test for each of PROGNAME-LIST
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4089 do
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 for ac_prog in egrep; do
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4095 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4096 # Check for GNU ac_path_EGREP and select it if it is found.
4097 # Check for GNU $ac_path_EGREP
4098 case `"$ac_path_EGREP" --version 2>&1` in
4099 *GNU*)
4100 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4101 *)
4102 ac_count=0
4103 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4104 while :
4105 do
4106 cat "conftest.in" "conftest.in" >"conftest.tmp"
4107 mv "conftest.tmp" "conftest.in"
4108 cp "conftest.in" "conftest.nl"
4109 echo 'EGREP' >> "conftest.nl"
4110 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4111 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4112 ac_count=`expr $ac_count + 1`
4113 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4114 # Best one so far, save it but keep looking for a better one
4115 ac_cv_path_EGREP="$ac_path_EGREP"
4116 ac_path_EGREP_max=$ac_count
4117 fi
4118 # 10*(2^10) chars as input seems more than enough
4119 test $ac_count -gt 10 && break
4120 done
4121 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4122 esac
4123
4124
4125 $ac_path_EGREP_found && break 3
4126 done
4127 done
4128
4129 done
4130 IFS=$as_save_IFS
4131
4132
4133 fi
4134
4135 EGREP="$ac_cv_path_EGREP"
4136 if test -z "$EGREP"; then
4137 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4138 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4139 { (exit 1); exit 1; }; }
4140 fi
4141
4142 else
4143 ac_cv_path_EGREP=$EGREP
4144 fi
4145
4146
4147 fi
4148 fi
4149 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4150 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4151 EGREP="$ac_cv_path_EGREP"
4152
4153
4154
4155 { echo "$as_me:$LINENO: checking for AIX" >&5
4156 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4157 cat >conftest.$ac_ext <<_ACEOF
4158 /* confdefs.h. */
4159 _ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h. */
4163 #ifdef _AIX
4164 yes
4165 #endif
4166
4167 _ACEOF
4168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4169 $EGREP "yes" >/dev/null 2>&1; then
4170 { echo "$as_me:$LINENO: result: yes" >&5
4171 echo "${ECHO_T}yes" >&6; }
4172 cat >>confdefs.h <<\_ACEOF
4173 #define _ALL_SOURCE 1
4174 _ACEOF
4175
4176 else
4177 { echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6; }
4179 fi
4180 rm -f conftest*
4181
4182
4183 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4184 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4185 if test "${ac_cv_header_stdc+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 else
4188 cat >conftest.$ac_ext <<_ACEOF
4189 /* confdefs.h. */
4190 _ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4194 #include <stdlib.h>
4195 #include <stdarg.h>
4196 #include <string.h>
4197 #include <float.h>
4198
4199 int
4200 main ()
4201 {
4202
4203 ;
4204 return 0;
4205 }
4206 _ACEOF
4207 rm -f conftest.$ac_objext
4208 if { (ac_try="$ac_compile"
4209 case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212 esac
4213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214 (eval "$ac_compile") 2>conftest.er1
4215 ac_status=$?
4216 grep -v '^ *+' conftest.er1 >conftest.err
4217 rm -f conftest.er1
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } && {
4221 test -z "$ac_c_werror_flag" ||
4222 test ! -s conftest.err
4223 } && test -s conftest.$ac_objext; then
4224 ac_cv_header_stdc=yes
4225 else
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4228
4229 ac_cv_header_stdc=no
4230 fi
4231
4232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4233
4234 if test $ac_cv_header_stdc = yes; then
4235 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4236 cat >conftest.$ac_ext <<_ACEOF
4237 /* confdefs.h. */
4238 _ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h. */
4242 #include <string.h>
4243
4244 _ACEOF
4245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4246 $EGREP "memchr" >/dev/null 2>&1; then
4247 :
4248 else
4249 ac_cv_header_stdc=no
4250 fi
4251 rm -f conftest*
4252
4253 fi
4254
4255 if test $ac_cv_header_stdc = yes; then
4256 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4257 cat >conftest.$ac_ext <<_ACEOF
4258 /* confdefs.h. */
4259 _ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h. */
4263 #include <stdlib.h>
4264
4265 _ACEOF
4266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4267 $EGREP "free" >/dev/null 2>&1; then
4268 :
4269 else
4270 ac_cv_header_stdc=no
4271 fi
4272 rm -f conftest*
4273
4274 fi
4275
4276 if test $ac_cv_header_stdc = yes; then
4277 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4278 if test "$cross_compiling" = yes; then
4279 :
4280 else
4281 cat >conftest.$ac_ext <<_ACEOF
4282 /* confdefs.h. */
4283 _ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h. */
4287 #include <ctype.h>
4288 #include <stdlib.h>
4289 #if ((' ' & 0x0FF) == 0x020)
4290 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4291 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4292 #else
4293 # define ISLOWER(c) \
4294 (('a' <= (c) && (c) <= 'i') \
4295 || ('j' <= (c) && (c) <= 'r') \
4296 || ('s' <= (c) && (c) <= 'z'))
4297 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4298 #endif
4299
4300 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4301 int
4302 main ()
4303 {
4304 int i;
4305 for (i = 0; i < 256; i++)
4306 if (XOR (islower (i), ISLOWER (i))
4307 || toupper (i) != TOUPPER (i))
4308 return 2;
4309 return 0;
4310 }
4311 _ACEOF
4312 rm -f conftest$ac_exeext
4313 if { (ac_try="$ac_link"
4314 case "(($ac_try" in
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4317 esac
4318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319 (eval "$ac_link") 2>&5
4320 ac_status=$?
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4323 { (case "(($ac_try" in
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4326 esac
4327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328 (eval "$ac_try") 2>&5
4329 ac_status=$?
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); }; }; then
4332 :
4333 else
4334 echo "$as_me: program exited with status $ac_status" >&5
4335 echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4337
4338 ( exit $ac_status )
4339 ac_cv_header_stdc=no
4340 fi
4341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4342 fi
4343
4344
4345 fi
4346 fi
4347 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4348 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4349 if test $ac_cv_header_stdc = yes; then
4350
4351 cat >>confdefs.h <<\_ACEOF
4352 #define STDC_HEADERS 1
4353 _ACEOF
4354
4355 fi
4356
4357 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4368 inttypes.h stdint.h unistd.h
4369 do
4370 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 else
4376 cat >conftest.$ac_ext <<_ACEOF
4377 /* confdefs.h. */
4378 _ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h. */
4382 $ac_includes_default
4383
4384 #include <$ac_header>
4385 _ACEOF
4386 rm -f conftest.$ac_objext
4387 if { (ac_try="$ac_compile"
4388 case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4391 esac
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_compile") 2>conftest.er1
4394 ac_status=$?
4395 grep -v '^ *+' conftest.er1 >conftest.err
4396 rm -f conftest.er1
4397 cat conftest.err >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } && {
4400 test -z "$ac_c_werror_flag" ||
4401 test ! -s conftest.err
4402 } && test -s conftest.$ac_objext; then
4403 eval "$as_ac_Header=yes"
4404 else
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4407
4408 eval "$as_ac_Header=no"
4409 fi
4410
4411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4412 fi
4413 ac_res=`eval echo '${'$as_ac_Header'}'`
4414 { echo "$as_me:$LINENO: result: $ac_res" >&5
4415 echo "${ECHO_T}$ac_res" >&6; }
4416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4417 cat >>confdefs.h <<_ACEOF
4418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4419 _ACEOF
4420
4421 fi
4422
4423 done
4424
4425
4426 if test "${ac_cv_header_minix_config_h+set}" = set; then
4427 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4428 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4429 if test "${ac_cv_header_minix_config_h+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 fi
4432 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4433 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4434 else
4435 # Is the header compilable?
4436 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4437 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4438 cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h. */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 $ac_includes_default
4445 #include <minix/config.h>
4446 _ACEOF
4447 rm -f conftest.$ac_objext
4448 if { (ac_try="$ac_compile"
4449 case "(($ac_try" in
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4452 esac
4453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454 (eval "$ac_compile") 2>conftest.er1
4455 ac_status=$?
4456 grep -v '^ *+' conftest.er1 >conftest.err
4457 rm -f conftest.er1
4458 cat conftest.err >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } && {
4461 test -z "$ac_c_werror_flag" ||
4462 test ! -s conftest.err
4463 } && test -s conftest.$ac_objext; then
4464 ac_header_compiler=yes
4465 else
4466 echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4468
4469 ac_header_compiler=no
4470 fi
4471
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4474 echo "${ECHO_T}$ac_header_compiler" >&6; }
4475
4476 # Is the header present?
4477 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4478 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4479 cat >conftest.$ac_ext <<_ACEOF
4480 /* confdefs.h. */
4481 _ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4485 #include <minix/config.h>
4486 _ACEOF
4487 if { (ac_try="$ac_cpp conftest.$ac_ext"
4488 case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491 esac
4492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4494 ac_status=$?
4495 grep -v '^ *+' conftest.er1 >conftest.err
4496 rm -f conftest.er1
4497 cat conftest.err >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } >/dev/null && {
4500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4501 test ! -s conftest.err
4502 }; then
4503 ac_header_preproc=yes
4504 else
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4507
4508 ac_header_preproc=no
4509 fi
4510
4511 rm -f conftest.err conftest.$ac_ext
4512 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4513 echo "${ECHO_T}$ac_header_preproc" >&6; }
4514
4515 # So? What about this header?
4516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4517 yes:no: )
4518 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4519 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4520 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4521 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4522 ac_header_preproc=yes
4523 ;;
4524 no:yes:* )
4525 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4526 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4527 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4528 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4529 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4530 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4531 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4532 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4533 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4534 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4535 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4536 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4537
4538 ;;
4539 esac
4540 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4541 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4542 if test "${ac_cv_header_minix_config_h+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545 ac_cv_header_minix_config_h=$ac_header_preproc
4546 fi
4547 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4548 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4549
4550 fi
4551 if test $ac_cv_header_minix_config_h = yes; then
4552 MINIX=yes
4553 else
4554 MINIX=
4555 fi
4556
4557
4558 if test "$MINIX" = yes; then
4559
4560 cat >>confdefs.h <<\_ACEOF
4561 #define _POSIX_SOURCE 1
4562 _ACEOF
4563
4564
4565 cat >>confdefs.h <<\_ACEOF
4566 #define _POSIX_1_SOURCE 2
4567 _ACEOF
4568
4569
4570 cat >>confdefs.h <<\_ACEOF
4571 #define _MINIX 1
4572 _ACEOF
4573
4574 fi
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4587 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4588 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 else
4591 cat >conftest.$ac_ext <<_ACEOF
4592 /* confdefs.h. */
4593 _ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h. */
4597
4598 # define __EXTENSIONS__ 1
4599 $ac_includes_default
4600 int
4601 main ()
4602 {
4603
4604 ;
4605 return 0;
4606 }
4607 _ACEOF
4608 rm -f conftest.$ac_objext
4609 if { (ac_try="$ac_compile"
4610 case "(($ac_try" in
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4613 esac
4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615 (eval "$ac_compile") 2>conftest.er1
4616 ac_status=$?
4617 grep -v '^ *+' conftest.er1 >conftest.err
4618 rm -f conftest.er1
4619 cat conftest.err >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } && {
4622 test -z "$ac_c_werror_flag" ||
4623 test ! -s conftest.err
4624 } && test -s conftest.$ac_objext; then
4625 ac_cv_safe_to_define___extensions__=yes
4626 else
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630 ac_cv_safe_to_define___extensions__=no
4631 fi
4632
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 fi
4635 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4636 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4637 test $ac_cv_safe_to_define___extensions__ = yes &&
4638 cat >>confdefs.h <<\_ACEOF
4639 #define __EXTENSIONS__ 1
4640 _ACEOF
4641
4642 cat >>confdefs.h <<\_ACEOF
4643 #define _POSIX_PTHREAD_SEMANTICS 1
4644 _ACEOF
4645
4646 cat >>confdefs.h <<\_ACEOF
4647 #define _TANDEM_SOURCE 1
4648 _ACEOF
4649
4650
4651
4652 ### Use -Wno-pointer-sign if the compiler supports it
4653 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4654 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4655 SAVE_CFLAGS="$CFLAGS"
4656 CFLAGS="$CFLAGS -Wno-pointer-sign"
4657 cat >conftest.$ac_ext <<_ACEOF
4658 /* confdefs.h. */
4659 _ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h. */
4663
4664 int
4665 main ()
4666 {
4667
4668 ;
4669 return 0;
4670 }
4671 _ACEOF
4672 rm -f conftest.$ac_objext
4673 if { (ac_try="$ac_compile"
4674 case "(($ac_try" in
4675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676 *) ac_try_echo=$ac_try;;
4677 esac
4678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4679 (eval "$ac_compile") 2>conftest.er1
4680 ac_status=$?
4681 grep -v '^ *+' conftest.er1 >conftest.err
4682 rm -f conftest.er1
4683 cat conftest.err >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } && {
4686 test -z "$ac_c_werror_flag" ||
4687 test ! -s conftest.err
4688 } && test -s conftest.$ac_objext; then
4689 has_option=yes
4690 else
4691 echo "$as_me: failed program was:" >&5
4692 sed 's/^/| /' conftest.$ac_ext >&5
4693
4694 has_option=no
4695 fi
4696
4697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4698 if test $has_option = yes; then
4699 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4700 fi
4701 { echo "$as_me:$LINENO: result: $has_option" >&5
4702 echo "${ECHO_T}$has_option" >&6; }
4703 CFLAGS="$SAVE_CFLAGS"
4704 unset has_option
4705 unset SAVE_CFLAGS
4706
4707 #### Some other nice autoconf tests.
4708
4709 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4710 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4711 LN_S=$as_ln_s
4712 if test "$LN_S" = "ln -s"; then
4713 { echo "$as_me:$LINENO: result: yes" >&5
4714 echo "${ECHO_T}yes" >&6; }
4715 else
4716 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4717 echo "${ECHO_T}no, using $LN_S" >&6; }
4718 fi
4719
4720 ac_ext=c
4721 ac_cpp='$CPP $CPPFLAGS'
4722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4725 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4726 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4727 # On Suns, sometimes $CPP names a directory.
4728 if test -n "$CPP" && test -d "$CPP"; then
4729 CPP=
4730 fi
4731 if test -z "$CPP"; then
4732 if test "${ac_cv_prog_CPP+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4734 else
4735 # Double quotes because CPP needs to be expanded
4736 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4737 do
4738 ac_preproc_ok=false
4739 for ac_c_preproc_warn_flag in '' yes
4740 do
4741 # Use a header file that comes with gcc, so configuring glibc
4742 # with a fresh cross-compiler works.
4743 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4744 # <limits.h> exists even on freestanding compilers.
4745 # On the NeXT, cc -E runs the code through the compiler's parser,
4746 # not just through cpp. "Syntax error" is here to catch this case.
4747 cat >conftest.$ac_ext <<_ACEOF
4748 /* confdefs.h. */
4749 _ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h. */
4753 #ifdef __STDC__
4754 # include <limits.h>
4755 #else
4756 # include <assert.h>
4757 #endif
4758 Syntax error
4759 _ACEOF
4760 if { (ac_try="$ac_cpp conftest.$ac_ext"
4761 case "(($ac_try" in
4762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4763 *) ac_try_echo=$ac_try;;
4764 esac
4765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4767 ac_status=$?
4768 grep -v '^ *+' conftest.er1 >conftest.err
4769 rm -f conftest.er1
4770 cat conftest.err >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } >/dev/null && {
4773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4774 test ! -s conftest.err
4775 }; then
4776 :
4777 else
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4780
4781 # Broken: fails on valid input.
4782 continue
4783 fi
4784
4785 rm -f conftest.err conftest.$ac_ext
4786
4787 # OK, works on sane cases. Now check whether nonexistent headers
4788 # can be detected and how.
4789 cat >conftest.$ac_ext <<_ACEOF
4790 /* confdefs.h. */
4791 _ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h. */
4795 #include <ac_nonexistent.h>
4796 _ACEOF
4797 if { (ac_try="$ac_cpp conftest.$ac_ext"
4798 case "(($ac_try" in
4799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800 *) ac_try_echo=$ac_try;;
4801 esac
4802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4804 ac_status=$?
4805 grep -v '^ *+' conftest.er1 >conftest.err
4806 rm -f conftest.er1
4807 cat conftest.err >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); } >/dev/null && {
4810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4811 test ! -s conftest.err
4812 }; then
4813 # Broken: success on invalid input.
4814 continue
4815 else
4816 echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4818
4819 # Passes both tests.
4820 ac_preproc_ok=:
4821 break
4822 fi
4823
4824 rm -f conftest.err conftest.$ac_ext
4825
4826 done
4827 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4828 rm -f conftest.err conftest.$ac_ext
4829 if $ac_preproc_ok; then
4830 break
4831 fi
4832
4833 done
4834 ac_cv_prog_CPP=$CPP
4835
4836 fi
4837 CPP=$ac_cv_prog_CPP
4838 else
4839 ac_cv_prog_CPP=$CPP
4840 fi
4841 { echo "$as_me:$LINENO: result: $CPP" >&5
4842 echo "${ECHO_T}$CPP" >&6; }
4843 ac_preproc_ok=false
4844 for ac_c_preproc_warn_flag in '' yes
4845 do
4846 # Use a header file that comes with gcc, so configuring glibc
4847 # with a fresh cross-compiler works.
4848 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4849 # <limits.h> exists even on freestanding compilers.
4850 # On the NeXT, cc -E runs the code through the compiler's parser,
4851 # not just through cpp. "Syntax error" is here to catch this case.
4852 cat >conftest.$ac_ext <<_ACEOF
4853 /* confdefs.h. */
4854 _ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4858 #ifdef __STDC__
4859 # include <limits.h>
4860 #else
4861 # include <assert.h>
4862 #endif
4863 Syntax error
4864 _ACEOF
4865 if { (ac_try="$ac_cpp conftest.$ac_ext"
4866 case "(($ac_try" in
4867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4869 esac
4870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4872 ac_status=$?
4873 grep -v '^ *+' conftest.er1 >conftest.err
4874 rm -f conftest.er1
4875 cat conftest.err >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } >/dev/null && {
4878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4879 test ! -s conftest.err
4880 }; then
4881 :
4882 else
4883 echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4885
4886 # Broken: fails on valid input.
4887 continue
4888 fi
4889
4890 rm -f conftest.err conftest.$ac_ext
4891
4892 # OK, works on sane cases. Now check whether nonexistent headers
4893 # can be detected and how.
4894 cat >conftest.$ac_ext <<_ACEOF
4895 /* confdefs.h. */
4896 _ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4900 #include <ac_nonexistent.h>
4901 _ACEOF
4902 if { (ac_try="$ac_cpp conftest.$ac_ext"
4903 case "(($ac_try" in
4904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905 *) ac_try_echo=$ac_try;;
4906 esac
4907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4909 ac_status=$?
4910 grep -v '^ *+' conftest.er1 >conftest.err
4911 rm -f conftest.er1
4912 cat conftest.err >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } >/dev/null && {
4915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4916 test ! -s conftest.err
4917 }; then
4918 # Broken: success on invalid input.
4919 continue
4920 else
4921 echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4923
4924 # Passes both tests.
4925 ac_preproc_ok=:
4926 break
4927 fi
4928
4929 rm -f conftest.err conftest.$ac_ext
4930
4931 done
4932 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4933 rm -f conftest.err conftest.$ac_ext
4934 if $ac_preproc_ok; then
4935 :
4936 else
4937 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4938 See \`config.log' for more details." >&5
4939 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4940 See \`config.log' for more details." >&2;}
4941 { (exit 1); exit 1; }; }
4942 fi
4943
4944 ac_ext=c
4945 ac_cpp='$CPP $CPPFLAGS'
4946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4949
4950 # Find a good install program. We prefer a C program (faster),
4951 # so one script is as good as another. But avoid the broken or
4952 # incompatible versions:
4953 # SysV /etc/install, /usr/sbin/install
4954 # SunOS /usr/etc/install
4955 # IRIX /sbin/install
4956 # AIX /bin/install
4957 # AmigaOS /C/install, which installs bootblocks on floppy discs
4958 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4959 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4960 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4961 # OS/2's system install, which has a completely different semantic
4962 # ./install, which can be erroneously created by make from ./install.sh.
4963 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4964 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4965 if test -z "$INSTALL"; then
4966 if test "${ac_cv_path_install+set}" = set; then
4967 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 else
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 # Account for people who put trailing slashes in PATH elements.
4975 case $as_dir/ in
4976 ./ | .// | /cC/* | \
4977 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4978 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4979 /usr/ucb/* ) ;;
4980 *)
4981 # OSF1 and SCO ODT 3.0 have their own names for install.
4982 # Don't use installbsd from OSF since it installs stuff as root
4983 # by default.
4984 for ac_prog in ginstall scoinst install; do
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4987 if test $ac_prog = install &&
4988 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4989 # AIX install. It has an incompatible calling convention.
4990 :
4991 elif test $ac_prog = install &&
4992 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4993 # program-specific install script used by HP pwplus--don't use.
4994 :
4995 else
4996 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4997 break 3
4998 fi
4999 fi
5000 done
5001 done
5002 ;;
5003 esac
5004 done
5005 IFS=$as_save_IFS
5006
5007
5008 fi
5009 if test "${ac_cv_path_install+set}" = set; then
5010 INSTALL=$ac_cv_path_install
5011 else
5012 # As a last resort, use the slow shell script. Don't cache a
5013 # value for INSTALL within a source directory, because that will
5014 # break other packages using the cache if that directory is
5015 # removed, or if the value is a relative name.
5016 INSTALL=$ac_install_sh
5017 fi
5018 fi
5019 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5020 echo "${ECHO_T}$INSTALL" >&6; }
5021
5022 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5023 # It thinks the first close brace ends the variable substitution.
5024 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5025
5026 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5027
5028 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5029
5030 if test "x$RANLIB" = x; then
5031 if test -n "$ac_tool_prefix"; then
5032 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5033 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5036 if test "${ac_cv_prog_RANLIB+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 else
5039 if test -n "$RANLIB"; then
5040 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5041 else
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH
5044 do
5045 IFS=$as_save_IFS
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5049 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5051 break 2
5052 fi
5053 done
5054 done
5055 IFS=$as_save_IFS
5056
5057 fi
5058 fi
5059 RANLIB=$ac_cv_prog_RANLIB
5060 if test -n "$RANLIB"; then
5061 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5062 echo "${ECHO_T}$RANLIB" >&6; }
5063 else
5064 { echo "$as_me:$LINENO: result: no" >&5
5065 echo "${ECHO_T}no" >&6; }
5066 fi
5067
5068
5069 fi
5070 if test -z "$ac_cv_prog_RANLIB"; then
5071 ac_ct_RANLIB=$RANLIB
5072 # Extract the first word of "ranlib", so it can be a program name with args.
5073 set dummy ranlib; ac_word=$2
5074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5076 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5078 else
5079 if test -n "$ac_ct_RANLIB"; then
5080 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5081 else
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085 IFS=$as_save_IFS
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089 ac_cv_prog_ac_ct_RANLIB="ranlib"
5090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5091 break 2
5092 fi
5093 done
5094 done
5095 IFS=$as_save_IFS
5096
5097 fi
5098 fi
5099 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5100 if test -n "$ac_ct_RANLIB"; then
5101 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5102 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5103 else
5104 { echo "$as_me:$LINENO: result: no" >&5
5105 echo "${ECHO_T}no" >&6; }
5106 fi
5107
5108 if test "x$ac_ct_RANLIB" = x; then
5109 RANLIB=":"
5110 else
5111 case $cross_compiling:$ac_tool_warned in
5112 yes:)
5113 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5114 whose name does not start with the host triplet. If you think this
5115 configuration is useful to you, please write to autoconf@gnu.org." >&5
5116 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5117 whose name does not start with the host triplet. If you think this
5118 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5119 ac_tool_warned=yes ;;
5120 esac
5121 RANLIB=$ac_ct_RANLIB
5122 fi
5123 else
5124 RANLIB="$ac_cv_prog_RANLIB"
5125 fi
5126
5127 fi
5128 # Extract the first word of "install-info", so it can be a program name with args.
5129 set dummy install-info; ac_word=$2
5130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5132 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 else
5135 case $INSTALL_INFO in
5136 [\\/]* | ?:[\\/]*)
5137 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5138 ;;
5139 *)
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 for as_dir in $PATH
5142 do
5143 IFS=$as_save_IFS
5144 test -z "$as_dir" && as_dir=.
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5147 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 break 2
5150 fi
5151 done
5152 done
5153 IFS=$as_save_IFS
5154
5155 ;;
5156 esac
5157 fi
5158 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5159 if test -n "$INSTALL_INFO"; then
5160 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5161 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5162 else
5163 { echo "$as_me:$LINENO: result: no" >&5
5164 echo "${ECHO_T}no" >&6; }
5165 fi
5166
5167
5168 # Extract the first word of "install-info", so it can be a program name with args.
5169 set dummy install-info; ac_word=$2
5170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5172 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 else
5175 case $INSTALL_INFO in
5176 [\\/]* | ?:[\\/]*)
5177 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5178 ;;
5179 *)
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in /usr/sbin
5182 do
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 break 2
5190 fi
5191 done
5192 done
5193 IFS=$as_save_IFS
5194
5195 ;;
5196 esac
5197 fi
5198 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5199 if test -n "$INSTALL_INFO"; then
5200 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5201 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5202 else
5203 { echo "$as_me:$LINENO: result: no" >&5
5204 echo "${ECHO_T}no" >&6; }
5205 fi
5206
5207
5208 # Extract the first word of "install-info", so it can be a program name with args.
5209 set dummy install-info; ac_word=$2
5210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5212 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5213 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 else
5215 case $INSTALL_INFO in
5216 [\\/]* | ?:[\\/]*)
5217 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5218 ;;
5219 *)
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in /sbin
5222 do
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 break 2
5230 fi
5231 done
5232 done
5233 IFS=$as_save_IFS
5234
5235 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5236 ;;
5237 esac
5238 fi
5239 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5240 if test -n "$INSTALL_INFO"; then
5241 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5242 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5243 else
5244 { echo "$as_me:$LINENO: result: no" >&5
5245 echo "${ECHO_T}no" >&6; }
5246 fi
5247
5248
5249 # Extract the first word of "gzip", so it can be a program name with args.
5250 set dummy gzip; ac_word=$2
5251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5253 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256 case $GZIP_PROG in
5257 [\\/]* | ?:[\\/]*)
5258 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5259 ;;
5260 *)
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 for as_dir in $PATH
5263 do
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5268 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 break 2
5271 fi
5272 done
5273 done
5274 IFS=$as_save_IFS
5275
5276 ;;
5277 esac
5278 fi
5279 GZIP_PROG=$ac_cv_path_GZIP_PROG
5280 if test -n "$GZIP_PROG"; then
5281 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5282 echo "${ECHO_T}$GZIP_PROG" >&6; }
5283 else
5284 { echo "$as_me:$LINENO: result: no" >&5
5285 echo "${ECHO_T}no" >&6; }
5286 fi
5287
5288
5289
5290
5291 ## Need makeinfo >= 4.6 (?) to build the manuals.
5292 # Extract the first word of "makeinfo", so it can be a program name with args.
5293 set dummy makeinfo; ac_word=$2
5294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5296 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
5298 else
5299 case $MAKEINFO in
5300 [\\/]* | ?:[\\/]*)
5301 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5302 ;;
5303 *)
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH
5306 do
5307 IFS=$as_save_IFS
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 break 2
5314 fi
5315 done
5316 done
5317 IFS=$as_save_IFS
5318
5319 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5320 ;;
5321 esac
5322 fi
5323 MAKEINFO=$ac_cv_path_MAKEINFO
5324 if test -n "$MAKEINFO"; then
5325 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5326 echo "${ECHO_T}$MAKEINFO" >&6; }
5327 else
5328 { echo "$as_me:$LINENO: result: no" >&5
5329 echo "${ECHO_T}no" >&6; }
5330 fi
5331
5332
5333 if test "$MAKEINFO" != "no" && \
5334 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
5335 MAKEINFO=no
5336 fi
5337
5338 ## Makeinfo is unusual. For a released Emacs, the manuals are
5339 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5340 ## therefore in the category of "special tools" not normally required, which
5341 ## configure does not have to check for (eg autoconf itself).
5342 ## In a CVS checkout on the other hand, the manuals are not included.
5343 ## So makeinfo is a requirement to build from CVS, and configure
5344 ## should test for it as it does for any other build requirement.
5345 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5346 ## with pre-built manuals, from a CVS checkout.
5347 if test "$MAKEINFO" = "no"; then
5348 if test "x${with_makeinfo}" = "xno"; then
5349 MAKEINFO=off
5350 elif ! test -e $srcdir/info/emacs; then
5351 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5352 source tree does not seem to have pre-built manuals in the \`info' directory.
5353 Either install a suitable version of makeinfo, or re-run configure
5354 with the \`--without-makeinfo' option to build without the manuals. " >&5
5355 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5356 source tree does not seem to have pre-built manuals in the \`info' directory.
5357 Either install a suitable version of makeinfo, or re-run configure
5358 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5359 { (exit 1); exit 1; }; }
5360 fi
5361 fi
5362
5363
5364 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5365 then
5366 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5367 fi
5368
5369 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5370 then
5371 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5372 fi
5373
5374
5375 late_LDFLAGS=$LDFLAGS
5376 if test "$GCC" = yes; then
5377 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5378 else
5379 LDFLAGS="$LDFLAGS -znocombreloc"
5380 fi
5381
5382 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5383 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5384 cat >conftest.$ac_ext <<_ACEOF
5385 main(){return 0;}
5386 _ACEOF
5387 rm -f conftest.$ac_objext conftest$ac_exeext
5388 if { (ac_try="$ac_link"
5389 case "(($ac_try" in
5390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391 *) ac_try_echo=$ac_try;;
5392 esac
5393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5394 (eval "$ac_link") 2>conftest.er1
5395 ac_status=$?
5396 grep -v '^ *+' conftest.er1 >conftest.err
5397 rm -f conftest.er1
5398 cat conftest.err >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); } && {
5401 test -z "$ac_c_werror_flag" ||
5402 test ! -s conftest.err
5403 } && test -s conftest$ac_exeext &&
5404 $as_test_x conftest$ac_exeext; then
5405 { echo "$as_me:$LINENO: result: yes" >&5
5406 echo "${ECHO_T}yes" >&6; }
5407 else
5408 echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5410
5411 LDFLAGS=$late_LDFLAGS
5412 { echo "$as_me:$LINENO: result: no" >&5
5413 echo "${ECHO_T}no" >&6; }
5414 fi
5415
5416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5417 conftest$ac_exeext conftest.$ac_ext
5418
5419 #### Extract some information from the operating system and machine files.
5420
5421 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5422 - which libraries the lib-src programs will want, and
5423 - whether the GNU malloc routines are usable..." >&5
5424 echo "$as_me: checking the machine- and system-dependent files to find out
5425 - which libraries the lib-src programs will want, and
5426 - whether the GNU malloc routines are usable..." >&6;}
5427
5428 ### First figure out CFLAGS (which we use for running the compiler here)
5429 ### and REAL_CFLAGS (which we use for real compilation).
5430 ### The two are the same except on a few systems, where they are made
5431 ### different to work around various lossages. For example,
5432 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5433 ### as implying static linking.
5434
5435 ### If the CFLAGS env var is specified, we use that value
5436 ### instead of the default.
5437
5438 ### It's not important that this name contain the PID; you can't run
5439 ### two configures in the same directory and have anything work
5440 ### anyway.
5441 tempcname="conftest.c"
5442
5443 echo '
5444 #include "'${srcdir}'/src/'${opsysfile}'"
5445 #include "'${srcdir}'/src/'${machfile}'"
5446 #ifndef LIBS_MACHINE
5447 #define LIBS_MACHINE
5448 #endif
5449 #ifndef LIBS_SYSTEM
5450 #define LIBS_SYSTEM
5451 #endif
5452 #ifndef C_SWITCH_SYSTEM
5453 #define C_SWITCH_SYSTEM
5454 #endif
5455 #ifndef C_SWITCH_MACHINE
5456 #define C_SWITCH_MACHINE
5457 #endif
5458 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5459 configure___ c_switch_system=C_SWITCH_SYSTEM
5460 configure___ c_switch_machine=C_SWITCH_MACHINE
5461
5462 #ifndef LIB_X11_LIB
5463 #define LIB_X11_LIB -lX11
5464 #endif
5465
5466 #ifndef LIBX11_SYSTEM
5467 #define LIBX11_SYSTEM
5468 #endif
5469 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5470
5471 #ifdef UNEXEC
5472 configure___ unexec=UNEXEC
5473 #else
5474 configure___ unexec=unexec.o
5475 #endif
5476
5477 #ifdef SYSTEM_MALLOC
5478 configure___ system_malloc=yes
5479 #else
5480 configure___ system_malloc=no
5481 #endif
5482
5483 #ifdef USE_MMAP_FOR_BUFFERS
5484 configure___ use_mmap_for_buffers=yes
5485 #else
5486 configure___ use_mmap_for_buffers=no
5487 #endif
5488
5489 #ifndef C_DEBUG_SWITCH
5490 #define C_DEBUG_SWITCH -g
5491 #endif
5492
5493 #ifndef C_OPTIMIZE_SWITCH
5494 #ifdef __GNUC__
5495 #define C_OPTIMIZE_SWITCH -O2
5496 #else
5497 #define C_OPTIMIZE_SWITCH -O
5498 #endif
5499 #endif
5500
5501 #ifndef C_WARNINGS_SWITCH
5502 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5503 #endif
5504
5505 #ifndef LD_SWITCH_MACHINE
5506 #define LD_SWITCH_MACHINE
5507 #endif
5508
5509 #ifndef LD_SWITCH_SYSTEM
5510 #define LD_SWITCH_SYSTEM
5511 #endif
5512
5513 #ifndef LD_SWITCH_X_SITE_AUX
5514 #define LD_SWITCH_X_SITE_AUX
5515 #endif
5516
5517 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5518 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5519
5520 #ifdef THIS_IS_CONFIGURE
5521
5522 /* Get the CFLAGS for tests in configure. */
5523 #ifdef __GNUC__
5524 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5525 #else
5526 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5527 #endif
5528
5529 #else /* not THIS_IS_CONFIGURE */
5530
5531 /* Get the CFLAGS for real compilation. */
5532 #ifdef __GNUC__
5533 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5534 #else
5535 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5536 #endif
5537
5538 #endif /* not THIS_IS_CONFIGURE */
5539 ' > ${tempcname}
5540
5541 # The value of CPP is a quoted variable reference, so we need to do this
5542 # to get its actual value...
5543 CPP=`eval "echo $CPP"`
5544 eval `${CPP} -Isrc ${tempcname} \
5545 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5546 if test "x$SPECIFIED_CFLAGS" = x; then
5547 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5548 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5549 else
5550 REAL_CFLAGS="$CFLAGS"
5551 fi
5552 rm ${tempcname}
5553
5554 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5555
5556 ### Make sure subsequent tests use flags consistent with the build flags.
5557
5558 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5559 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5560 else
5561 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5562 fi
5563
5564
5565
5566 # Check whether --enable-largefile was given.
5567 if test "${enable_largefile+set}" = set; then
5568 enableval=$enable_largefile;
5569 fi
5570
5571 if test "$enable_largefile" != no; then
5572
5573 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5574 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5575 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 else
5578 ac_cv_sys_largefile_CC=no
5579 if test "$GCC" != yes; then
5580 ac_save_CC=$CC
5581 while :; do
5582 # IRIX 6.2 and later do not support large files by default,
5583 # so use the C compiler's -n32 option if that helps.
5584 cat >conftest.$ac_ext <<_ACEOF
5585 /* confdefs.h. */
5586 _ACEOF
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5590 #include <sys/types.h>
5591 /* Check that off_t can represent 2**63 - 1 correctly.
5592 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5593 since some C++ compilers masquerading as C compilers
5594 incorrectly reject 9223372036854775807. */
5595 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5596 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5597 && LARGE_OFF_T % 2147483647 == 1)
5598 ? 1 : -1];
5599 int
5600 main ()
5601 {
5602
5603 ;
5604 return 0;
5605 }
5606 _ACEOF
5607 rm -f conftest.$ac_objext
5608 if { (ac_try="$ac_compile"
5609 case "(($ac_try" in
5610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611 *) ac_try_echo=$ac_try;;
5612 esac
5613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614 (eval "$ac_compile") 2>conftest.er1
5615 ac_status=$?
5616 grep -v '^ *+' conftest.er1 >conftest.err
5617 rm -f conftest.er1
5618 cat conftest.err >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } && {
5621 test -z "$ac_c_werror_flag" ||
5622 test ! -s conftest.err
5623 } && test -s conftest.$ac_objext; then
5624 break
5625 else
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5628
5629
5630 fi
5631
5632 rm -f core conftest.err conftest.$ac_objext
5633 CC="$CC -n32"
5634 rm -f conftest.$ac_objext
5635 if { (ac_try="$ac_compile"
5636 case "(($ac_try" in
5637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638 *) ac_try_echo=$ac_try;;
5639 esac
5640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641 (eval "$ac_compile") 2>conftest.er1
5642 ac_status=$?
5643 grep -v '^ *+' conftest.er1 >conftest.err
5644 rm -f conftest.er1
5645 cat conftest.err >&5
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } && {
5648 test -z "$ac_c_werror_flag" ||
5649 test ! -s conftest.err
5650 } && test -s conftest.$ac_objext; then
5651 ac_cv_sys_largefile_CC=' -n32'; break
5652 else
5653 echo "$as_me: failed program was:" >&5
5654 sed 's/^/| /' conftest.$ac_ext >&5
5655
5656
5657 fi
5658
5659 rm -f core conftest.err conftest.$ac_objext
5660 break
5661 done
5662 CC=$ac_save_CC
5663 rm -f conftest.$ac_ext
5664 fi
5665 fi
5666 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5667 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5668 if test "$ac_cv_sys_largefile_CC" != no; then
5669 CC=$CC$ac_cv_sys_largefile_CC
5670 fi
5671
5672 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5673 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5674 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 else
5677 while :; do
5678 cat >conftest.$ac_ext <<_ACEOF
5679 /* confdefs.h. */
5680 _ACEOF
5681 cat confdefs.h >>conftest.$ac_ext
5682 cat >>conftest.$ac_ext <<_ACEOF
5683 /* end confdefs.h. */
5684 #include <sys/types.h>
5685 /* Check that off_t can represent 2**63 - 1 correctly.
5686 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5687 since some C++ compilers masquerading as C compilers
5688 incorrectly reject 9223372036854775807. */
5689 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5690 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5691 && LARGE_OFF_T % 2147483647 == 1)
5692 ? 1 : -1];
5693 int
5694 main ()
5695 {
5696
5697 ;
5698 return 0;
5699 }
5700 _ACEOF
5701 rm -f conftest.$ac_objext
5702 if { (ac_try="$ac_compile"
5703 case "(($ac_try" in
5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5706 esac
5707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708 (eval "$ac_compile") 2>conftest.er1
5709 ac_status=$?
5710 grep -v '^ *+' conftest.er1 >conftest.err
5711 rm -f conftest.er1
5712 cat conftest.err >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } && {
5715 test -z "$ac_c_werror_flag" ||
5716 test ! -s conftest.err
5717 } && test -s conftest.$ac_objext; then
5718 ac_cv_sys_file_offset_bits=no; break
5719 else
5720 echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5722
5723
5724 fi
5725
5726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727 cat >conftest.$ac_ext <<_ACEOF
5728 /* confdefs.h. */
5729 _ACEOF
5730 cat confdefs.h >>conftest.$ac_ext
5731 cat >>conftest.$ac_ext <<_ACEOF
5732 /* end confdefs.h. */
5733 #define _FILE_OFFSET_BITS 64
5734 #include <sys/types.h>
5735 /* Check that off_t can represent 2**63 - 1 correctly.
5736 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5737 since some C++ compilers masquerading as C compilers
5738 incorrectly reject 9223372036854775807. */
5739 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5740 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5741 && LARGE_OFF_T % 2147483647 == 1)
5742 ? 1 : -1];
5743 int
5744 main ()
5745 {
5746
5747 ;
5748 return 0;
5749 }
5750 _ACEOF
5751 rm -f conftest.$ac_objext
5752 if { (ac_try="$ac_compile"
5753 case "(($ac_try" in
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5756 esac
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_compile") 2>conftest.er1
5759 ac_status=$?
5760 grep -v '^ *+' conftest.er1 >conftest.err
5761 rm -f conftest.er1
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } && {
5765 test -z "$ac_c_werror_flag" ||
5766 test ! -s conftest.err
5767 } && test -s conftest.$ac_objext; then
5768 ac_cv_sys_file_offset_bits=64; break
5769 else
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5772
5773
5774 fi
5775
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777 ac_cv_sys_file_offset_bits=unknown
5778 break
5779 done
5780 fi
5781 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5782 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5783 case $ac_cv_sys_file_offset_bits in #(
5784 no | unknown) ;;
5785 *)
5786 cat >>confdefs.h <<_ACEOF
5787 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5788 _ACEOF
5789 ;;
5790 esac
5791 rm -f conftest*
5792 if test $ac_cv_sys_file_offset_bits = unknown; then
5793 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5794 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5795 if test "${ac_cv_sys_large_files+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798 while :; do
5799 cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h. */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 #include <sys/types.h>
5806 /* Check that off_t can represent 2**63 - 1 correctly.
5807 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5808 since some C++ compilers masquerading as C compilers
5809 incorrectly reject 9223372036854775807. */
5810 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5811 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5812 && LARGE_OFF_T % 2147483647 == 1)
5813 ? 1 : -1];
5814 int
5815 main ()
5816 {
5817
5818 ;
5819 return 0;
5820 }
5821 _ACEOF
5822 rm -f conftest.$ac_objext
5823 if { (ac_try="$ac_compile"
5824 case "(($ac_try" in
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5827 esac
5828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829 (eval "$ac_compile") 2>conftest.er1
5830 ac_status=$?
5831 grep -v '^ *+' conftest.er1 >conftest.err
5832 rm -f conftest.er1
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } && {
5836 test -z "$ac_c_werror_flag" ||
5837 test ! -s conftest.err
5838 } && test -s conftest.$ac_objext; then
5839 ac_cv_sys_large_files=no; break
5840 else
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5843
5844
5845 fi
5846
5847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5848 cat >conftest.$ac_ext <<_ACEOF
5849 /* confdefs.h. */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 #define _LARGE_FILES 1
5855 #include <sys/types.h>
5856 /* Check that off_t can represent 2**63 - 1 correctly.
5857 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5858 since some C++ compilers masquerading as C compilers
5859 incorrectly reject 9223372036854775807. */
5860 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5861 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5862 && LARGE_OFF_T % 2147483647 == 1)
5863 ? 1 : -1];
5864 int
5865 main ()
5866 {
5867
5868 ;
5869 return 0;
5870 }
5871 _ACEOF
5872 rm -f conftest.$ac_objext
5873 if { (ac_try="$ac_compile"
5874 case "(($ac_try" in
5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5877 esac
5878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 (eval "$ac_compile") 2>conftest.er1
5880 ac_status=$?
5881 grep -v '^ *+' conftest.er1 >conftest.err
5882 rm -f conftest.er1
5883 cat conftest.err >&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); } && {
5886 test -z "$ac_c_werror_flag" ||
5887 test ! -s conftest.err
5888 } && test -s conftest.$ac_objext; then
5889 ac_cv_sys_large_files=1; break
5890 else
5891 echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5893
5894
5895 fi
5896
5897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5898 ac_cv_sys_large_files=unknown
5899 break
5900 done
5901 fi
5902 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5903 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5904 case $ac_cv_sys_large_files in #(
5905 no | unknown) ;;
5906 *)
5907 cat >>confdefs.h <<_ACEOF
5908 #define _LARGE_FILES $ac_cv_sys_large_files
5909 _ACEOF
5910 ;;
5911 esac
5912 rm -f conftest*
5913 fi
5914 fi
5915
5916
5917
5918 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5919 ### be located in either /usr/lib64 or /usr/lib.
5920 ### In some rare cases, /usr/lib64 exists but does not contain the
5921 ### relevant files (bug#1287). Hence test for crtn.o.
5922 case "${canonical}" in
5923 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5924 if test -e /usr/lib64/crtn.o; then
5925
5926 cat >>confdefs.h <<\_ACEOF
5927 #define HAVE_LIB64_DIR 1
5928 _ACEOF
5929
5930 fi
5931 esac
5932
5933
5934
5935
5936 if test "${with_sound}" != "no"; then
5937 # Sound support for GNU/Linux and the free BSDs.
5938
5939
5940
5941 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5942 do
5943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 fi
5950 ac_res=`eval echo '${'$as_ac_Header'}'`
5951 { echo "$as_me:$LINENO: result: $ac_res" >&5
5952 echo "${ECHO_T}$ac_res" >&6; }
5953 else
5954 # Is the header compilable?
5955 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5957 cat >conftest.$ac_ext <<_ACEOF
5958 /* confdefs.h. */
5959 _ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5963 $ac_includes_default
5964 #include <$ac_header>
5965 _ACEOF
5966 rm -f conftest.$ac_objext
5967 if { (ac_try="$ac_compile"
5968 case "(($ac_try" in
5969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970 *) ac_try_echo=$ac_try;;
5971 esac
5972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5973 (eval "$ac_compile") 2>conftest.er1
5974 ac_status=$?
5975 grep -v '^ *+' conftest.er1 >conftest.err
5976 rm -f conftest.er1
5977 cat conftest.err >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } && {
5980 test -z "$ac_c_werror_flag" ||
5981 test ! -s conftest.err
5982 } && test -s conftest.$ac_objext; then
5983 ac_header_compiler=yes
5984 else
5985 echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5987
5988 ac_header_compiler=no
5989 fi
5990
5991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5992 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5993 echo "${ECHO_T}$ac_header_compiler" >&6; }
5994
5995 # Is the header present?
5996 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5998 cat >conftest.$ac_ext <<_ACEOF
5999 /* confdefs.h. */
6000 _ACEOF
6001 cat confdefs.h >>conftest.$ac_ext
6002 cat >>conftest.$ac_ext <<_ACEOF
6003 /* end confdefs.h. */
6004 #include <$ac_header>
6005 _ACEOF
6006 if { (ac_try="$ac_cpp conftest.$ac_ext"
6007 case "(($ac_try" in
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6010 esac
6011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6013 ac_status=$?
6014 grep -v '^ *+' conftest.er1 >conftest.err
6015 rm -f conftest.er1
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } >/dev/null && {
6019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6020 test ! -s conftest.err
6021 }; then
6022 ac_header_preproc=yes
6023 else
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6026
6027 ac_header_preproc=no
6028 fi
6029
6030 rm -f conftest.err conftest.$ac_ext
6031 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6032 echo "${ECHO_T}$ac_header_preproc" >&6; }
6033
6034 # So? What about this header?
6035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6036 yes:no: )
6037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6040 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6041 ac_header_preproc=yes
6042 ;;
6043 no:yes:* )
6044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6047 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6049 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6051 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6055 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6056
6057 ;;
6058 esac
6059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064 eval "$as_ac_Header=\$ac_header_preproc"
6065 fi
6066 ac_res=`eval echo '${'$as_ac_Header'}'`
6067 { echo "$as_me:$LINENO: result: $ac_res" >&5
6068 echo "${ECHO_T}$ac_res" >&6; }
6069
6070 fi
6071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6072 cat >>confdefs.h <<_ACEOF
6073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6074 _ACEOF
6075
6076 fi
6077
6078 done
6079
6080 # Emulation library used on NetBSD.
6081 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6082 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6083 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086 ac_check_lib_save_LIBS=$LIBS
6087 LIBS="-lossaudio $LIBS"
6088 cat >conftest.$ac_ext <<_ACEOF
6089 /* confdefs.h. */
6090 _ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6094
6095 /* Override any GCC internal prototype to avoid an error.
6096 Use char because int might match the return type of a GCC
6097 builtin and then its argument prototype would still apply. */
6098 #ifdef __cplusplus
6099 extern "C"
6100 #endif
6101 char _oss_ioctl ();
6102 int
6103 main ()
6104 {
6105 return _oss_ioctl ();
6106 ;
6107 return 0;
6108 }
6109 _ACEOF
6110 rm -f conftest.$ac_objext conftest$ac_exeext
6111 if { (ac_try="$ac_link"
6112 case "(($ac_try" in
6113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114 *) ac_try_echo=$ac_try;;
6115 esac
6116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117 (eval "$ac_link") 2>conftest.er1
6118 ac_status=$?
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } && {
6124 test -z "$ac_c_werror_flag" ||
6125 test ! -s conftest.err
6126 } && test -s conftest$ac_exeext &&
6127 $as_test_x conftest$ac_exeext; then
6128 ac_cv_lib_ossaudio__oss_ioctl=yes
6129 else
6130 echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.$ac_ext >&5
6132
6133 ac_cv_lib_ossaudio__oss_ioctl=no
6134 fi
6135
6136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6137 conftest$ac_exeext conftest.$ac_ext
6138 LIBS=$ac_check_lib_save_LIBS
6139 fi
6140 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6141 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6142 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6143 LIBSOUND=-lossaudio
6144 else
6145 LIBSOUND=
6146 fi
6147
6148
6149
6150 ALSA_REQUIRED=1.0.0
6151 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6152
6153 succeeded=no
6154
6155 # Extract the first word of "pkg-config", so it can be a program name with args.
6156 set dummy pkg-config; ac_word=$2
6157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6159 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 else
6162 case $PKG_CONFIG in
6163 [\\/]* | ?:[\\/]*)
6164 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6165 ;;
6166 *)
6167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 for as_dir in $PATH
6169 do
6170 IFS=$as_save_IFS
6171 test -z "$as_dir" && as_dir=.
6172 for ac_exec_ext in '' $ac_executable_extensions; do
6173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6174 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6176 break 2
6177 fi
6178 done
6179 done
6180 IFS=$as_save_IFS
6181
6182 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6183 ;;
6184 esac
6185 fi
6186 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6187 if test -n "$PKG_CONFIG"; then
6188 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6189 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6190 else
6191 { echo "$as_me:$LINENO: result: no" >&5
6192 echo "${ECHO_T}no" >&6; }
6193 fi
6194
6195
6196
6197 if test "$PKG_CONFIG" = "no" ; then
6198 HAVE_ALSA=no
6199 else
6200 PKG_CONFIG_MIN_VERSION=0.9.0
6201 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6202 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6203 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6204
6205 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6206 { echo "$as_me:$LINENO: result: yes" >&5
6207 echo "${ECHO_T}yes" >&6; }
6208 succeeded=yes
6209
6210 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6211 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6212 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6213 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6214 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6215
6216 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6217 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6218 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6219 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6220 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6221 else
6222 { echo "$as_me:$LINENO: result: no" >&5
6223 echo "${ECHO_T}no" >&6; }
6224 ALSA_CFLAGS=""
6225 ALSA_LIBS=""
6226 ## If we have a custom action on failure, don't print errors, but
6227 ## do set a variable so people can do so.
6228 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6229
6230 fi
6231
6232
6233
6234 else
6235 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6236 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6237 fi
6238 fi
6239
6240 if test $succeeded = yes; then
6241 HAVE_ALSA=yes
6242 else
6243 HAVE_ALSA=no
6244 fi
6245
6246 if test $HAVE_ALSA = yes; then
6247 SAVE_CFLAGS="$CFLAGS"
6248 SAVE_LDFLAGS="$LDFLAGS"
6249 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6250 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6251 cat >conftest.$ac_ext <<_ACEOF
6252 /* confdefs.h. */
6253 _ACEOF
6254 cat confdefs.h >>conftest.$ac_ext
6255 cat >>conftest.$ac_ext <<_ACEOF
6256 /* end confdefs.h. */
6257 #include <asoundlib.h>
6258 int
6259 main ()
6260 {
6261 snd_lib_error_set_handler (0);
6262 ;
6263 return 0;
6264 }
6265 _ACEOF
6266 rm -f conftest.$ac_objext
6267 if { (ac_try="$ac_compile"
6268 case "(($ac_try" in
6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6271 esac
6272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273 (eval "$ac_compile") 2>conftest.er1
6274 ac_status=$?
6275 grep -v '^ *+' conftest.er1 >conftest.err
6276 rm -f conftest.er1
6277 cat conftest.err >&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } && {
6280 test -z "$ac_c_werror_flag" ||
6281 test ! -s conftest.err
6282 } && test -s conftest.$ac_objext; then
6283 emacs_alsa_normal=yes
6284 else
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6287
6288 emacs_alsa_normal=no
6289 fi
6290
6291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6292 if test "$emacs_alsa_normal" != yes; then
6293 cat >conftest.$ac_ext <<_ACEOF
6294 /* confdefs.h. */
6295 _ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6299 #include <alsa/asoundlib.h>
6300 int
6301 main ()
6302 {
6303 snd_lib_error_set_handler (0);
6304 ;
6305 return 0;
6306 }
6307 _ACEOF
6308 rm -f conftest.$ac_objext
6309 if { (ac_try="$ac_compile"
6310 case "(($ac_try" in
6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312 *) ac_try_echo=$ac_try;;
6313 esac
6314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315 (eval "$ac_compile") 2>conftest.er1
6316 ac_status=$?
6317 grep -v '^ *+' conftest.er1 >conftest.err
6318 rm -f conftest.er1
6319 cat conftest.err >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } && {
6322 test -z "$ac_c_werror_flag" ||
6323 test ! -s conftest.err
6324 } && test -s conftest.$ac_objext; then
6325 emacs_alsa_subdir=yes
6326 else
6327 echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.$ac_ext >&5
6329
6330 emacs_alsa_subdir=no
6331 fi
6332
6333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6334 if test "$emacs_alsa_subdir" != yes; then
6335 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6336 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6337 { (exit 1); exit 1; }; }
6338 fi
6339 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6340 fi
6341
6342 CFLAGS="$SAVE_CFLAGS"
6343 LDFLAGS="$SAVE_LDFLAGS"
6344 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6345 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6346
6347 cat >>confdefs.h <<\_ACEOF
6348 #define HAVE_ALSA 1
6349 _ACEOF
6350
6351 fi
6352
6353 fi
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6381 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6382 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6383 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6384 sys/utsname.h pwd.h
6385 do
6386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6392 fi
6393 ac_res=`eval echo '${'$as_ac_Header'}'`
6394 { echo "$as_me:$LINENO: result: $ac_res" >&5
6395 echo "${ECHO_T}$ac_res" >&6; }
6396 else
6397 # Is the header compilable?
6398 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6400 cat >conftest.$ac_ext <<_ACEOF
6401 /* confdefs.h. */
6402 _ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6406 $ac_includes_default
6407 #include <$ac_header>
6408 _ACEOF
6409 rm -f conftest.$ac_objext
6410 if { (ac_try="$ac_compile"
6411 case "(($ac_try" in
6412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6414 esac
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 (eval "$ac_compile") 2>conftest.er1
6417 ac_status=$?
6418 grep -v '^ *+' conftest.er1 >conftest.err
6419 rm -f conftest.er1
6420 cat conftest.err >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } && {
6423 test -z "$ac_c_werror_flag" ||
6424 test ! -s conftest.err
6425 } && test -s conftest.$ac_objext; then
6426 ac_header_compiler=yes
6427 else
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6430
6431 ac_header_compiler=no
6432 fi
6433
6434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6436 echo "${ECHO_T}$ac_header_compiler" >&6; }
6437
6438 # Is the header present?
6439 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6441 cat >conftest.$ac_ext <<_ACEOF
6442 /* confdefs.h. */
6443 _ACEOF
6444 cat confdefs.h >>conftest.$ac_ext
6445 cat >>conftest.$ac_ext <<_ACEOF
6446 /* end confdefs.h. */
6447 #include <$ac_header>
6448 _ACEOF
6449 if { (ac_try="$ac_cpp conftest.$ac_ext"
6450 case "(($ac_try" in
6451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452 *) ac_try_echo=$ac_try;;
6453 esac
6454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6456 ac_status=$?
6457 grep -v '^ *+' conftest.er1 >conftest.err
6458 rm -f conftest.er1
6459 cat conftest.err >&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); } >/dev/null && {
6462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6463 test ! -s conftest.err
6464 }; then
6465 ac_header_preproc=yes
6466 else
6467 echo "$as_me: failed program was:" >&5
6468 sed 's/^/| /' conftest.$ac_ext >&5
6469
6470 ac_header_preproc=no
6471 fi
6472
6473 rm -f conftest.err conftest.$ac_ext
6474 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6475 echo "${ECHO_T}$ac_header_preproc" >&6; }
6476
6477 # So? What about this header?
6478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6479 yes:no: )
6480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6484 ac_header_preproc=yes
6485 ;;
6486 no:yes:* )
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6490 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6493 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6494 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6497 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6499
6500 ;;
6501 esac
6502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507 eval "$as_ac_Header=\$ac_header_preproc"
6508 fi
6509 ac_res=`eval echo '${'$as_ac_Header'}'`
6510 { echo "$as_me:$LINENO: result: $ac_res" >&5
6511 echo "${ECHO_T}$ac_res" >&6; }
6512
6513 fi
6514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6515 cat >>confdefs.h <<_ACEOF
6516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6517 _ACEOF
6518
6519 fi
6520
6521 done
6522
6523
6524 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6525 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6526 cat >conftest.$ac_ext <<_ACEOF
6527 /* confdefs.h. */
6528 _ACEOF
6529 cat confdefs.h >>conftest.$ac_ext
6530 cat >>conftest.$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6532 #include <sys/personality.h>
6533 int
6534 main ()
6535 {
6536 personality (PER_LINUX32)
6537 ;
6538 return 0;
6539 }
6540 _ACEOF
6541 rm -f conftest.$ac_objext
6542 if { (ac_try="$ac_compile"
6543 case "(($ac_try" in
6544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545 *) ac_try_echo=$ac_try;;
6546 esac
6547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6548 (eval "$ac_compile") 2>conftest.er1
6549 ac_status=$?
6550 grep -v '^ *+' conftest.er1 >conftest.err
6551 rm -f conftest.er1
6552 cat conftest.err >&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); } && {
6555 test -z "$ac_c_werror_flag" ||
6556 test ! -s conftest.err
6557 } && test -s conftest.$ac_objext; then
6558 emacs_cv_personality_linux32=yes
6559 else
6560 echo "$as_me: failed program was:" >&5
6561 sed 's/^/| /' conftest.$ac_ext >&5
6562
6563 emacs_cv_personality_linux32=no
6564 fi
6565
6566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6567 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6568 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6569
6570 if test $emacs_cv_personality_linux32 = yes; then
6571
6572 cat >>confdefs.h <<\_ACEOF
6573 #define HAVE_PERSONALITY_LINUX32 1
6574 _ACEOF
6575
6576 fi
6577
6578
6579 for ac_header in term.h
6580 do
6581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 else
6587 cat >conftest.$ac_ext <<_ACEOF
6588 /* confdefs.h. */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6593 #include <$ac_header>
6594 _ACEOF
6595 if { (ac_try="$ac_cpp conftest.$ac_ext"
6596 case "(($ac_try" in
6597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598 *) ac_try_echo=$ac_try;;
6599 esac
6600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6602 ac_status=$?
6603 grep -v '^ *+' conftest.er1 >conftest.err
6604 rm -f conftest.er1
6605 cat conftest.err >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } >/dev/null && {
6608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6609 test ! -s conftest.err
6610 }; then
6611 eval "$as_ac_Header=yes"
6612 else
6613 echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6615
6616 eval "$as_ac_Header=no"
6617 fi
6618
6619 rm -f conftest.err conftest.$ac_ext
6620 fi
6621 ac_res=`eval echo '${'$as_ac_Header'}'`
6622 { echo "$as_me:$LINENO: result: $ac_res" >&5
6623 echo "${ECHO_T}$ac_res" >&6; }
6624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6625 cat >>confdefs.h <<_ACEOF
6626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6627 _ACEOF
6628
6629 fi
6630
6631 done
6632
6633 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6634 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6635 if test "${ac_cv_header_stdc+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 else
6638 cat >conftest.$ac_ext <<_ACEOF
6639 /* confdefs.h. */
6640 _ACEOF
6641 cat confdefs.h >>conftest.$ac_ext
6642 cat >>conftest.$ac_ext <<_ACEOF
6643 /* end confdefs.h. */
6644 #include <stdlib.h>
6645 #include <stdarg.h>
6646 #include <string.h>
6647 #include <float.h>
6648
6649 int
6650 main ()
6651 {
6652
6653 ;
6654 return 0;
6655 }
6656 _ACEOF
6657 rm -f conftest.$ac_objext
6658 if { (ac_try="$ac_compile"
6659 case "(($ac_try" in
6660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6661 *) ac_try_echo=$ac_try;;
6662 esac
6663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6664 (eval "$ac_compile") 2>conftest.er1
6665 ac_status=$?
6666 grep -v '^ *+' conftest.er1 >conftest.err
6667 rm -f conftest.er1
6668 cat conftest.err >&5
6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); } && {
6671 test -z "$ac_c_werror_flag" ||
6672 test ! -s conftest.err
6673 } && test -s conftest.$ac_objext; then
6674 ac_cv_header_stdc=yes
6675 else
6676 echo "$as_me: failed program was:" >&5
6677 sed 's/^/| /' conftest.$ac_ext >&5
6678
6679 ac_cv_header_stdc=no
6680 fi
6681
6682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6683
6684 if test $ac_cv_header_stdc = yes; then
6685 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6686 cat >conftest.$ac_ext <<_ACEOF
6687 /* confdefs.h. */
6688 _ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 #include <string.h>
6693
6694 _ACEOF
6695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6696 $EGREP "memchr" >/dev/null 2>&1; then
6697 :
6698 else
6699 ac_cv_header_stdc=no
6700 fi
6701 rm -f conftest*
6702
6703 fi
6704
6705 if test $ac_cv_header_stdc = yes; then
6706 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6707 cat >conftest.$ac_ext <<_ACEOF
6708 /* confdefs.h. */
6709 _ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6713 #include <stdlib.h>
6714
6715 _ACEOF
6716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6717 $EGREP "free" >/dev/null 2>&1; then
6718 :
6719 else
6720 ac_cv_header_stdc=no
6721 fi
6722 rm -f conftest*
6723
6724 fi
6725
6726 if test $ac_cv_header_stdc = yes; then
6727 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6728 if test "$cross_compiling" = yes; then
6729 :
6730 else
6731 cat >conftest.$ac_ext <<_ACEOF
6732 /* confdefs.h. */
6733 _ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6737 #include <ctype.h>
6738 #include <stdlib.h>
6739 #if ((' ' & 0x0FF) == 0x020)
6740 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6741 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6742 #else
6743 # define ISLOWER(c) \
6744 (('a' <= (c) && (c) <= 'i') \
6745 || ('j' <= (c) && (c) <= 'r') \
6746 || ('s' <= (c) && (c) <= 'z'))
6747 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6748 #endif
6749
6750 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6751 int
6752 main ()
6753 {
6754 int i;
6755 for (i = 0; i < 256; i++)
6756 if (XOR (islower (i), ISLOWER (i))
6757 || toupper (i) != TOUPPER (i))
6758 return 2;
6759 return 0;
6760 }
6761 _ACEOF
6762 rm -f conftest$ac_exeext
6763 if { (ac_try="$ac_link"
6764 case "(($ac_try" in
6765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6766 *) ac_try_echo=$ac_try;;
6767 esac
6768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6769 (eval "$ac_link") 2>&5
6770 ac_status=$?
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6773 { (case "(($ac_try" in
6774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6775 *) ac_try_echo=$ac_try;;
6776 esac
6777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6778 (eval "$ac_try") 2>&5
6779 ac_status=$?
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); }; }; then
6782 :
6783 else
6784 echo "$as_me: program exited with status $ac_status" >&5
6785 echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.$ac_ext >&5
6787
6788 ( exit $ac_status )
6789 ac_cv_header_stdc=no
6790 fi
6791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6792 fi
6793
6794
6795 fi
6796 fi
6797 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6798 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6799 if test $ac_cv_header_stdc = yes; then
6800
6801 cat >>confdefs.h <<\_ACEOF
6802 #define STDC_HEADERS 1
6803 _ACEOF
6804
6805 fi
6806
6807 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6808 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6809 if test "${ac_cv_header_time+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 else
6812 cat >conftest.$ac_ext <<_ACEOF
6813 /* confdefs.h. */
6814 _ACEOF
6815 cat confdefs.h >>conftest.$ac_ext
6816 cat >>conftest.$ac_ext <<_ACEOF
6817 /* end confdefs.h. */
6818 #include <sys/types.h>
6819 #include <sys/time.h>
6820 #include <time.h>
6821
6822 int
6823 main ()
6824 {
6825 if ((struct tm *) 0)
6826 return 0;
6827 ;
6828 return 0;
6829 }
6830 _ACEOF
6831 rm -f conftest.$ac_objext
6832 if { (ac_try="$ac_compile"
6833 case "(($ac_try" in
6834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6835 *) ac_try_echo=$ac_try;;
6836 esac
6837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6838 (eval "$ac_compile") 2>conftest.er1
6839 ac_status=$?
6840 grep -v '^ *+' conftest.er1 >conftest.err
6841 rm -f conftest.er1
6842 cat conftest.err >&5
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); } && {
6845 test -z "$ac_c_werror_flag" ||
6846 test ! -s conftest.err
6847 } && test -s conftest.$ac_objext; then
6848 ac_cv_header_time=yes
6849 else
6850 echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.$ac_ext >&5
6852
6853 ac_cv_header_time=no
6854 fi
6855
6856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6857 fi
6858 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6859 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6860 if test $ac_cv_header_time = yes; then
6861
6862 cat >>confdefs.h <<\_ACEOF
6863 #define TIME_WITH_SYS_TIME 1
6864 _ACEOF
6865
6866 fi
6867
6868 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6869 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6870 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 else
6873 cat >conftest.$ac_ext <<_ACEOF
6874 /* confdefs.h. */
6875 _ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6879 $ac_includes_default
6880 int
6881 main ()
6882 {
6883 #ifndef sys_siglist
6884 (void) sys_siglist;
6885 #endif
6886
6887 ;
6888 return 0;
6889 }
6890 _ACEOF
6891 rm -f conftest.$ac_objext
6892 if { (ac_try="$ac_compile"
6893 case "(($ac_try" in
6894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6895 *) ac_try_echo=$ac_try;;
6896 esac
6897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6898 (eval "$ac_compile") 2>conftest.er1
6899 ac_status=$?
6900 grep -v '^ *+' conftest.er1 >conftest.err
6901 rm -f conftest.er1
6902 cat conftest.err >&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } && {
6905 test -z "$ac_c_werror_flag" ||
6906 test ! -s conftest.err
6907 } && test -s conftest.$ac_objext; then
6908 ac_cv_have_decl_sys_siglist=yes
6909 else
6910 echo "$as_me: failed program was:" >&5
6911 sed 's/^/| /' conftest.$ac_ext >&5
6912
6913 ac_cv_have_decl_sys_siglist=no
6914 fi
6915
6916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6917 fi
6918 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6919 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6920 if test $ac_cv_have_decl_sys_siglist = yes; then
6921
6922 cat >>confdefs.h <<_ACEOF
6923 #define HAVE_DECL_SYS_SIGLIST 1
6924 _ACEOF
6925
6926
6927 else
6928 cat >>confdefs.h <<_ACEOF
6929 #define HAVE_DECL_SYS_SIGLIST 0
6930 _ACEOF
6931
6932
6933 fi
6934
6935
6936 if test $ac_cv_have_decl_sys_siglist != yes; then
6937 # For Tru64, at least:
6938 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6939 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6940 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 else
6943 cat >conftest.$ac_ext <<_ACEOF
6944 /* confdefs.h. */
6945 _ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6949 $ac_includes_default
6950 int
6951 main ()
6952 {
6953 #ifndef __sys_siglist
6954 (void) __sys_siglist;
6955 #endif
6956
6957 ;
6958 return 0;
6959 }
6960 _ACEOF
6961 rm -f conftest.$ac_objext
6962 if { (ac_try="$ac_compile"
6963 case "(($ac_try" in
6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6966 esac
6967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968 (eval "$ac_compile") 2>conftest.er1
6969 ac_status=$?
6970 grep -v '^ *+' conftest.er1 >conftest.err
6971 rm -f conftest.er1
6972 cat conftest.err >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } && {
6975 test -z "$ac_c_werror_flag" ||
6976 test ! -s conftest.err
6977 } && test -s conftest.$ac_objext; then
6978 ac_cv_have_decl___sys_siglist=yes
6979 else
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6982
6983 ac_cv_have_decl___sys_siglist=no
6984 fi
6985
6986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6987 fi
6988 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6989 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6990 if test $ac_cv_have_decl___sys_siglist = yes; then
6991
6992 cat >>confdefs.h <<_ACEOF
6993 #define HAVE_DECL___SYS_SIGLIST 1
6994 _ACEOF
6995
6996
6997 else
6998 cat >>confdefs.h <<_ACEOF
6999 #define HAVE_DECL___SYS_SIGLIST 0
7000 _ACEOF
7001
7002
7003 fi
7004
7005
7006 if test $ac_cv_have_decl___sys_siglist = yes; then
7007
7008 cat >>confdefs.h <<\_ACEOF
7009 #define sys_siglist __sys_siglist
7010 _ACEOF
7011
7012 fi
7013 fi
7014 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7015 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7016 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 else
7019 cat >conftest.$ac_ext <<_ACEOF
7020 /* confdefs.h. */
7021 _ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h. */
7025 #include <sys/types.h>
7026 #include <sys/wait.h>
7027 #ifndef WEXITSTATUS
7028 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7029 #endif
7030 #ifndef WIFEXITED
7031 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7032 #endif
7033
7034 int
7035 main ()
7036 {
7037 int s;
7038 wait (&s);
7039 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7040 ;
7041 return 0;
7042 }
7043 _ACEOF
7044 rm -f conftest.$ac_objext
7045 if { (ac_try="$ac_compile"
7046 case "(($ac_try" in
7047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7048 *) ac_try_echo=$ac_try;;
7049 esac
7050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7051 (eval "$ac_compile") 2>conftest.er1
7052 ac_status=$?
7053 grep -v '^ *+' conftest.er1 >conftest.err
7054 rm -f conftest.er1
7055 cat conftest.err >&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); } && {
7058 test -z "$ac_c_werror_flag" ||
7059 test ! -s conftest.err
7060 } && test -s conftest.$ac_objext; then
7061 ac_cv_header_sys_wait_h=yes
7062 else
7063 echo "$as_me: failed program was:" >&5
7064 sed 's/^/| /' conftest.$ac_ext >&5
7065
7066 ac_cv_header_sys_wait_h=no
7067 fi
7068
7069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7070 fi
7071 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7072 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7073 if test $ac_cv_header_sys_wait_h = yes; then
7074
7075 cat >>confdefs.h <<\_ACEOF
7076 #define HAVE_SYS_WAIT_H 1
7077 _ACEOF
7078
7079 fi
7080
7081
7082 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7083 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7084 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 else
7087 cat >conftest.$ac_ext <<_ACEOF
7088 /* confdefs.h. */
7089 _ACEOF
7090 cat confdefs.h >>conftest.$ac_ext
7091 cat >>conftest.$ac_ext <<_ACEOF
7092 /* end confdefs.h. */
7093 #ifdef TIME_WITH_SYS_TIME
7094 #include <sys/time.h>
7095 #include <time.h>
7096 #else
7097 #ifdef HAVE_SYS_TIME_H
7098 #include <sys/time.h>
7099 #else
7100 #include <time.h>
7101 #endif
7102 #endif
7103 #ifdef HAVE_UTIME_H
7104 #include <utime.h>
7105 #endif
7106 int
7107 main ()
7108 {
7109 static struct utimbuf x; x.actime = x.modtime;
7110 ;
7111 return 0;
7112 }
7113 _ACEOF
7114 rm -f conftest.$ac_objext
7115 if { (ac_try="$ac_compile"
7116 case "(($ac_try" in
7117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7118 *) ac_try_echo=$ac_try;;
7119 esac
7120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7121 (eval "$ac_compile") 2>conftest.er1
7122 ac_status=$?
7123 grep -v '^ *+' conftest.er1 >conftest.err
7124 rm -f conftest.er1
7125 cat conftest.err >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } && {
7128 test -z "$ac_c_werror_flag" ||
7129 test ! -s conftest.err
7130 } && test -s conftest.$ac_objext; then
7131 emacs_cv_struct_utimbuf=yes
7132 else
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7135
7136 emacs_cv_struct_utimbuf=no
7137 fi
7138
7139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140 fi
7141 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7142 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7143 if test $emacs_cv_struct_utimbuf = yes; then
7144
7145 cat >>confdefs.h <<\_ACEOF
7146 #define HAVE_STRUCT_UTIMBUF 1
7147 _ACEOF
7148
7149 fi
7150
7151 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7152 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7153 if test "${ac_cv_type_signal+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7155 else
7156 cat >conftest.$ac_ext <<_ACEOF
7157 /* confdefs.h. */
7158 _ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7162 #include <sys/types.h>
7163 #include <signal.h>
7164
7165 int
7166 main ()
7167 {
7168 return *(signal (0, 0)) (0) == 1;
7169 ;
7170 return 0;
7171 }
7172 _ACEOF
7173 rm -f conftest.$ac_objext
7174 if { (ac_try="$ac_compile"
7175 case "(($ac_try" in
7176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177 *) ac_try_echo=$ac_try;;
7178 esac
7179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7180 (eval "$ac_compile") 2>conftest.er1
7181 ac_status=$?
7182 grep -v '^ *+' conftest.er1 >conftest.err
7183 rm -f conftest.er1
7184 cat conftest.err >&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); } && {
7187 test -z "$ac_c_werror_flag" ||
7188 test ! -s conftest.err
7189 } && test -s conftest.$ac_objext; then
7190 ac_cv_type_signal=int
7191 else
7192 echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7194
7195 ac_cv_type_signal=void
7196 fi
7197
7198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7199 fi
7200 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7201 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7202
7203 cat >>confdefs.h <<_ACEOF
7204 #define RETSIGTYPE $ac_cv_type_signal
7205 _ACEOF
7206
7207
7208
7209 { echo "$as_me:$LINENO: checking for speed_t" >&5
7210 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7211 if test "${emacs_cv_speed_t+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7213 else
7214 cat >conftest.$ac_ext <<_ACEOF
7215 /* confdefs.h. */
7216 _ACEOF
7217 cat confdefs.h >>conftest.$ac_ext
7218 cat >>conftest.$ac_ext <<_ACEOF
7219 /* end confdefs.h. */
7220 #include <termios.h>
7221 int
7222 main ()
7223 {
7224 speed_t x = 1;
7225 ;
7226 return 0;
7227 }
7228 _ACEOF
7229 rm -f conftest.$ac_objext
7230 if { (ac_try="$ac_compile"
7231 case "(($ac_try" in
7232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7233 *) ac_try_echo=$ac_try;;
7234 esac
7235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7236 (eval "$ac_compile") 2>conftest.er1
7237 ac_status=$?
7238 grep -v '^ *+' conftest.er1 >conftest.err
7239 rm -f conftest.er1
7240 cat conftest.err >&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } && {
7243 test -z "$ac_c_werror_flag" ||
7244 test ! -s conftest.err
7245 } && test -s conftest.$ac_objext; then
7246 emacs_cv_speed_t=yes
7247 else
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7250
7251 emacs_cv_speed_t=no
7252 fi
7253
7254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7255 fi
7256 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7257 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7258 if test $emacs_cv_speed_t = yes; then
7259
7260 cat >>confdefs.h <<\_ACEOF
7261 #define HAVE_SPEED_T 1
7262 _ACEOF
7263
7264 fi
7265
7266 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7267 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7268 if test "${emacs_cv_struct_timeval+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 else
7271 cat >conftest.$ac_ext <<_ACEOF
7272 /* confdefs.h. */
7273 _ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7277 #ifdef TIME_WITH_SYS_TIME
7278 #include <sys/time.h>
7279 #include <time.h>
7280 #else
7281 #ifdef HAVE_SYS_TIME_H
7282 #include <sys/time.h>
7283 #else
7284 #include <time.h>
7285 #endif
7286 #endif
7287 int
7288 main ()
7289 {
7290 static struct timeval x; x.tv_sec = x.tv_usec;
7291 ;
7292 return 0;
7293 }
7294 _ACEOF
7295 rm -f conftest.$ac_objext
7296 if { (ac_try="$ac_compile"
7297 case "(($ac_try" in
7298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7299 *) ac_try_echo=$ac_try;;
7300 esac
7301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7302 (eval "$ac_compile") 2>conftest.er1
7303 ac_status=$?
7304 grep -v '^ *+' conftest.er1 >conftest.err
7305 rm -f conftest.er1
7306 cat conftest.err >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } && {
7309 test -z "$ac_c_werror_flag" ||
7310 test ! -s conftest.err
7311 } && test -s conftest.$ac_objext; then
7312 emacs_cv_struct_timeval=yes
7313 else
7314 echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7316
7317 emacs_cv_struct_timeval=no
7318 fi
7319
7320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7321 fi
7322 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7323 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7324 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7325 if test $emacs_cv_struct_timeval = yes; then
7326
7327 cat >>confdefs.h <<\_ACEOF
7328 #define HAVE_TIMEVAL 1
7329 _ACEOF
7330
7331 fi
7332
7333 { echo "$as_me:$LINENO: checking for struct exception" >&5
7334 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7335 if test "${emacs_cv_struct_exception+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338 cat >conftest.$ac_ext <<_ACEOF
7339 /* confdefs.h. */
7340 _ACEOF
7341 cat confdefs.h >>conftest.$ac_ext
7342 cat >>conftest.$ac_ext <<_ACEOF
7343 /* end confdefs.h. */
7344 #include <math.h>
7345 int
7346 main ()
7347 {
7348 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7349 ;
7350 return 0;
7351 }
7352 _ACEOF
7353 rm -f conftest.$ac_objext
7354 if { (ac_try="$ac_compile"
7355 case "(($ac_try" in
7356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7357 *) ac_try_echo=$ac_try;;
7358 esac
7359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7360 (eval "$ac_compile") 2>conftest.er1
7361 ac_status=$?
7362 grep -v '^ *+' conftest.er1 >conftest.err
7363 rm -f conftest.er1
7364 cat conftest.err >&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); } && {
7367 test -z "$ac_c_werror_flag" ||
7368 test ! -s conftest.err
7369 } && test -s conftest.$ac_objext; then
7370 emacs_cv_struct_exception=yes
7371 else
7372 echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7374
7375 emacs_cv_struct_exception=no
7376 fi
7377
7378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 fi
7380 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7381 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7382 HAVE_EXCEPTION=$emacs_cv_struct_exception
7383 if test $emacs_cv_struct_exception != yes; then
7384
7385 cat >>confdefs.h <<\_ACEOF
7386 #define NO_MATHERR 1
7387 _ACEOF
7388
7389 fi
7390
7391
7392 for ac_header in sys/socket.h
7393 do
7394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 fi
7401 ac_res=`eval echo '${'$as_ac_Header'}'`
7402 { echo "$as_me:$LINENO: result: $ac_res" >&5
7403 echo "${ECHO_T}$ac_res" >&6; }
7404 else
7405 # Is the header compilable?
7406 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7408 cat >conftest.$ac_ext <<_ACEOF
7409 /* confdefs.h. */
7410 _ACEOF
7411 cat confdefs.h >>conftest.$ac_ext
7412 cat >>conftest.$ac_ext <<_ACEOF
7413 /* end confdefs.h. */
7414 $ac_includes_default
7415 #include <$ac_header>
7416 _ACEOF
7417 rm -f conftest.$ac_objext
7418 if { (ac_try="$ac_compile"
7419 case "(($ac_try" in
7420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7421 *) ac_try_echo=$ac_try;;
7422 esac
7423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7424 (eval "$ac_compile") 2>conftest.er1
7425 ac_status=$?
7426 grep -v '^ *+' conftest.er1 >conftest.err
7427 rm -f conftest.er1
7428 cat conftest.err >&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); } && {
7431 test -z "$ac_c_werror_flag" ||
7432 test ! -s conftest.err
7433 } && test -s conftest.$ac_objext; then
7434 ac_header_compiler=yes
7435 else
7436 echo "$as_me: failed program was:" >&5
7437 sed 's/^/| /' conftest.$ac_ext >&5
7438
7439 ac_header_compiler=no
7440 fi
7441
7442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7444 echo "${ECHO_T}$ac_header_compiler" >&6; }
7445
7446 # Is the header present?
7447 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7449 cat >conftest.$ac_ext <<_ACEOF
7450 /* confdefs.h. */
7451 _ACEOF
7452 cat confdefs.h >>conftest.$ac_ext
7453 cat >>conftest.$ac_ext <<_ACEOF
7454 /* end confdefs.h. */
7455 #include <$ac_header>
7456 _ACEOF
7457 if { (ac_try="$ac_cpp conftest.$ac_ext"
7458 case "(($ac_try" in
7459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7460 *) ac_try_echo=$ac_try;;
7461 esac
7462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7464 ac_status=$?
7465 grep -v '^ *+' conftest.er1 >conftest.err
7466 rm -f conftest.er1
7467 cat conftest.err >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } >/dev/null && {
7470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7471 test ! -s conftest.err
7472 }; then
7473 ac_header_preproc=yes
7474 else
7475 echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.$ac_ext >&5
7477
7478 ac_header_preproc=no
7479 fi
7480
7481 rm -f conftest.err conftest.$ac_ext
7482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7483 echo "${ECHO_T}$ac_header_preproc" >&6; }
7484
7485 # So? What about this header?
7486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7487 yes:no: )
7488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7489 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7491 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7492 ac_header_preproc=yes
7493 ;;
7494 no:yes:* )
7495 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7497 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7498 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7499 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7500 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7501 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7502 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7505 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7506 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7507
7508 ;;
7509 esac
7510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 else
7515 eval "$as_ac_Header=\$ac_header_preproc"
7516 fi
7517 ac_res=`eval echo '${'$as_ac_Header'}'`
7518 { echo "$as_me:$LINENO: result: $ac_res" >&5
7519 echo "${ECHO_T}$ac_res" >&6; }
7520
7521 fi
7522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7523 cat >>confdefs.h <<_ACEOF
7524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7525 _ACEOF
7526
7527 fi
7528
7529 done
7530
7531
7532 for ac_header in net/if.h
7533 do
7534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
7539 else
7540 cat >conftest.$ac_ext <<_ACEOF
7541 /* confdefs.h. */
7542 _ACEOF
7543 cat confdefs.h >>conftest.$ac_ext
7544 cat >>conftest.$ac_ext <<_ACEOF
7545 /* end confdefs.h. */
7546 $ac_includes_default
7547 #if HAVE_SYS_SOCKET_H
7548 #include <sys/socket.h>
7549 #endif
7550
7551 #include <$ac_header>
7552 _ACEOF
7553 rm -f conftest.$ac_objext
7554 if { (ac_try="$ac_compile"
7555 case "(($ac_try" in
7556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7557 *) ac_try_echo=$ac_try;;
7558 esac
7559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7560 (eval "$ac_compile") 2>conftest.er1
7561 ac_status=$?
7562 grep -v '^ *+' conftest.er1 >conftest.err
7563 rm -f conftest.er1
7564 cat conftest.err >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); } && {
7567 test -z "$ac_c_werror_flag" ||
7568 test ! -s conftest.err
7569 } && test -s conftest.$ac_objext; then
7570 eval "$as_ac_Header=yes"
7571 else
7572 echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7574
7575 eval "$as_ac_Header=no"
7576 fi
7577
7578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7579 fi
7580 ac_res=`eval echo '${'$as_ac_Header'}'`
7581 { echo "$as_me:$LINENO: result: $ac_res" >&5
7582 echo "${ECHO_T}$ac_res" >&6; }
7583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7584 cat >>confdefs.h <<_ACEOF
7585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7586 _ACEOF
7587
7588 fi
7589
7590 done
7591
7592
7593 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7594 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7595 if test "${ac_cv_struct_tm+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7597 else
7598 cat >conftest.$ac_ext <<_ACEOF
7599 /* confdefs.h. */
7600 _ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h. */
7604 #include <sys/types.h>
7605 #include <time.h>
7606
7607 int
7608 main ()
7609 {
7610 struct tm tm;
7611 int *p = &tm.tm_sec;
7612 return !p;
7613 ;
7614 return 0;
7615 }
7616 _ACEOF
7617 rm -f conftest.$ac_objext
7618 if { (ac_try="$ac_compile"
7619 case "(($ac_try" in
7620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7621 *) ac_try_echo=$ac_try;;
7622 esac
7623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7624 (eval "$ac_compile") 2>conftest.er1
7625 ac_status=$?
7626 grep -v '^ *+' conftest.er1 >conftest.err
7627 rm -f conftest.er1
7628 cat conftest.err >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } && {
7631 test -z "$ac_c_werror_flag" ||
7632 test ! -s conftest.err
7633 } && test -s conftest.$ac_objext; then
7634 ac_cv_struct_tm=time.h
7635 else
7636 echo "$as_me: failed program was:" >&5
7637 sed 's/^/| /' conftest.$ac_ext >&5
7638
7639 ac_cv_struct_tm=sys/time.h
7640 fi
7641
7642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643 fi
7644 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7645 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7646 if test $ac_cv_struct_tm = sys/time.h; then
7647
7648 cat >>confdefs.h <<\_ACEOF
7649 #define TM_IN_SYS_TIME 1
7650 _ACEOF
7651
7652 fi
7653
7654 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7655 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7656 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7657 echo $ECHO_N "(cached) $ECHO_C" >&6
7658 else
7659 cat >conftest.$ac_ext <<_ACEOF
7660 /* confdefs.h. */
7661 _ACEOF
7662 cat confdefs.h >>conftest.$ac_ext
7663 cat >>conftest.$ac_ext <<_ACEOF
7664 /* end confdefs.h. */
7665 #include <sys/types.h>
7666 #include <$ac_cv_struct_tm>
7667
7668
7669 int
7670 main ()
7671 {
7672 static struct tm ac_aggr;
7673 if (ac_aggr.tm_zone)
7674 return 0;
7675 ;
7676 return 0;
7677 }
7678 _ACEOF
7679 rm -f conftest.$ac_objext
7680 if { (ac_try="$ac_compile"
7681 case "(($ac_try" in
7682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7683 *) ac_try_echo=$ac_try;;
7684 esac
7685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7686 (eval "$ac_compile") 2>conftest.er1
7687 ac_status=$?
7688 grep -v '^ *+' conftest.er1 >conftest.err
7689 rm -f conftest.er1
7690 cat conftest.err >&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } && {
7693 test -z "$ac_c_werror_flag" ||
7694 test ! -s conftest.err
7695 } && test -s conftest.$ac_objext; then
7696 ac_cv_member_struct_tm_tm_zone=yes
7697 else
7698 echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7700
7701 cat >conftest.$ac_ext <<_ACEOF
7702 /* confdefs.h. */
7703 _ACEOF
7704 cat confdefs.h >>conftest.$ac_ext
7705 cat >>conftest.$ac_ext <<_ACEOF
7706 /* end confdefs.h. */
7707 #include <sys/types.h>
7708 #include <$ac_cv_struct_tm>
7709
7710
7711 int
7712 main ()
7713 {
7714 static struct tm ac_aggr;
7715 if (sizeof ac_aggr.tm_zone)
7716 return 0;
7717 ;
7718 return 0;
7719 }
7720 _ACEOF
7721 rm -f conftest.$ac_objext
7722 if { (ac_try="$ac_compile"
7723 case "(($ac_try" in
7724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725 *) ac_try_echo=$ac_try;;
7726 esac
7727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7728 (eval "$ac_compile") 2>conftest.er1
7729 ac_status=$?
7730 grep -v '^ *+' conftest.er1 >conftest.err
7731 rm -f conftest.er1
7732 cat conftest.err >&5
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); } && {
7735 test -z "$ac_c_werror_flag" ||
7736 test ! -s conftest.err
7737 } && test -s conftest.$ac_objext; then
7738 ac_cv_member_struct_tm_tm_zone=yes
7739 else
7740 echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7742
7743 ac_cv_member_struct_tm_tm_zone=no
7744 fi
7745
7746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7747 fi
7748
7749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7750 fi
7751 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7752 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7753 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7754
7755 cat >>confdefs.h <<_ACEOF
7756 #define HAVE_STRUCT_TM_TM_ZONE 1
7757 _ACEOF
7758
7759
7760 fi
7761
7762 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7763
7764 cat >>confdefs.h <<\_ACEOF
7765 #define HAVE_TM_ZONE 1
7766 _ACEOF
7767
7768 else
7769 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7770 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7771 if test "${ac_cv_have_decl_tzname+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774 cat >conftest.$ac_ext <<_ACEOF
7775 /* confdefs.h. */
7776 _ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7780 #include <time.h>
7781
7782 int
7783 main ()
7784 {
7785 #ifndef tzname
7786 (void) tzname;
7787 #endif
7788
7789 ;
7790 return 0;
7791 }
7792 _ACEOF
7793 rm -f conftest.$ac_objext
7794 if { (ac_try="$ac_compile"
7795 case "(($ac_try" in
7796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797 *) ac_try_echo=$ac_try;;
7798 esac
7799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7800 (eval "$ac_compile") 2>conftest.er1
7801 ac_status=$?
7802 grep -v '^ *+' conftest.er1 >conftest.err
7803 rm -f conftest.er1
7804 cat conftest.err >&5
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); } && {
7807 test -z "$ac_c_werror_flag" ||
7808 test ! -s conftest.err
7809 } && test -s conftest.$ac_objext; then
7810 ac_cv_have_decl_tzname=yes
7811 else
7812 echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7814
7815 ac_cv_have_decl_tzname=no
7816 fi
7817
7818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7819 fi
7820 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7821 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7822 if test $ac_cv_have_decl_tzname = yes; then
7823
7824 cat >>confdefs.h <<_ACEOF
7825 #define HAVE_DECL_TZNAME 1
7826 _ACEOF
7827
7828
7829 else
7830 cat >>confdefs.h <<_ACEOF
7831 #define HAVE_DECL_TZNAME 0
7832 _ACEOF
7833
7834
7835 fi
7836
7837
7838 { echo "$as_me:$LINENO: checking for tzname" >&5
7839 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7840 if test "${ac_cv_var_tzname+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7842 else
7843 cat >conftest.$ac_ext <<_ACEOF
7844 /* confdefs.h. */
7845 _ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7849 #include <time.h>
7850 #if !HAVE_DECL_TZNAME
7851 extern char *tzname[];
7852 #endif
7853
7854 int
7855 main ()
7856 {
7857 return tzname[0][0];
7858 ;
7859 return 0;
7860 }
7861 _ACEOF
7862 rm -f conftest.$ac_objext conftest$ac_exeext
7863 if { (ac_try="$ac_link"
7864 case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7867 esac
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_link") 2>conftest.er1
7870 ac_status=$?
7871 grep -v '^ *+' conftest.er1 >conftest.err
7872 rm -f conftest.er1
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } && {
7876 test -z "$ac_c_werror_flag" ||
7877 test ! -s conftest.err
7878 } && test -s conftest$ac_exeext &&
7879 $as_test_x conftest$ac_exeext; then
7880 ac_cv_var_tzname=yes
7881 else
7882 echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.$ac_ext >&5
7884
7885 ac_cv_var_tzname=no
7886 fi
7887
7888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7889 conftest$ac_exeext conftest.$ac_ext
7890 fi
7891 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7892 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7893 if test $ac_cv_var_tzname = yes; then
7894
7895 cat >>confdefs.h <<\_ACEOF
7896 #define HAVE_TZNAME 1
7897 _ACEOF
7898
7899 fi
7900 fi
7901
7902 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7903 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7904 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7906 else
7907 cat >conftest.$ac_ext <<_ACEOF
7908 /* confdefs.h. */
7909 _ACEOF
7910 cat confdefs.h >>conftest.$ac_ext
7911 cat >>conftest.$ac_ext <<_ACEOF
7912 /* end confdefs.h. */
7913 #include <time.h>
7914
7915 int
7916 main ()
7917 {
7918 static struct tm ac_aggr;
7919 if (ac_aggr.tm_gmtoff)
7920 return 0;
7921 ;
7922 return 0;
7923 }
7924 _ACEOF
7925 rm -f conftest.$ac_objext
7926 if { (ac_try="$ac_compile"
7927 case "(($ac_try" in
7928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7929 *) ac_try_echo=$ac_try;;
7930 esac
7931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7932 (eval "$ac_compile") 2>conftest.er1
7933 ac_status=$?
7934 grep -v '^ *+' conftest.er1 >conftest.err
7935 rm -f conftest.er1
7936 cat conftest.err >&5
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); } && {
7939 test -z "$ac_c_werror_flag" ||
7940 test ! -s conftest.err
7941 } && test -s conftest.$ac_objext; then
7942 ac_cv_member_struct_tm_tm_gmtoff=yes
7943 else
7944 echo "$as_me: failed program was:" >&5
7945 sed 's/^/| /' conftest.$ac_ext >&5
7946
7947 cat >conftest.$ac_ext <<_ACEOF
7948 /* confdefs.h. */
7949 _ACEOF
7950 cat confdefs.h >>conftest.$ac_ext
7951 cat >>conftest.$ac_ext <<_ACEOF
7952 /* end confdefs.h. */
7953 #include <time.h>
7954
7955 int
7956 main ()
7957 {
7958 static struct tm ac_aggr;
7959 if (sizeof ac_aggr.tm_gmtoff)
7960 return 0;
7961 ;
7962 return 0;
7963 }
7964 _ACEOF
7965 rm -f conftest.$ac_objext
7966 if { (ac_try="$ac_compile"
7967 case "(($ac_try" in
7968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969 *) ac_try_echo=$ac_try;;
7970 esac
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972 (eval "$ac_compile") 2>conftest.er1
7973 ac_status=$?
7974 grep -v '^ *+' conftest.er1 >conftest.err
7975 rm -f conftest.er1
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } && {
7979 test -z "$ac_c_werror_flag" ||
7980 test ! -s conftest.err
7981 } && test -s conftest.$ac_objext; then
7982 ac_cv_member_struct_tm_tm_gmtoff=yes
7983 else
7984 echo "$as_me: failed program was:" >&5
7985 sed 's/^/| /' conftest.$ac_ext >&5
7986
7987 ac_cv_member_struct_tm_tm_gmtoff=no
7988 fi
7989
7990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7991 fi
7992
7993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7994 fi
7995 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7996 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7997 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7998
7999 cat >>confdefs.h <<\_ACEOF
8000 #define HAVE_TM_GMTOFF 1
8001 _ACEOF
8002
8003 fi
8004
8005 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8006 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8007 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 else
8010 cat >conftest.$ac_ext <<_ACEOF
8011 /* confdefs.h. */
8012 _ACEOF
8013 cat confdefs.h >>conftest.$ac_ext
8014 cat >>conftest.$ac_ext <<_ACEOF
8015 /* end confdefs.h. */
8016 $ac_includes_default
8017 #if HAVE_SYS_SOCKET_H
8018 #include <sys/socket.h>
8019 #endif
8020 #if HAVE_NET_IF_H
8021 #include <net/if.h>
8022 #endif
8023
8024 int
8025 main ()
8026 {
8027 static struct ifreq ac_aggr;
8028 if (ac_aggr.ifr_flags)
8029 return 0;
8030 ;
8031 return 0;
8032 }
8033 _ACEOF
8034 rm -f conftest.$ac_objext
8035 if { (ac_try="$ac_compile"
8036 case "(($ac_try" in
8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8039 esac
8040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041 (eval "$ac_compile") 2>conftest.er1
8042 ac_status=$?
8043 grep -v '^ *+' conftest.er1 >conftest.err
8044 rm -f conftest.er1
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } && {
8048 test -z "$ac_c_werror_flag" ||
8049 test ! -s conftest.err
8050 } && test -s conftest.$ac_objext; then
8051 ac_cv_member_struct_ifreq_ifr_flags=yes
8052 else
8053 echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8055
8056 cat >conftest.$ac_ext <<_ACEOF
8057 /* confdefs.h. */
8058 _ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8062 $ac_includes_default
8063 #if HAVE_SYS_SOCKET_H
8064 #include <sys/socket.h>
8065 #endif
8066 #if HAVE_NET_IF_H
8067 #include <net/if.h>
8068 #endif
8069
8070 int
8071 main ()
8072 {
8073 static struct ifreq ac_aggr;
8074 if (sizeof ac_aggr.ifr_flags)
8075 return 0;
8076 ;
8077 return 0;
8078 }
8079 _ACEOF
8080 rm -f conftest.$ac_objext
8081 if { (ac_try="$ac_compile"
8082 case "(($ac_try" in
8083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8084 *) ac_try_echo=$ac_try;;
8085 esac
8086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8087 (eval "$ac_compile") 2>conftest.er1
8088 ac_status=$?
8089 grep -v '^ *+' conftest.er1 >conftest.err
8090 rm -f conftest.er1
8091 cat conftest.err >&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } && {
8094 test -z "$ac_c_werror_flag" ||
8095 test ! -s conftest.err
8096 } && test -s conftest.$ac_objext; then
8097 ac_cv_member_struct_ifreq_ifr_flags=yes
8098 else
8099 echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8101
8102 ac_cv_member_struct_ifreq_ifr_flags=no
8103 fi
8104
8105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106 fi
8107
8108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8109 fi
8110 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8111 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8112 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8113
8114 cat >>confdefs.h <<_ACEOF
8115 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8116 _ACEOF
8117
8118
8119 fi
8120 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8121 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8122 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8124 else
8125 cat >conftest.$ac_ext <<_ACEOF
8126 /* confdefs.h. */
8127 _ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h. */
8131 $ac_includes_default
8132 #if HAVE_SYS_SOCKET_H
8133 #include <sys/socket.h>
8134 #endif
8135 #if HAVE_NET_IF_H
8136 #include <net/if.h>
8137 #endif
8138
8139 int
8140 main ()
8141 {
8142 static struct ifreq ac_aggr;
8143 if (ac_aggr.ifr_hwaddr)
8144 return 0;
8145 ;
8146 return 0;
8147 }
8148 _ACEOF
8149 rm -f conftest.$ac_objext
8150 if { (ac_try="$ac_compile"
8151 case "(($ac_try" in
8152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8153 *) ac_try_echo=$ac_try;;
8154 esac
8155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8156 (eval "$ac_compile") 2>conftest.er1
8157 ac_status=$?
8158 grep -v '^ *+' conftest.er1 >conftest.err
8159 rm -f conftest.er1
8160 cat conftest.err >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } && {
8163 test -z "$ac_c_werror_flag" ||
8164 test ! -s conftest.err
8165 } && test -s conftest.$ac_objext; then
8166 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8167 else
8168 echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8170
8171 cat >conftest.$ac_ext <<_ACEOF
8172 /* confdefs.h. */
8173 _ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8177 $ac_includes_default
8178 #if HAVE_SYS_SOCKET_H
8179 #include <sys/socket.h>
8180 #endif
8181 #if HAVE_NET_IF_H
8182 #include <net/if.h>
8183 #endif
8184
8185 int
8186 main ()
8187 {
8188 static struct ifreq ac_aggr;
8189 if (sizeof ac_aggr.ifr_hwaddr)
8190 return 0;
8191 ;
8192 return 0;
8193 }
8194 _ACEOF
8195 rm -f conftest.$ac_objext
8196 if { (ac_try="$ac_compile"
8197 case "(($ac_try" in
8198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8200 esac
8201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202 (eval "$ac_compile") 2>conftest.er1
8203 ac_status=$?
8204 grep -v '^ *+' conftest.er1 >conftest.err
8205 rm -f conftest.er1
8206 cat conftest.err >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); } && {
8209 test -z "$ac_c_werror_flag" ||
8210 test ! -s conftest.err
8211 } && test -s conftest.$ac_objext; then
8212 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8213 else
8214 echo "$as_me: failed program was:" >&5
8215 sed 's/^/| /' conftest.$ac_ext >&5
8216
8217 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8218 fi
8219
8220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8221 fi
8222
8223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8224 fi
8225 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8226 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8227 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8228
8229 cat >>confdefs.h <<_ACEOF
8230 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8231 _ACEOF
8232
8233
8234 fi
8235 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8236 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8237 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
8239 else
8240 cat >conftest.$ac_ext <<_ACEOF
8241 /* confdefs.h. */
8242 _ACEOF
8243 cat confdefs.h >>conftest.$ac_ext
8244 cat >>conftest.$ac_ext <<_ACEOF
8245 /* end confdefs.h. */
8246 $ac_includes_default
8247 #if HAVE_SYS_SOCKET_H
8248 #include <sys/socket.h>
8249 #endif
8250 #if HAVE_NET_IF_H
8251 #include <net/if.h>
8252 #endif
8253
8254 int
8255 main ()
8256 {
8257 static struct ifreq ac_aggr;
8258 if (ac_aggr.ifr_netmask)
8259 return 0;
8260 ;
8261 return 0;
8262 }
8263 _ACEOF
8264 rm -f conftest.$ac_objext
8265 if { (ac_try="$ac_compile"
8266 case "(($ac_try" in
8267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268 *) ac_try_echo=$ac_try;;
8269 esac
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271 (eval "$ac_compile") 2>conftest.er1
8272 ac_status=$?
8273 grep -v '^ *+' conftest.er1 >conftest.err
8274 rm -f conftest.er1
8275 cat conftest.err >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } && {
8278 test -z "$ac_c_werror_flag" ||
8279 test ! -s conftest.err
8280 } && test -s conftest.$ac_objext; then
8281 ac_cv_member_struct_ifreq_ifr_netmask=yes
8282 else
8283 echo "$as_me: failed program was:" >&5
8284 sed 's/^/| /' conftest.$ac_ext >&5
8285
8286 cat >conftest.$ac_ext <<_ACEOF
8287 /* confdefs.h. */
8288 _ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h. */
8292 $ac_includes_default
8293 #if HAVE_SYS_SOCKET_H
8294 #include <sys/socket.h>
8295 #endif
8296 #if HAVE_NET_IF_H
8297 #include <net/if.h>
8298 #endif
8299
8300 int
8301 main ()
8302 {
8303 static struct ifreq ac_aggr;
8304 if (sizeof ac_aggr.ifr_netmask)
8305 return 0;
8306 ;
8307 return 0;
8308 }
8309 _ACEOF
8310 rm -f conftest.$ac_objext
8311 if { (ac_try="$ac_compile"
8312 case "(($ac_try" in
8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8315 esac
8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317 (eval "$ac_compile") 2>conftest.er1
8318 ac_status=$?
8319 grep -v '^ *+' conftest.er1 >conftest.err
8320 rm -f conftest.er1
8321 cat conftest.err >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } && {
8324 test -z "$ac_c_werror_flag" ||
8325 test ! -s conftest.err
8326 } && test -s conftest.$ac_objext; then
8327 ac_cv_member_struct_ifreq_ifr_netmask=yes
8328 else
8329 echo "$as_me: failed program was:" >&5
8330 sed 's/^/| /' conftest.$ac_ext >&5
8331
8332 ac_cv_member_struct_ifreq_ifr_netmask=no
8333 fi
8334
8335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8336 fi
8337
8338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8339 fi
8340 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8341 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8342 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8343
8344 cat >>confdefs.h <<_ACEOF
8345 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8346 _ACEOF
8347
8348
8349 fi
8350 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8351 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8352 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8354 else
8355 cat >conftest.$ac_ext <<_ACEOF
8356 /* confdefs.h. */
8357 _ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8361 $ac_includes_default
8362 #if HAVE_SYS_SOCKET_H
8363 #include <sys/socket.h>
8364 #endif
8365 #if HAVE_NET_IF_H
8366 #include <net/if.h>
8367 #endif
8368
8369 int
8370 main ()
8371 {
8372 static struct ifreq ac_aggr;
8373 if (ac_aggr.ifr_broadaddr)
8374 return 0;
8375 ;
8376 return 0;
8377 }
8378 _ACEOF
8379 rm -f conftest.$ac_objext
8380 if { (ac_try="$ac_compile"
8381 case "(($ac_try" in
8382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8383 *) ac_try_echo=$ac_try;;
8384 esac
8385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8386 (eval "$ac_compile") 2>conftest.er1
8387 ac_status=$?
8388 grep -v '^ *+' conftest.er1 >conftest.err
8389 rm -f conftest.er1
8390 cat conftest.err >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } && {
8393 test -z "$ac_c_werror_flag" ||
8394 test ! -s conftest.err
8395 } && test -s conftest.$ac_objext; then
8396 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8397 else
8398 echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8400
8401 cat >conftest.$ac_ext <<_ACEOF
8402 /* confdefs.h. */
8403 _ACEOF
8404 cat confdefs.h >>conftest.$ac_ext
8405 cat >>conftest.$ac_ext <<_ACEOF
8406 /* end confdefs.h. */
8407 $ac_includes_default
8408 #if HAVE_SYS_SOCKET_H
8409 #include <sys/socket.h>
8410 #endif
8411 #if HAVE_NET_IF_H
8412 #include <net/if.h>
8413 #endif
8414
8415 int
8416 main ()
8417 {
8418 static struct ifreq ac_aggr;
8419 if (sizeof ac_aggr.ifr_broadaddr)
8420 return 0;
8421 ;
8422 return 0;
8423 }
8424 _ACEOF
8425 rm -f conftest.$ac_objext
8426 if { (ac_try="$ac_compile"
8427 case "(($ac_try" in
8428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429 *) ac_try_echo=$ac_try;;
8430 esac
8431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432 (eval "$ac_compile") 2>conftest.er1
8433 ac_status=$?
8434 grep -v '^ *+' conftest.er1 >conftest.err
8435 rm -f conftest.er1
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } && {
8439 test -z "$ac_c_werror_flag" ||
8440 test ! -s conftest.err
8441 } && test -s conftest.$ac_objext; then
8442 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8443 else
8444 echo "$as_me: failed program was:" >&5
8445 sed 's/^/| /' conftest.$ac_ext >&5
8446
8447 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8448 fi
8449
8450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8451 fi
8452
8453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8454 fi
8455 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8456 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8457 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8458
8459 cat >>confdefs.h <<_ACEOF
8460 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8461 _ACEOF
8462
8463
8464 fi
8465 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8466 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8467 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
8469 else
8470 cat >conftest.$ac_ext <<_ACEOF
8471 /* confdefs.h. */
8472 _ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8476 $ac_includes_default
8477 #if HAVE_SYS_SOCKET_H
8478 #include <sys/socket.h>
8479 #endif
8480 #if HAVE_NET_IF_H
8481 #include <net/if.h>
8482 #endif
8483
8484 int
8485 main ()
8486 {
8487 static struct ifreq ac_aggr;
8488 if (ac_aggr.ifr_addr)
8489 return 0;
8490 ;
8491 return 0;
8492 }
8493 _ACEOF
8494 rm -f conftest.$ac_objext
8495 if { (ac_try="$ac_compile"
8496 case "(($ac_try" in
8497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498 *) ac_try_echo=$ac_try;;
8499 esac
8500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501 (eval "$ac_compile") 2>conftest.er1
8502 ac_status=$?
8503 grep -v '^ *+' conftest.er1 >conftest.err
8504 rm -f conftest.er1
8505 cat conftest.err >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } && {
8508 test -z "$ac_c_werror_flag" ||
8509 test ! -s conftest.err
8510 } && test -s conftest.$ac_objext; then
8511 ac_cv_member_struct_ifreq_ifr_addr=yes
8512 else
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8515
8516 cat >conftest.$ac_ext <<_ACEOF
8517 /* confdefs.h. */
8518 _ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h. */
8522 $ac_includes_default
8523 #if HAVE_SYS_SOCKET_H
8524 #include <sys/socket.h>
8525 #endif
8526 #if HAVE_NET_IF_H
8527 #include <net/if.h>
8528 #endif
8529
8530 int
8531 main ()
8532 {
8533 static struct ifreq ac_aggr;
8534 if (sizeof ac_aggr.ifr_addr)
8535 return 0;
8536 ;
8537 return 0;
8538 }
8539 _ACEOF
8540 rm -f conftest.$ac_objext
8541 if { (ac_try="$ac_compile"
8542 case "(($ac_try" in
8543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544 *) ac_try_echo=$ac_try;;
8545 esac
8546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8547 (eval "$ac_compile") 2>conftest.er1
8548 ac_status=$?
8549 grep -v '^ *+' conftest.er1 >conftest.err
8550 rm -f conftest.er1
8551 cat conftest.err >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } && {
8554 test -z "$ac_c_werror_flag" ||
8555 test ! -s conftest.err
8556 } && test -s conftest.$ac_objext; then
8557 ac_cv_member_struct_ifreq_ifr_addr=yes
8558 else
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8561
8562 ac_cv_member_struct_ifreq_ifr_addr=no
8563 fi
8564
8565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8566 fi
8567
8568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8569 fi
8570 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8571 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8572 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8573
8574 cat >>confdefs.h <<_ACEOF
8575 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8576 _ACEOF
8577
8578
8579 fi
8580
8581
8582
8583 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8584 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8585 if test "$ac_cv_prog_cc_c89" != no; then
8586 { echo "$as_me:$LINENO: result: yes" >&5
8587 echo "${ECHO_T}yes" >&6; }
8588
8589 cat >>confdefs.h <<\_ACEOF
8590 #define PROTOTYPES 1
8591 _ACEOF
8592
8593
8594 cat >>confdefs.h <<\_ACEOF
8595 #define __PROTOTYPES 1
8596 _ACEOF
8597
8598 else
8599 { echo "$as_me:$LINENO: result: no" >&5
8600 echo "${ECHO_T}no" >&6; }
8601 fi
8602
8603 { echo "$as_me:$LINENO: checking for working volatile" >&5
8604 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8605 if test "${ac_cv_c_volatile+set}" = set; then
8606 echo $ECHO_N "(cached) $ECHO_C" >&6
8607 else
8608 cat >conftest.$ac_ext <<_ACEOF
8609 /* confdefs.h. */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8614
8615 int
8616 main ()
8617 {
8618
8619 volatile int x;
8620 int * volatile y = (int *) 0;
8621 return !x && !y;
8622 ;
8623 return 0;
8624 }
8625 _ACEOF
8626 rm -f conftest.$ac_objext
8627 if { (ac_try="$ac_compile"
8628 case "(($ac_try" in
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8631 esac
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_compile") 2>conftest.er1
8634 ac_status=$?
8635 grep -v '^ *+' conftest.er1 >conftest.err
8636 rm -f conftest.er1
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } && {
8640 test -z "$ac_c_werror_flag" ||
8641 test ! -s conftest.err
8642 } && test -s conftest.$ac_objext; then
8643 ac_cv_c_volatile=yes
8644 else
8645 echo "$as_me: failed program was:" >&5
8646 sed 's/^/| /' conftest.$ac_ext >&5
8647
8648 ac_cv_c_volatile=no
8649 fi
8650
8651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8652 fi
8653 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8654 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8655 if test $ac_cv_c_volatile = no; then
8656
8657 cat >>confdefs.h <<\_ACEOF
8658 #define volatile
8659 _ACEOF
8660
8661 fi
8662
8663 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8664 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8665 if test "${ac_cv_c_const+set}" = set; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8667 else
8668 cat >conftest.$ac_ext <<_ACEOF
8669 /* confdefs.h. */
8670 _ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674
8675 int
8676 main ()
8677 {
8678 /* FIXME: Include the comments suggested by Paul. */
8679 #ifndef __cplusplus
8680 /* Ultrix mips cc rejects this. */
8681 typedef int charset[2];
8682 const charset cs;
8683 /* SunOS 4.1.1 cc rejects this. */
8684 char const *const *pcpcc;
8685 char **ppc;
8686 /* NEC SVR4.0.2 mips cc rejects this. */
8687 struct point {int x, y;};
8688 static struct point const zero = {0,0};
8689 /* AIX XL C 1.02.0.0 rejects this.
8690 It does not let you subtract one const X* pointer from another in
8691 an arm of an if-expression whose if-part is not a constant
8692 expression */
8693 const char *g = "string";
8694 pcpcc = &g + (g ? g-g : 0);
8695 /* HPUX 7.0 cc rejects these. */
8696 ++pcpcc;
8697 ppc = (char**) pcpcc;
8698 pcpcc = (char const *const *) ppc;
8699 { /* SCO 3.2v4 cc rejects this. */
8700 char *t;
8701 char const *s = 0 ? (char *) 0 : (char const *) 0;
8702
8703 *t++ = 0;
8704 if (s) return 0;
8705 }
8706 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8707 int x[] = {25, 17};
8708 const int *foo = &x[0];
8709 ++foo;
8710 }
8711 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8712 typedef const int *iptr;
8713 iptr p = 0;
8714 ++p;
8715 }
8716 { /* AIX XL C 1.02.0.0 rejects this saying
8717 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8718 struct s { int j; const int *ap[3]; };
8719 struct s *b; b->j = 5;
8720 }
8721 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8722 const int foo = 10;
8723 if (!foo) return 0;
8724 }
8725 return !cs[0] && !zero.x;
8726 #endif
8727
8728 ;
8729 return 0;
8730 }
8731 _ACEOF
8732 rm -f conftest.$ac_objext
8733 if { (ac_try="$ac_compile"
8734 case "(($ac_try" in
8735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736 *) ac_try_echo=$ac_try;;
8737 esac
8738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739 (eval "$ac_compile") 2>conftest.er1
8740 ac_status=$?
8741 grep -v '^ *+' conftest.er1 >conftest.err
8742 rm -f conftest.er1
8743 cat conftest.err >&5
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); } && {
8746 test -z "$ac_c_werror_flag" ||
8747 test ! -s conftest.err
8748 } && test -s conftest.$ac_objext; then
8749 ac_cv_c_const=yes
8750 else
8751 echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8753
8754 ac_cv_c_const=no
8755 fi
8756
8757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8758 fi
8759 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8760 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8761 if test $ac_cv_c_const = no; then
8762
8763 cat >>confdefs.h <<\_ACEOF
8764 #define const
8765 _ACEOF
8766
8767 fi
8768
8769 { echo "$as_me:$LINENO: checking for void * support" >&5
8770 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8771 if test "${emacs_cv_void_star+set}" = set; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8773 else
8774 cat >conftest.$ac_ext <<_ACEOF
8775 /* confdefs.h. */
8776 _ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8780
8781 int
8782 main ()
8783 {
8784 void * foo;
8785 ;
8786 return 0;
8787 }
8788 _ACEOF
8789 rm -f conftest.$ac_objext
8790 if { (ac_try="$ac_compile"
8791 case "(($ac_try" in
8792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8793 *) ac_try_echo=$ac_try;;
8794 esac
8795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8796 (eval "$ac_compile") 2>conftest.er1
8797 ac_status=$?
8798 grep -v '^ *+' conftest.er1 >conftest.err
8799 rm -f conftest.er1
8800 cat conftest.err >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); } && {
8803 test -z "$ac_c_werror_flag" ||
8804 test ! -s conftest.err
8805 } && test -s conftest.$ac_objext; then
8806 emacs_cv_void_star=yes
8807 else
8808 echo "$as_me: failed program was:" >&5
8809 sed 's/^/| /' conftest.$ac_ext >&5
8810
8811 emacs_cv_void_star=no
8812 fi
8813
8814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8815 fi
8816 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8817 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8818 if test $emacs_cv_void_star = yes; then
8819 cat >>confdefs.h <<\_ACEOF
8820 #define POINTER_TYPE void
8821 _ACEOF
8822
8823 else
8824 cat >>confdefs.h <<\_ACEOF
8825 #define POINTER_TYPE char
8826 _ACEOF
8827
8828 fi
8829
8830
8831
8832
8833
8834 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8835 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8836 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8837 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8838 echo $ECHO_N "(cached) $ECHO_C" >&6
8839 else
8840 cat >conftest.make <<\_ACEOF
8841 SHELL = /bin/sh
8842 all:
8843 @echo '@@@%%%=$(MAKE)=@@@%%%'
8844 _ACEOF
8845 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8846 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8847 *@@@%%%=?*=@@@%%%*)
8848 eval ac_cv_prog_make_${ac_make}_set=yes;;
8849 *)
8850 eval ac_cv_prog_make_${ac_make}_set=no;;
8851 esac
8852 rm -f conftest.make
8853 fi
8854 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8855 { echo "$as_me:$LINENO: result: yes" >&5
8856 echo "${ECHO_T}yes" >&6; }
8857 SET_MAKE=
8858 else
8859 { echo "$as_me:$LINENO: result: no" >&5
8860 echo "${ECHO_T}no" >&6; }
8861 SET_MAKE="MAKE=${MAKE-make}"
8862 fi
8863
8864
8865 { echo "$as_me:$LINENO: checking for long file names" >&5
8866 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8867 if test "${ac_cv_sys_long_file_names+set}" = set; then
8868 echo $ECHO_N "(cached) $ECHO_C" >&6
8869 else
8870 ac_cv_sys_long_file_names=yes
8871 # Test for long file names in all the places we know might matter:
8872 # . the current directory, where building will happen
8873 # $prefix/lib where we will be installing things
8874 # $exec_prefix/lib likewise
8875 # $TMPDIR if set, where it might want to write temporary files
8876 # /tmp where it might want to write temporary files
8877 # /var/tmp likewise
8878 # /usr/tmp likewise
8879 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8880 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8881 # in the usual case where exec_prefix is '${prefix}'.
8882 case $ac_dir in #(
8883 . | /* | ?:[\\/]*) ;; #(
8884 *) continue;;
8885 esac
8886 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8887 ac_xdir=$ac_dir/cf$$
8888 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8889 ac_tf1=$ac_xdir/conftest9012345
8890 ac_tf2=$ac_xdir/conftest9012346
8891 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8892 ac_cv_sys_long_file_names=no
8893 rm -f -r "$ac_xdir" 2>/dev/null
8894 test $ac_cv_sys_long_file_names = no && break
8895 done
8896 fi
8897 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8898 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8899 if test $ac_cv_sys_long_file_names = yes; then
8900
8901 cat >>confdefs.h <<\_ACEOF
8902 #define HAVE_LONG_FILE_NAMES 1
8903 _ACEOF
8904
8905 fi
8906
8907
8908 #### Choose a window system.
8909
8910 { echo "$as_me:$LINENO: checking for X" >&5
8911 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8912
8913
8914 # Check whether --with-x was given.
8915 if test "${with_x+set}" = set; then
8916 withval=$with_x;
8917 fi
8918
8919 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8920 if test "x$with_x" = xno; then
8921 # The user explicitly disabled X.
8922 have_x=disabled
8923 else
8924 case $x_includes,$x_libraries in #(
8925 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8926 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8927 { (exit 1); exit 1; }; };; #(
8928 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8929 echo $ECHO_N "(cached) $ECHO_C" >&6
8930 else
8931 # One or both of the vars are not set, and there is no cached value.
8932 ac_x_includes=no ac_x_libraries=no
8933 rm -f -r conftest.dir
8934 if mkdir conftest.dir; then
8935 cd conftest.dir
8936 cat >Imakefile <<'_ACEOF'
8937 incroot:
8938 @echo incroot='${INCROOT}'
8939 usrlibdir:
8940 @echo usrlibdir='${USRLIBDIR}'
8941 libdir:
8942 @echo libdir='${LIBDIR}'
8943 _ACEOF
8944 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8945 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8946 for ac_var in incroot usrlibdir libdir; do
8947 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8948 done
8949 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8950 for ac_extension in a so sl; do
8951 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8952 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8953 ac_im_usrlibdir=$ac_im_libdir; break
8954 fi
8955 done
8956 # Screen out bogus values from the imake configuration. They are
8957 # bogus both because they are the default anyway, and because
8958 # using them would break gcc on systems where it needs fixed includes.
8959 case $ac_im_incroot in
8960 /usr/include) ac_x_includes= ;;
8961 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8962 esac
8963 case $ac_im_usrlibdir in
8964 /usr/lib | /lib) ;;
8965 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8966 esac
8967 fi
8968 cd ..
8969 rm -f -r conftest.dir
8970 fi
8971
8972 # Standard set of common directories for X headers.
8973 # Check X11 before X11Rn because it is often a symlink to the current release.
8974 ac_x_header_dirs='
8975 /usr/X11/include
8976 /usr/X11R6/include
8977 /usr/X11R5/include
8978 /usr/X11R4/include
8979
8980 /usr/include/X11
8981 /usr/include/X11R6
8982 /usr/include/X11R5
8983 /usr/include/X11R4
8984
8985 /usr/local/X11/include
8986 /usr/local/X11R6/include
8987 /usr/local/X11R5/include
8988 /usr/local/X11R4/include
8989
8990 /usr/local/include/X11
8991 /usr/local/include/X11R6
8992 /usr/local/include/X11R5
8993 /usr/local/include/X11R4
8994
8995 /usr/X386/include
8996 /usr/x386/include
8997 /usr/XFree86/include/X11
8998
8999 /usr/include
9000 /usr/local/include
9001 /usr/unsupported/include
9002 /usr/athena/include
9003 /usr/local/x11r5/include
9004 /usr/lpp/Xamples/include
9005
9006 /usr/openwin/include
9007 /usr/openwin/share/include'
9008
9009 if test "$ac_x_includes" = no; then
9010 # Guess where to find include files, by looking for Xlib.h.
9011 # First, try using that file with no special directory specified.
9012 cat >conftest.$ac_ext <<_ACEOF
9013 /* confdefs.h. */
9014 _ACEOF
9015 cat confdefs.h >>conftest.$ac_ext
9016 cat >>conftest.$ac_ext <<_ACEOF
9017 /* end confdefs.h. */
9018 #include <X11/Xlib.h>
9019 _ACEOF
9020 if { (ac_try="$ac_cpp conftest.$ac_ext"
9021 case "(($ac_try" in
9022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023 *) ac_try_echo=$ac_try;;
9024 esac
9025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9027 ac_status=$?
9028 grep -v '^ *+' conftest.er1 >conftest.err
9029 rm -f conftest.er1
9030 cat conftest.err >&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); } >/dev/null && {
9033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9034 test ! -s conftest.err
9035 }; then
9036 # We can compile using X headers with no special include directory.
9037 ac_x_includes=
9038 else
9039 echo "$as_me: failed program was:" >&5
9040 sed 's/^/| /' conftest.$ac_ext >&5
9041
9042 for ac_dir in $ac_x_header_dirs; do
9043 if test -r "$ac_dir/X11/Xlib.h"; then
9044 ac_x_includes=$ac_dir
9045 break
9046 fi
9047 done
9048 fi
9049
9050 rm -f conftest.err conftest.$ac_ext
9051 fi # $ac_x_includes = no
9052
9053 if test "$ac_x_libraries" = no; then
9054 # Check for the libraries.
9055 # See if we find them without any special options.
9056 # Don't add to $LIBS permanently.
9057 ac_save_LIBS=$LIBS
9058 LIBS="-lX11 $LIBS"
9059 cat >conftest.$ac_ext <<_ACEOF
9060 /* confdefs.h. */
9061 _ACEOF
9062 cat confdefs.h >>conftest.$ac_ext
9063 cat >>conftest.$ac_ext <<_ACEOF
9064 /* end confdefs.h. */
9065 #include <X11/Xlib.h>
9066 int
9067 main ()
9068 {
9069 XrmInitialize ()
9070 ;
9071 return 0;
9072 }
9073 _ACEOF
9074 rm -f conftest.$ac_objext conftest$ac_exeext
9075 if { (ac_try="$ac_link"
9076 case "(($ac_try" in
9077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9078 *) ac_try_echo=$ac_try;;
9079 esac
9080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9081 (eval "$ac_link") 2>conftest.er1
9082 ac_status=$?
9083 grep -v '^ *+' conftest.er1 >conftest.err
9084 rm -f conftest.er1
9085 cat conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } && {
9088 test -z "$ac_c_werror_flag" ||
9089 test ! -s conftest.err
9090 } && test -s conftest$ac_exeext &&
9091 $as_test_x conftest$ac_exeext; then
9092 LIBS=$ac_save_LIBS
9093 # We can link X programs with no special library path.
9094 ac_x_libraries=
9095 else
9096 echo "$as_me: failed program was:" >&5
9097 sed 's/^/| /' conftest.$ac_ext >&5
9098
9099 LIBS=$ac_save_LIBS
9100 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9101 do
9102 # Don't even attempt the hair of trying to link an X program!
9103 for ac_extension in a so sl; do
9104 if test -r "$ac_dir/libX11.$ac_extension"; then
9105 ac_x_libraries=$ac_dir
9106 break 2
9107 fi
9108 done
9109 done
9110 fi
9111
9112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9113 conftest$ac_exeext conftest.$ac_ext
9114 fi # $ac_x_libraries = no
9115
9116 case $ac_x_includes,$ac_x_libraries in #(
9117 no,* | *,no | *\'*)
9118 # Didn't find X, or a directory has "'" in its name.
9119 ac_cv_have_x="have_x=no";; #(
9120 *)
9121 # Record where we found X for the cache.
9122 ac_cv_have_x="have_x=yes\
9123 ac_x_includes='$ac_x_includes'\
9124 ac_x_libraries='$ac_x_libraries'"
9125 esac
9126 fi
9127 ;; #(
9128 *) have_x=yes;;
9129 esac
9130 eval "$ac_cv_have_x"
9131 fi # $with_x != no
9132
9133 if test "$have_x" != yes; then
9134 { echo "$as_me:$LINENO: result: $have_x" >&5
9135 echo "${ECHO_T}$have_x" >&6; }
9136 no_x=yes
9137 else
9138 # If each of the values was on the command line, it overrides each guess.
9139 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9140 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9141 # Update the cache value to reflect the command line values.
9142 ac_cv_have_x="have_x=yes\
9143 ac_x_includes='$x_includes'\
9144 ac_x_libraries='$x_libraries'"
9145 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9146 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9147 fi
9148
9149 if test "$no_x" = yes; then
9150 window_system=none
9151 else
9152 window_system=x11
9153 fi
9154
9155 ## Workaround for bug in autoconf <= 2.62.
9156 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9157 ## No need to do anything special for these standard directories.
9158 ## This is an experiment, take it out if it causes problems.
9159 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9160
9161 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9162
9163 fi
9164
9165 if test "${x_libraries}" != NONE; then
9166 if test -n "${x_libraries}"; then
9167 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9168 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9169 fi
9170 x_default_search_path=""
9171 x_search_path=${x_libraries}
9172 if test -z "${x_search_path}"; then
9173 x_search_path=/usr/lib
9174 fi
9175 for x_library in `echo ${x_search_path}: | \
9176 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9177 x_search_path="\
9178 ${x_library}/X11/%L/%T/%N%C%S:\
9179 ${x_library}/X11/%l/%T/%N%C%S:\
9180 ${x_library}/X11/%T/%N%C%S:\
9181 ${x_library}/X11/%L/%T/%N%S:\
9182 ${x_library}/X11/%l/%T/%N%S:\
9183 ${x_library}/X11/%T/%N%S"
9184 if test x"${x_default_search_path}" = x; then
9185 x_default_search_path=${x_search_path}
9186 else
9187 x_default_search_path="${x_search_path}:${x_default_search_path}"
9188 fi
9189 done
9190 fi
9191 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9192 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9193 fi
9194
9195 if test x"${x_includes}" = x; then
9196 bitmapdir=/usr/include/X11/bitmaps
9197 else
9198 # accumulate include directories that have X11 bitmap subdirectories
9199 bmd_acc="dummyval"
9200 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9201 if test -d "${bmd}/X11/bitmaps"; then
9202 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9203 fi
9204 if test -d "${bmd}/bitmaps"; then
9205 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9206 fi
9207 done
9208 if test ${bmd_acc} != "dummyval"; then
9209 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9210 fi
9211 fi
9212
9213 HAVE_NS=no
9214 NS_IMPL_COCOA=no
9215 NS_IMPL_GNUSTEP=no
9216 tmp_CPPFLAGS="$CPPFLAGS"
9217 tmp_CFLAGS="$CFLAGS"
9218 CPPFLAGS="$CPPFLAGS -x objective-c"
9219 CFLAGS="$CFLAGS -x objective-c"
9220 if test "${with_ns}" != no; then
9221 if test "${opsys}" = darwin; then
9222 NS_IMPL_COCOA=yes
9223 ns_appdir=`pwd`/nextstep/Emacs.app
9224 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9225 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9226 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9227 elif test -f $GNUSTEP_CONFIG_FILE; then
9228 NS_IMPL_GNUSTEP=yes
9229 ns_appdir=`pwd`/nextstep/Emacs.app
9230 ns_appbindir=`pwd`/nextstep/Emacs.app
9231 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9232 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9233 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9234 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9235 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9236 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9237 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9238 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9239 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9240 fi
9241 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9242 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9243 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9244 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
9246 fi
9247 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9248 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9249 else
9250 # Is the header compilable?
9251 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9252 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9253 cat >conftest.$ac_ext <<_ACEOF
9254 /* confdefs.h. */
9255 _ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h. */
9259 $ac_includes_default
9260 #include <AppKit/AppKit.h>
9261 _ACEOF
9262 rm -f conftest.$ac_objext
9263 if { (ac_try="$ac_compile"
9264 case "(($ac_try" in
9265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9266 *) ac_try_echo=$ac_try;;
9267 esac
9268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9269 (eval "$ac_compile") 2>conftest.er1
9270 ac_status=$?
9271 grep -v '^ *+' conftest.er1 >conftest.err
9272 rm -f conftest.er1
9273 cat conftest.err >&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); } && {
9276 test -z "$ac_c_werror_flag" ||
9277 test ! -s conftest.err
9278 } && test -s conftest.$ac_objext; then
9279 ac_header_compiler=yes
9280 else
9281 echo "$as_me: failed program was:" >&5
9282 sed 's/^/| /' conftest.$ac_ext >&5
9283
9284 ac_header_compiler=no
9285 fi
9286
9287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9289 echo "${ECHO_T}$ac_header_compiler" >&6; }
9290
9291 # Is the header present?
9292 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9293 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9294 cat >conftest.$ac_ext <<_ACEOF
9295 /* confdefs.h. */
9296 _ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9300 #include <AppKit/AppKit.h>
9301 _ACEOF
9302 if { (ac_try="$ac_cpp conftest.$ac_ext"
9303 case "(($ac_try" in
9304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9305 *) ac_try_echo=$ac_try;;
9306 esac
9307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9309 ac_status=$?
9310 grep -v '^ *+' conftest.er1 >conftest.err
9311 rm -f conftest.er1
9312 cat conftest.err >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); } >/dev/null && {
9315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9316 test ! -s conftest.err
9317 }; then
9318 ac_header_preproc=yes
9319 else
9320 echo "$as_me: failed program was:" >&5
9321 sed 's/^/| /' conftest.$ac_ext >&5
9322
9323 ac_header_preproc=no
9324 fi
9325
9326 rm -f conftest.err conftest.$ac_ext
9327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9328 echo "${ECHO_T}$ac_header_preproc" >&6; }
9329
9330 # So? What about this header?
9331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9332 yes:no: )
9333 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9334 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9335 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9336 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9337 ac_header_preproc=yes
9338 ;;
9339 no:yes:* )
9340 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9341 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9342 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9343 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9344 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9345 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9346 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9347 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9348 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9349 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9350 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9351 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9352
9353 ;;
9354 esac
9355 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9356 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9357 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9358 echo $ECHO_N "(cached) $ECHO_C" >&6
9359 else
9360 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9361 fi
9362 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9363 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9364
9365 fi
9366 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9367 HAVE_NS=yes
9368 else
9369 { { echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9370 files are missing or cannot be compiled." >&5
9371 echo "$as_me: error: \`--with-ns' was specified, but the include
9372 files are missing or cannot be compiled." >&2;}
9373 { (exit 1); exit 1; }; }
9374 fi
9375
9376
9377 NS_HAVE_NSINTEGER=yes
9378 cat >conftest.$ac_ext <<_ACEOF
9379 /* confdefs.h. */
9380 _ACEOF
9381 cat confdefs.h >>conftest.$ac_ext
9382 cat >>conftest.$ac_ext <<_ACEOF
9383 /* end confdefs.h. */
9384 #include <Foundation/NSObjCRuntime.h>
9385 int
9386 main ()
9387 {
9388 NSInteger i;
9389 ;
9390 return 0;
9391 }
9392 _ACEOF
9393 rm -f conftest.$ac_objext
9394 if { (ac_try="$ac_compile"
9395 case "(($ac_try" in
9396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9397 *) ac_try_echo=$ac_try;;
9398 esac
9399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9400 (eval "$ac_compile") 2>conftest.er1
9401 ac_status=$?
9402 grep -v '^ *+' conftest.er1 >conftest.err
9403 rm -f conftest.er1
9404 cat conftest.err >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } && {
9407 test -z "$ac_c_werror_flag" ||
9408 test ! -s conftest.err
9409 } && test -s conftest.$ac_objext; then
9410 ns_have_nsinteger=yes
9411 else
9412 echo "$as_me: failed program was:" >&5
9413 sed 's/^/| /' conftest.$ac_ext >&5
9414
9415 ns_have_nsinteger=no
9416 fi
9417
9418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9419 if test $ns_have_nsinteger = no; then
9420 NS_HAVE_NSINTEGER=no
9421 fi
9422 fi
9423 if test "${HAVE_NS}" = yes; then
9424 window_system=nextstep
9425 with_xft=no
9426 with_freetype=no
9427 # set up packaging dirs
9428 exec_prefix=${ns_appbindir}
9429 libexecdir=${ns_appbindir}/libexec
9430 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9431 prefix=${ns_appresdir}
9432 fi
9433 fi
9434 CFLAGS="$tmp_CFLAGS"
9435 CPPFLAGS="$tmp_CPPFLAGS"
9436
9437 case "${window_system}" in
9438 x11 )
9439 HAVE_X_WINDOWS=yes
9440 HAVE_X11=yes
9441 case "${with_x_toolkit}" in
9442 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9443 motif ) USE_X_TOOLKIT=MOTIF ;;
9444 gtk ) with_gtk=yes
9445 USE_X_TOOLKIT=none ;;
9446 no ) USE_X_TOOLKIT=none ;;
9447 * ) USE_X_TOOLKIT=maybe ;;
9448 esac
9449 ;;
9450 nextstep | none )
9451 HAVE_X_WINDOWS=no
9452 HAVE_X11=no
9453 USE_X_TOOLKIT=none
9454 ;;
9455 esac
9456
9457 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9458 # Extract the first word of "X", so it can be a program name with args.
9459 set dummy X; ac_word=$2
9460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9462 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9463 echo $ECHO_N "(cached) $ECHO_C" >&6
9464 else
9465 if test -n "$HAVE_XSERVER"; then
9466 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9467 else
9468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9469 for as_dir in $PATH
9470 do
9471 IFS=$as_save_IFS
9472 test -z "$as_dir" && as_dir=.
9473 for ac_exec_ext in '' $ac_executable_extensions; do
9474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9475 ac_cv_prog_HAVE_XSERVER="true"
9476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9477 break 2
9478 fi
9479 done
9480 done
9481 IFS=$as_save_IFS
9482
9483 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9484 fi
9485 fi
9486 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9487 if test -n "$HAVE_XSERVER"; then
9488 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9489 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9490 else
9491 { echo "$as_me:$LINENO: result: no" >&5
9492 echo "${ECHO_T}no" >&6; }
9493 fi
9494
9495
9496 if test "$HAVE_XSERVER" = true ||
9497 test -n "$DISPLAY" ||
9498 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9499 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9500 were found. You should install the relevant development files for X
9501 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9502 sure you have development files for image handling, i.e.
9503 tiff, gif, jpeg, png and xpm.
9504 If you are sure you want Emacs compiled without X window support, pass
9505 --without-x
9506 to configure." >&5
9507 echo "$as_me: error: You seem to be running X, but no X development libraries
9508 were found. You should install the relevant development files for X
9509 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9510 sure you have development files for image handling, i.e.
9511 tiff, gif, jpeg, png and xpm.
9512 If you are sure you want Emacs compiled without X window support, pass
9513 --without-x
9514 to configure." >&2;}
9515 { (exit 1); exit 1; }; }
9516 fi
9517 fi
9518
9519 ### If we're using X11, we should use the X menu package.
9520 HAVE_MENUS=no
9521 case ${HAVE_X11} in
9522 yes ) HAVE_MENUS=yes ;;
9523 esac
9524
9525 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9526 # Assume not, until told otherwise.
9527 GNU_MALLOC=yes
9528 doug_lea_malloc=yes
9529 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9530 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9531 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9533 else
9534 cat >conftest.$ac_ext <<_ACEOF
9535 /* confdefs.h. */
9536 _ACEOF
9537 cat confdefs.h >>conftest.$ac_ext
9538 cat >>conftest.$ac_ext <<_ACEOF
9539 /* end confdefs.h. */
9540 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9542 #define malloc_get_state innocuous_malloc_get_state
9543
9544 /* System header to define __stub macros and hopefully few prototypes,
9545 which can conflict with char malloc_get_state (); below.
9546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9547 <limits.h> exists even on freestanding compilers. */
9548
9549 #ifdef __STDC__
9550 # include <limits.h>
9551 #else
9552 # include <assert.h>
9553 #endif
9554
9555 #undef malloc_get_state
9556
9557 /* Override any GCC internal prototype to avoid an error.
9558 Use char because int might match the return type of a GCC
9559 builtin and then its argument prototype would still apply. */
9560 #ifdef __cplusplus
9561 extern "C"
9562 #endif
9563 char malloc_get_state ();
9564 /* The GNU C library defines this for functions which it implements
9565 to always fail with ENOSYS. Some functions are actually named
9566 something starting with __ and the normal name is an alias. */
9567 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9568 choke me
9569 #endif
9570
9571 int
9572 main ()
9573 {
9574 return malloc_get_state ();
9575 ;
9576 return 0;
9577 }
9578 _ACEOF
9579 rm -f conftest.$ac_objext conftest$ac_exeext
9580 if { (ac_try="$ac_link"
9581 case "(($ac_try" in
9582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9583 *) ac_try_echo=$ac_try;;
9584 esac
9585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9586 (eval "$ac_link") 2>conftest.er1
9587 ac_status=$?
9588 grep -v '^ *+' conftest.er1 >conftest.err
9589 rm -f conftest.er1
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } && {
9593 test -z "$ac_c_werror_flag" ||
9594 test ! -s conftest.err
9595 } && test -s conftest$ac_exeext &&
9596 $as_test_x conftest$ac_exeext; then
9597 ac_cv_func_malloc_get_state=yes
9598 else
9599 echo "$as_me: failed program was:" >&5
9600 sed 's/^/| /' conftest.$ac_ext >&5
9601
9602 ac_cv_func_malloc_get_state=no
9603 fi
9604
9605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9606 conftest$ac_exeext conftest.$ac_ext
9607 fi
9608 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9609 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9610 if test $ac_cv_func_malloc_get_state = yes; then
9611 :
9612 else
9613 doug_lea_malloc=no
9614 fi
9615
9616 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9617 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9618 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9619 echo $ECHO_N "(cached) $ECHO_C" >&6
9620 else
9621 cat >conftest.$ac_ext <<_ACEOF
9622 /* confdefs.h. */
9623 _ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9627 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9629 #define malloc_set_state innocuous_malloc_set_state
9630
9631 /* System header to define __stub macros and hopefully few prototypes,
9632 which can conflict with char malloc_set_state (); below.
9633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9634 <limits.h> exists even on freestanding compilers. */
9635
9636 #ifdef __STDC__
9637 # include <limits.h>
9638 #else
9639 # include <assert.h>
9640 #endif
9641
9642 #undef malloc_set_state
9643
9644 /* Override any GCC internal prototype to avoid an error.
9645 Use char because int might match the return type of a GCC
9646 builtin and then its argument prototype would still apply. */
9647 #ifdef __cplusplus
9648 extern "C"
9649 #endif
9650 char malloc_set_state ();
9651 /* The GNU C library defines this for functions which it implements
9652 to always fail with ENOSYS. Some functions are actually named
9653 something starting with __ and the normal name is an alias. */
9654 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9655 choke me
9656 #endif
9657
9658 int
9659 main ()
9660 {
9661 return malloc_set_state ();
9662 ;
9663 return 0;
9664 }
9665 _ACEOF
9666 rm -f conftest.$ac_objext conftest$ac_exeext
9667 if { (ac_try="$ac_link"
9668 case "(($ac_try" in
9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9671 esac
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673 (eval "$ac_link") 2>conftest.er1
9674 ac_status=$?
9675 grep -v '^ *+' conftest.er1 >conftest.err
9676 rm -f conftest.er1
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } && {
9680 test -z "$ac_c_werror_flag" ||
9681 test ! -s conftest.err
9682 } && test -s conftest$ac_exeext &&
9683 $as_test_x conftest$ac_exeext; then
9684 ac_cv_func_malloc_set_state=yes
9685 else
9686 echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9688
9689 ac_cv_func_malloc_set_state=no
9690 fi
9691
9692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9693 conftest$ac_exeext conftest.$ac_ext
9694 fi
9695 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9696 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9697 if test $ac_cv_func_malloc_set_state = yes; then
9698 :
9699 else
9700 doug_lea_malloc=no
9701 fi
9702
9703 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9704 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9705 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9707 else
9708 cat >conftest.$ac_ext <<_ACEOF
9709 /* confdefs.h. */
9710 _ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h. */
9714 extern void (* __after_morecore_hook)();
9715 int
9716 main ()
9717 {
9718 __after_morecore_hook = 0
9719 ;
9720 return 0;
9721 }
9722 _ACEOF
9723 rm -f conftest.$ac_objext conftest$ac_exeext
9724 if { (ac_try="$ac_link"
9725 case "(($ac_try" in
9726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727 *) ac_try_echo=$ac_try;;
9728 esac
9729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9730 (eval "$ac_link") 2>conftest.er1
9731 ac_status=$?
9732 grep -v '^ *+' conftest.er1 >conftest.err
9733 rm -f conftest.er1
9734 cat conftest.err >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); } && {
9737 test -z "$ac_c_werror_flag" ||
9738 test ! -s conftest.err
9739 } && test -s conftest$ac_exeext &&
9740 $as_test_x conftest$ac_exeext; then
9741 emacs_cv_var___after_morecore_hook=yes
9742 else
9743 echo "$as_me: failed program was:" >&5
9744 sed 's/^/| /' conftest.$ac_ext >&5
9745
9746 emacs_cv_var___after_morecore_hook=no
9747 fi
9748
9749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9750 conftest$ac_exeext conftest.$ac_ext
9751 fi
9752 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9753 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9754 if test $emacs_cv_var___after_morecore_hook = no; then
9755 doug_lea_malloc=no
9756 fi
9757 if test "${system_malloc}" = "yes"; then
9758 GNU_MALLOC=no
9759 GNU_MALLOC_reason="
9760 (The GNU allocators don't work with this system configuration.)"
9761 fi
9762 if test "$doug_lea_malloc" = "yes" ; then
9763 if test "$GNU_MALLOC" = yes ; then
9764 GNU_MALLOC_reason="
9765 (Using Doug Lea's new malloc from the GNU C Library.)"
9766 fi
9767
9768 cat >>confdefs.h <<\_ACEOF
9769 #define DOUG_LEA_MALLOC 1
9770 _ACEOF
9771
9772 fi
9773
9774 if test x"${REL_ALLOC}" = x; then
9775 REL_ALLOC=${GNU_MALLOC}
9776 fi
9777
9778
9779
9780
9781 for ac_header in stdlib.h unistd.h
9782 do
9783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9788 echo $ECHO_N "(cached) $ECHO_C" >&6
9789 fi
9790 ac_res=`eval echo '${'$as_ac_Header'}'`
9791 { echo "$as_me:$LINENO: result: $ac_res" >&5
9792 echo "${ECHO_T}$ac_res" >&6; }
9793 else
9794 # Is the header compilable?
9795 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9797 cat >conftest.$ac_ext <<_ACEOF
9798 /* confdefs.h. */
9799 _ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h. */
9803 $ac_includes_default
9804 #include <$ac_header>
9805 _ACEOF
9806 rm -f conftest.$ac_objext
9807 if { (ac_try="$ac_compile"
9808 case "(($ac_try" in
9809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810 *) ac_try_echo=$ac_try;;
9811 esac
9812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9813 (eval "$ac_compile") 2>conftest.er1
9814 ac_status=$?
9815 grep -v '^ *+' conftest.er1 >conftest.err
9816 rm -f conftest.er1
9817 cat conftest.err >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } && {
9820 test -z "$ac_c_werror_flag" ||
9821 test ! -s conftest.err
9822 } && test -s conftest.$ac_objext; then
9823 ac_header_compiler=yes
9824 else
9825 echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9827
9828 ac_header_compiler=no
9829 fi
9830
9831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9832 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9833 echo "${ECHO_T}$ac_header_compiler" >&6; }
9834
9835 # Is the header present?
9836 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9838 cat >conftest.$ac_ext <<_ACEOF
9839 /* confdefs.h. */
9840 _ACEOF
9841 cat confdefs.h >>conftest.$ac_ext
9842 cat >>conftest.$ac_ext <<_ACEOF
9843 /* end confdefs.h. */
9844 #include <$ac_header>
9845 _ACEOF
9846 if { (ac_try="$ac_cpp conftest.$ac_ext"
9847 case "(($ac_try" in
9848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849 *) ac_try_echo=$ac_try;;
9850 esac
9851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9853 ac_status=$?
9854 grep -v '^ *+' conftest.er1 >conftest.err
9855 rm -f conftest.er1
9856 cat conftest.err >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } >/dev/null && {
9859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9860 test ! -s conftest.err
9861 }; then
9862 ac_header_preproc=yes
9863 else
9864 echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9866
9867 ac_header_preproc=no
9868 fi
9869
9870 rm -f conftest.err conftest.$ac_ext
9871 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9872 echo "${ECHO_T}$ac_header_preproc" >&6; }
9873
9874 # So? What about this header?
9875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9876 yes:no: )
9877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9881 ac_header_preproc=yes
9882 ;;
9883 no:yes:* )
9884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9887 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9889 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9891 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9895 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9896
9897 ;;
9898 esac
9899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9902 echo $ECHO_N "(cached) $ECHO_C" >&6
9903 else
9904 eval "$as_ac_Header=\$ac_header_preproc"
9905 fi
9906 ac_res=`eval echo '${'$as_ac_Header'}'`
9907 { echo "$as_me:$LINENO: result: $ac_res" >&5
9908 echo "${ECHO_T}$ac_res" >&6; }
9909
9910 fi
9911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9912 cat >>confdefs.h <<_ACEOF
9913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9914 _ACEOF
9915
9916 fi
9917
9918 done
9919
9920
9921 for ac_func in getpagesize
9922 do
9923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9927 echo $ECHO_N "(cached) $ECHO_C" >&6
9928 else
9929 cat >conftest.$ac_ext <<_ACEOF
9930 /* confdefs.h. */
9931 _ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h. */
9935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9937 #define $ac_func innocuous_$ac_func
9938
9939 /* System header to define __stub macros and hopefully few prototypes,
9940 which can conflict with char $ac_func (); below.
9941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9942 <limits.h> exists even on freestanding compilers. */
9943
9944 #ifdef __STDC__
9945 # include <limits.h>
9946 #else
9947 # include <assert.h>
9948 #endif
9949
9950 #undef $ac_func
9951
9952 /* Override any GCC internal prototype to avoid an error.
9953 Use char because int might match the return type of a GCC
9954 builtin and then its argument prototype would still apply. */
9955 #ifdef __cplusplus
9956 extern "C"
9957 #endif
9958 char $ac_func ();
9959 /* The GNU C library defines this for functions which it implements
9960 to always fail with ENOSYS. Some functions are actually named
9961 something starting with __ and the normal name is an alias. */
9962 #if defined __stub_$ac_func || defined __stub___$ac_func
9963 choke me
9964 #endif
9965
9966 int
9967 main ()
9968 {
9969 return $ac_func ();
9970 ;
9971 return 0;
9972 }
9973 _ACEOF
9974 rm -f conftest.$ac_objext conftest$ac_exeext
9975 if { (ac_try="$ac_link"
9976 case "(($ac_try" in
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9979 esac
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_link") 2>conftest.er1
9982 ac_status=$?
9983 grep -v '^ *+' conftest.er1 >conftest.err
9984 rm -f conftest.er1
9985 cat conftest.err >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } && {
9988 test -z "$ac_c_werror_flag" ||
9989 test ! -s conftest.err
9990 } && test -s conftest$ac_exeext &&
9991 $as_test_x conftest$ac_exeext; then
9992 eval "$as_ac_var=yes"
9993 else
9994 echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9996
9997 eval "$as_ac_var=no"
9998 fi
9999
10000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10001 conftest$ac_exeext conftest.$ac_ext
10002 fi
10003 ac_res=`eval echo '${'$as_ac_var'}'`
10004 { echo "$as_me:$LINENO: result: $ac_res" >&5
10005 echo "${ECHO_T}$ac_res" >&6; }
10006 if test `eval echo '${'$as_ac_var'}'` = yes; then
10007 cat >>confdefs.h <<_ACEOF
10008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10009 _ACEOF
10010
10011 fi
10012 done
10013
10014 { echo "$as_me:$LINENO: checking for working mmap" >&5
10015 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10016 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 else
10019 if test "$cross_compiling" = yes; then
10020 ac_cv_func_mmap_fixed_mapped=no
10021 else
10022 cat >conftest.$ac_ext <<_ACEOF
10023 /* confdefs.h. */
10024 _ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10028 $ac_includes_default
10029 /* malloc might have been renamed as rpl_malloc. */
10030 #undef malloc
10031
10032 /* Thanks to Mike Haertel and Jim Avera for this test.
10033 Here is a matrix of mmap possibilities:
10034 mmap private not fixed
10035 mmap private fixed at somewhere currently unmapped
10036 mmap private fixed at somewhere already mapped
10037 mmap shared not fixed
10038 mmap shared fixed at somewhere currently unmapped
10039 mmap shared fixed at somewhere already mapped
10040 For private mappings, we should verify that changes cannot be read()
10041 back from the file, nor mmap's back from the file at a different
10042 address. (There have been systems where private was not correctly
10043 implemented like the infamous i386 svr4.0, and systems where the
10044 VM page cache was not coherent with the file system buffer cache
10045 like early versions of FreeBSD and possibly contemporary NetBSD.)
10046 For shared mappings, we should conversely verify that changes get
10047 propagated back to all the places they're supposed to be.
10048
10049 Grep wants private fixed already mapped.
10050 The main things grep needs to know about mmap are:
10051 * does it exist and is it safe to write into the mmap'd area
10052 * how to use it (BSD variants) */
10053
10054 #include <fcntl.h>
10055 #include <sys/mman.h>
10056
10057 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10058 char *malloc ();
10059 #endif
10060
10061 /* This mess was copied from the GNU getpagesize.h. */
10062 #ifndef HAVE_GETPAGESIZE
10063 /* Assume that all systems that can run configure have sys/param.h. */
10064 # ifndef HAVE_SYS_PARAM_H
10065 # define HAVE_SYS_PARAM_H 1
10066 # endif
10067
10068 # ifdef _SC_PAGESIZE
10069 # define getpagesize() sysconf(_SC_PAGESIZE)
10070 # else /* no _SC_PAGESIZE */
10071 # ifdef HAVE_SYS_PARAM_H
10072 # include <sys/param.h>
10073 # ifdef EXEC_PAGESIZE
10074 # define getpagesize() EXEC_PAGESIZE
10075 # else /* no EXEC_PAGESIZE */
10076 # ifdef NBPG
10077 # define getpagesize() NBPG * CLSIZE
10078 # ifndef CLSIZE
10079 # define CLSIZE 1
10080 # endif /* no CLSIZE */
10081 # else /* no NBPG */
10082 # ifdef NBPC
10083 # define getpagesize() NBPC
10084 # else /* no NBPC */
10085 # ifdef PAGESIZE
10086 # define getpagesize() PAGESIZE
10087 # endif /* PAGESIZE */
10088 # endif /* no NBPC */
10089 # endif /* no NBPG */
10090 # endif /* no EXEC_PAGESIZE */
10091 # else /* no HAVE_SYS_PARAM_H */
10092 # define getpagesize() 8192 /* punt totally */
10093 # endif /* no HAVE_SYS_PARAM_H */
10094 # endif /* no _SC_PAGESIZE */
10095
10096 #endif /* no HAVE_GETPAGESIZE */
10097
10098 int
10099 main ()
10100 {
10101 char *data, *data2, *data3;
10102 int i, pagesize;
10103 int fd;
10104
10105 pagesize = getpagesize ();
10106
10107 /* First, make a file with some known garbage in it. */
10108 data = (char *) malloc (pagesize);
10109 if (!data)
10110 return 1;
10111 for (i = 0; i < pagesize; ++i)
10112 *(data + i) = rand ();
10113 umask (0);
10114 fd = creat ("conftest.mmap", 0600);
10115 if (fd < 0)
10116 return 1;
10117 if (write (fd, data, pagesize) != pagesize)
10118 return 1;
10119 close (fd);
10120
10121 /* Next, try to mmap the file at a fixed address which already has
10122 something else allocated at it. If we can, also make sure that
10123 we see the same garbage. */
10124 fd = open ("conftest.mmap", O_RDWR);
10125 if (fd < 0)
10126 return 1;
10127 data2 = (char *) malloc (2 * pagesize);
10128 if (!data2)
10129 return 1;
10130 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10131 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10132 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10133 return 1;
10134 for (i = 0; i < pagesize; ++i)
10135 if (*(data + i) != *(data2 + i))
10136 return 1;
10137
10138 /* Finally, make sure that changes to the mapped area do not
10139 percolate back to the file as seen by read(). (This is a bug on
10140 some variants of i386 svr4.0.) */
10141 for (i = 0; i < pagesize; ++i)
10142 *(data2 + i) = *(data2 + i) + 1;
10143 data3 = (char *) malloc (pagesize);
10144 if (!data3)
10145 return 1;
10146 if (read (fd, data3, pagesize) != pagesize)
10147 return 1;
10148 for (i = 0; i < pagesize; ++i)
10149 if (*(data + i) != *(data3 + i))
10150 return 1;
10151 close (fd);
10152 return 0;
10153 }
10154 _ACEOF
10155 rm -f conftest$ac_exeext
10156 if { (ac_try="$ac_link"
10157 case "(($ac_try" in
10158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159 *) ac_try_echo=$ac_try;;
10160 esac
10161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162 (eval "$ac_link") 2>&5
10163 ac_status=$?
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10166 { (case "(($ac_try" in
10167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168 *) ac_try_echo=$ac_try;;
10169 esac
10170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10171 (eval "$ac_try") 2>&5
10172 ac_status=$?
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); }; }; then
10175 ac_cv_func_mmap_fixed_mapped=yes
10176 else
10177 echo "$as_me: program exited with status $ac_status" >&5
10178 echo "$as_me: failed program was:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10180
10181 ( exit $ac_status )
10182 ac_cv_func_mmap_fixed_mapped=no
10183 fi
10184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10185 fi
10186
10187
10188 fi
10189 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10190 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10191 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10192
10193 cat >>confdefs.h <<\_ACEOF
10194 #define HAVE_MMAP 1
10195 _ACEOF
10196
10197 fi
10198 rm -f conftest.mmap
10199
10200 if test $use_mmap_for_buffers = yes; then
10201 REL_ALLOC=no
10202 fi
10203
10204 LIBS="$libsrc_libs $LIBS"
10205
10206
10207 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10208 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10209 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10210 echo $ECHO_N "(cached) $ECHO_C" >&6
10211 else
10212 ac_check_lib_save_LIBS=$LIBS
10213 LIBS="-ldnet $LIBS"
10214 cat >conftest.$ac_ext <<_ACEOF
10215 /* confdefs.h. */
10216 _ACEOF
10217 cat confdefs.h >>conftest.$ac_ext
10218 cat >>conftest.$ac_ext <<_ACEOF
10219 /* end confdefs.h. */
10220
10221 /* Override any GCC internal prototype to avoid an error.
10222 Use char because int might match the return type of a GCC
10223 builtin and then its argument prototype would still apply. */
10224 #ifdef __cplusplus
10225 extern "C"
10226 #endif
10227 char dnet_ntoa ();
10228 int
10229 main ()
10230 {
10231 return dnet_ntoa ();
10232 ;
10233 return 0;
10234 }
10235 _ACEOF
10236 rm -f conftest.$ac_objext conftest$ac_exeext
10237 if { (ac_try="$ac_link"
10238 case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10241 esac
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_link") 2>conftest.er1
10244 ac_status=$?
10245 grep -v '^ *+' conftest.er1 >conftest.err
10246 rm -f conftest.er1
10247 cat conftest.err >&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } && {
10250 test -z "$ac_c_werror_flag" ||
10251 test ! -s conftest.err
10252 } && test -s conftest$ac_exeext &&
10253 $as_test_x conftest$ac_exeext; then
10254 ac_cv_lib_dnet_dnet_ntoa=yes
10255 else
10256 echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10258
10259 ac_cv_lib_dnet_dnet_ntoa=no
10260 fi
10261
10262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10263 conftest$ac_exeext conftest.$ac_ext
10264 LIBS=$ac_check_lib_save_LIBS
10265 fi
10266 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10267 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10268 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10269 cat >>confdefs.h <<_ACEOF
10270 #define HAVE_LIBDNET 1
10271 _ACEOF
10272
10273 LIBS="-ldnet $LIBS"
10274
10275 fi
10276
10277
10278 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10279 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10280 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 else
10283 ac_check_lib_save_LIBS=$LIBS
10284 LIBS="-lXbsd $LIBS"
10285 cat >conftest.$ac_ext <<_ACEOF
10286 /* confdefs.h. */
10287 _ACEOF
10288 cat confdefs.h >>conftest.$ac_ext
10289 cat >>conftest.$ac_ext <<_ACEOF
10290 /* end confdefs.h. */
10291
10292
10293 int
10294 main ()
10295 {
10296 return main ();
10297 ;
10298 return 0;
10299 }
10300 _ACEOF
10301 rm -f conftest.$ac_objext conftest$ac_exeext
10302 if { (ac_try="$ac_link"
10303 case "(($ac_try" in
10304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10305 *) ac_try_echo=$ac_try;;
10306 esac
10307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10308 (eval "$ac_link") 2>conftest.er1
10309 ac_status=$?
10310 grep -v '^ *+' conftest.er1 >conftest.err
10311 rm -f conftest.er1
10312 cat conftest.err >&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } && {
10315 test -z "$ac_c_werror_flag" ||
10316 test ! -s conftest.err
10317 } && test -s conftest$ac_exeext &&
10318 $as_test_x conftest$ac_exeext; then
10319 ac_cv_lib_Xbsd_main=yes
10320 else
10321 echo "$as_me: failed program was:" >&5
10322 sed 's/^/| /' conftest.$ac_ext >&5
10323
10324 ac_cv_lib_Xbsd_main=no
10325 fi
10326
10327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10328 conftest$ac_exeext conftest.$ac_ext
10329 LIBS=$ac_check_lib_save_LIBS
10330 fi
10331 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10332 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10333 if test $ac_cv_lib_Xbsd_main = yes; then
10334 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10335 fi
10336
10337
10338
10339 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10340 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10341 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10342 echo $ECHO_N "(cached) $ECHO_C" >&6
10343 else
10344 ac_check_lib_save_LIBS=$LIBS
10345 LIBS="-lpthreads $LIBS"
10346 cat >conftest.$ac_ext <<_ACEOF
10347 /* confdefs.h. */
10348 _ACEOF
10349 cat confdefs.h >>conftest.$ac_ext
10350 cat >>conftest.$ac_ext <<_ACEOF
10351 /* end confdefs.h. */
10352
10353 /* Override any GCC internal prototype to avoid an error.
10354 Use char because int might match the return type of a GCC
10355 builtin and then its argument prototype would still apply. */
10356 #ifdef __cplusplus
10357 extern "C"
10358 #endif
10359 char cma_open ();
10360 int
10361 main ()
10362 {
10363 return cma_open ();
10364 ;
10365 return 0;
10366 }
10367 _ACEOF
10368 rm -f conftest.$ac_objext conftest$ac_exeext
10369 if { (ac_try="$ac_link"
10370 case "(($ac_try" in
10371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10372 *) ac_try_echo=$ac_try;;
10373 esac
10374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10375 (eval "$ac_link") 2>conftest.er1
10376 ac_status=$?
10377 grep -v '^ *+' conftest.er1 >conftest.err
10378 rm -f conftest.er1
10379 cat conftest.err >&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); } && {
10382 test -z "$ac_c_werror_flag" ||
10383 test ! -s conftest.err
10384 } && test -s conftest$ac_exeext &&
10385 $as_test_x conftest$ac_exeext; then
10386 ac_cv_lib_pthreads_cma_open=yes
10387 else
10388 echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.$ac_ext >&5
10390
10391 ac_cv_lib_pthreads_cma_open=no
10392 fi
10393
10394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10395 conftest$ac_exeext conftest.$ac_ext
10396 LIBS=$ac_check_lib_save_LIBS
10397 fi
10398 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10399 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10400 if test $ac_cv_lib_pthreads_cma_open = yes; then
10401 cat >>confdefs.h <<_ACEOF
10402 #define HAVE_LIBPTHREADS 1
10403 _ACEOF
10404
10405 LIBS="-lpthreads $LIBS"
10406
10407 fi
10408
10409
10410
10411 case ${host_os} in
10412 aix*)
10413 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10414 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10415 if test "${gdb_cv_bigtoc+set}" = set; then
10416 echo $ECHO_N "(cached) $ECHO_C" >&6
10417 else
10418
10419 case $GCC in
10420 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10421 *) gdb_cv_bigtoc=-bbigtoc ;;
10422 esac
10423
10424 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10425 cat >conftest.$ac_ext <<_ACEOF
10426 /* confdefs.h. */
10427 _ACEOF
10428 cat confdefs.h >>conftest.$ac_ext
10429 cat >>conftest.$ac_ext <<_ACEOF
10430 /* end confdefs.h. */
10431
10432 int
10433 main ()
10434 {
10435 int i;
10436 ;
10437 return 0;
10438 }
10439 _ACEOF
10440 rm -f conftest.$ac_objext conftest$ac_exeext
10441 if { (ac_try="$ac_link"
10442 case "(($ac_try" in
10443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444 *) ac_try_echo=$ac_try;;
10445 esac
10446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10447 (eval "$ac_link") 2>conftest.er1
10448 ac_status=$?
10449 grep -v '^ *+' conftest.er1 >conftest.err
10450 rm -f conftest.er1
10451 cat conftest.err >&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } && {
10454 test -z "$ac_c_werror_flag" ||
10455 test ! -s conftest.err
10456 } && test -s conftest$ac_exeext &&
10457 $as_test_x conftest$ac_exeext; then
10458 :
10459 else
10460 echo "$as_me: failed program was:" >&5
10461 sed 's/^/| /' conftest.$ac_ext >&5
10462
10463 gdb_cv_bigtoc=
10464 fi
10465
10466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10467 conftest$ac_exeext conftest.$ac_ext
10468
10469 fi
10470 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10471 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10472 ;;
10473 esac
10474
10475 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10476 # used for the tests that follow. We set them back to REAL_CFLAGS and
10477 # REAL_CPPFLAGS later on.
10478
10479 REAL_CPPFLAGS="$CPPFLAGS"
10480
10481 if test "${HAVE_X11}" = "yes"; then
10482 DEFS="$C_SWITCH_X_SITE $DEFS"
10483 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10484 LIBS="$LIBX $LIBS"
10485 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10486 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10487
10488 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10489 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10490 # but it's more convenient here to set LD_RUN_PATH
10491 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10492 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10493 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10494 export LD_RUN_PATH
10495 fi
10496
10497 if test "${opsys}" = "gnu-linux"; then
10498 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10499 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10500 cat >conftest.$ac_ext <<_ACEOF
10501 /* confdefs.h. */
10502 _ACEOF
10503 cat confdefs.h >>conftest.$ac_ext
10504 cat >>conftest.$ac_ext <<_ACEOF
10505 /* end confdefs.h. */
10506
10507 int
10508 main ()
10509 {
10510 XOpenDisplay ("foo");
10511 ;
10512 return 0;
10513 }
10514 _ACEOF
10515 rm -f conftest.$ac_objext conftest$ac_exeext
10516 if { (ac_try="$ac_link"
10517 case "(($ac_try" in
10518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519 *) ac_try_echo=$ac_try;;
10520 esac
10521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10522 (eval "$ac_link") 2>conftest.er1
10523 ac_status=$?
10524 grep -v '^ *+' conftest.er1 >conftest.err
10525 rm -f conftest.er1
10526 cat conftest.err >&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } && {
10529 test -z "$ac_c_werror_flag" ||
10530 test ! -s conftest.err
10531 } && test -s conftest$ac_exeext &&
10532 $as_test_x conftest$ac_exeext; then
10533 xlinux_first_failure=no
10534 else
10535 echo "$as_me: failed program was:" >&5
10536 sed 's/^/| /' conftest.$ac_ext >&5
10537
10538 xlinux_first_failure=yes
10539 fi
10540
10541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10542 conftest$ac_exeext conftest.$ac_ext
10543 if test "${xlinux_first_failure}" = "yes"; then
10544 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10545 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10546 OLD_CPPFLAGS="$CPPFLAGS"
10547 OLD_LIBS="$LIBS"
10548 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10549 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10550 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10551 LIBS="$LIBS -b i486-linuxaout"
10552 cat >conftest.$ac_ext <<_ACEOF
10553 /* confdefs.h. */
10554 _ACEOF
10555 cat confdefs.h >>conftest.$ac_ext
10556 cat >>conftest.$ac_ext <<_ACEOF
10557 /* end confdefs.h. */
10558
10559 int
10560 main ()
10561 {
10562 XOpenDisplay ("foo");
10563 ;
10564 return 0;
10565 }
10566 _ACEOF
10567 rm -f conftest.$ac_objext conftest$ac_exeext
10568 if { (ac_try="$ac_link"
10569 case "(($ac_try" in
10570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571 *) ac_try_echo=$ac_try;;
10572 esac
10573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10574 (eval "$ac_link") 2>conftest.er1
10575 ac_status=$?
10576 grep -v '^ *+' conftest.er1 >conftest.err
10577 rm -f conftest.er1
10578 cat conftest.err >&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } && {
10581 test -z "$ac_c_werror_flag" ||
10582 test ! -s conftest.err
10583 } && test -s conftest$ac_exeext &&
10584 $as_test_x conftest$ac_exeext; then
10585 xlinux_second_failure=no
10586 else
10587 echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10589
10590 xlinux_second_failure=yes
10591 fi
10592
10593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10594 conftest$ac_exeext conftest.$ac_ext
10595 if test "${xlinux_second_failure}" = "yes"; then
10596 # If we get the same failure with -b, there is no use adding -b.
10597 # So take it out. This plays safe.
10598 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10599 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10600 CPPFLAGS="$OLD_CPPFLAGS"
10601 LIBS="$OLD_LIBS"
10602 { echo "$as_me:$LINENO: result: no" >&5
10603 echo "${ECHO_T}no" >&6; }
10604 else
10605 { echo "$as_me:$LINENO: result: yes" >&5
10606 echo "${ECHO_T}yes" >&6; }
10607 fi
10608 else
10609 { echo "$as_me:$LINENO: result: no" >&5
10610 echo "${ECHO_T}no" >&6; }
10611 fi
10612 fi
10613
10614 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10615 # header files included from there.
10616 { echo "$as_me:$LINENO: checking for Xkb" >&5
10617 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10618 cat >conftest.$ac_ext <<_ACEOF
10619 /* confdefs.h. */
10620 _ACEOF
10621 cat confdefs.h >>conftest.$ac_ext
10622 cat >>conftest.$ac_ext <<_ACEOF
10623 /* end confdefs.h. */
10624 #include <X11/Xlib.h>
10625 #include <X11/XKBlib.h>
10626 int
10627 main ()
10628 {
10629 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10630 ;
10631 return 0;
10632 }
10633 _ACEOF
10634 rm -f conftest.$ac_objext conftest$ac_exeext
10635 if { (ac_try="$ac_link"
10636 case "(($ac_try" in
10637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10638 *) ac_try_echo=$ac_try;;
10639 esac
10640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10641 (eval "$ac_link") 2>conftest.er1
10642 ac_status=$?
10643 grep -v '^ *+' conftest.er1 >conftest.err
10644 rm -f conftest.er1
10645 cat conftest.err >&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } && {
10648 test -z "$ac_c_werror_flag" ||
10649 test ! -s conftest.err
10650 } && test -s conftest$ac_exeext &&
10651 $as_test_x conftest$ac_exeext; then
10652 emacs_xkb=yes
10653 else
10654 echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10656
10657 emacs_xkb=no
10658 fi
10659
10660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10661 conftest$ac_exeext conftest.$ac_ext
10662 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10663 echo "${ECHO_T}$emacs_xkb" >&6; }
10664 if test $emacs_xkb = yes; then
10665
10666 cat >>confdefs.h <<\_ACEOF
10667 #define HAVE_XKBGETKEYBOARD 1
10668 _ACEOF
10669
10670 fi
10671
10672
10673
10674
10675
10676 for ac_func in XrmSetDatabase XScreenResourceString \
10677 XScreenNumberOfScreen XSetWMProtocols
10678 do
10679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10680 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10683 echo $ECHO_N "(cached) $ECHO_C" >&6
10684 else
10685 cat >conftest.$ac_ext <<_ACEOF
10686 /* confdefs.h. */
10687 _ACEOF
10688 cat confdefs.h >>conftest.$ac_ext
10689 cat >>conftest.$ac_ext <<_ACEOF
10690 /* end confdefs.h. */
10691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10693 #define $ac_func innocuous_$ac_func
10694
10695 /* System header to define __stub macros and hopefully few prototypes,
10696 which can conflict with char $ac_func (); below.
10697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10698 <limits.h> exists even on freestanding compilers. */
10699
10700 #ifdef __STDC__
10701 # include <limits.h>
10702 #else
10703 # include <assert.h>
10704 #endif
10705
10706 #undef $ac_func
10707
10708 /* Override any GCC internal prototype to avoid an error.
10709 Use char because int might match the return type of a GCC
10710 builtin and then its argument prototype would still apply. */
10711 #ifdef __cplusplus
10712 extern "C"
10713 #endif
10714 char $ac_func ();
10715 /* The GNU C library defines this for functions which it implements
10716 to always fail with ENOSYS. Some functions are actually named
10717 something starting with __ and the normal name is an alias. */
10718 #if defined __stub_$ac_func || defined __stub___$ac_func
10719 choke me
10720 #endif
10721
10722 int
10723 main ()
10724 {
10725 return $ac_func ();
10726 ;
10727 return 0;
10728 }
10729 _ACEOF
10730 rm -f conftest.$ac_objext conftest$ac_exeext
10731 if { (ac_try="$ac_link"
10732 case "(($ac_try" in
10733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734 *) ac_try_echo=$ac_try;;
10735 esac
10736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737 (eval "$ac_link") 2>conftest.er1
10738 ac_status=$?
10739 grep -v '^ *+' conftest.er1 >conftest.err
10740 rm -f conftest.er1
10741 cat conftest.err >&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } && {
10744 test -z "$ac_c_werror_flag" ||
10745 test ! -s conftest.err
10746 } && test -s conftest$ac_exeext &&
10747 $as_test_x conftest$ac_exeext; then
10748 eval "$as_ac_var=yes"
10749 else
10750 echo "$as_me: failed program was:" >&5
10751 sed 's/^/| /' conftest.$ac_ext >&5
10752
10753 eval "$as_ac_var=no"
10754 fi
10755
10756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10757 conftest$ac_exeext conftest.$ac_ext
10758 fi
10759 ac_res=`eval echo '${'$as_ac_var'}'`
10760 { echo "$as_me:$LINENO: result: $ac_res" >&5
10761 echo "${ECHO_T}$ac_res" >&6; }
10762 if test `eval echo '${'$as_ac_var'}'` = yes; then
10763 cat >>confdefs.h <<_ACEOF
10764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10765 _ACEOF
10766
10767 fi
10768 done
10769
10770 fi
10771
10772 if test "${window_system}" = "x11"; then
10773 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10774 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10775 if test "${emacs_cv_x11_version_6+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10777 else
10778 cat >conftest.$ac_ext <<_ACEOF
10779 /* confdefs.h. */
10780 _ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h. */
10784 #include <X11/Xlib.h>
10785 int
10786 main ()
10787 {
10788 #if XlibSpecificationRelease < 6
10789 fail;
10790 #endif
10791
10792 ;
10793 return 0;
10794 }
10795 _ACEOF
10796 rm -f conftest.$ac_objext conftest$ac_exeext
10797 if { (ac_try="$ac_link"
10798 case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10801 esac
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803 (eval "$ac_link") 2>conftest.er1
10804 ac_status=$?
10805 grep -v '^ *+' conftest.er1 >conftest.err
10806 rm -f conftest.er1
10807 cat conftest.err >&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } && {
10810 test -z "$ac_c_werror_flag" ||
10811 test ! -s conftest.err
10812 } && test -s conftest$ac_exeext &&
10813 $as_test_x conftest$ac_exeext; then
10814 emacs_cv_x11_version_6=yes
10815 else
10816 echo "$as_me: failed program was:" >&5
10817 sed 's/^/| /' conftest.$ac_ext >&5
10818
10819 emacs_cv_x11_version_6=no
10820 fi
10821
10822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10823 conftest$ac_exeext conftest.$ac_ext
10824 fi
10825
10826 if test $emacs_cv_x11_version_6 = yes; then
10827 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10828 echo "${ECHO_T}6 or newer" >&6; }
10829
10830 cat >>confdefs.h <<\_ACEOF
10831 #define HAVE_X11R6 1
10832 _ACEOF
10833
10834 else
10835 { echo "$as_me:$LINENO: result: before 6" >&5
10836 echo "${ECHO_T}before 6" >&6; }
10837 fi
10838 fi
10839
10840
10841 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10842 HAVE_RSVG=no
10843 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
10844 if test "${with_rsvg}" != "no"; then
10845 RSVG_REQUIRED=2.0.0
10846 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10847
10848
10849 succeeded=no
10850
10851 # Extract the first word of "pkg-config", so it can be a program name with args.
10852 set dummy pkg-config; ac_word=$2
10853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10855 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10857 else
10858 case $PKG_CONFIG in
10859 [\\/]* | ?:[\\/]*)
10860 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10861 ;;
10862 *)
10863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864 for as_dir in $PATH
10865 do
10866 IFS=$as_save_IFS
10867 test -z "$as_dir" && as_dir=.
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10870 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10872 break 2
10873 fi
10874 done
10875 done
10876 IFS=$as_save_IFS
10877
10878 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10879 ;;
10880 esac
10881 fi
10882 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10883 if test -n "$PKG_CONFIG"; then
10884 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10885 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10886 else
10887 { echo "$as_me:$LINENO: result: no" >&5
10888 echo "${ECHO_T}no" >&6; }
10889 fi
10890
10891
10892
10893 if test "$PKG_CONFIG" = "no" ; then
10894 :
10895 else
10896 PKG_CONFIG_MIN_VERSION=0.9.0
10897 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10898 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10899 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10900
10901 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10902 { echo "$as_me:$LINENO: result: yes" >&5
10903 echo "${ECHO_T}yes" >&6; }
10904 succeeded=yes
10905
10906 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10907 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10908 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10909 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10910 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10911
10912 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10913 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10914 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10915 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10916 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10917 else
10918 { echo "$as_me:$LINENO: result: no" >&5
10919 echo "${ECHO_T}no" >&6; }
10920 RSVG_CFLAGS=""
10921 RSVG_LIBS=""
10922 ## If we have a custom action on failure, don't print errors, but
10923 ## do set a variable so people can do so.
10924 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10925
10926 fi
10927
10928
10929
10930 else
10931 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10932 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10933 fi
10934 fi
10935
10936 if test $succeeded = yes; then
10937 :
10938 else
10939 :
10940 fi
10941
10942
10943
10944
10945 if test ".${RSVG_CFLAGS}" != "."; then
10946 HAVE_RSVG=yes
10947
10948 cat >>confdefs.h <<\_ACEOF
10949 #define HAVE_RSVG 1
10950 _ACEOF
10951
10952 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10953 LIBS="$RSVG_LIBS $LIBS"
10954 fi
10955 fi
10956 fi
10957
10958
10959 HAVE_GTK=no
10960 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10961 GLIB_REQUIRED=2.6
10962 GTK_REQUIRED=2.6
10963 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10964
10965
10966 succeeded=no
10967
10968 # Extract the first word of "pkg-config", so it can be a program name with args.
10969 set dummy pkg-config; ac_word=$2
10970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10972 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10974 else
10975 case $PKG_CONFIG in
10976 [\\/]* | ?:[\\/]*)
10977 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10978 ;;
10979 *)
10980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981 for as_dir in $PATH
10982 do
10983 IFS=$as_save_IFS
10984 test -z "$as_dir" && as_dir=.
10985 for ac_exec_ext in '' $ac_executable_extensions; do
10986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10987 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10989 break 2
10990 fi
10991 done
10992 done
10993 IFS=$as_save_IFS
10994
10995 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10996 ;;
10997 esac
10998 fi
10999 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11000 if test -n "$PKG_CONFIG"; then
11001 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11002 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11003 else
11004 { echo "$as_me:$LINENO: result: no" >&5
11005 echo "${ECHO_T}no" >&6; }
11006 fi
11007
11008
11009
11010 if test "$PKG_CONFIG" = "no" ; then
11011 pkg_check_gtk=no
11012 else
11013 PKG_CONFIG_MIN_VERSION=0.9.0
11014 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11015 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11016 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11017
11018 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11019 { echo "$as_me:$LINENO: result: yes" >&5
11020 echo "${ECHO_T}yes" >&6; }
11021 succeeded=yes
11022
11023 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11024 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11025 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11026 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11027 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11028
11029 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11030 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11031 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11032 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11033 echo "${ECHO_T}$GTK_LIBS" >&6; }
11034 else
11035 { echo "$as_me:$LINENO: result: no" >&5
11036 echo "${ECHO_T}no" >&6; }
11037 GTK_CFLAGS=""
11038 GTK_LIBS=""
11039 ## If we have a custom action on failure, don't print errors, but
11040 ## do set a variable so people can do so.
11041 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11042
11043 fi
11044
11045
11046
11047 else
11048 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11049 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11050 fi
11051 fi
11052
11053 if test $succeeded = yes; then
11054 pkg_check_gtk=yes
11055 else
11056 pkg_check_gtk=no
11057 fi
11058
11059 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11060 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11061 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11062 { (exit 1); exit 1; }; }
11063 fi
11064 fi
11065
11066
11067 if test x"$pkg_check_gtk" = xyes; then
11068
11069
11070
11071 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11072 CFLAGS="$CFLAGS $GTK_CFLAGS"
11073 LIBS="$GTK_LIBS $LIBS"
11074 GTK_COMPILES=no
11075
11076 for ac_func in gtk_main
11077 do
11078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11079 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11081 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11083 else
11084 cat >conftest.$ac_ext <<_ACEOF
11085 /* confdefs.h. */
11086 _ACEOF
11087 cat confdefs.h >>conftest.$ac_ext
11088 cat >>conftest.$ac_ext <<_ACEOF
11089 /* end confdefs.h. */
11090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11092 #define $ac_func innocuous_$ac_func
11093
11094 /* System header to define __stub macros and hopefully few prototypes,
11095 which can conflict with char $ac_func (); below.
11096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11097 <limits.h> exists even on freestanding compilers. */
11098
11099 #ifdef __STDC__
11100 # include <limits.h>
11101 #else
11102 # include <assert.h>
11103 #endif
11104
11105 #undef $ac_func
11106
11107 /* Override any GCC internal prototype to avoid an error.
11108 Use char because int might match the return type of a GCC
11109 builtin and then its argument prototype would still apply. */
11110 #ifdef __cplusplus
11111 extern "C"
11112 #endif
11113 char $ac_func ();
11114 /* The GNU C library defines this for functions which it implements
11115 to always fail with ENOSYS. Some functions are actually named
11116 something starting with __ and the normal name is an alias. */
11117 #if defined __stub_$ac_func || defined __stub___$ac_func
11118 choke me
11119 #endif
11120
11121 int
11122 main ()
11123 {
11124 return $ac_func ();
11125 ;
11126 return 0;
11127 }
11128 _ACEOF
11129 rm -f conftest.$ac_objext conftest$ac_exeext
11130 if { (ac_try="$ac_link"
11131 case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11134 esac
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_link") 2>conftest.er1
11137 ac_status=$?
11138 grep -v '^ *+' conftest.er1 >conftest.err
11139 rm -f conftest.er1
11140 cat conftest.err >&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } && {
11143 test -z "$ac_c_werror_flag" ||
11144 test ! -s conftest.err
11145 } && test -s conftest$ac_exeext &&
11146 $as_test_x conftest$ac_exeext; then
11147 eval "$as_ac_var=yes"
11148 else
11149 echo "$as_me: failed program was:" >&5
11150 sed 's/^/| /' conftest.$ac_ext >&5
11151
11152 eval "$as_ac_var=no"
11153 fi
11154
11155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11156 conftest$ac_exeext conftest.$ac_ext
11157 fi
11158 ac_res=`eval echo '${'$as_ac_var'}'`
11159 { echo "$as_me:$LINENO: result: $ac_res" >&5
11160 echo "${ECHO_T}$ac_res" >&6; }
11161 if test `eval echo '${'$as_ac_var'}'` = yes; then
11162 cat >>confdefs.h <<_ACEOF
11163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11164 _ACEOF
11165 GTK_COMPILES=yes
11166 fi
11167 done
11168
11169 if test "${GTK_COMPILES}" != "yes"; then
11170 if test "$USE_X_TOOLKIT" != "maybe"; then
11171 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11172 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11173 { (exit 1); exit 1; }; };
11174 fi
11175 else
11176 HAVE_GTK=yes
11177
11178 cat >>confdefs.h <<\_ACEOF
11179 #define USE_GTK 1
11180 _ACEOF
11181
11182 USE_X_TOOLKIT=none
11183 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11184 :
11185 else
11186 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11187 closing open displays. This is no problem if you just use
11188 one display, but if you use more than one and close one of them
11189 Emacs may crash." >&5
11190 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11191 closing open displays. This is no problem if you just use
11192 one display, but if you use more than one and close one of them
11193 Emacs may crash." >&2;}
11194 sleep 3
11195 fi
11196 fi
11197
11198 fi
11199
11200
11201 if test "${HAVE_GTK}" = "yes"; then
11202
11203 if test "$with_toolkit_scroll_bars" != no; then
11204 with_toolkit_scroll_bars=yes
11205 fi
11206
11207 HAVE_GTK_MULTIDISPLAY=no
11208
11209 for ac_func in gdk_display_open
11210 do
11211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11212 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11214 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11216 else
11217 cat >conftest.$ac_ext <<_ACEOF
11218 /* confdefs.h. */
11219 _ACEOF
11220 cat confdefs.h >>conftest.$ac_ext
11221 cat >>conftest.$ac_ext <<_ACEOF
11222 /* end confdefs.h. */
11223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11225 #define $ac_func innocuous_$ac_func
11226
11227 /* System header to define __stub macros and hopefully few prototypes,
11228 which can conflict with char $ac_func (); below.
11229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11230 <limits.h> exists even on freestanding compilers. */
11231
11232 #ifdef __STDC__
11233 # include <limits.h>
11234 #else
11235 # include <assert.h>
11236 #endif
11237
11238 #undef $ac_func
11239
11240 /* Override any GCC internal prototype to avoid an error.
11241 Use char because int might match the return type of a GCC
11242 builtin and then its argument prototype would still apply. */
11243 #ifdef __cplusplus
11244 extern "C"
11245 #endif
11246 char $ac_func ();
11247 /* The GNU C library defines this for functions which it implements
11248 to always fail with ENOSYS. Some functions are actually named
11249 something starting with __ and the normal name is an alias. */
11250 #if defined __stub_$ac_func || defined __stub___$ac_func
11251 choke me
11252 #endif
11253
11254 int
11255 main ()
11256 {
11257 return $ac_func ();
11258 ;
11259 return 0;
11260 }
11261 _ACEOF
11262 rm -f conftest.$ac_objext conftest$ac_exeext
11263 if { (ac_try="$ac_link"
11264 case "(($ac_try" in
11265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266 *) ac_try_echo=$ac_try;;
11267 esac
11268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269 (eval "$ac_link") 2>conftest.er1
11270 ac_status=$?
11271 grep -v '^ *+' conftest.er1 >conftest.err
11272 rm -f conftest.er1
11273 cat conftest.err >&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } && {
11276 test -z "$ac_c_werror_flag" ||
11277 test ! -s conftest.err
11278 } && test -s conftest$ac_exeext &&
11279 $as_test_x conftest$ac_exeext; then
11280 eval "$as_ac_var=yes"
11281 else
11282 echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11284
11285 eval "$as_ac_var=no"
11286 fi
11287
11288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11289 conftest$ac_exeext conftest.$ac_ext
11290 fi
11291 ac_res=`eval echo '${'$as_ac_var'}'`
11292 { echo "$as_me:$LINENO: result: $ac_res" >&5
11293 echo "${ECHO_T}$ac_res" >&6; }
11294 if test `eval echo '${'$as_ac_var'}'` = yes; then
11295 cat >>confdefs.h <<_ACEOF
11296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11297 _ACEOF
11298 HAVE_GTK_MULTIDISPLAY=yes
11299 fi
11300 done
11301
11302 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11303
11304 cat >>confdefs.h <<\_ACEOF
11305 #define HAVE_GTK_MULTIDISPLAY 1
11306 _ACEOF
11307
11308 fi
11309
11310 HAVE_GTK_FILE_SELECTION=no
11311
11312 for ac_func in gtk_file_selection_new
11313 do
11314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11315 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11317 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11319 else
11320 cat >conftest.$ac_ext <<_ACEOF
11321 /* confdefs.h. */
11322 _ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h. */
11326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11328 #define $ac_func innocuous_$ac_func
11329
11330 /* System header to define __stub macros and hopefully few prototypes,
11331 which can conflict with char $ac_func (); below.
11332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11333 <limits.h> exists even on freestanding compilers. */
11334
11335 #ifdef __STDC__
11336 # include <limits.h>
11337 #else
11338 # include <assert.h>
11339 #endif
11340
11341 #undef $ac_func
11342
11343 /* Override any GCC internal prototype to avoid an error.
11344 Use char because int might match the return type of a GCC
11345 builtin and then its argument prototype would still apply. */
11346 #ifdef __cplusplus
11347 extern "C"
11348 #endif
11349 char $ac_func ();
11350 /* The GNU C library defines this for functions which it implements
11351 to always fail with ENOSYS. Some functions are actually named
11352 something starting with __ and the normal name is an alias. */
11353 #if defined __stub_$ac_func || defined __stub___$ac_func
11354 choke me
11355 #endif
11356
11357 int
11358 main ()
11359 {
11360 return $ac_func ();
11361 ;
11362 return 0;
11363 }
11364 _ACEOF
11365 rm -f conftest.$ac_objext conftest$ac_exeext
11366 if { (ac_try="$ac_link"
11367 case "(($ac_try" in
11368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369 *) ac_try_echo=$ac_try;;
11370 esac
11371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11372 (eval "$ac_link") 2>conftest.er1
11373 ac_status=$?
11374 grep -v '^ *+' conftest.er1 >conftest.err
11375 rm -f conftest.er1
11376 cat conftest.err >&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); } && {
11379 test -z "$ac_c_werror_flag" ||
11380 test ! -s conftest.err
11381 } && test -s conftest$ac_exeext &&
11382 $as_test_x conftest$ac_exeext; then
11383 eval "$as_ac_var=yes"
11384 else
11385 echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11387
11388 eval "$as_ac_var=no"
11389 fi
11390
11391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11392 conftest$ac_exeext conftest.$ac_ext
11393 fi
11394 ac_res=`eval echo '${'$as_ac_var'}'`
11395 { echo "$as_me:$LINENO: result: $ac_res" >&5
11396 echo "${ECHO_T}$ac_res" >&6; }
11397 if test `eval echo '${'$as_ac_var'}'` = yes; then
11398 cat >>confdefs.h <<_ACEOF
11399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11400 _ACEOF
11401 HAVE_GTK_FILE_SELECTION=yes
11402 fi
11403 done
11404
11405
11406 HAVE_GTK_FILE_CHOOSER=no
11407
11408 for ac_func in gtk_file_chooser_dialog_new
11409 do
11410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11411 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11413 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11415 else
11416 cat >conftest.$ac_ext <<_ACEOF
11417 /* confdefs.h. */
11418 _ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h. */
11422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11424 #define $ac_func innocuous_$ac_func
11425
11426 /* System header to define __stub macros and hopefully few prototypes,
11427 which can conflict with char $ac_func (); below.
11428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11429 <limits.h> exists even on freestanding compilers. */
11430
11431 #ifdef __STDC__
11432 # include <limits.h>
11433 #else
11434 # include <assert.h>
11435 #endif
11436
11437 #undef $ac_func
11438
11439 /* Override any GCC internal prototype to avoid an error.
11440 Use char because int might match the return type of a GCC
11441 builtin and then its argument prototype would still apply. */
11442 #ifdef __cplusplus
11443 extern "C"
11444 #endif
11445 char $ac_func ();
11446 /* The GNU C library defines this for functions which it implements
11447 to always fail with ENOSYS. Some functions are actually named
11448 something starting with __ and the normal name is an alias. */
11449 #if defined __stub_$ac_func || defined __stub___$ac_func
11450 choke me
11451 #endif
11452
11453 int
11454 main ()
11455 {
11456 return $ac_func ();
11457 ;
11458 return 0;
11459 }
11460 _ACEOF
11461 rm -f conftest.$ac_objext conftest$ac_exeext
11462 if { (ac_try="$ac_link"
11463 case "(($ac_try" in
11464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11465 *) ac_try_echo=$ac_try;;
11466 esac
11467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11468 (eval "$ac_link") 2>conftest.er1
11469 ac_status=$?
11470 grep -v '^ *+' conftest.er1 >conftest.err
11471 rm -f conftest.er1
11472 cat conftest.err >&5
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); } && {
11475 test -z "$ac_c_werror_flag" ||
11476 test ! -s conftest.err
11477 } && test -s conftest$ac_exeext &&
11478 $as_test_x conftest$ac_exeext; then
11479 eval "$as_ac_var=yes"
11480 else
11481 echo "$as_me: failed program was:" >&5
11482 sed 's/^/| /' conftest.$ac_ext >&5
11483
11484 eval "$as_ac_var=no"
11485 fi
11486
11487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11488 conftest$ac_exeext conftest.$ac_ext
11489 fi
11490 ac_res=`eval echo '${'$as_ac_var'}'`
11491 { echo "$as_me:$LINENO: result: $ac_res" >&5
11492 echo "${ECHO_T}$ac_res" >&6; }
11493 if test `eval echo '${'$as_ac_var'}'` = yes; then
11494 cat >>confdefs.h <<_ACEOF
11495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11496 _ACEOF
11497 HAVE_GTK_FILE_CHOOSER=yes
11498 fi
11499 done
11500
11501
11502 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11503 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11504
11505 cat >>confdefs.h <<\_ACEOF
11506 #define HAVE_GTK_FILE_BOTH 1
11507 _ACEOF
11508
11509 fi
11510
11511 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11512 HAVE_GTK_AND_PTHREAD=no
11513
11514 for ac_header in pthread.h
11515 do
11516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11521 echo $ECHO_N "(cached) $ECHO_C" >&6
11522 fi
11523 ac_res=`eval echo '${'$as_ac_Header'}'`
11524 { echo "$as_me:$LINENO: result: $ac_res" >&5
11525 echo "${ECHO_T}$ac_res" >&6; }
11526 else
11527 # Is the header compilable?
11528 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11530 cat >conftest.$ac_ext <<_ACEOF
11531 /* confdefs.h. */
11532 _ACEOF
11533 cat confdefs.h >>conftest.$ac_ext
11534 cat >>conftest.$ac_ext <<_ACEOF
11535 /* end confdefs.h. */
11536 $ac_includes_default
11537 #include <$ac_header>
11538 _ACEOF
11539 rm -f conftest.$ac_objext
11540 if { (ac_try="$ac_compile"
11541 case "(($ac_try" in
11542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543 *) ac_try_echo=$ac_try;;
11544 esac
11545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546 (eval "$ac_compile") 2>conftest.er1
11547 ac_status=$?
11548 grep -v '^ *+' conftest.er1 >conftest.err
11549 rm -f conftest.er1
11550 cat conftest.err >&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); } && {
11553 test -z "$ac_c_werror_flag" ||
11554 test ! -s conftest.err
11555 } && test -s conftest.$ac_objext; then
11556 ac_header_compiler=yes
11557 else
11558 echo "$as_me: failed program was:" >&5
11559 sed 's/^/| /' conftest.$ac_ext >&5
11560
11561 ac_header_compiler=no
11562 fi
11563
11564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11565 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11566 echo "${ECHO_T}$ac_header_compiler" >&6; }
11567
11568 # Is the header present?
11569 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11571 cat >conftest.$ac_ext <<_ACEOF
11572 /* confdefs.h. */
11573 _ACEOF
11574 cat confdefs.h >>conftest.$ac_ext
11575 cat >>conftest.$ac_ext <<_ACEOF
11576 /* end confdefs.h. */
11577 #include <$ac_header>
11578 _ACEOF
11579 if { (ac_try="$ac_cpp conftest.$ac_ext"
11580 case "(($ac_try" in
11581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11582 *) ac_try_echo=$ac_try;;
11583 esac
11584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11586 ac_status=$?
11587 grep -v '^ *+' conftest.er1 >conftest.err
11588 rm -f conftest.er1
11589 cat conftest.err >&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } >/dev/null && {
11592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11593 test ! -s conftest.err
11594 }; then
11595 ac_header_preproc=yes
11596 else
11597 echo "$as_me: failed program was:" >&5
11598 sed 's/^/| /' conftest.$ac_ext >&5
11599
11600 ac_header_preproc=no
11601 fi
11602
11603 rm -f conftest.err conftest.$ac_ext
11604 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11605 echo "${ECHO_T}$ac_header_preproc" >&6; }
11606
11607 # So? What about this header?
11608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11609 yes:no: )
11610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11613 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11614 ac_header_preproc=yes
11615 ;;
11616 no:yes:* )
11617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11620 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11622 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11624 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11628 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11629
11630 ;;
11631 esac
11632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11635 echo $ECHO_N "(cached) $ECHO_C" >&6
11636 else
11637 eval "$as_ac_Header=\$ac_header_preproc"
11638 fi
11639 ac_res=`eval echo '${'$as_ac_Header'}'`
11640 { echo "$as_me:$LINENO: result: $ac_res" >&5
11641 echo "${ECHO_T}$ac_res" >&6; }
11642
11643 fi
11644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11645 cat >>confdefs.h <<_ACEOF
11646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11647 _ACEOF
11648
11649 fi
11650
11651 done
11652
11653 if test "$ac_cv_header_pthread_h"; then
11654 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11655 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11656 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 else
11659 ac_check_lib_save_LIBS=$LIBS
11660 LIBS="-lpthread $LIBS"
11661 cat >conftest.$ac_ext <<_ACEOF
11662 /* confdefs.h. */
11663 _ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h. */
11667
11668 /* Override any GCC internal prototype to avoid an error.
11669 Use char because int might match the return type of a GCC
11670 builtin and then its argument prototype would still apply. */
11671 #ifdef __cplusplus
11672 extern "C"
11673 #endif
11674 char pthread_self ();
11675 int
11676 main ()
11677 {
11678 return pthread_self ();
11679 ;
11680 return 0;
11681 }
11682 _ACEOF
11683 rm -f conftest.$ac_objext conftest$ac_exeext
11684 if { (ac_try="$ac_link"
11685 case "(($ac_try" in
11686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687 *) ac_try_echo=$ac_try;;
11688 esac
11689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690 (eval "$ac_link") 2>conftest.er1
11691 ac_status=$?
11692 grep -v '^ *+' conftest.er1 >conftest.err
11693 rm -f conftest.er1
11694 cat conftest.err >&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } && {
11697 test -z "$ac_c_werror_flag" ||
11698 test ! -s conftest.err
11699 } && test -s conftest$ac_exeext &&
11700 $as_test_x conftest$ac_exeext; then
11701 ac_cv_lib_pthread_pthread_self=yes
11702 else
11703 echo "$as_me: failed program was:" >&5
11704 sed 's/^/| /' conftest.$ac_ext >&5
11705
11706 ac_cv_lib_pthread_pthread_self=no
11707 fi
11708
11709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11710 conftest$ac_exeext conftest.$ac_ext
11711 LIBS=$ac_check_lib_save_LIBS
11712 fi
11713 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11714 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11715 if test $ac_cv_lib_pthread_pthread_self = yes; then
11716 HAVE_GTK_AND_PTHREAD=yes
11717 fi
11718
11719 fi
11720 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11721 case "${canonical}" in
11722 *-hpux*) ;;
11723 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11724 esac
11725
11726 cat >>confdefs.h <<\_ACEOF
11727 #define HAVE_GTK_AND_PTHREAD 1
11728 _ACEOF
11729
11730 fi
11731 fi
11732 fi
11733
11734 HAVE_DBUS=no
11735 if test "${with_dbus}" = "yes"; then
11736
11737 succeeded=no
11738
11739 # Extract the first word of "pkg-config", so it can be a program name with args.
11740 set dummy pkg-config; ac_word=$2
11741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11743 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11745 else
11746 case $PKG_CONFIG in
11747 [\\/]* | ?:[\\/]*)
11748 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11749 ;;
11750 *)
11751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752 for as_dir in $PATH
11753 do
11754 IFS=$as_save_IFS
11755 test -z "$as_dir" && as_dir=.
11756 for ac_exec_ext in '' $ac_executable_extensions; do
11757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11758 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11760 break 2
11761 fi
11762 done
11763 done
11764 IFS=$as_save_IFS
11765
11766 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11767 ;;
11768 esac
11769 fi
11770 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11771 if test -n "$PKG_CONFIG"; then
11772 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11773 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11774 else
11775 { echo "$as_me:$LINENO: result: no" >&5
11776 echo "${ECHO_T}no" >&6; }
11777 fi
11778
11779
11780
11781 if test "$PKG_CONFIG" = "no" ; then
11782 HAVE_DBUS=no
11783 else
11784 PKG_CONFIG_MIN_VERSION=0.9.0
11785 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11786 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11787 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11788
11789 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11790 { echo "$as_me:$LINENO: result: yes" >&5
11791 echo "${ECHO_T}yes" >&6; }
11792 succeeded=yes
11793
11794 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11795 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11796 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11797 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11798 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11799
11800 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11801 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11802 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11803 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11804 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11805 else
11806 { echo "$as_me:$LINENO: result: no" >&5
11807 echo "${ECHO_T}no" >&6; }
11808 DBUS_CFLAGS=""
11809 DBUS_LIBS=""
11810 ## If we have a custom action on failure, don't print errors, but
11811 ## do set a variable so people can do so.
11812 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11813
11814 fi
11815
11816
11817
11818 else
11819 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11820 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11821 fi
11822 fi
11823
11824 if test $succeeded = yes; then
11825 HAVE_DBUS=yes
11826 else
11827 HAVE_DBUS=no
11828 fi
11829
11830 if test "$HAVE_DBUS" = yes; then
11831
11832 cat >>confdefs.h <<\_ACEOF
11833 #define HAVE_DBUS 1
11834 _ACEOF
11835
11836 fi
11837 fi
11838
11839 HAVE_XAW3D=no
11840 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11841 if test "$with_xaw3d" != no; then
11842 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11843 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11844 if test "${emacs_cv_xaw3d+set}" = set; then
11845 echo $ECHO_N "(cached) $ECHO_C" >&6
11846 else
11847 cat >conftest.$ac_ext <<_ACEOF
11848 /* confdefs.h. */
11849 _ACEOF
11850 cat confdefs.h >>conftest.$ac_ext
11851 cat >>conftest.$ac_ext <<_ACEOF
11852 /* end confdefs.h. */
11853
11854 #include <X11/Intrinsic.h>
11855 #include <X11/Xaw3d/Simple.h>
11856 int
11857 main ()
11858 {
11859
11860 ;
11861 return 0;
11862 }
11863 _ACEOF
11864 rm -f conftest.$ac_objext conftest$ac_exeext
11865 if { (ac_try="$ac_link"
11866 case "(($ac_try" in
11867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11869 esac
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871 (eval "$ac_link") 2>conftest.er1
11872 ac_status=$?
11873 grep -v '^ *+' conftest.er1 >conftest.err
11874 rm -f conftest.er1
11875 cat conftest.err >&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } && {
11878 test -z "$ac_c_werror_flag" ||
11879 test ! -s conftest.err
11880 } && test -s conftest$ac_exeext &&
11881 $as_test_x conftest$ac_exeext; then
11882 emacs_cv_xaw3d=yes
11883 else
11884 echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11886
11887 emacs_cv_xaw3d=no
11888 fi
11889
11890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11891 conftest$ac_exeext conftest.$ac_ext
11892 fi
11893
11894 else
11895 emacs_cv_xaw3d=no
11896 fi
11897 if test $emacs_cv_xaw3d = yes; then
11898 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11899 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11900 USE_X_TOOLKIT=LUCID
11901 HAVE_XAW3D=yes
11902
11903 cat >>confdefs.h <<\_ACEOF
11904 #define HAVE_XAW3D 1
11905 _ACEOF
11906
11907 else
11908 { echo "$as_me:$LINENO: result: no" >&5
11909 echo "${ECHO_T}no" >&6; }
11910 { echo "$as_me:$LINENO: checking for libXaw" >&5
11911 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11912 if test "${emacs_cv_xaw+set}" = set; then
11913 echo $ECHO_N "(cached) $ECHO_C" >&6
11914 else
11915 cat >conftest.$ac_ext <<_ACEOF
11916 /* confdefs.h. */
11917 _ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h. */
11921
11922 #include <X11/Intrinsic.h>
11923 #include <X11/Xaw/Simple.h>
11924 int
11925 main ()
11926 {
11927
11928 ;
11929 return 0;
11930 }
11931 _ACEOF
11932 rm -f conftest.$ac_objext conftest$ac_exeext
11933 if { (ac_try="$ac_link"
11934 case "(($ac_try" in
11935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936 *) ac_try_echo=$ac_try;;
11937 esac
11938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11939 (eval "$ac_link") 2>conftest.er1
11940 ac_status=$?
11941 grep -v '^ *+' conftest.er1 >conftest.err
11942 rm -f conftest.er1
11943 cat conftest.err >&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } && {
11946 test -z "$ac_c_werror_flag" ||
11947 test ! -s conftest.err
11948 } && test -s conftest$ac_exeext &&
11949 $as_test_x conftest$ac_exeext; then
11950 emacs_cv_xaw=yes
11951 else
11952 echo "$as_me: failed program was:" >&5
11953 sed 's/^/| /' conftest.$ac_ext >&5
11954
11955 emacs_cv_xaw=no
11956 fi
11957
11958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11959 conftest$ac_exeext conftest.$ac_ext
11960 fi
11961
11962 if test $emacs_cv_xaw = yes; then
11963 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11964 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11965 USE_X_TOOLKIT=LUCID
11966 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11967 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11968 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11969 { (exit 1); exit 1; }; }
11970 else
11971 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11972 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11973 USE_X_TOOLKIT=none
11974 fi
11975 fi
11976 fi
11977
11978 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11979
11980 if test "${USE_X_TOOLKIT}" != "none"; then
11981 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11982 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11983 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11985 else
11986 cat >conftest.$ac_ext <<_ACEOF
11987 /* confdefs.h. */
11988 _ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h. */
11992 #include <X11/Intrinsic.h>
11993 int
11994 main ()
11995 {
11996 #if XtSpecificationRelease < 6
11997 fail;
11998 #endif
11999
12000 ;
12001 return 0;
12002 }
12003 _ACEOF
12004 rm -f conftest.$ac_objext conftest$ac_exeext
12005 if { (ac_try="$ac_link"
12006 case "(($ac_try" in
12007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008 *) ac_try_echo=$ac_try;;
12009 esac
12010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12011 (eval "$ac_link") 2>conftest.er1
12012 ac_status=$?
12013 grep -v '^ *+' conftest.er1 >conftest.err
12014 rm -f conftest.er1
12015 cat conftest.err >&5
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); } && {
12018 test -z "$ac_c_werror_flag" ||
12019 test ! -s conftest.err
12020 } && test -s conftest$ac_exeext &&
12021 $as_test_x conftest$ac_exeext; then
12022 emacs_cv_x11_toolkit_version_6=yes
12023 else
12024 echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12026
12027 emacs_cv_x11_toolkit_version_6=no
12028 fi
12029
12030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12031 conftest$ac_exeext conftest.$ac_ext
12032 fi
12033
12034 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12035 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12036 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12037 echo "${ECHO_T}6 or newer" >&6; }
12038
12039 cat >>confdefs.h <<\_ACEOF
12040 #define HAVE_X11XTR6 1
12041 _ACEOF
12042
12043 else
12044 { echo "$as_me:$LINENO: result: before 6" >&5
12045 echo "${ECHO_T}before 6" >&6; }
12046 fi
12047
12048 OLDLIBS="$LIBS"
12049 if test x$HAVE_X11XTR6 = xyes; then
12050 LIBS="-lXt -lSM -lICE $LIBS"
12051 else
12052 LIBS="-lXt $LIBS"
12053 fi
12054
12055 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12056 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12057 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12058 echo $ECHO_N "(cached) $ECHO_C" >&6
12059 else
12060 ac_check_lib_save_LIBS=$LIBS
12061 LIBS="-lXmu $LIBS"
12062 cat >conftest.$ac_ext <<_ACEOF
12063 /* confdefs.h. */
12064 _ACEOF
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h. */
12068
12069 /* Override any GCC internal prototype to avoid an error.
12070 Use char because int might match the return type of a GCC
12071 builtin and then its argument prototype would still apply. */
12072 #ifdef __cplusplus
12073 extern "C"
12074 #endif
12075 char XmuConvertStandardSelection ();
12076 int
12077 main ()
12078 {
12079 return XmuConvertStandardSelection ();
12080 ;
12081 return 0;
12082 }
12083 _ACEOF
12084 rm -f conftest.$ac_objext conftest$ac_exeext
12085 if { (ac_try="$ac_link"
12086 case "(($ac_try" in
12087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12088 *) ac_try_echo=$ac_try;;
12089 esac
12090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12091 (eval "$ac_link") 2>conftest.er1
12092 ac_status=$?
12093 grep -v '^ *+' conftest.er1 >conftest.err
12094 rm -f conftest.er1
12095 cat conftest.err >&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } && {
12098 test -z "$ac_c_werror_flag" ||
12099 test ! -s conftest.err
12100 } && test -s conftest$ac_exeext &&
12101 $as_test_x conftest$ac_exeext; then
12102 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12103 else
12104 echo "$as_me: failed program was:" >&5
12105 sed 's/^/| /' conftest.$ac_ext >&5
12106
12107 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12108 fi
12109
12110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12111 conftest$ac_exeext conftest.$ac_ext
12112 LIBS=$ac_check_lib_save_LIBS
12113 fi
12114 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12115 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12116 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12117 cat >>confdefs.h <<_ACEOF
12118 #define HAVE_LIBXMU 1
12119 _ACEOF
12120
12121 LIBS="-lXmu $LIBS"
12122
12123 fi
12124
12125 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12126 fi
12127
12128 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12129 if test "${HAVE_X11}" = "yes"; then
12130 if test "${USE_X_TOOLKIT}" != "none"; then
12131
12132 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12133 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12134 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12135 echo $ECHO_N "(cached) $ECHO_C" >&6
12136 else
12137 ac_check_lib_save_LIBS=$LIBS
12138 LIBS="-lXext $LIBS"
12139 cat >conftest.$ac_ext <<_ACEOF
12140 /* confdefs.h. */
12141 _ACEOF
12142 cat confdefs.h >>conftest.$ac_ext
12143 cat >>conftest.$ac_ext <<_ACEOF
12144 /* end confdefs.h. */
12145
12146 /* Override any GCC internal prototype to avoid an error.
12147 Use char because int might match the return type of a GCC
12148 builtin and then its argument prototype would still apply. */
12149 #ifdef __cplusplus
12150 extern "C"
12151 #endif
12152 char XShapeQueryExtension ();
12153 int
12154 main ()
12155 {
12156 return XShapeQueryExtension ();
12157 ;
12158 return 0;
12159 }
12160 _ACEOF
12161 rm -f conftest.$ac_objext conftest$ac_exeext
12162 if { (ac_try="$ac_link"
12163 case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12166 esac
12167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168 (eval "$ac_link") 2>conftest.er1
12169 ac_status=$?
12170 grep -v '^ *+' conftest.er1 >conftest.err
12171 rm -f conftest.er1
12172 cat conftest.err >&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); } && {
12175 test -z "$ac_c_werror_flag" ||
12176 test ! -s conftest.err
12177 } && test -s conftest$ac_exeext &&
12178 $as_test_x conftest$ac_exeext; then
12179 ac_cv_lib_Xext_XShapeQueryExtension=yes
12180 else
12181 echo "$as_me: failed program was:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12183
12184 ac_cv_lib_Xext_XShapeQueryExtension=no
12185 fi
12186
12187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12188 conftest$ac_exeext conftest.$ac_ext
12189 LIBS=$ac_check_lib_save_LIBS
12190 fi
12191 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12192 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12193 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12194 cat >>confdefs.h <<_ACEOF
12195 #define HAVE_LIBXEXT 1
12196 _ACEOF
12197
12198 LIBS="-lXext $LIBS"
12199
12200 fi
12201
12202 fi
12203 fi
12204
12205 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12206 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12207 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12208 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 else
12211 cat >conftest.$ac_ext <<_ACEOF
12212 /* confdefs.h. */
12213 _ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h. */
12217 #include <Xm/Xm.h>
12218 int
12219 main ()
12220 {
12221 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12222 int x = 5;
12223 #else
12224 Motif version prior to 2.1.
12225 #endif
12226 ;
12227 return 0;
12228 }
12229 _ACEOF
12230 rm -f conftest.$ac_objext
12231 if { (ac_try="$ac_compile"
12232 case "(($ac_try" in
12233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12234 *) ac_try_echo=$ac_try;;
12235 esac
12236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12237 (eval "$ac_compile") 2>conftest.er1
12238 ac_status=$?
12239 grep -v '^ *+' conftest.er1 >conftest.err
12240 rm -f conftest.er1
12241 cat conftest.err >&5
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); } && {
12244 test -z "$ac_c_werror_flag" ||
12245 test ! -s conftest.err
12246 } && test -s conftest.$ac_objext; then
12247 emacs_cv_motif_version_2_1=yes
12248 else
12249 echo "$as_me: failed program was:" >&5
12250 sed 's/^/| /' conftest.$ac_ext >&5
12251
12252 emacs_cv_motif_version_2_1=no
12253 fi
12254
12255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12256 fi
12257 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12258 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12259 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12260 if test $emacs_cv_motif_version_2_1 = yes; then
12261 HAVE_LIBXP=no
12262
12263 cat >>confdefs.h <<\_ACEOF
12264 #define HAVE_MOTIF_2_1 1
12265 _ACEOF
12266
12267 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12268 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12269 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12270 echo $ECHO_N "(cached) $ECHO_C" >&6
12271 else
12272 ac_check_lib_save_LIBS=$LIBS
12273 LIBS="-lXp $LIBS"
12274 cat >conftest.$ac_ext <<_ACEOF
12275 /* confdefs.h. */
12276 _ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12280
12281 /* Override any GCC internal prototype to avoid an error.
12282 Use char because int might match the return type of a GCC
12283 builtin and then its argument prototype would still apply. */
12284 #ifdef __cplusplus
12285 extern "C"
12286 #endif
12287 char XpCreateContext ();
12288 int
12289 main ()
12290 {
12291 return XpCreateContext ();
12292 ;
12293 return 0;
12294 }
12295 _ACEOF
12296 rm -f conftest.$ac_objext conftest$ac_exeext
12297 if { (ac_try="$ac_link"
12298 case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12301 esac
12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_link") 2>conftest.er1
12304 ac_status=$?
12305 grep -v '^ *+' conftest.er1 >conftest.err
12306 rm -f conftest.er1
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } && {
12310 test -z "$ac_c_werror_flag" ||
12311 test ! -s conftest.err
12312 } && test -s conftest$ac_exeext &&
12313 $as_test_x conftest$ac_exeext; then
12314 ac_cv_lib_Xp_XpCreateContext=yes
12315 else
12316 echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12318
12319 ac_cv_lib_Xp_XpCreateContext=no
12320 fi
12321
12322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12323 conftest$ac_exeext conftest.$ac_ext
12324 LIBS=$ac_check_lib_save_LIBS
12325 fi
12326 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12327 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12328 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12329 HAVE_LIBXP=yes
12330 fi
12331
12332 if test ${HAVE_LIBXP} = yes; then
12333
12334 cat >>confdefs.h <<\_ACEOF
12335 #define HAVE_LIBXP 1
12336 _ACEOF
12337
12338 fi
12339 else
12340 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12341 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12342 if test "${emacs_cv_lesstif+set}" = set; then
12343 echo $ECHO_N "(cached) $ECHO_C" >&6
12344 else
12345 # We put this in CFLAGS temporarily to precede other -I options
12346 # that might be in CFLAGS temporarily.
12347 # We put this in CPPFLAGS where it precedes the other -I options.
12348 OLD_CPPFLAGS=$CPPFLAGS
12349 OLD_CFLAGS=$CFLAGS
12350 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12351 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12352 cat >conftest.$ac_ext <<_ACEOF
12353 /* confdefs.h. */
12354 _ACEOF
12355 cat confdefs.h >>conftest.$ac_ext
12356 cat >>conftest.$ac_ext <<_ACEOF
12357 /* end confdefs.h. */
12358 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12359 int
12360 main ()
12361 {
12362 int x = 5;
12363 ;
12364 return 0;
12365 }
12366 _ACEOF
12367 rm -f conftest.$ac_objext
12368 if { (ac_try="$ac_compile"
12369 case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12372 esac
12373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_compile") 2>conftest.er1
12375 ac_status=$?
12376 grep -v '^ *+' conftest.er1 >conftest.err
12377 rm -f conftest.er1
12378 cat conftest.err >&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); } && {
12381 test -z "$ac_c_werror_flag" ||
12382 test ! -s conftest.err
12383 } && test -s conftest.$ac_objext; then
12384 emacs_cv_lesstif=yes
12385 else
12386 echo "$as_me: failed program was:" >&5
12387 sed 's/^/| /' conftest.$ac_ext >&5
12388
12389 emacs_cv_lesstif=no
12390 fi
12391
12392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12393 fi
12394 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12395 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12396 if test $emacs_cv_lesstif = yes; then
12397 # Make sure this -I option remains in CPPFLAGS after it is set
12398 # back to REAL_CPPFLAGS.
12399 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12400 # have those other -I options anyway. Ultimately, having this
12401 # directory ultimately in CPPFLAGS will be enough.
12402 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12403 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12404 else
12405 CFLAGS=$OLD_CFLAGS
12406 CPPFLAGS=$OLD_CPPFLAGS
12407 fi
12408 fi
12409 fi
12410
12411
12412
12413 USE_TOOLKIT_SCROLL_BARS=no
12414 if test "${with_toolkit_scroll_bars}" != "no"; then
12415 if test "${USE_X_TOOLKIT}" != "none"; then
12416 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12417 cat >>confdefs.h <<\_ACEOF
12418 #define USE_TOOLKIT_SCROLL_BARS 1
12419 _ACEOF
12420
12421 HAVE_XAW3D=no
12422 USE_TOOLKIT_SCROLL_BARS=yes
12423 elif test "${HAVE_XAW3D}" = "yes"; then
12424 cat >>confdefs.h <<\_ACEOF
12425 #define USE_TOOLKIT_SCROLL_BARS 1
12426 _ACEOF
12427
12428 USE_TOOLKIT_SCROLL_BARS=yes
12429 fi
12430 elif test "${HAVE_GTK}" = "yes"; then
12431 cat >>confdefs.h <<\_ACEOF
12432 #define USE_TOOLKIT_SCROLL_BARS 1
12433 _ACEOF
12434
12435 USE_TOOLKIT_SCROLL_BARS=yes
12436 elif test "${HAVE_NS}" = "yes"; then
12437 cat >>confdefs.h <<\_ACEOF
12438 #define USE_TOOLKIT_SCROLL_BARS 1
12439 _ACEOF
12440
12441 USE_TOOLKIT_SCROLL_BARS=yes
12442 fi
12443 fi
12444
12445 cat >conftest.$ac_ext <<_ACEOF
12446 /* confdefs.h. */
12447 _ACEOF
12448 cat confdefs.h >>conftest.$ac_ext
12449 cat >>conftest.$ac_ext <<_ACEOF
12450 /* end confdefs.h. */
12451
12452 #include <X11/Xlib.h>
12453 #include <X11/Xresource.h>
12454 int
12455 main ()
12456 {
12457 XIMProc callback;
12458 ;
12459 return 0;
12460 }
12461 _ACEOF
12462 rm -f conftest.$ac_objext
12463 if { (ac_try="$ac_compile"
12464 case "(($ac_try" in
12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12467 esac
12468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_compile") 2>conftest.er1
12470 ac_status=$?
12471 grep -v '^ *+' conftest.er1 >conftest.err
12472 rm -f conftest.er1
12473 cat conftest.err >&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } && {
12476 test -z "$ac_c_werror_flag" ||
12477 test ! -s conftest.err
12478 } && test -s conftest.$ac_objext; then
12479 HAVE_XIM=yes
12480
12481 cat >>confdefs.h <<\_ACEOF
12482 #define HAVE_XIM 1
12483 _ACEOF
12484
12485 else
12486 echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12488
12489 HAVE_XIM=no
12490 fi
12491
12492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12493
12494
12495 if test "${with_xim}" != "no"; then
12496
12497 cat >>confdefs.h <<\_ACEOF
12498 #define USE_XIM 1
12499 _ACEOF
12500
12501 fi
12502
12503
12504 if test "${HAVE_XIM}" != "no"; then
12505 late_CFLAGS=$CFLAGS
12506 if test "$GCC" = yes; then
12507 CFLAGS="$CFLAGS --pedantic-errors"
12508 fi
12509 cat >conftest.$ac_ext <<_ACEOF
12510 /* confdefs.h. */
12511 _ACEOF
12512 cat confdefs.h >>conftest.$ac_ext
12513 cat >>conftest.$ac_ext <<_ACEOF
12514 /* end confdefs.h. */
12515
12516 #include <X11/Xlib.h>
12517 #include <X11/Xresource.h>
12518 int
12519 main ()
12520 {
12521 Display *display;
12522 XrmDatabase db;
12523 char *res_name;
12524 char *res_class;
12525 XIMProc callback;
12526 XPointer *client_data;
12527 #ifndef __GNUC__
12528 /* If we're not using GCC, it's probably not XFree86, and this is
12529 probably right, but we can't use something like --pedantic-errors. */
12530 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12531 char*, XIMProc, XPointer*);
12532 #endif
12533 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12534 client_data);
12535 ;
12536 return 0;
12537 }
12538 _ACEOF
12539 rm -f conftest.$ac_objext
12540 if { (ac_try="$ac_compile"
12541 case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12544 esac
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_compile") 2>conftest.er1
12547 ac_status=$?
12548 grep -v '^ *+' conftest.er1 >conftest.err
12549 rm -f conftest.er1
12550 cat conftest.err >&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); } && {
12553 test -z "$ac_c_werror_flag" ||
12554 test ! -s conftest.err
12555 } && test -s conftest.$ac_objext; then
12556 emacs_cv_arg6_star=yes
12557 else
12558 echo "$as_me: failed program was:" >&5
12559 sed 's/^/| /' conftest.$ac_ext >&5
12560
12561
12562 fi
12563
12564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12565
12566 if test "$emacs_cv_arg6_star" = yes; then
12567 cat >>confdefs.h <<\_ACEOF
12568 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12569 _ACEOF
12570
12571 else
12572 cat >>confdefs.h <<\_ACEOF
12573 #define XRegisterIMInstantiateCallback_arg6 XPointer
12574 _ACEOF
12575
12576 fi
12577 CFLAGS=$late_CFLAGS
12578 fi
12579
12580 ### Start of font-backend section.
12581
12582 succeeded=no
12583
12584 # Extract the first word of "pkg-config", so it can be a program name with args.
12585 set dummy pkg-config; ac_word=$2
12586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12588 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12590 else
12591 case $PKG_CONFIG in
12592 [\\/]* | ?:[\\/]*)
12593 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12594 ;;
12595 *)
12596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597 for as_dir in $PATH
12598 do
12599 IFS=$as_save_IFS
12600 test -z "$as_dir" && as_dir=.
12601 for ac_exec_ext in '' $ac_executable_extensions; do
12602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12603 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12605 break 2
12606 fi
12607 done
12608 done
12609 IFS=$as_save_IFS
12610
12611 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12612 ;;
12613 esac
12614 fi
12615 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12616 if test -n "$PKG_CONFIG"; then
12617 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12618 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12619 else
12620 { echo "$as_me:$LINENO: result: no" >&5
12621 echo "${ECHO_T}no" >&6; }
12622 fi
12623
12624
12625
12626 if test "$PKG_CONFIG" = "no" ; then
12627 HAVE_FC=no
12628 else
12629 PKG_CONFIG_MIN_VERSION=0.9.0
12630 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12631 { echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
12632 echo $ECHO_N "checking for fontconfig >= 2.2.0... $ECHO_C" >&6; }
12633
12634 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12635 { echo "$as_me:$LINENO: result: yes" >&5
12636 echo "${ECHO_T}yes" >&6; }
12637 succeeded=yes
12638
12639 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12640 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12641 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12642 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12643 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12644
12645 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12646 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12647 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12648 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12649 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12650 else
12651 { echo "$as_me:$LINENO: result: no" >&5
12652 echo "${ECHO_T}no" >&6; }
12653 FONTCONFIG_CFLAGS=""
12654 FONTCONFIG_LIBS=""
12655 ## If we have a custom action on failure, don't print errors, but
12656 ## do set a variable so people can do so.
12657 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12658
12659 fi
12660
12661
12662
12663 else
12664 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12665 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12666 fi
12667 fi
12668
12669 if test $succeeded = yes; then
12670 HAVE_FC=yes
12671 else
12672 HAVE_FC=no
12673 fi
12674
12675 test "${HAVE_FC}" = "no" && with_freetype=no
12676
12677 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12678 HAVE_XFT=maybe
12679 if test "x${with_freetype}" = "xno" || test "x${with_x}" = "xno"; then
12680 with_xft="no";
12681 fi
12682 if test "x${with_xft}" != "xno"; then
12683
12684
12685 succeeded=no
12686
12687 # Extract the first word of "pkg-config", so it can be a program name with args.
12688 set dummy pkg-config; ac_word=$2
12689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12691 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12693 else
12694 case $PKG_CONFIG in
12695 [\\/]* | ?:[\\/]*)
12696 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12697 ;;
12698 *)
12699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12700 for as_dir in $PATH
12701 do
12702 IFS=$as_save_IFS
12703 test -z "$as_dir" && as_dir=.
12704 for ac_exec_ext in '' $ac_executable_extensions; do
12705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12706 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12708 break 2
12709 fi
12710 done
12711 done
12712 IFS=$as_save_IFS
12713
12714 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12715 ;;
12716 esac
12717 fi
12718 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12719 if test -n "$PKG_CONFIG"; then
12720 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12721 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12722 else
12723 { echo "$as_me:$LINENO: result: no" >&5
12724 echo "${ECHO_T}no" >&6; }
12725 fi
12726
12727
12728
12729 if test "$PKG_CONFIG" = "no" ; then
12730 HAVE_XFT=no
12731 else
12732 PKG_CONFIG_MIN_VERSION=0.9.0
12733 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12734 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12735 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12736
12737 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12738 { echo "$as_me:$LINENO: result: yes" >&5
12739 echo "${ECHO_T}yes" >&6; }
12740 succeeded=yes
12741
12742 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12743 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12744 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12745 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12746 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12747
12748 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12749 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12750 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12751 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12752 echo "${ECHO_T}$XFT_LIBS" >&6; }
12753 else
12754 { echo "$as_me:$LINENO: result: no" >&5
12755 echo "${ECHO_T}no" >&6; }
12756 XFT_CFLAGS=""
12757 XFT_LIBS=""
12758 ## If we have a custom action on failure, don't print errors, but
12759 ## do set a variable so people can do so.
12760 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12761
12762 fi
12763
12764
12765
12766 else
12767 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12768 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12769 fi
12770 fi
12771
12772 if test $succeeded = yes; then
12773 :
12774 else
12775 HAVE_XFT=no
12776 fi
12777
12778 if test "$HAVE_XFT" != no; then
12779 OLD_CPPFLAGS="$CPPFLAGS"
12780 OLD_CFLAGS="$CFLAGS"
12781 OLD_LIBS="$LIBS"
12782 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12783 CFLAGS="$CFLAGS $XFT_CFLAGS"
12784 LIBS="$XFT_LIBS $LIBS"
12785 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12786 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12787 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12788 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
12790 fi
12791 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12792 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12793 else
12794 # Is the header compilable?
12795 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12796 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12797 cat >conftest.$ac_ext <<_ACEOF
12798 /* confdefs.h. */
12799 _ACEOF
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h. */
12803 $ac_includes_default
12804 #include <X11/Xft/Xft.h>
12805 _ACEOF
12806 rm -f conftest.$ac_objext
12807 if { (ac_try="$ac_compile"
12808 case "(($ac_try" in
12809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810 *) ac_try_echo=$ac_try;;
12811 esac
12812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12813 (eval "$ac_compile") 2>conftest.er1
12814 ac_status=$?
12815 grep -v '^ *+' conftest.er1 >conftest.err
12816 rm -f conftest.er1
12817 cat conftest.err >&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } && {
12820 test -z "$ac_c_werror_flag" ||
12821 test ! -s conftest.err
12822 } && test -s conftest.$ac_objext; then
12823 ac_header_compiler=yes
12824 else
12825 echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12827
12828 ac_header_compiler=no
12829 fi
12830
12831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12832 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12833 echo "${ECHO_T}$ac_header_compiler" >&6; }
12834
12835 # Is the header present?
12836 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12837 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12838 cat >conftest.$ac_ext <<_ACEOF
12839 /* confdefs.h. */
12840 _ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12844 #include <X11/Xft/Xft.h>
12845 _ACEOF
12846 if { (ac_try="$ac_cpp conftest.$ac_ext"
12847 case "(($ac_try" in
12848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849 *) ac_try_echo=$ac_try;;
12850 esac
12851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12853 ac_status=$?
12854 grep -v '^ *+' conftest.er1 >conftest.err
12855 rm -f conftest.er1
12856 cat conftest.err >&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); } >/dev/null && {
12859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12860 test ! -s conftest.err
12861 }; then
12862 ac_header_preproc=yes
12863 else
12864 echo "$as_me: failed program was:" >&5
12865 sed 's/^/| /' conftest.$ac_ext >&5
12866
12867 ac_header_preproc=no
12868 fi
12869
12870 rm -f conftest.err conftest.$ac_ext
12871 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12872 echo "${ECHO_T}$ac_header_preproc" >&6; }
12873
12874 # So? What about this header?
12875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12876 yes:no: )
12877 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12878 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12879 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12880 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12881 ac_header_preproc=yes
12882 ;;
12883 no:yes:* )
12884 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12885 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12886 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12887 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12888 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12889 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12890 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12891 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12892 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12893 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12894 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12895 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12896
12897 ;;
12898 esac
12899 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12900 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12901 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12903 else
12904 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12905 fi
12906 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12907 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12908
12909 fi
12910 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12911 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12912 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12913 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12914 echo $ECHO_N "(cached) $ECHO_C" >&6
12915 else
12916 ac_check_lib_save_LIBS=$LIBS
12917 LIBS="-lXft $XFT_LIBS $LIBS"
12918 cat >conftest.$ac_ext <<_ACEOF
12919 /* confdefs.h. */
12920 _ACEOF
12921 cat confdefs.h >>conftest.$ac_ext
12922 cat >>conftest.$ac_ext <<_ACEOF
12923 /* end confdefs.h. */
12924
12925 /* Override any GCC internal prototype to avoid an error.
12926 Use char because int might match the return type of a GCC
12927 builtin and then its argument prototype would still apply. */
12928 #ifdef __cplusplus
12929 extern "C"
12930 #endif
12931 char XftFontOpen ();
12932 int
12933 main ()
12934 {
12935 return XftFontOpen ();
12936 ;
12937 return 0;
12938 }
12939 _ACEOF
12940 rm -f conftest.$ac_objext conftest$ac_exeext
12941 if { (ac_try="$ac_link"
12942 case "(($ac_try" in
12943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12944 *) ac_try_echo=$ac_try;;
12945 esac
12946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12947 (eval "$ac_link") 2>conftest.er1
12948 ac_status=$?
12949 grep -v '^ *+' conftest.er1 >conftest.err
12950 rm -f conftest.er1
12951 cat conftest.err >&5
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); } && {
12954 test -z "$ac_c_werror_flag" ||
12955 test ! -s conftest.err
12956 } && test -s conftest$ac_exeext &&
12957 $as_test_x conftest$ac_exeext; then
12958 ac_cv_lib_Xft_XftFontOpen=yes
12959 else
12960 echo "$as_me: failed program was:" >&5
12961 sed 's/^/| /' conftest.$ac_ext >&5
12962
12963 ac_cv_lib_Xft_XftFontOpen=no
12964 fi
12965
12966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12967 conftest$ac_exeext conftest.$ac_ext
12968 LIBS=$ac_check_lib_save_LIBS
12969 fi
12970 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12971 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12972 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12973 HAVE_XFT=yes
12974 fi
12975
12976 fi
12977
12978
12979
12980 if test "${HAVE_XFT}" = "yes"; then
12981
12982 cat >>confdefs.h <<\_ACEOF
12983 #define HAVE_XFT 1
12984 _ACEOF
12985
12986
12987 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12988 else
12989 CPPFLAGS="$OLD_CPPFLAGS"
12990 CFLAGS="$OLD_CFLAGS"
12991 LIBS="$OLD_LIBS"
12992 fi # "${HAVE_XFT}" = "yes"
12993 fi # "$HAVE_XFT" != no
12994 fi # "x${with_xft}" != "xno"
12995
12996 if test "$HAVE_XFT" != "yes"; then
12997 HAVE_XFT=no
12998 fi
12999
13000
13001 HAVE_FREETYPE=no
13002 ### Use -lfreetype if available, unless `--with-freetype=no'.
13003 if test "${HAVE_XFT}" = "yes"; then
13004 HAVE_FREETYPE=yes
13005 FONTCONFIG_CFLAGS=
13006 FONTCONFIG_LIBS=
13007 elif test "x${with_freetype}" != "xno" && test "x${with_x}" != "xno"; then
13008
13009
13010 succeeded=no
13011
13012 # Extract the first word of "pkg-config", so it can be a program name with args.
13013 set dummy pkg-config; ac_word=$2
13014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13016 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13017 echo $ECHO_N "(cached) $ECHO_C" >&6
13018 else
13019 case $PKG_CONFIG in
13020 [\\/]* | ?:[\\/]*)
13021 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13022 ;;
13023 *)
13024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13025 for as_dir in $PATH
13026 do
13027 IFS=$as_save_IFS
13028 test -z "$as_dir" && as_dir=.
13029 for ac_exec_ext in '' $ac_executable_extensions; do
13030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13031 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13033 break 2
13034 fi
13035 done
13036 done
13037 IFS=$as_save_IFS
13038
13039 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13040 ;;
13041 esac
13042 fi
13043 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13044 if test -n "$PKG_CONFIG"; then
13045 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13046 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13047 else
13048 { echo "$as_me:$LINENO: result: no" >&5
13049 echo "${ECHO_T}no" >&6; }
13050 fi
13051
13052
13053
13054 if test "$PKG_CONFIG" = "no" ; then
13055 HAVE_FREETYPE=no
13056 else
13057 PKG_CONFIG_MIN_VERSION=0.9.0
13058 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13059 { echo "$as_me:$LINENO: checking for freetype2" >&5
13060 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13061
13062 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13063 { echo "$as_me:$LINENO: result: yes" >&5
13064 echo "${ECHO_T}yes" >&6; }
13065 succeeded=yes
13066
13067 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13068 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13069 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
13070 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13071 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13072
13073 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13074 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13075 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
13076 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13077 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13078 else
13079 { echo "$as_me:$LINENO: result: no" >&5
13080 echo "${ECHO_T}no" >&6; }
13081 FREETYPE_CFLAGS=""
13082 FREETYPE_LIBS=""
13083 ## If we have a custom action on failure, don't print errors, but
13084 ## do set a variable so people can do so.
13085 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13086
13087 fi
13088
13089
13090
13091 else
13092 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13093 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13094 fi
13095 fi
13096
13097 if test $succeeded = yes; then
13098 HAVE_FREETYPE=yes
13099 else
13100 HAVE_FREETYPE=no
13101 fi
13102
13103 fi
13104
13105 HAVE_LIBOTF=no
13106 if test "${HAVE_FREETYPE}" = "yes"; then
13107
13108 cat >>confdefs.h <<\_ACEOF
13109 #define HAVE_FREETYPE 1
13110 _ACEOF
13111
13112 if test "${with_libotf}" != "no"; then
13113
13114 succeeded=no
13115
13116 # Extract the first word of "pkg-config", so it can be a program name with args.
13117 set dummy pkg-config; ac_word=$2
13118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13120 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13121 echo $ECHO_N "(cached) $ECHO_C" >&6
13122 else
13123 case $PKG_CONFIG in
13124 [\\/]* | ?:[\\/]*)
13125 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13126 ;;
13127 *)
13128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13129 for as_dir in $PATH
13130 do
13131 IFS=$as_save_IFS
13132 test -z "$as_dir" && as_dir=.
13133 for ac_exec_ext in '' $ac_executable_extensions; do
13134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13135 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13137 break 2
13138 fi
13139 done
13140 done
13141 IFS=$as_save_IFS
13142
13143 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13144 ;;
13145 esac
13146 fi
13147 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13148 if test -n "$PKG_CONFIG"; then
13149 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13150 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13151 else
13152 { echo "$as_me:$LINENO: result: no" >&5
13153 echo "${ECHO_T}no" >&6; }
13154 fi
13155
13156
13157
13158 if test "$PKG_CONFIG" = "no" ; then
13159 HAVE_LIBOTF=no
13160 else
13161 PKG_CONFIG_MIN_VERSION=0.9.0
13162 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13163 { echo "$as_me:$LINENO: checking for libotf" >&5
13164 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13165
13166 if $PKG_CONFIG --exists "libotf" 2>&5; then
13167 { echo "$as_me:$LINENO: result: yes" >&5
13168 echo "${ECHO_T}yes" >&6; }
13169 succeeded=yes
13170
13171 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13172 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13173 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13174 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13175 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13176
13177 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13178 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13179 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13180 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13181 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13182 else
13183 { echo "$as_me:$LINENO: result: no" >&5
13184 echo "${ECHO_T}no" >&6; }
13185 LIBOTF_CFLAGS=""
13186 LIBOTF_LIBS=""
13187 ## If we have a custom action on failure, don't print errors, but
13188 ## do set a variable so people can do so.
13189 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13190
13191 fi
13192
13193
13194
13195 else
13196 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13197 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13198 fi
13199 fi
13200
13201 if test $succeeded = yes; then
13202 HAVE_LIBOTF=yes
13203 else
13204 HAVE_LIBOTF=no
13205 fi
13206
13207 if test "$HAVE_LIBOTF" = "yes"; then
13208
13209 cat >>confdefs.h <<\_ACEOF
13210 #define HAVE_LIBOTF 1
13211 _ACEOF
13212
13213 { echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
13214 echo $ECHO_N "checking for OTF_get_variation_glyphs in -lotf... $ECHO_C" >&6; }
13215 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
13216 echo $ECHO_N "(cached) $ECHO_C" >&6
13217 else
13218 ac_check_lib_save_LIBS=$LIBS
13219 LIBS="-lotf $LIBS"
13220 cat >conftest.$ac_ext <<_ACEOF
13221 /* confdefs.h. */
13222 _ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h. */
13226
13227 /* Override any GCC internal prototype to avoid an error.
13228 Use char because int might match the return type of a GCC
13229 builtin and then its argument prototype would still apply. */
13230 #ifdef __cplusplus
13231 extern "C"
13232 #endif
13233 char OTF_get_variation_glyphs ();
13234 int
13235 main ()
13236 {
13237 return OTF_get_variation_glyphs ();
13238 ;
13239 return 0;
13240 }
13241 _ACEOF
13242 rm -f conftest.$ac_objext conftest$ac_exeext
13243 if { (ac_try="$ac_link"
13244 case "(($ac_try" in
13245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246 *) ac_try_echo=$ac_try;;
13247 esac
13248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13249 (eval "$ac_link") 2>conftest.er1
13250 ac_status=$?
13251 grep -v '^ *+' conftest.er1 >conftest.err
13252 rm -f conftest.er1
13253 cat conftest.err >&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } && {
13256 test -z "$ac_c_werror_flag" ||
13257 test ! -s conftest.err
13258 } && test -s conftest$ac_exeext &&
13259 $as_test_x conftest$ac_exeext; then
13260 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13261 else
13262 echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13264
13265 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13266 fi
13267
13268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13269 conftest$ac_exeext conftest.$ac_ext
13270 LIBS=$ac_check_lib_save_LIBS
13271 fi
13272 { echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13273 echo "${ECHO_T}$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13274 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
13275 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13276 else
13277 HAVE_OTF_GET_VARIATION_GLYPHS=no
13278 fi
13279
13280 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13281
13282 cat >>confdefs.h <<\_ACEOF
13283 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
13284 _ACEOF
13285
13286 fi
13287 fi
13288 fi
13289 fi
13290
13291 HAVE_M17N_FLT=no
13292 if test "${HAVE_LIBOTF}" = yes; then
13293 if test "${with_m17n_flt}" != "no"; then
13294
13295 succeeded=no
13296
13297 # Extract the first word of "pkg-config", so it can be a program name with args.
13298 set dummy pkg-config; ac_word=$2
13299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13301 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13302 echo $ECHO_N "(cached) $ECHO_C" >&6
13303 else
13304 case $PKG_CONFIG in
13305 [\\/]* | ?:[\\/]*)
13306 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13307 ;;
13308 *)
13309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13310 for as_dir in $PATH
13311 do
13312 IFS=$as_save_IFS
13313 test -z "$as_dir" && as_dir=.
13314 for ac_exec_ext in '' $ac_executable_extensions; do
13315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13316 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13318 break 2
13319 fi
13320 done
13321 done
13322 IFS=$as_save_IFS
13323
13324 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13325 ;;
13326 esac
13327 fi
13328 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13329 if test -n "$PKG_CONFIG"; then
13330 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13331 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13332 else
13333 { echo "$as_me:$LINENO: result: no" >&5
13334 echo "${ECHO_T}no" >&6; }
13335 fi
13336
13337
13338
13339 if test "$PKG_CONFIG" = "no" ; then
13340 HAVE_M17N_FLT=no
13341 else
13342 PKG_CONFIG_MIN_VERSION=0.9.0
13343 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13344 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13345 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13346
13347 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13348 { echo "$as_me:$LINENO: result: yes" >&5
13349 echo "${ECHO_T}yes" >&6; }
13350 succeeded=yes
13351
13352 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13353 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13354 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13355 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13356 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13357
13358 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13359 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13360 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13361 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13362 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13363 else
13364 { echo "$as_me:$LINENO: result: no" >&5
13365 echo "${ECHO_T}no" >&6; }
13366 M17N_FLT_CFLAGS=""
13367 M17N_FLT_LIBS=""
13368 ## If we have a custom action on failure, don't print errors, but
13369 ## do set a variable so people can do so.
13370 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13371
13372 fi
13373
13374
13375
13376 else
13377 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13378 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13379 fi
13380 fi
13381
13382 if test $succeeded = yes; then
13383 HAVE_M17N_FLT=yes
13384 else
13385 HAVE_M17N_FLT=no
13386 fi
13387
13388 if test "$HAVE_M17N_FLT" = "yes"; then
13389
13390 cat >>confdefs.h <<\_ACEOF
13391 #define HAVE_M17N_FLT 1
13392 _ACEOF
13393
13394 fi
13395 fi
13396 fi
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407 ### End of font-backend section.
13408
13409 ### Use -lXpm if available, unless `--with-xpm=no'.
13410 HAVE_XPM=no
13411 if test "${HAVE_X11}" = "yes"; then
13412 if test "${with_xpm}" != "no"; then
13413 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13414 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13415 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13416 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13417 echo $ECHO_N "(cached) $ECHO_C" >&6
13418 fi
13419 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13420 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13421 else
13422 # Is the header compilable?
13423 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13424 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13425 cat >conftest.$ac_ext <<_ACEOF
13426 /* confdefs.h. */
13427 _ACEOF
13428 cat confdefs.h >>conftest.$ac_ext
13429 cat >>conftest.$ac_ext <<_ACEOF
13430 /* end confdefs.h. */
13431 $ac_includes_default
13432 #include <X11/xpm.h>
13433 _ACEOF
13434 rm -f conftest.$ac_objext
13435 if { (ac_try="$ac_compile"
13436 case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13439 esac
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_compile") 2>conftest.er1
13442 ac_status=$?
13443 grep -v '^ *+' conftest.er1 >conftest.err
13444 rm -f conftest.er1
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } && {
13448 test -z "$ac_c_werror_flag" ||
13449 test ! -s conftest.err
13450 } && test -s conftest.$ac_objext; then
13451 ac_header_compiler=yes
13452 else
13453 echo "$as_me: failed program was:" >&5
13454 sed 's/^/| /' conftest.$ac_ext >&5
13455
13456 ac_header_compiler=no
13457 fi
13458
13459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13461 echo "${ECHO_T}$ac_header_compiler" >&6; }
13462
13463 # Is the header present?
13464 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13465 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13466 cat >conftest.$ac_ext <<_ACEOF
13467 /* confdefs.h. */
13468 _ACEOF
13469 cat confdefs.h >>conftest.$ac_ext
13470 cat >>conftest.$ac_ext <<_ACEOF
13471 /* end confdefs.h. */
13472 #include <X11/xpm.h>
13473 _ACEOF
13474 if { (ac_try="$ac_cpp conftest.$ac_ext"
13475 case "(($ac_try" in
13476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477 *) ac_try_echo=$ac_try;;
13478 esac
13479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13481 ac_status=$?
13482 grep -v '^ *+' conftest.er1 >conftest.err
13483 rm -f conftest.er1
13484 cat conftest.err >&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); } >/dev/null && {
13487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13488 test ! -s conftest.err
13489 }; then
13490 ac_header_preproc=yes
13491 else
13492 echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13494
13495 ac_header_preproc=no
13496 fi
13497
13498 rm -f conftest.err conftest.$ac_ext
13499 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13500 echo "${ECHO_T}$ac_header_preproc" >&6; }
13501
13502 # So? What about this header?
13503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13504 yes:no: )
13505 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13506 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13507 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13508 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13509 ac_header_preproc=yes
13510 ;;
13511 no:yes:* )
13512 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13513 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13514 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13515 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13516 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13517 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13518 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13519 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13520 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13521 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13523 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13524
13525 ;;
13526 esac
13527 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13528 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13529 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13531 else
13532 ac_cv_header_X11_xpm_h=$ac_header_preproc
13533 fi
13534 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13535 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13536
13537 fi
13538 if test $ac_cv_header_X11_xpm_h = yes; then
13539 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13540 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13541 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13542 echo $ECHO_N "(cached) $ECHO_C" >&6
13543 else
13544 ac_check_lib_save_LIBS=$LIBS
13545 LIBS="-lXpm -lX11 $LIBS"
13546 cat >conftest.$ac_ext <<_ACEOF
13547 /* confdefs.h. */
13548 _ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h. */
13552
13553 /* Override any GCC internal prototype to avoid an error.
13554 Use char because int might match the return type of a GCC
13555 builtin and then its argument prototype would still apply. */
13556 #ifdef __cplusplus
13557 extern "C"
13558 #endif
13559 char XpmReadFileToPixmap ();
13560 int
13561 main ()
13562 {
13563 return XpmReadFileToPixmap ();
13564 ;
13565 return 0;
13566 }
13567 _ACEOF
13568 rm -f conftest.$ac_objext conftest$ac_exeext
13569 if { (ac_try="$ac_link"
13570 case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13573 esac
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_link") 2>conftest.er1
13576 ac_status=$?
13577 grep -v '^ *+' conftest.er1 >conftest.err
13578 rm -f conftest.er1
13579 cat conftest.err >&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } && {
13582 test -z "$ac_c_werror_flag" ||
13583 test ! -s conftest.err
13584 } && test -s conftest$ac_exeext &&
13585 $as_test_x conftest$ac_exeext; then
13586 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13587 else
13588 echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13590
13591 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13592 fi
13593
13594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13595 conftest$ac_exeext conftest.$ac_ext
13596 LIBS=$ac_check_lib_save_LIBS
13597 fi
13598 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13599 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13600 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13601 HAVE_XPM=yes
13602 fi
13603
13604 fi
13605
13606
13607 if test "${HAVE_XPM}" = "yes"; then
13608 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13609 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13610 cat >conftest.$ac_ext <<_ACEOF
13611 /* confdefs.h. */
13612 _ACEOF
13613 cat confdefs.h >>conftest.$ac_ext
13614 cat >>conftest.$ac_ext <<_ACEOF
13615 /* end confdefs.h. */
13616 #include "X11/xpm.h"
13617 #ifndef XpmReturnAllocPixels
13618 no_return_alloc_pixels
13619 #endif
13620
13621 _ACEOF
13622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13623 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13624 HAVE_XPM=no
13625 else
13626 HAVE_XPM=yes
13627 fi
13628 rm -f conftest*
13629
13630
13631 if test "${HAVE_XPM}" = "yes"; then
13632 { echo "$as_me:$LINENO: result: yes" >&5
13633 echo "${ECHO_T}yes" >&6; }
13634 else
13635 { echo "$as_me:$LINENO: result: no" >&5
13636 echo "${ECHO_T}no" >&6; }
13637 fi
13638 fi
13639 fi
13640
13641 if test "${HAVE_XPM}" = "yes"; then
13642
13643 cat >>confdefs.h <<\_ACEOF
13644 #define HAVE_XPM 1
13645 _ACEOF
13646
13647 fi
13648 fi
13649
13650 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13651 HAVE_JPEG=no
13652 if test "${HAVE_X11}" = "yes"; then
13653 if test "${with_jpeg}" != "no"; then
13654 if test "${ac_cv_header_jerror_h+set}" = set; then
13655 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13656 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13657 if test "${ac_cv_header_jerror_h+set}" = set; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13659 fi
13660 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13661 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13662 else
13663 # Is the header compilable?
13664 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13665 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13666 cat >conftest.$ac_ext <<_ACEOF
13667 /* confdefs.h. */
13668 _ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13672 $ac_includes_default
13673 #include <jerror.h>
13674 _ACEOF
13675 rm -f conftest.$ac_objext
13676 if { (ac_try="$ac_compile"
13677 case "(($ac_try" in
13678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13679 *) ac_try_echo=$ac_try;;
13680 esac
13681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13682 (eval "$ac_compile") 2>conftest.er1
13683 ac_status=$?
13684 grep -v '^ *+' conftest.er1 >conftest.err
13685 rm -f conftest.er1
13686 cat conftest.err >&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); } && {
13689 test -z "$ac_c_werror_flag" ||
13690 test ! -s conftest.err
13691 } && test -s conftest.$ac_objext; then
13692 ac_header_compiler=yes
13693 else
13694 echo "$as_me: failed program was:" >&5
13695 sed 's/^/| /' conftest.$ac_ext >&5
13696
13697 ac_header_compiler=no
13698 fi
13699
13700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13702 echo "${ECHO_T}$ac_header_compiler" >&6; }
13703
13704 # Is the header present?
13705 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13706 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13707 cat >conftest.$ac_ext <<_ACEOF
13708 /* confdefs.h. */
13709 _ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h. */
13713 #include <jerror.h>
13714 _ACEOF
13715 if { (ac_try="$ac_cpp conftest.$ac_ext"
13716 case "(($ac_try" in
13717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718 *) ac_try_echo=$ac_try;;
13719 esac
13720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13722 ac_status=$?
13723 grep -v '^ *+' conftest.er1 >conftest.err
13724 rm -f conftest.er1
13725 cat conftest.err >&5
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); } >/dev/null && {
13728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13729 test ! -s conftest.err
13730 }; then
13731 ac_header_preproc=yes
13732 else
13733 echo "$as_me: failed program was:" >&5
13734 sed 's/^/| /' conftest.$ac_ext >&5
13735
13736 ac_header_preproc=no
13737 fi
13738
13739 rm -f conftest.err conftest.$ac_ext
13740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13741 echo "${ECHO_T}$ac_header_preproc" >&6; }
13742
13743 # So? What about this header?
13744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13745 yes:no: )
13746 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13747 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13748 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13749 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13750 ac_header_preproc=yes
13751 ;;
13752 no:yes:* )
13753 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13754 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13755 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13756 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13757 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13758 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13759 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13760 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13761 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13762 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13763 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13764 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13765
13766 ;;
13767 esac
13768 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13769 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13770 if test "${ac_cv_header_jerror_h+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13772 else
13773 ac_cv_header_jerror_h=$ac_header_preproc
13774 fi
13775 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13776 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13777
13778 fi
13779 if test $ac_cv_header_jerror_h = yes; then
13780 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13781 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13782 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13784 else
13785 ac_check_lib_save_LIBS=$LIBS
13786 LIBS="-ljpeg $LIBS"
13787 cat >conftest.$ac_ext <<_ACEOF
13788 /* confdefs.h. */
13789 _ACEOF
13790 cat confdefs.h >>conftest.$ac_ext
13791 cat >>conftest.$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13793
13794 /* Override any GCC internal prototype to avoid an error.
13795 Use char because int might match the return type of a GCC
13796 builtin and then its argument prototype would still apply. */
13797 #ifdef __cplusplus
13798 extern "C"
13799 #endif
13800 char jpeg_destroy_compress ();
13801 int
13802 main ()
13803 {
13804 return jpeg_destroy_compress ();
13805 ;
13806 return 0;
13807 }
13808 _ACEOF
13809 rm -f conftest.$ac_objext conftest$ac_exeext
13810 if { (ac_try="$ac_link"
13811 case "(($ac_try" in
13812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13813 *) ac_try_echo=$ac_try;;
13814 esac
13815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13816 (eval "$ac_link") 2>conftest.er1
13817 ac_status=$?
13818 grep -v '^ *+' conftest.er1 >conftest.err
13819 rm -f conftest.er1
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } && {
13823 test -z "$ac_c_werror_flag" ||
13824 test ! -s conftest.err
13825 } && test -s conftest$ac_exeext &&
13826 $as_test_x conftest$ac_exeext; then
13827 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13828 else
13829 echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13831
13832 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13833 fi
13834
13835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13836 conftest$ac_exeext conftest.$ac_ext
13837 LIBS=$ac_check_lib_save_LIBS
13838 fi
13839 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13840 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13841 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13842 HAVE_JPEG=yes
13843 fi
13844
13845 fi
13846
13847
13848 fi
13849
13850
13851 if test "${HAVE_JPEG}" = "yes"; then
13852 cat >>confdefs.h <<\_ACEOF
13853 #define HAVE_JPEG 1
13854 _ACEOF
13855
13856 cat >conftest.$ac_ext <<_ACEOF
13857 /* confdefs.h. */
13858 _ACEOF
13859 cat confdefs.h >>conftest.$ac_ext
13860 cat >>conftest.$ac_ext <<_ACEOF
13861 /* end confdefs.h. */
13862 #include <jpeglib.h>
13863 version=JPEG_LIB_VERSION
13864
13865 _ACEOF
13866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13867 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13868 cat >>confdefs.h <<\_ACEOF
13869 #define HAVE_JPEG 1
13870 _ACEOF
13871
13872 else
13873 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13874 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13875 HAVE_JPEG=no
13876 fi
13877 rm -f conftest*
13878
13879 fi
13880 fi
13881
13882 ### Use -lpng if available, unless `--with-png=no'.
13883 HAVE_PNG=no
13884 if test "${HAVE_X11}" = "yes"; then
13885 if test "${with_png}" != "no"; then
13886 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13887 # in /usr/include/libpng.
13888
13889
13890 for ac_header in png.h libpng/png.h
13891 do
13892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13898 fi
13899 ac_res=`eval echo '${'$as_ac_Header'}'`
13900 { echo "$as_me:$LINENO: result: $ac_res" >&5
13901 echo "${ECHO_T}$ac_res" >&6; }
13902 else
13903 # Is the header compilable?
13904 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13906 cat >conftest.$ac_ext <<_ACEOF
13907 /* confdefs.h. */
13908 _ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h. */
13912 $ac_includes_default
13913 #include <$ac_header>
13914 _ACEOF
13915 rm -f conftest.$ac_objext
13916 if { (ac_try="$ac_compile"
13917 case "(($ac_try" in
13918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13919 *) ac_try_echo=$ac_try;;
13920 esac
13921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13922 (eval "$ac_compile") 2>conftest.er1
13923 ac_status=$?
13924 grep -v '^ *+' conftest.er1 >conftest.err
13925 rm -f conftest.er1
13926 cat conftest.err >&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); } && {
13929 test -z "$ac_c_werror_flag" ||
13930 test ! -s conftest.err
13931 } && test -s conftest.$ac_objext; then
13932 ac_header_compiler=yes
13933 else
13934 echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.$ac_ext >&5
13936
13937 ac_header_compiler=no
13938 fi
13939
13940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13942 echo "${ECHO_T}$ac_header_compiler" >&6; }
13943
13944 # Is the header present?
13945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13947 cat >conftest.$ac_ext <<_ACEOF
13948 /* confdefs.h. */
13949 _ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h. */
13953 #include <$ac_header>
13954 _ACEOF
13955 if { (ac_try="$ac_cpp conftest.$ac_ext"
13956 case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13959 esac
13960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13962 ac_status=$?
13963 grep -v '^ *+' conftest.er1 >conftest.err
13964 rm -f conftest.er1
13965 cat conftest.err >&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } >/dev/null && {
13968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13969 test ! -s conftest.err
13970 }; then
13971 ac_header_preproc=yes
13972 else
13973 echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13975
13976 ac_header_preproc=no
13977 fi
13978
13979 rm -f conftest.err conftest.$ac_ext
13980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13981 echo "${ECHO_T}$ac_header_preproc" >&6; }
13982
13983 # So? What about this header?
13984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13985 yes:no: )
13986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13990 ac_header_preproc=yes
13991 ;;
13992 no:yes:* )
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14005
14006 ;;
14007 esac
14008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14011 echo $ECHO_N "(cached) $ECHO_C" >&6
14012 else
14013 eval "$as_ac_Header=\$ac_header_preproc"
14014 fi
14015 ac_res=`eval echo '${'$as_ac_Header'}'`
14016 { echo "$as_me:$LINENO: result: $ac_res" >&5
14017 echo "${ECHO_T}$ac_res" >&6; }
14018
14019 fi
14020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14021 cat >>confdefs.h <<_ACEOF
14022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14023 _ACEOF
14024
14025 fi
14026
14027 done
14028
14029 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14030 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14031 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14032 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14034 else
14035 ac_check_lib_save_LIBS=$LIBS
14036 LIBS="-lpng -lz -lm $LIBS"
14037 cat >conftest.$ac_ext <<_ACEOF
14038 /* confdefs.h. */
14039 _ACEOF
14040 cat confdefs.h >>conftest.$ac_ext
14041 cat >>conftest.$ac_ext <<_ACEOF
14042 /* end confdefs.h. */
14043
14044 /* Override any GCC internal prototype to avoid an error.
14045 Use char because int might match the return type of a GCC
14046 builtin and then its argument prototype would still apply. */
14047 #ifdef __cplusplus
14048 extern "C"
14049 #endif
14050 char png_get_channels ();
14051 int
14052 main ()
14053 {
14054 return png_get_channels ();
14055 ;
14056 return 0;
14057 }
14058 _ACEOF
14059 rm -f conftest.$ac_objext conftest$ac_exeext
14060 if { (ac_try="$ac_link"
14061 case "(($ac_try" in
14062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14063 *) ac_try_echo=$ac_try;;
14064 esac
14065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14066 (eval "$ac_link") 2>conftest.er1
14067 ac_status=$?
14068 grep -v '^ *+' conftest.er1 >conftest.err
14069 rm -f conftest.er1
14070 cat conftest.err >&5
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); } && {
14073 test -z "$ac_c_werror_flag" ||
14074 test ! -s conftest.err
14075 } && test -s conftest$ac_exeext &&
14076 $as_test_x conftest$ac_exeext; then
14077 ac_cv_lib_png_png_get_channels=yes
14078 else
14079 echo "$as_me: failed program was:" >&5
14080 sed 's/^/| /' conftest.$ac_ext >&5
14081
14082 ac_cv_lib_png_png_get_channels=no
14083 fi
14084
14085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14086 conftest$ac_exeext conftest.$ac_ext
14087 LIBS=$ac_check_lib_save_LIBS
14088 fi
14089 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14090 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14091 if test $ac_cv_lib_png_png_get_channels = yes; then
14092 HAVE_PNG=yes
14093 fi
14094
14095 fi
14096 fi
14097
14098 if test "${HAVE_PNG}" = "yes"; then
14099
14100 cat >>confdefs.h <<\_ACEOF
14101 #define HAVE_PNG 1
14102 _ACEOF
14103
14104 fi
14105 fi
14106
14107 ### Use -ltiff if available, unless `--with-tiff=no'.
14108 HAVE_TIFF=no
14109 if test "${HAVE_X11}" = "yes"; then
14110 if test "${with_tiff}" != "no"; then
14111 if test "${ac_cv_header_tiffio_h+set}" = set; then
14112 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14113 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14114 if test "${ac_cv_header_tiffio_h+set}" = set; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14116 fi
14117 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14118 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14119 else
14120 # Is the header compilable?
14121 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14122 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14123 cat >conftest.$ac_ext <<_ACEOF
14124 /* confdefs.h. */
14125 _ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h. */
14129 $ac_includes_default
14130 #include <tiffio.h>
14131 _ACEOF
14132 rm -f conftest.$ac_objext
14133 if { (ac_try="$ac_compile"
14134 case "(($ac_try" in
14135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136 *) ac_try_echo=$ac_try;;
14137 esac
14138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14139 (eval "$ac_compile") 2>conftest.er1
14140 ac_status=$?
14141 grep -v '^ *+' conftest.er1 >conftest.err
14142 rm -f conftest.er1
14143 cat conftest.err >&5
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } && {
14146 test -z "$ac_c_werror_flag" ||
14147 test ! -s conftest.err
14148 } && test -s conftest.$ac_objext; then
14149 ac_header_compiler=yes
14150 else
14151 echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.$ac_ext >&5
14153
14154 ac_header_compiler=no
14155 fi
14156
14157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14159 echo "${ECHO_T}$ac_header_compiler" >&6; }
14160
14161 # Is the header present?
14162 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14163 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14164 cat >conftest.$ac_ext <<_ACEOF
14165 /* confdefs.h. */
14166 _ACEOF
14167 cat confdefs.h >>conftest.$ac_ext
14168 cat >>conftest.$ac_ext <<_ACEOF
14169 /* end confdefs.h. */
14170 #include <tiffio.h>
14171 _ACEOF
14172 if { (ac_try="$ac_cpp conftest.$ac_ext"
14173 case "(($ac_try" in
14174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14175 *) ac_try_echo=$ac_try;;
14176 esac
14177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14179 ac_status=$?
14180 grep -v '^ *+' conftest.er1 >conftest.err
14181 rm -f conftest.er1
14182 cat conftest.err >&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } >/dev/null && {
14185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14186 test ! -s conftest.err
14187 }; then
14188 ac_header_preproc=yes
14189 else
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14192
14193 ac_header_preproc=no
14194 fi
14195
14196 rm -f conftest.err conftest.$ac_ext
14197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14198 echo "${ECHO_T}$ac_header_preproc" >&6; }
14199
14200 # So? What about this header?
14201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14202 yes:no: )
14203 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14204 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14205 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14206 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14207 ac_header_preproc=yes
14208 ;;
14209 no:yes:* )
14210 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14211 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14212 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14213 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14214 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14215 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14216 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14217 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14218 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14219 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14220 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14221 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14222
14223 ;;
14224 esac
14225 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14226 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14227 if test "${ac_cv_header_tiffio_h+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14229 else
14230 ac_cv_header_tiffio_h=$ac_header_preproc
14231 fi
14232 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14233 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14234
14235 fi
14236 if test $ac_cv_header_tiffio_h = yes; then
14237 tifflibs="-lz -lm"
14238 # At least one tiff package requires the jpeg library.
14239 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14240 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14241 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14242 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14244 else
14245 ac_check_lib_save_LIBS=$LIBS
14246 LIBS="-ltiff $tifflibs $LIBS"
14247 cat >conftest.$ac_ext <<_ACEOF
14248 /* confdefs.h. */
14249 _ACEOF
14250 cat confdefs.h >>conftest.$ac_ext
14251 cat >>conftest.$ac_ext <<_ACEOF
14252 /* end confdefs.h. */
14253
14254 /* Override any GCC internal prototype to avoid an error.
14255 Use char because int might match the return type of a GCC
14256 builtin and then its argument prototype would still apply. */
14257 #ifdef __cplusplus
14258 extern "C"
14259 #endif
14260 char TIFFGetVersion ();
14261 int
14262 main ()
14263 {
14264 return TIFFGetVersion ();
14265 ;
14266 return 0;
14267 }
14268 _ACEOF
14269 rm -f conftest.$ac_objext conftest$ac_exeext
14270 if { (ac_try="$ac_link"
14271 case "(($ac_try" in
14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273 *) ac_try_echo=$ac_try;;
14274 esac
14275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276 (eval "$ac_link") 2>conftest.er1
14277 ac_status=$?
14278 grep -v '^ *+' conftest.er1 >conftest.err
14279 rm -f conftest.er1
14280 cat conftest.err >&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); } && {
14283 test -z "$ac_c_werror_flag" ||
14284 test ! -s conftest.err
14285 } && test -s conftest$ac_exeext &&
14286 $as_test_x conftest$ac_exeext; then
14287 ac_cv_lib_tiff_TIFFGetVersion=yes
14288 else
14289 echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14291
14292 ac_cv_lib_tiff_TIFFGetVersion=no
14293 fi
14294
14295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14296 conftest$ac_exeext conftest.$ac_ext
14297 LIBS=$ac_check_lib_save_LIBS
14298 fi
14299 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14300 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14301 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14302 HAVE_TIFF=yes
14303 fi
14304
14305 fi
14306
14307
14308 fi
14309
14310 if test "${HAVE_TIFF}" = "yes"; then
14311
14312 cat >>confdefs.h <<\_ACEOF
14313 #define HAVE_TIFF 1
14314 _ACEOF
14315
14316 fi
14317 fi
14318
14319 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14320 HAVE_GIF=no
14321 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14322 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14323 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14324 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14325 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14326 echo $ECHO_N "(cached) $ECHO_C" >&6
14327 fi
14328 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14329 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14330 else
14331 # Is the header compilable?
14332 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14333 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14334 cat >conftest.$ac_ext <<_ACEOF
14335 /* confdefs.h. */
14336 _ACEOF
14337 cat confdefs.h >>conftest.$ac_ext
14338 cat >>conftest.$ac_ext <<_ACEOF
14339 /* end confdefs.h. */
14340 $ac_includes_default
14341 #include <gif_lib.h>
14342 _ACEOF
14343 rm -f conftest.$ac_objext
14344 if { (ac_try="$ac_compile"
14345 case "(($ac_try" in
14346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347 *) ac_try_echo=$ac_try;;
14348 esac
14349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350 (eval "$ac_compile") 2>conftest.er1
14351 ac_status=$?
14352 grep -v '^ *+' conftest.er1 >conftest.err
14353 rm -f conftest.er1
14354 cat conftest.err >&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); } && {
14357 test -z "$ac_c_werror_flag" ||
14358 test ! -s conftest.err
14359 } && test -s conftest.$ac_objext; then
14360 ac_header_compiler=yes
14361 else
14362 echo "$as_me: failed program was:" >&5
14363 sed 's/^/| /' conftest.$ac_ext >&5
14364
14365 ac_header_compiler=no
14366 fi
14367
14368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14370 echo "${ECHO_T}$ac_header_compiler" >&6; }
14371
14372 # Is the header present?
14373 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14374 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14375 cat >conftest.$ac_ext <<_ACEOF
14376 /* confdefs.h. */
14377 _ACEOF
14378 cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h. */
14381 #include <gif_lib.h>
14382 _ACEOF
14383 if { (ac_try="$ac_cpp conftest.$ac_ext"
14384 case "(($ac_try" in
14385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14386 *) ac_try_echo=$ac_try;;
14387 esac
14388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14390 ac_status=$?
14391 grep -v '^ *+' conftest.er1 >conftest.err
14392 rm -f conftest.er1
14393 cat conftest.err >&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); } >/dev/null && {
14396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14397 test ! -s conftest.err
14398 }; then
14399 ac_header_preproc=yes
14400 else
14401 echo "$as_me: failed program was:" >&5
14402 sed 's/^/| /' conftest.$ac_ext >&5
14403
14404 ac_header_preproc=no
14405 fi
14406
14407 rm -f conftest.err conftest.$ac_ext
14408 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14409 echo "${ECHO_T}$ac_header_preproc" >&6; }
14410
14411 # So? What about this header?
14412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14413 yes:no: )
14414 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14415 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14416 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14417 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14418 ac_header_preproc=yes
14419 ;;
14420 no:yes:* )
14421 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14422 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14423 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14424 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14425 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14426 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14427 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14428 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14429 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14430 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14431 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14432 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14433
14434 ;;
14435 esac
14436 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14437 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14438 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14439 echo $ECHO_N "(cached) $ECHO_C" >&6
14440 else
14441 ac_cv_header_gif_lib_h=$ac_header_preproc
14442 fi
14443 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14444 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14445
14446 fi
14447 if test $ac_cv_header_gif_lib_h = yes; then
14448 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14449 # Earlier versions can crash Emacs.
14450 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14451 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14452 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14454 else
14455 ac_check_lib_save_LIBS=$LIBS
14456 LIBS="-lgif $LIBS"
14457 cat >conftest.$ac_ext <<_ACEOF
14458 /* confdefs.h. */
14459 _ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14463
14464 /* Override any GCC internal prototype to avoid an error.
14465 Use char because int might match the return type of a GCC
14466 builtin and then its argument prototype would still apply. */
14467 #ifdef __cplusplus
14468 extern "C"
14469 #endif
14470 char EGifPutExtensionLast ();
14471 int
14472 main ()
14473 {
14474 return EGifPutExtensionLast ();
14475 ;
14476 return 0;
14477 }
14478 _ACEOF
14479 rm -f conftest.$ac_objext conftest$ac_exeext
14480 if { (ac_try="$ac_link"
14481 case "(($ac_try" in
14482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14484 esac
14485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486 (eval "$ac_link") 2>conftest.er1
14487 ac_status=$?
14488 grep -v '^ *+' conftest.er1 >conftest.err
14489 rm -f conftest.er1
14490 cat conftest.err >&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); } && {
14493 test -z "$ac_c_werror_flag" ||
14494 test ! -s conftest.err
14495 } && test -s conftest$ac_exeext &&
14496 $as_test_x conftest$ac_exeext; then
14497 ac_cv_lib_gif_EGifPutExtensionLast=yes
14498 else
14499 echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14501
14502 ac_cv_lib_gif_EGifPutExtensionLast=no
14503 fi
14504
14505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14506 conftest$ac_exeext conftest.$ac_ext
14507 LIBS=$ac_check_lib_save_LIBS
14508 fi
14509 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14510 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14511 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14512 HAVE_GIF=yes
14513 else
14514 try_libungif=yes
14515 fi
14516
14517 fi
14518
14519
14520
14521 if test "$HAVE_GIF" = yes; then
14522 ac_gif_lib_name="-lgif"
14523 fi
14524
14525 # If gif_lib.h but no libgif, try libungif.
14526 if test x"$try_libungif" = xyes; then
14527 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14528 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14529 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14530 echo $ECHO_N "(cached) $ECHO_C" >&6
14531 else
14532 ac_check_lib_save_LIBS=$LIBS
14533 LIBS="-lungif $LIBS"
14534 cat >conftest.$ac_ext <<_ACEOF
14535 /* confdefs.h. */
14536 _ACEOF
14537 cat confdefs.h >>conftest.$ac_ext
14538 cat >>conftest.$ac_ext <<_ACEOF
14539 /* end confdefs.h. */
14540
14541 /* Override any GCC internal prototype to avoid an error.
14542 Use char because int might match the return type of a GCC
14543 builtin and then its argument prototype would still apply. */
14544 #ifdef __cplusplus
14545 extern "C"
14546 #endif
14547 char EGifPutExtensionLast ();
14548 int
14549 main ()
14550 {
14551 return EGifPutExtensionLast ();
14552 ;
14553 return 0;
14554 }
14555 _ACEOF
14556 rm -f conftest.$ac_objext conftest$ac_exeext
14557 if { (ac_try="$ac_link"
14558 case "(($ac_try" in
14559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14560 *) ac_try_echo=$ac_try;;
14561 esac
14562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14563 (eval "$ac_link") 2>conftest.er1
14564 ac_status=$?
14565 grep -v '^ *+' conftest.er1 >conftest.err
14566 rm -f conftest.er1
14567 cat conftest.err >&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); } && {
14570 test -z "$ac_c_werror_flag" ||
14571 test ! -s conftest.err
14572 } && test -s conftest$ac_exeext &&
14573 $as_test_x conftest$ac_exeext; then
14574 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14575 else
14576 echo "$as_me: failed program was:" >&5
14577 sed 's/^/| /' conftest.$ac_ext >&5
14578
14579 ac_cv_lib_ungif_EGifPutExtensionLast=no
14580 fi
14581
14582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14583 conftest$ac_exeext conftest.$ac_ext
14584 LIBS=$ac_check_lib_save_LIBS
14585 fi
14586 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14587 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14588 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14589 HAVE_GIF=yes
14590 fi
14591
14592
14593 if test "$HAVE_GIF" = yes; then
14594
14595 cat >>confdefs.h <<\_ACEOF
14596 #define LIBGIF -lungif
14597 _ACEOF
14598
14599 ac_gif_lib_name="-lungif"
14600 fi
14601 fi
14602
14603 if test "${HAVE_GIF}" = "yes"; then
14604
14605 cat >>confdefs.h <<\_ACEOF
14606 #define HAVE_GIF 1
14607 _ACEOF
14608
14609 fi
14610 fi
14611
14612 if test "${HAVE_X11}" = "yes"; then
14613 MISSING=""
14614 WITH_NO=""
14615 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14616 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14617 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14618 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14619 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14620 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14621 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14622 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14623 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14624 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14625
14626 if test "X${MISSING}" != X; then
14627 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14628 $MISSING
14629 Maybe some development libraries/packages are missing?
14630 If you don't want to link with them give
14631 $WITH_NO
14632 as options to configure" >&5
14633 echo "$as_me: error: The following required libraries were not found:
14634 $MISSING
14635 Maybe some development libraries/packages are missing?
14636 If you don't want to link with them give
14637 $WITH_NO
14638 as options to configure" >&2;}
14639 { (exit 1); exit 1; }; }
14640 fi
14641 fi
14642
14643 ### Use -lgpm if available, unless `--with-gpm=no'.
14644 HAVE_GPM=no
14645 if test "${with_gpm}" != "no"; then
14646 if test "${ac_cv_header_gpm_h+set}" = set; then
14647 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14648 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14649 if test "${ac_cv_header_gpm_h+set}" = set; then
14650 echo $ECHO_N "(cached) $ECHO_C" >&6
14651 fi
14652 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14653 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14654 else
14655 # Is the header compilable?
14656 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14657 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14658 cat >conftest.$ac_ext <<_ACEOF
14659 /* confdefs.h. */
14660 _ACEOF
14661 cat confdefs.h >>conftest.$ac_ext
14662 cat >>conftest.$ac_ext <<_ACEOF
14663 /* end confdefs.h. */
14664 $ac_includes_default
14665 #include <gpm.h>
14666 _ACEOF
14667 rm -f conftest.$ac_objext
14668 if { (ac_try="$ac_compile"
14669 case "(($ac_try" in
14670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14671 *) ac_try_echo=$ac_try;;
14672 esac
14673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14674 (eval "$ac_compile") 2>conftest.er1
14675 ac_status=$?
14676 grep -v '^ *+' conftest.er1 >conftest.err
14677 rm -f conftest.er1
14678 cat conftest.err >&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } && {
14681 test -z "$ac_c_werror_flag" ||
14682 test ! -s conftest.err
14683 } && test -s conftest.$ac_objext; then
14684 ac_header_compiler=yes
14685 else
14686 echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14688
14689 ac_header_compiler=no
14690 fi
14691
14692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14694 echo "${ECHO_T}$ac_header_compiler" >&6; }
14695
14696 # Is the header present?
14697 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14698 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14699 cat >conftest.$ac_ext <<_ACEOF
14700 /* confdefs.h. */
14701 _ACEOF
14702 cat confdefs.h >>conftest.$ac_ext
14703 cat >>conftest.$ac_ext <<_ACEOF
14704 /* end confdefs.h. */
14705 #include <gpm.h>
14706 _ACEOF
14707 if { (ac_try="$ac_cpp conftest.$ac_ext"
14708 case "(($ac_try" in
14709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14710 *) ac_try_echo=$ac_try;;
14711 esac
14712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14714 ac_status=$?
14715 grep -v '^ *+' conftest.er1 >conftest.err
14716 rm -f conftest.er1
14717 cat conftest.err >&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); } >/dev/null && {
14720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14721 test ! -s conftest.err
14722 }; then
14723 ac_header_preproc=yes
14724 else
14725 echo "$as_me: failed program was:" >&5
14726 sed 's/^/| /' conftest.$ac_ext >&5
14727
14728 ac_header_preproc=no
14729 fi
14730
14731 rm -f conftest.err conftest.$ac_ext
14732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14733 echo "${ECHO_T}$ac_header_preproc" >&6; }
14734
14735 # So? What about this header?
14736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14737 yes:no: )
14738 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14739 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14740 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14741 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14742 ac_header_preproc=yes
14743 ;;
14744 no:yes:* )
14745 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14746 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14747 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14748 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14749 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14750 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14751 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14752 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14753 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14754 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14755 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14756 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14757
14758 ;;
14759 esac
14760 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14761 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14762 if test "${ac_cv_header_gpm_h+set}" = set; then
14763 echo $ECHO_N "(cached) $ECHO_C" >&6
14764 else
14765 ac_cv_header_gpm_h=$ac_header_preproc
14766 fi
14767 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14768 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14769
14770 fi
14771 if test $ac_cv_header_gpm_h = yes; then
14772 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14773 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14774 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14775 echo $ECHO_N "(cached) $ECHO_C" >&6
14776 else
14777 ac_check_lib_save_LIBS=$LIBS
14778 LIBS="-lgpm $LIBS"
14779 cat >conftest.$ac_ext <<_ACEOF
14780 /* confdefs.h. */
14781 _ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h. */
14785
14786 /* Override any GCC internal prototype to avoid an error.
14787 Use char because int might match the return type of a GCC
14788 builtin and then its argument prototype would still apply. */
14789 #ifdef __cplusplus
14790 extern "C"
14791 #endif
14792 char Gpm_Open ();
14793 int
14794 main ()
14795 {
14796 return Gpm_Open ();
14797 ;
14798 return 0;
14799 }
14800 _ACEOF
14801 rm -f conftest.$ac_objext conftest$ac_exeext
14802 if { (ac_try="$ac_link"
14803 case "(($ac_try" in
14804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14805 *) ac_try_echo=$ac_try;;
14806 esac
14807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14808 (eval "$ac_link") 2>conftest.er1
14809 ac_status=$?
14810 grep -v '^ *+' conftest.er1 >conftest.err
14811 rm -f conftest.er1
14812 cat conftest.err >&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } && {
14815 test -z "$ac_c_werror_flag" ||
14816 test ! -s conftest.err
14817 } && test -s conftest$ac_exeext &&
14818 $as_test_x conftest$ac_exeext; then
14819 ac_cv_lib_gpm_Gpm_Open=yes
14820 else
14821 echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14823
14824 ac_cv_lib_gpm_Gpm_Open=no
14825 fi
14826
14827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14828 conftest$ac_exeext conftest.$ac_ext
14829 LIBS=$ac_check_lib_save_LIBS
14830 fi
14831 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14832 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14833 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14834 HAVE_GPM=yes
14835 fi
14836
14837 fi
14838
14839
14840 fi
14841
14842 if test "${HAVE_GPM}" = "yes"; then
14843
14844 cat >>confdefs.h <<\_ACEOF
14845 #define HAVE_GPM 1
14846 _ACEOF
14847
14848 fi
14849
14850 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14851 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14852 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14853 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14854 echo $ECHO_N "(cached) $ECHO_C" >&6
14855 fi
14856 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14857 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14858 else
14859 # Is the header compilable?
14860 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14861 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14862 cat >conftest.$ac_ext <<_ACEOF
14863 /* confdefs.h. */
14864 _ACEOF
14865 cat confdefs.h >>conftest.$ac_ext
14866 cat >>conftest.$ac_ext <<_ACEOF
14867 /* end confdefs.h. */
14868 $ac_includes_default
14869 #include <malloc/malloc.h>
14870 _ACEOF
14871 rm -f conftest.$ac_objext
14872 if { (ac_try="$ac_compile"
14873 case "(($ac_try" in
14874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14875 *) ac_try_echo=$ac_try;;
14876 esac
14877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14878 (eval "$ac_compile") 2>conftest.er1
14879 ac_status=$?
14880 grep -v '^ *+' conftest.er1 >conftest.err
14881 rm -f conftest.er1
14882 cat conftest.err >&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } && {
14885 test -z "$ac_c_werror_flag" ||
14886 test ! -s conftest.err
14887 } && test -s conftest.$ac_objext; then
14888 ac_header_compiler=yes
14889 else
14890 echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14892
14893 ac_header_compiler=no
14894 fi
14895
14896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14898 echo "${ECHO_T}$ac_header_compiler" >&6; }
14899
14900 # Is the header present?
14901 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14902 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14903 cat >conftest.$ac_ext <<_ACEOF
14904 /* confdefs.h. */
14905 _ACEOF
14906 cat confdefs.h >>conftest.$ac_ext
14907 cat >>conftest.$ac_ext <<_ACEOF
14908 /* end confdefs.h. */
14909 #include <malloc/malloc.h>
14910 _ACEOF
14911 if { (ac_try="$ac_cpp conftest.$ac_ext"
14912 case "(($ac_try" in
14913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14914 *) ac_try_echo=$ac_try;;
14915 esac
14916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14918 ac_status=$?
14919 grep -v '^ *+' conftest.er1 >conftest.err
14920 rm -f conftest.er1
14921 cat conftest.err >&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); } >/dev/null && {
14924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14925 test ! -s conftest.err
14926 }; then
14927 ac_header_preproc=yes
14928 else
14929 echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.$ac_ext >&5
14931
14932 ac_header_preproc=no
14933 fi
14934
14935 rm -f conftest.err conftest.$ac_ext
14936 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14937 echo "${ECHO_T}$ac_header_preproc" >&6; }
14938
14939 # So? What about this header?
14940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14941 yes:no: )
14942 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14943 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14944 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14945 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14946 ac_header_preproc=yes
14947 ;;
14948 no:yes:* )
14949 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14950 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14951 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14952 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14953 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14954 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14955 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14956 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14957 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14958 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14959 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14960 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14961
14962 ;;
14963 esac
14964 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14965 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14966 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14967 echo $ECHO_N "(cached) $ECHO_C" >&6
14968 else
14969 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14970 fi
14971 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14972 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14973
14974 fi
14975 if test $ac_cv_header_malloc_malloc_h = yes; then
14976
14977 cat >>confdefs.h <<\_ACEOF
14978 #define HAVE_MALLOC_MALLOC_H 1
14979 _ACEOF
14980
14981 fi
14982
14983
14984
14985 ### Use NeXTstep API to implement GUI.
14986 if test "${HAVE_NS}" = "yes"; then
14987
14988 cat >>confdefs.h <<\_ACEOF
14989 #define HAVE_NS 1
14990 _ACEOF
14991
14992 if test "${NS_IMPL_COCOA}" = "yes"; then
14993
14994 cat >>confdefs.h <<\_ACEOF
14995 #define NS_IMPL_COCOA 1
14996 _ACEOF
14997
14998 GNU_OBJC_CFLAGS=
14999 LIB_SRC_EXTRA_INSTALLABLES=mac-fix-env
15000 fi
15001 if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
15002
15003 cat >>confdefs.h <<\_ACEOF
15004 #define COCOA_EXPERIMENTAL_CTRL_G 1
15005 _ACEOF
15006
15007 fi
15008 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15009
15010 cat >>confdefs.h <<\_ACEOF
15011 #define NS_IMPL_GNUSTEP 1
15012 _ACEOF
15013
15014 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15015 fi
15016 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15017
15018 cat >>confdefs.h <<\_ACEOF
15019 #define NS_HAVE_NSINTEGER 1
15020 _ACEOF
15021
15022 fi
15023 # We also have mouse menus.
15024 HAVE_MENUS=yes
15025 fi
15026
15027
15028 ### Use session management (-lSM -lICE) if available
15029 HAVE_X_SM=no
15030 if test "${HAVE_X11}" = "yes"; then
15031 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15032 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15033 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15034 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15035 echo $ECHO_N "(cached) $ECHO_C" >&6
15036 fi
15037 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15038 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15039 else
15040 # Is the header compilable?
15041 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15042 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15043 cat >conftest.$ac_ext <<_ACEOF
15044 /* confdefs.h. */
15045 _ACEOF
15046 cat confdefs.h >>conftest.$ac_ext
15047 cat >>conftest.$ac_ext <<_ACEOF
15048 /* end confdefs.h. */
15049 $ac_includes_default
15050 #include <X11/SM/SMlib.h>
15051 _ACEOF
15052 rm -f conftest.$ac_objext
15053 if { (ac_try="$ac_compile"
15054 case "(($ac_try" in
15055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15056 *) ac_try_echo=$ac_try;;
15057 esac
15058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15059 (eval "$ac_compile") 2>conftest.er1
15060 ac_status=$?
15061 grep -v '^ *+' conftest.er1 >conftest.err
15062 rm -f conftest.er1
15063 cat conftest.err >&5
15064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15065 (exit $ac_status); } && {
15066 test -z "$ac_c_werror_flag" ||
15067 test ! -s conftest.err
15068 } && test -s conftest.$ac_objext; then
15069 ac_header_compiler=yes
15070 else
15071 echo "$as_me: failed program was:" >&5
15072 sed 's/^/| /' conftest.$ac_ext >&5
15073
15074 ac_header_compiler=no
15075 fi
15076
15077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15078 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15079 echo "${ECHO_T}$ac_header_compiler" >&6; }
15080
15081 # Is the header present?
15082 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15083 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15084 cat >conftest.$ac_ext <<_ACEOF
15085 /* confdefs.h. */
15086 _ACEOF
15087 cat confdefs.h >>conftest.$ac_ext
15088 cat >>conftest.$ac_ext <<_ACEOF
15089 /* end confdefs.h. */
15090 #include <X11/SM/SMlib.h>
15091 _ACEOF
15092 if { (ac_try="$ac_cpp conftest.$ac_ext"
15093 case "(($ac_try" in
15094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095 *) ac_try_echo=$ac_try;;
15096 esac
15097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15099 ac_status=$?
15100 grep -v '^ *+' conftest.er1 >conftest.err
15101 rm -f conftest.er1
15102 cat conftest.err >&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); } >/dev/null && {
15105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15106 test ! -s conftest.err
15107 }; then
15108 ac_header_preproc=yes
15109 else
15110 echo "$as_me: failed program was:" >&5
15111 sed 's/^/| /' conftest.$ac_ext >&5
15112
15113 ac_header_preproc=no
15114 fi
15115
15116 rm -f conftest.err conftest.$ac_ext
15117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15118 echo "${ECHO_T}$ac_header_preproc" >&6; }
15119
15120 # So? What about this header?
15121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15122 yes:no: )
15123 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15124 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15125 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15126 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15127 ac_header_preproc=yes
15128 ;;
15129 no:yes:* )
15130 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15131 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15132 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15133 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15134 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15135 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15136 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15137 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15139 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15140 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15141 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15142
15143 ;;
15144 esac
15145 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15146 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15147 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15148 echo $ECHO_N "(cached) $ECHO_C" >&6
15149 else
15150 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15151 fi
15152 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15153 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15154
15155 fi
15156 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15157 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15158 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15159 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15160 echo $ECHO_N "(cached) $ECHO_C" >&6
15161 else
15162 ac_check_lib_save_LIBS=$LIBS
15163 LIBS="-lSM -lICE $LIBS"
15164 cat >conftest.$ac_ext <<_ACEOF
15165 /* confdefs.h. */
15166 _ACEOF
15167 cat confdefs.h >>conftest.$ac_ext
15168 cat >>conftest.$ac_ext <<_ACEOF
15169 /* end confdefs.h. */
15170
15171 /* Override any GCC internal prototype to avoid an error.
15172 Use char because int might match the return type of a GCC
15173 builtin and then its argument prototype would still apply. */
15174 #ifdef __cplusplus
15175 extern "C"
15176 #endif
15177 char SmcOpenConnection ();
15178 int
15179 main ()
15180 {
15181 return SmcOpenConnection ();
15182 ;
15183 return 0;
15184 }
15185 _ACEOF
15186 rm -f conftest.$ac_objext conftest$ac_exeext
15187 if { (ac_try="$ac_link"
15188 case "(($ac_try" in
15189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190 *) ac_try_echo=$ac_try;;
15191 esac
15192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193 (eval "$ac_link") 2>conftest.er1
15194 ac_status=$?
15195 grep -v '^ *+' conftest.er1 >conftest.err
15196 rm -f conftest.er1
15197 cat conftest.err >&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } && {
15200 test -z "$ac_c_werror_flag" ||
15201 test ! -s conftest.err
15202 } && test -s conftest$ac_exeext &&
15203 $as_test_x conftest$ac_exeext; then
15204 ac_cv_lib_SM_SmcOpenConnection=yes
15205 else
15206 echo "$as_me: failed program was:" >&5
15207 sed 's/^/| /' conftest.$ac_ext >&5
15208
15209 ac_cv_lib_SM_SmcOpenConnection=no
15210 fi
15211
15212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15213 conftest$ac_exeext conftest.$ac_ext
15214 LIBS=$ac_check_lib_save_LIBS
15215 fi
15216 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15217 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15218 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15219 HAVE_X_SM=yes
15220 fi
15221
15222 fi
15223
15224
15225
15226 if test "${HAVE_X_SM}" = "yes"; then
15227
15228 cat >>confdefs.h <<\_ACEOF
15229 #define HAVE_X_SM 1
15230 _ACEOF
15231
15232 case "$LIBS" in
15233 *-lSM*) ;;
15234 *) LIBS="-lSM -lICE $LIBS" ;;
15235 esac
15236 fi
15237 fi
15238
15239 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15240 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15241 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15242 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15243 echo $ECHO_N "(cached) $ECHO_C" >&6
15244 else
15245 cat >conftest.$ac_ext <<_ACEOF
15246 /* confdefs.h. */
15247 _ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15251 #include <netdb.h>
15252 int
15253 main ()
15254 {
15255 return h_errno;
15256 ;
15257 return 0;
15258 }
15259 _ACEOF
15260 rm -f conftest.$ac_objext conftest$ac_exeext
15261 if { (ac_try="$ac_link"
15262 case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15265 esac
15266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267 (eval "$ac_link") 2>conftest.er1
15268 ac_status=$?
15269 grep -v '^ *+' conftest.er1 >conftest.err
15270 rm -f conftest.er1
15271 cat conftest.err >&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); } && {
15274 test -z "$ac_c_werror_flag" ||
15275 test ! -s conftest.err
15276 } && test -s conftest$ac_exeext &&
15277 $as_test_x conftest$ac_exeext; then
15278 emacs_cv_netdb_declares_h_errno=yes
15279 else
15280 echo "$as_me: failed program was:" >&5
15281 sed 's/^/| /' conftest.$ac_ext >&5
15282
15283 emacs_cv_netdb_declares_h_errno=no
15284 fi
15285
15286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15287 conftest$ac_exeext conftest.$ac_ext
15288 fi
15289 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15290 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15291 if test $emacs_cv_netdb_declares_h_errno = yes; then
15292
15293 cat >>confdefs.h <<\_ACEOF
15294 #define HAVE_H_ERRNO 1
15295 _ACEOF
15296
15297 fi
15298
15299 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15300 # for constant arguments. Useless!
15301 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15302 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15303 if test "${ac_cv_working_alloca_h+set}" = set; then
15304 echo $ECHO_N "(cached) $ECHO_C" >&6
15305 else
15306 cat >conftest.$ac_ext <<_ACEOF
15307 /* confdefs.h. */
15308 _ACEOF
15309 cat confdefs.h >>conftest.$ac_ext
15310 cat >>conftest.$ac_ext <<_ACEOF
15311 /* end confdefs.h. */
15312 #include <alloca.h>
15313 int
15314 main ()
15315 {
15316 char *p = (char *) alloca (2 * sizeof (int));
15317 if (p) return 0;
15318 ;
15319 return 0;
15320 }
15321 _ACEOF
15322 rm -f conftest.$ac_objext conftest$ac_exeext
15323 if { (ac_try="$ac_link"
15324 case "(($ac_try" in
15325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15326 *) ac_try_echo=$ac_try;;
15327 esac
15328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15329 (eval "$ac_link") 2>conftest.er1
15330 ac_status=$?
15331 grep -v '^ *+' conftest.er1 >conftest.err
15332 rm -f conftest.er1
15333 cat conftest.err >&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } && {
15336 test -z "$ac_c_werror_flag" ||
15337 test ! -s conftest.err
15338 } && test -s conftest$ac_exeext &&
15339 $as_test_x conftest$ac_exeext; then
15340 ac_cv_working_alloca_h=yes
15341 else
15342 echo "$as_me: failed program was:" >&5
15343 sed 's/^/| /' conftest.$ac_ext >&5
15344
15345 ac_cv_working_alloca_h=no
15346 fi
15347
15348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15349 conftest$ac_exeext conftest.$ac_ext
15350 fi
15351 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15352 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15353 if test $ac_cv_working_alloca_h = yes; then
15354
15355 cat >>confdefs.h <<\_ACEOF
15356 #define HAVE_ALLOCA_H 1
15357 _ACEOF
15358
15359 fi
15360
15361 { echo "$as_me:$LINENO: checking for alloca" >&5
15362 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15363 if test "${ac_cv_func_alloca_works+set}" = set; then
15364 echo $ECHO_N "(cached) $ECHO_C" >&6
15365 else
15366 cat >conftest.$ac_ext <<_ACEOF
15367 /* confdefs.h. */
15368 _ACEOF
15369 cat confdefs.h >>conftest.$ac_ext
15370 cat >>conftest.$ac_ext <<_ACEOF
15371 /* end confdefs.h. */
15372 #ifdef __GNUC__
15373 # define alloca __builtin_alloca
15374 #else
15375 # ifdef _MSC_VER
15376 # include <malloc.h>
15377 # define alloca _alloca
15378 # else
15379 # ifdef HAVE_ALLOCA_H
15380 # include <alloca.h>
15381 # else
15382 # ifdef _AIX
15383 #pragma alloca
15384 # else
15385 # ifndef alloca /* predefined by HP cc +Olibcalls */
15386 char *alloca ();
15387 # endif
15388 # endif
15389 # endif
15390 # endif
15391 #endif
15392
15393 int
15394 main ()
15395 {
15396 char *p = (char *) alloca (1);
15397 if (p) return 0;
15398 ;
15399 return 0;
15400 }
15401 _ACEOF
15402 rm -f conftest.$ac_objext conftest$ac_exeext
15403 if { (ac_try="$ac_link"
15404 case "(($ac_try" in
15405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15406 *) ac_try_echo=$ac_try;;
15407 esac
15408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15409 (eval "$ac_link") 2>conftest.er1
15410 ac_status=$?
15411 grep -v '^ *+' conftest.er1 >conftest.err
15412 rm -f conftest.er1
15413 cat conftest.err >&5
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); } && {
15416 test -z "$ac_c_werror_flag" ||
15417 test ! -s conftest.err
15418 } && test -s conftest$ac_exeext &&
15419 $as_test_x conftest$ac_exeext; then
15420 ac_cv_func_alloca_works=yes
15421 else
15422 echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15424
15425 ac_cv_func_alloca_works=no
15426 fi
15427
15428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15429 conftest$ac_exeext conftest.$ac_ext
15430 fi
15431 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15432 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15433
15434 if test $ac_cv_func_alloca_works = yes; then
15435
15436 cat >>confdefs.h <<\_ACEOF
15437 #define HAVE_ALLOCA 1
15438 _ACEOF
15439
15440 else
15441 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15442 # that cause trouble. Some versions do not even contain alloca or
15443 # contain a buggy version. If you still want to use their alloca,
15444 # use ar to extract alloca.o from them instead of compiling alloca.c.
15445
15446 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15447
15448 cat >>confdefs.h <<\_ACEOF
15449 #define C_ALLOCA 1
15450 _ACEOF
15451
15452
15453 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15454 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15455 if test "${ac_cv_os_cray+set}" = set; then
15456 echo $ECHO_N "(cached) $ECHO_C" >&6
15457 else
15458 cat >conftest.$ac_ext <<_ACEOF
15459 /* confdefs.h. */
15460 _ACEOF
15461 cat confdefs.h >>conftest.$ac_ext
15462 cat >>conftest.$ac_ext <<_ACEOF
15463 /* end confdefs.h. */
15464 #if defined CRAY && ! defined CRAY2
15465 webecray
15466 #else
15467 wenotbecray
15468 #endif
15469
15470 _ACEOF
15471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15472 $EGREP "webecray" >/dev/null 2>&1; then
15473 ac_cv_os_cray=yes
15474 else
15475 ac_cv_os_cray=no
15476 fi
15477 rm -f conftest*
15478
15479 fi
15480 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15481 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15482 if test $ac_cv_os_cray = yes; then
15483 for ac_func in _getb67 GETB67 getb67; do
15484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15487 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15488 echo $ECHO_N "(cached) $ECHO_C" >&6
15489 else
15490 cat >conftest.$ac_ext <<_ACEOF
15491 /* confdefs.h. */
15492 _ACEOF
15493 cat confdefs.h >>conftest.$ac_ext
15494 cat >>conftest.$ac_ext <<_ACEOF
15495 /* end confdefs.h. */
15496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15498 #define $ac_func innocuous_$ac_func
15499
15500 /* System header to define __stub macros and hopefully few prototypes,
15501 which can conflict with char $ac_func (); below.
15502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15503 <limits.h> exists even on freestanding compilers. */
15504
15505 #ifdef __STDC__
15506 # include <limits.h>
15507 #else
15508 # include <assert.h>
15509 #endif
15510
15511 #undef $ac_func
15512
15513 /* Override any GCC internal prototype to avoid an error.
15514 Use char because int might match the return type of a GCC
15515 builtin and then its argument prototype would still apply. */
15516 #ifdef __cplusplus
15517 extern "C"
15518 #endif
15519 char $ac_func ();
15520 /* The GNU C library defines this for functions which it implements
15521 to always fail with ENOSYS. Some functions are actually named
15522 something starting with __ and the normal name is an alias. */
15523 #if defined __stub_$ac_func || defined __stub___$ac_func
15524 choke me
15525 #endif
15526
15527 int
15528 main ()
15529 {
15530 return $ac_func ();
15531 ;
15532 return 0;
15533 }
15534 _ACEOF
15535 rm -f conftest.$ac_objext conftest$ac_exeext
15536 if { (ac_try="$ac_link"
15537 case "(($ac_try" in
15538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15539 *) ac_try_echo=$ac_try;;
15540 esac
15541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15542 (eval "$ac_link") 2>conftest.er1
15543 ac_status=$?
15544 grep -v '^ *+' conftest.er1 >conftest.err
15545 rm -f conftest.er1
15546 cat conftest.err >&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); } && {
15549 test -z "$ac_c_werror_flag" ||
15550 test ! -s conftest.err
15551 } && test -s conftest$ac_exeext &&
15552 $as_test_x conftest$ac_exeext; then
15553 eval "$as_ac_var=yes"
15554 else
15555 echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15557
15558 eval "$as_ac_var=no"
15559 fi
15560
15561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15562 conftest$ac_exeext conftest.$ac_ext
15563 fi
15564 ac_res=`eval echo '${'$as_ac_var'}'`
15565 { echo "$as_me:$LINENO: result: $ac_res" >&5
15566 echo "${ECHO_T}$ac_res" >&6; }
15567 if test `eval echo '${'$as_ac_var'}'` = yes; then
15568
15569 cat >>confdefs.h <<_ACEOF
15570 #define CRAY_STACKSEG_END $ac_func
15571 _ACEOF
15572
15573 break
15574 fi
15575
15576 done
15577 fi
15578
15579 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15580 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15581 if test "${ac_cv_c_stack_direction+set}" = set; then
15582 echo $ECHO_N "(cached) $ECHO_C" >&6
15583 else
15584 if test "$cross_compiling" = yes; then
15585 ac_cv_c_stack_direction=0
15586 else
15587 cat >conftest.$ac_ext <<_ACEOF
15588 /* confdefs.h. */
15589 _ACEOF
15590 cat confdefs.h >>conftest.$ac_ext
15591 cat >>conftest.$ac_ext <<_ACEOF
15592 /* end confdefs.h. */
15593 $ac_includes_default
15594 int
15595 find_stack_direction ()
15596 {
15597 static char *addr = 0;
15598 auto char dummy;
15599 if (addr == 0)
15600 {
15601 addr = &dummy;
15602 return find_stack_direction ();
15603 }
15604 else
15605 return (&dummy > addr) ? 1 : -1;
15606 }
15607
15608 int
15609 main ()
15610 {
15611 return find_stack_direction () < 0;
15612 }
15613 _ACEOF
15614 rm -f conftest$ac_exeext
15615 if { (ac_try="$ac_link"
15616 case "(($ac_try" in
15617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15618 *) ac_try_echo=$ac_try;;
15619 esac
15620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15621 (eval "$ac_link") 2>&5
15622 ac_status=$?
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15625 { (case "(($ac_try" in
15626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627 *) ac_try_echo=$ac_try;;
15628 esac
15629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630 (eval "$ac_try") 2>&5
15631 ac_status=$?
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; }; then
15634 ac_cv_c_stack_direction=1
15635 else
15636 echo "$as_me: program exited with status $ac_status" >&5
15637 echo "$as_me: failed program was:" >&5
15638 sed 's/^/| /' conftest.$ac_ext >&5
15639
15640 ( exit $ac_status )
15641 ac_cv_c_stack_direction=-1
15642 fi
15643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15644 fi
15645
15646
15647 fi
15648 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15649 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15650
15651 cat >>confdefs.h <<_ACEOF
15652 #define STACK_DIRECTION $ac_cv_c_stack_direction
15653 _ACEOF
15654
15655
15656 fi
15657
15658
15659 if test x"$ac_cv_func_alloca_works" != xyes; then
15660 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15661 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15662 { (exit 1); exit 1; }; }
15663 fi
15664
15665 # fmod, logb, and frexp are found in -lm on most systems.
15666 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15667
15668 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15669 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15670 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15671 echo $ECHO_N "(cached) $ECHO_C" >&6
15672 else
15673 ac_check_lib_save_LIBS=$LIBS
15674 LIBS="-lm $LIBS"
15675 cat >conftest.$ac_ext <<_ACEOF
15676 /* confdefs.h. */
15677 _ACEOF
15678 cat confdefs.h >>conftest.$ac_ext
15679 cat >>conftest.$ac_ext <<_ACEOF
15680 /* end confdefs.h. */
15681
15682 /* Override any GCC internal prototype to avoid an error.
15683 Use char because int might match the return type of a GCC
15684 builtin and then its argument prototype would still apply. */
15685 #ifdef __cplusplus
15686 extern "C"
15687 #endif
15688 char sqrt ();
15689 int
15690 main ()
15691 {
15692 return sqrt ();
15693 ;
15694 return 0;
15695 }
15696 _ACEOF
15697 rm -f conftest.$ac_objext conftest$ac_exeext
15698 if { (ac_try="$ac_link"
15699 case "(($ac_try" in
15700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15701 *) ac_try_echo=$ac_try;;
15702 esac
15703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15704 (eval "$ac_link") 2>conftest.er1
15705 ac_status=$?
15706 grep -v '^ *+' conftest.er1 >conftest.err
15707 rm -f conftest.er1
15708 cat conftest.err >&5
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); } && {
15711 test -z "$ac_c_werror_flag" ||
15712 test ! -s conftest.err
15713 } && test -s conftest$ac_exeext &&
15714 $as_test_x conftest$ac_exeext; then
15715 ac_cv_lib_m_sqrt=yes
15716 else
15717 echo "$as_me: failed program was:" >&5
15718 sed 's/^/| /' conftest.$ac_ext >&5
15719
15720 ac_cv_lib_m_sqrt=no
15721 fi
15722
15723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15724 conftest$ac_exeext conftest.$ac_ext
15725 LIBS=$ac_check_lib_save_LIBS
15726 fi
15727 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15728 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15729 if test $ac_cv_lib_m_sqrt = yes; then
15730 cat >>confdefs.h <<_ACEOF
15731 #define HAVE_LIBM 1
15732 _ACEOF
15733
15734 LIBS="-lm $LIBS"
15735
15736 fi
15737
15738
15739 # Check for mail-locking functions in a "mail" library. Probably this should
15740 # have the same check as for liblockfile below.
15741
15742 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15743 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15744 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15745 echo $ECHO_N "(cached) $ECHO_C" >&6
15746 else
15747 ac_check_lib_save_LIBS=$LIBS
15748 LIBS="-lmail $LIBS"
15749 cat >conftest.$ac_ext <<_ACEOF
15750 /* confdefs.h. */
15751 _ACEOF
15752 cat confdefs.h >>conftest.$ac_ext
15753 cat >>conftest.$ac_ext <<_ACEOF
15754 /* end confdefs.h. */
15755
15756 /* Override any GCC internal prototype to avoid an error.
15757 Use char because int might match the return type of a GCC
15758 builtin and then its argument prototype would still apply. */
15759 #ifdef __cplusplus
15760 extern "C"
15761 #endif
15762 char maillock ();
15763 int
15764 main ()
15765 {
15766 return maillock ();
15767 ;
15768 return 0;
15769 }
15770 _ACEOF
15771 rm -f conftest.$ac_objext conftest$ac_exeext
15772 if { (ac_try="$ac_link"
15773 case "(($ac_try" in
15774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15775 *) ac_try_echo=$ac_try;;
15776 esac
15777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15778 (eval "$ac_link") 2>conftest.er1
15779 ac_status=$?
15780 grep -v '^ *+' conftest.er1 >conftest.err
15781 rm -f conftest.er1
15782 cat conftest.err >&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); } && {
15785 test -z "$ac_c_werror_flag" ||
15786 test ! -s conftest.err
15787 } && test -s conftest$ac_exeext &&
15788 $as_test_x conftest$ac_exeext; then
15789 ac_cv_lib_mail_maillock=yes
15790 else
15791 echo "$as_me: failed program was:" >&5
15792 sed 's/^/| /' conftest.$ac_ext >&5
15793
15794 ac_cv_lib_mail_maillock=no
15795 fi
15796
15797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15798 conftest$ac_exeext conftest.$ac_ext
15799 LIBS=$ac_check_lib_save_LIBS
15800 fi
15801 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15802 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15803 if test $ac_cv_lib_mail_maillock = yes; then
15804 cat >>confdefs.h <<_ACEOF
15805 #define HAVE_LIBMAIL 1
15806 _ACEOF
15807
15808 LIBS="-lmail $LIBS"
15809
15810 fi
15811
15812
15813 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15814 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15815 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15816 echo $ECHO_N "(cached) $ECHO_C" >&6
15817 else
15818 ac_check_lib_save_LIBS=$LIBS
15819 LIBS="-llockfile $LIBS"
15820 cat >conftest.$ac_ext <<_ACEOF
15821 /* confdefs.h. */
15822 _ACEOF
15823 cat confdefs.h >>conftest.$ac_ext
15824 cat >>conftest.$ac_ext <<_ACEOF
15825 /* end confdefs.h. */
15826
15827 /* Override any GCC internal prototype to avoid an error.
15828 Use char because int might match the return type of a GCC
15829 builtin and then its argument prototype would still apply. */
15830 #ifdef __cplusplus
15831 extern "C"
15832 #endif
15833 char maillock ();
15834 int
15835 main ()
15836 {
15837 return maillock ();
15838 ;
15839 return 0;
15840 }
15841 _ACEOF
15842 rm -f conftest.$ac_objext conftest$ac_exeext
15843 if { (ac_try="$ac_link"
15844 case "(($ac_try" in
15845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15846 *) ac_try_echo=$ac_try;;
15847 esac
15848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15849 (eval "$ac_link") 2>conftest.er1
15850 ac_status=$?
15851 grep -v '^ *+' conftest.er1 >conftest.err
15852 rm -f conftest.er1
15853 cat conftest.err >&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); } && {
15856 test -z "$ac_c_werror_flag" ||
15857 test ! -s conftest.err
15858 } && test -s conftest$ac_exeext &&
15859 $as_test_x conftest$ac_exeext; then
15860 ac_cv_lib_lockfile_maillock=yes
15861 else
15862 echo "$as_me: failed program was:" >&5
15863 sed 's/^/| /' conftest.$ac_ext >&5
15864
15865 ac_cv_lib_lockfile_maillock=no
15866 fi
15867
15868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15869 conftest$ac_exeext conftest.$ac_ext
15870 LIBS=$ac_check_lib_save_LIBS
15871 fi
15872 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15873 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15874 if test $ac_cv_lib_lockfile_maillock = yes; then
15875 cat >>confdefs.h <<_ACEOF
15876 #define HAVE_LIBLOCKFILE 1
15877 _ACEOF
15878
15879 LIBS="-llockfile $LIBS"
15880
15881 fi
15882
15883 # If we have the shared liblockfile, assume we must use it for mail
15884 # locking (e.g. Debian). If we couldn't link against liblockfile
15885 # (no liblockfile.a installed), ensure that we don't need to.
15886 if test "$ac_cv_lib_lockfile_maillock" = no; then
15887 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15888 set dummy liblockfile.so; ac_word=$2
15889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15891 if test "${ac_cv_prog_liblockfile+set}" = set; then
15892 echo $ECHO_N "(cached) $ECHO_C" >&6
15893 else
15894 if test -n "$liblockfile"; then
15895 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15896 else
15897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15898 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15899 for as_dir in $as_dummy
15900 do
15901 IFS=$as_save_IFS
15902 test -z "$as_dir" && as_dir=.
15903 for ac_exec_ext in '' $ac_executable_extensions; do
15904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15905 ac_cv_prog_liblockfile="yes"
15906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15907 break 2
15908 fi
15909 done
15910 done
15911 IFS=$as_save_IFS
15912
15913 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15914 fi
15915 fi
15916 liblockfile=$ac_cv_prog_liblockfile
15917 if test -n "$liblockfile"; then
15918 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15919 echo "${ECHO_T}$liblockfile" >&6; }
15920 else
15921 { echo "$as_me:$LINENO: result: no" >&5
15922 echo "${ECHO_T}no" >&6; }
15923 fi
15924
15925
15926 if test $ac_cv_prog_liblockfile = yes; then
15927 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15928 This probably means that movemail could lose mail.
15929 There may be a \`development' package to install containing liblockfile." >&5
15930 echo "$as_me: error: Shared liblockfile found but can't link against it.
15931 This probably means that movemail could lose mail.
15932 There may be a \`development' package to install containing liblockfile." >&2;}
15933 { (exit 1); exit 1; }; }
15934 else :
15935 fi
15936 fi
15937
15938 for ac_func in touchlock
15939 do
15940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15944 echo $ECHO_N "(cached) $ECHO_C" >&6
15945 else
15946 cat >conftest.$ac_ext <<_ACEOF
15947 /* confdefs.h. */
15948 _ACEOF
15949 cat confdefs.h >>conftest.$ac_ext
15950 cat >>conftest.$ac_ext <<_ACEOF
15951 /* end confdefs.h. */
15952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15954 #define $ac_func innocuous_$ac_func
15955
15956 /* System header to define __stub macros and hopefully few prototypes,
15957 which can conflict with char $ac_func (); below.
15958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15959 <limits.h> exists even on freestanding compilers. */
15960
15961 #ifdef __STDC__
15962 # include <limits.h>
15963 #else
15964 # include <assert.h>
15965 #endif
15966
15967 #undef $ac_func
15968
15969 /* Override any GCC internal prototype to avoid an error.
15970 Use char because int might match the return type of a GCC
15971 builtin and then its argument prototype would still apply. */
15972 #ifdef __cplusplus
15973 extern "C"
15974 #endif
15975 char $ac_func ();
15976 /* The GNU C library defines this for functions which it implements
15977 to always fail with ENOSYS. Some functions are actually named
15978 something starting with __ and the normal name is an alias. */
15979 #if defined __stub_$ac_func || defined __stub___$ac_func
15980 choke me
15981 #endif
15982
15983 int
15984 main ()
15985 {
15986 return $ac_func ();
15987 ;
15988 return 0;
15989 }
15990 _ACEOF
15991 rm -f conftest.$ac_objext conftest$ac_exeext
15992 if { (ac_try="$ac_link"
15993 case "(($ac_try" in
15994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15995 *) ac_try_echo=$ac_try;;
15996 esac
15997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15998 (eval "$ac_link") 2>conftest.er1
15999 ac_status=$?
16000 grep -v '^ *+' conftest.er1 >conftest.err
16001 rm -f conftest.er1
16002 cat conftest.err >&5
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); } && {
16005 test -z "$ac_c_werror_flag" ||
16006 test ! -s conftest.err
16007 } && test -s conftest$ac_exeext &&
16008 $as_test_x conftest$ac_exeext; then
16009 eval "$as_ac_var=yes"
16010 else
16011 echo "$as_me: failed program was:" >&5
16012 sed 's/^/| /' conftest.$ac_ext >&5
16013
16014 eval "$as_ac_var=no"
16015 fi
16016
16017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16018 conftest$ac_exeext conftest.$ac_ext
16019 fi
16020 ac_res=`eval echo '${'$as_ac_var'}'`
16021 { echo "$as_me:$LINENO: result: $ac_res" >&5
16022 echo "${ECHO_T}$ac_res" >&6; }
16023 if test `eval echo '${'$as_ac_var'}'` = yes; then
16024 cat >>confdefs.h <<_ACEOF
16025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16026 _ACEOF
16027
16028 fi
16029 done
16030
16031
16032 for ac_header in maillock.h
16033 do
16034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16039 echo $ECHO_N "(cached) $ECHO_C" >&6
16040 fi
16041 ac_res=`eval echo '${'$as_ac_Header'}'`
16042 { echo "$as_me:$LINENO: result: $ac_res" >&5
16043 echo "${ECHO_T}$ac_res" >&6; }
16044 else
16045 # Is the header compilable?
16046 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16047 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16048 cat >conftest.$ac_ext <<_ACEOF
16049 /* confdefs.h. */
16050 _ACEOF
16051 cat confdefs.h >>conftest.$ac_ext
16052 cat >>conftest.$ac_ext <<_ACEOF
16053 /* end confdefs.h. */
16054 $ac_includes_default
16055 #include <$ac_header>
16056 _ACEOF
16057 rm -f conftest.$ac_objext
16058 if { (ac_try="$ac_compile"
16059 case "(($ac_try" in
16060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061 *) ac_try_echo=$ac_try;;
16062 esac
16063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064 (eval "$ac_compile") 2>conftest.er1
16065 ac_status=$?
16066 grep -v '^ *+' conftest.er1 >conftest.err
16067 rm -f conftest.er1
16068 cat conftest.err >&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } && {
16071 test -z "$ac_c_werror_flag" ||
16072 test ! -s conftest.err
16073 } && test -s conftest.$ac_objext; then
16074 ac_header_compiler=yes
16075 else
16076 echo "$as_me: failed program was:" >&5
16077 sed 's/^/| /' conftest.$ac_ext >&5
16078
16079 ac_header_compiler=no
16080 fi
16081
16082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16083 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16084 echo "${ECHO_T}$ac_header_compiler" >&6; }
16085
16086 # Is the header present?
16087 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16088 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16089 cat >conftest.$ac_ext <<_ACEOF
16090 /* confdefs.h. */
16091 _ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h. */
16095 #include <$ac_header>
16096 _ACEOF
16097 if { (ac_try="$ac_cpp conftest.$ac_ext"
16098 case "(($ac_try" in
16099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100 *) ac_try_echo=$ac_try;;
16101 esac
16102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16104 ac_status=$?
16105 grep -v '^ *+' conftest.er1 >conftest.err
16106 rm -f conftest.er1
16107 cat conftest.err >&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); } >/dev/null && {
16110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16111 test ! -s conftest.err
16112 }; then
16113 ac_header_preproc=yes
16114 else
16115 echo "$as_me: failed program was:" >&5
16116 sed 's/^/| /' conftest.$ac_ext >&5
16117
16118 ac_header_preproc=no
16119 fi
16120
16121 rm -f conftest.err conftest.$ac_ext
16122 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16123 echo "${ECHO_T}$ac_header_preproc" >&6; }
16124
16125 # So? What about this header?
16126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16127 yes:no: )
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16132 ac_header_preproc=yes
16133 ;;
16134 no:yes:* )
16135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16147
16148 ;;
16149 esac
16150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16153 echo $ECHO_N "(cached) $ECHO_C" >&6
16154 else
16155 eval "$as_ac_Header=\$ac_header_preproc"
16156 fi
16157 ac_res=`eval echo '${'$as_ac_Header'}'`
16158 { echo "$as_me:$LINENO: result: $ac_res" >&5
16159 echo "${ECHO_T}$ac_res" >&6; }
16160
16161 fi
16162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16163 cat >>confdefs.h <<_ACEOF
16164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16165 _ACEOF
16166
16167 fi
16168
16169 done
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243 for ac_func in gethostname getdomainname dup2 \
16244 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16245 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16246 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16247 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16248 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16249 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16250 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16251 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16252 cfmakeraw cfsetspeed
16253 do
16254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16255 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16257 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16258 echo $ECHO_N "(cached) $ECHO_C" >&6
16259 else
16260 cat >conftest.$ac_ext <<_ACEOF
16261 /* confdefs.h. */
16262 _ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h. */
16266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16268 #define $ac_func innocuous_$ac_func
16269
16270 /* System header to define __stub macros and hopefully few prototypes,
16271 which can conflict with char $ac_func (); below.
16272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16273 <limits.h> exists even on freestanding compilers. */
16274
16275 #ifdef __STDC__
16276 # include <limits.h>
16277 #else
16278 # include <assert.h>
16279 #endif
16280
16281 #undef $ac_func
16282
16283 /* Override any GCC internal prototype to avoid an error.
16284 Use char because int might match the return type of a GCC
16285 builtin and then its argument prototype would still apply. */
16286 #ifdef __cplusplus
16287 extern "C"
16288 #endif
16289 char $ac_func ();
16290 /* The GNU C library defines this for functions which it implements
16291 to always fail with ENOSYS. Some functions are actually named
16292 something starting with __ and the normal name is an alias. */
16293 #if defined __stub_$ac_func || defined __stub___$ac_func
16294 choke me
16295 #endif
16296
16297 int
16298 main ()
16299 {
16300 return $ac_func ();
16301 ;
16302 return 0;
16303 }
16304 _ACEOF
16305 rm -f conftest.$ac_objext conftest$ac_exeext
16306 if { (ac_try="$ac_link"
16307 case "(($ac_try" in
16308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16309 *) ac_try_echo=$ac_try;;
16310 esac
16311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16312 (eval "$ac_link") 2>conftest.er1
16313 ac_status=$?
16314 grep -v '^ *+' conftest.er1 >conftest.err
16315 rm -f conftest.er1
16316 cat conftest.err >&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); } && {
16319 test -z "$ac_c_werror_flag" ||
16320 test ! -s conftest.err
16321 } && test -s conftest$ac_exeext &&
16322 $as_test_x conftest$ac_exeext; then
16323 eval "$as_ac_var=yes"
16324 else
16325 echo "$as_me: failed program was:" >&5
16326 sed 's/^/| /' conftest.$ac_ext >&5
16327
16328 eval "$as_ac_var=no"
16329 fi
16330
16331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16332 conftest$ac_exeext conftest.$ac_ext
16333 fi
16334 ac_res=`eval echo '${'$as_ac_var'}'`
16335 { echo "$as_me:$LINENO: result: $ac_res" >&5
16336 echo "${ECHO_T}$ac_res" >&6; }
16337 if test `eval echo '${'$as_ac_var'}'` = yes; then
16338 cat >>confdefs.h <<_ACEOF
16339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16340 _ACEOF
16341
16342 fi
16343 done
16344
16345
16346
16347 for ac_header in sys/un.h
16348 do
16349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16354 echo $ECHO_N "(cached) $ECHO_C" >&6
16355 fi
16356 ac_res=`eval echo '${'$as_ac_Header'}'`
16357 { echo "$as_me:$LINENO: result: $ac_res" >&5
16358 echo "${ECHO_T}$ac_res" >&6; }
16359 else
16360 # Is the header compilable?
16361 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16363 cat >conftest.$ac_ext <<_ACEOF
16364 /* confdefs.h. */
16365 _ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16369 $ac_includes_default
16370 #include <$ac_header>
16371 _ACEOF
16372 rm -f conftest.$ac_objext
16373 if { (ac_try="$ac_compile"
16374 case "(($ac_try" in
16375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16376 *) ac_try_echo=$ac_try;;
16377 esac
16378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16379 (eval "$ac_compile") 2>conftest.er1
16380 ac_status=$?
16381 grep -v '^ *+' conftest.er1 >conftest.err
16382 rm -f conftest.er1
16383 cat conftest.err >&5
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); } && {
16386 test -z "$ac_c_werror_flag" ||
16387 test ! -s conftest.err
16388 } && test -s conftest.$ac_objext; then
16389 ac_header_compiler=yes
16390 else
16391 echo "$as_me: failed program was:" >&5
16392 sed 's/^/| /' conftest.$ac_ext >&5
16393
16394 ac_header_compiler=no
16395 fi
16396
16397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16399 echo "${ECHO_T}$ac_header_compiler" >&6; }
16400
16401 # Is the header present?
16402 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16404 cat >conftest.$ac_ext <<_ACEOF
16405 /* confdefs.h. */
16406 _ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h. */
16410 #include <$ac_header>
16411 _ACEOF
16412 if { (ac_try="$ac_cpp conftest.$ac_ext"
16413 case "(($ac_try" in
16414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16415 *) ac_try_echo=$ac_try;;
16416 esac
16417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16419 ac_status=$?
16420 grep -v '^ *+' conftest.er1 >conftest.err
16421 rm -f conftest.er1
16422 cat conftest.err >&5
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); } >/dev/null && {
16425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16426 test ! -s conftest.err
16427 }; then
16428 ac_header_preproc=yes
16429 else
16430 echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16432
16433 ac_header_preproc=no
16434 fi
16435
16436 rm -f conftest.err conftest.$ac_ext
16437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16438 echo "${ECHO_T}$ac_header_preproc" >&6; }
16439
16440 # So? What about this header?
16441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16442 yes:no: )
16443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16447 ac_header_preproc=yes
16448 ;;
16449 no:yes:* )
16450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16453 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16457 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16462
16463 ;;
16464 esac
16465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16468 echo $ECHO_N "(cached) $ECHO_C" >&6
16469 else
16470 eval "$as_ac_Header=\$ac_header_preproc"
16471 fi
16472 ac_res=`eval echo '${'$as_ac_Header'}'`
16473 { echo "$as_me:$LINENO: result: $ac_res" >&5
16474 echo "${ECHO_T}$ac_res" >&6; }
16475
16476 fi
16477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16478 cat >>confdefs.h <<_ACEOF
16479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16480 _ACEOF
16481
16482 fi
16483
16484 done
16485
16486
16487
16488
16489
16490
16491 for ac_header in $ac_header_list
16492 do
16493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16499 fi
16500 ac_res=`eval echo '${'$as_ac_Header'}'`
16501 { echo "$as_me:$LINENO: result: $ac_res" >&5
16502 echo "${ECHO_T}$ac_res" >&6; }
16503 else
16504 # Is the header compilable?
16505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16507 cat >conftest.$ac_ext <<_ACEOF
16508 /* confdefs.h. */
16509 _ACEOF
16510 cat confdefs.h >>conftest.$ac_ext
16511 cat >>conftest.$ac_ext <<_ACEOF
16512 /* end confdefs.h. */
16513 $ac_includes_default
16514 #include <$ac_header>
16515 _ACEOF
16516 rm -f conftest.$ac_objext
16517 if { (ac_try="$ac_compile"
16518 case "(($ac_try" in
16519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520 *) ac_try_echo=$ac_try;;
16521 esac
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523 (eval "$ac_compile") 2>conftest.er1
16524 ac_status=$?
16525 grep -v '^ *+' conftest.er1 >conftest.err
16526 rm -f conftest.er1
16527 cat conftest.err >&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } && {
16530 test -z "$ac_c_werror_flag" ||
16531 test ! -s conftest.err
16532 } && test -s conftest.$ac_objext; then
16533 ac_header_compiler=yes
16534 else
16535 echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16537
16538 ac_header_compiler=no
16539 fi
16540
16541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16543 echo "${ECHO_T}$ac_header_compiler" >&6; }
16544
16545 # Is the header present?
16546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16548 cat >conftest.$ac_ext <<_ACEOF
16549 /* confdefs.h. */
16550 _ACEOF
16551 cat confdefs.h >>conftest.$ac_ext
16552 cat >>conftest.$ac_ext <<_ACEOF
16553 /* end confdefs.h. */
16554 #include <$ac_header>
16555 _ACEOF
16556 if { (ac_try="$ac_cpp conftest.$ac_ext"
16557 case "(($ac_try" in
16558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559 *) ac_try_echo=$ac_try;;
16560 esac
16561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16563 ac_status=$?
16564 grep -v '^ *+' conftest.er1 >conftest.err
16565 rm -f conftest.er1
16566 cat conftest.err >&5
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); } >/dev/null && {
16569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16570 test ! -s conftest.err
16571 }; then
16572 ac_header_preproc=yes
16573 else
16574 echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16576
16577 ac_header_preproc=no
16578 fi
16579
16580 rm -f conftest.err conftest.$ac_ext
16581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16582 echo "${ECHO_T}$ac_header_preproc" >&6; }
16583
16584 # So? What about this header?
16585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16586 yes:no: )
16587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16591 ac_header_preproc=yes
16592 ;;
16593 no:yes:* )
16594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16606
16607 ;;
16608 esac
16609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16612 echo $ECHO_N "(cached) $ECHO_C" >&6
16613 else
16614 eval "$as_ac_Header=\$ac_header_preproc"
16615 fi
16616 ac_res=`eval echo '${'$as_ac_Header'}'`
16617 { echo "$as_me:$LINENO: result: $ac_res" >&5
16618 echo "${ECHO_T}$ac_res" >&6; }
16619
16620 fi
16621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16622 cat >>confdefs.h <<_ACEOF
16623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16624 _ACEOF
16625
16626 fi
16627
16628 done
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638 for ac_func in $ac_func_list
16639 do
16640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16641 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16644 echo $ECHO_N "(cached) $ECHO_C" >&6
16645 else
16646 cat >conftest.$ac_ext <<_ACEOF
16647 /* confdefs.h. */
16648 _ACEOF
16649 cat confdefs.h >>conftest.$ac_ext
16650 cat >>conftest.$ac_ext <<_ACEOF
16651 /* end confdefs.h. */
16652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16654 #define $ac_func innocuous_$ac_func
16655
16656 /* System header to define __stub macros and hopefully few prototypes,
16657 which can conflict with char $ac_func (); below.
16658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16659 <limits.h> exists even on freestanding compilers. */
16660
16661 #ifdef __STDC__
16662 # include <limits.h>
16663 #else
16664 # include <assert.h>
16665 #endif
16666
16667 #undef $ac_func
16668
16669 /* Override any GCC internal prototype to avoid an error.
16670 Use char because int might match the return type of a GCC
16671 builtin and then its argument prototype would still apply. */
16672 #ifdef __cplusplus
16673 extern "C"
16674 #endif
16675 char $ac_func ();
16676 /* The GNU C library defines this for functions which it implements
16677 to always fail with ENOSYS. Some functions are actually named
16678 something starting with __ and the normal name is an alias. */
16679 #if defined __stub_$ac_func || defined __stub___$ac_func
16680 choke me
16681 #endif
16682
16683 int
16684 main ()
16685 {
16686 return $ac_func ();
16687 ;
16688 return 0;
16689 }
16690 _ACEOF
16691 rm -f conftest.$ac_objext conftest$ac_exeext
16692 if { (ac_try="$ac_link"
16693 case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16696 esac
16697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_link") 2>conftest.er1
16699 ac_status=$?
16700 grep -v '^ *+' conftest.er1 >conftest.err
16701 rm -f conftest.er1
16702 cat conftest.err >&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } && {
16705 test -z "$ac_c_werror_flag" ||
16706 test ! -s conftest.err
16707 } && test -s conftest$ac_exeext &&
16708 $as_test_x conftest$ac_exeext; then
16709 eval "$as_ac_var=yes"
16710 else
16711 echo "$as_me: failed program was:" >&5
16712 sed 's/^/| /' conftest.$ac_ext >&5
16713
16714 eval "$as_ac_var=no"
16715 fi
16716
16717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16718 conftest$ac_exeext conftest.$ac_ext
16719 fi
16720 ac_res=`eval echo '${'$as_ac_var'}'`
16721 { echo "$as_me:$LINENO: result: $ac_res" >&5
16722 echo "${ECHO_T}$ac_res" >&6; }
16723 if test `eval echo '${'$as_ac_var'}'` = yes; then
16724 cat >>confdefs.h <<_ACEOF
16725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16726 _ACEOF
16727
16728 fi
16729 done
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747 { echo "$as_me:$LINENO: checking for working mktime" >&5
16748 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16749 if test "${ac_cv_func_working_mktime+set}" = set; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16751 else
16752 if test "$cross_compiling" = yes; then
16753 ac_cv_func_working_mktime=no
16754 else
16755 cat >conftest.$ac_ext <<_ACEOF
16756 /* confdefs.h. */
16757 _ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h. */
16761 /* Test program from Paul Eggert and Tony Leneis. */
16762 #ifdef TIME_WITH_SYS_TIME
16763 # include <sys/time.h>
16764 # include <time.h>
16765 #else
16766 # ifdef HAVE_SYS_TIME_H
16767 # include <sys/time.h>
16768 # else
16769 # include <time.h>
16770 # endif
16771 #endif
16772
16773 #include <limits.h>
16774 #include <stdlib.h>
16775
16776 #ifdef HAVE_UNISTD_H
16777 # include <unistd.h>
16778 #endif
16779
16780 #ifndef HAVE_ALARM
16781 # define alarm(X) /* empty */
16782 #endif
16783
16784 /* Work around redefinition to rpl_putenv by other config tests. */
16785 #undef putenv
16786
16787 static time_t time_t_max;
16788 static time_t time_t_min;
16789
16790 /* Values we'll use to set the TZ environment variable. */
16791 static char *tz_strings[] = {
16792 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16793 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16794 };
16795 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16796
16797 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16798 Based on a problem report from Andreas Jaeger. */
16799 static int
16800 spring_forward_gap ()
16801 {
16802 /* glibc (up to about 1998-10-07) failed this test. */
16803 struct tm tm;
16804
16805 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16806 instead of "TZ=America/Vancouver" in order to detect the bug even
16807 on systems that don't support the Olson extension, or don't have the
16808 full zoneinfo tables installed. */
16809 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16810
16811 tm.tm_year = 98;
16812 tm.tm_mon = 3;
16813 tm.tm_mday = 5;
16814 tm.tm_hour = 2;
16815 tm.tm_min = 0;
16816 tm.tm_sec = 0;
16817 tm.tm_isdst = -1;
16818 return mktime (&tm) != (time_t) -1;
16819 }
16820
16821 static int
16822 mktime_test1 (now)
16823 time_t now;
16824 {
16825 struct tm *lt;
16826 return ! (lt = localtime (&now)) || mktime (lt) == now;
16827 }
16828
16829 static int
16830 mktime_test (now)
16831 time_t now;
16832 {
16833 return (mktime_test1 (now)
16834 && mktime_test1 ((time_t) (time_t_max - now))
16835 && mktime_test1 ((time_t) (time_t_min + now)));
16836 }
16837
16838 static int
16839 irix_6_4_bug ()
16840 {
16841 /* Based on code from Ariel Faigon. */
16842 struct tm tm;
16843 tm.tm_year = 96;
16844 tm.tm_mon = 3;
16845 tm.tm_mday = 0;
16846 tm.tm_hour = 0;
16847 tm.tm_min = 0;
16848 tm.tm_sec = 0;
16849 tm.tm_isdst = -1;
16850 mktime (&tm);
16851 return tm.tm_mon == 2 && tm.tm_mday == 31;
16852 }
16853
16854 static int
16855 bigtime_test (j)
16856 int j;
16857 {
16858 struct tm tm;
16859 time_t now;
16860 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16861 now = mktime (&tm);
16862 if (now != (time_t) -1)
16863 {
16864 struct tm *lt = localtime (&now);
16865 if (! (lt
16866 && lt->tm_year == tm.tm_year
16867 && lt->tm_mon == tm.tm_mon
16868 && lt->tm_mday == tm.tm_mday
16869 && lt->tm_hour == tm.tm_hour
16870 && lt->tm_min == tm.tm_min
16871 && lt->tm_sec == tm.tm_sec
16872 && lt->tm_yday == tm.tm_yday
16873 && lt->tm_wday == tm.tm_wday
16874 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16875 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16876 return 0;
16877 }
16878 return 1;
16879 }
16880
16881 static int
16882 year_2050_test ()
16883 {
16884 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16885 ignoring leap seconds. */
16886 unsigned long int answer = 2527315200UL;
16887
16888 struct tm tm;
16889 time_t t;
16890 tm.tm_year = 2050 - 1900;
16891 tm.tm_mon = 2 - 1;
16892 tm.tm_mday = 1;
16893 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16894 tm.tm_isdst = -1;
16895
16896 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16897 instead of "TZ=America/Vancouver" in order to detect the bug even
16898 on systems that don't support the Olson extension, or don't have the
16899 full zoneinfo tables installed. */
16900 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16901
16902 t = mktime (&tm);
16903
16904 /* Check that the result is either a failure, or close enough
16905 to the correct answer that we can assume the discrepancy is
16906 due to leap seconds. */
16907 return (t == (time_t) -1
16908 || (0 < t && answer - 120 <= t && t <= answer + 120));
16909 }
16910
16911 int
16912 main ()
16913 {
16914 time_t t, delta;
16915 int i, j;
16916
16917 /* This test makes some buggy mktime implementations loop.
16918 Give up after 60 seconds; a mktime slower than that
16919 isn't worth using anyway. */
16920 alarm (60);
16921
16922 for (;;)
16923 {
16924 t = (time_t_max << 1) + 1;
16925 if (t <= time_t_max)
16926 break;
16927 time_t_max = t;
16928 }
16929 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
16930
16931 delta = time_t_max / 997; /* a suitable prime number */
16932 for (i = 0; i < N_STRINGS; i++)
16933 {
16934 if (tz_strings[i])
16935 putenv (tz_strings[i]);
16936
16937 for (t = 0; t <= time_t_max - delta; t += delta)
16938 if (! mktime_test (t))
16939 return 1;
16940 if (! (mktime_test ((time_t) 1)
16941 && mktime_test ((time_t) (60 * 60))
16942 && mktime_test ((time_t) (60 * 60 * 24))))
16943 return 1;
16944
16945 for (j = 1; ; j <<= 1)
16946 if (! bigtime_test (j))
16947 return 1;
16948 else if (INT_MAX / 2 < j)
16949 break;
16950 if (! bigtime_test (INT_MAX))
16951 return 1;
16952 }
16953 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16954 }
16955 _ACEOF
16956 rm -f conftest$ac_exeext
16957 if { (ac_try="$ac_link"
16958 case "(($ac_try" in
16959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16960 *) ac_try_echo=$ac_try;;
16961 esac
16962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16963 (eval "$ac_link") 2>&5
16964 ac_status=$?
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16967 { (case "(($ac_try" in
16968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969 *) ac_try_echo=$ac_try;;
16970 esac
16971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972 (eval "$ac_try") 2>&5
16973 ac_status=$?
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); }; }; then
16976 ac_cv_func_working_mktime=yes
16977 else
16978 echo "$as_me: program exited with status $ac_status" >&5
16979 echo "$as_me: failed program was:" >&5
16980 sed 's/^/| /' conftest.$ac_ext >&5
16981
16982 ( exit $ac_status )
16983 ac_cv_func_working_mktime=no
16984 fi
16985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16986 fi
16987
16988
16989 fi
16990 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16991 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16992 if test $ac_cv_func_working_mktime = no; then
16993 case " $LIBOBJS " in
16994 *" mktime.$ac_objext "* ) ;;
16995 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16996 ;;
16997 esac
16998
16999 fi
17000
17001 if test "$ac_cv_func_working_mktime" = no; then
17002
17003 cat >>confdefs.h <<\_ACEOF
17004 #define BROKEN_MKTIME 1
17005 _ACEOF
17006
17007 fi
17008
17009 ac_have_func=no # yes means we've found a way to get the load average.
17010
17011 # Make sure getloadavg.c is where it belongs, at configure-time.
17012 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17013 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17014 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17015 { (exit 1); exit 1; }; }
17016
17017 ac_save_LIBS=$LIBS
17018
17019 # Check for getloadavg, but be sure not to touch the cache variable.
17020 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
17021 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
17022 if test "${ac_cv_func_getloadavg+set}" = set; then
17023 echo $ECHO_N "(cached) $ECHO_C" >&6
17024 else
17025 cat >conftest.$ac_ext <<_ACEOF
17026 /* confdefs.h. */
17027 _ACEOF
17028 cat confdefs.h >>conftest.$ac_ext
17029 cat >>conftest.$ac_ext <<_ACEOF
17030 /* end confdefs.h. */
17031 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17033 #define getloadavg innocuous_getloadavg
17034
17035 /* System header to define __stub macros and hopefully few prototypes,
17036 which can conflict with char getloadavg (); below.
17037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17038 <limits.h> exists even on freestanding compilers. */
17039
17040 #ifdef __STDC__
17041 # include <limits.h>
17042 #else
17043 # include <assert.h>
17044 #endif
17045
17046 #undef getloadavg
17047
17048 /* Override any GCC internal prototype to avoid an error.
17049 Use char because int might match the return type of a GCC
17050 builtin and then its argument prototype would still apply. */
17051 #ifdef __cplusplus
17052 extern "C"
17053 #endif
17054 char getloadavg ();
17055 /* The GNU C library defines this for functions which it implements
17056 to always fail with ENOSYS. Some functions are actually named
17057 something starting with __ and the normal name is an alias. */
17058 #if defined __stub_getloadavg || defined __stub___getloadavg
17059 choke me
17060 #endif
17061
17062 int
17063 main ()
17064 {
17065 return getloadavg ();
17066 ;
17067 return 0;
17068 }
17069 _ACEOF
17070 rm -f conftest.$ac_objext conftest$ac_exeext
17071 if { (ac_try="$ac_link"
17072 case "(($ac_try" in
17073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17074 *) ac_try_echo=$ac_try;;
17075 esac
17076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17077 (eval "$ac_link") 2>conftest.er1
17078 ac_status=$?
17079 grep -v '^ *+' conftest.er1 >conftest.err
17080 rm -f conftest.er1
17081 cat conftest.err >&5
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } && {
17084 test -z "$ac_c_werror_flag" ||
17085 test ! -s conftest.err
17086 } && test -s conftest$ac_exeext &&
17087 $as_test_x conftest$ac_exeext; then
17088 ac_cv_func_getloadavg=yes
17089 else
17090 echo "$as_me: failed program was:" >&5
17091 sed 's/^/| /' conftest.$ac_ext >&5
17092
17093 ac_cv_func_getloadavg=no
17094 fi
17095
17096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17097 conftest$ac_exeext conftest.$ac_ext
17098 fi
17099 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17100 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17101 if test $ac_cv_func_getloadavg = yes; then
17102 exit 0
17103 else
17104 exit 1
17105 fi
17106 ) && ac_have_func=yes
17107
17108 # On HPUX9, an unprivileged user can get load averages through this function.
17109
17110 for ac_func in pstat_getdynamic
17111 do
17112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17113 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17116 echo $ECHO_N "(cached) $ECHO_C" >&6
17117 else
17118 cat >conftest.$ac_ext <<_ACEOF
17119 /* confdefs.h. */
17120 _ACEOF
17121 cat confdefs.h >>conftest.$ac_ext
17122 cat >>conftest.$ac_ext <<_ACEOF
17123 /* end confdefs.h. */
17124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17126 #define $ac_func innocuous_$ac_func
17127
17128 /* System header to define __stub macros and hopefully few prototypes,
17129 which can conflict with char $ac_func (); below.
17130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17131 <limits.h> exists even on freestanding compilers. */
17132
17133 #ifdef __STDC__
17134 # include <limits.h>
17135 #else
17136 # include <assert.h>
17137 #endif
17138
17139 #undef $ac_func
17140
17141 /* Override any GCC internal prototype to avoid an error.
17142 Use char because int might match the return type of a GCC
17143 builtin and then its argument prototype would still apply. */
17144 #ifdef __cplusplus
17145 extern "C"
17146 #endif
17147 char $ac_func ();
17148 /* The GNU C library defines this for functions which it implements
17149 to always fail with ENOSYS. Some functions are actually named
17150 something starting with __ and the normal name is an alias. */
17151 #if defined __stub_$ac_func || defined __stub___$ac_func
17152 choke me
17153 #endif
17154
17155 int
17156 main ()
17157 {
17158 return $ac_func ();
17159 ;
17160 return 0;
17161 }
17162 _ACEOF
17163 rm -f conftest.$ac_objext conftest$ac_exeext
17164 if { (ac_try="$ac_link"
17165 case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17168 esac
17169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170 (eval "$ac_link") 2>conftest.er1
17171 ac_status=$?
17172 grep -v '^ *+' conftest.er1 >conftest.err
17173 rm -f conftest.er1
17174 cat conftest.err >&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); } && {
17177 test -z "$ac_c_werror_flag" ||
17178 test ! -s conftest.err
17179 } && test -s conftest$ac_exeext &&
17180 $as_test_x conftest$ac_exeext; then
17181 eval "$as_ac_var=yes"
17182 else
17183 echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.$ac_ext >&5
17185
17186 eval "$as_ac_var=no"
17187 fi
17188
17189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17190 conftest$ac_exeext conftest.$ac_ext
17191 fi
17192 ac_res=`eval echo '${'$as_ac_var'}'`
17193 { echo "$as_me:$LINENO: result: $ac_res" >&5
17194 echo "${ECHO_T}$ac_res" >&6; }
17195 if test `eval echo '${'$as_ac_var'}'` = yes; then
17196 cat >>confdefs.h <<_ACEOF
17197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17198 _ACEOF
17199
17200 fi
17201 done
17202
17203
17204 # Solaris has libkstat which does not require root.
17205
17206 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17207 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17208 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17209 echo $ECHO_N "(cached) $ECHO_C" >&6
17210 else
17211 ac_check_lib_save_LIBS=$LIBS
17212 LIBS="-lkstat $LIBS"
17213 cat >conftest.$ac_ext <<_ACEOF
17214 /* confdefs.h. */
17215 _ACEOF
17216 cat confdefs.h >>conftest.$ac_ext
17217 cat >>conftest.$ac_ext <<_ACEOF
17218 /* end confdefs.h. */
17219
17220 /* Override any GCC internal prototype to avoid an error.
17221 Use char because int might match the return type of a GCC
17222 builtin and then its argument prototype would still apply. */
17223 #ifdef __cplusplus
17224 extern "C"
17225 #endif
17226 char kstat_open ();
17227 int
17228 main ()
17229 {
17230 return kstat_open ();
17231 ;
17232 return 0;
17233 }
17234 _ACEOF
17235 rm -f conftest.$ac_objext conftest$ac_exeext
17236 if { (ac_try="$ac_link"
17237 case "(($ac_try" in
17238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239 *) ac_try_echo=$ac_try;;
17240 esac
17241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17242 (eval "$ac_link") 2>conftest.er1
17243 ac_status=$?
17244 grep -v '^ *+' conftest.er1 >conftest.err
17245 rm -f conftest.er1
17246 cat conftest.err >&5
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); } && {
17249 test -z "$ac_c_werror_flag" ||
17250 test ! -s conftest.err
17251 } && test -s conftest$ac_exeext &&
17252 $as_test_x conftest$ac_exeext; then
17253 ac_cv_lib_kstat_kstat_open=yes
17254 else
17255 echo "$as_me: failed program was:" >&5
17256 sed 's/^/| /' conftest.$ac_ext >&5
17257
17258 ac_cv_lib_kstat_kstat_open=no
17259 fi
17260
17261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17262 conftest$ac_exeext conftest.$ac_ext
17263 LIBS=$ac_check_lib_save_LIBS
17264 fi
17265 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17266 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17267 if test $ac_cv_lib_kstat_kstat_open = yes; then
17268 cat >>confdefs.h <<_ACEOF
17269 #define HAVE_LIBKSTAT 1
17270 _ACEOF
17271
17272 LIBS="-lkstat $LIBS"
17273
17274 fi
17275
17276 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17277
17278 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17279 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17280 # to get the right answer into the cache.
17281 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17282 if test $ac_have_func = no; then
17283 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17284 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17285 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17286 echo $ECHO_N "(cached) $ECHO_C" >&6
17287 else
17288 ac_check_lib_save_LIBS=$LIBS
17289 LIBS="-lelf $LIBS"
17290 cat >conftest.$ac_ext <<_ACEOF
17291 /* confdefs.h. */
17292 _ACEOF
17293 cat confdefs.h >>conftest.$ac_ext
17294 cat >>conftest.$ac_ext <<_ACEOF
17295 /* end confdefs.h. */
17296
17297 /* Override any GCC internal prototype to avoid an error.
17298 Use char because int might match the return type of a GCC
17299 builtin and then its argument prototype would still apply. */
17300 #ifdef __cplusplus
17301 extern "C"
17302 #endif
17303 char elf_begin ();
17304 int
17305 main ()
17306 {
17307 return elf_begin ();
17308 ;
17309 return 0;
17310 }
17311 _ACEOF
17312 rm -f conftest.$ac_objext conftest$ac_exeext
17313 if { (ac_try="$ac_link"
17314 case "(($ac_try" in
17315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17316 *) ac_try_echo=$ac_try;;
17317 esac
17318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17319 (eval "$ac_link") 2>conftest.er1
17320 ac_status=$?
17321 grep -v '^ *+' conftest.er1 >conftest.err
17322 rm -f conftest.er1
17323 cat conftest.err >&5
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); } && {
17326 test -z "$ac_c_werror_flag" ||
17327 test ! -s conftest.err
17328 } && test -s conftest$ac_exeext &&
17329 $as_test_x conftest$ac_exeext; then
17330 ac_cv_lib_elf_elf_begin=yes
17331 else
17332 echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17334
17335 ac_cv_lib_elf_elf_begin=no
17336 fi
17337
17338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17339 conftest$ac_exeext conftest.$ac_ext
17340 LIBS=$ac_check_lib_save_LIBS
17341 fi
17342 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17343 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17344 if test $ac_cv_lib_elf_elf_begin = yes; then
17345 LIBS="-lelf $LIBS"
17346 fi
17347
17348 fi
17349 if test $ac_have_func = no; then
17350 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17351 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17352 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17353 echo $ECHO_N "(cached) $ECHO_C" >&6
17354 else
17355 ac_check_lib_save_LIBS=$LIBS
17356 LIBS="-lkvm $LIBS"
17357 cat >conftest.$ac_ext <<_ACEOF
17358 /* confdefs.h. */
17359 _ACEOF
17360 cat confdefs.h >>conftest.$ac_ext
17361 cat >>conftest.$ac_ext <<_ACEOF
17362 /* end confdefs.h. */
17363
17364 /* Override any GCC internal prototype to avoid an error.
17365 Use char because int might match the return type of a GCC
17366 builtin and then its argument prototype would still apply. */
17367 #ifdef __cplusplus
17368 extern "C"
17369 #endif
17370 char kvm_open ();
17371 int
17372 main ()
17373 {
17374 return kvm_open ();
17375 ;
17376 return 0;
17377 }
17378 _ACEOF
17379 rm -f conftest.$ac_objext conftest$ac_exeext
17380 if { (ac_try="$ac_link"
17381 case "(($ac_try" in
17382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17383 *) ac_try_echo=$ac_try;;
17384 esac
17385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17386 (eval "$ac_link") 2>conftest.er1
17387 ac_status=$?
17388 grep -v '^ *+' conftest.er1 >conftest.err
17389 rm -f conftest.er1
17390 cat conftest.err >&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } && {
17393 test -z "$ac_c_werror_flag" ||
17394 test ! -s conftest.err
17395 } && test -s conftest$ac_exeext &&
17396 $as_test_x conftest$ac_exeext; then
17397 ac_cv_lib_kvm_kvm_open=yes
17398 else
17399 echo "$as_me: failed program was:" >&5
17400 sed 's/^/| /' conftest.$ac_ext >&5
17401
17402 ac_cv_lib_kvm_kvm_open=no
17403 fi
17404
17405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17406 conftest$ac_exeext conftest.$ac_ext
17407 LIBS=$ac_check_lib_save_LIBS
17408 fi
17409 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17410 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17411 if test $ac_cv_lib_kvm_kvm_open = yes; then
17412 LIBS="-lkvm $LIBS"
17413 fi
17414
17415 # Check for the 4.4BSD definition of getloadavg.
17416 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17417 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17418 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17419 echo $ECHO_N "(cached) $ECHO_C" >&6
17420 else
17421 ac_check_lib_save_LIBS=$LIBS
17422 LIBS="-lutil $LIBS"
17423 cat >conftest.$ac_ext <<_ACEOF
17424 /* confdefs.h. */
17425 _ACEOF
17426 cat confdefs.h >>conftest.$ac_ext
17427 cat >>conftest.$ac_ext <<_ACEOF
17428 /* end confdefs.h. */
17429
17430 /* Override any GCC internal prototype to avoid an error.
17431 Use char because int might match the return type of a GCC
17432 builtin and then its argument prototype would still apply. */
17433 #ifdef __cplusplus
17434 extern "C"
17435 #endif
17436 char getloadavg ();
17437 int
17438 main ()
17439 {
17440 return getloadavg ();
17441 ;
17442 return 0;
17443 }
17444 _ACEOF
17445 rm -f conftest.$ac_objext conftest$ac_exeext
17446 if { (ac_try="$ac_link"
17447 case "(($ac_try" in
17448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449 *) ac_try_echo=$ac_try;;
17450 esac
17451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17452 (eval "$ac_link") 2>conftest.er1
17453 ac_status=$?
17454 grep -v '^ *+' conftest.er1 >conftest.err
17455 rm -f conftest.er1
17456 cat conftest.err >&5
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); } && {
17459 test -z "$ac_c_werror_flag" ||
17460 test ! -s conftest.err
17461 } && test -s conftest$ac_exeext &&
17462 $as_test_x conftest$ac_exeext; then
17463 ac_cv_lib_util_getloadavg=yes
17464 else
17465 echo "$as_me: failed program was:" >&5
17466 sed 's/^/| /' conftest.$ac_ext >&5
17467
17468 ac_cv_lib_util_getloadavg=no
17469 fi
17470
17471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17472 conftest$ac_exeext conftest.$ac_ext
17473 LIBS=$ac_check_lib_save_LIBS
17474 fi
17475 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17476 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17477 if test $ac_cv_lib_util_getloadavg = yes; then
17478 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17479 fi
17480
17481 fi
17482
17483 if test $ac_have_func = no; then
17484 # There is a commonly available library for RS/6000 AIX.
17485 # Since it is not a standard part of AIX, it might be installed locally.
17486 ac_getloadavg_LIBS=$LIBS
17487 LIBS="-L/usr/local/lib $LIBS"
17488 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17489 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17490 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17491 echo $ECHO_N "(cached) $ECHO_C" >&6
17492 else
17493 ac_check_lib_save_LIBS=$LIBS
17494 LIBS="-lgetloadavg $LIBS"
17495 cat >conftest.$ac_ext <<_ACEOF
17496 /* confdefs.h. */
17497 _ACEOF
17498 cat confdefs.h >>conftest.$ac_ext
17499 cat >>conftest.$ac_ext <<_ACEOF
17500 /* end confdefs.h. */
17501
17502 /* Override any GCC internal prototype to avoid an error.
17503 Use char because int might match the return type of a GCC
17504 builtin and then its argument prototype would still apply. */
17505 #ifdef __cplusplus
17506 extern "C"
17507 #endif
17508 char getloadavg ();
17509 int
17510 main ()
17511 {
17512 return getloadavg ();
17513 ;
17514 return 0;
17515 }
17516 _ACEOF
17517 rm -f conftest.$ac_objext conftest$ac_exeext
17518 if { (ac_try="$ac_link"
17519 case "(($ac_try" in
17520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17521 *) ac_try_echo=$ac_try;;
17522 esac
17523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17524 (eval "$ac_link") 2>conftest.er1
17525 ac_status=$?
17526 grep -v '^ *+' conftest.er1 >conftest.err
17527 rm -f conftest.er1
17528 cat conftest.err >&5
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); } && {
17531 test -z "$ac_c_werror_flag" ||
17532 test ! -s conftest.err
17533 } && test -s conftest$ac_exeext &&
17534 $as_test_x conftest$ac_exeext; then
17535 ac_cv_lib_getloadavg_getloadavg=yes
17536 else
17537 echo "$as_me: failed program was:" >&5
17538 sed 's/^/| /' conftest.$ac_ext >&5
17539
17540 ac_cv_lib_getloadavg_getloadavg=no
17541 fi
17542
17543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17544 conftest$ac_exeext conftest.$ac_ext
17545 LIBS=$ac_check_lib_save_LIBS
17546 fi
17547 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17548 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17549 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17550 LIBS="-lgetloadavg $LIBS"
17551 else
17552 LIBS=$ac_getloadavg_LIBS
17553 fi
17554
17555 fi
17556
17557 # Make sure it is really in the library, if we think we found it,
17558 # otherwise set up the replacement function.
17559
17560 for ac_func in getloadavg
17561 do
17562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17566 echo $ECHO_N "(cached) $ECHO_C" >&6
17567 else
17568 cat >conftest.$ac_ext <<_ACEOF
17569 /* confdefs.h. */
17570 _ACEOF
17571 cat confdefs.h >>conftest.$ac_ext
17572 cat >>conftest.$ac_ext <<_ACEOF
17573 /* end confdefs.h. */
17574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17576 #define $ac_func innocuous_$ac_func
17577
17578 /* System header to define __stub macros and hopefully few prototypes,
17579 which can conflict with char $ac_func (); below.
17580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17581 <limits.h> exists even on freestanding compilers. */
17582
17583 #ifdef __STDC__
17584 # include <limits.h>
17585 #else
17586 # include <assert.h>
17587 #endif
17588
17589 #undef $ac_func
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 $ac_func ();
17598 /* The GNU C library defines this for functions which it implements
17599 to always fail with ENOSYS. Some functions are actually named
17600 something starting with __ and the normal name is an alias. */
17601 #if defined __stub_$ac_func || defined __stub___$ac_func
17602 choke me
17603 #endif
17604
17605 int
17606 main ()
17607 {
17608 return $ac_func ();
17609 ;
17610 return 0;
17611 }
17612 _ACEOF
17613 rm -f conftest.$ac_objext conftest$ac_exeext
17614 if { (ac_try="$ac_link"
17615 case "(($ac_try" in
17616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17617 *) ac_try_echo=$ac_try;;
17618 esac
17619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17620 (eval "$ac_link") 2>conftest.er1
17621 ac_status=$?
17622 grep -v '^ *+' conftest.er1 >conftest.err
17623 rm -f conftest.er1
17624 cat conftest.err >&5
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); } && {
17627 test -z "$ac_c_werror_flag" ||
17628 test ! -s conftest.err
17629 } && test -s conftest$ac_exeext &&
17630 $as_test_x conftest$ac_exeext; then
17631 eval "$as_ac_var=yes"
17632 else
17633 echo "$as_me: failed program was:" >&5
17634 sed 's/^/| /' conftest.$ac_ext >&5
17635
17636 eval "$as_ac_var=no"
17637 fi
17638
17639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17640 conftest$ac_exeext conftest.$ac_ext
17641 fi
17642 ac_res=`eval echo '${'$as_ac_var'}'`
17643 { echo "$as_me:$LINENO: result: $ac_res" >&5
17644 echo "${ECHO_T}$ac_res" >&6; }
17645 if test `eval echo '${'$as_ac_var'}'` = yes; then
17646 cat >>confdefs.h <<_ACEOF
17647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17648 _ACEOF
17649
17650 else
17651 case " $LIBOBJS " in
17652 *" getloadavg.$ac_objext "* ) ;;
17653 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17654 ;;
17655 esac
17656
17657
17658 cat >>confdefs.h <<\_ACEOF
17659 #define C_GETLOADAVG 1
17660 _ACEOF
17661
17662 # Figure out what our getloadavg.c needs.
17663 ac_have_func=no
17664 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17665 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17666 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17667 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17668 echo $ECHO_N "(cached) $ECHO_C" >&6
17669 fi
17670 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17671 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17672 else
17673 # Is the header compilable?
17674 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17675 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17676 cat >conftest.$ac_ext <<_ACEOF
17677 /* confdefs.h. */
17678 _ACEOF
17679 cat confdefs.h >>conftest.$ac_ext
17680 cat >>conftest.$ac_ext <<_ACEOF
17681 /* end confdefs.h. */
17682 $ac_includes_default
17683 #include <sys/dg_sys_info.h>
17684 _ACEOF
17685 rm -f conftest.$ac_objext
17686 if { (ac_try="$ac_compile"
17687 case "(($ac_try" in
17688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689 *) ac_try_echo=$ac_try;;
17690 esac
17691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692 (eval "$ac_compile") 2>conftest.er1
17693 ac_status=$?
17694 grep -v '^ *+' conftest.er1 >conftest.err
17695 rm -f conftest.er1
17696 cat conftest.err >&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); } && {
17699 test -z "$ac_c_werror_flag" ||
17700 test ! -s conftest.err
17701 } && test -s conftest.$ac_objext; then
17702 ac_header_compiler=yes
17703 else
17704 echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.$ac_ext >&5
17706
17707 ac_header_compiler=no
17708 fi
17709
17710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17712 echo "${ECHO_T}$ac_header_compiler" >&6; }
17713
17714 # Is the header present?
17715 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17716 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17717 cat >conftest.$ac_ext <<_ACEOF
17718 /* confdefs.h. */
17719 _ACEOF
17720 cat confdefs.h >>conftest.$ac_ext
17721 cat >>conftest.$ac_ext <<_ACEOF
17722 /* end confdefs.h. */
17723 #include <sys/dg_sys_info.h>
17724 _ACEOF
17725 if { (ac_try="$ac_cpp conftest.$ac_ext"
17726 case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17729 esac
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17732 ac_status=$?
17733 grep -v '^ *+' conftest.er1 >conftest.err
17734 rm -f conftest.er1
17735 cat conftest.err >&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); } >/dev/null && {
17738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17739 test ! -s conftest.err
17740 }; then
17741 ac_header_preproc=yes
17742 else
17743 echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.$ac_ext >&5
17745
17746 ac_header_preproc=no
17747 fi
17748
17749 rm -f conftest.err conftest.$ac_ext
17750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17751 echo "${ECHO_T}$ac_header_preproc" >&6; }
17752
17753 # So? What about this header?
17754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17755 yes:no: )
17756 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17757 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17758 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17759 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17760 ac_header_preproc=yes
17761 ;;
17762 no:yes:* )
17763 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17764 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17765 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17766 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17767 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17768 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17769 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17770 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17771 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17772 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17773 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17774 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17775
17776 ;;
17777 esac
17778 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17779 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17780 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17781 echo $ECHO_N "(cached) $ECHO_C" >&6
17782 else
17783 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17784 fi
17785 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17786 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17787
17788 fi
17789 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17790 ac_have_func=yes
17791
17792 cat >>confdefs.h <<\_ACEOF
17793 #define DGUX 1
17794 _ACEOF
17795
17796
17797 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17798 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17799 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17800 echo $ECHO_N "(cached) $ECHO_C" >&6
17801 else
17802 ac_check_lib_save_LIBS=$LIBS
17803 LIBS="-ldgc $LIBS"
17804 cat >conftest.$ac_ext <<_ACEOF
17805 /* confdefs.h. */
17806 _ACEOF
17807 cat confdefs.h >>conftest.$ac_ext
17808 cat >>conftest.$ac_ext <<_ACEOF
17809 /* end confdefs.h. */
17810
17811 /* Override any GCC internal prototype to avoid an error.
17812 Use char because int might match the return type of a GCC
17813 builtin and then its argument prototype would still apply. */
17814 #ifdef __cplusplus
17815 extern "C"
17816 #endif
17817 char dg_sys_info ();
17818 int
17819 main ()
17820 {
17821 return dg_sys_info ();
17822 ;
17823 return 0;
17824 }
17825 _ACEOF
17826 rm -f conftest.$ac_objext conftest$ac_exeext
17827 if { (ac_try="$ac_link"
17828 case "(($ac_try" in
17829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17830 *) ac_try_echo=$ac_try;;
17831 esac
17832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17833 (eval "$ac_link") 2>conftest.er1
17834 ac_status=$?
17835 grep -v '^ *+' conftest.er1 >conftest.err
17836 rm -f conftest.er1
17837 cat conftest.err >&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); } && {
17840 test -z "$ac_c_werror_flag" ||
17841 test ! -s conftest.err
17842 } && test -s conftest$ac_exeext &&
17843 $as_test_x conftest$ac_exeext; then
17844 ac_cv_lib_dgc_dg_sys_info=yes
17845 else
17846 echo "$as_me: failed program was:" >&5
17847 sed 's/^/| /' conftest.$ac_ext >&5
17848
17849 ac_cv_lib_dgc_dg_sys_info=no
17850 fi
17851
17852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17853 conftest$ac_exeext conftest.$ac_ext
17854 LIBS=$ac_check_lib_save_LIBS
17855 fi
17856 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17857 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17858 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17859 cat >>confdefs.h <<_ACEOF
17860 #define HAVE_LIBDGC 1
17861 _ACEOF
17862
17863 LIBS="-ldgc $LIBS"
17864
17865 fi
17866
17867 fi
17868
17869
17870
17871 if test "${ac_cv_header_locale_h+set}" = set; then
17872 { echo "$as_me:$LINENO: checking for locale.h" >&5
17873 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17874 if test "${ac_cv_header_locale_h+set}" = set; then
17875 echo $ECHO_N "(cached) $ECHO_C" >&6
17876 fi
17877 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17878 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17879 else
17880 # Is the header compilable?
17881 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17882 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17883 cat >conftest.$ac_ext <<_ACEOF
17884 /* confdefs.h. */
17885 _ACEOF
17886 cat confdefs.h >>conftest.$ac_ext
17887 cat >>conftest.$ac_ext <<_ACEOF
17888 /* end confdefs.h. */
17889 $ac_includes_default
17890 #include <locale.h>
17891 _ACEOF
17892 rm -f conftest.$ac_objext
17893 if { (ac_try="$ac_compile"
17894 case "(($ac_try" in
17895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896 *) ac_try_echo=$ac_try;;
17897 esac
17898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899 (eval "$ac_compile") 2>conftest.er1
17900 ac_status=$?
17901 grep -v '^ *+' conftest.er1 >conftest.err
17902 rm -f conftest.er1
17903 cat conftest.err >&5
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); } && {
17906 test -z "$ac_c_werror_flag" ||
17907 test ! -s conftest.err
17908 } && test -s conftest.$ac_objext; then
17909 ac_header_compiler=yes
17910 else
17911 echo "$as_me: failed program was:" >&5
17912 sed 's/^/| /' conftest.$ac_ext >&5
17913
17914 ac_header_compiler=no
17915 fi
17916
17917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17919 echo "${ECHO_T}$ac_header_compiler" >&6; }
17920
17921 # Is the header present?
17922 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17923 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17924 cat >conftest.$ac_ext <<_ACEOF
17925 /* confdefs.h. */
17926 _ACEOF
17927 cat confdefs.h >>conftest.$ac_ext
17928 cat >>conftest.$ac_ext <<_ACEOF
17929 /* end confdefs.h. */
17930 #include <locale.h>
17931 _ACEOF
17932 if { (ac_try="$ac_cpp conftest.$ac_ext"
17933 case "(($ac_try" in
17934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17935 *) ac_try_echo=$ac_try;;
17936 esac
17937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17939 ac_status=$?
17940 grep -v '^ *+' conftest.er1 >conftest.err
17941 rm -f conftest.er1
17942 cat conftest.err >&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } >/dev/null && {
17945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17946 test ! -s conftest.err
17947 }; then
17948 ac_header_preproc=yes
17949 else
17950 echo "$as_me: failed program was:" >&5
17951 sed 's/^/| /' conftest.$ac_ext >&5
17952
17953 ac_header_preproc=no
17954 fi
17955
17956 rm -f conftest.err conftest.$ac_ext
17957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17958 echo "${ECHO_T}$ac_header_preproc" >&6; }
17959
17960 # So? What about this header?
17961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17962 yes:no: )
17963 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17964 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17965 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17966 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17967 ac_header_preproc=yes
17968 ;;
17969 no:yes:* )
17970 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17971 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17972 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17973 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17974 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17975 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17976 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17977 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17978 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17979 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17980 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17981 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17982
17983 ;;
17984 esac
17985 { echo "$as_me:$LINENO: checking for locale.h" >&5
17986 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17987 if test "${ac_cv_header_locale_h+set}" = set; then
17988 echo $ECHO_N "(cached) $ECHO_C" >&6
17989 else
17990 ac_cv_header_locale_h=$ac_header_preproc
17991 fi
17992 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17993 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17994
17995 fi
17996
17997
17998
17999 for ac_func in setlocale
18000 do
18001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18002 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18004 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18005 echo $ECHO_N "(cached) $ECHO_C" >&6
18006 else
18007 cat >conftest.$ac_ext <<_ACEOF
18008 /* confdefs.h. */
18009 _ACEOF
18010 cat confdefs.h >>conftest.$ac_ext
18011 cat >>conftest.$ac_ext <<_ACEOF
18012 /* end confdefs.h. */
18013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18015 #define $ac_func innocuous_$ac_func
18016
18017 /* System header to define __stub macros and hopefully few prototypes,
18018 which can conflict with char $ac_func (); below.
18019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18020 <limits.h> exists even on freestanding compilers. */
18021
18022 #ifdef __STDC__
18023 # include <limits.h>
18024 #else
18025 # include <assert.h>
18026 #endif
18027
18028 #undef $ac_func
18029
18030 /* Override any GCC internal prototype to avoid an error.
18031 Use char because int might match the return type of a GCC
18032 builtin and then its argument prototype would still apply. */
18033 #ifdef __cplusplus
18034 extern "C"
18035 #endif
18036 char $ac_func ();
18037 /* The GNU C library defines this for functions which it implements
18038 to always fail with ENOSYS. Some functions are actually named
18039 something starting with __ and the normal name is an alias. */
18040 #if defined __stub_$ac_func || defined __stub___$ac_func
18041 choke me
18042 #endif
18043
18044 int
18045 main ()
18046 {
18047 return $ac_func ();
18048 ;
18049 return 0;
18050 }
18051 _ACEOF
18052 rm -f conftest.$ac_objext conftest$ac_exeext
18053 if { (ac_try="$ac_link"
18054 case "(($ac_try" in
18055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18056 *) ac_try_echo=$ac_try;;
18057 esac
18058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18059 (eval "$ac_link") 2>conftest.er1
18060 ac_status=$?
18061 grep -v '^ *+' conftest.er1 >conftest.err
18062 rm -f conftest.er1
18063 cat conftest.err >&5
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); } && {
18066 test -z "$ac_c_werror_flag" ||
18067 test ! -s conftest.err
18068 } && test -s conftest$ac_exeext &&
18069 $as_test_x conftest$ac_exeext; then
18070 eval "$as_ac_var=yes"
18071 else
18072 echo "$as_me: failed program was:" >&5
18073 sed 's/^/| /' conftest.$ac_ext >&5
18074
18075 eval "$as_ac_var=no"
18076 fi
18077
18078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18079 conftest$ac_exeext conftest.$ac_ext
18080 fi
18081 ac_res=`eval echo '${'$as_ac_var'}'`
18082 { echo "$as_me:$LINENO: result: $ac_res" >&5
18083 echo "${ECHO_T}$ac_res" >&6; }
18084 if test `eval echo '${'$as_ac_var'}'` = yes; then
18085 cat >>confdefs.h <<_ACEOF
18086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18087 _ACEOF
18088
18089 fi
18090 done
18091
18092
18093 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18094 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18095 # Irix 4.0.5F has the header but not the library.
18096 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18097 ac_have_func=yes
18098
18099 cat >>confdefs.h <<\_ACEOF
18100 #define SVR4 1
18101 _ACEOF
18102
18103 fi
18104
18105 if test $ac_have_func = no; then
18106 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18107 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18108 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18109 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18110 echo $ECHO_N "(cached) $ECHO_C" >&6
18111 fi
18112 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18113 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18114 else
18115 # Is the header compilable?
18116 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18117 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18118 cat >conftest.$ac_ext <<_ACEOF
18119 /* confdefs.h. */
18120 _ACEOF
18121 cat confdefs.h >>conftest.$ac_ext
18122 cat >>conftest.$ac_ext <<_ACEOF
18123 /* end confdefs.h. */
18124 $ac_includes_default
18125 #include <inq_stats/cpustats.h>
18126 _ACEOF
18127 rm -f conftest.$ac_objext
18128 if { (ac_try="$ac_compile"
18129 case "(($ac_try" in
18130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131 *) ac_try_echo=$ac_try;;
18132 esac
18133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134 (eval "$ac_compile") 2>conftest.er1
18135 ac_status=$?
18136 grep -v '^ *+' conftest.er1 >conftest.err
18137 rm -f conftest.er1
18138 cat conftest.err >&5
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); } && {
18141 test -z "$ac_c_werror_flag" ||
18142 test ! -s conftest.err
18143 } && test -s conftest.$ac_objext; then
18144 ac_header_compiler=yes
18145 else
18146 echo "$as_me: failed program was:" >&5
18147 sed 's/^/| /' conftest.$ac_ext >&5
18148
18149 ac_header_compiler=no
18150 fi
18151
18152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18154 echo "${ECHO_T}$ac_header_compiler" >&6; }
18155
18156 # Is the header present?
18157 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18158 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18159 cat >conftest.$ac_ext <<_ACEOF
18160 /* confdefs.h. */
18161 _ACEOF
18162 cat confdefs.h >>conftest.$ac_ext
18163 cat >>conftest.$ac_ext <<_ACEOF
18164 /* end confdefs.h. */
18165 #include <inq_stats/cpustats.h>
18166 _ACEOF
18167 if { (ac_try="$ac_cpp conftest.$ac_ext"
18168 case "(($ac_try" in
18169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18170 *) ac_try_echo=$ac_try;;
18171 esac
18172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18174 ac_status=$?
18175 grep -v '^ *+' conftest.er1 >conftest.err
18176 rm -f conftest.er1
18177 cat conftest.err >&5
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); } >/dev/null && {
18180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18181 test ! -s conftest.err
18182 }; then
18183 ac_header_preproc=yes
18184 else
18185 echo "$as_me: failed program was:" >&5
18186 sed 's/^/| /' conftest.$ac_ext >&5
18187
18188 ac_header_preproc=no
18189 fi
18190
18191 rm -f conftest.err conftest.$ac_ext
18192 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18193 echo "${ECHO_T}$ac_header_preproc" >&6; }
18194
18195 # So? What about this header?
18196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18197 yes:no: )
18198 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18199 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18200 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18201 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18202 ac_header_preproc=yes
18203 ;;
18204 no:yes:* )
18205 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18206 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18207 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18208 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18209 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18210 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18211 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18212 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18213 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18214 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18215 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18216 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18217
18218 ;;
18219 esac
18220 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18221 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18222 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18223 echo $ECHO_N "(cached) $ECHO_C" >&6
18224 else
18225 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18226 fi
18227 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18228 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18229
18230 fi
18231 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18232 ac_have_func=yes
18233
18234 cat >>confdefs.h <<\_ACEOF
18235 #define UMAX 1
18236 _ACEOF
18237
18238
18239 cat >>confdefs.h <<\_ACEOF
18240 #define UMAX4_3 1
18241 _ACEOF
18242
18243 fi
18244
18245
18246 fi
18247
18248 if test $ac_have_func = no; then
18249 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18250 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18251 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18252 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18253 echo $ECHO_N "(cached) $ECHO_C" >&6
18254 fi
18255 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18256 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18257 else
18258 # Is the header compilable?
18259 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18260 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18261 cat >conftest.$ac_ext <<_ACEOF
18262 /* confdefs.h. */
18263 _ACEOF
18264 cat confdefs.h >>conftest.$ac_ext
18265 cat >>conftest.$ac_ext <<_ACEOF
18266 /* end confdefs.h. */
18267 $ac_includes_default
18268 #include <sys/cpustats.h>
18269 _ACEOF
18270 rm -f conftest.$ac_objext
18271 if { (ac_try="$ac_compile"
18272 case "(($ac_try" in
18273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274 *) ac_try_echo=$ac_try;;
18275 esac
18276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277 (eval "$ac_compile") 2>conftest.er1
18278 ac_status=$?
18279 grep -v '^ *+' conftest.er1 >conftest.err
18280 rm -f conftest.er1
18281 cat conftest.err >&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); } && {
18284 test -z "$ac_c_werror_flag" ||
18285 test ! -s conftest.err
18286 } && test -s conftest.$ac_objext; then
18287 ac_header_compiler=yes
18288 else
18289 echo "$as_me: failed program was:" >&5
18290 sed 's/^/| /' conftest.$ac_ext >&5
18291
18292 ac_header_compiler=no
18293 fi
18294
18295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18296 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18297 echo "${ECHO_T}$ac_header_compiler" >&6; }
18298
18299 # Is the header present?
18300 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18301 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18302 cat >conftest.$ac_ext <<_ACEOF
18303 /* confdefs.h. */
18304 _ACEOF
18305 cat confdefs.h >>conftest.$ac_ext
18306 cat >>conftest.$ac_ext <<_ACEOF
18307 /* end confdefs.h. */
18308 #include <sys/cpustats.h>
18309 _ACEOF
18310 if { (ac_try="$ac_cpp conftest.$ac_ext"
18311 case "(($ac_try" in
18312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313 *) ac_try_echo=$ac_try;;
18314 esac
18315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18317 ac_status=$?
18318 grep -v '^ *+' conftest.er1 >conftest.err
18319 rm -f conftest.er1
18320 cat conftest.err >&5
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } >/dev/null && {
18323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18324 test ! -s conftest.err
18325 }; then
18326 ac_header_preproc=yes
18327 else
18328 echo "$as_me: failed program was:" >&5
18329 sed 's/^/| /' conftest.$ac_ext >&5
18330
18331 ac_header_preproc=no
18332 fi
18333
18334 rm -f conftest.err conftest.$ac_ext
18335 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18336 echo "${ECHO_T}$ac_header_preproc" >&6; }
18337
18338 # So? What about this header?
18339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18340 yes:no: )
18341 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18342 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18343 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18344 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18345 ac_header_preproc=yes
18346 ;;
18347 no:yes:* )
18348 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18349 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18350 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18351 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18352 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18353 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18354 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18355 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18356 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18357 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18358 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18359 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18360
18361 ;;
18362 esac
18363 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18364 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18365 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18366 echo $ECHO_N "(cached) $ECHO_C" >&6
18367 else
18368 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18369 fi
18370 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18371 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18372
18373 fi
18374 if test $ac_cv_header_sys_cpustats_h = yes; then
18375 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18376 #define UMAX 1
18377 _ACEOF
18378
18379 fi
18380
18381
18382 fi
18383
18384 if test $ac_have_func = no; then
18385
18386 for ac_header in mach/mach.h
18387 do
18388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18393 echo $ECHO_N "(cached) $ECHO_C" >&6
18394 fi
18395 ac_res=`eval echo '${'$as_ac_Header'}'`
18396 { echo "$as_me:$LINENO: result: $ac_res" >&5
18397 echo "${ECHO_T}$ac_res" >&6; }
18398 else
18399 # Is the header compilable?
18400 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18402 cat >conftest.$ac_ext <<_ACEOF
18403 /* confdefs.h. */
18404 _ACEOF
18405 cat confdefs.h >>conftest.$ac_ext
18406 cat >>conftest.$ac_ext <<_ACEOF
18407 /* end confdefs.h. */
18408 $ac_includes_default
18409 #include <$ac_header>
18410 _ACEOF
18411 rm -f conftest.$ac_objext
18412 if { (ac_try="$ac_compile"
18413 case "(($ac_try" in
18414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18415 *) ac_try_echo=$ac_try;;
18416 esac
18417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18418 (eval "$ac_compile") 2>conftest.er1
18419 ac_status=$?
18420 grep -v '^ *+' conftest.er1 >conftest.err
18421 rm -f conftest.er1
18422 cat conftest.err >&5
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); } && {
18425 test -z "$ac_c_werror_flag" ||
18426 test ! -s conftest.err
18427 } && test -s conftest.$ac_objext; then
18428 ac_header_compiler=yes
18429 else
18430 echo "$as_me: failed program was:" >&5
18431 sed 's/^/| /' conftest.$ac_ext >&5
18432
18433 ac_header_compiler=no
18434 fi
18435
18436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18437 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18438 echo "${ECHO_T}$ac_header_compiler" >&6; }
18439
18440 # Is the header present?
18441 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18443 cat >conftest.$ac_ext <<_ACEOF
18444 /* confdefs.h. */
18445 _ACEOF
18446 cat confdefs.h >>conftest.$ac_ext
18447 cat >>conftest.$ac_ext <<_ACEOF
18448 /* end confdefs.h. */
18449 #include <$ac_header>
18450 _ACEOF
18451 if { (ac_try="$ac_cpp conftest.$ac_ext"
18452 case "(($ac_try" in
18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454 *) ac_try_echo=$ac_try;;
18455 esac
18456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18458 ac_status=$?
18459 grep -v '^ *+' conftest.er1 >conftest.err
18460 rm -f conftest.er1
18461 cat conftest.err >&5
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); } >/dev/null && {
18464 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18465 test ! -s conftest.err
18466 }; then
18467 ac_header_preproc=yes
18468 else
18469 echo "$as_me: failed program was:" >&5
18470 sed 's/^/| /' conftest.$ac_ext >&5
18471
18472 ac_header_preproc=no
18473 fi
18474
18475 rm -f conftest.err conftest.$ac_ext
18476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18477 echo "${ECHO_T}$ac_header_preproc" >&6; }
18478
18479 # So? What about this header?
18480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18481 yes:no: )
18482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18486 ac_header_preproc=yes
18487 ;;
18488 no:yes:* )
18489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18496 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18501
18502 ;;
18503 esac
18504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18507 echo $ECHO_N "(cached) $ECHO_C" >&6
18508 else
18509 eval "$as_ac_Header=\$ac_header_preproc"
18510 fi
18511 ac_res=`eval echo '${'$as_ac_Header'}'`
18512 { echo "$as_me:$LINENO: result: $ac_res" >&5
18513 echo "${ECHO_T}$ac_res" >&6; }
18514
18515 fi
18516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18517 cat >>confdefs.h <<_ACEOF
18518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18519 _ACEOF
18520
18521 fi
18522
18523 done
18524
18525 fi
18526
18527
18528 for ac_header in nlist.h
18529 do
18530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18535 echo $ECHO_N "(cached) $ECHO_C" >&6
18536 fi
18537 ac_res=`eval echo '${'$as_ac_Header'}'`
18538 { echo "$as_me:$LINENO: result: $ac_res" >&5
18539 echo "${ECHO_T}$ac_res" >&6; }
18540 else
18541 # Is the header compilable?
18542 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18544 cat >conftest.$ac_ext <<_ACEOF
18545 /* confdefs.h. */
18546 _ACEOF
18547 cat confdefs.h >>conftest.$ac_ext
18548 cat >>conftest.$ac_ext <<_ACEOF
18549 /* end confdefs.h. */
18550 $ac_includes_default
18551 #include <$ac_header>
18552 _ACEOF
18553 rm -f conftest.$ac_objext
18554 if { (ac_try="$ac_compile"
18555 case "(($ac_try" in
18556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18557 *) ac_try_echo=$ac_try;;
18558 esac
18559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18560 (eval "$ac_compile") 2>conftest.er1
18561 ac_status=$?
18562 grep -v '^ *+' conftest.er1 >conftest.err
18563 rm -f conftest.er1
18564 cat conftest.err >&5
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); } && {
18567 test -z "$ac_c_werror_flag" ||
18568 test ! -s conftest.err
18569 } && test -s conftest.$ac_objext; then
18570 ac_header_compiler=yes
18571 else
18572 echo "$as_me: failed program was:" >&5
18573 sed 's/^/| /' conftest.$ac_ext >&5
18574
18575 ac_header_compiler=no
18576 fi
18577
18578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18580 echo "${ECHO_T}$ac_header_compiler" >&6; }
18581
18582 # Is the header present?
18583 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18585 cat >conftest.$ac_ext <<_ACEOF
18586 /* confdefs.h. */
18587 _ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h. */
18591 #include <$ac_header>
18592 _ACEOF
18593 if { (ac_try="$ac_cpp conftest.$ac_ext"
18594 case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18597 esac
18598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18600 ac_status=$?
18601 grep -v '^ *+' conftest.er1 >conftest.err
18602 rm -f conftest.er1
18603 cat conftest.err >&5
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); } >/dev/null && {
18606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18607 test ! -s conftest.err
18608 }; then
18609 ac_header_preproc=yes
18610 else
18611 echo "$as_me: failed program was:" >&5
18612 sed 's/^/| /' conftest.$ac_ext >&5
18613
18614 ac_header_preproc=no
18615 fi
18616
18617 rm -f conftest.err conftest.$ac_ext
18618 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18619 echo "${ECHO_T}$ac_header_preproc" >&6; }
18620
18621 # So? What about this header?
18622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18623 yes:no: )
18624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18627 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18628 ac_header_preproc=yes
18629 ;;
18630 no:yes:* )
18631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18632 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18634 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18636 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18638 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18642 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18643
18644 ;;
18645 esac
18646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18649 echo $ECHO_N "(cached) $ECHO_C" >&6
18650 else
18651 eval "$as_ac_Header=\$ac_header_preproc"
18652 fi
18653 ac_res=`eval echo '${'$as_ac_Header'}'`
18654 { echo "$as_me:$LINENO: result: $ac_res" >&5
18655 echo "${ECHO_T}$ac_res" >&6; }
18656
18657 fi
18658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18659 cat >>confdefs.h <<_ACEOF
18660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18661 _ACEOF
18662 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18663 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18664 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18665 echo $ECHO_N "(cached) $ECHO_C" >&6
18666 else
18667 cat >conftest.$ac_ext <<_ACEOF
18668 /* confdefs.h. */
18669 _ACEOF
18670 cat confdefs.h >>conftest.$ac_ext
18671 cat >>conftest.$ac_ext <<_ACEOF
18672 /* end confdefs.h. */
18673 #include <nlist.h>
18674
18675 int
18676 main ()
18677 {
18678 static struct nlist ac_aggr;
18679 if (ac_aggr.n_un.n_name)
18680 return 0;
18681 ;
18682 return 0;
18683 }
18684 _ACEOF
18685 rm -f conftest.$ac_objext
18686 if { (ac_try="$ac_compile"
18687 case "(($ac_try" in
18688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18689 *) ac_try_echo=$ac_try;;
18690 esac
18691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18692 (eval "$ac_compile") 2>conftest.er1
18693 ac_status=$?
18694 grep -v '^ *+' conftest.er1 >conftest.err
18695 rm -f conftest.er1
18696 cat conftest.err >&5
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); } && {
18699 test -z "$ac_c_werror_flag" ||
18700 test ! -s conftest.err
18701 } && test -s conftest.$ac_objext; then
18702 ac_cv_member_struct_nlist_n_un_n_name=yes
18703 else
18704 echo "$as_me: failed program was:" >&5
18705 sed 's/^/| /' conftest.$ac_ext >&5
18706
18707 cat >conftest.$ac_ext <<_ACEOF
18708 /* confdefs.h. */
18709 _ACEOF
18710 cat confdefs.h >>conftest.$ac_ext
18711 cat >>conftest.$ac_ext <<_ACEOF
18712 /* end confdefs.h. */
18713 #include <nlist.h>
18714
18715 int
18716 main ()
18717 {
18718 static struct nlist ac_aggr;
18719 if (sizeof ac_aggr.n_un.n_name)
18720 return 0;
18721 ;
18722 return 0;
18723 }
18724 _ACEOF
18725 rm -f conftest.$ac_objext
18726 if { (ac_try="$ac_compile"
18727 case "(($ac_try" in
18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18730 esac
18731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732 (eval "$ac_compile") 2>conftest.er1
18733 ac_status=$?
18734 grep -v '^ *+' conftest.er1 >conftest.err
18735 rm -f conftest.er1
18736 cat conftest.err >&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); } && {
18739 test -z "$ac_c_werror_flag" ||
18740 test ! -s conftest.err
18741 } && test -s conftest.$ac_objext; then
18742 ac_cv_member_struct_nlist_n_un_n_name=yes
18743 else
18744 echo "$as_me: failed program was:" >&5
18745 sed 's/^/| /' conftest.$ac_ext >&5
18746
18747 ac_cv_member_struct_nlist_n_un_n_name=no
18748 fi
18749
18750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18751 fi
18752
18753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18754 fi
18755 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18756 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18757 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18758
18759 cat >>confdefs.h <<_ACEOF
18760 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18761 _ACEOF
18762
18763
18764 cat >>confdefs.h <<\_ACEOF
18765 #define NLIST_NAME_UNION 1
18766 _ACEOF
18767
18768 fi
18769
18770
18771 fi
18772
18773 done
18774
18775 fi
18776 done
18777
18778
18779 # Some definitions of getloadavg require that the program be installed setgid.
18780 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18781 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18782 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18783 echo $ECHO_N "(cached) $ECHO_C" >&6
18784 else
18785 cat >conftest.$ac_ext <<_ACEOF
18786 /* confdefs.h. */
18787 _ACEOF
18788 cat confdefs.h >>conftest.$ac_ext
18789 cat >>conftest.$ac_ext <<_ACEOF
18790 /* end confdefs.h. */
18791 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18792 #ifdef LDAV_PRIVILEGED
18793 Yowza Am I SETGID yet
18794 #endif
18795 _ACEOF
18796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18797 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18798 ac_cv_func_getloadavg_setgid=yes
18799 else
18800 ac_cv_func_getloadavg_setgid=no
18801 fi
18802 rm -f conftest*
18803
18804 fi
18805 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18806 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18807 if test $ac_cv_func_getloadavg_setgid = yes; then
18808 NEED_SETGID=true
18809
18810 cat >>confdefs.h <<\_ACEOF
18811 #define GETLOADAVG_PRIVILEGED 1
18812 _ACEOF
18813
18814 else
18815 NEED_SETGID=false
18816 fi
18817
18818 if test $ac_cv_func_getloadavg_setgid = yes; then
18819 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18820 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18821 if test "${ac_cv_group_kmem+set}" = set; then
18822 echo $ECHO_N "(cached) $ECHO_C" >&6
18823 else
18824 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18825 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18826 # If we got an error (system does not support symlinks), try without -L.
18827 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18828 ac_cv_group_kmem=`echo $ac_ls_output \
18829 | sed -ne 's/[ ][ ]*/ /g;
18830 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18831 / /s/.* //;p;'`
18832
18833 fi
18834 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18835 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18836 KMEM_GROUP=$ac_cv_group_kmem
18837 fi
18838 if test "x$ac_save_LIBS" = x; then
18839 GETLOADAVG_LIBS=$LIBS
18840 else
18841 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18842 fi
18843 LIBS=$ac_save_LIBS
18844
18845
18846
18847 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18848 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18849 if test "${ac_cv_sys_largefile_source+set}" = set; then
18850 echo $ECHO_N "(cached) $ECHO_C" >&6
18851 else
18852 while :; do
18853 cat >conftest.$ac_ext <<_ACEOF
18854 /* confdefs.h. */
18855 _ACEOF
18856 cat confdefs.h >>conftest.$ac_ext
18857 cat >>conftest.$ac_ext <<_ACEOF
18858 /* end confdefs.h. */
18859 #include <stdio.h>
18860 int
18861 main ()
18862 {
18863 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18864 ;
18865 return 0;
18866 }
18867 _ACEOF
18868 rm -f conftest.$ac_objext conftest$ac_exeext
18869 if { (ac_try="$ac_link"
18870 case "(($ac_try" in
18871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18872 *) ac_try_echo=$ac_try;;
18873 esac
18874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18875 (eval "$ac_link") 2>conftest.er1
18876 ac_status=$?
18877 grep -v '^ *+' conftest.er1 >conftest.err
18878 rm -f conftest.er1
18879 cat conftest.err >&5
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); } && {
18882 test -z "$ac_c_werror_flag" ||
18883 test ! -s conftest.err
18884 } && test -s conftest$ac_exeext &&
18885 $as_test_x conftest$ac_exeext; then
18886 ac_cv_sys_largefile_source=no; break
18887 else
18888 echo "$as_me: failed program was:" >&5
18889 sed 's/^/| /' conftest.$ac_ext >&5
18890
18891
18892 fi
18893
18894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18895 conftest$ac_exeext conftest.$ac_ext
18896 cat >conftest.$ac_ext <<_ACEOF
18897 /* confdefs.h. */
18898 _ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h. */
18902 #define _LARGEFILE_SOURCE 1
18903 #include <stdio.h>
18904 int
18905 main ()
18906 {
18907 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18908 ;
18909 return 0;
18910 }
18911 _ACEOF
18912 rm -f conftest.$ac_objext conftest$ac_exeext
18913 if { (ac_try="$ac_link"
18914 case "(($ac_try" in
18915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916 *) ac_try_echo=$ac_try;;
18917 esac
18918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18919 (eval "$ac_link") 2>conftest.er1
18920 ac_status=$?
18921 grep -v '^ *+' conftest.er1 >conftest.err
18922 rm -f conftest.er1
18923 cat conftest.err >&5
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); } && {
18926 test -z "$ac_c_werror_flag" ||
18927 test ! -s conftest.err
18928 } && test -s conftest$ac_exeext &&
18929 $as_test_x conftest$ac_exeext; then
18930 ac_cv_sys_largefile_source=1; break
18931 else
18932 echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18934
18935
18936 fi
18937
18938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18939 conftest$ac_exeext conftest.$ac_ext
18940 ac_cv_sys_largefile_source=unknown
18941 break
18942 done
18943 fi
18944 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18945 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18946 case $ac_cv_sys_largefile_source in #(
18947 no | unknown) ;;
18948 *)
18949 cat >>confdefs.h <<_ACEOF
18950 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18951 _ACEOF
18952 ;;
18953 esac
18954 rm -f conftest*
18955
18956 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18957 # in glibc 2.1.3, but that breaks too many other things.
18958 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18959 if test $ac_cv_sys_largefile_source != unknown; then
18960
18961 cat >>confdefs.h <<\_ACEOF
18962 #define HAVE_FSEEKO 1
18963 _ACEOF
18964
18965 fi
18966
18967
18968 # Configure getopt.
18969 # getopt.m4 serial 10
18970
18971 # The getopt module assume you want GNU getopt, with getopt_long etc,
18972 # rather than vanilla POSIX getopt. This means your your code should
18973 # always include <getopt.h> for the getopt prototypes.
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985 # Prerequisites of lib/getopt*.
18986
18987
18988
18989
18990 GETOPT_H=
18991
18992 for ac_header in getopt.h
18993 do
18994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18999 echo $ECHO_N "(cached) $ECHO_C" >&6
19000 fi
19001 ac_res=`eval echo '${'$as_ac_Header'}'`
19002 { echo "$as_me:$LINENO: result: $ac_res" >&5
19003 echo "${ECHO_T}$ac_res" >&6; }
19004 else
19005 # Is the header compilable?
19006 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19008 cat >conftest.$ac_ext <<_ACEOF
19009 /* confdefs.h. */
19010 _ACEOF
19011 cat confdefs.h >>conftest.$ac_ext
19012 cat >>conftest.$ac_ext <<_ACEOF
19013 /* end confdefs.h. */
19014 $ac_includes_default
19015 #include <$ac_header>
19016 _ACEOF
19017 rm -f conftest.$ac_objext
19018 if { (ac_try="$ac_compile"
19019 case "(($ac_try" in
19020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021 *) ac_try_echo=$ac_try;;
19022 esac
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024 (eval "$ac_compile") 2>conftest.er1
19025 ac_status=$?
19026 grep -v '^ *+' conftest.er1 >conftest.err
19027 rm -f conftest.er1
19028 cat conftest.err >&5
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); } && {
19031 test -z "$ac_c_werror_flag" ||
19032 test ! -s conftest.err
19033 } && test -s conftest.$ac_objext; then
19034 ac_header_compiler=yes
19035 else
19036 echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.$ac_ext >&5
19038
19039 ac_header_compiler=no
19040 fi
19041
19042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19044 echo "${ECHO_T}$ac_header_compiler" >&6; }
19045
19046 # Is the header present?
19047 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19049 cat >conftest.$ac_ext <<_ACEOF
19050 /* confdefs.h. */
19051 _ACEOF
19052 cat confdefs.h >>conftest.$ac_ext
19053 cat >>conftest.$ac_ext <<_ACEOF
19054 /* end confdefs.h. */
19055 #include <$ac_header>
19056 _ACEOF
19057 if { (ac_try="$ac_cpp conftest.$ac_ext"
19058 case "(($ac_try" in
19059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19060 *) ac_try_echo=$ac_try;;
19061 esac
19062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19064 ac_status=$?
19065 grep -v '^ *+' conftest.er1 >conftest.err
19066 rm -f conftest.er1
19067 cat conftest.err >&5
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); } >/dev/null && {
19070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19071 test ! -s conftest.err
19072 }; then
19073 ac_header_preproc=yes
19074 else
19075 echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19077
19078 ac_header_preproc=no
19079 fi
19080
19081 rm -f conftest.err conftest.$ac_ext
19082 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19083 echo "${ECHO_T}$ac_header_preproc" >&6; }
19084
19085 # So? What about this header?
19086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19087 yes:no: )
19088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19092 ac_header_preproc=yes
19093 ;;
19094 no:yes:* )
19095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19098 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19099 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19101 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19102 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19105 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19107
19108 ;;
19109 esac
19110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19113 echo $ECHO_N "(cached) $ECHO_C" >&6
19114 else
19115 eval "$as_ac_Header=\$ac_header_preproc"
19116 fi
19117 ac_res=`eval echo '${'$as_ac_Header'}'`
19118 { echo "$as_me:$LINENO: result: $ac_res" >&5
19119 echo "${ECHO_T}$ac_res" >&6; }
19120
19121 fi
19122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19123 cat >>confdefs.h <<_ACEOF
19124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19125 _ACEOF
19126
19127 else
19128 GETOPT_H=getopt.h
19129 fi
19130
19131 done
19132
19133 if test -z "$GETOPT_H"; then
19134
19135 for ac_func in getopt_long_only
19136 do
19137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19141 echo $ECHO_N "(cached) $ECHO_C" >&6
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19151 #define $ac_func innocuous_$ac_func
19152
19153 /* System header to define __stub macros and hopefully few prototypes,
19154 which can conflict with char $ac_func (); below.
19155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19156 <limits.h> exists even on freestanding compilers. */
19157
19158 #ifdef __STDC__
19159 # include <limits.h>
19160 #else
19161 # include <assert.h>
19162 #endif
19163
19164 #undef $ac_func
19165
19166 /* Override any GCC internal prototype to avoid an error.
19167 Use char because int might match the return type of a GCC
19168 builtin and then its argument prototype would still apply. */
19169 #ifdef __cplusplus
19170 extern "C"
19171 #endif
19172 char $ac_func ();
19173 /* The GNU C library defines this for functions which it implements
19174 to always fail with ENOSYS. Some functions are actually named
19175 something starting with __ and the normal name is an alias. */
19176 #if defined __stub_$ac_func || defined __stub___$ac_func
19177 choke me
19178 #endif
19179
19180 int
19181 main ()
19182 {
19183 return $ac_func ();
19184 ;
19185 return 0;
19186 }
19187 _ACEOF
19188 rm -f conftest.$ac_objext conftest$ac_exeext
19189 if { (ac_try="$ac_link"
19190 case "(($ac_try" in
19191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192 *) ac_try_echo=$ac_try;;
19193 esac
19194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195 (eval "$ac_link") 2>conftest.er1
19196 ac_status=$?
19197 grep -v '^ *+' conftest.er1 >conftest.err
19198 rm -f conftest.er1
19199 cat conftest.err >&5
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); } && {
19202 test -z "$ac_c_werror_flag" ||
19203 test ! -s conftest.err
19204 } && test -s conftest$ac_exeext &&
19205 $as_test_x conftest$ac_exeext; then
19206 eval "$as_ac_var=yes"
19207 else
19208 echo "$as_me: failed program was:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19210
19211 eval "$as_ac_var=no"
19212 fi
19213
19214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19215 conftest$ac_exeext conftest.$ac_ext
19216 fi
19217 ac_res=`eval echo '${'$as_ac_var'}'`
19218 { echo "$as_me:$LINENO: result: $ac_res" >&5
19219 echo "${ECHO_T}$ac_res" >&6; }
19220 if test `eval echo '${'$as_ac_var'}'` = yes; then
19221 cat >>confdefs.h <<_ACEOF
19222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19223 _ACEOF
19224
19225 else
19226 GETOPT_H=getopt.h
19227 fi
19228 done
19229
19230 fi
19231
19232 if test -z "$GETOPT_H"; then
19233 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19234 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19235 if test "${ac_cv_have_decl_optreset+set}" = set; then
19236 echo $ECHO_N "(cached) $ECHO_C" >&6
19237 else
19238 cat >conftest.$ac_ext <<_ACEOF
19239 /* confdefs.h. */
19240 _ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h. */
19244 #include <getopt.h>
19245
19246 int
19247 main ()
19248 {
19249 #ifndef optreset
19250 (void) optreset;
19251 #endif
19252
19253 ;
19254 return 0;
19255 }
19256 _ACEOF
19257 rm -f conftest.$ac_objext
19258 if { (ac_try="$ac_compile"
19259 case "(($ac_try" in
19260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261 *) ac_try_echo=$ac_try;;
19262 esac
19263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19264 (eval "$ac_compile") 2>conftest.er1
19265 ac_status=$?
19266 grep -v '^ *+' conftest.er1 >conftest.err
19267 rm -f conftest.er1
19268 cat conftest.err >&5
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); } && {
19271 test -z "$ac_c_werror_flag" ||
19272 test ! -s conftest.err
19273 } && test -s conftest.$ac_objext; then
19274 ac_cv_have_decl_optreset=yes
19275 else
19276 echo "$as_me: failed program was:" >&5
19277 sed 's/^/| /' conftest.$ac_ext >&5
19278
19279 ac_cv_have_decl_optreset=no
19280 fi
19281
19282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19283 fi
19284 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19285 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19286 if test $ac_cv_have_decl_optreset = yes; then
19287 GETOPT_H=getopt.h
19288 fi
19289
19290 fi
19291
19292 if test -z "$GETOPT_H"; then
19293 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19294 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19295 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19296 echo $ECHO_N "(cached) $ECHO_C" >&6
19297 else
19298 if test "$cross_compiling" = yes; then
19299 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19300 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19301 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19302 echo $ECHO_N "(cached) $ECHO_C" >&6
19303 else
19304 cat >conftest.$ac_ext <<_ACEOF
19305 /* confdefs.h. */
19306 _ACEOF
19307 cat confdefs.h >>conftest.$ac_ext
19308 cat >>conftest.$ac_ext <<_ACEOF
19309 /* end confdefs.h. */
19310 #include <getopt.h>
19311
19312 int
19313 main ()
19314 {
19315 #ifndef getopt_clip
19316 (void) getopt_clip;
19317 #endif
19318
19319 ;
19320 return 0;
19321 }
19322 _ACEOF
19323 rm -f conftest.$ac_objext
19324 if { (ac_try="$ac_compile"
19325 case "(($ac_try" in
19326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327 *) ac_try_echo=$ac_try;;
19328 esac
19329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330 (eval "$ac_compile") 2>conftest.er1
19331 ac_status=$?
19332 grep -v '^ *+' conftest.er1 >conftest.err
19333 rm -f conftest.er1
19334 cat conftest.err >&5
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); } && {
19337 test -z "$ac_c_werror_flag" ||
19338 test ! -s conftest.err
19339 } && test -s conftest.$ac_objext; then
19340 ac_cv_have_decl_getopt_clip=yes
19341 else
19342 echo "$as_me: failed program was:" >&5
19343 sed 's/^/| /' conftest.$ac_ext >&5
19344
19345 ac_cv_have_decl_getopt_clip=no
19346 fi
19347
19348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19349 fi
19350 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19351 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19352 if test $ac_cv_have_decl_getopt_clip = yes; then
19353 gl_cv_func_gnu_getopt=no
19354 else
19355 gl_cv_func_gnu_getopt=yes
19356 fi
19357
19358 else
19359 cat >conftest.$ac_ext <<_ACEOF
19360 /* confdefs.h. */
19361 _ACEOF
19362 cat confdefs.h >>conftest.$ac_ext
19363 cat >>conftest.$ac_ext <<_ACEOF
19364 /* end confdefs.h. */
19365 #include <getopt.h>
19366 int
19367 main ()
19368 {
19369
19370 char *myargv[3];
19371 myargv[0] = "conftest";
19372 myargv[1] = "-+";
19373 myargv[2] = 0;
19374 return getopt (2, myargv, "+a") != '?';
19375
19376 ;
19377 return 0;
19378 }
19379 _ACEOF
19380 rm -f conftest$ac_exeext
19381 if { (ac_try="$ac_link"
19382 case "(($ac_try" in
19383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19384 *) ac_try_echo=$ac_try;;
19385 esac
19386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19387 (eval "$ac_link") 2>&5
19388 ac_status=$?
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19391 { (case "(($ac_try" in
19392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393 *) ac_try_echo=$ac_try;;
19394 esac
19395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19396 (eval "$ac_try") 2>&5
19397 ac_status=$?
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); }; }; then
19400 gl_cv_func_gnu_getopt=yes
19401 else
19402 echo "$as_me: program exited with status $ac_status" >&5
19403 echo "$as_me: failed program was:" >&5
19404 sed 's/^/| /' conftest.$ac_ext >&5
19405
19406 ( exit $ac_status )
19407 gl_cv_func_gnu_getopt=no
19408 fi
19409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19410 fi
19411
19412
19413 fi
19414 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19415 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19416 if test "$gl_cv_func_gnu_getopt" = "no"; then
19417 GETOPT_H=getopt.h
19418 fi
19419 fi
19420
19421
19422
19423 if test -n "$GETOPT_H"; then
19424
19425
19426 GETOPT_H=getopt.h
19427
19428 cat >>confdefs.h <<\_ACEOF
19429 #define __GETOPT_PREFIX rpl_
19430 _ACEOF
19431
19432
19433
19434 :
19435 GETOPTOBJS='getopt.o getopt1.o'
19436
19437 fi
19438
19439
19440
19441
19442 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19443 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19444 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19445 echo $ECHO_N "(cached) $ECHO_C" >&6
19446 else
19447 # Use it with a single arg.
19448 cat >conftest.$ac_ext <<_ACEOF
19449 /* confdefs.h. */
19450 _ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h. */
19454 $ac_includes_default
19455 int
19456 main ()
19457 {
19458 getpgrp (0);
19459 ;
19460 return 0;
19461 }
19462 _ACEOF
19463 rm -f conftest.$ac_objext
19464 if { (ac_try="$ac_compile"
19465 case "(($ac_try" in
19466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19467 *) ac_try_echo=$ac_try;;
19468 esac
19469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19470 (eval "$ac_compile") 2>conftest.er1
19471 ac_status=$?
19472 grep -v '^ *+' conftest.er1 >conftest.err
19473 rm -f conftest.er1
19474 cat conftest.err >&5
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); } && {
19477 test -z "$ac_c_werror_flag" ||
19478 test ! -s conftest.err
19479 } && test -s conftest.$ac_objext; then
19480 ac_cv_func_getpgrp_void=no
19481 else
19482 echo "$as_me: failed program was:" >&5
19483 sed 's/^/| /' conftest.$ac_ext >&5
19484
19485 ac_cv_func_getpgrp_void=yes
19486 fi
19487
19488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19489
19490 fi
19491 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19492 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19493 if test $ac_cv_func_getpgrp_void = yes; then
19494
19495 cat >>confdefs.h <<\_ACEOF
19496 #define GETPGRP_VOID 1
19497 _ACEOF
19498
19499 fi
19500
19501
19502
19503 for ac_func in strftime
19504 do
19505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19506 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19508 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19509 echo $ECHO_N "(cached) $ECHO_C" >&6
19510 else
19511 cat >conftest.$ac_ext <<_ACEOF
19512 /* confdefs.h. */
19513 _ACEOF
19514 cat confdefs.h >>conftest.$ac_ext
19515 cat >>conftest.$ac_ext <<_ACEOF
19516 /* end confdefs.h. */
19517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19519 #define $ac_func innocuous_$ac_func
19520
19521 /* System header to define __stub macros and hopefully few prototypes,
19522 which can conflict with char $ac_func (); below.
19523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19524 <limits.h> exists even on freestanding compilers. */
19525
19526 #ifdef __STDC__
19527 # include <limits.h>
19528 #else
19529 # include <assert.h>
19530 #endif
19531
19532 #undef $ac_func
19533
19534 /* Override any GCC internal prototype to avoid an error.
19535 Use char because int might match the return type of a GCC
19536 builtin and then its argument prototype would still apply. */
19537 #ifdef __cplusplus
19538 extern "C"
19539 #endif
19540 char $ac_func ();
19541 /* The GNU C library defines this for functions which it implements
19542 to always fail with ENOSYS. Some functions are actually named
19543 something starting with __ and the normal name is an alias. */
19544 #if defined __stub_$ac_func || defined __stub___$ac_func
19545 choke me
19546 #endif
19547
19548 int
19549 main ()
19550 {
19551 return $ac_func ();
19552 ;
19553 return 0;
19554 }
19555 _ACEOF
19556 rm -f conftest.$ac_objext conftest$ac_exeext
19557 if { (ac_try="$ac_link"
19558 case "(($ac_try" in
19559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560 *) ac_try_echo=$ac_try;;
19561 esac
19562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19563 (eval "$ac_link") 2>conftest.er1
19564 ac_status=$?
19565 grep -v '^ *+' conftest.er1 >conftest.err
19566 rm -f conftest.er1
19567 cat conftest.err >&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); } && {
19570 test -z "$ac_c_werror_flag" ||
19571 test ! -s conftest.err
19572 } && test -s conftest$ac_exeext &&
19573 $as_test_x conftest$ac_exeext; then
19574 eval "$as_ac_var=yes"
19575 else
19576 echo "$as_me: failed program was:" >&5
19577 sed 's/^/| /' conftest.$ac_ext >&5
19578
19579 eval "$as_ac_var=no"
19580 fi
19581
19582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19583 conftest$ac_exeext conftest.$ac_ext
19584 fi
19585 ac_res=`eval echo '${'$as_ac_var'}'`
19586 { echo "$as_me:$LINENO: result: $ac_res" >&5
19587 echo "${ECHO_T}$ac_res" >&6; }
19588 if test `eval echo '${'$as_ac_var'}'` = yes; then
19589 cat >>confdefs.h <<_ACEOF
19590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19591 _ACEOF
19592
19593 else
19594 # strftime is in -lintl on SCO UNIX.
19595 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19596 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19597 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19598 echo $ECHO_N "(cached) $ECHO_C" >&6
19599 else
19600 ac_check_lib_save_LIBS=$LIBS
19601 LIBS="-lintl $LIBS"
19602 cat >conftest.$ac_ext <<_ACEOF
19603 /* confdefs.h. */
19604 _ACEOF
19605 cat confdefs.h >>conftest.$ac_ext
19606 cat >>conftest.$ac_ext <<_ACEOF
19607 /* end confdefs.h. */
19608
19609 /* Override any GCC internal prototype to avoid an error.
19610 Use char because int might match the return type of a GCC
19611 builtin and then its argument prototype would still apply. */
19612 #ifdef __cplusplus
19613 extern "C"
19614 #endif
19615 char strftime ();
19616 int
19617 main ()
19618 {
19619 return strftime ();
19620 ;
19621 return 0;
19622 }
19623 _ACEOF
19624 rm -f conftest.$ac_objext conftest$ac_exeext
19625 if { (ac_try="$ac_link"
19626 case "(($ac_try" in
19627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628 *) ac_try_echo=$ac_try;;
19629 esac
19630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19631 (eval "$ac_link") 2>conftest.er1
19632 ac_status=$?
19633 grep -v '^ *+' conftest.er1 >conftest.err
19634 rm -f conftest.er1
19635 cat conftest.err >&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } && {
19638 test -z "$ac_c_werror_flag" ||
19639 test ! -s conftest.err
19640 } && test -s conftest$ac_exeext &&
19641 $as_test_x conftest$ac_exeext; then
19642 ac_cv_lib_intl_strftime=yes
19643 else
19644 echo "$as_me: failed program was:" >&5
19645 sed 's/^/| /' conftest.$ac_ext >&5
19646
19647 ac_cv_lib_intl_strftime=no
19648 fi
19649
19650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19651 conftest$ac_exeext conftest.$ac_ext
19652 LIBS=$ac_check_lib_save_LIBS
19653 fi
19654 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19655 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19656 if test $ac_cv_lib_intl_strftime = yes; then
19657 cat >>confdefs.h <<\_ACEOF
19658 #define HAVE_STRFTIME 1
19659 _ACEOF
19660
19661 LIBS="-lintl $LIBS"
19662 fi
19663
19664 fi
19665 done
19666
19667
19668 # UNIX98 PTYs.
19669
19670 for ac_func in grantpt
19671 do
19672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19673 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19675 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19676 echo $ECHO_N "(cached) $ECHO_C" >&6
19677 else
19678 cat >conftest.$ac_ext <<_ACEOF
19679 /* confdefs.h. */
19680 _ACEOF
19681 cat confdefs.h >>conftest.$ac_ext
19682 cat >>conftest.$ac_ext <<_ACEOF
19683 /* end confdefs.h. */
19684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19686 #define $ac_func innocuous_$ac_func
19687
19688 /* System header to define __stub macros and hopefully few prototypes,
19689 which can conflict with char $ac_func (); below.
19690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19691 <limits.h> exists even on freestanding compilers. */
19692
19693 #ifdef __STDC__
19694 # include <limits.h>
19695 #else
19696 # include <assert.h>
19697 #endif
19698
19699 #undef $ac_func
19700
19701 /* Override any GCC internal prototype to avoid an error.
19702 Use char because int might match the return type of a GCC
19703 builtin and then its argument prototype would still apply. */
19704 #ifdef __cplusplus
19705 extern "C"
19706 #endif
19707 char $ac_func ();
19708 /* The GNU C library defines this for functions which it implements
19709 to always fail with ENOSYS. Some functions are actually named
19710 something starting with __ and the normal name is an alias. */
19711 #if defined __stub_$ac_func || defined __stub___$ac_func
19712 choke me
19713 #endif
19714
19715 int
19716 main ()
19717 {
19718 return $ac_func ();
19719 ;
19720 return 0;
19721 }
19722 _ACEOF
19723 rm -f conftest.$ac_objext conftest$ac_exeext
19724 if { (ac_try="$ac_link"
19725 case "(($ac_try" in
19726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19727 *) ac_try_echo=$ac_try;;
19728 esac
19729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19730 (eval "$ac_link") 2>conftest.er1
19731 ac_status=$?
19732 grep -v '^ *+' conftest.er1 >conftest.err
19733 rm -f conftest.er1
19734 cat conftest.err >&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); } && {
19737 test -z "$ac_c_werror_flag" ||
19738 test ! -s conftest.err
19739 } && test -s conftest$ac_exeext &&
19740 $as_test_x conftest$ac_exeext; then
19741 eval "$as_ac_var=yes"
19742 else
19743 echo "$as_me: failed program was:" >&5
19744 sed 's/^/| /' conftest.$ac_ext >&5
19745
19746 eval "$as_ac_var=no"
19747 fi
19748
19749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19750 conftest$ac_exeext conftest.$ac_ext
19751 fi
19752 ac_res=`eval echo '${'$as_ac_var'}'`
19753 { echo "$as_me:$LINENO: result: $ac_res" >&5
19754 echo "${ECHO_T}$ac_res" >&6; }
19755 if test `eval echo '${'$as_ac_var'}'` = yes; then
19756 cat >>confdefs.h <<_ACEOF
19757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19758 _ACEOF
19759
19760 fi
19761 done
19762
19763
19764 # PTY-related GNU extensions.
19765
19766 for ac_func in getpt
19767 do
19768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19769 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19772 echo $ECHO_N "(cached) $ECHO_C" >&6
19773 else
19774 cat >conftest.$ac_ext <<_ACEOF
19775 /* confdefs.h. */
19776 _ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h. */
19780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19782 #define $ac_func innocuous_$ac_func
19783
19784 /* System header to define __stub macros and hopefully few prototypes,
19785 which can conflict with char $ac_func (); below.
19786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19787 <limits.h> exists even on freestanding compilers. */
19788
19789 #ifdef __STDC__
19790 # include <limits.h>
19791 #else
19792 # include <assert.h>
19793 #endif
19794
19795 #undef $ac_func
19796
19797 /* Override any GCC internal prototype to avoid an error.
19798 Use char because int might match the return type of a GCC
19799 builtin and then its argument prototype would still apply. */
19800 #ifdef __cplusplus
19801 extern "C"
19802 #endif
19803 char $ac_func ();
19804 /* The GNU C library defines this for functions which it implements
19805 to always fail with ENOSYS. Some functions are actually named
19806 something starting with __ and the normal name is an alias. */
19807 #if defined __stub_$ac_func || defined __stub___$ac_func
19808 choke me
19809 #endif
19810
19811 int
19812 main ()
19813 {
19814 return $ac_func ();
19815 ;
19816 return 0;
19817 }
19818 _ACEOF
19819 rm -f conftest.$ac_objext conftest$ac_exeext
19820 if { (ac_try="$ac_link"
19821 case "(($ac_try" in
19822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823 *) ac_try_echo=$ac_try;;
19824 esac
19825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19826 (eval "$ac_link") 2>conftest.er1
19827 ac_status=$?
19828 grep -v '^ *+' conftest.er1 >conftest.err
19829 rm -f conftest.er1
19830 cat conftest.err >&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } && {
19833 test -z "$ac_c_werror_flag" ||
19834 test ! -s conftest.err
19835 } && test -s conftest$ac_exeext &&
19836 $as_test_x conftest$ac_exeext; then
19837 eval "$as_ac_var=yes"
19838 else
19839 echo "$as_me: failed program was:" >&5
19840 sed 's/^/| /' conftest.$ac_ext >&5
19841
19842 eval "$as_ac_var=no"
19843 fi
19844
19845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19846 conftest$ac_exeext conftest.$ac_ext
19847 fi
19848 ac_res=`eval echo '${'$as_ac_var'}'`
19849 { echo "$as_me:$LINENO: result: $ac_res" >&5
19850 echo "${ECHO_T}$ac_res" >&6; }
19851 if test `eval echo '${'$as_ac_var'}'` = yes; then
19852 cat >>confdefs.h <<_ACEOF
19853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19854 _ACEOF
19855
19856 fi
19857 done
19858
19859
19860 # Check this now, so that we will NOT find the above functions in ncurses.
19861 # That is because we have not set up to link ncurses in lib-src.
19862 # It's better to believe a function is not available
19863 # than to expect to find it in ncurses.
19864
19865 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19866 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19867 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19868 echo $ECHO_N "(cached) $ECHO_C" >&6
19869 else
19870 ac_check_lib_save_LIBS=$LIBS
19871 LIBS="-lncurses $LIBS"
19872 cat >conftest.$ac_ext <<_ACEOF
19873 /* confdefs.h. */
19874 _ACEOF
19875 cat confdefs.h >>conftest.$ac_ext
19876 cat >>conftest.$ac_ext <<_ACEOF
19877 /* end confdefs.h. */
19878
19879 /* Override any GCC internal prototype to avoid an error.
19880 Use char because int might match the return type of a GCC
19881 builtin and then its argument prototype would still apply. */
19882 #ifdef __cplusplus
19883 extern "C"
19884 #endif
19885 char tparm ();
19886 int
19887 main ()
19888 {
19889 return tparm ();
19890 ;
19891 return 0;
19892 }
19893 _ACEOF
19894 rm -f conftest.$ac_objext conftest$ac_exeext
19895 if { (ac_try="$ac_link"
19896 case "(($ac_try" in
19897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19898 *) ac_try_echo=$ac_try;;
19899 esac
19900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19901 (eval "$ac_link") 2>conftest.er1
19902 ac_status=$?
19903 grep -v '^ *+' conftest.er1 >conftest.err
19904 rm -f conftest.er1
19905 cat conftest.err >&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); } && {
19908 test -z "$ac_c_werror_flag" ||
19909 test ! -s conftest.err
19910 } && test -s conftest$ac_exeext &&
19911 $as_test_x conftest$ac_exeext; then
19912 ac_cv_lib_ncurses_tparm=yes
19913 else
19914 echo "$as_me: failed program was:" >&5
19915 sed 's/^/| /' conftest.$ac_ext >&5
19916
19917 ac_cv_lib_ncurses_tparm=no
19918 fi
19919
19920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19921 conftest$ac_exeext conftest.$ac_ext
19922 LIBS=$ac_check_lib_save_LIBS
19923 fi
19924 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19925 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19926 if test $ac_cv_lib_ncurses_tparm = yes; then
19927 cat >>confdefs.h <<_ACEOF
19928 #define HAVE_LIBNCURSES 1
19929 _ACEOF
19930
19931 LIBS="-lncurses $LIBS"
19932
19933 fi
19934
19935
19936 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19937
19938 resolv=no
19939 cat >conftest.$ac_ext <<_ACEOF
19940 /* confdefs.h. */
19941 _ACEOF
19942 cat confdefs.h >>conftest.$ac_ext
19943 cat >>conftest.$ac_ext <<_ACEOF
19944 /* end confdefs.h. */
19945 #include <netinet/in.h>
19946 #include <arpa/nameser.h>
19947 #include <resolv.h>
19948 int
19949 main ()
19950 {
19951 return res_init();
19952 ;
19953 return 0;
19954 }
19955 _ACEOF
19956 rm -f conftest.$ac_objext conftest$ac_exeext
19957 if { (ac_try="$ac_link"
19958 case "(($ac_try" in
19959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19960 *) ac_try_echo=$ac_try;;
19961 esac
19962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19963 (eval "$ac_link") 2>conftest.er1
19964 ac_status=$?
19965 grep -v '^ *+' conftest.er1 >conftest.err
19966 rm -f conftest.er1
19967 cat conftest.err >&5
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); } && {
19970 test -z "$ac_c_werror_flag" ||
19971 test ! -s conftest.err
19972 } && test -s conftest$ac_exeext &&
19973 $as_test_x conftest$ac_exeext; then
19974 have_res_init=yes
19975 else
19976 echo "$as_me: failed program was:" >&5
19977 sed 's/^/| /' conftest.$ac_ext >&5
19978
19979 have_res_init=no
19980 fi
19981
19982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19983 conftest$ac_exeext conftest.$ac_ext
19984 if test "$have_res_init" = no; then
19985 OLIBS="$LIBS"
19986 LIBS="$LIBS -lresolv"
19987 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19988 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19989 cat >conftest.$ac_ext <<_ACEOF
19990 /* confdefs.h. */
19991 _ACEOF
19992 cat confdefs.h >>conftest.$ac_ext
19993 cat >>conftest.$ac_ext <<_ACEOF
19994 /* end confdefs.h. */
19995 #include <netinet/in.h>
19996 #include <arpa/nameser.h>
19997 #include <resolv.h>
19998 int
19999 main ()
20000 {
20001 return res_init();
20002 ;
20003 return 0;
20004 }
20005 _ACEOF
20006 rm -f conftest.$ac_objext conftest$ac_exeext
20007 if { (ac_try="$ac_link"
20008 case "(($ac_try" in
20009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20010 *) ac_try_echo=$ac_try;;
20011 esac
20012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20013 (eval "$ac_link") 2>conftest.er1
20014 ac_status=$?
20015 grep -v '^ *+' conftest.er1 >conftest.err
20016 rm -f conftest.er1
20017 cat conftest.err >&5
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); } && {
20020 test -z "$ac_c_werror_flag" ||
20021 test ! -s conftest.err
20022 } && test -s conftest$ac_exeext &&
20023 $as_test_x conftest$ac_exeext; then
20024 have_res_init=yes
20025 else
20026 echo "$as_me: failed program was:" >&5
20027 sed 's/^/| /' conftest.$ac_ext >&5
20028
20029 have_res_init=no
20030 fi
20031
20032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20033 conftest$ac_exeext conftest.$ac_ext
20034 { echo "$as_me:$LINENO: result: $have_res_init" >&5
20035 echo "${ECHO_T}$have_res_init" >&6; }
20036 if test "$have_res_init" = yes ; then
20037 resolv=yes
20038 fi
20039 LIBS="$OLIBS"
20040 fi
20041
20042 if test "$have_res_init" = yes; then
20043
20044 cat >>confdefs.h <<\_ACEOF
20045 #define HAVE_RES_INIT 1
20046 _ACEOF
20047
20048 fi
20049
20050 # Do we need the Hesiod library to provide the support routines?
20051 if test "$with_hesiod" != no ; then
20052 # Don't set $LIBS here -- see comments above.
20053 { echo "$as_me:$LINENO: checking for res_send" >&5
20054 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
20055 if test "${ac_cv_func_res_send+set}" = set; then
20056 echo $ECHO_N "(cached) $ECHO_C" >&6
20057 else
20058 cat >conftest.$ac_ext <<_ACEOF
20059 /* confdefs.h. */
20060 _ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h. */
20064 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20066 #define res_send innocuous_res_send
20067
20068 /* System header to define __stub macros and hopefully few prototypes,
20069 which can conflict with char res_send (); below.
20070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20071 <limits.h> exists even on freestanding compilers. */
20072
20073 #ifdef __STDC__
20074 # include <limits.h>
20075 #else
20076 # include <assert.h>
20077 #endif
20078
20079 #undef res_send
20080
20081 /* Override any GCC internal prototype to avoid an error.
20082 Use char because int might match the return type of a GCC
20083 builtin and then its argument prototype would still apply. */
20084 #ifdef __cplusplus
20085 extern "C"
20086 #endif
20087 char res_send ();
20088 /* The GNU C library defines this for functions which it implements
20089 to always fail with ENOSYS. Some functions are actually named
20090 something starting with __ and the normal name is an alias. */
20091 #if defined __stub_res_send || defined __stub___res_send
20092 choke me
20093 #endif
20094
20095 int
20096 main ()
20097 {
20098 return res_send ();
20099 ;
20100 return 0;
20101 }
20102 _ACEOF
20103 rm -f conftest.$ac_objext conftest$ac_exeext
20104 if { (ac_try="$ac_link"
20105 case "(($ac_try" in
20106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20107 *) ac_try_echo=$ac_try;;
20108 esac
20109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20110 (eval "$ac_link") 2>conftest.er1
20111 ac_status=$?
20112 grep -v '^ *+' conftest.er1 >conftest.err
20113 rm -f conftest.er1
20114 cat conftest.err >&5
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); } && {
20117 test -z "$ac_c_werror_flag" ||
20118 test ! -s conftest.err
20119 } && test -s conftest$ac_exeext &&
20120 $as_test_x conftest$ac_exeext; then
20121 ac_cv_func_res_send=yes
20122 else
20123 echo "$as_me: failed program was:" >&5
20124 sed 's/^/| /' conftest.$ac_ext >&5
20125
20126 ac_cv_func_res_send=no
20127 fi
20128
20129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20130 conftest$ac_exeext conftest.$ac_ext
20131 fi
20132 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20133 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20134 if test $ac_cv_func_res_send = yes; then
20135 :
20136 else
20137 { echo "$as_me:$LINENO: checking for __res_send" >&5
20138 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20139 if test "${ac_cv_func___res_send+set}" = set; then
20140 echo $ECHO_N "(cached) $ECHO_C" >&6
20141 else
20142 cat >conftest.$ac_ext <<_ACEOF
20143 /* confdefs.h. */
20144 _ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20148 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20150 #define __res_send innocuous___res_send
20151
20152 /* System header to define __stub macros and hopefully few prototypes,
20153 which can conflict with char __res_send (); below.
20154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20155 <limits.h> exists even on freestanding compilers. */
20156
20157 #ifdef __STDC__
20158 # include <limits.h>
20159 #else
20160 # include <assert.h>
20161 #endif
20162
20163 #undef __res_send
20164
20165 /* Override any GCC internal prototype to avoid an error.
20166 Use char because int might match the return type of a GCC
20167 builtin and then its argument prototype would still apply. */
20168 #ifdef __cplusplus
20169 extern "C"
20170 #endif
20171 char __res_send ();
20172 /* The GNU C library defines this for functions which it implements
20173 to always fail with ENOSYS. Some functions are actually named
20174 something starting with __ and the normal name is an alias. */
20175 #if defined __stub___res_send || defined __stub_____res_send
20176 choke me
20177 #endif
20178
20179 int
20180 main ()
20181 {
20182 return __res_send ();
20183 ;
20184 return 0;
20185 }
20186 _ACEOF
20187 rm -f conftest.$ac_objext conftest$ac_exeext
20188 if { (ac_try="$ac_link"
20189 case "(($ac_try" in
20190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20191 *) ac_try_echo=$ac_try;;
20192 esac
20193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20194 (eval "$ac_link") 2>conftest.er1
20195 ac_status=$?
20196 grep -v '^ *+' conftest.er1 >conftest.err
20197 rm -f conftest.er1
20198 cat conftest.err >&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } && {
20201 test -z "$ac_c_werror_flag" ||
20202 test ! -s conftest.err
20203 } && test -s conftest$ac_exeext &&
20204 $as_test_x conftest$ac_exeext; then
20205 ac_cv_func___res_send=yes
20206 else
20207 echo "$as_me: failed program was:" >&5
20208 sed 's/^/| /' conftest.$ac_ext >&5
20209
20210 ac_cv_func___res_send=no
20211 fi
20212
20213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20214 conftest$ac_exeext conftest.$ac_ext
20215 fi
20216 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20217 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20218 if test $ac_cv_func___res_send = yes; then
20219 :
20220 else
20221 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20222 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20223 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20224 echo $ECHO_N "(cached) $ECHO_C" >&6
20225 else
20226 ac_check_lib_save_LIBS=$LIBS
20227 LIBS="-lresolv $LIBS"
20228 cat >conftest.$ac_ext <<_ACEOF
20229 /* confdefs.h. */
20230 _ACEOF
20231 cat confdefs.h >>conftest.$ac_ext
20232 cat >>conftest.$ac_ext <<_ACEOF
20233 /* end confdefs.h. */
20234
20235 /* Override any GCC internal prototype to avoid an error.
20236 Use char because int might match the return type of a GCC
20237 builtin and then its argument prototype would still apply. */
20238 #ifdef __cplusplus
20239 extern "C"
20240 #endif
20241 char res_send ();
20242 int
20243 main ()
20244 {
20245 return res_send ();
20246 ;
20247 return 0;
20248 }
20249 _ACEOF
20250 rm -f conftest.$ac_objext conftest$ac_exeext
20251 if { (ac_try="$ac_link"
20252 case "(($ac_try" in
20253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20254 *) ac_try_echo=$ac_try;;
20255 esac
20256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20257 (eval "$ac_link") 2>conftest.er1
20258 ac_status=$?
20259 grep -v '^ *+' conftest.er1 >conftest.err
20260 rm -f conftest.er1
20261 cat conftest.err >&5
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } && {
20264 test -z "$ac_c_werror_flag" ||
20265 test ! -s conftest.err
20266 } && test -s conftest$ac_exeext &&
20267 $as_test_x conftest$ac_exeext; then
20268 ac_cv_lib_resolv_res_send=yes
20269 else
20270 echo "$as_me: failed program was:" >&5
20271 sed 's/^/| /' conftest.$ac_ext >&5
20272
20273 ac_cv_lib_resolv_res_send=no
20274 fi
20275
20276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20277 conftest$ac_exeext conftest.$ac_ext
20278 LIBS=$ac_check_lib_save_LIBS
20279 fi
20280 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20281 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20282 if test $ac_cv_lib_resolv_res_send = yes; then
20283 resolv=yes
20284 else
20285 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20286 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20287 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20288 echo $ECHO_N "(cached) $ECHO_C" >&6
20289 else
20290 ac_check_lib_save_LIBS=$LIBS
20291 LIBS="-lresolv $LIBS"
20292 cat >conftest.$ac_ext <<_ACEOF
20293 /* confdefs.h. */
20294 _ACEOF
20295 cat confdefs.h >>conftest.$ac_ext
20296 cat >>conftest.$ac_ext <<_ACEOF
20297 /* end confdefs.h. */
20298
20299 /* Override any GCC internal prototype to avoid an error.
20300 Use char because int might match the return type of a GCC
20301 builtin and then its argument prototype would still apply. */
20302 #ifdef __cplusplus
20303 extern "C"
20304 #endif
20305 char __res_send ();
20306 int
20307 main ()
20308 {
20309 return __res_send ();
20310 ;
20311 return 0;
20312 }
20313 _ACEOF
20314 rm -f conftest.$ac_objext conftest$ac_exeext
20315 if { (ac_try="$ac_link"
20316 case "(($ac_try" in
20317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20318 *) ac_try_echo=$ac_try;;
20319 esac
20320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20321 (eval "$ac_link") 2>conftest.er1
20322 ac_status=$?
20323 grep -v '^ *+' conftest.er1 >conftest.err
20324 rm -f conftest.er1
20325 cat conftest.err >&5
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); } && {
20328 test -z "$ac_c_werror_flag" ||
20329 test ! -s conftest.err
20330 } && test -s conftest$ac_exeext &&
20331 $as_test_x conftest$ac_exeext; then
20332 ac_cv_lib_resolv___res_send=yes
20333 else
20334 echo "$as_me: failed program was:" >&5
20335 sed 's/^/| /' conftest.$ac_ext >&5
20336
20337 ac_cv_lib_resolv___res_send=no
20338 fi
20339
20340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20341 conftest$ac_exeext conftest.$ac_ext
20342 LIBS=$ac_check_lib_save_LIBS
20343 fi
20344 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20345 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20346 if test $ac_cv_lib_resolv___res_send = yes; then
20347 resolv=yes
20348 fi
20349
20350 fi
20351
20352 fi
20353
20354 fi
20355
20356 if test "$resolv" = yes ; then
20357 RESOLVLIB=-lresolv
20358 else
20359 RESOLVLIB=
20360 fi
20361 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20362 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20363 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20364 echo $ECHO_N "(cached) $ECHO_C" >&6
20365 else
20366 cat >conftest.$ac_ext <<_ACEOF
20367 /* confdefs.h. */
20368 _ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h. */
20372 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20374 #define hes_getmailhost innocuous_hes_getmailhost
20375
20376 /* System header to define __stub macros and hopefully few prototypes,
20377 which can conflict with char hes_getmailhost (); below.
20378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20379 <limits.h> exists even on freestanding compilers. */
20380
20381 #ifdef __STDC__
20382 # include <limits.h>
20383 #else
20384 # include <assert.h>
20385 #endif
20386
20387 #undef hes_getmailhost
20388
20389 /* Override any GCC internal prototype to avoid an error.
20390 Use char because int might match the return type of a GCC
20391 builtin and then its argument prototype would still apply. */
20392 #ifdef __cplusplus
20393 extern "C"
20394 #endif
20395 char hes_getmailhost ();
20396 /* The GNU C library defines this for functions which it implements
20397 to always fail with ENOSYS. Some functions are actually named
20398 something starting with __ and the normal name is an alias. */
20399 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20400 choke me
20401 #endif
20402
20403 int
20404 main ()
20405 {
20406 return hes_getmailhost ();
20407 ;
20408 return 0;
20409 }
20410 _ACEOF
20411 rm -f conftest.$ac_objext conftest$ac_exeext
20412 if { (ac_try="$ac_link"
20413 case "(($ac_try" in
20414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20415 *) ac_try_echo=$ac_try;;
20416 esac
20417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20418 (eval "$ac_link") 2>conftest.er1
20419 ac_status=$?
20420 grep -v '^ *+' conftest.er1 >conftest.err
20421 rm -f conftest.er1
20422 cat conftest.err >&5
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); } && {
20425 test -z "$ac_c_werror_flag" ||
20426 test ! -s conftest.err
20427 } && test -s conftest$ac_exeext &&
20428 $as_test_x conftest$ac_exeext; then
20429 ac_cv_func_hes_getmailhost=yes
20430 else
20431 echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20433
20434 ac_cv_func_hes_getmailhost=no
20435 fi
20436
20437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20438 conftest$ac_exeext conftest.$ac_ext
20439 fi
20440 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20441 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20442 if test $ac_cv_func_hes_getmailhost = yes; then
20443 :
20444 else
20445 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20446 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20447 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20448 echo $ECHO_N "(cached) $ECHO_C" >&6
20449 else
20450 ac_check_lib_save_LIBS=$LIBS
20451 LIBS="-lhesiod $RESOLVLIB $LIBS"
20452 cat >conftest.$ac_ext <<_ACEOF
20453 /* confdefs.h. */
20454 _ACEOF
20455 cat confdefs.h >>conftest.$ac_ext
20456 cat >>conftest.$ac_ext <<_ACEOF
20457 /* end confdefs.h. */
20458
20459 /* Override any GCC internal prototype to avoid an error.
20460 Use char because int might match the return type of a GCC
20461 builtin and then its argument prototype would still apply. */
20462 #ifdef __cplusplus
20463 extern "C"
20464 #endif
20465 char hes_getmailhost ();
20466 int
20467 main ()
20468 {
20469 return hes_getmailhost ();
20470 ;
20471 return 0;
20472 }
20473 _ACEOF
20474 rm -f conftest.$ac_objext conftest$ac_exeext
20475 if { (ac_try="$ac_link"
20476 case "(($ac_try" in
20477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478 *) ac_try_echo=$ac_try;;
20479 esac
20480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481 (eval "$ac_link") 2>conftest.er1
20482 ac_status=$?
20483 grep -v '^ *+' conftest.er1 >conftest.err
20484 rm -f conftest.er1
20485 cat conftest.err >&5
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); } && {
20488 test -z "$ac_c_werror_flag" ||
20489 test ! -s conftest.err
20490 } && test -s conftest$ac_exeext &&
20491 $as_test_x conftest$ac_exeext; then
20492 ac_cv_lib_hesiod_hes_getmailhost=yes
20493 else
20494 echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20496
20497 ac_cv_lib_hesiod_hes_getmailhost=no
20498 fi
20499
20500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20501 conftest$ac_exeext conftest.$ac_ext
20502 LIBS=$ac_check_lib_save_LIBS
20503 fi
20504 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20505 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20506 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20507
20508 cat >>confdefs.h <<\_ACEOF
20509 #define HAVE_LIBHESIOD 1
20510 _ACEOF
20511
20512 else
20513 :
20514 fi
20515
20516 fi
20517
20518 fi
20519
20520 # Do we need libresolv (due to res_init or Hesiod)?
20521 if test "$resolv" = yes ; then
20522
20523 cat >>confdefs.h <<\_ACEOF
20524 #define HAVE_LIBRESOLV 1
20525 _ACEOF
20526
20527 fi
20528
20529 # These tell us which Kerberos-related libraries to use.
20530 if test "${with_kerberos}" != no; then
20531
20532 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20533 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20534 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20535 echo $ECHO_N "(cached) $ECHO_C" >&6
20536 else
20537 ac_check_lib_save_LIBS=$LIBS
20538 LIBS="-lcom_err $LIBS"
20539 cat >conftest.$ac_ext <<_ACEOF
20540 /* confdefs.h. */
20541 _ACEOF
20542 cat confdefs.h >>conftest.$ac_ext
20543 cat >>conftest.$ac_ext <<_ACEOF
20544 /* end confdefs.h. */
20545
20546 /* Override any GCC internal prototype to avoid an error.
20547 Use char because int might match the return type of a GCC
20548 builtin and then its argument prototype would still apply. */
20549 #ifdef __cplusplus
20550 extern "C"
20551 #endif
20552 char com_err ();
20553 int
20554 main ()
20555 {
20556 return com_err ();
20557 ;
20558 return 0;
20559 }
20560 _ACEOF
20561 rm -f conftest.$ac_objext conftest$ac_exeext
20562 if { (ac_try="$ac_link"
20563 case "(($ac_try" in
20564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20565 *) ac_try_echo=$ac_try;;
20566 esac
20567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20568 (eval "$ac_link") 2>conftest.er1
20569 ac_status=$?
20570 grep -v '^ *+' conftest.er1 >conftest.err
20571 rm -f conftest.er1
20572 cat conftest.err >&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); } && {
20575 test -z "$ac_c_werror_flag" ||
20576 test ! -s conftest.err
20577 } && test -s conftest$ac_exeext &&
20578 $as_test_x conftest$ac_exeext; then
20579 ac_cv_lib_com_err_com_err=yes
20580 else
20581 echo "$as_me: failed program was:" >&5
20582 sed 's/^/| /' conftest.$ac_ext >&5
20583
20584 ac_cv_lib_com_err_com_err=no
20585 fi
20586
20587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20588 conftest$ac_exeext conftest.$ac_ext
20589 LIBS=$ac_check_lib_save_LIBS
20590 fi
20591 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20592 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20593 if test $ac_cv_lib_com_err_com_err = yes; then
20594 cat >>confdefs.h <<_ACEOF
20595 #define HAVE_LIBCOM_ERR 1
20596 _ACEOF
20597
20598 LIBS="-lcom_err $LIBS"
20599
20600 fi
20601
20602
20603 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20604 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20605 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20606 echo $ECHO_N "(cached) $ECHO_C" >&6
20607 else
20608 ac_check_lib_save_LIBS=$LIBS
20609 LIBS="-lk5crypto $LIBS"
20610 cat >conftest.$ac_ext <<_ACEOF
20611 /* confdefs.h. */
20612 _ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h. */
20616
20617 /* Override any GCC internal prototype to avoid an error.
20618 Use char because int might match the return type of a GCC
20619 builtin and then its argument prototype would still apply. */
20620 #ifdef __cplusplus
20621 extern "C"
20622 #endif
20623 char mit_des_cbc_encrypt ();
20624 int
20625 main ()
20626 {
20627 return mit_des_cbc_encrypt ();
20628 ;
20629 return 0;
20630 }
20631 _ACEOF
20632 rm -f conftest.$ac_objext conftest$ac_exeext
20633 if { (ac_try="$ac_link"
20634 case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20637 esac
20638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_link") 2>conftest.er1
20640 ac_status=$?
20641 grep -v '^ *+' conftest.er1 >conftest.err
20642 rm -f conftest.er1
20643 cat conftest.err >&5
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); } && {
20646 test -z "$ac_c_werror_flag" ||
20647 test ! -s conftest.err
20648 } && test -s conftest$ac_exeext &&
20649 $as_test_x conftest$ac_exeext; then
20650 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20651 else
20652 echo "$as_me: failed program was:" >&5
20653 sed 's/^/| /' conftest.$ac_ext >&5
20654
20655 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20656 fi
20657
20658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20659 conftest$ac_exeext conftest.$ac_ext
20660 LIBS=$ac_check_lib_save_LIBS
20661 fi
20662 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20663 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20664 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20665 cat >>confdefs.h <<_ACEOF
20666 #define HAVE_LIBK5CRYPTO 1
20667 _ACEOF
20668
20669 LIBS="-lk5crypto $LIBS"
20670
20671 fi
20672
20673
20674 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20675 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20676 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20677 echo $ECHO_N "(cached) $ECHO_C" >&6
20678 else
20679 ac_check_lib_save_LIBS=$LIBS
20680 LIBS="-lcrypto $LIBS"
20681 cat >conftest.$ac_ext <<_ACEOF
20682 /* confdefs.h. */
20683 _ACEOF
20684 cat confdefs.h >>conftest.$ac_ext
20685 cat >>conftest.$ac_ext <<_ACEOF
20686 /* end confdefs.h. */
20687
20688 /* Override any GCC internal prototype to avoid an error.
20689 Use char because int might match the return type of a GCC
20690 builtin and then its argument prototype would still apply. */
20691 #ifdef __cplusplus
20692 extern "C"
20693 #endif
20694 char mit_des_cbc_encrypt ();
20695 int
20696 main ()
20697 {
20698 return mit_des_cbc_encrypt ();
20699 ;
20700 return 0;
20701 }
20702 _ACEOF
20703 rm -f conftest.$ac_objext conftest$ac_exeext
20704 if { (ac_try="$ac_link"
20705 case "(($ac_try" in
20706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20707 *) ac_try_echo=$ac_try;;
20708 esac
20709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20710 (eval "$ac_link") 2>conftest.er1
20711 ac_status=$?
20712 grep -v '^ *+' conftest.er1 >conftest.err
20713 rm -f conftest.er1
20714 cat conftest.err >&5
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); } && {
20717 test -z "$ac_c_werror_flag" ||
20718 test ! -s conftest.err
20719 } && test -s conftest$ac_exeext &&
20720 $as_test_x conftest$ac_exeext; then
20721 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20722 else
20723 echo "$as_me: failed program was:" >&5
20724 sed 's/^/| /' conftest.$ac_ext >&5
20725
20726 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20727 fi
20728
20729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20730 conftest$ac_exeext conftest.$ac_ext
20731 LIBS=$ac_check_lib_save_LIBS
20732 fi
20733 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20734 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20735 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20736 cat >>confdefs.h <<_ACEOF
20737 #define HAVE_LIBCRYPTO 1
20738 _ACEOF
20739
20740 LIBS="-lcrypto $LIBS"
20741
20742 fi
20743
20744
20745 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20746 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20747 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20748 echo $ECHO_N "(cached) $ECHO_C" >&6
20749 else
20750 ac_check_lib_save_LIBS=$LIBS
20751 LIBS="-lkrb5 $LIBS"
20752 cat >conftest.$ac_ext <<_ACEOF
20753 /* confdefs.h. */
20754 _ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h. */
20758
20759 /* Override any GCC internal prototype to avoid an error.
20760 Use char because int might match the return type of a GCC
20761 builtin and then its argument prototype would still apply. */
20762 #ifdef __cplusplus
20763 extern "C"
20764 #endif
20765 char krb5_init_context ();
20766 int
20767 main ()
20768 {
20769 return krb5_init_context ();
20770 ;
20771 return 0;
20772 }
20773 _ACEOF
20774 rm -f conftest.$ac_objext conftest$ac_exeext
20775 if { (ac_try="$ac_link"
20776 case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20779 esac
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_link") 2>conftest.er1
20782 ac_status=$?
20783 grep -v '^ *+' conftest.er1 >conftest.err
20784 rm -f conftest.er1
20785 cat conftest.err >&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } && {
20788 test -z "$ac_c_werror_flag" ||
20789 test ! -s conftest.err
20790 } && test -s conftest$ac_exeext &&
20791 $as_test_x conftest$ac_exeext; then
20792 ac_cv_lib_krb5_krb5_init_context=yes
20793 else
20794 echo "$as_me: failed program was:" >&5
20795 sed 's/^/| /' conftest.$ac_ext >&5
20796
20797 ac_cv_lib_krb5_krb5_init_context=no
20798 fi
20799
20800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20801 conftest$ac_exeext conftest.$ac_ext
20802 LIBS=$ac_check_lib_save_LIBS
20803 fi
20804 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20805 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20806 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20807 cat >>confdefs.h <<_ACEOF
20808 #define HAVE_LIBKRB5 1
20809 _ACEOF
20810
20811 LIBS="-lkrb5 $LIBS"
20812
20813 fi
20814
20815 if test "${with_kerberos5}" = no; then
20816
20817 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20818 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20819 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20820 echo $ECHO_N "(cached) $ECHO_C" >&6
20821 else
20822 ac_check_lib_save_LIBS=$LIBS
20823 LIBS="-ldes425 $LIBS"
20824 cat >conftest.$ac_ext <<_ACEOF
20825 /* confdefs.h. */
20826 _ACEOF
20827 cat confdefs.h >>conftest.$ac_ext
20828 cat >>conftest.$ac_ext <<_ACEOF
20829 /* end confdefs.h. */
20830
20831 /* Override any GCC internal prototype to avoid an error.
20832 Use char because int might match the return type of a GCC
20833 builtin and then its argument prototype would still apply. */
20834 #ifdef __cplusplus
20835 extern "C"
20836 #endif
20837 char des_cbc_encrypt ();
20838 int
20839 main ()
20840 {
20841 return des_cbc_encrypt ();
20842 ;
20843 return 0;
20844 }
20845 _ACEOF
20846 rm -f conftest.$ac_objext conftest$ac_exeext
20847 if { (ac_try="$ac_link"
20848 case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20851 esac
20852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853 (eval "$ac_link") 2>conftest.er1
20854 ac_status=$?
20855 grep -v '^ *+' conftest.er1 >conftest.err
20856 rm -f conftest.er1
20857 cat conftest.err >&5
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); } && {
20860 test -z "$ac_c_werror_flag" ||
20861 test ! -s conftest.err
20862 } && test -s conftest$ac_exeext &&
20863 $as_test_x conftest$ac_exeext; then
20864 ac_cv_lib_des425_des_cbc_encrypt=yes
20865 else
20866 echo "$as_me: failed program was:" >&5
20867 sed 's/^/| /' conftest.$ac_ext >&5
20868
20869 ac_cv_lib_des425_des_cbc_encrypt=no
20870 fi
20871
20872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20873 conftest$ac_exeext conftest.$ac_ext
20874 LIBS=$ac_check_lib_save_LIBS
20875 fi
20876 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20877 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20878 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20879 cat >>confdefs.h <<_ACEOF
20880 #define HAVE_LIBDES425 1
20881 _ACEOF
20882
20883 LIBS="-ldes425 $LIBS"
20884
20885 else
20886
20887 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20888 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20889 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20890 echo $ECHO_N "(cached) $ECHO_C" >&6
20891 else
20892 ac_check_lib_save_LIBS=$LIBS
20893 LIBS="-ldes $LIBS"
20894 cat >conftest.$ac_ext <<_ACEOF
20895 /* confdefs.h. */
20896 _ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h. */
20900
20901 /* Override any GCC internal prototype to avoid an error.
20902 Use char because int might match the return type of a GCC
20903 builtin and then its argument prototype would still apply. */
20904 #ifdef __cplusplus
20905 extern "C"
20906 #endif
20907 char des_cbc_encrypt ();
20908 int
20909 main ()
20910 {
20911 return des_cbc_encrypt ();
20912 ;
20913 return 0;
20914 }
20915 _ACEOF
20916 rm -f conftest.$ac_objext conftest$ac_exeext
20917 if { (ac_try="$ac_link"
20918 case "(($ac_try" in
20919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20920 *) ac_try_echo=$ac_try;;
20921 esac
20922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20923 (eval "$ac_link") 2>conftest.er1
20924 ac_status=$?
20925 grep -v '^ *+' conftest.er1 >conftest.err
20926 rm -f conftest.er1
20927 cat conftest.err >&5
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); } && {
20930 test -z "$ac_c_werror_flag" ||
20931 test ! -s conftest.err
20932 } && test -s conftest$ac_exeext &&
20933 $as_test_x conftest$ac_exeext; then
20934 ac_cv_lib_des_des_cbc_encrypt=yes
20935 else
20936 echo "$as_me: failed program was:" >&5
20937 sed 's/^/| /' conftest.$ac_ext >&5
20938
20939 ac_cv_lib_des_des_cbc_encrypt=no
20940 fi
20941
20942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20943 conftest$ac_exeext conftest.$ac_ext
20944 LIBS=$ac_check_lib_save_LIBS
20945 fi
20946 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20947 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20948 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20949 cat >>confdefs.h <<_ACEOF
20950 #define HAVE_LIBDES 1
20951 _ACEOF
20952
20953 LIBS="-ldes $LIBS"
20954
20955 fi
20956
20957 fi
20958
20959
20960 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20961 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20962 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20963 echo $ECHO_N "(cached) $ECHO_C" >&6
20964 else
20965 ac_check_lib_save_LIBS=$LIBS
20966 LIBS="-lkrb4 $LIBS"
20967 cat >conftest.$ac_ext <<_ACEOF
20968 /* confdefs.h. */
20969 _ACEOF
20970 cat confdefs.h >>conftest.$ac_ext
20971 cat >>conftest.$ac_ext <<_ACEOF
20972 /* end confdefs.h. */
20973
20974 /* Override any GCC internal prototype to avoid an error.
20975 Use char because int might match the return type of a GCC
20976 builtin and then its argument prototype would still apply. */
20977 #ifdef __cplusplus
20978 extern "C"
20979 #endif
20980 char krb_get_cred ();
20981 int
20982 main ()
20983 {
20984 return krb_get_cred ();
20985 ;
20986 return 0;
20987 }
20988 _ACEOF
20989 rm -f conftest.$ac_objext conftest$ac_exeext
20990 if { (ac_try="$ac_link"
20991 case "(($ac_try" in
20992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20993 *) ac_try_echo=$ac_try;;
20994 esac
20995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20996 (eval "$ac_link") 2>conftest.er1
20997 ac_status=$?
20998 grep -v '^ *+' conftest.er1 >conftest.err
20999 rm -f conftest.er1
21000 cat conftest.err >&5
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); } && {
21003 test -z "$ac_c_werror_flag" ||
21004 test ! -s conftest.err
21005 } && test -s conftest$ac_exeext &&
21006 $as_test_x conftest$ac_exeext; then
21007 ac_cv_lib_krb4_krb_get_cred=yes
21008 else
21009 echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21011
21012 ac_cv_lib_krb4_krb_get_cred=no
21013 fi
21014
21015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21016 conftest$ac_exeext conftest.$ac_ext
21017 LIBS=$ac_check_lib_save_LIBS
21018 fi
21019 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21020 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
21021 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21022 cat >>confdefs.h <<_ACEOF
21023 #define HAVE_LIBKRB4 1
21024 _ACEOF
21025
21026 LIBS="-lkrb4 $LIBS"
21027
21028 else
21029
21030 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21031 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
21032 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21033 echo $ECHO_N "(cached) $ECHO_C" >&6
21034 else
21035 ac_check_lib_save_LIBS=$LIBS
21036 LIBS="-lkrb $LIBS"
21037 cat >conftest.$ac_ext <<_ACEOF
21038 /* confdefs.h. */
21039 _ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h. */
21043
21044 /* Override any GCC internal prototype to avoid an error.
21045 Use char because int might match the return type of a GCC
21046 builtin and then its argument prototype would still apply. */
21047 #ifdef __cplusplus
21048 extern "C"
21049 #endif
21050 char krb_get_cred ();
21051 int
21052 main ()
21053 {
21054 return krb_get_cred ();
21055 ;
21056 return 0;
21057 }
21058 _ACEOF
21059 rm -f conftest.$ac_objext conftest$ac_exeext
21060 if { (ac_try="$ac_link"
21061 case "(($ac_try" in
21062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21063 *) ac_try_echo=$ac_try;;
21064 esac
21065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21066 (eval "$ac_link") 2>conftest.er1
21067 ac_status=$?
21068 grep -v '^ *+' conftest.er1 >conftest.err
21069 rm -f conftest.er1
21070 cat conftest.err >&5
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); } && {
21073 test -z "$ac_c_werror_flag" ||
21074 test ! -s conftest.err
21075 } && test -s conftest$ac_exeext &&
21076 $as_test_x conftest$ac_exeext; then
21077 ac_cv_lib_krb_krb_get_cred=yes
21078 else
21079 echo "$as_me: failed program was:" >&5
21080 sed 's/^/| /' conftest.$ac_ext >&5
21081
21082 ac_cv_lib_krb_krb_get_cred=no
21083 fi
21084
21085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21086 conftest$ac_exeext conftest.$ac_ext
21087 LIBS=$ac_check_lib_save_LIBS
21088 fi
21089 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21090 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21091 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21092 cat >>confdefs.h <<_ACEOF
21093 #define HAVE_LIBKRB 1
21094 _ACEOF
21095
21096 LIBS="-lkrb $LIBS"
21097
21098 fi
21099
21100 fi
21101
21102 fi
21103
21104 if test "${with_kerberos5}" != no; then
21105
21106 for ac_header in krb5.h
21107 do
21108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21113 echo $ECHO_N "(cached) $ECHO_C" >&6
21114 fi
21115 ac_res=`eval echo '${'$as_ac_Header'}'`
21116 { echo "$as_me:$LINENO: result: $ac_res" >&5
21117 echo "${ECHO_T}$ac_res" >&6; }
21118 else
21119 # Is the header compilable?
21120 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21122 cat >conftest.$ac_ext <<_ACEOF
21123 /* confdefs.h. */
21124 _ACEOF
21125 cat confdefs.h >>conftest.$ac_ext
21126 cat >>conftest.$ac_ext <<_ACEOF
21127 /* end confdefs.h. */
21128 $ac_includes_default
21129 #include <$ac_header>
21130 _ACEOF
21131 rm -f conftest.$ac_objext
21132 if { (ac_try="$ac_compile"
21133 case "(($ac_try" in
21134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21135 *) ac_try_echo=$ac_try;;
21136 esac
21137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21138 (eval "$ac_compile") 2>conftest.er1
21139 ac_status=$?
21140 grep -v '^ *+' conftest.er1 >conftest.err
21141 rm -f conftest.er1
21142 cat conftest.err >&5
21143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144 (exit $ac_status); } && {
21145 test -z "$ac_c_werror_flag" ||
21146 test ! -s conftest.err
21147 } && test -s conftest.$ac_objext; then
21148 ac_header_compiler=yes
21149 else
21150 echo "$as_me: failed program was:" >&5
21151 sed 's/^/| /' conftest.$ac_ext >&5
21152
21153 ac_header_compiler=no
21154 fi
21155
21156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21157 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21158 echo "${ECHO_T}$ac_header_compiler" >&6; }
21159
21160 # Is the header present?
21161 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21163 cat >conftest.$ac_ext <<_ACEOF
21164 /* confdefs.h. */
21165 _ACEOF
21166 cat confdefs.h >>conftest.$ac_ext
21167 cat >>conftest.$ac_ext <<_ACEOF
21168 /* end confdefs.h. */
21169 #include <$ac_header>
21170 _ACEOF
21171 if { (ac_try="$ac_cpp conftest.$ac_ext"
21172 case "(($ac_try" in
21173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21174 *) ac_try_echo=$ac_try;;
21175 esac
21176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21178 ac_status=$?
21179 grep -v '^ *+' conftest.er1 >conftest.err
21180 rm -f conftest.er1
21181 cat conftest.err >&5
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); } >/dev/null && {
21184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21185 test ! -s conftest.err
21186 }; then
21187 ac_header_preproc=yes
21188 else
21189 echo "$as_me: failed program was:" >&5
21190 sed 's/^/| /' conftest.$ac_ext >&5
21191
21192 ac_header_preproc=no
21193 fi
21194
21195 rm -f conftest.err conftest.$ac_ext
21196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21197 echo "${ECHO_T}$ac_header_preproc" >&6; }
21198
21199 # So? What about this header?
21200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21201 yes:no: )
21202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21206 ac_header_preproc=yes
21207 ;;
21208 no:yes:* )
21209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21216 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21221
21222 ;;
21223 esac
21224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21227 echo $ECHO_N "(cached) $ECHO_C" >&6
21228 else
21229 eval "$as_ac_Header=\$ac_header_preproc"
21230 fi
21231 ac_res=`eval echo '${'$as_ac_Header'}'`
21232 { echo "$as_me:$LINENO: result: $ac_res" >&5
21233 echo "${ECHO_T}$ac_res" >&6; }
21234
21235 fi
21236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21237 cat >>confdefs.h <<_ACEOF
21238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21239 _ACEOF
21240 { echo "$as_me:$LINENO: checking for krb5_error.text" >&5
21241 echo $ECHO_N "checking for krb5_error.text... $ECHO_C" >&6; }
21242 if test "${ac_cv_member_krb5_error_text+set}" = set; then
21243 echo $ECHO_N "(cached) $ECHO_C" >&6
21244 else
21245 cat >conftest.$ac_ext <<_ACEOF
21246 /* confdefs.h. */
21247 _ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h. */
21251 #include <krb5.h>
21252
21253 int
21254 main ()
21255 {
21256 static krb5_error ac_aggr;
21257 if (ac_aggr.text)
21258 return 0;
21259 ;
21260 return 0;
21261 }
21262 _ACEOF
21263 rm -f conftest.$ac_objext
21264 if { (ac_try="$ac_compile"
21265 case "(($ac_try" in
21266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21267 *) ac_try_echo=$ac_try;;
21268 esac
21269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21270 (eval "$ac_compile") 2>conftest.er1
21271 ac_status=$?
21272 grep -v '^ *+' conftest.er1 >conftest.err
21273 rm -f conftest.er1
21274 cat conftest.err >&5
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); } && {
21277 test -z "$ac_c_werror_flag" ||
21278 test ! -s conftest.err
21279 } && test -s conftest.$ac_objext; then
21280 ac_cv_member_krb5_error_text=yes
21281 else
21282 echo "$as_me: failed program was:" >&5
21283 sed 's/^/| /' conftest.$ac_ext >&5
21284
21285 cat >conftest.$ac_ext <<_ACEOF
21286 /* confdefs.h. */
21287 _ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h. */
21291 #include <krb5.h>
21292
21293 int
21294 main ()
21295 {
21296 static krb5_error ac_aggr;
21297 if (sizeof ac_aggr.text)
21298 return 0;
21299 ;
21300 return 0;
21301 }
21302 _ACEOF
21303 rm -f conftest.$ac_objext
21304 if { (ac_try="$ac_compile"
21305 case "(($ac_try" in
21306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21307 *) ac_try_echo=$ac_try;;
21308 esac
21309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21310 (eval "$ac_compile") 2>conftest.er1
21311 ac_status=$?
21312 grep -v '^ *+' conftest.er1 >conftest.err
21313 rm -f conftest.er1
21314 cat conftest.err >&5
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); } && {
21317 test -z "$ac_c_werror_flag" ||
21318 test ! -s conftest.err
21319 } && test -s conftest.$ac_objext; then
21320 ac_cv_member_krb5_error_text=yes
21321 else
21322 echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21324
21325 ac_cv_member_krb5_error_text=no
21326 fi
21327
21328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21329 fi
21330
21331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21332 fi
21333 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
21334 echo "${ECHO_T}$ac_cv_member_krb5_error_text" >&6; }
21335 if test $ac_cv_member_krb5_error_text = yes; then
21336
21337 cat >>confdefs.h <<_ACEOF
21338 #define HAVE_KRB5_ERROR_TEXT 1
21339 _ACEOF
21340
21341
21342 fi
21343 { echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
21344 echo $ECHO_N "checking for krb5_error.e_text... $ECHO_C" >&6; }
21345 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
21346 echo $ECHO_N "(cached) $ECHO_C" >&6
21347 else
21348 cat >conftest.$ac_ext <<_ACEOF
21349 /* confdefs.h. */
21350 _ACEOF
21351 cat confdefs.h >>conftest.$ac_ext
21352 cat >>conftest.$ac_ext <<_ACEOF
21353 /* end confdefs.h. */
21354 #include <krb5.h>
21355
21356 int
21357 main ()
21358 {
21359 static krb5_error ac_aggr;
21360 if (ac_aggr.e_text)
21361 return 0;
21362 ;
21363 return 0;
21364 }
21365 _ACEOF
21366 rm -f conftest.$ac_objext
21367 if { (ac_try="$ac_compile"
21368 case "(($ac_try" in
21369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21370 *) ac_try_echo=$ac_try;;
21371 esac
21372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21373 (eval "$ac_compile") 2>conftest.er1
21374 ac_status=$?
21375 grep -v '^ *+' conftest.er1 >conftest.err
21376 rm -f conftest.er1
21377 cat conftest.err >&5
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); } && {
21380 test -z "$ac_c_werror_flag" ||
21381 test ! -s conftest.err
21382 } && test -s conftest.$ac_objext; then
21383 ac_cv_member_krb5_error_e_text=yes
21384 else
21385 echo "$as_me: failed program was:" >&5
21386 sed 's/^/| /' conftest.$ac_ext >&5
21387
21388 cat >conftest.$ac_ext <<_ACEOF
21389 /* confdefs.h. */
21390 _ACEOF
21391 cat confdefs.h >>conftest.$ac_ext
21392 cat >>conftest.$ac_ext <<_ACEOF
21393 /* end confdefs.h. */
21394 #include <krb5.h>
21395
21396 int
21397 main ()
21398 {
21399 static krb5_error ac_aggr;
21400 if (sizeof ac_aggr.e_text)
21401 return 0;
21402 ;
21403 return 0;
21404 }
21405 _ACEOF
21406 rm -f conftest.$ac_objext
21407 if { (ac_try="$ac_compile"
21408 case "(($ac_try" in
21409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21410 *) ac_try_echo=$ac_try;;
21411 esac
21412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21413 (eval "$ac_compile") 2>conftest.er1
21414 ac_status=$?
21415 grep -v '^ *+' conftest.er1 >conftest.err
21416 rm -f conftest.er1
21417 cat conftest.err >&5
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); } && {
21420 test -z "$ac_c_werror_flag" ||
21421 test ! -s conftest.err
21422 } && test -s conftest.$ac_objext; then
21423 ac_cv_member_krb5_error_e_text=yes
21424 else
21425 echo "$as_me: failed program was:" >&5
21426 sed 's/^/| /' conftest.$ac_ext >&5
21427
21428 ac_cv_member_krb5_error_e_text=no
21429 fi
21430
21431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21432 fi
21433
21434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21435 fi
21436 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
21437 echo "${ECHO_T}$ac_cv_member_krb5_error_e_text" >&6; }
21438 if test $ac_cv_member_krb5_error_e_text = yes; then
21439
21440 cat >>confdefs.h <<_ACEOF
21441 #define HAVE_KRB5_ERROR_E_TEXT 1
21442 _ACEOF
21443
21444
21445 fi
21446
21447 fi
21448
21449 done
21450
21451 else
21452
21453 for ac_header in des.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/des.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/des.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
21875 for ac_header in krb.h
21876 do
21877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21882 echo $ECHO_N "(cached) $ECHO_C" >&6
21883 fi
21884 ac_res=`eval echo '${'$as_ac_Header'}'`
21885 { echo "$as_me:$LINENO: result: $ac_res" >&5
21886 echo "${ECHO_T}$ac_res" >&6; }
21887 else
21888 # Is the header compilable?
21889 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21891 cat >conftest.$ac_ext <<_ACEOF
21892 /* confdefs.h. */
21893 _ACEOF
21894 cat confdefs.h >>conftest.$ac_ext
21895 cat >>conftest.$ac_ext <<_ACEOF
21896 /* end confdefs.h. */
21897 $ac_includes_default
21898 #include <$ac_header>
21899 _ACEOF
21900 rm -f conftest.$ac_objext
21901 if { (ac_try="$ac_compile"
21902 case "(($ac_try" in
21903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21904 *) ac_try_echo=$ac_try;;
21905 esac
21906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21907 (eval "$ac_compile") 2>conftest.er1
21908 ac_status=$?
21909 grep -v '^ *+' conftest.er1 >conftest.err
21910 rm -f conftest.er1
21911 cat conftest.err >&5
21912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913 (exit $ac_status); } && {
21914 test -z "$ac_c_werror_flag" ||
21915 test ! -s conftest.err
21916 } && test -s conftest.$ac_objext; then
21917 ac_header_compiler=yes
21918 else
21919 echo "$as_me: failed program was:" >&5
21920 sed 's/^/| /' conftest.$ac_ext >&5
21921
21922 ac_header_compiler=no
21923 fi
21924
21925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21926 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21927 echo "${ECHO_T}$ac_header_compiler" >&6; }
21928
21929 # Is the header present?
21930 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21932 cat >conftest.$ac_ext <<_ACEOF
21933 /* confdefs.h. */
21934 _ACEOF
21935 cat confdefs.h >>conftest.$ac_ext
21936 cat >>conftest.$ac_ext <<_ACEOF
21937 /* end confdefs.h. */
21938 #include <$ac_header>
21939 _ACEOF
21940 if { (ac_try="$ac_cpp conftest.$ac_ext"
21941 case "(($ac_try" in
21942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21943 *) ac_try_echo=$ac_try;;
21944 esac
21945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21947 ac_status=$?
21948 grep -v '^ *+' conftest.er1 >conftest.err
21949 rm -f conftest.er1
21950 cat conftest.err >&5
21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952 (exit $ac_status); } >/dev/null && {
21953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21954 test ! -s conftest.err
21955 }; then
21956 ac_header_preproc=yes
21957 else
21958 echo "$as_me: failed program was:" >&5
21959 sed 's/^/| /' conftest.$ac_ext >&5
21960
21961 ac_header_preproc=no
21962 fi
21963
21964 rm -f conftest.err conftest.$ac_ext
21965 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21966 echo "${ECHO_T}$ac_header_preproc" >&6; }
21967
21968 # So? What about this header?
21969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21970 yes:no: )
21971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21975 ac_header_preproc=yes
21976 ;;
21977 no:yes:* )
21978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21990
21991 ;;
21992 esac
21993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21996 echo $ECHO_N "(cached) $ECHO_C" >&6
21997 else
21998 eval "$as_ac_Header=\$ac_header_preproc"
21999 fi
22000 ac_res=`eval echo '${'$as_ac_Header'}'`
22001 { echo "$as_me:$LINENO: result: $ac_res" >&5
22002 echo "${ECHO_T}$ac_res" >&6; }
22003
22004 fi
22005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22006 cat >>confdefs.h <<_ACEOF
22007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22008 _ACEOF
22009
22010 else
22011
22012 for ac_header in kerberosIV/krb.h
22013 do
22014 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22019 echo $ECHO_N "(cached) $ECHO_C" >&6
22020 fi
22021 ac_res=`eval echo '${'$as_ac_Header'}'`
22022 { echo "$as_me:$LINENO: result: $ac_res" >&5
22023 echo "${ECHO_T}$ac_res" >&6; }
22024 else
22025 # Is the header compilable?
22026 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22027 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22028 cat >conftest.$ac_ext <<_ACEOF
22029 /* confdefs.h. */
22030 _ACEOF
22031 cat confdefs.h >>conftest.$ac_ext
22032 cat >>conftest.$ac_ext <<_ACEOF
22033 /* end confdefs.h. */
22034 $ac_includes_default
22035 #include <$ac_header>
22036 _ACEOF
22037 rm -f conftest.$ac_objext
22038 if { (ac_try="$ac_compile"
22039 case "(($ac_try" in
22040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22041 *) ac_try_echo=$ac_try;;
22042 esac
22043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22044 (eval "$ac_compile") 2>conftest.er1
22045 ac_status=$?
22046 grep -v '^ *+' conftest.er1 >conftest.err
22047 rm -f conftest.er1
22048 cat conftest.err >&5
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); } && {
22051 test -z "$ac_c_werror_flag" ||
22052 test ! -s conftest.err
22053 } && test -s conftest.$ac_objext; then
22054 ac_header_compiler=yes
22055 else
22056 echo "$as_me: failed program was:" >&5
22057 sed 's/^/| /' conftest.$ac_ext >&5
22058
22059 ac_header_compiler=no
22060 fi
22061
22062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22063 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22064 echo "${ECHO_T}$ac_header_compiler" >&6; }
22065
22066 # Is the header present?
22067 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22069 cat >conftest.$ac_ext <<_ACEOF
22070 /* confdefs.h. */
22071 _ACEOF
22072 cat confdefs.h >>conftest.$ac_ext
22073 cat >>conftest.$ac_ext <<_ACEOF
22074 /* end confdefs.h. */
22075 #include <$ac_header>
22076 _ACEOF
22077 if { (ac_try="$ac_cpp conftest.$ac_ext"
22078 case "(($ac_try" in
22079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22080 *) ac_try_echo=$ac_try;;
22081 esac
22082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22084 ac_status=$?
22085 grep -v '^ *+' conftest.er1 >conftest.err
22086 rm -f conftest.er1
22087 cat conftest.err >&5
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); } >/dev/null && {
22090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22091 test ! -s conftest.err
22092 }; then
22093 ac_header_preproc=yes
22094 else
22095 echo "$as_me: failed program was:" >&5
22096 sed 's/^/| /' conftest.$ac_ext >&5
22097
22098 ac_header_preproc=no
22099 fi
22100
22101 rm -f conftest.err conftest.$ac_ext
22102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22103 echo "${ECHO_T}$ac_header_preproc" >&6; }
22104
22105 # So? What about this header?
22106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22107 yes:no: )
22108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22112 ac_header_preproc=yes
22113 ;;
22114 no:yes:* )
22115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22127
22128 ;;
22129 esac
22130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22133 echo $ECHO_N "(cached) $ECHO_C" >&6
22134 else
22135 eval "$as_ac_Header=\$ac_header_preproc"
22136 fi
22137 ac_res=`eval echo '${'$as_ac_Header'}'`
22138 { echo "$as_me:$LINENO: result: $ac_res" >&5
22139 echo "${ECHO_T}$ac_res" >&6; }
22140
22141 fi
22142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22143 cat >>confdefs.h <<_ACEOF
22144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22145 _ACEOF
22146
22147 else
22148
22149 for ac_header in kerberos/krb.h
22150 do
22151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22156 echo $ECHO_N "(cached) $ECHO_C" >&6
22157 fi
22158 ac_res=`eval echo '${'$as_ac_Header'}'`
22159 { echo "$as_me:$LINENO: result: $ac_res" >&5
22160 echo "${ECHO_T}$ac_res" >&6; }
22161 else
22162 # Is the header compilable?
22163 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22165 cat >conftest.$ac_ext <<_ACEOF
22166 /* confdefs.h. */
22167 _ACEOF
22168 cat confdefs.h >>conftest.$ac_ext
22169 cat >>conftest.$ac_ext <<_ACEOF
22170 /* end confdefs.h. */
22171 $ac_includes_default
22172 #include <$ac_header>
22173 _ACEOF
22174 rm -f conftest.$ac_objext
22175 if { (ac_try="$ac_compile"
22176 case "(($ac_try" in
22177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22178 *) ac_try_echo=$ac_try;;
22179 esac
22180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22181 (eval "$ac_compile") 2>conftest.er1
22182 ac_status=$?
22183 grep -v '^ *+' conftest.er1 >conftest.err
22184 rm -f conftest.er1
22185 cat conftest.err >&5
22186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187 (exit $ac_status); } && {
22188 test -z "$ac_c_werror_flag" ||
22189 test ! -s conftest.err
22190 } && test -s conftest.$ac_objext; then
22191 ac_header_compiler=yes
22192 else
22193 echo "$as_me: failed program was:" >&5
22194 sed 's/^/| /' conftest.$ac_ext >&5
22195
22196 ac_header_compiler=no
22197 fi
22198
22199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22201 echo "${ECHO_T}$ac_header_compiler" >&6; }
22202
22203 # Is the header present?
22204 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22206 cat >conftest.$ac_ext <<_ACEOF
22207 /* confdefs.h. */
22208 _ACEOF
22209 cat confdefs.h >>conftest.$ac_ext
22210 cat >>conftest.$ac_ext <<_ACEOF
22211 /* end confdefs.h. */
22212 #include <$ac_header>
22213 _ACEOF
22214 if { (ac_try="$ac_cpp conftest.$ac_ext"
22215 case "(($ac_try" in
22216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22217 *) ac_try_echo=$ac_try;;
22218 esac
22219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22221 ac_status=$?
22222 grep -v '^ *+' conftest.er1 >conftest.err
22223 rm -f conftest.er1
22224 cat conftest.err >&5
22225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); } >/dev/null && {
22227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22228 test ! -s conftest.err
22229 }; then
22230 ac_header_preproc=yes
22231 else
22232 echo "$as_me: failed program was:" >&5
22233 sed 's/^/| /' conftest.$ac_ext >&5
22234
22235 ac_header_preproc=no
22236 fi
22237
22238 rm -f conftest.err conftest.$ac_ext
22239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22240 echo "${ECHO_T}$ac_header_preproc" >&6; }
22241
22242 # So? What about this header?
22243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22244 yes:no: )
22245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22249 ac_header_preproc=yes
22250 ;;
22251 no:yes:* )
22252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22264
22265 ;;
22266 esac
22267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22270 echo $ECHO_N "(cached) $ECHO_C" >&6
22271 else
22272 eval "$as_ac_Header=\$ac_header_preproc"
22273 fi
22274 ac_res=`eval echo '${'$as_ac_Header'}'`
22275 { echo "$as_me:$LINENO: result: $ac_res" >&5
22276 echo "${ECHO_T}$ac_res" >&6; }
22277
22278 fi
22279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22280 cat >>confdefs.h <<_ACEOF
22281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22282 _ACEOF
22283
22284 fi
22285
22286 done
22287
22288 fi
22289
22290 done
22291
22292 fi
22293
22294 done
22295
22296 fi
22297
22298 for ac_header in com_err.h
22299 do
22300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22305 echo $ECHO_N "(cached) $ECHO_C" >&6
22306 fi
22307 ac_res=`eval echo '${'$as_ac_Header'}'`
22308 { echo "$as_me:$LINENO: result: $ac_res" >&5
22309 echo "${ECHO_T}$ac_res" >&6; }
22310 else
22311 # Is the header compilable?
22312 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22314 cat >conftest.$ac_ext <<_ACEOF
22315 /* confdefs.h. */
22316 _ACEOF
22317 cat confdefs.h >>conftest.$ac_ext
22318 cat >>conftest.$ac_ext <<_ACEOF
22319 /* end confdefs.h. */
22320 $ac_includes_default
22321 #include <$ac_header>
22322 _ACEOF
22323 rm -f conftest.$ac_objext
22324 if { (ac_try="$ac_compile"
22325 case "(($ac_try" in
22326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22327 *) ac_try_echo=$ac_try;;
22328 esac
22329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22330 (eval "$ac_compile") 2>conftest.er1
22331 ac_status=$?
22332 grep -v '^ *+' conftest.er1 >conftest.err
22333 rm -f conftest.er1
22334 cat conftest.err >&5
22335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336 (exit $ac_status); } && {
22337 test -z "$ac_c_werror_flag" ||
22338 test ! -s conftest.err
22339 } && test -s conftest.$ac_objext; then
22340 ac_header_compiler=yes
22341 else
22342 echo "$as_me: failed program was:" >&5
22343 sed 's/^/| /' conftest.$ac_ext >&5
22344
22345 ac_header_compiler=no
22346 fi
22347
22348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22350 echo "${ECHO_T}$ac_header_compiler" >&6; }
22351
22352 # Is the header present?
22353 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22355 cat >conftest.$ac_ext <<_ACEOF
22356 /* confdefs.h. */
22357 _ACEOF
22358 cat confdefs.h >>conftest.$ac_ext
22359 cat >>conftest.$ac_ext <<_ACEOF
22360 /* end confdefs.h. */
22361 #include <$ac_header>
22362 _ACEOF
22363 if { (ac_try="$ac_cpp conftest.$ac_ext"
22364 case "(($ac_try" in
22365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22366 *) ac_try_echo=$ac_try;;
22367 esac
22368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22370 ac_status=$?
22371 grep -v '^ *+' conftest.er1 >conftest.err
22372 rm -f conftest.er1
22373 cat conftest.err >&5
22374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375 (exit $ac_status); } >/dev/null && {
22376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22377 test ! -s conftest.err
22378 }; then
22379 ac_header_preproc=yes
22380 else
22381 echo "$as_me: failed program was:" >&5
22382 sed 's/^/| /' conftest.$ac_ext >&5
22383
22384 ac_header_preproc=no
22385 fi
22386
22387 rm -f conftest.err conftest.$ac_ext
22388 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22389 echo "${ECHO_T}$ac_header_preproc" >&6; }
22390
22391 # So? What about this header?
22392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22393 yes:no: )
22394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22398 ac_header_preproc=yes
22399 ;;
22400 no:yes:* )
22401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22408 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22413
22414 ;;
22415 esac
22416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22419 echo $ECHO_N "(cached) $ECHO_C" >&6
22420 else
22421 eval "$as_ac_Header=\$ac_header_preproc"
22422 fi
22423 ac_res=`eval echo '${'$as_ac_Header'}'`
22424 { echo "$as_me:$LINENO: result: $ac_res" >&5
22425 echo "${ECHO_T}$ac_res" >&6; }
22426
22427 fi
22428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22429 cat >>confdefs.h <<_ACEOF
22430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22431 _ACEOF
22432
22433 fi
22434
22435 done
22436
22437 fi
22438
22439 # Solaris requires -lintl if you want strerror (which calls dgettext)
22440 # to return localized messages.
22441
22442 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22443 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22444 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22445 echo $ECHO_N "(cached) $ECHO_C" >&6
22446 else
22447 ac_check_lib_save_LIBS=$LIBS
22448 LIBS="-lintl $LIBS"
22449 cat >conftest.$ac_ext <<_ACEOF
22450 /* confdefs.h. */
22451 _ACEOF
22452 cat confdefs.h >>conftest.$ac_ext
22453 cat >>conftest.$ac_ext <<_ACEOF
22454 /* end confdefs.h. */
22455
22456 /* Override any GCC internal prototype to avoid an error.
22457 Use char because int might match the return type of a GCC
22458 builtin and then its argument prototype would still apply. */
22459 #ifdef __cplusplus
22460 extern "C"
22461 #endif
22462 char dgettext ();
22463 int
22464 main ()
22465 {
22466 return dgettext ();
22467 ;
22468 return 0;
22469 }
22470 _ACEOF
22471 rm -f conftest.$ac_objext conftest$ac_exeext
22472 if { (ac_try="$ac_link"
22473 case "(($ac_try" in
22474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22475 *) ac_try_echo=$ac_try;;
22476 esac
22477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22478 (eval "$ac_link") 2>conftest.er1
22479 ac_status=$?
22480 grep -v '^ *+' conftest.er1 >conftest.err
22481 rm -f conftest.er1
22482 cat conftest.err >&5
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); } && {
22485 test -z "$ac_c_werror_flag" ||
22486 test ! -s conftest.err
22487 } && test -s conftest$ac_exeext &&
22488 $as_test_x conftest$ac_exeext; then
22489 ac_cv_lib_intl_dgettext=yes
22490 else
22491 echo "$as_me: failed program was:" >&5
22492 sed 's/^/| /' conftest.$ac_ext >&5
22493
22494 ac_cv_lib_intl_dgettext=no
22495 fi
22496
22497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22498 conftest$ac_exeext conftest.$ac_ext
22499 LIBS=$ac_check_lib_save_LIBS
22500 fi
22501 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22502 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22503 if test $ac_cv_lib_intl_dgettext = yes; then
22504 cat >>confdefs.h <<_ACEOF
22505 #define HAVE_LIBINTL 1
22506 _ACEOF
22507
22508 LIBS="-lintl $LIBS"
22509
22510 fi
22511
22512
22513 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22514 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22515 if test "${emacs_cv_localtime_cache+set}" = set; then
22516 echo $ECHO_N "(cached) $ECHO_C" >&6
22517 else
22518 if test x$ac_cv_func_tzset = xyes; then
22519 if test "$cross_compiling" = yes; then
22520 # If we have tzset, assume the worst when cross-compiling.
22521 emacs_cv_localtime_cache=yes
22522 else
22523 cat >conftest.$ac_ext <<_ACEOF
22524 /* confdefs.h. */
22525 _ACEOF
22526 cat confdefs.h >>conftest.$ac_ext
22527 cat >>conftest.$ac_ext <<_ACEOF
22528 /* end confdefs.h. */
22529 #include <time.h>
22530 extern char **environ;
22531 unset_TZ ()
22532 {
22533 char **from, **to;
22534 for (to = from = environ; (*to = *from); from++)
22535 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22536 to++;
22537 }
22538 char TZ_GMT0[] = "TZ=GMT0";
22539 char TZ_PST8[] = "TZ=PST8";
22540 main()
22541 {
22542 time_t now = time ((time_t *) 0);
22543 int hour_GMT0, hour_unset;
22544 if (putenv (TZ_GMT0) != 0)
22545 exit (1);
22546 hour_GMT0 = localtime (&now)->tm_hour;
22547 unset_TZ ();
22548 hour_unset = localtime (&now)->tm_hour;
22549 if (putenv (TZ_PST8) != 0)
22550 exit (1);
22551 if (localtime (&now)->tm_hour == hour_GMT0)
22552 exit (1);
22553 unset_TZ ();
22554 if (localtime (&now)->tm_hour != hour_unset)
22555 exit (1);
22556 exit (0);
22557 }
22558 _ACEOF
22559 rm -f conftest$ac_exeext
22560 if { (ac_try="$ac_link"
22561 case "(($ac_try" in
22562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22563 *) ac_try_echo=$ac_try;;
22564 esac
22565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22566 (eval "$ac_link") 2>&5
22567 ac_status=$?
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22570 { (case "(($ac_try" in
22571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22572 *) ac_try_echo=$ac_try;;
22573 esac
22574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22575 (eval "$ac_try") 2>&5
22576 ac_status=$?
22577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578 (exit $ac_status); }; }; then
22579 emacs_cv_localtime_cache=no
22580 else
22581 echo "$as_me: program exited with status $ac_status" >&5
22582 echo "$as_me: failed program was:" >&5
22583 sed 's/^/| /' conftest.$ac_ext >&5
22584
22585 ( exit $ac_status )
22586 emacs_cv_localtime_cache=yes
22587 fi
22588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22589 fi
22590
22591
22592 else
22593 # If we lack tzset, report that localtime does not cache TZ,
22594 # since we can't invalidate the cache if we don't have tzset.
22595 emacs_cv_localtime_cache=no
22596 fi
22597 fi
22598 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22599 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22600 if test $emacs_cv_localtime_cache = yes; then
22601
22602 cat >>confdefs.h <<\_ACEOF
22603 #define LOCALTIME_CACHE 1
22604 _ACEOF
22605
22606 fi
22607
22608 if test "x$HAVE_TIMEVAL" = xyes; then
22609
22610 for ac_func in gettimeofday
22611 do
22612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22613 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22616 echo $ECHO_N "(cached) $ECHO_C" >&6
22617 else
22618 cat >conftest.$ac_ext <<_ACEOF
22619 /* confdefs.h. */
22620 _ACEOF
22621 cat confdefs.h >>conftest.$ac_ext
22622 cat >>conftest.$ac_ext <<_ACEOF
22623 /* end confdefs.h. */
22624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22626 #define $ac_func innocuous_$ac_func
22627
22628 /* System header to define __stub macros and hopefully few prototypes,
22629 which can conflict with char $ac_func (); below.
22630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22631 <limits.h> exists even on freestanding compilers. */
22632
22633 #ifdef __STDC__
22634 # include <limits.h>
22635 #else
22636 # include <assert.h>
22637 #endif
22638
22639 #undef $ac_func
22640
22641 /* Override any GCC internal prototype to avoid an error.
22642 Use char because int might match the return type of a GCC
22643 builtin and then its argument prototype would still apply. */
22644 #ifdef __cplusplus
22645 extern "C"
22646 #endif
22647 char $ac_func ();
22648 /* The GNU C library defines this for functions which it implements
22649 to always fail with ENOSYS. Some functions are actually named
22650 something starting with __ and the normal name is an alias. */
22651 #if defined __stub_$ac_func || defined __stub___$ac_func
22652 choke me
22653 #endif
22654
22655 int
22656 main ()
22657 {
22658 return $ac_func ();
22659 ;
22660 return 0;
22661 }
22662 _ACEOF
22663 rm -f conftest.$ac_objext conftest$ac_exeext
22664 if { (ac_try="$ac_link"
22665 case "(($ac_try" in
22666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22667 *) ac_try_echo=$ac_try;;
22668 esac
22669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22670 (eval "$ac_link") 2>conftest.er1
22671 ac_status=$?
22672 grep -v '^ *+' conftest.er1 >conftest.err
22673 rm -f conftest.er1
22674 cat conftest.err >&5
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); } && {
22677 test -z "$ac_c_werror_flag" ||
22678 test ! -s conftest.err
22679 } && test -s conftest$ac_exeext &&
22680 $as_test_x conftest$ac_exeext; then
22681 eval "$as_ac_var=yes"
22682 else
22683 echo "$as_me: failed program was:" >&5
22684 sed 's/^/| /' conftest.$ac_ext >&5
22685
22686 eval "$as_ac_var=no"
22687 fi
22688
22689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22690 conftest$ac_exeext conftest.$ac_ext
22691 fi
22692 ac_res=`eval echo '${'$as_ac_var'}'`
22693 { echo "$as_me:$LINENO: result: $ac_res" >&5
22694 echo "${ECHO_T}$ac_res" >&6; }
22695 if test `eval echo '${'$as_ac_var'}'` = yes; then
22696 cat >>confdefs.h <<_ACEOF
22697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22698 _ACEOF
22699
22700 fi
22701 done
22702
22703 if test $ac_cv_func_gettimeofday = yes; then
22704 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22705 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22706 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22707 echo $ECHO_N "(cached) $ECHO_C" >&6
22708 else
22709 cat >conftest.$ac_ext <<_ACEOF
22710 /* confdefs.h. */
22711 _ACEOF
22712 cat confdefs.h >>conftest.$ac_ext
22713 cat >>conftest.$ac_ext <<_ACEOF
22714 /* end confdefs.h. */
22715
22716 #ifdef TIME_WITH_SYS_TIME
22717 #include <sys/time.h>
22718 #include <time.h>
22719 #else
22720 #ifdef HAVE_SYS_TIME_H
22721 #include <sys/time.h>
22722 #else
22723 #include <time.h>
22724 #endif
22725 #endif
22726 int
22727 main ()
22728 {
22729 struct timeval time;
22730 gettimeofday (&time, 0);
22731 ;
22732 return 0;
22733 }
22734 _ACEOF
22735 rm -f conftest.$ac_objext
22736 if { (ac_try="$ac_compile"
22737 case "(($ac_try" in
22738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22739 *) ac_try_echo=$ac_try;;
22740 esac
22741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22742 (eval "$ac_compile") 2>conftest.er1
22743 ac_status=$?
22744 grep -v '^ *+' conftest.er1 >conftest.err
22745 rm -f conftest.er1
22746 cat conftest.err >&5
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); } && {
22749 test -z "$ac_c_werror_flag" ||
22750 test ! -s conftest.err
22751 } && test -s conftest.$ac_objext; then
22752 emacs_cv_gettimeofday_two_arguments=yes
22753 else
22754 echo "$as_me: failed program was:" >&5
22755 sed 's/^/| /' conftest.$ac_ext >&5
22756
22757 emacs_cv_gettimeofday_two_arguments=no
22758 fi
22759
22760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22761 fi
22762 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22763 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22764 if test $emacs_cv_gettimeofday_two_arguments = no; then
22765
22766 cat >>confdefs.h <<\_ACEOF
22767 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22768 _ACEOF
22769
22770 fi
22771 fi
22772 fi
22773
22774 ok_so_far=yes
22775 { echo "$as_me:$LINENO: checking for socket" >&5
22776 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22777 if test "${ac_cv_func_socket+set}" = set; then
22778 echo $ECHO_N "(cached) $ECHO_C" >&6
22779 else
22780 cat >conftest.$ac_ext <<_ACEOF
22781 /* confdefs.h. */
22782 _ACEOF
22783 cat confdefs.h >>conftest.$ac_ext
22784 cat >>conftest.$ac_ext <<_ACEOF
22785 /* end confdefs.h. */
22786 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22788 #define socket innocuous_socket
22789
22790 /* System header to define __stub macros and hopefully few prototypes,
22791 which can conflict with char socket (); below.
22792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22793 <limits.h> exists even on freestanding compilers. */
22794
22795 #ifdef __STDC__
22796 # include <limits.h>
22797 #else
22798 # include <assert.h>
22799 #endif
22800
22801 #undef socket
22802
22803 /* Override any GCC internal prototype to avoid an error.
22804 Use char because int might match the return type of a GCC
22805 builtin and then its argument prototype would still apply. */
22806 #ifdef __cplusplus
22807 extern "C"
22808 #endif
22809 char socket ();
22810 /* The GNU C library defines this for functions which it implements
22811 to always fail with ENOSYS. Some functions are actually named
22812 something starting with __ and the normal name is an alias. */
22813 #if defined __stub_socket || defined __stub___socket
22814 choke me
22815 #endif
22816
22817 int
22818 main ()
22819 {
22820 return socket ();
22821 ;
22822 return 0;
22823 }
22824 _ACEOF
22825 rm -f conftest.$ac_objext conftest$ac_exeext
22826 if { (ac_try="$ac_link"
22827 case "(($ac_try" in
22828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22829 *) ac_try_echo=$ac_try;;
22830 esac
22831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22832 (eval "$ac_link") 2>conftest.er1
22833 ac_status=$?
22834 grep -v '^ *+' conftest.er1 >conftest.err
22835 rm -f conftest.er1
22836 cat conftest.err >&5
22837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); } && {
22839 test -z "$ac_c_werror_flag" ||
22840 test ! -s conftest.err
22841 } && test -s conftest$ac_exeext &&
22842 $as_test_x conftest$ac_exeext; then
22843 ac_cv_func_socket=yes
22844 else
22845 echo "$as_me: failed program was:" >&5
22846 sed 's/^/| /' conftest.$ac_ext >&5
22847
22848 ac_cv_func_socket=no
22849 fi
22850
22851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22852 conftest$ac_exeext conftest.$ac_ext
22853 fi
22854 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22855 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22856 if test $ac_cv_func_socket = yes; then
22857 :
22858 else
22859 ok_so_far=no
22860 fi
22861
22862 if test $ok_so_far = yes; then
22863 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22864 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22865 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22866 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22867 echo $ECHO_N "(cached) $ECHO_C" >&6
22868 fi
22869 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22870 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22871 else
22872 # Is the header compilable?
22873 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22874 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22875 cat >conftest.$ac_ext <<_ACEOF
22876 /* confdefs.h. */
22877 _ACEOF
22878 cat confdefs.h >>conftest.$ac_ext
22879 cat >>conftest.$ac_ext <<_ACEOF
22880 /* end confdefs.h. */
22881 $ac_includes_default
22882 #include <netinet/in.h>
22883 _ACEOF
22884 rm -f conftest.$ac_objext
22885 if { (ac_try="$ac_compile"
22886 case "(($ac_try" in
22887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22888 *) ac_try_echo=$ac_try;;
22889 esac
22890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22891 (eval "$ac_compile") 2>conftest.er1
22892 ac_status=$?
22893 grep -v '^ *+' conftest.er1 >conftest.err
22894 rm -f conftest.er1
22895 cat conftest.err >&5
22896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897 (exit $ac_status); } && {
22898 test -z "$ac_c_werror_flag" ||
22899 test ! -s conftest.err
22900 } && test -s conftest.$ac_objext; then
22901 ac_header_compiler=yes
22902 else
22903 echo "$as_me: failed program was:" >&5
22904 sed 's/^/| /' conftest.$ac_ext >&5
22905
22906 ac_header_compiler=no
22907 fi
22908
22909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22910 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22911 echo "${ECHO_T}$ac_header_compiler" >&6; }
22912
22913 # Is the header present?
22914 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22915 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22916 cat >conftest.$ac_ext <<_ACEOF
22917 /* confdefs.h. */
22918 _ACEOF
22919 cat confdefs.h >>conftest.$ac_ext
22920 cat >>conftest.$ac_ext <<_ACEOF
22921 /* end confdefs.h. */
22922 #include <netinet/in.h>
22923 _ACEOF
22924 if { (ac_try="$ac_cpp conftest.$ac_ext"
22925 case "(($ac_try" in
22926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22927 *) ac_try_echo=$ac_try;;
22928 esac
22929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22931 ac_status=$?
22932 grep -v '^ *+' conftest.er1 >conftest.err
22933 rm -f conftest.er1
22934 cat conftest.err >&5
22935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22936 (exit $ac_status); } >/dev/null && {
22937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22938 test ! -s conftest.err
22939 }; then
22940 ac_header_preproc=yes
22941 else
22942 echo "$as_me: failed program was:" >&5
22943 sed 's/^/| /' conftest.$ac_ext >&5
22944
22945 ac_header_preproc=no
22946 fi
22947
22948 rm -f conftest.err conftest.$ac_ext
22949 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22950 echo "${ECHO_T}$ac_header_preproc" >&6; }
22951
22952 # So? What about this header?
22953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22954 yes:no: )
22955 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22956 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22957 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22958 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22959 ac_header_preproc=yes
22960 ;;
22961 no:yes:* )
22962 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22963 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22964 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22965 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22966 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22967 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22968 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22969 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22970 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22971 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22972 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22973 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22974
22975 ;;
22976 esac
22977 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22978 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22979 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22980 echo $ECHO_N "(cached) $ECHO_C" >&6
22981 else
22982 ac_cv_header_netinet_in_h=$ac_header_preproc
22983 fi
22984 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22985 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22986
22987 fi
22988 if test $ac_cv_header_netinet_in_h = yes; then
22989 :
22990 else
22991 ok_so_far=no
22992 fi
22993
22994
22995 fi
22996 if test $ok_so_far = yes; then
22997 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22998 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22999 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23000 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23001 echo $ECHO_N "(cached) $ECHO_C" >&6
23002 fi
23003 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23004 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23005 else
23006 # Is the header compilable?
23007 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
23008 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
23009 cat >conftest.$ac_ext <<_ACEOF
23010 /* confdefs.h. */
23011 _ACEOF
23012 cat confdefs.h >>conftest.$ac_ext
23013 cat >>conftest.$ac_ext <<_ACEOF
23014 /* end confdefs.h. */
23015 $ac_includes_default
23016 #include <arpa/inet.h>
23017 _ACEOF
23018 rm -f conftest.$ac_objext
23019 if { (ac_try="$ac_compile"
23020 case "(($ac_try" in
23021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23022 *) ac_try_echo=$ac_try;;
23023 esac
23024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23025 (eval "$ac_compile") 2>conftest.er1
23026 ac_status=$?
23027 grep -v '^ *+' conftest.er1 >conftest.err
23028 rm -f conftest.er1
23029 cat conftest.err >&5
23030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031 (exit $ac_status); } && {
23032 test -z "$ac_c_werror_flag" ||
23033 test ! -s conftest.err
23034 } && test -s conftest.$ac_objext; then
23035 ac_header_compiler=yes
23036 else
23037 echo "$as_me: failed program was:" >&5
23038 sed 's/^/| /' conftest.$ac_ext >&5
23039
23040 ac_header_compiler=no
23041 fi
23042
23043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23045 echo "${ECHO_T}$ac_header_compiler" >&6; }
23046
23047 # Is the header present?
23048 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
23049 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
23050 cat >conftest.$ac_ext <<_ACEOF
23051 /* confdefs.h. */
23052 _ACEOF
23053 cat confdefs.h >>conftest.$ac_ext
23054 cat >>conftest.$ac_ext <<_ACEOF
23055 /* end confdefs.h. */
23056 #include <arpa/inet.h>
23057 _ACEOF
23058 if { (ac_try="$ac_cpp conftest.$ac_ext"
23059 case "(($ac_try" in
23060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23061 *) ac_try_echo=$ac_try;;
23062 esac
23063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23065 ac_status=$?
23066 grep -v '^ *+' conftest.er1 >conftest.err
23067 rm -f conftest.er1
23068 cat conftest.err >&5
23069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070 (exit $ac_status); } >/dev/null && {
23071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23072 test ! -s conftest.err
23073 }; then
23074 ac_header_preproc=yes
23075 else
23076 echo "$as_me: failed program was:" >&5
23077 sed 's/^/| /' conftest.$ac_ext >&5
23078
23079 ac_header_preproc=no
23080 fi
23081
23082 rm -f conftest.err conftest.$ac_ext
23083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23084 echo "${ECHO_T}$ac_header_preproc" >&6; }
23085
23086 # So? What about this header?
23087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23088 yes:no: )
23089 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23090 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23091 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23092 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23093 ac_header_preproc=yes
23094 ;;
23095 no:yes:* )
23096 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23097 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23098 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23099 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23100 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23101 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23102 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23103 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23104 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23105 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23106 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23107 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23108
23109 ;;
23110 esac
23111 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23112 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
23113 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23114 echo $ECHO_N "(cached) $ECHO_C" >&6
23115 else
23116 ac_cv_header_arpa_inet_h=$ac_header_preproc
23117 fi
23118 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23119 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23120
23121 fi
23122 if test $ac_cv_header_arpa_inet_h = yes; then
23123 :
23124 else
23125 ok_so_far=no
23126 fi
23127
23128
23129 fi
23130 if test $ok_so_far = yes; then
23131
23132 cat >>confdefs.h <<\_ACEOF
23133 #define HAVE_INET_SOCKETS 1
23134 _ACEOF
23135
23136 fi
23137
23138
23139 for ac_header in sys/ioctl.h
23140 do
23141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23146 echo $ECHO_N "(cached) $ECHO_C" >&6
23147 fi
23148 ac_res=`eval echo '${'$as_ac_Header'}'`
23149 { echo "$as_me:$LINENO: result: $ac_res" >&5
23150 echo "${ECHO_T}$ac_res" >&6; }
23151 else
23152 # Is the header compilable?
23153 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23155 cat >conftest.$ac_ext <<_ACEOF
23156 /* confdefs.h. */
23157 _ACEOF
23158 cat confdefs.h >>conftest.$ac_ext
23159 cat >>conftest.$ac_ext <<_ACEOF
23160 /* end confdefs.h. */
23161 $ac_includes_default
23162 #include <$ac_header>
23163 _ACEOF
23164 rm -f conftest.$ac_objext
23165 if { (ac_try="$ac_compile"
23166 case "(($ac_try" in
23167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23168 *) ac_try_echo=$ac_try;;
23169 esac
23170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23171 (eval "$ac_compile") 2>conftest.er1
23172 ac_status=$?
23173 grep -v '^ *+' conftest.er1 >conftest.err
23174 rm -f conftest.er1
23175 cat conftest.err >&5
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); } && {
23178 test -z "$ac_c_werror_flag" ||
23179 test ! -s conftest.err
23180 } && test -s conftest.$ac_objext; then
23181 ac_header_compiler=yes
23182 else
23183 echo "$as_me: failed program was:" >&5
23184 sed 's/^/| /' conftest.$ac_ext >&5
23185
23186 ac_header_compiler=no
23187 fi
23188
23189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23190 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23191 echo "${ECHO_T}$ac_header_compiler" >&6; }
23192
23193 # Is the header present?
23194 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23196 cat >conftest.$ac_ext <<_ACEOF
23197 /* confdefs.h. */
23198 _ACEOF
23199 cat confdefs.h >>conftest.$ac_ext
23200 cat >>conftest.$ac_ext <<_ACEOF
23201 /* end confdefs.h. */
23202 #include <$ac_header>
23203 _ACEOF
23204 if { (ac_try="$ac_cpp conftest.$ac_ext"
23205 case "(($ac_try" in
23206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23207 *) ac_try_echo=$ac_try;;
23208 esac
23209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23211 ac_status=$?
23212 grep -v '^ *+' conftest.er1 >conftest.err
23213 rm -f conftest.er1
23214 cat conftest.err >&5
23215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216 (exit $ac_status); } >/dev/null && {
23217 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23218 test ! -s conftest.err
23219 }; then
23220 ac_header_preproc=yes
23221 else
23222 echo "$as_me: failed program was:" >&5
23223 sed 's/^/| /' conftest.$ac_ext >&5
23224
23225 ac_header_preproc=no
23226 fi
23227
23228 rm -f conftest.err conftest.$ac_ext
23229 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23230 echo "${ECHO_T}$ac_header_preproc" >&6; }
23231
23232 # So? What about this header?
23233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23234 yes:no: )
23235 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23236 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23238 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23239 ac_header_preproc=yes
23240 ;;
23241 no:yes:* )
23242 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23243 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23244 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23245 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23246 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23247 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23248 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23249 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23252 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23253 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23254
23255 ;;
23256 esac
23257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23260 echo $ECHO_N "(cached) $ECHO_C" >&6
23261 else
23262 eval "$as_ac_Header=\$ac_header_preproc"
23263 fi
23264 ac_res=`eval echo '${'$as_ac_Header'}'`
23265 { echo "$as_me:$LINENO: result: $ac_res" >&5
23266 echo "${ECHO_T}$ac_res" >&6; }
23267
23268 fi
23269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23270 cat >>confdefs.h <<_ACEOF
23271 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23272 _ACEOF
23273
23274 fi
23275
23276 done
23277
23278
23279 if test -f /usr/lpp/X11/bin/smt.exp; then
23280
23281 cat >>confdefs.h <<\_ACEOF
23282 #define HAVE_AIX_SMT_EXP 1
23283 _ACEOF
23284
23285 fi
23286
23287 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23288 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23289 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23290 { echo "$as_me:$LINENO: result: yes" >&5
23291 echo "${ECHO_T}yes" >&6; }
23292
23293 cat >>confdefs.h <<\_ACEOF
23294 #define HAVE_DEV_PTMX 1
23295 _ACEOF
23296
23297 else
23298 { echo "$as_me:$LINENO: result: no" >&5
23299 echo "${ECHO_T}no" >&6; }
23300 fi
23301
23302 { echo "$as_me:$LINENO: checking for pid_t" >&5
23303 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23304 if test "${ac_cv_type_pid_t+set}" = set; then
23305 echo $ECHO_N "(cached) $ECHO_C" >&6
23306 else
23307 cat >conftest.$ac_ext <<_ACEOF
23308 /* confdefs.h. */
23309 _ACEOF
23310 cat confdefs.h >>conftest.$ac_ext
23311 cat >>conftest.$ac_ext <<_ACEOF
23312 /* end confdefs.h. */
23313 $ac_includes_default
23314 typedef pid_t ac__type_new_;
23315 int
23316 main ()
23317 {
23318 if ((ac__type_new_ *) 0)
23319 return 0;
23320 if (sizeof (ac__type_new_))
23321 return 0;
23322 ;
23323 return 0;
23324 }
23325 _ACEOF
23326 rm -f conftest.$ac_objext
23327 if { (ac_try="$ac_compile"
23328 case "(($ac_try" in
23329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23330 *) ac_try_echo=$ac_try;;
23331 esac
23332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23333 (eval "$ac_compile") 2>conftest.er1
23334 ac_status=$?
23335 grep -v '^ *+' conftest.er1 >conftest.err
23336 rm -f conftest.er1
23337 cat conftest.err >&5
23338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339 (exit $ac_status); } && {
23340 test -z "$ac_c_werror_flag" ||
23341 test ! -s conftest.err
23342 } && test -s conftest.$ac_objext; then
23343 ac_cv_type_pid_t=yes
23344 else
23345 echo "$as_me: failed program was:" >&5
23346 sed 's/^/| /' conftest.$ac_ext >&5
23347
23348 ac_cv_type_pid_t=no
23349 fi
23350
23351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23352 fi
23353 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23354 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23355 if test $ac_cv_type_pid_t = yes; then
23356 :
23357 else
23358
23359 cat >>confdefs.h <<_ACEOF
23360 #define pid_t int
23361 _ACEOF
23362
23363 fi
23364
23365
23366 for ac_header in vfork.h
23367 do
23368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23373 echo $ECHO_N "(cached) $ECHO_C" >&6
23374 fi
23375 ac_res=`eval echo '${'$as_ac_Header'}'`
23376 { echo "$as_me:$LINENO: result: $ac_res" >&5
23377 echo "${ECHO_T}$ac_res" >&6; }
23378 else
23379 # Is the header compilable?
23380 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23382 cat >conftest.$ac_ext <<_ACEOF
23383 /* confdefs.h. */
23384 _ACEOF
23385 cat confdefs.h >>conftest.$ac_ext
23386 cat >>conftest.$ac_ext <<_ACEOF
23387 /* end confdefs.h. */
23388 $ac_includes_default
23389 #include <$ac_header>
23390 _ACEOF
23391 rm -f conftest.$ac_objext
23392 if { (ac_try="$ac_compile"
23393 case "(($ac_try" in
23394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23395 *) ac_try_echo=$ac_try;;
23396 esac
23397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23398 (eval "$ac_compile") 2>conftest.er1
23399 ac_status=$?
23400 grep -v '^ *+' conftest.er1 >conftest.err
23401 rm -f conftest.er1
23402 cat conftest.err >&5
23403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404 (exit $ac_status); } && {
23405 test -z "$ac_c_werror_flag" ||
23406 test ! -s conftest.err
23407 } && test -s conftest.$ac_objext; then
23408 ac_header_compiler=yes
23409 else
23410 echo "$as_me: failed program was:" >&5
23411 sed 's/^/| /' conftest.$ac_ext >&5
23412
23413 ac_header_compiler=no
23414 fi
23415
23416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23417 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23418 echo "${ECHO_T}$ac_header_compiler" >&6; }
23419
23420 # Is the header present?
23421 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23423 cat >conftest.$ac_ext <<_ACEOF
23424 /* confdefs.h. */
23425 _ACEOF
23426 cat confdefs.h >>conftest.$ac_ext
23427 cat >>conftest.$ac_ext <<_ACEOF
23428 /* end confdefs.h. */
23429 #include <$ac_header>
23430 _ACEOF
23431 if { (ac_try="$ac_cpp conftest.$ac_ext"
23432 case "(($ac_try" in
23433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23434 *) ac_try_echo=$ac_try;;
23435 esac
23436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23438 ac_status=$?
23439 grep -v '^ *+' conftest.er1 >conftest.err
23440 rm -f conftest.er1
23441 cat conftest.err >&5
23442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); } >/dev/null && {
23444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23445 test ! -s conftest.err
23446 }; then
23447 ac_header_preproc=yes
23448 else
23449 echo "$as_me: failed program was:" >&5
23450 sed 's/^/| /' conftest.$ac_ext >&5
23451
23452 ac_header_preproc=no
23453 fi
23454
23455 rm -f conftest.err conftest.$ac_ext
23456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23457 echo "${ECHO_T}$ac_header_preproc" >&6; }
23458
23459 # So? What about this header?
23460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23461 yes:no: )
23462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23466 ac_header_preproc=yes
23467 ;;
23468 no:yes:* )
23469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23481
23482 ;;
23483 esac
23484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23487 echo $ECHO_N "(cached) $ECHO_C" >&6
23488 else
23489 eval "$as_ac_Header=\$ac_header_preproc"
23490 fi
23491 ac_res=`eval echo '${'$as_ac_Header'}'`
23492 { echo "$as_me:$LINENO: result: $ac_res" >&5
23493 echo "${ECHO_T}$ac_res" >&6; }
23494
23495 fi
23496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23497 cat >>confdefs.h <<_ACEOF
23498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23499 _ACEOF
23500
23501 fi
23502
23503 done
23504
23505
23506
23507 for ac_func in fork vfork
23508 do
23509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23510 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23512 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23513 echo $ECHO_N "(cached) $ECHO_C" >&6
23514 else
23515 cat >conftest.$ac_ext <<_ACEOF
23516 /* confdefs.h. */
23517 _ACEOF
23518 cat confdefs.h >>conftest.$ac_ext
23519 cat >>conftest.$ac_ext <<_ACEOF
23520 /* end confdefs.h. */
23521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23523 #define $ac_func innocuous_$ac_func
23524
23525 /* System header to define __stub macros and hopefully few prototypes,
23526 which can conflict with char $ac_func (); below.
23527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23528 <limits.h> exists even on freestanding compilers. */
23529
23530 #ifdef __STDC__
23531 # include <limits.h>
23532 #else
23533 # include <assert.h>
23534 #endif
23535
23536 #undef $ac_func
23537
23538 /* Override any GCC internal prototype to avoid an error.
23539 Use char because int might match the return type of a GCC
23540 builtin and then its argument prototype would still apply. */
23541 #ifdef __cplusplus
23542 extern "C"
23543 #endif
23544 char $ac_func ();
23545 /* The GNU C library defines this for functions which it implements
23546 to always fail with ENOSYS. Some functions are actually named
23547 something starting with __ and the normal name is an alias. */
23548 #if defined __stub_$ac_func || defined __stub___$ac_func
23549 choke me
23550 #endif
23551
23552 int
23553 main ()
23554 {
23555 return $ac_func ();
23556 ;
23557 return 0;
23558 }
23559 _ACEOF
23560 rm -f conftest.$ac_objext conftest$ac_exeext
23561 if { (ac_try="$ac_link"
23562 case "(($ac_try" in
23563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23564 *) ac_try_echo=$ac_try;;
23565 esac
23566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23567 (eval "$ac_link") 2>conftest.er1
23568 ac_status=$?
23569 grep -v '^ *+' conftest.er1 >conftest.err
23570 rm -f conftest.er1
23571 cat conftest.err >&5
23572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573 (exit $ac_status); } && {
23574 test -z "$ac_c_werror_flag" ||
23575 test ! -s conftest.err
23576 } && test -s conftest$ac_exeext &&
23577 $as_test_x conftest$ac_exeext; then
23578 eval "$as_ac_var=yes"
23579 else
23580 echo "$as_me: failed program was:" >&5
23581 sed 's/^/| /' conftest.$ac_ext >&5
23582
23583 eval "$as_ac_var=no"
23584 fi
23585
23586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23587 conftest$ac_exeext conftest.$ac_ext
23588 fi
23589 ac_res=`eval echo '${'$as_ac_var'}'`
23590 { echo "$as_me:$LINENO: result: $ac_res" >&5
23591 echo "${ECHO_T}$ac_res" >&6; }
23592 if test `eval echo '${'$as_ac_var'}'` = yes; then
23593 cat >>confdefs.h <<_ACEOF
23594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23595 _ACEOF
23596
23597 fi
23598 done
23599
23600 if test "x$ac_cv_func_fork" = xyes; then
23601 { echo "$as_me:$LINENO: checking for working fork" >&5
23602 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23603 if test "${ac_cv_func_fork_works+set}" = set; then
23604 echo $ECHO_N "(cached) $ECHO_C" >&6
23605 else
23606 if test "$cross_compiling" = yes; then
23607 ac_cv_func_fork_works=cross
23608 else
23609 cat >conftest.$ac_ext <<_ACEOF
23610 /* confdefs.h. */
23611 _ACEOF
23612 cat confdefs.h >>conftest.$ac_ext
23613 cat >>conftest.$ac_ext <<_ACEOF
23614 /* end confdefs.h. */
23615 $ac_includes_default
23616 int
23617 main ()
23618 {
23619
23620 /* By Ruediger Kuhlmann. */
23621 return fork () < 0;
23622
23623 ;
23624 return 0;
23625 }
23626 _ACEOF
23627 rm -f conftest$ac_exeext
23628 if { (ac_try="$ac_link"
23629 case "(($ac_try" in
23630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23631 *) ac_try_echo=$ac_try;;
23632 esac
23633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23634 (eval "$ac_link") 2>&5
23635 ac_status=$?
23636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23638 { (case "(($ac_try" in
23639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23640 *) ac_try_echo=$ac_try;;
23641 esac
23642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23643 (eval "$ac_try") 2>&5
23644 ac_status=$?
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); }; }; then
23647 ac_cv_func_fork_works=yes
23648 else
23649 echo "$as_me: program exited with status $ac_status" >&5
23650 echo "$as_me: failed program was:" >&5
23651 sed 's/^/| /' conftest.$ac_ext >&5
23652
23653 ( exit $ac_status )
23654 ac_cv_func_fork_works=no
23655 fi
23656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23657 fi
23658
23659
23660 fi
23661 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23662 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23663
23664 else
23665 ac_cv_func_fork_works=$ac_cv_func_fork
23666 fi
23667 if test "x$ac_cv_func_fork_works" = xcross; then
23668 case $host in
23669 *-*-amigaos* | *-*-msdosdjgpp*)
23670 # Override, as these systems have only a dummy fork() stub
23671 ac_cv_func_fork_works=no
23672 ;;
23673 *)
23674 ac_cv_func_fork_works=yes
23675 ;;
23676 esac
23677 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23678 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23679 fi
23680 ac_cv_func_vfork_works=$ac_cv_func_vfork
23681 if test "x$ac_cv_func_vfork" = xyes; then
23682 { echo "$as_me:$LINENO: checking for working vfork" >&5
23683 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23684 if test "${ac_cv_func_vfork_works+set}" = set; then
23685 echo $ECHO_N "(cached) $ECHO_C" >&6
23686 else
23687 if test "$cross_compiling" = yes; then
23688 ac_cv_func_vfork_works=cross
23689 else
23690 cat >conftest.$ac_ext <<_ACEOF
23691 /* confdefs.h. */
23692 _ACEOF
23693 cat confdefs.h >>conftest.$ac_ext
23694 cat >>conftest.$ac_ext <<_ACEOF
23695 /* end confdefs.h. */
23696 /* Thanks to Paul Eggert for this test. */
23697 $ac_includes_default
23698 #include <sys/wait.h>
23699 #ifdef HAVE_VFORK_H
23700 # include <vfork.h>
23701 #endif
23702 /* On some sparc systems, changes by the child to local and incoming
23703 argument registers are propagated back to the parent. The compiler
23704 is told about this with #include <vfork.h>, but some compilers
23705 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23706 static variable whose address is put into a register that is
23707 clobbered by the vfork. */
23708 static void
23709 #ifdef __cplusplus
23710 sparc_address_test (int arg)
23711 # else
23712 sparc_address_test (arg) int arg;
23713 #endif
23714 {
23715 static pid_t child;
23716 if (!child) {
23717 child = vfork ();
23718 if (child < 0) {
23719 perror ("vfork");
23720 _exit(2);
23721 }
23722 if (!child) {
23723 arg = getpid();
23724 write(-1, "", 0);
23725 _exit (arg);
23726 }
23727 }
23728 }
23729
23730 int
23731 main ()
23732 {
23733 pid_t parent = getpid ();
23734 pid_t child;
23735
23736 sparc_address_test (0);
23737
23738 child = vfork ();
23739
23740 if (child == 0) {
23741 /* Here is another test for sparc vfork register problems. This
23742 test uses lots of local variables, at least as many local
23743 variables as main has allocated so far including compiler
23744 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23745 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23746 reuse the register of parent for one of the local variables,
23747 since it will think that parent can't possibly be used any more
23748 in this routine. Assigning to the local variable will thus
23749 munge parent in the parent process. */
23750 pid_t
23751 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23752 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23753 /* Convince the compiler that p..p7 are live; otherwise, it might
23754 use the same hardware register for all 8 local variables. */
23755 if (p != p1 || p != p2 || p != p3 || p != p4
23756 || p != p5 || p != p6 || p != p7)
23757 _exit(1);
23758
23759 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23760 from child file descriptors. If the child closes a descriptor
23761 before it execs or exits, this munges the parent's descriptor
23762 as well. Test for this by closing stdout in the child. */
23763 _exit(close(fileno(stdout)) != 0);
23764 } else {
23765 int status;
23766 struct stat st;
23767
23768 while (wait(&status) != child)
23769 ;
23770 return (
23771 /* Was there some problem with vforking? */
23772 child < 0
23773
23774 /* Did the child fail? (This shouldn't happen.) */
23775 || status
23776
23777 /* Did the vfork/compiler bug occur? */
23778 || parent != getpid()
23779
23780 /* Did the file descriptor bug occur? */
23781 || fstat(fileno(stdout), &st) != 0
23782 );
23783 }
23784 }
23785 _ACEOF
23786 rm -f conftest$ac_exeext
23787 if { (ac_try="$ac_link"
23788 case "(($ac_try" in
23789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23790 *) ac_try_echo=$ac_try;;
23791 esac
23792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23793 (eval "$ac_link") 2>&5
23794 ac_status=$?
23795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23797 { (case "(($ac_try" in
23798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23799 *) ac_try_echo=$ac_try;;
23800 esac
23801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23802 (eval "$ac_try") 2>&5
23803 ac_status=$?
23804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805 (exit $ac_status); }; }; then
23806 ac_cv_func_vfork_works=yes
23807 else
23808 echo "$as_me: program exited with status $ac_status" >&5
23809 echo "$as_me: failed program was:" >&5
23810 sed 's/^/| /' conftest.$ac_ext >&5
23811
23812 ( exit $ac_status )
23813 ac_cv_func_vfork_works=no
23814 fi
23815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23816 fi
23817
23818
23819 fi
23820 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23821 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23822
23823 fi;
23824 if test "x$ac_cv_func_fork_works" = xcross; then
23825 ac_cv_func_vfork_works=$ac_cv_func_vfork
23826 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23827 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23828 fi
23829
23830 if test "x$ac_cv_func_vfork_works" = xyes; then
23831
23832 cat >>confdefs.h <<\_ACEOF
23833 #define HAVE_WORKING_VFORK 1
23834 _ACEOF
23835
23836 else
23837
23838 cat >>confdefs.h <<\_ACEOF
23839 #define vfork fork
23840 _ACEOF
23841
23842 fi
23843 if test "x$ac_cv_func_fork_works" = xyes; then
23844
23845 cat >>confdefs.h <<\_ACEOF
23846 #define HAVE_WORKING_FORK 1
23847 _ACEOF
23848
23849 fi
23850
23851
23852 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23853 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23854 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23855 echo $ECHO_N "(cached) $ECHO_C" >&6
23856 else
23857 cat >conftest.$ac_ext <<_ACEOF
23858 /* confdefs.h. */
23859 _ACEOF
23860 cat confdefs.h >>conftest.$ac_ext
23861 cat >>conftest.$ac_ext <<_ACEOF
23862 /* end confdefs.h. */
23863 #include <langinfo.h>
23864 int
23865 main ()
23866 {
23867 char* cs = nl_langinfo(CODESET);
23868 ;
23869 return 0;
23870 }
23871 _ACEOF
23872 rm -f conftest.$ac_objext conftest$ac_exeext
23873 if { (ac_try="$ac_link"
23874 case "(($ac_try" in
23875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23876 *) ac_try_echo=$ac_try;;
23877 esac
23878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23879 (eval "$ac_link") 2>conftest.er1
23880 ac_status=$?
23881 grep -v '^ *+' conftest.er1 >conftest.err
23882 rm -f conftest.er1
23883 cat conftest.err >&5
23884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885 (exit $ac_status); } && {
23886 test -z "$ac_c_werror_flag" ||
23887 test ! -s conftest.err
23888 } && test -s conftest$ac_exeext &&
23889 $as_test_x conftest$ac_exeext; then
23890 emacs_cv_langinfo_codeset=yes
23891 else
23892 echo "$as_me: failed program was:" >&5
23893 sed 's/^/| /' conftest.$ac_ext >&5
23894
23895 emacs_cv_langinfo_codeset=no
23896 fi
23897
23898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23899 conftest$ac_exeext conftest.$ac_ext
23900
23901 fi
23902 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23903 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23904 if test $emacs_cv_langinfo_codeset = yes; then
23905
23906 cat >>confdefs.h <<\_ACEOF
23907 #define HAVE_LANGINFO_CODESET 1
23908 _ACEOF
23909
23910 fi
23911
23912 { echo "$as_me:$LINENO: checking for size_t" >&5
23913 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23914 if test "${ac_cv_type_size_t+set}" = set; then
23915 echo $ECHO_N "(cached) $ECHO_C" >&6
23916 else
23917 cat >conftest.$ac_ext <<_ACEOF
23918 /* confdefs.h. */
23919 _ACEOF
23920 cat confdefs.h >>conftest.$ac_ext
23921 cat >>conftest.$ac_ext <<_ACEOF
23922 /* end confdefs.h. */
23923 $ac_includes_default
23924 typedef size_t ac__type_new_;
23925 int
23926 main ()
23927 {
23928 if ((ac__type_new_ *) 0)
23929 return 0;
23930 if (sizeof (ac__type_new_))
23931 return 0;
23932 ;
23933 return 0;
23934 }
23935 _ACEOF
23936 rm -f conftest.$ac_objext
23937 if { (ac_try="$ac_compile"
23938 case "(($ac_try" in
23939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23940 *) ac_try_echo=$ac_try;;
23941 esac
23942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23943 (eval "$ac_compile") 2>conftest.er1
23944 ac_status=$?
23945 grep -v '^ *+' conftest.er1 >conftest.err
23946 rm -f conftest.er1
23947 cat conftest.err >&5
23948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949 (exit $ac_status); } && {
23950 test -z "$ac_c_werror_flag" ||
23951 test ! -s conftest.err
23952 } && test -s conftest.$ac_objext; then
23953 ac_cv_type_size_t=yes
23954 else
23955 echo "$as_me: failed program was:" >&5
23956 sed 's/^/| /' conftest.$ac_ext >&5
23957
23958 ac_cv_type_size_t=no
23959 fi
23960
23961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23962 fi
23963 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23964 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23965 if test $ac_cv_type_size_t = yes; then
23966
23967 cat >>confdefs.h <<_ACEOF
23968 #define HAVE_SIZE_T 1
23969 _ACEOF
23970
23971
23972 fi
23973
23974
23975 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23976 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23977 if test "${ac_cv_type_mbstate_t+set}" = set; then
23978 echo $ECHO_N "(cached) $ECHO_C" >&6
23979 else
23980 cat >conftest.$ac_ext <<_ACEOF
23981 /* confdefs.h. */
23982 _ACEOF
23983 cat confdefs.h >>conftest.$ac_ext
23984 cat >>conftest.$ac_ext <<_ACEOF
23985 /* end confdefs.h. */
23986 $ac_includes_default
23987 # include <wchar.h>
23988 int
23989 main ()
23990 {
23991 mbstate_t x; return sizeof x;
23992 ;
23993 return 0;
23994 }
23995 _ACEOF
23996 rm -f conftest.$ac_objext
23997 if { (ac_try="$ac_compile"
23998 case "(($ac_try" in
23999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24000 *) ac_try_echo=$ac_try;;
24001 esac
24002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24003 (eval "$ac_compile") 2>conftest.er1
24004 ac_status=$?
24005 grep -v '^ *+' conftest.er1 >conftest.err
24006 rm -f conftest.er1
24007 cat conftest.err >&5
24008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009 (exit $ac_status); } && {
24010 test -z "$ac_c_werror_flag" ||
24011 test ! -s conftest.err
24012 } && test -s conftest.$ac_objext; then
24013 ac_cv_type_mbstate_t=yes
24014 else
24015 echo "$as_me: failed program was:" >&5
24016 sed 's/^/| /' conftest.$ac_ext >&5
24017
24018 ac_cv_type_mbstate_t=no
24019 fi
24020
24021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24022 fi
24023 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
24024 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
24025 if test $ac_cv_type_mbstate_t = yes; then
24026
24027 cat >>confdefs.h <<\_ACEOF
24028 #define HAVE_MBSTATE_T 1
24029 _ACEOF
24030
24031 else
24032
24033 cat >>confdefs.h <<\_ACEOF
24034 #define mbstate_t int
24035 _ACEOF
24036
24037 fi
24038
24039 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
24040 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
24041 if test "${emacs_cv_c_restrict+set}" = set; then
24042 echo $ECHO_N "(cached) $ECHO_C" >&6
24043 else
24044 cat >conftest.$ac_ext <<_ACEOF
24045 /* confdefs.h. */
24046 _ACEOF
24047 cat confdefs.h >>conftest.$ac_ext
24048 cat >>conftest.$ac_ext <<_ACEOF
24049 /* end confdefs.h. */
24050 void fred (int *restrict x);
24051 int
24052 main ()
24053 {
24054
24055 ;
24056 return 0;
24057 }
24058 _ACEOF
24059 rm -f conftest.$ac_objext
24060 if { (ac_try="$ac_compile"
24061 case "(($ac_try" in
24062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24063 *) ac_try_echo=$ac_try;;
24064 esac
24065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24066 (eval "$ac_compile") 2>conftest.er1
24067 ac_status=$?
24068 grep -v '^ *+' conftest.er1 >conftest.err
24069 rm -f conftest.er1
24070 cat conftest.err >&5
24071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072 (exit $ac_status); } && {
24073 test -z "$ac_c_werror_flag" ||
24074 test ! -s conftest.err
24075 } && test -s conftest.$ac_objext; then
24076 emacs_cv_c_restrict=yes
24077 else
24078 echo "$as_me: failed program was:" >&5
24079 sed 's/^/| /' conftest.$ac_ext >&5
24080
24081 cat >conftest.$ac_ext <<_ACEOF
24082 /* confdefs.h. */
24083 _ACEOF
24084 cat confdefs.h >>conftest.$ac_ext
24085 cat >>conftest.$ac_ext <<_ACEOF
24086 /* end confdefs.h. */
24087 void fred (int *__restrict x);
24088 int
24089 main ()
24090 {
24091
24092 ;
24093 return 0;
24094 }
24095 _ACEOF
24096 rm -f conftest.$ac_objext
24097 if { (ac_try="$ac_compile"
24098 case "(($ac_try" in
24099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24100 *) ac_try_echo=$ac_try;;
24101 esac
24102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24103 (eval "$ac_compile") 2>conftest.er1
24104 ac_status=$?
24105 grep -v '^ *+' conftest.er1 >conftest.err
24106 rm -f conftest.er1
24107 cat conftest.err >&5
24108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); } && {
24110 test -z "$ac_c_werror_flag" ||
24111 test ! -s conftest.err
24112 } && test -s conftest.$ac_objext; then
24113 emacs_cv_c_restrict=__restrict
24114 else
24115 echo "$as_me: failed program was:" >&5
24116 sed 's/^/| /' conftest.$ac_ext >&5
24117
24118 emacs_cv_c_restrict=no
24119 fi
24120
24121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24122 fi
24123
24124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24125 fi
24126 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24127 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24128 case "$emacs_cv_c_restrict" in
24129 yes) emacs_restrict=restrict;;
24130 no) emacs_restrict="";;
24131 *) emacs_restrict="$emacs_cv_c_restrict";;
24132 esac
24133 if test "$emacs_restrict" != __restrict; then
24134
24135 cat >>confdefs.h <<_ACEOF
24136 #define __restrict $emacs_restrict
24137 _ACEOF
24138
24139 fi
24140
24141 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24142 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24143 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24144 echo $ECHO_N "(cached) $ECHO_C" >&6
24145 else
24146 cat >conftest.$ac_ext <<_ACEOF
24147 /* confdefs.h. */
24148 _ACEOF
24149 cat confdefs.h >>conftest.$ac_ext
24150 cat >>conftest.$ac_ext <<_ACEOF
24151 /* end confdefs.h. */
24152 void fred (int x[__restrict]);
24153 int
24154 main ()
24155 {
24156
24157 ;
24158 return 0;
24159 }
24160 _ACEOF
24161 rm -f conftest.$ac_objext
24162 if { (ac_try="$ac_compile"
24163 case "(($ac_try" in
24164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24165 *) ac_try_echo=$ac_try;;
24166 esac
24167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24168 (eval "$ac_compile") 2>conftest.er1
24169 ac_status=$?
24170 grep -v '^ *+' conftest.er1 >conftest.err
24171 rm -f conftest.er1
24172 cat conftest.err >&5
24173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174 (exit $ac_status); } && {
24175 test -z "$ac_c_werror_flag" ||
24176 test ! -s conftest.err
24177 } && test -s conftest.$ac_objext; then
24178 emacs_cv_c_restrict_arr=yes
24179 else
24180 echo "$as_me: failed program was:" >&5
24181 sed 's/^/| /' conftest.$ac_ext >&5
24182
24183 emacs_cv_c_restrict_arr=no
24184 fi
24185
24186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24187 fi
24188 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24189 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24190 if test "$emacs_cv_c_restrict_arr" = yes; then
24191
24192 cat >>confdefs.h <<\_ACEOF
24193 #define __restrict_arr __restrict
24194 _ACEOF
24195
24196 fi
24197
24198
24199
24200 # Set up the CFLAGS for real compilation, so we can substitute it.
24201 CFLAGS="$REAL_CFLAGS"
24202 CPPFLAGS="$REAL_CPPFLAGS"
24203
24204 #### Find out which version of Emacs this is.
24205 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24206 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24207 if test x"${version}" = x; then
24208 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24209 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24210 { (exit 1); exit 1; }; }
24211 fi
24212
24213 ### Specify what sort of things we'll be editing into Makefile and config.h.
24214 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24215
24216
24217
24218
24219
24220
24221
24222
24223
24224
24225
24226
24227
24228
24229
24230
24231
24232
24233
24234
24235
24236
24237
24238
24239
24240
24241
24242
24243
24244
24245
24246
24247
24248
24249
24250
24251
24252
24253
24254
24255
24256
24257
24258 cat >>confdefs.h <<_ACEOF
24259 #define EMACS_CONFIGURATION "${canonical}"
24260 _ACEOF
24261
24262
24263 cat >>confdefs.h <<_ACEOF
24264 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24265 _ACEOF
24266
24267
24268 cat >>confdefs.h <<_ACEOF
24269 #define config_machfile "${machfile}"
24270 _ACEOF
24271
24272
24273 cat >>confdefs.h <<_ACEOF
24274 #define config_opsysfile "${opsysfile}"
24275 _ACEOF
24276
24277
24278 cat >>confdefs.h <<_ACEOF
24279 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24280 _ACEOF
24281
24282
24283 cat >>confdefs.h <<_ACEOF
24284 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24285 _ACEOF
24286
24287
24288 cat >>confdefs.h <<_ACEOF
24289 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24290 _ACEOF
24291
24292
24293 cat >>confdefs.h <<_ACEOF
24294 #define UNEXEC_SRC ${UNEXEC_SRC}
24295 _ACEOF
24296
24297
24298 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24299
24300 cat >>confdefs.h <<\_ACEOF
24301 #define HAVE_X_WINDOWS 1
24302 _ACEOF
24303
24304 fi
24305 if test "${USE_X_TOOLKIT}" != "none" ; then
24306
24307 cat >>confdefs.h <<\_ACEOF
24308 #define USE_X_TOOLKIT 1
24309 _ACEOF
24310
24311 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24312
24313 cat >>confdefs.h <<\_ACEOF
24314 #define USE_LUCID 1
24315 _ACEOF
24316
24317 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24318
24319 cat >>confdefs.h <<\_ACEOF
24320 #define USE_MOTIF 1
24321 _ACEOF
24322
24323 fi
24324 fi
24325 if test "${HAVE_X11}" = "yes" ; then
24326
24327 cat >>confdefs.h <<\_ACEOF
24328 #define HAVE_X11 1
24329 _ACEOF
24330
24331 fi
24332 if test "${HAVE_MENUS}" = "yes" ; then
24333
24334 cat >>confdefs.h <<\_ACEOF
24335 #define HAVE_MENUS 1
24336 _ACEOF
24337
24338 fi
24339 if test "${GNU_MALLOC}" = "yes" ; then
24340
24341 cat >>confdefs.h <<\_ACEOF
24342 #define GNU_MALLOC 1
24343 _ACEOF
24344
24345 fi
24346 if test "${REL_ALLOC}" = "yes" ; then
24347
24348 cat >>confdefs.h <<\_ACEOF
24349 #define REL_ALLOC 1
24350 _ACEOF
24351
24352 fi
24353
24354
24355
24356
24357
24358
24359 #### Report on what we decided to do.
24360 #### Report GTK as a toolkit, even if it doesn't use Xt.
24361 #### It makes printing result more understandable as using GTK sets
24362 #### toolkit_scroll_bars to yes by default.
24363 if test "${HAVE_GTK}" = "yes"; then
24364 USE_X_TOOLKIT=GTK
24365 fi
24366
24367 echo "
24368 Configured for \`${canonical}'.
24369
24370 Where should the build process find the source code? ${srcdir}
24371 What operating system and machine description files should Emacs use?
24372 \`${opsysfile}' and \`${machfile}'
24373 What compiler should emacs be built with? ${CC} ${CFLAGS}
24374 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24375 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24376 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24377 What window system should Emacs use? ${window_system}
24378 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24379
24380 if test -n "${x_includes}"; then
24381 echo " Where do we find X Windows header files? ${x_includes}"
24382 else
24383 echo " Where do we find X Windows header files? Standard dirs"
24384 fi
24385 if test -n "${x_libraries}"; then
24386 echo " Where do we find X Windows libraries? ${x_libraries}"
24387 else
24388 echo " Where do we find X Windows libraries? Standard dirs"
24389 fi
24390
24391 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24392 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24393 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24394 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24395 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24396 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24397 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24398 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24399 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24400
24401 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24402 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24403 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24404 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24405
24406 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24407 echo
24408
24409 if test $USE_XASSERTS = yes; then
24410 echo " Compiling with asserts turned on."
24411 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24412 fi
24413
24414 echo
24415
24416 if test "$USE_X_TOOLKIT" = GTK; then
24417 case "$canonical" in
24418 *cygwin*)
24419 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24420 will probably get a crash on startup. If this happens, please use another
24421 toolkit for Emacs. See etc/PROBLEMS for more information."
24422 ;;
24423 esac
24424 fi
24425
24426 if test "$HAVE_NS" = "yes"; then
24427 echo
24428 echo "You must run \"make install\" in order to test the built application.
24429 The installed application will go to nextstep/Emacs.app and can be
24430 run or moved from there."
24431 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24432 echo "The application will be fully self-contained."
24433 else
24434 echo "The lisp resources for the application will be installed under ${prefix}.
24435 You may need to run \"make install\" with sudo. The application will fail
24436 to run if these resources are not installed."
24437 fi
24438 echo
24439 fi
24440
24441 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24442 echo "D-Bus integration has been tested for GNU/Linux only."
24443 echo
24444 fi
24445
24446
24447 # Remove any trailing slashes in these variables.
24448 test "${prefix}" != NONE &&
24449 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24450 test "${exec_prefix}" != NONE &&
24451 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24452
24453 # Now get this: Some word that is part of the ${srcdir} directory name
24454 # or the ${configuration} value might, just might, happen to be an
24455 # identifier like `sun4' or `i386' or something, and be predefined by
24456 # the C preprocessor to some helpful value like 1, or maybe the empty
24457 # string. Needless to say consequent macro substitutions are less
24458 # than conducive to the makefile finding the correct directory.
24459 cpp_undefs="`echo $srcdir $configuration $canonical |
24460 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24461 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24462
24463 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24464 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24465 ## from Makefile.c can correctly provide the arg `-traditional' to the
24466 ## C preprocessor.
24467
24468 cat >conftest.$ac_ext <<_ACEOF
24469 /* confdefs.h. */
24470 _ACEOF
24471 cat confdefs.h >>conftest.$ac_ext
24472 cat >>conftest.$ac_ext <<_ACEOF
24473 /* end confdefs.h. */
24474 yes..yes
24475 _ACEOF
24476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24477 $EGREP "yes..yes" >/dev/null 2>&1; then
24478 CPP_NEED_TRADITIONAL=no
24479 else
24480 CPP_NEED_TRADITIONAL=yes
24481 fi
24482 rm -f conftest*
24483
24484
24485 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"
24486
24487 ac_config_commands="$ac_config_commands default"
24488
24489 cat >confcache <<\_ACEOF
24490 # This file is a shell script that caches the results of configure
24491 # tests run on this system so they can be shared between configure
24492 # scripts and configure runs, see configure's option --config-cache.
24493 # It is not useful on other systems. If it contains results you don't
24494 # want to keep, you may remove or edit it.
24495 #
24496 # config.status only pays attention to the cache file if you give it
24497 # the --recheck option to rerun configure.
24498 #
24499 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24500 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24501 # following values.
24502
24503 _ACEOF
24504
24505 # The following way of writing the cache mishandles newlines in values,
24506 # but we know of no workaround that is simple, portable, and efficient.
24507 # So, we kill variables containing newlines.
24508 # Ultrix sh set writes to stderr and can't be redirected directly,
24509 # and sets the high bit in the cache file unless we assign to the vars.
24510 (
24511 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24512 eval ac_val=\$$ac_var
24513 case $ac_val in #(
24514 *${as_nl}*)
24515 case $ac_var in #(
24516 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24517 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24518 esac
24519 case $ac_var in #(
24520 _ | IFS | as_nl) ;; #(
24521 *) $as_unset $ac_var ;;
24522 esac ;;
24523 esac
24524 done
24525
24526 (set) 2>&1 |
24527 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24528 *${as_nl}ac_space=\ *)
24529 # `set' does not quote correctly, so add quotes (double-quote
24530 # substitution turns \\\\ into \\, and sed turns \\ into \).
24531 sed -n \
24532 "s/'/'\\\\''/g;
24533 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24534 ;; #(
24535 *)
24536 # `set' quotes correctly as required by POSIX, so do not add quotes.
24537 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24538 ;;
24539 esac |
24540 sort
24541 ) |
24542 sed '
24543 /^ac_cv_env_/b end
24544 t clear
24545 :clear
24546 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24547 t end
24548 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24549 :end' >>confcache
24550 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24551 if test -w "$cache_file"; then
24552 test "x$cache_file" != "x/dev/null" &&
24553 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24554 echo "$as_me: updating cache $cache_file" >&6;}
24555 cat confcache >$cache_file
24556 else
24557 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24558 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24559 fi
24560 fi
24561 rm -f confcache
24562
24563 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24564 # Let make expand exec_prefix.
24565 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24566
24567 DEFS=-DHAVE_CONFIG_H
24568
24569 ac_libobjs=
24570 ac_ltlibobjs=
24571 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24572 # 1. Remove the extension, and $U if already installed.
24573 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24574 ac_i=`echo "$ac_i" | sed "$ac_script"`
24575 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24576 # will be set to the directory where LIBOBJS objects are built.
24577 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24578 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24579 done
24580 LIBOBJS=$ac_libobjs
24581
24582 LTLIBOBJS=$ac_ltlibobjs
24583
24584
24585
24586 : ${CONFIG_STATUS=./config.status}
24587 ac_clean_files_save=$ac_clean_files
24588 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24589 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24590 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24591 cat >$CONFIG_STATUS <<_ACEOF
24592 #! $SHELL
24593 # Generated by $as_me.
24594 # Run this file to recreate the current configuration.
24595 # Compiler output produced by configure, useful for debugging
24596 # configure, is in config.log if it exists.
24597
24598 debug=false
24599 ac_cs_recheck=false
24600 ac_cs_silent=false
24601 SHELL=\${CONFIG_SHELL-$SHELL}
24602 _ACEOF
24603
24604 cat >>$CONFIG_STATUS <<\_ACEOF
24605 ## --------------------- ##
24606 ## M4sh Initialization. ##
24607 ## --------------------- ##
24608
24609 # Be more Bourne compatible
24610 DUALCASE=1; export DUALCASE # for MKS sh
24611 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24612 emulate sh
24613 NULLCMD=:
24614 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24615 # is contrary to our usage. Disable this feature.
24616 alias -g '${1+"$@"}'='"$@"'
24617 setopt NO_GLOB_SUBST
24618 else
24619 case `(set -o) 2>/dev/null` in
24620 *posix*) set -o posix ;;
24621 esac
24622
24623 fi
24624
24625
24626
24627
24628 # PATH needs CR
24629 # Avoid depending upon Character Ranges.
24630 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24631 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24632 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24633 as_cr_digits='0123456789'
24634 as_cr_alnum=$as_cr_Letters$as_cr_digits
24635
24636 # The user is always right.
24637 if test "${PATH_SEPARATOR+set}" != set; then
24638 echo "#! /bin/sh" >conf$$.sh
24639 echo "exit 0" >>conf$$.sh
24640 chmod +x conf$$.sh
24641 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24642 PATH_SEPARATOR=';'
24643 else
24644 PATH_SEPARATOR=:
24645 fi
24646 rm -f conf$$.sh
24647 fi
24648
24649 # Support unset when possible.
24650 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24651 as_unset=unset
24652 else
24653 as_unset=false
24654 fi
24655
24656
24657 # IFS
24658 # We need space, tab and new line, in precisely that order. Quoting is
24659 # there to prevent editors from complaining about space-tab.
24660 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24661 # splitting by setting IFS to empty value.)
24662 as_nl='
24663 '
24664 IFS=" "" $as_nl"
24665
24666 # Find who we are. Look in the path if we contain no directory separator.
24667 case $0 in
24668 *[\\/]* ) as_myself=$0 ;;
24669 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24670 for as_dir in $PATH
24671 do
24672 IFS=$as_save_IFS
24673 test -z "$as_dir" && as_dir=.
24674 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24675 done
24676 IFS=$as_save_IFS
24677
24678 ;;
24679 esac
24680 # We did not find ourselves, most probably we were run as `sh COMMAND'
24681 # in which case we are not to be found in the path.
24682 if test "x$as_myself" = x; then
24683 as_myself=$0
24684 fi
24685 if test ! -f "$as_myself"; then
24686 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24687 { (exit 1); exit 1; }
24688 fi
24689
24690 # Work around bugs in pre-3.0 UWIN ksh.
24691 for as_var in ENV MAIL MAILPATH
24692 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24693 done
24694 PS1='$ '
24695 PS2='> '
24696 PS4='+ '
24697
24698 # NLS nuisances.
24699 for as_var in \
24700 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24701 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24702 LC_TELEPHONE LC_TIME
24703 do
24704 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24705 eval $as_var=C; export $as_var
24706 else
24707 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24708 fi
24709 done
24710
24711 # Required to use basename.
24712 if expr a : '\(a\)' >/dev/null 2>&1 &&
24713 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24714 as_expr=expr
24715 else
24716 as_expr=false
24717 fi
24718
24719 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24720 as_basename=basename
24721 else
24722 as_basename=false
24723 fi
24724
24725
24726 # Name of the executable.
24727 as_me=`$as_basename -- "$0" ||
24728 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24729 X"$0" : 'X\(//\)$' \| \
24730 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24731 echo X/"$0" |
24732 sed '/^.*\/\([^/][^/]*\)\/*$/{
24733 s//\1/
24734 q
24735 }
24736 /^X\/\(\/\/\)$/{
24737 s//\1/
24738 q
24739 }
24740 /^X\/\(\/\).*/{
24741 s//\1/
24742 q
24743 }
24744 s/.*/./; q'`
24745
24746 # CDPATH.
24747 $as_unset CDPATH
24748
24749
24750
24751 as_lineno_1=$LINENO
24752 as_lineno_2=$LINENO
24753 test "x$as_lineno_1" != "x$as_lineno_2" &&
24754 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24755
24756 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24757 # uniformly replaced by the line number. The first 'sed' inserts a
24758 # line-number line after each line using $LINENO; the second 'sed'
24759 # does the real work. The second script uses 'N' to pair each
24760 # line-number line with the line containing $LINENO, and appends
24761 # trailing '-' during substitution so that $LINENO is not a special
24762 # case at line end.
24763 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24764 # scripts with optimization help from Paolo Bonzini. Blame Lee
24765 # E. McMahon (1931-1989) for sed's syntax. :-)
24766 sed -n '
24767 p
24768 /[$]LINENO/=
24769 ' <$as_myself |
24770 sed '
24771 s/[$]LINENO.*/&-/
24772 t lineno
24773 b
24774 :lineno
24775 N
24776 :loop
24777 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24778 t loop
24779 s/-\n.*//
24780 ' >$as_me.lineno &&
24781 chmod +x "$as_me.lineno" ||
24782 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24783 { (exit 1); exit 1; }; }
24784
24785 # Don't try to exec as it changes $[0], causing all sort of problems
24786 # (the dirname of $[0] is not the place where we might find the
24787 # original and so on. Autoconf is especially sensitive to this).
24788 . "./$as_me.lineno"
24789 # Exit status is that of the last command.
24790 exit
24791 }
24792
24793
24794 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24795 as_dirname=dirname
24796 else
24797 as_dirname=false
24798 fi
24799
24800 ECHO_C= ECHO_N= ECHO_T=
24801 case `echo -n x` in
24802 -n*)
24803 case `echo 'x\c'` in
24804 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24805 *) ECHO_C='\c';;
24806 esac;;
24807 *)
24808 ECHO_N='-n';;
24809 esac
24810
24811 if expr a : '\(a\)' >/dev/null 2>&1 &&
24812 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24813 as_expr=expr
24814 else
24815 as_expr=false
24816 fi
24817
24818 rm -f conf$$ conf$$.exe conf$$.file
24819 if test -d conf$$.dir; then
24820 rm -f conf$$.dir/conf$$.file
24821 else
24822 rm -f conf$$.dir
24823 mkdir conf$$.dir
24824 fi
24825 echo >conf$$.file
24826 if ln -s conf$$.file conf$$ 2>/dev/null; then
24827 as_ln_s='ln -s'
24828 # ... but there are two gotchas:
24829 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24830 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24831 # In both cases, we have to default to `cp -p'.
24832 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24833 as_ln_s='cp -p'
24834 elif ln conf$$.file conf$$ 2>/dev/null; then
24835 as_ln_s=ln
24836 else
24837 as_ln_s='cp -p'
24838 fi
24839 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24840 rmdir conf$$.dir 2>/dev/null
24841
24842 if mkdir -p . 2>/dev/null; then
24843 as_mkdir_p=:
24844 else
24845 test -d ./-p && rmdir ./-p
24846 as_mkdir_p=false
24847 fi
24848
24849 if test -x / >/dev/null 2>&1; then
24850 as_test_x='test -x'
24851 else
24852 if ls -dL / >/dev/null 2>&1; then
24853 as_ls_L_option=L
24854 else
24855 as_ls_L_option=
24856 fi
24857 as_test_x='
24858 eval sh -c '\''
24859 if test -d "$1"; then
24860 test -d "$1/.";
24861 else
24862 case $1 in
24863 -*)set "./$1";;
24864 esac;
24865 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24866 ???[sx]*):;;*)false;;esac;fi
24867 '\'' sh
24868 '
24869 fi
24870 as_executable_p=$as_test_x
24871
24872 # Sed expression to map a string onto a valid CPP name.
24873 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24874
24875 # Sed expression to map a string onto a valid variable name.
24876 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24877
24878
24879 exec 6>&1
24880
24881 # Save the log message, to keep $[0] and so on meaningful, and to
24882 # report actual input values of CONFIG_FILES etc. instead of their
24883 # values after options handling.
24884 ac_log="
24885 This file was extended by emacs $as_me 23.0.90, which was
24886 generated by GNU Autoconf 2.61. Invocation command line was
24887
24888 CONFIG_FILES = $CONFIG_FILES
24889 CONFIG_HEADERS = $CONFIG_HEADERS
24890 CONFIG_LINKS = $CONFIG_LINKS
24891 CONFIG_COMMANDS = $CONFIG_COMMANDS
24892 $ $0 $@
24893
24894 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24895 "
24896
24897 _ACEOF
24898
24899 cat >>$CONFIG_STATUS <<_ACEOF
24900 # Files that config.status was made for.
24901 config_files="$ac_config_files"
24902 config_headers="$ac_config_headers"
24903 config_commands="$ac_config_commands"
24904
24905 _ACEOF
24906
24907 cat >>$CONFIG_STATUS <<\_ACEOF
24908 ac_cs_usage="\
24909 \`$as_me' instantiates files from templates according to the
24910 current configuration.
24911
24912 Usage: $0 [OPTIONS] [FILE]...
24913
24914 -h, --help print this help, then exit
24915 -V, --version print version number and configuration settings, then exit
24916 -q, --quiet do not print progress messages
24917 -d, --debug don't remove temporary files
24918 --recheck update $as_me by reconfiguring in the same conditions
24919 --file=FILE[:TEMPLATE]
24920 instantiate the configuration file FILE
24921 --header=FILE[:TEMPLATE]
24922 instantiate the configuration header FILE
24923
24924 Configuration files:
24925 $config_files
24926
24927 Configuration headers:
24928 $config_headers
24929
24930 Configuration commands:
24931 $config_commands
24932
24933 Report bugs to <bug-autoconf@gnu.org>."
24934
24935 _ACEOF
24936 cat >>$CONFIG_STATUS <<_ACEOF
24937 ac_cs_version="\\
24938 emacs config.status 23.0.90
24939 configured by $0, generated by GNU Autoconf 2.61,
24940 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24941
24942 Copyright (C) 2006 Free Software Foundation, Inc.
24943 This config.status script is free software; the Free Software Foundation
24944 gives unlimited permission to copy, distribute and modify it."
24945
24946 ac_pwd='$ac_pwd'
24947 srcdir='$srcdir'
24948 INSTALL='$INSTALL'
24949 _ACEOF
24950
24951 cat >>$CONFIG_STATUS <<\_ACEOF
24952 # If no file are specified by the user, then we need to provide default
24953 # value. By we need to know if files were specified by the user.
24954 ac_need_defaults=:
24955 while test $# != 0
24956 do
24957 case $1 in
24958 --*=*)
24959 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24960 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24961 ac_shift=:
24962 ;;
24963 *)
24964 ac_option=$1
24965 ac_optarg=$2
24966 ac_shift=shift
24967 ;;
24968 esac
24969
24970 case $ac_option in
24971 # Handling of the options.
24972 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24973 ac_cs_recheck=: ;;
24974 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24975 echo "$ac_cs_version"; exit ;;
24976 --debug | --debu | --deb | --de | --d | -d )
24977 debug=: ;;
24978 --file | --fil | --fi | --f )
24979 $ac_shift
24980 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24981 ac_need_defaults=false;;
24982 --header | --heade | --head | --hea )
24983 $ac_shift
24984 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24985 ac_need_defaults=false;;
24986 --he | --h)
24987 # Conflict between --help and --header
24988 { echo "$as_me: error: ambiguous option: $1
24989 Try \`$0 --help' for more information." >&2
24990 { (exit 1); exit 1; }; };;
24991 --help | --hel | -h )
24992 echo "$ac_cs_usage"; exit ;;
24993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24994 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24995 ac_cs_silent=: ;;
24996
24997 # This is an error.
24998 -*) { echo "$as_me: error: unrecognized option: $1
24999 Try \`$0 --help' for more information." >&2
25000 { (exit 1); exit 1; }; } ;;
25001
25002 *) ac_config_targets="$ac_config_targets $1"
25003 ac_need_defaults=false ;;
25004
25005 esac
25006 shift
25007 done
25008
25009 ac_configure_extra_args=
25010
25011 if $ac_cs_silent; then
25012 exec 6>/dev/null
25013 ac_configure_extra_args="$ac_configure_extra_args --silent"
25014 fi
25015
25016 _ACEOF
25017 cat >>$CONFIG_STATUS <<_ACEOF
25018 if \$ac_cs_recheck; then
25019 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25020 CONFIG_SHELL=$SHELL
25021 export CONFIG_SHELL
25022 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25023 fi
25024
25025 _ACEOF
25026 cat >>$CONFIG_STATUS <<\_ACEOF
25027 exec 5>>config.log
25028 {
25029 echo
25030 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25031 ## Running $as_me. ##
25032 _ASBOX
25033 echo "$ac_log"
25034 } >&5
25035
25036 _ACEOF
25037 cat >>$CONFIG_STATUS <<_ACEOF
25038 #
25039 # INIT-COMMANDS
25040 #
25041 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
25042
25043 _ACEOF
25044
25045 cat >>$CONFIG_STATUS <<\_ACEOF
25046
25047 # Handling of arguments.
25048 for ac_config_target in $ac_config_targets
25049 do
25050 case $ac_config_target in
25051 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25052 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25053 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
25054 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
25055 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
25056 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
25057 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
25058 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
25059 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
25060 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
25061 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
25062 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
25063 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25064
25065 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25066 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25067 { (exit 1); exit 1; }; };;
25068 esac
25069 done
25070
25071
25072 # If the user did not use the arguments to specify the items to instantiate,
25073 # then the envvar interface is used. Set only those that are not.
25074 # We use the long form for the default assignment because of an extremely
25075 # bizarre bug on SunOS 4.1.3.
25076 if $ac_need_defaults; then
25077 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25078 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25079 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25080 fi
25081
25082 # Have a temporary directory for convenience. Make it in the build tree
25083 # simply because there is no reason against having it here, and in addition,
25084 # creating and moving files from /tmp can sometimes cause problems.
25085 # Hook for its removal unless debugging.
25086 # Note that there is a small window in which the directory will not be cleaned:
25087 # after its creation but before its name has been assigned to `$tmp'.
25088 $debug ||
25089 {
25090 tmp=
25091 trap 'exit_status=$?
25092 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25093 ' 0
25094 trap '{ (exit 1); exit 1; }' 1 2 13 15
25095 }
25096 # Create a (secure) tmp directory for tmp files.
25097
25098 {
25099 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25100 test -n "$tmp" && test -d "$tmp"
25101 } ||
25102 {
25103 tmp=./conf$$-$RANDOM
25104 (umask 077 && mkdir "$tmp")
25105 } ||
25106 {
25107 echo "$me: cannot create a temporary directory in ." >&2
25108 { (exit 1); exit 1; }
25109 }
25110
25111 #
25112 # Set up the sed scripts for CONFIG_FILES section.
25113 #
25114
25115 # No need to generate the scripts if there are no CONFIG_FILES.
25116 # This happens for instance when ./config.status config.h
25117 if test -n "$CONFIG_FILES"; then
25118
25119 _ACEOF
25120
25121
25122
25123 ac_delim='%!_!# '
25124 for ac_last_try in false false false false false :; do
25125 cat >conf$$subs.sed <<_ACEOF
25126 SHELL!$SHELL$ac_delim
25127 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25128 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25129 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25130 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25131 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25132 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25133 exec_prefix!$exec_prefix$ac_delim
25134 prefix!$prefix$ac_delim
25135 program_transform_name!$program_transform_name$ac_delim
25136 bindir!$bindir$ac_delim
25137 sbindir!$sbindir$ac_delim
25138 libexecdir!$libexecdir$ac_delim
25139 datarootdir!$datarootdir$ac_delim
25140 datadir!$datadir$ac_delim
25141 sysconfdir!$sysconfdir$ac_delim
25142 sharedstatedir!$sharedstatedir$ac_delim
25143 localstatedir!$localstatedir$ac_delim
25144 includedir!$includedir$ac_delim
25145 oldincludedir!$oldincludedir$ac_delim
25146 docdir!$docdir$ac_delim
25147 infodir!$infodir$ac_delim
25148 htmldir!$htmldir$ac_delim
25149 dvidir!$dvidir$ac_delim
25150 pdfdir!$pdfdir$ac_delim
25151 psdir!$psdir$ac_delim
25152 libdir!$libdir$ac_delim
25153 localedir!$localedir$ac_delim
25154 mandir!$mandir$ac_delim
25155 DEFS!$DEFS$ac_delim
25156 ECHO_C!$ECHO_C$ac_delim
25157 ECHO_N!$ECHO_N$ac_delim
25158 ECHO_T!$ECHO_T$ac_delim
25159 LIBS!$LIBS$ac_delim
25160 build_alias!$build_alias$ac_delim
25161 host_alias!$host_alias$ac_delim
25162 target_alias!$target_alias$ac_delim
25163 MAINT!$MAINT$ac_delim
25164 build!$build$ac_delim
25165 build_cpu!$build_cpu$ac_delim
25166 build_vendor!$build_vendor$ac_delim
25167 build_os!$build_os$ac_delim
25168 host!$host$ac_delim
25169 host_cpu!$host_cpu$ac_delim
25170 host_vendor!$host_vendor$ac_delim
25171 host_os!$host_os$ac_delim
25172 CC!$CC$ac_delim
25173 CFLAGS!$CFLAGS$ac_delim
25174 LDFLAGS!$LDFLAGS$ac_delim
25175 CPPFLAGS!$CPPFLAGS$ac_delim
25176 ac_ct_CC!$ac_ct_CC$ac_delim
25177 EXEEXT!$EXEEXT$ac_delim
25178 OBJEXT!$OBJEXT$ac_delim
25179 CPP!$CPP$ac_delim
25180 GREP!$GREP$ac_delim
25181 EGREP!$EGREP$ac_delim
25182 LN_S!$LN_S$ac_delim
25183 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25184 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25185 INSTALL_DATA!$INSTALL_DATA$ac_delim
25186 RANLIB!$RANLIB$ac_delim
25187 INSTALL_INFO!$INSTALL_INFO$ac_delim
25188 GZIP_PROG!$GZIP_PROG$ac_delim
25189 MAKEINFO!$MAKEINFO$ac_delim
25190 LIBSOUND!$LIBSOUND$ac_delim
25191 PKG_CONFIG!$PKG_CONFIG$ac_delim
25192 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25193 ALSA_LIBS!$ALSA_LIBS$ac_delim
25194 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25195 SET_MAKE!$SET_MAKE$ac_delim
25196 XMKMF!$XMKMF$ac_delim
25197 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25198 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25199 RSVG_LIBS!$RSVG_LIBS$ac_delim
25200 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25201 GTK_LIBS!$GTK_LIBS$ac_delim
25202 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25203 DBUS_LIBS!$DBUS_LIBS$ac_delim
25204 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25205 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25206 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25207 XFT_LIBS!$XFT_LIBS$ac_delim
25208 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25209 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25210 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25211 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25212 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25213 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25214 ALLOCA!$ALLOCA$ac_delim
25215 liblockfile!$liblockfile$ac_delim
25216 LIBOBJS!$LIBOBJS$ac_delim
25217 NEED_SETGID!$NEED_SETGID$ac_delim
25218 KMEM_GROUP!$KMEM_GROUP$ac_delim
25219 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25220 GETOPT_H!$GETOPT_H$ac_delim
25221 GETOPTOBJS!$GETOPTOBJS$ac_delim
25222 version!$version$ac_delim
25223 _ACEOF
25224
25225 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25226 break
25227 elif $ac_last_try; then
25228 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25229 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25230 { (exit 1); exit 1; }; }
25231 else
25232 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25233 fi
25234 done
25235
25236 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25237 if test -n "$ac_eof"; then
25238 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25239 ac_eof=`expr $ac_eof + 1`
25240 fi
25241
25242 cat >>$CONFIG_STATUS <<_ACEOF
25243 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25244 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25245 _ACEOF
25246 sed '
25247 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25248 s/^/s,@/; s/!/@,|#_!!_#|/
25249 :n
25250 t n
25251 s/'"$ac_delim"'$/,g/; t
25252 s/$/\\/; p
25253 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25254 ' >>$CONFIG_STATUS <conf$$subs.sed
25255 rm -f conf$$subs.sed
25256 cat >>$CONFIG_STATUS <<_ACEOF
25257 CEOF$ac_eof
25258 _ACEOF
25259
25260
25261 ac_delim='%!_!# '
25262 for ac_last_try in false false false false false :; do
25263 cat >conf$$subs.sed <<_ACEOF
25264 configuration!$configuration$ac_delim
25265 canonical!$canonical$ac_delim
25266 srcdir!$srcdir$ac_delim
25267 lispdir!$lispdir$ac_delim
25268 locallisppath!$locallisppath$ac_delim
25269 lisppath!$lisppath$ac_delim
25270 x_default_search_path!$x_default_search_path$ac_delim
25271 etcdir!$etcdir$ac_delim
25272 archlibdir!$archlibdir$ac_delim
25273 bitmapdir!$bitmapdir$ac_delim
25274 gamedir!$gamedir$ac_delim
25275 gameuser!$gameuser$ac_delim
25276 c_switch_system!$c_switch_system$ac_delim
25277 c_switch_machine!$c_switch_machine$ac_delim
25278 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25279 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25280 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25281 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25282 machfile!$machfile$ac_delim
25283 opsysfile!$opsysfile$ac_delim
25284 ns_appdir!$ns_appdir$ac_delim
25285 ns_appbindir!$ns_appbindir$ac_delim
25286 ns_appresdir!$ns_appresdir$ac_delim
25287 ns_appsrc!$ns_appsrc$ac_delim
25288 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
25289 GNUSTEP_SYSTEM_HEADERS!$GNUSTEP_SYSTEM_HEADERS$ac_delim
25290 GNUSTEP_SYSTEM_LIBRARIES!$GNUSTEP_SYSTEM_LIBRARIES$ac_delim
25291 GNU_OBJC_CFLAGS!$GNU_OBJC_CFLAGS$ac_delim
25292 LIB_SRC_EXTRA_INSTALLABLES!$LIB_SRC_EXTRA_INSTALLABLES$ac_delim
25293 LTLIBOBJS!$LTLIBOBJS$ac_delim
25294 _ACEOF
25295
25296 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
25297 break
25298 elif $ac_last_try; then
25299 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25300 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25301 { (exit 1); exit 1; }; }
25302 else
25303 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25304 fi
25305 done
25306
25307 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25308 if test -n "$ac_eof"; then
25309 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25310 ac_eof=`expr $ac_eof + 1`
25311 fi
25312
25313 cat >>$CONFIG_STATUS <<_ACEOF
25314 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25315 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25316 _ACEOF
25317 sed '
25318 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25319 s/^/s,@/; s/!/@,|#_!!_#|/
25320 :n
25321 t n
25322 s/'"$ac_delim"'$/,g/; t
25323 s/$/\\/; p
25324 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25325 ' >>$CONFIG_STATUS <conf$$subs.sed
25326 rm -f conf$$subs.sed
25327 cat >>$CONFIG_STATUS <<_ACEOF
25328 :end
25329 s/|#_!!_#|//g
25330 CEOF$ac_eof
25331 _ACEOF
25332
25333
25334 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25335 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25336 # trailing colons and then remove the whole line if VPATH becomes empty
25337 # (actually we leave an empty line to preserve line numbers).
25338 if test "x$srcdir" = x.; then
25339 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25340 s/:*\$(srcdir):*/:/
25341 s/:*\${srcdir}:*/:/
25342 s/:*@srcdir@:*/:/
25343 s/^\([^=]*=[ ]*\):*/\1/
25344 s/:*$//
25345 s/^[^=]*=[ ]*$//
25346 }'
25347 fi
25348
25349 cat >>$CONFIG_STATUS <<\_ACEOF
25350 fi # test -n "$CONFIG_FILES"
25351
25352
25353 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25354 do
25355 case $ac_tag in
25356 :[FHLC]) ac_mode=$ac_tag; continue;;
25357 esac
25358 case $ac_mode$ac_tag in
25359 :[FHL]*:*);;
25360 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25361 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25362 { (exit 1); exit 1; }; };;
25363 :[FH]-) ac_tag=-:-;;
25364 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25365 esac
25366 ac_save_IFS=$IFS
25367 IFS=:
25368 set x $ac_tag
25369 IFS=$ac_save_IFS
25370 shift
25371 ac_file=$1
25372 shift
25373
25374 case $ac_mode in
25375 :L) ac_source=$1;;
25376 :[FH])
25377 ac_file_inputs=
25378 for ac_f
25379 do
25380 case $ac_f in
25381 -) ac_f="$tmp/stdin";;
25382 *) # Look for the file first in the build tree, then in the source tree
25383 # (if the path is not absolute). The absolute path cannot be DOS-style,
25384 # because $ac_f cannot contain `:'.
25385 test -f "$ac_f" ||
25386 case $ac_f in
25387 [\\/$]*) false;;
25388 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25389 esac ||
25390 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25391 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25392 { (exit 1); exit 1; }; };;
25393 esac
25394 ac_file_inputs="$ac_file_inputs $ac_f"
25395 done
25396
25397 # Let's still pretend it is `configure' which instantiates (i.e., don't
25398 # use $as_me), people would be surprised to read:
25399 # /* config.h. Generated by config.status. */
25400 configure_input="Generated from "`IFS=:
25401 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25402 if test x"$ac_file" != x-; then
25403 configure_input="$ac_file. $configure_input"
25404 { echo "$as_me:$LINENO: creating $ac_file" >&5
25405 echo "$as_me: creating $ac_file" >&6;}
25406 fi
25407
25408 case $ac_tag in
25409 *:-:* | *:-) cat >"$tmp/stdin";;
25410 esac
25411 ;;
25412 esac
25413
25414 ac_dir=`$as_dirname -- "$ac_file" ||
25415 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25416 X"$ac_file" : 'X\(//\)[^/]' \| \
25417 X"$ac_file" : 'X\(//\)$' \| \
25418 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25419 echo X"$ac_file" |
25420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25421 s//\1/
25422 q
25423 }
25424 /^X\(\/\/\)[^/].*/{
25425 s//\1/
25426 q
25427 }
25428 /^X\(\/\/\)$/{
25429 s//\1/
25430 q
25431 }
25432 /^X\(\/\).*/{
25433 s//\1/
25434 q
25435 }
25436 s/.*/./; q'`
25437 { as_dir="$ac_dir"
25438 case $as_dir in #(
25439 -*) as_dir=./$as_dir;;
25440 esac
25441 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25442 as_dirs=
25443 while :; do
25444 case $as_dir in #(
25445 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25446 *) as_qdir=$as_dir;;
25447 esac
25448 as_dirs="'$as_qdir' $as_dirs"
25449 as_dir=`$as_dirname -- "$as_dir" ||
25450 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25451 X"$as_dir" : 'X\(//\)[^/]' \| \
25452 X"$as_dir" : 'X\(//\)$' \| \
25453 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25454 echo X"$as_dir" |
25455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25456 s//\1/
25457 q
25458 }
25459 /^X\(\/\/\)[^/].*/{
25460 s//\1/
25461 q
25462 }
25463 /^X\(\/\/\)$/{
25464 s//\1/
25465 q
25466 }
25467 /^X\(\/\).*/{
25468 s//\1/
25469 q
25470 }
25471 s/.*/./; q'`
25472 test -d "$as_dir" && break
25473 done
25474 test -z "$as_dirs" || eval "mkdir $as_dirs"
25475 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25476 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25477 { (exit 1); exit 1; }; }; }
25478 ac_builddir=.
25479
25480 case "$ac_dir" in
25481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25482 *)
25483 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25484 # A ".." for each directory in $ac_dir_suffix.
25485 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25486 case $ac_top_builddir_sub in
25487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25489 esac ;;
25490 esac
25491 ac_abs_top_builddir=$ac_pwd
25492 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25493 # for backward compatibility:
25494 ac_top_builddir=$ac_top_build_prefix
25495
25496 case $srcdir in
25497 .) # We are building in place.
25498 ac_srcdir=.
25499 ac_top_srcdir=$ac_top_builddir_sub
25500 ac_abs_top_srcdir=$ac_pwd ;;
25501 [\\/]* | ?:[\\/]* ) # Absolute name.
25502 ac_srcdir=$srcdir$ac_dir_suffix;
25503 ac_top_srcdir=$srcdir
25504 ac_abs_top_srcdir=$srcdir ;;
25505 *) # Relative name.
25506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25507 ac_top_srcdir=$ac_top_build_prefix$srcdir
25508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25509 esac
25510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25511
25512
25513 case $ac_mode in
25514 :F)
25515 #
25516 # CONFIG_FILE
25517 #
25518
25519 case $INSTALL in
25520 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25521 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25522 esac
25523 _ACEOF
25524
25525 cat >>$CONFIG_STATUS <<\_ACEOF
25526 # If the template does not know about datarootdir, expand it.
25527 # FIXME: This hack should be removed a few years after 2.60.
25528 ac_datarootdir_hack=; ac_datarootdir_seen=
25529
25530 case `sed -n '/datarootdir/ {
25531 p
25532 q
25533 }
25534 /@datadir@/p
25535 /@docdir@/p
25536 /@infodir@/p
25537 /@localedir@/p
25538 /@mandir@/p
25539 ' $ac_file_inputs` in
25540 *datarootdir*) ac_datarootdir_seen=yes;;
25541 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25542 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25543 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25544 _ACEOF
25545 cat >>$CONFIG_STATUS <<_ACEOF
25546 ac_datarootdir_hack='
25547 s&@datadir@&$datadir&g
25548 s&@docdir@&$docdir&g
25549 s&@infodir@&$infodir&g
25550 s&@localedir@&$localedir&g
25551 s&@mandir@&$mandir&g
25552 s&\\\${datarootdir}&$datarootdir&g' ;;
25553 esac
25554 _ACEOF
25555
25556 # Neutralize VPATH when `$srcdir' = `.'.
25557 # Shell code in configure.ac might set extrasub.
25558 # FIXME: do we really want to maintain this feature?
25559 cat >>$CONFIG_STATUS <<_ACEOF
25560 sed "$ac_vpsub
25561 $extrasub
25562 _ACEOF
25563 cat >>$CONFIG_STATUS <<\_ACEOF
25564 :t
25565 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25566 s&@configure_input@&$configure_input&;t t
25567 s&@top_builddir@&$ac_top_builddir_sub&;t t
25568 s&@srcdir@&$ac_srcdir&;t t
25569 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25570 s&@top_srcdir@&$ac_top_srcdir&;t t
25571 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25572 s&@builddir@&$ac_builddir&;t t
25573 s&@abs_builddir@&$ac_abs_builddir&;t t
25574 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25575 s&@INSTALL@&$ac_INSTALL&;t t
25576 $ac_datarootdir_hack
25577 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25578
25579 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25580 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25581 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25582 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25583 which seems to be undefined. Please make sure it is defined." >&5
25584 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25585 which seems to be undefined. Please make sure it is defined." >&2;}
25586
25587 rm -f "$tmp/stdin"
25588 case $ac_file in
25589 -) cat "$tmp/out"; rm -f "$tmp/out";;
25590 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25591 esac
25592 ;;
25593 :H)
25594 #
25595 # CONFIG_HEADER
25596 #
25597 _ACEOF
25598
25599 # Transform confdefs.h into a sed script `conftest.defines', that
25600 # substitutes the proper values into config.h.in to produce config.h.
25601 rm -f conftest.defines conftest.tail
25602 # First, append a space to every undef/define line, to ease matching.
25603 echo 's/$/ /' >conftest.defines
25604 # Then, protect against being on the right side of a sed subst, or in
25605 # an unquoted here document, in config.status. If some macros were
25606 # called several times there might be several #defines for the same
25607 # symbol, which is useless. But do not sort them, since the last
25608 # AC_DEFINE must be honored.
25609 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25610 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25611 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25612 # PARAMS is the parameter list in the macro definition--in most cases, it's
25613 # just an empty string.
25614 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25615 ac_dB='\\)[ (].*,\\1define\\2'
25616 ac_dC=' '
25617 ac_dD=' ,'
25618
25619 uniq confdefs.h |
25620 sed -n '
25621 t rset
25622 :rset
25623 s/^[ ]*#[ ]*define[ ][ ]*//
25624 t ok
25625 d
25626 :ok
25627 s/[\\&,]/\\&/g
25628 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25629 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25630 ' >>conftest.defines
25631
25632 # Remove the space that was appended to ease matching.
25633 # Then replace #undef with comments. This is necessary, for
25634 # example, in the case of _POSIX_SOURCE, which is predefined and required
25635 # on some systems where configure will not decide to define it.
25636 # (The regexp can be short, since the line contains either #define or #undef.)
25637 echo 's/ $//
25638 s,^[ #]*u.*,/* & */,' >>conftest.defines
25639
25640 # Break up conftest.defines:
25641 ac_max_sed_lines=50
25642
25643 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25644 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25645 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25646 # et cetera.
25647 ac_in='$ac_file_inputs'
25648 ac_out='"$tmp/out1"'
25649 ac_nxt='"$tmp/out2"'
25650
25651 while :
25652 do
25653 # Write a here document:
25654 cat >>$CONFIG_STATUS <<_ACEOF
25655 # First, check the format of the line:
25656 cat >"\$tmp/defines.sed" <<\\CEOF
25657 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25658 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25659 b
25660 :def
25661 _ACEOF
25662 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25663 echo 'CEOF
25664 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25665 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25666 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25667 grep . conftest.tail >/dev/null || break
25668 rm -f conftest.defines
25669 mv conftest.tail conftest.defines
25670 done
25671 rm -f conftest.defines conftest.tail
25672
25673 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25674 cat >>$CONFIG_STATUS <<\_ACEOF
25675 if test x"$ac_file" != x-; then
25676 echo "/* $configure_input */" >"$tmp/config.h"
25677 cat "$ac_result" >>"$tmp/config.h"
25678 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25679 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25680 echo "$as_me: $ac_file is unchanged" >&6;}
25681 else
25682 rm -f $ac_file
25683 mv "$tmp/config.h" $ac_file
25684 fi
25685 else
25686 echo "/* $configure_input */"
25687 cat "$ac_result"
25688 fi
25689 rm -f "$tmp/out12"
25690 ;;
25691
25692 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25693 echo "$as_me: executing $ac_file commands" >&6;}
25694 ;;
25695 esac
25696
25697
25698 case $ac_file$ac_mode in
25699 "default":C)
25700
25701 ### Make the necessary directories, if they don't exist.
25702 for dir in etc lisp ; do
25703 test -d ${dir} || mkdir ${dir}
25704 done
25705
25706 # Build src/Makefile from ${srcdir}/src/Makefile.c
25707 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25708 # This must be done after src/config.h is built, since we rely on that file.
25709
25710 echo creating src/epaths.h
25711 ${MAKE-make} epaths-force
25712
25713 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25714 # `..' to `. .' unless invoked with -traditional
25715
25716 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25717 CPPFLAGS="$CPPFLAGS -traditional"
25718 fi
25719
25720 echo creating lib-src/Makefile
25721 ( cd lib-src
25722 rm -f junk.c junk1.c junk2.c
25723 sed -e '/start of cpp stuff/q' \
25724 < Makefile.c > junk1.c
25725 sed -e '1,/start of cpp stuff/d'\
25726 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25727 < Makefile.c > junk.c
25728 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25729 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25730 cat junk1.c junk2.c > Makefile.new
25731 rm -f junk.c junk1.c junk2.c
25732 chmod 444 Makefile.new
25733 mv -f Makefile.new Makefile
25734 )
25735
25736 echo creating src/Makefile
25737 ( cd src
25738 rm -f junk.c junk1.c junk2.c
25739 sed -e '/start of cpp stuff/q' \
25740 < Makefile.c > junk1.c
25741 sed -e '1,/start of cpp stuff/d'\
25742 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25743 < Makefile.c > junk.c
25744 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25745 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25746 cat junk1.c junk2.c > Makefile.new
25747 rm -f junk.c junk1.c junk2.c
25748 chmod 444 Makefile.new
25749 mv -f Makefile.new Makefile
25750 )
25751
25752 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25753 echo creating src/.gdbinit
25754 echo source $srcdir/src/.gdbinit > src/.gdbinit
25755 fi
25756
25757 ;;
25758
25759 esac
25760 done # for ac_tag
25761
25762
25763 { (exit 0); exit 0; }
25764 _ACEOF
25765 chmod +x $CONFIG_STATUS
25766 ac_clean_files=$ac_clean_files_save
25767
25768
25769 # configure is writing to config.log, and then calls config.status.
25770 # config.status does its own redirection, appending to config.log.
25771 # Unfortunately, on DOS this fails, as config.log is still kept open
25772 # by configure, so config.status won't be able to write to it; its
25773 # output is simply discarded. So we exec the FD to /dev/null,
25774 # effectively closing config.log, so it can be properly (re)opened and
25775 # appended to by config.status. When coming back to configure, we
25776 # need to make the FD available again.
25777 if test "$no_create" != yes; then
25778 ac_cs_success=:
25779 ac_config_status_args=
25780 test "$silent" = yes &&
25781 ac_config_status_args="$ac_config_status_args --quiet"
25782 exec 5>/dev/null
25783 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25784 exec 5>>config.log
25785 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25786 # would make configure fail if this is the last instruction.
25787 $ac_cs_success || { (exit 1); exit 1; }
25788 fi
25789
25790