Regenerate.
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for emacs 23.0.91.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME='emacs'
596 PACKAGE_TARNAME='emacs'
597 PACKAGE_VERSION='23.0.91'
598 PACKAGE_STRING='emacs 23.0.91'
599 PACKAGE_BUGREPORT=''
600
601 ac_unique_file="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_config_libobj_dir=src
639 ac_header_list=
640 ac_func_list=
641 ac_subst_vars='LTLIBOBJS
642 LIB_SRC_EXTRA_INSTALLABLES
643 GNU_OBJC_CFLAGS
644 GNUSTEP_SYSTEM_LIBRARIES
645 GNUSTEP_SYSTEM_HEADERS
646 GNUSTEP_MAKEFILES
647 ns_appsrc
648 ns_appresdir
649 ns_appbindir
650 ns_appdir
651 opsysfile
652 machfile
653 X_TOOLKIT_TYPE
654 C_SWITCH_X_SITE
655 LD_SWITCH_X_SITE_AUX
656 LD_SWITCH_X_SITE
657 c_switch_machine
658 c_switch_system
659 gameuser
660 gamedir
661 bitmapdir
662 archlibdir
663 etcdir
664 x_default_search_path
665 lisppath
666 locallisppath
667 lispdir
668 srcdir
669 canonical
670 configuration
671 version
672 GETOPTOBJS
673 GETOPT_H
674 GETLOADAVG_LIBS
675 KMEM_GROUP
676 NEED_SETGID
677 LIBOBJS
678 liblockfile
679 ALLOCA
680 M17N_FLT_LIBS
681 M17N_FLT_CFLAGS
682 LIBOTF_LIBS
683 LIBOTF_CFLAGS
684 FREETYPE_LIBS
685 FREETYPE_CFLAGS
686 XFT_LIBS
687 XFT_CFLAGS
688 FONTCONFIG_LIBS
689 FONTCONFIG_CFLAGS
690 DBUS_LIBS
691 DBUS_CFLAGS
692 GTK_LIBS
693 GTK_CFLAGS
694 RSVG_LIBS
695 RSVG_CFLAGS
696 HAVE_XSERVER
697 XMKMF
698 SET_MAKE
699 CFLAGS_SOUND
700 ALSA_LIBS
701 ALSA_CFLAGS
702 PKG_CONFIG
703 LIBSOUND
704 MAKEINFO
705 GZIP_PROG
706 INSTALL_INFO
707 RANLIB
708 INSTALL_DATA
709 INSTALL_SCRIPT
710 INSTALL_PROGRAM
711 LN_S
712 EGREP
713 GREP
714 CPP
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
721 CC
722 host_os
723 host_vendor
724 host_cpu
725 host
726 build_os
727 build_vendor
728 build_cpu
729 build
730 MAINT
731 target_alias
732 host_alias
733 build_alias
734 LIBS
735 ECHO_T
736 ECHO_N
737 ECHO_C
738 DEFS
739 mandir
740 localedir
741 libdir
742 psdir
743 pdfdir
744 dvidir
745 htmldir
746 infodir
747 docdir
748 oldincludedir
749 includedir
750 localstatedir
751 sharedstatedir
752 sysconfdir
753 datadir
754 datarootdir
755 libexecdir
756 sbindir
757 bindir
758 program_transform_name
759 prefix
760 exec_prefix
761 PACKAGE_BUGREPORT
762 PACKAGE_STRING
763 PACKAGE_VERSION
764 PACKAGE_TARNAME
765 PACKAGE_NAME
766 PATH_SEPARATOR
767 SHELL'
768 ac_subst_files=''
769 ac_user_opts='
770 enable_option_checking
771 with_pop
772 with_kerberos
773 with_kerberos5
774 with_hesiod
775 with_sound
776 with_sync_input
777 with_x_toolkit
778 with_xpm
779 with_jpeg
780 with_tiff
781 with_gif
782 with_png
783 with_rsvg
784 with_freetype
785 with_xft
786 with_libotf
787 with_m17n_flt
788 with_toolkit_scroll_bars
789 with_xaw3d
790 with_xim
791 with_ns
792 with_gpm
793 with_dbus
794 with_makeinfo
795 with_gtk
796 with_gcc
797 with_pkg_config_prog
798 with_gnustep_conf
799 enable_ns_self_contained
800 enable_asserts
801 enable_maintainer_mode
802 enable_locallisppath
803 enable_largefile
804 with_x
805 '
806 ac_precious_vars='build_alias
807 host_alias
808 target_alias
809 CC
810 CFLAGS
811 LDFLAGS
812 LIBS
813 CPPFLAGS
814 CPP
815 XMKMF'
816
817
818 # Initialize some variables set by options.
819 ac_init_help=
820 ac_init_version=false
821 ac_unrecognized_opts=
822 ac_unrecognized_sep=
823 # The variables have the same names as the options, with
824 # dashes changed to underlines.
825 cache_file=/dev/null
826 exec_prefix=NONE
827 no_create=
828 no_recursion=
829 prefix=NONE
830 program_prefix=NONE
831 program_suffix=NONE
832 program_transform_name=s,x,x,
833 silent=
834 site=
835 srcdir=
836 verbose=
837 x_includes=NONE
838 x_libraries=NONE
839
840 # Installation directory options.
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
842 # and all the variables that are supposed to be based on exec_prefix
843 # by default will actually change.
844 # Use braces instead of parens because sh, perl, etc. also accept them.
845 # (The list follows the same order as the GNU Coding Standards.)
846 bindir='${exec_prefix}/bin'
847 sbindir='${exec_prefix}/sbin'
848 libexecdir='${exec_prefix}/libexec'
849 datarootdir='${prefix}/share'
850 datadir='${datarootdir}'
851 sysconfdir='${prefix}/etc'
852 sharedstatedir='${prefix}/com'
853 localstatedir='${prefix}/var'
854 includedir='${prefix}/include'
855 oldincludedir='/usr/include'
856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857 infodir='${datarootdir}/info'
858 htmldir='${docdir}'
859 dvidir='${docdir}'
860 pdfdir='${docdir}'
861 psdir='${docdir}'
862 libdir='${exec_prefix}/lib'
863 localedir='${datarootdir}/locale'
864 mandir='${datarootdir}/man'
865
866 ac_prev=
867 ac_dashdash=
868 for ac_option
869 do
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\$ac_option
873 ac_prev=
874 continue
875 fi
876
877 case $ac_option in
878 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 *) ac_optarg=yes ;;
880 esac
881
882 # Accept the important Cygnus configure options, so we can diagnose typos.
883
884 case $ac_dashdash$ac_option in
885 --)
886 ac_dashdash=yes ;;
887
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 ac_prev=bindir ;;
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 bindir=$ac_optarg ;;
892
893 -build | --build | --buil | --bui | --bu)
894 ac_prev=build_alias ;;
895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896 build_alias=$ac_optarg ;;
897
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903 cache_file=$ac_optarg ;;
904
905 --config-cache | -C)
906 cache_file=config.cache ;;
907
908 -datadir | --datadir | --datadi | --datad)
909 ac_prev=datadir ;;
910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
911 datadir=$ac_optarg ;;
912
913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
919
920 -disable-* | --disable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
925 { (exit 1); exit 1; }; }
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=no ;;
936
937 -docdir | --docdir | --docdi | --doc | --do)
938 ac_prev=docdir ;;
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 docdir=$ac_optarg ;;
941
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943 ac_prev=dvidir ;;
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 dvidir=$ac_optarg ;;
946
947 -enable-* | --enable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
952 { (exit 1); exit 1; }; }
953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
956 *"
957 "enable_$ac_useropt"
958 "*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=\$ac_optarg ;;
963
964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966 | --exec | --exe | --ex)
967 ac_prev=exec_prefix ;;
968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970 | --exec=* | --exe=* | --ex=*)
971 exec_prefix=$ac_optarg ;;
972
973 -gas | --gas | --ga | --g)
974 # Obsolete; use --with-gas.
975 with_gas=yes ;;
976
977 -help | --help | --hel | --he | -h)
978 ac_init_help=long ;;
979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980 ac_init_help=recursive ;;
981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982 ac_init_help=short ;;
983
984 -host | --host | --hos | --ho)
985 ac_prev=host_alias ;;
986 -host=* | --host=* | --hos=* | --ho=*)
987 host_alias=$ac_optarg ;;
988
989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990 ac_prev=htmldir ;;
991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992 | --ht=*)
993 htmldir=$ac_optarg ;;
994
995 -includedir | --includedir | --includedi | --included | --include \
996 | --includ | --inclu | --incl | --inc)
997 ac_prev=includedir ;;
998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999 | --includ=* | --inclu=* | --incl=* | --inc=*)
1000 includedir=$ac_optarg ;;
1001
1002 -infodir | --infodir | --infodi | --infod | --info | --inf)
1003 ac_prev=infodir ;;
1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005 infodir=$ac_optarg ;;
1006
1007 -libdir | --libdir | --libdi | --libd)
1008 ac_prev=libdir ;;
1009 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010 libdir=$ac_optarg ;;
1011
1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013 | --libexe | --libex | --libe)
1014 ac_prev=libexecdir ;;
1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016 | --libexe=* | --libex=* | --libe=*)
1017 libexecdir=$ac_optarg ;;
1018
1019 -localedir | --localedir | --localedi | --localed | --locale)
1020 ac_prev=localedir ;;
1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022 localedir=$ac_optarg ;;
1023
1024 -localstatedir | --localstatedir | --localstatedi | --localstated \
1025 | --localstate | --localstat | --localsta | --localst | --locals)
1026 ac_prev=localstatedir ;;
1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029 localstatedir=$ac_optarg ;;
1030
1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032 ac_prev=mandir ;;
1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034 mandir=$ac_optarg ;;
1035
1036 -nfp | --nfp | --nf)
1037 # Obsolete; use --without-fp.
1038 with_fp=no ;;
1039
1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041 | --no-cr | --no-c | -n)
1042 no_create=yes ;;
1043
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046 no_recursion=yes ;;
1047
1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050 | --oldin | --oldi | --old | --ol | --o)
1051 ac_prev=oldincludedir ;;
1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055 oldincludedir=$ac_optarg ;;
1056
1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058 ac_prev=prefix ;;
1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060 prefix=$ac_optarg ;;
1061
1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063 | --program-pre | --program-pr | --program-p)
1064 ac_prev=program_prefix ;;
1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067 program_prefix=$ac_optarg ;;
1068
1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070 | --program-suf | --program-su | --program-s)
1071 ac_prev=program_suffix ;;
1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074 program_suffix=$ac_optarg ;;
1075
1076 -program-transform-name | --program-transform-name \
1077 | --program-transform-nam | --program-transform-na \
1078 | --program-transform-n | --program-transform- \
1079 | --program-transform | --program-transfor \
1080 | --program-transfo | --program-transf \
1081 | --program-trans | --program-tran \
1082 | --progr-tra | --program-tr | --program-t)
1083 ac_prev=program_transform_name ;;
1084 -program-transform-name=* | --program-transform-name=* \
1085 | --program-transform-nam=* | --program-transform-na=* \
1086 | --program-transform-n=* | --program-transform-=* \
1087 | --program-transform=* | --program-transfor=* \
1088 | --program-transfo=* | --program-transf=* \
1089 | --program-trans=* | --program-tran=* \
1090 | --progr-tra=* | --program-tr=* | --program-t=*)
1091 program_transform_name=$ac_optarg ;;
1092
1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094 ac_prev=pdfdir ;;
1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096 pdfdir=$ac_optarg ;;
1097
1098 -psdir | --psdir | --psdi | --psd | --ps)
1099 ac_prev=psdir ;;
1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101 psdir=$ac_optarg ;;
1102
1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104 | -silent | --silent | --silen | --sile | --sil)
1105 silent=yes ;;
1106
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108 ac_prev=sbindir ;;
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110 | --sbi=* | --sb=*)
1111 sbindir=$ac_optarg ;;
1112
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1116 | --sha | --sh)
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121 | --sha=* | --sh=*)
1122 sharedstatedir=$ac_optarg ;;
1123
1124 -site | --site | --sit)
1125 ac_prev=site ;;
1126 -site=* | --site=* | --sit=*)
1127 site=$ac_optarg ;;
1128
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130 ac_prev=srcdir ;;
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1133
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1140
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1145
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147 verbose=yes ;;
1148
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1151
1152 -with-* | --with-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1157 { (exit 1); exit 1; }; }
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1161 *"
1162 "with_$ac_useropt"
1163 "*) ;;
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1166 esac
1167 eval with_$ac_useropt=\$ac_optarg ;;
1168
1169 -without-* | --without-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1174 { (exit 1); exit 1; }; }
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=no ;;
1185
1186 --x)
1187 # Obsolete; use --with-x.
1188 with_x=yes ;;
1189
1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191 | --x-incl | --x-inc | --x-in | --x-i)
1192 ac_prev=x_includes ;;
1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195 x_includes=$ac_optarg ;;
1196
1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199 ac_prev=x_libraries ;;
1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202 x_libraries=$ac_optarg ;;
1203
1204 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1205 Try \`$0 --help' for more information." >&2
1206 { (exit 1); exit 1; }; }
1207 ;;
1208
1209 *=*)
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1213 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1214 { (exit 1); exit 1; }; }
1215 eval $ac_envvar=\$ac_optarg
1216 export $ac_envvar ;;
1217
1218 *)
1219 # FIXME: should be removed in autoconf 3.0.
1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1224 ;;
1225
1226 esac
1227 done
1228
1229 if test -n "$ac_prev"; then
1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1232 { (exit 1); exit 1; }; }
1233 fi
1234
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1237 no) ;;
1238 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1239 { (exit 1); exit 1; }; } ;;
1240 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1241 esac
1242 fi
1243
1244 # Check all directory arguments for consistency.
1245 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1246 datadir sysconfdir sharedstatedir localstatedir includedir \
1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1248 libdir localedir mandir
1249 do
1250 eval ac_val=\$$ac_var
1251 # Remove trailing slashes.
1252 case $ac_val in
1253 */ )
1254 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1255 eval $ac_var=\$ac_val;;
1256 esac
1257 # Be sure to have absolute directory names.
1258 case $ac_val in
1259 [\\/$]* | ?:[\\/]* ) continue;;
1260 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1261 esac
1262 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1263 { (exit 1); exit 1; }; }
1264 done
1265
1266 # There might be people who depend on the old broken behavior: `$host'
1267 # used to hold the argument of --host etc.
1268 # FIXME: To remove some day.
1269 build=$build_alias
1270 host=$host_alias
1271 target=$target_alias
1272
1273 # FIXME: To remove some day.
1274 if test "x$host_alias" != x; then
1275 if test "x$build_alias" = x; then
1276 cross_compiling=maybe
1277 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1278 If a cross compiler is detected then cross compile mode will be used." >&2
1279 elif test "x$build_alias" != "x$host_alias"; then
1280 cross_compiling=yes
1281 fi
1282 fi
1283
1284 ac_tool_prefix=
1285 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1286
1287 test "$silent" = yes && exec 6>/dev/null
1288
1289
1290 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1291 ac_ls_di=`ls -di .` &&
1292 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1293 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1294 { (exit 1); exit 1; }; }
1295 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1297 { (exit 1); exit 1; }; }
1298
1299
1300 # Find the source files, if location was not specified.
1301 if test -z "$srcdir"; then
1302 ac_srcdir_defaulted=yes
1303 # Try the directory containing this script, then the parent directory.
1304 ac_confdir=`$as_dirname -- "$as_myself" ||
1305 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306 X"$as_myself" : 'X\(//\)[^/]' \| \
1307 X"$as_myself" : 'X\(//\)$' \| \
1308 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309 $as_echo X"$as_myself" |
1310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311 s//\1/
1312 q
1313 }
1314 /^X\(\/\/\)[^/].*/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)$/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\).*/{
1323 s//\1/
1324 q
1325 }
1326 s/.*/./; q'`
1327 srcdir=$ac_confdir
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 srcdir=..
1330 fi
1331 else
1332 ac_srcdir_defaulted=no
1333 fi
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1337 { (exit 1); exit 1; }; }
1338 fi
1339 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340 ac_abs_confdir=`(
1341 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1342 { (exit 1); exit 1; }; }
1343 pwd)`
1344 # When building in place, set srcdir=.
1345 if test "$ac_abs_confdir" = "$ac_pwd"; then
1346 srcdir=.
1347 fi
1348 # Remove unnecessary trailing slashes from srcdir.
1349 # Double slashes in file names in object file debugging info
1350 # mess up M-x gdb in Emacs.
1351 case $srcdir in
1352 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353 esac
1354 for ac_var in $ac_precious_vars; do
1355 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_env_${ac_var}_value=\$${ac_var}
1357 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1359 done
1360
1361 #
1362 # Report the --help message.
1363 #
1364 if test "$ac_init_help" = "long"; then
1365 # Omit some internal or obsolete options to make the list less imposing.
1366 # This message is too long to be a string in the A/UX 3.1 sh.
1367 cat <<_ACEOF
1368 \`configure' configures emacs 23.0.91 to adapt to many kinds of systems.
1369
1370 Usage: $0 [OPTION]... [VAR=VALUE]...
1371
1372 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1373 VAR=VALUE. See below for descriptions of some of the useful variables.
1374
1375 Defaults for the options are specified in brackets.
1376
1377 Configuration:
1378 -h, --help display this help and exit
1379 --help=short display options specific to this package
1380 --help=recursive display the short help of all the included packages
1381 -V, --version display version information and exit
1382 -q, --quiet, --silent do not print \`checking...' messages
1383 --cache-file=FILE cache test results in FILE [disabled]
1384 -C, --config-cache alias for \`--cache-file=config.cache'
1385 -n, --no-create do not create output files
1386 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1387
1388 Installation directories:
1389 --prefix=PREFIX install architecture-independent files in PREFIX
1390 [$ac_default_prefix]
1391 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1392 [PREFIX]
1393
1394 By default, \`make install' will install all the files in
1395 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1396 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1397 for instance \`--prefix=\$HOME'.
1398
1399 For better control, use the options below.
1400
1401 Fine tuning of the installation directories:
1402 --bindir=DIR user executables [EPREFIX/bin]
1403 --sbindir=DIR system admin executables [EPREFIX/sbin]
1404 --libexecdir=DIR program executables [EPREFIX/libexec]
1405 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1406 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1407 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1408 --libdir=DIR object code libraries [EPREFIX/lib]
1409 --includedir=DIR C header files [PREFIX/include]
1410 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1411 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1412 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1413 --infodir=DIR info documentation [DATAROOTDIR/info]
1414 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1415 --mandir=DIR man documentation [DATAROOTDIR/man]
1416 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1417 --htmldir=DIR html documentation [DOCDIR]
1418 --dvidir=DIR dvi documentation [DOCDIR]
1419 --pdfdir=DIR pdf documentation [DOCDIR]
1420 --psdir=DIR ps documentation [DOCDIR]
1421 _ACEOF
1422
1423 cat <<\_ACEOF
1424
1425 Program names:
1426 --program-prefix=PREFIX prepend PREFIX to installed program names
1427 --program-suffix=SUFFIX append SUFFIX to installed program names
1428 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1429
1430 X features:
1431 --x-includes=DIR X include files are in DIR
1432 --x-libraries=DIR X library files are in DIR
1433
1434 System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 _ACEOF
1438 fi
1439
1440 if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of emacs 23.0.91:";;
1443 esac
1444 cat <<\_ACEOF
1445
1446 Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --disable-ns-self-contained
1451 disable self contained build under NeXTstep
1452 --enable-asserts compile code with asserts enabled
1453 --enable-maintainer-mode
1454 enable make rules and dependencies not useful (and
1455 sometimes confusing) to the casual installer
1456 --enable-locallisppath=PATH
1457 directories Emacs should search for lisp files
1458 specific to this site
1459 --disable-largefile omit support for large files
1460
1461 Optional Packages:
1462 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1463 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1464 --without-pop don't support POP mail retrieval with movemail
1465 --with-kerberos support Kerberos-authenticated POP
1466 --with-kerberos5 support Kerberos version 5 authenticated POP
1467 --with-hesiod support Hesiod to get the POP server host
1468 --without-sound don't compile with sound support
1469 --without-sync-input process async input synchronously
1470 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1471 motif, gtk, no)
1472 --without-xpm don't compile with XPM image support
1473 --without-jpeg don't compile with JPEG image support
1474 --without-tiff don't compile with TIFF image support
1475 --without-gif don't compile with GIF image support
1476 --without-png don't compile with PNG image support
1477 --without-rsvg don't compile with SVG image support
1478 --without-freetype don't use Freetype for local font support
1479 --without-xft don't use XFT for anti aliased fonts
1480 --without-libotf don't use libotf for OpenType font support
1481 --without-m17n-flt don't use m17n-flt for text shaping
1482 --without-toolkit-scroll-bars
1483 don't use Motif or Xaw3d scroll bars
1484 --without-xaw3d don't use Xaw3d
1485 --without-xim don't use X11 XIM
1486 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1487 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1488 console
1489 --without-dbus don't compile with D-Bus support
1490 --without-makeinfo don't require makeinfo for building manuals
1491
1492 --with-pkg-config-prog=PATH
1493 path to pkg-config for finding GTK and librsvg
1494 --with-gnustep-conf=PATH
1495 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1496 or /etc/GNUstep/GNUstep.conf
1497 --with-x use the X Window System
1498
1499 Some influential environment variables:
1500 CC C compiler command
1501 CFLAGS C compiler flags
1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1503 nonstandard directory <lib dir>
1504 LIBS libraries to pass to the linker, e.g. -l<library>
1505 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1506 you have headers in a nonstandard directory <include dir>
1507 CPP C preprocessor
1508 XMKMF Path to xmkmf, Makefile generator for X Window System
1509
1510 Use these variables to override the choices made by `configure' or to help
1511 it to find libraries and programs with nonstandard names/locations.
1512
1513 _ACEOF
1514 ac_status=$?
1515 fi
1516
1517 if test "$ac_init_help" = "recursive"; then
1518 # If there are subdirs, report their specific --help.
1519 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1520 test -d "$ac_dir" ||
1521 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1522 continue
1523 ac_builddir=.
1524
1525 case "$ac_dir" in
1526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *)
1528 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1529 # A ".." for each directory in $ac_dir_suffix.
1530 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1531 case $ac_top_builddir_sub in
1532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534 esac ;;
1535 esac
1536 ac_abs_top_builddir=$ac_pwd
1537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538 # for backward compatibility:
1539 ac_top_builddir=$ac_top_build_prefix
1540
1541 case $srcdir in
1542 .) # We are building in place.
1543 ac_srcdir=.
1544 ac_top_srcdir=$ac_top_builddir_sub
1545 ac_abs_top_srcdir=$ac_pwd ;;
1546 [\\/]* | ?:[\\/]* ) # Absolute name.
1547 ac_srcdir=$srcdir$ac_dir_suffix;
1548 ac_top_srcdir=$srcdir
1549 ac_abs_top_srcdir=$srcdir ;;
1550 *) # Relative name.
1551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552 ac_top_srcdir=$ac_top_build_prefix$srcdir
1553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554 esac
1555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1556
1557 cd "$ac_dir" || { ac_status=$?; continue; }
1558 # Check for guested configure.
1559 if test -f "$ac_srcdir/configure.gnu"; then
1560 echo &&
1561 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562 elif test -f "$ac_srcdir/configure"; then
1563 echo &&
1564 $SHELL "$ac_srcdir/configure" --help=recursive
1565 else
1566 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1567 fi || ac_status=$?
1568 cd "$ac_pwd" || { ac_status=$?; break; }
1569 done
1570 fi
1571
1572 test -n "$ac_init_help" && exit $ac_status
1573 if $ac_init_version; then
1574 cat <<\_ACEOF
1575 emacs configure 23.0.91
1576 generated by GNU Autoconf 2.63
1577
1578 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1579 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1582 _ACEOF
1583 exit
1584 fi
1585 cat >config.log <<_ACEOF
1586 This file contains any messages produced by compilers while
1587 running configure, to aid debugging if configure makes a mistake.
1588
1589 It was created by emacs $as_me 23.0.91, which was
1590 generated by GNU Autoconf 2.63. Invocation command line was
1591
1592 $ $0 $@
1593
1594 _ACEOF
1595 exec 5>>config.log
1596 {
1597 cat <<_ASUNAME
1598 ## --------- ##
1599 ## Platform. ##
1600 ## --------- ##
1601
1602 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1603 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1604 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1605 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1606 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1607
1608 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1609 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1610
1611 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1612 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1613 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1614 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1615 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1616 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1617 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1618
1619 _ASUNAME
1620
1621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622 for as_dir in $PATH
1623 do
1624 IFS=$as_save_IFS
1625 test -z "$as_dir" && as_dir=.
1626 $as_echo "PATH: $as_dir"
1627 done
1628 IFS=$as_save_IFS
1629
1630 } >&5
1631
1632 cat >&5 <<_ACEOF
1633
1634
1635 ## ----------- ##
1636 ## Core tests. ##
1637 ## ----------- ##
1638
1639 _ACEOF
1640
1641
1642 # Keep a trace of the command line.
1643 # Strip out --no-create and --no-recursion so they do not pile up.
1644 # Strip out --silent because we don't want to record it for future runs.
1645 # Also quote any args containing shell meta-characters.
1646 # Make two passes to allow for proper duplicate-argument suppression.
1647 ac_configure_args=
1648 ac_configure_args0=
1649 ac_configure_args1=
1650 ac_must_keep_next=false
1651 for ac_pass in 1 2
1652 do
1653 for ac_arg
1654 do
1655 case $ac_arg in
1656 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1658 | -silent | --silent | --silen | --sile | --sil)
1659 continue ;;
1660 *\'*)
1661 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1662 esac
1663 case $ac_pass in
1664 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1665 2)
1666 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1667 if test $ac_must_keep_next = true; then
1668 ac_must_keep_next=false # Got value, back to normal.
1669 else
1670 case $ac_arg in
1671 *=* | --config-cache | -C | -disable-* | --disable-* \
1672 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1673 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1674 | -with-* | --with-* | -without-* | --without-* | --x)
1675 case "$ac_configure_args0 " in
1676 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1677 esac
1678 ;;
1679 -* ) ac_must_keep_next=true ;;
1680 esac
1681 fi
1682 ac_configure_args="$ac_configure_args '$ac_arg'"
1683 ;;
1684 esac
1685 done
1686 done
1687 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1688 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1689
1690 # When interrupted or exit'd, cleanup temporary files, and complete
1691 # config.log. We remove comments because anyway the quotes in there
1692 # would cause problems or look ugly.
1693 # WARNING: Use '\'' to represent an apostrophe within the trap.
1694 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1695 trap 'exit_status=$?
1696 # Save into config.log some information that might help in debugging.
1697 {
1698 echo
1699
1700 cat <<\_ASBOX
1701 ## ---------------- ##
1702 ## Cache variables. ##
1703 ## ---------------- ##
1704 _ASBOX
1705 echo
1706 # The following way of writing the cache mishandles newlines in values,
1707 (
1708 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1709 eval ac_val=\$$ac_var
1710 case $ac_val in #(
1711 *${as_nl}*)
1712 case $ac_var in #(
1713 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1714 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1715 esac
1716 case $ac_var in #(
1717 _ | IFS | as_nl) ;; #(
1718 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1719 *) $as_unset $ac_var ;;
1720 esac ;;
1721 esac
1722 done
1723 (set) 2>&1 |
1724 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1725 *${as_nl}ac_space=\ *)
1726 sed -n \
1727 "s/'\''/'\''\\\\'\'''\''/g;
1728 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1729 ;; #(
1730 *)
1731 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1732 ;;
1733 esac |
1734 sort
1735 )
1736 echo
1737
1738 cat <<\_ASBOX
1739 ## ----------------- ##
1740 ## Output variables. ##
1741 ## ----------------- ##
1742 _ASBOX
1743 echo
1744 for ac_var in $ac_subst_vars
1745 do
1746 eval ac_val=\$$ac_var
1747 case $ac_val in
1748 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749 esac
1750 $as_echo "$ac_var='\''$ac_val'\''"
1751 done | sort
1752 echo
1753
1754 if test -n "$ac_subst_files"; then
1755 cat <<\_ASBOX
1756 ## ------------------- ##
1757 ## File substitutions. ##
1758 ## ------------------- ##
1759 _ASBOX
1760 echo
1761 for ac_var in $ac_subst_files
1762 do
1763 eval ac_val=\$$ac_var
1764 case $ac_val in
1765 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766 esac
1767 $as_echo "$ac_var='\''$ac_val'\''"
1768 done | sort
1769 echo
1770 fi
1771
1772 if test -s confdefs.h; then
1773 cat <<\_ASBOX
1774 ## ----------- ##
1775 ## confdefs.h. ##
1776 ## ----------- ##
1777 _ASBOX
1778 echo
1779 cat confdefs.h
1780 echo
1781 fi
1782 test "$ac_signal" != 0 &&
1783 $as_echo "$as_me: caught signal $ac_signal"
1784 $as_echo "$as_me: exit $exit_status"
1785 } >&5
1786 rm -f core *.core core.conftest.* &&
1787 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1788 exit $exit_status
1789 ' 0
1790 for ac_signal in 1 2 13 15; do
1791 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1792 done
1793 ac_signal=0
1794
1795 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1796 rm -f -r conftest* confdefs.h
1797
1798 # Predefined preprocessor variables.
1799
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_NAME "$PACKAGE_NAME"
1802 _ACEOF
1803
1804
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1807 _ACEOF
1808
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1812 _ACEOF
1813
1814
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_STRING "$PACKAGE_STRING"
1817 _ACEOF
1818
1819
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1822 _ACEOF
1823
1824
1825 # Let the site file select an alternate cache file if it wants to.
1826 # Prefer an explicitly selected file to automatically selected ones.
1827 ac_site_file1=NONE
1828 ac_site_file2=NONE
1829 if test -n "$CONFIG_SITE"; then
1830 ac_site_file1=$CONFIG_SITE
1831 elif test "x$prefix" != xNONE; then
1832 ac_site_file1=$prefix/share/config.site
1833 ac_site_file2=$prefix/etc/config.site
1834 else
1835 ac_site_file1=$ac_default_prefix/share/config.site
1836 ac_site_file2=$ac_default_prefix/etc/config.site
1837 fi
1838 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1839 do
1840 test "x$ac_site_file" = xNONE && continue
1841 if test -r "$ac_site_file"; then
1842 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1843 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1844 sed 's/^/| /' "$ac_site_file" >&5
1845 . "$ac_site_file"
1846 fi
1847 done
1848
1849 if test -r "$cache_file"; then
1850 # Some versions of bash will fail to source /dev/null (special
1851 # files actually), so we avoid doing that.
1852 if test -f "$cache_file"; then
1853 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1854 $as_echo "$as_me: loading cache $cache_file" >&6;}
1855 case $cache_file in
1856 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1857 *) . "./$cache_file";;
1858 esac
1859 fi
1860 else
1861 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1862 $as_echo "$as_me: creating cache $cache_file" >&6;}
1863 >$cache_file
1864 fi
1865
1866 ac_header_list="$ac_header_list sys/time.h"
1867 ac_header_list="$ac_header_list unistd.h"
1868 ac_func_list="$ac_func_list alarm"
1869 # Check that the precious variables saved in the cache have kept the same
1870 # value.
1871 ac_cache_corrupted=false
1872 for ac_var in $ac_precious_vars; do
1873 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1874 eval ac_new_set=\$ac_env_${ac_var}_set
1875 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1876 eval ac_new_val=\$ac_env_${ac_var}_value
1877 case $ac_old_set,$ac_new_set in
1878 set,)
1879 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1880 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1881 ac_cache_corrupted=: ;;
1882 ,set)
1883 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1884 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1885 ac_cache_corrupted=: ;;
1886 ,);;
1887 *)
1888 if test "x$ac_old_val" != "x$ac_new_val"; then
1889 # differences in whitespace do not lead to failure.
1890 ac_old_val_w=`echo x $ac_old_val`
1891 ac_new_val_w=`echo x $ac_new_val`
1892 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1893 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1894 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1895 ac_cache_corrupted=:
1896 else
1897 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1898 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1899 eval $ac_var=\$ac_old_val
1900 fi
1901 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1902 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1903 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1904 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1905 fi;;
1906 esac
1907 # Pass precious variables to config.status.
1908 if test "$ac_new_set" = set; then
1909 case $ac_new_val in
1910 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1911 *) ac_arg=$ac_var=$ac_new_val ;;
1912 esac
1913 case " $ac_configure_args " in
1914 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1915 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1916 esac
1917 fi
1918 done
1919 if $ac_cache_corrupted; then
1920 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1922 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1923 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1924 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1925 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1926 { (exit 1); exit 1; }; }
1927 fi
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953 ac_ext=c
1954 ac_cpp='$CPP $CPPFLAGS'
1955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1958
1959
1960 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1961
1962
1963
1964 test "$program_prefix" != NONE &&
1965 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1966 # Use a double $ so make ignores it.
1967 test "$program_suffix" != NONE &&
1968 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1969 # Double any \ or $.
1970 # By default was `s,x,x', remove it if useless.
1971 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1972 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1973
1974
1975 lispdir='${datadir}/emacs/${version}/lisp'
1976 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1977 '${datadir}/emacs/site-lisp'
1978 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1979 etcdir='${datadir}/emacs/${version}/etc'
1980 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1981 docdir='${datadir}/emacs/${version}/etc'
1982 gamedir='${localstatedir}/games/emacs'
1983
1984 gameuser=games
1985
1986
1987
1988
1989 # Check whether --with-pop was given.
1990 if test "${with_pop+set}" = set; then
1991 withval=$with_pop;
1992 else
1993 with_pop=yes
1994 fi
1995
1996 if test "$with_pop" = yes; then
1997 cat >>confdefs.h <<\_ACEOF
1998 #define MAIL_USE_POP 1
1999 _ACEOF
2000
2001 fi
2002
2003
2004
2005 # Check whether --with-kerberos was given.
2006 if test "${with_kerberos+set}" = set; then
2007 withval=$with_kerberos;
2008 else
2009 with_kerberos=no
2010 fi
2011
2012 if test "$with_kerberos" != no; then
2013 cat >>confdefs.h <<\_ACEOF
2014 #define KERBEROS 1
2015 _ACEOF
2016
2017 fi
2018
2019
2020
2021 # Check whether --with-kerberos5 was given.
2022 if test "${with_kerberos5+set}" = set; then
2023 withval=$with_kerberos5;
2024 else
2025 with_kerberos5=no
2026 fi
2027
2028 if test "${with_kerberos5}" != no; then
2029 if test "${with_kerberos}" = no; then
2030 with_kerberos=yes
2031 cat >>confdefs.h <<\_ACEOF
2032 #define KERBEROS 1
2033 _ACEOF
2034
2035 fi
2036
2037 cat >>confdefs.h <<\_ACEOF
2038 #define KERBEROS5 1
2039 _ACEOF
2040
2041 fi
2042
2043
2044 # Check whether --with-hesiod was given.
2045 if test "${with_hesiod+set}" = set; then
2046 withval=$with_hesiod;
2047 else
2048 with_hesiod=no
2049 fi
2050
2051 if test "$with_hesiod" != no; then
2052
2053 cat >>confdefs.h <<\_ACEOF
2054 #define HESIOD 1
2055 _ACEOF
2056
2057 fi
2058
2059
2060 # Check whether --with-sound was given.
2061 if test "${with_sound+set}" = set; then
2062 withval=$with_sound;
2063 else
2064 with_sound=yes
2065 fi
2066
2067
2068
2069 # Check whether --with-sync-input was given.
2070 if test "${with_sync_input+set}" = set; then
2071 withval=$with_sync_input;
2072 else
2073 with_sync_input=yes
2074 fi
2075
2076 if test "$with_sync_input" = yes; then
2077
2078 cat >>confdefs.h <<\_ACEOF
2079 #define SYNC_INPUT 1
2080 _ACEOF
2081
2082 fi
2083
2084
2085 # Check whether --with-x-toolkit was given.
2086 if test "${with_x_toolkit+set}" = set; then
2087 withval=$with_x_toolkit; case "${withval}" in
2088 y | ye | yes ) val=gtk ;;
2089 n | no ) val=no ;;
2090 l | lu | luc | luci | lucid ) val=lucid ;;
2091 a | at | ath | athe | athen | athena ) val=athena ;;
2092 m | mo | mot | moti | motif ) val=motif ;;
2093 g | gt | gtk ) val=gtk ;;
2094 * )
2095 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2096 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2097 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2098 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2099 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2100 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2101 { (exit 1); exit 1; }; }
2102 ;;
2103 esac
2104 with_x_toolkit=$val
2105
2106 fi
2107
2108
2109
2110 # Check whether --with-xpm was given.
2111 if test "${with_xpm+set}" = set; then
2112 withval=$with_xpm;
2113 else
2114 with_xpm=yes
2115 fi
2116
2117
2118 # Check whether --with-jpeg was given.
2119 if test "${with_jpeg+set}" = set; then
2120 withval=$with_jpeg;
2121 else
2122 with_jpeg=yes
2123 fi
2124
2125
2126 # Check whether --with-tiff was given.
2127 if test "${with_tiff+set}" = set; then
2128 withval=$with_tiff;
2129 else
2130 with_tiff=yes
2131 fi
2132
2133
2134 # Check whether --with-gif was given.
2135 if test "${with_gif+set}" = set; then
2136 withval=$with_gif;
2137 else
2138 with_gif=yes
2139 fi
2140
2141
2142 # Check whether --with-png was given.
2143 if test "${with_png+set}" = set; then
2144 withval=$with_png;
2145 else
2146 with_png=yes
2147 fi
2148
2149
2150 # Check whether --with-rsvg was given.
2151 if test "${with_rsvg+set}" = set; then
2152 withval=$with_rsvg;
2153 else
2154 with_rsvg=yes
2155 fi
2156
2157
2158
2159 # Check whether --with-freetype was given.
2160 if test "${with_freetype+set}" = set; then
2161 withval=$with_freetype;
2162 else
2163 with_freetype=yes
2164 fi
2165
2166
2167 # Check whether --with-xft was given.
2168 if test "${with_xft+set}" = set; then
2169 withval=$with_xft;
2170 else
2171 with_xft=yes
2172 fi
2173
2174
2175 # Check whether --with-libotf was given.
2176 if test "${with_libotf+set}" = set; then
2177 withval=$with_libotf;
2178 else
2179 with_libotf=yes
2180 fi
2181
2182
2183 # Check whether --with-m17n-flt was given.
2184 if test "${with_m17n_flt+set}" = set; then
2185 withval=$with_m17n_flt;
2186 else
2187 with_m17n_flt=yes
2188 fi
2189
2190
2191
2192 # Check whether --with-toolkit-scroll-bars was given.
2193 if test "${with_toolkit_scroll_bars+set}" = set; then
2194 withval=$with_toolkit_scroll_bars;
2195 else
2196 with_toolkit_scroll_bars=yes
2197 fi
2198
2199
2200 # Check whether --with-xaw3d was given.
2201 if test "${with_xaw3d+set}" = set; then
2202 withval=$with_xaw3d;
2203 else
2204 with_xaw3d=yes
2205 fi
2206
2207
2208 # Check whether --with-xim was given.
2209 if test "${with_xim+set}" = set; then
2210 withval=$with_xim;
2211 else
2212 with_xim=yes
2213 fi
2214
2215
2216 # Check whether --with-ns was given.
2217 if test "${with_ns+set}" = set; then
2218 withval=$with_ns;
2219 else
2220 with_ns=no
2221 fi
2222
2223
2224
2225 # Check whether --with-gpm was given.
2226 if test "${with_gpm+set}" = set; then
2227 withval=$with_gpm;
2228 else
2229 with_gpm=yes
2230 fi
2231
2232
2233 # Check whether --with-dbus was given.
2234 if test "${with_dbus+set}" = set; then
2235 withval=$with_dbus;
2236 else
2237 with_dbus=yes
2238 fi
2239
2240
2241 ## For the times when you want to build Emacs but don't have
2242 ## a suitable makeinfo, and can live without the manuals.
2243
2244 # Check whether --with-makeinfo was given.
2245 if test "${with_makeinfo+set}" = set; then
2246 withval=$with_makeinfo;
2247 else
2248 with_makeinfo=yes
2249 fi
2250
2251
2252
2253 # Check whether --with-gtk was given.
2254 if test "${with_gtk+set}" = set; then
2255 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2256 specify a toolkit." >&5
2257 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2258 specify a toolkit." >&2;}
2259 { (exit 1); exit 1; }; }
2260 fi
2261
2262
2263
2264 # Check whether --with-gcc was given.
2265 if test "${with_gcc+set}" = set; then
2266 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2267 variable to specify a compiler." >&5
2268 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2269 variable to specify a compiler." >&2;}
2270 { (exit 1); exit 1; }; }
2271 fi
2272
2273
2274
2275 # Check whether --with-pkg-config-prog was given.
2276 if test "${with_pkg_config_prog+set}" = set; then
2277 withval=$with_pkg_config_prog;
2278 fi
2279
2280 if test "X${with_pkg_config_prog}" != X; then
2281 if test "${with_pkg_config_prog}" != yes; then
2282 PKG_CONFIG="${with_pkg_config_prog}"
2283 fi
2284 fi
2285
2286
2287 # Check whether --with-gnustep-conf was given.
2288 if test "${with_gnustep_conf+set}" = set; then
2289 withval=$with_gnustep_conf;
2290 fi
2291
2292 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2293 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2294 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2295 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2296
2297 # Check whether --enable-ns-self-contained was given.
2298 if test "${enable_ns_self_contained+set}" = set; then
2299 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2300 else
2301 EN_NS_SELF_CONTAINED=yes
2302 fi
2303
2304
2305 # Check whether --enable-asserts was given.
2306 if test "${enable_asserts+set}" = set; then
2307 enableval=$enable_asserts; USE_XASSERTS=$enableval
2308 else
2309 USE_XASSERTS=no
2310 fi
2311
2312
2313 # Check whether --enable-maintainer-mode was given.
2314 if test "${enable_maintainer_mode+set}" = set; then
2315 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2316 else
2317 USE_MAINTAINER_MODE=no
2318 fi
2319
2320 if test $USE_MAINTAINER_MODE = yes; then
2321 MAINT=
2322 else
2323 MAINT=#
2324 fi
2325
2326
2327 # Check whether --enable-locallisppath was given.
2328 if test "${enable_locallisppath+set}" = set; then
2329 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2330 locallisppath=
2331 elif test "${enableval}" != "yes"; then
2332 locallisppath=${enableval}
2333 fi
2334 fi
2335
2336
2337 #### Make srcdir absolute, if it isn't already. It's important to
2338 #### avoid running the path through pwd unnecessarily, since pwd can
2339 #### give you automounter prefixes, which can go away. We do all this
2340 #### so Emacs can find its files when run uninstalled.
2341 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2342 unset CDPATH
2343 case "${srcdir}" in
2344 /* ) ;;
2345 . )
2346 ## We may be able to use the $PWD environment variable to make this
2347 ## absolute. But sometimes PWD is inaccurate.
2348 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2349 ## but that tested only for a well-formed and valid PWD,
2350 ## it did not object when PWD was well-formed and valid but just wrong.
2351 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2352 then
2353 srcdir="$PWD"
2354 else
2355 srcdir="`(cd ${srcdir}; pwd)`"
2356 fi
2357 ;;
2358 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2359 esac
2360
2361 #### Check if the source directory already has a configured system in it.
2362 if test `pwd` != `(cd ${srcdir} && pwd)` \
2363 && test -f "${srcdir}/src/config.h" ; then
2364 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2365 as a build directory right now; it has been configured in its own
2366 right. To configure in another directory as well, you MUST
2367 use GNU make. If you do not have GNU make, then you must
2368 now do \`make distclean' in ${srcdir},
2369 and then run $0 again." >&5
2370 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2371 as a build directory right now; it has been configured in its own
2372 right. To configure in another directory as well, you MUST
2373 use GNU make. If you do not have GNU make, then you must
2374 now do \`make distclean' in ${srcdir},
2375 and then run $0 again." >&2;}
2376 fi
2377
2378 #### Given the configuration name, set machfile and opsysfile to the
2379 #### names of the m/*.h and s/*.h files we should use.
2380
2381 ### Canonicalize the configuration name.
2382
2383 ac_aux_dir=
2384 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2385 if test -f "$ac_dir/install-sh"; then
2386 ac_aux_dir=$ac_dir
2387 ac_install_sh="$ac_aux_dir/install-sh -c"
2388 break
2389 elif test -f "$ac_dir/install.sh"; then
2390 ac_aux_dir=$ac_dir
2391 ac_install_sh="$ac_aux_dir/install.sh -c"
2392 break
2393 elif test -f "$ac_dir/shtool"; then
2394 ac_aux_dir=$ac_dir
2395 ac_install_sh="$ac_aux_dir/shtool install -c"
2396 break
2397 fi
2398 done
2399 if test -z "$ac_aux_dir"; then
2400 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2401 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2402 { (exit 1); exit 1; }; }
2403 fi
2404
2405 # These three variables are undocumented and unsupported,
2406 # and are intended to be withdrawn in a future Autoconf release.
2407 # They can cause serious problems if a builder's source tree is in a directory
2408 # whose full name contains unusual characters.
2409 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2410 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2411 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2412
2413
2414 # Make sure we can run config.sub.
2415 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2416 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2417 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2418 { (exit 1); exit 1; }; }
2419
2420 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2421 $as_echo_n "checking build system type... " >&6; }
2422 if test "${ac_cv_build+set}" = set; then
2423 $as_echo_n "(cached) " >&6
2424 else
2425 ac_build_alias=$build_alias
2426 test "x$ac_build_alias" = x &&
2427 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2428 test "x$ac_build_alias" = x &&
2429 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2430 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2431 { (exit 1); exit 1; }; }
2432 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2433 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2434 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2435 { (exit 1); exit 1; }; }
2436
2437 fi
2438 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2439 $as_echo "$ac_cv_build" >&6; }
2440 case $ac_cv_build in
2441 *-*-*) ;;
2442 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2443 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2444 { (exit 1); exit 1; }; };;
2445 esac
2446 build=$ac_cv_build
2447 ac_save_IFS=$IFS; IFS='-'
2448 set x $ac_cv_build
2449 shift
2450 build_cpu=$1
2451 build_vendor=$2
2452 shift; shift
2453 # Remember, the first character of IFS is used to create $*,
2454 # except with old shells:
2455 build_os=$*
2456 IFS=$ac_save_IFS
2457 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2458
2459
2460 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2461 $as_echo_n "checking host system type... " >&6; }
2462 if test "${ac_cv_host+set}" = set; then
2463 $as_echo_n "(cached) " >&6
2464 else
2465 if test "x$host_alias" = x; then
2466 ac_cv_host=$ac_cv_build
2467 else
2468 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2469 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2470 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2471 { (exit 1); exit 1; }; }
2472 fi
2473
2474 fi
2475 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2476 $as_echo "$ac_cv_host" >&6; }
2477 case $ac_cv_host in
2478 *-*-*) ;;
2479 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2480 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2481 { (exit 1); exit 1; }; };;
2482 esac
2483 host=$ac_cv_host
2484 ac_save_IFS=$IFS; IFS='-'
2485 set x $ac_cv_host
2486 shift
2487 host_cpu=$1
2488 host_vendor=$2
2489 shift; shift
2490 # Remember, the first character of IFS is used to create $*,
2491 # except with old shells:
2492 host_os=$*
2493 IFS=$ac_save_IFS
2494 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2495
2496
2497 canonical=$host
2498 configuration=${host_alias-${build_alias-$host}}
2499
2500
2501
2502 ### If you add support for a new configuration, add code to this
2503 ### switch statement to recognize your configuration name and select
2504 ### the appropriate operating system and machine description files.
2505
2506 ### You would hope that you could choose an m/*.h file pretty much
2507 ### based on the machine portion of the configuration name, and an s-
2508 ### file based on the operating system portion. However, it turns out
2509 ### that each m/*.h file is pretty manufacturer-specific - for
2510 ### example mips.h is MIPS
2511 ### So we basically have to have a special case for each
2512 ### configuration name.
2513 ###
2514 ### As far as handling version numbers on operating systems is
2515 ### concerned, make sure things will fail in a fixable way. If
2516 ### /etc/MACHINES doesn't say anything about version numbers, be
2517 ### prepared to handle anything reasonably. If version numbers
2518 ### matter, be sure /etc/MACHINES says something about it.
2519 ###
2520 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2521 ### "System V Release 4"; he writes, "The old convention encouraged
2522 ### confusion between `system' and `release' levels'."
2523
2524 machine='' opsys='' unported=no
2525 case "${canonical}" in
2526
2527 ## FreeBSD ports
2528 *-*-freebsd* )
2529 opsys=freebsd
2530 case "${canonical}" in
2531 alpha*-*-freebsd*) machine=alpha ;;
2532 arm*-*-freebsd*) machine=arm ;;
2533 ia64-*-freebsd*) machine=ia64 ;;
2534 sparc-*-freebsd*) machine=sparc ;;
2535 sparc64-*-freebsd*) machine=sparc ;;
2536 powerpc-*-freebsd*) machine=macppc ;;
2537 i[3456]86-*-freebsd*) machine=intel386 ;;
2538 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2539 esac
2540 ;;
2541
2542 ## FreeBSD kernel + glibc based userland
2543 *-*-kfreebsd*gnu* )
2544 opsys=gnu-kfreebsd
2545 case "${canonical}" in
2546 alpha*-*-kfreebsd*) machine=alpha ;;
2547 ia64-*-kfreebsd*) machine=ia64 ;;
2548 sparc-*-kfreebsd*) machine=sparc ;;
2549 sparc64-*-kfreebsd*) machine=sparc ;;
2550 powerpc-*-kfreebsd*) machine=macppc ;;
2551 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2552 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2553 esac
2554 ;;
2555
2556 ## NetBSD ports
2557 *-*-netbsd* )
2558 opsys=netbsd
2559 if test -f /usr/lib/crti.o; then
2560
2561 cat >>confdefs.h <<\_ACEOF
2562 #define HAVE_CRTIN /**/
2563 _ACEOF
2564
2565 fi
2566
2567 case "${canonical}" in
2568 alpha*-*-netbsd*) machine=alpha ;;
2569 i[3456]86-*-netbsd*) machine=intel386 ;;
2570 powerpc-*-netbsd*) machine=macppc ;;
2571 sparc*-*-netbsd*) machine=sparc ;;
2572 vax-*-netbsd*) machine=vax ;;
2573 arm-*-netbsd*) machine=arm ;;
2574 x86_64-*-netbsd*) machine=amdx86-64 ;;
2575 hppa-*-netbsd*) machine=hp800 ;;
2576 m68k-*-netbsd*) machine=m68k ;;
2577 esac
2578 ;;
2579
2580 ## OpenBSD ports
2581 *-*-openbsd* )
2582 opsys=openbsd
2583 case "${canonical}" in
2584 alpha*-*-openbsd*) machine=alpha ;;
2585 arm-*-openbsd*) machine=arm ;;
2586 i386-*-openbsd*) machine=intel386 ;;
2587 powerpc-*-openbsd*) machine=macppc ;;
2588 sparc*-*-openbsd*) machine=sparc ;;
2589 vax-*-openbsd*) machine=vax ;;
2590 x86_64-*-openbsd*) machine=amdx86-64 ;;
2591 hppa-*-openbsd*) machine=hp800 ;;
2592 esac
2593 ;;
2594
2595 ## LynxOS ports
2596 *-*-lynxos* )
2597 opsys=lynxos
2598 case "${canonical}" in
2599 i[3456]86-*-lynxos*) machine=intel386 ;;
2600 powerpc-*-lynxos*) machine=powerpc ;;
2601 esac
2602 ;;
2603
2604 alpha*-*-linux-gnu* )
2605 machine=alpha opsys=gnu-linux
2606 ;;
2607
2608 arm*-*-linux-gnu* )
2609 machine=arm opsys=gnu-linux
2610 ;;
2611
2612 ## Apple Darwin / Mac OS X
2613 *-apple-darwin* )
2614 case "${canonical}" in
2615 i[3456]86-* ) machine=intel386 ;;
2616 powerpc-* ) machine=macppc ;;
2617 * ) unported=yes ;;
2618 esac
2619 opsys=darwin
2620 # Define CPP as follows to make autoconf work correctly.
2621 CPP="${CC-cc} -E -no-cpp-precomp"
2622 # Use fink packages if available.
2623 if test -d /sw/include && test -d /sw/lib; then
2624 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2625 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2626 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2627 fi
2628 ;;
2629
2630 ## HP 9000 series 700 and 800, running HP/UX
2631 hppa*-hp-hpux10.2* )
2632 machine=hp800 opsys=hpux10-20
2633 ;;
2634 hppa*-hp-hpux1[1-9]* )
2635 machine=hp800 opsys=hpux11
2636 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2637 ;;
2638
2639 hppa*-*-linux-gnu* )
2640 machine=hp800 opsys=gnu-linux
2641 ;;
2642
2643 ## IBM machines
2644 s390-*-linux-gnu* )
2645 machine=ibms390 opsys=gnu-linux
2646 ;;
2647 s390x-*-linux-gnu* )
2648 machine=ibms390x opsys=gnu-linux
2649 ;;
2650 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2651 machine=ibmrs6000 opsys=aix4-2
2652 ;;
2653 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2654 machine=ibmrs6000 opsys=aix4-2
2655 ;;
2656 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2657 machine=ibmrs6000 opsys=aix4-2
2658 ;;
2659 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2660 machine=ibmrs6000 opsys=aix4-2
2661 ;;
2662
2663 ## Macintosh PowerPC
2664 powerpc*-*-linux-gnu* )
2665 machine=macppc opsys=gnu-linux
2666 ;;
2667
2668 ## Silicon Graphics machines
2669 ## Iris 4D
2670 mips-sgi-irix6.5 )
2671 machine=iris4d opsys=irix6-5
2672 # Without defining _LANGUAGE_C, things get masked out in the headers
2673 # so that, for instance, grepping for `free' in stdlib.h fails and
2674 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2675 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2676 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2677 ;;
2678
2679 ## Suns
2680 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2681 machine=sparc opsys=gnu-linux
2682 ;;
2683
2684 *-sun-solaris* \
2685 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2686 | x86_64-*-solaris2* | x86_64-*-sunos5* \
2687 | powerpc*-*-solaris2* | rs6000-*-solaris2*)
2688 case "${canonical}" in
2689 i[3456]86-*-* ) machine=intel386 ;;
2690 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2691 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2692 sparc* ) machine=sparc ;;
2693 * ) unported=yes ;;
2694 esac
2695 case "${canonical}" in
2696 *-sunos5.3* | *-solaris2.3* )
2697 opsys=sol2-3
2698 NON_GNU_CPP=/usr/ccs/lib/cpp
2699 ;;
2700 *-sunos5.4* | *-solaris2.4* )
2701 opsys=sol2-4
2702 NON_GNU_CPP=/usr/ccs/lib/cpp
2703 RANLIB="ar -ts"
2704 ;;
2705 *-sunos5.5* | *-solaris2.5* )
2706 opsys=sol2-5
2707 NON_GNU_CPP=/usr/ccs/lib/cpp
2708 RANLIB="ar -ts"
2709 ;;
2710 *-sunos5.6* | *-solaris2.6* )
2711 opsys=sol2-6
2712 NON_GNU_CPP=/usr/ccs/lib/cpp
2713 RANLIB="ar -ts"
2714 ;;
2715 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2716 opsys=sol2-6
2717 emacs_check_sunpro_c=yes
2718 NON_GNU_CPP=/usr/ccs/lib/cpp
2719 ;;
2720 *-sunos5* | *-solaris* )
2721 opsys=sol2-10
2722 emacs_check_sunpro_c=yes
2723 NON_GNU_CPP=/usr/ccs/lib/cpp
2724 ;;
2725 esac
2726 ## Watch out for a compiler that we know will not work.
2727 case "${canonical}" in
2728 *-solaris* | *-sunos5* )
2729 if [ "x$CC" = x/usr/ucb/cc ]; then
2730 ## /usr/ucb/cc doesn't work;
2731 ## we should find some other compiler that does work.
2732 unset CC
2733 fi
2734 ;;
2735 *) ;;
2736 esac
2737 ;;
2738
2739 ## Vaxen.
2740 vax-dec-* )
2741 machine=vax
2742 case "${canonical}" in
2743 *-vms* ) opsys=vms ;;
2744 * ) unported=yes
2745 esac
2746 ;;
2747
2748 ## IA-64
2749 ia64*-*-linux* )
2750 machine=ia64 opsys=gnu-linux
2751 ;;
2752
2753 ## Intel 386 machines where we don't care about the manufacturer
2754 i[3456]86-*-* )
2755 machine=intel386
2756 case "${canonical}" in
2757 *-cygwin ) opsys=cygwin ;;
2758 *-darwin* ) opsys=darwin
2759 CPP="${CC-cc} -E -no-cpp-precomp"
2760 ;;
2761 *-linux-gnu* ) opsys=gnu-linux ;;
2762 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2763 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2764 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2765 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2766 esac
2767 ;;
2768
2769 ## m68k Linux-based GNU system
2770 m68k-*-linux-gnu* )
2771 machine=m68k opsys=gnu-linux
2772 ;;
2773
2774 ## Mips Linux-based GNU system
2775 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2776 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2777 machine=mips opsys=gnu-linux
2778 ;;
2779
2780 ## AMD x86-64 Linux-based GNU system
2781 x86_64-*-linux-gnu* )
2782 machine=amdx86-64 opsys=gnu-linux
2783 ;;
2784
2785 ## Tensilica Xtensa Linux-based GNU system
2786 xtensa*-*-linux-gnu* )
2787 machine=xtensa opsys=gnu-linux
2788 ;;
2789
2790 ## SuperH Linux-based GNU system
2791 sh[34]*-*-linux-gnu* )
2792 machine=sh3 opsys=gnu-linux
2793 ;;
2794
2795 * )
2796 unported=yes
2797 ;;
2798 esac
2799
2800 ### If the code above didn't choose an operating system, just choose
2801 ### an operating system based on the configuration name. You really
2802 ### only want to use this when you have no idea what the right
2803 ### operating system is; if you know what operating systems a machine
2804 ### runs, it's cleaner to make it explicit in the case statement
2805 ### above.
2806 if test x"${opsys}" = x; then
2807 case "${canonical}" in
2808 *-gnu* ) opsys=gnu ;;
2809 *-sysv4.2uw* ) opsys=unixware ;;
2810 *-sysv5uw* ) opsys=unixware ;;
2811 *-sysv5OpenUNIX* ) opsys=unixware ;;
2812 *-sysv4.1* | *-sysvr4.1* )
2813 NON_GNU_CPP=/usr/lib/cpp
2814 opsys=usg5-4 ;;
2815 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2816 if [ x$NON_GNU_CPP = x ]; then
2817 if [ -f /usr/ccs/lib/cpp ]; then
2818 NON_GNU_CPP=/usr/ccs/lib/cpp
2819 else
2820 NON_GNU_CPP=/lib/cpp
2821 fi
2822 fi
2823 opsys=usg5-4-2 ;;
2824 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2825 * )
2826 unported=yes
2827 ;;
2828 esac
2829 fi
2830
2831
2832
2833 if test $unported = yes; then
2834 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2835 Check \`etc/MACHINES' for recognized configuration names." >&5
2836 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2837 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2838 { (exit 1); exit 1; }; }
2839 fi
2840
2841 machfile="m/${machine}.h"
2842 opsysfile="s/${opsys}.h"
2843
2844
2845 #### Choose a compiler.
2846 test -n "$CC" && cc_specified=yes
2847
2848 # Save the value of CFLAGS that the user specified.
2849 SPECIFIED_CFLAGS="$CFLAGS"
2850
2851 ac_ext=c
2852 ac_cpp='$CPP $CPPFLAGS'
2853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2856 if test -n "$ac_tool_prefix"; then
2857 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2858 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2859 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2860 $as_echo_n "checking for $ac_word... " >&6; }
2861 if test "${ac_cv_prog_CC+set}" = set; then
2862 $as_echo_n "(cached) " >&6
2863 else
2864 if test -n "$CC"; then
2865 ac_cv_prog_CC="$CC" # Let the user override the test.
2866 else
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 for as_dir in $PATH
2869 do
2870 IFS=$as_save_IFS
2871 test -z "$as_dir" && as_dir=.
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2874 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2875 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 break 2
2877 fi
2878 done
2879 done
2880 IFS=$as_save_IFS
2881
2882 fi
2883 fi
2884 CC=$ac_cv_prog_CC
2885 if test -n "$CC"; then
2886 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2887 $as_echo "$CC" >&6; }
2888 else
2889 { $as_echo "$as_me:$LINENO: result: no" >&5
2890 $as_echo "no" >&6; }
2891 fi
2892
2893
2894 fi
2895 if test -z "$ac_cv_prog_CC"; then
2896 ac_ct_CC=$CC
2897 # Extract the first word of "gcc", so it can be a program name with args.
2898 set dummy gcc; ac_word=$2
2899 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2902 $as_echo_n "(cached) " >&6
2903 else
2904 if test -n "$ac_ct_CC"; then
2905 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2906 else
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 for as_dir in $PATH
2909 do
2910 IFS=$as_save_IFS
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2914 ac_cv_prog_ac_ct_CC="gcc"
2915 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 break 2
2917 fi
2918 done
2919 done
2920 IFS=$as_save_IFS
2921
2922 fi
2923 fi
2924 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2925 if test -n "$ac_ct_CC"; then
2926 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2927 $as_echo "$ac_ct_CC" >&6; }
2928 else
2929 { $as_echo "$as_me:$LINENO: result: no" >&5
2930 $as_echo "no" >&6; }
2931 fi
2932
2933 if test "x$ac_ct_CC" = x; then
2934 CC=""
2935 else
2936 case $cross_compiling:$ac_tool_warned in
2937 yes:)
2938 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2940 ac_tool_warned=yes ;;
2941 esac
2942 CC=$ac_ct_CC
2943 fi
2944 else
2945 CC="$ac_cv_prog_CC"
2946 fi
2947
2948 if test -z "$CC"; then
2949 if test -n "$ac_tool_prefix"; then
2950 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2951 set dummy ${ac_tool_prefix}cc; ac_word=$2
2952 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if test "${ac_cv_prog_CC+set}" = set; then
2955 $as_echo_n "(cached) " >&6
2956 else
2957 if test -n "$CC"; then
2958 ac_cv_prog_CC="$CC" # Let the user override the test.
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2962 do
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2967 ac_cv_prog_CC="${ac_tool_prefix}cc"
2968 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 break 2
2970 fi
2971 done
2972 done
2973 IFS=$as_save_IFS
2974
2975 fi
2976 fi
2977 CC=$ac_cv_prog_CC
2978 if test -n "$CC"; then
2979 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2980 $as_echo "$CC" >&6; }
2981 else
2982 { $as_echo "$as_me:$LINENO: result: no" >&5
2983 $as_echo "no" >&6; }
2984 fi
2985
2986
2987 fi
2988 fi
2989 if test -z "$CC"; then
2990 # Extract the first word of "cc", so it can be a program name with args.
2991 set dummy cc; ac_word=$2
2992 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2993 $as_echo_n "checking for $ac_word... " >&6; }
2994 if test "${ac_cv_prog_CC+set}" = set; then
2995 $as_echo_n "(cached) " >&6
2996 else
2997 if test -n "$CC"; then
2998 ac_cv_prog_CC="$CC" # Let the user override the test.
2999 else
3000 ac_prog_rejected=no
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002 for as_dir in $PATH
3003 do
3004 IFS=$as_save_IFS
3005 test -z "$as_dir" && as_dir=.
3006 for ac_exec_ext in '' $ac_executable_extensions; do
3007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3008 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3009 ac_prog_rejected=yes
3010 continue
3011 fi
3012 ac_cv_prog_CC="cc"
3013 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 break 2
3015 fi
3016 done
3017 done
3018 IFS=$as_save_IFS
3019
3020 if test $ac_prog_rejected = yes; then
3021 # We found a bogon in the path, so make sure we never use it.
3022 set dummy $ac_cv_prog_CC
3023 shift
3024 if test $# != 0; then
3025 # We chose a different compiler from the bogus one.
3026 # However, it has the same basename, so the bogon will be chosen
3027 # first if we set CC to just the basename; use the full file name.
3028 shift
3029 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3030 fi
3031 fi
3032 fi
3033 fi
3034 CC=$ac_cv_prog_CC
3035 if test -n "$CC"; then
3036 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3037 $as_echo "$CC" >&6; }
3038 else
3039 { $as_echo "$as_me:$LINENO: result: no" >&5
3040 $as_echo "no" >&6; }
3041 fi
3042
3043
3044 fi
3045 if test -z "$CC"; then
3046 if test -n "$ac_tool_prefix"; then
3047 for ac_prog in cl.exe
3048 do
3049 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3050 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3051 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if test "${ac_cv_prog_CC+set}" = set; then
3054 $as_echo_n "(cached) " >&6
3055 else
3056 if test -n "$CC"; then
3057 ac_cv_prog_CC="$CC" # Let the user override the test.
3058 else
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH
3061 do
3062 IFS=$as_save_IFS
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3067 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 break 2
3069 fi
3070 done
3071 done
3072 IFS=$as_save_IFS
3073
3074 fi
3075 fi
3076 CC=$ac_cv_prog_CC
3077 if test -n "$CC"; then
3078 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3079 $as_echo "$CC" >&6; }
3080 else
3081 { $as_echo "$as_me:$LINENO: result: no" >&5
3082 $as_echo "no" >&6; }
3083 fi
3084
3085
3086 test -n "$CC" && break
3087 done
3088 fi
3089 if test -z "$CC"; then
3090 ac_ct_CC=$CC
3091 for ac_prog in cl.exe
3092 do
3093 # Extract the first word of "$ac_prog", so it can be a program name with args.
3094 set dummy $ac_prog; ac_word=$2
3095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3098 $as_echo_n "(cached) " >&6
3099 else
3100 if test -n "$ac_ct_CC"; then
3101 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3102 else
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $PATH
3105 do
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3110 ac_cv_prog_ac_ct_CC="$ac_prog"
3111 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 break 2
3113 fi
3114 done
3115 done
3116 IFS=$as_save_IFS
3117
3118 fi
3119 fi
3120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3121 if test -n "$ac_ct_CC"; then
3122 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3123 $as_echo "$ac_ct_CC" >&6; }
3124 else
3125 { $as_echo "$as_me:$LINENO: result: no" >&5
3126 $as_echo "no" >&6; }
3127 fi
3128
3129
3130 test -n "$ac_ct_CC" && break
3131 done
3132
3133 if test "x$ac_ct_CC" = x; then
3134 CC=""
3135 else
3136 case $cross_compiling:$ac_tool_warned in
3137 yes:)
3138 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3140 ac_tool_warned=yes ;;
3141 esac
3142 CC=$ac_ct_CC
3143 fi
3144 fi
3145
3146 fi
3147
3148
3149 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3151 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3152 See \`config.log' for more details." >&5
3153 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3154 See \`config.log' for more details." >&2;}
3155 { (exit 1); exit 1; }; }; }
3156
3157 # Provide some information about the compiler.
3158 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3159 set X $ac_compile
3160 ac_compiler=$2
3161 { (ac_try="$ac_compiler --version >&5"
3162 case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165 esac
3166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3167 $as_echo "$ac_try_echo") >&5
3168 (eval "$ac_compiler --version >&5") 2>&5
3169 ac_status=$?
3170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }
3172 { (ac_try="$ac_compiler -v >&5"
3173 case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176 esac
3177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3178 $as_echo "$ac_try_echo") >&5
3179 (eval "$ac_compiler -v >&5") 2>&5
3180 ac_status=$?
3181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }
3183 { (ac_try="$ac_compiler -V >&5"
3184 case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
3188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3189 $as_echo "$ac_try_echo") >&5
3190 (eval "$ac_compiler -V >&5") 2>&5
3191 ac_status=$?
3192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }
3194
3195 cat >conftest.$ac_ext <<_ACEOF
3196 /* confdefs.h. */
3197 _ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h. */
3201
3202 int
3203 main ()
3204 {
3205
3206 ;
3207 return 0;
3208 }
3209 _ACEOF
3210 ac_clean_files_save=$ac_clean_files
3211 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3212 # Try to create an executable without -o first, disregard a.out.
3213 # It will help us diagnose broken compilers, and finding out an intuition
3214 # of exeext.
3215 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3216 $as_echo_n "checking for C compiler default output file name... " >&6; }
3217 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3218
3219 # The possible output files:
3220 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3221
3222 ac_rmfiles=
3223 for ac_file in $ac_files
3224 do
3225 case $ac_file in
3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3227 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3228 esac
3229 done
3230 rm -f $ac_rmfiles
3231
3232 if { (ac_try="$ac_link_default"
3233 case "(($ac_try" in
3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3236 esac
3237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3238 $as_echo "$ac_try_echo") >&5
3239 (eval "$ac_link_default") 2>&5
3240 ac_status=$?
3241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; then
3243 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3244 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3245 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3246 # so that the user can short-circuit this test for compilers unknown to
3247 # Autoconf.
3248 for ac_file in $ac_files ''
3249 do
3250 test -f "$ac_file" || continue
3251 case $ac_file in
3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3253 ;;
3254 [ab].out )
3255 # We found the default executable, but exeext='' is most
3256 # certainly right.
3257 break;;
3258 *.* )
3259 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3260 then :; else
3261 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3262 fi
3263 # We set ac_cv_exeext here because the later test for it is not
3264 # safe: cross compilers may not add the suffix if given an `-o'
3265 # argument, so we may need to know it at that point already.
3266 # Even if this section looks crufty: it has the advantage of
3267 # actually working.
3268 break;;
3269 * )
3270 break;;
3271 esac
3272 done
3273 test "$ac_cv_exeext" = no && ac_cv_exeext=
3274
3275 else
3276 ac_file=''
3277 fi
3278
3279 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3280 $as_echo "$ac_file" >&6; }
3281 if test -z "$ac_file"; then
3282 $as_echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3284
3285 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3288 See \`config.log' for more details." >&5
3289 $as_echo "$as_me: error: C compiler cannot create executables
3290 See \`config.log' for more details." >&2;}
3291 { (exit 77); exit 77; }; }; }
3292 fi
3293
3294 ac_exeext=$ac_cv_exeext
3295
3296 # Check that the compiler produces executables we can run. If not, either
3297 # the compiler is broken, or we cross compile.
3298 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3299 $as_echo_n "checking whether the C compiler works... " >&6; }
3300 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3301 # If not cross compiling, check that we can run a simple program.
3302 if test "$cross_compiling" != yes; then
3303 if { ac_try='./$ac_file'
3304 { (case "(($ac_try" in
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3307 esac
3308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3309 $as_echo "$ac_try_echo") >&5
3310 (eval "$ac_try") 2>&5
3311 ac_status=$?
3312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; }; then
3314 cross_compiling=no
3315 else
3316 if test "$cross_compiling" = maybe; then
3317 cross_compiling=yes
3318 else
3319 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3322 If you meant to cross compile, use \`--host'.
3323 See \`config.log' for more details." >&5
3324 $as_echo "$as_me: error: cannot run C compiled programs.
3325 If you meant to cross compile, use \`--host'.
3326 See \`config.log' for more details." >&2;}
3327 { (exit 1); exit 1; }; }; }
3328 fi
3329 fi
3330 fi
3331 { $as_echo "$as_me:$LINENO: result: yes" >&5
3332 $as_echo "yes" >&6; }
3333
3334 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3335 ac_clean_files=$ac_clean_files_save
3336 # Check that the compiler produces executables we can run. If not, either
3337 # the compiler is broken, or we cross compile.
3338 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3339 $as_echo_n "checking whether we are cross compiling... " >&6; }
3340 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3341 $as_echo "$cross_compiling" >&6; }
3342
3343 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3344 $as_echo_n "checking for suffix of executables... " >&6; }
3345 if { (ac_try="$ac_link"
3346 case "(($ac_try" in
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3349 esac
3350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3351 $as_echo "$ac_try_echo") >&5
3352 (eval "$ac_link") 2>&5
3353 ac_status=$?
3354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; then
3356 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3357 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3358 # work properly (i.e., refer to `conftest.exe'), while it won't with
3359 # `rm'.
3360 for ac_file in conftest.exe conftest conftest.*; do
3361 test -f "$ac_file" || continue
3362 case $ac_file in
3363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3364 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3365 break;;
3366 * ) break;;
3367 esac
3368 done
3369 else
3370 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3373 See \`config.log' for more details." >&5
3374 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3375 See \`config.log' for more details." >&2;}
3376 { (exit 1); exit 1; }; }; }
3377 fi
3378
3379 rm -f conftest$ac_cv_exeext
3380 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3381 $as_echo "$ac_cv_exeext" >&6; }
3382
3383 rm -f conftest.$ac_ext
3384 EXEEXT=$ac_cv_exeext
3385 ac_exeext=$EXEEXT
3386 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3387 $as_echo_n "checking for suffix of object files... " >&6; }
3388 if test "${ac_cv_objext+set}" = set; then
3389 $as_echo_n "(cached) " >&6
3390 else
3391 cat >conftest.$ac_ext <<_ACEOF
3392 /* confdefs.h. */
3393 _ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3397
3398 int
3399 main ()
3400 {
3401
3402 ;
3403 return 0;
3404 }
3405 _ACEOF
3406 rm -f conftest.o conftest.obj
3407 if { (ac_try="$ac_compile"
3408 case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411 esac
3412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3413 $as_echo "$ac_try_echo") >&5
3414 (eval "$ac_compile") 2>&5
3415 ac_status=$?
3416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); }; then
3418 for ac_file in conftest.o conftest.obj conftest.*; do
3419 test -f "$ac_file" || continue;
3420 case $ac_file in
3421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3422 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3423 break;;
3424 esac
3425 done
3426 else
3427 $as_echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3433 See \`config.log' for more details." >&5
3434 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3435 See \`config.log' for more details." >&2;}
3436 { (exit 1); exit 1; }; }; }
3437 fi
3438
3439 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3440 fi
3441 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3442 $as_echo "$ac_cv_objext" >&6; }
3443 OBJEXT=$ac_cv_objext
3444 ac_objext=$OBJEXT
3445 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3446 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3447 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3448 $as_echo_n "(cached) " >&6
3449 else
3450 cat >conftest.$ac_ext <<_ACEOF
3451 /* confdefs.h. */
3452 _ACEOF
3453 cat confdefs.h >>conftest.$ac_ext
3454 cat >>conftest.$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3456
3457 int
3458 main ()
3459 {
3460 #ifndef __GNUC__
3461 choke me
3462 #endif
3463
3464 ;
3465 return 0;
3466 }
3467 _ACEOF
3468 rm -f conftest.$ac_objext
3469 if { (ac_try="$ac_compile"
3470 case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3473 esac
3474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3475 $as_echo "$ac_try_echo") >&5
3476 (eval "$ac_compile") 2>conftest.er1
3477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } && {
3483 test -z "$ac_c_werror_flag" ||
3484 test ! -s conftest.err
3485 } && test -s conftest.$ac_objext; then
3486 ac_compiler_gnu=yes
3487 else
3488 $as_echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3490
3491 ac_compiler_gnu=no
3492 fi
3493
3494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3496
3497 fi
3498 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3499 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3500 if test $ac_compiler_gnu = yes; then
3501 GCC=yes
3502 else
3503 GCC=
3504 fi
3505 ac_test_CFLAGS=${CFLAGS+set}
3506 ac_save_CFLAGS=$CFLAGS
3507 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3508 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3509 if test "${ac_cv_prog_cc_g+set}" = set; then
3510 $as_echo_n "(cached) " >&6
3511 else
3512 ac_save_c_werror_flag=$ac_c_werror_flag
3513 ac_c_werror_flag=yes
3514 ac_cv_prog_cc_g=no
3515 CFLAGS="-g"
3516 cat >conftest.$ac_ext <<_ACEOF
3517 /* confdefs.h. */
3518 _ACEOF
3519 cat confdefs.h >>conftest.$ac_ext
3520 cat >>conftest.$ac_ext <<_ACEOF
3521 /* end confdefs.h. */
3522
3523 int
3524 main ()
3525 {
3526
3527 ;
3528 return 0;
3529 }
3530 _ACEOF
3531 rm -f conftest.$ac_objext
3532 if { (ac_try="$ac_compile"
3533 case "(($ac_try" in
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3536 esac
3537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3538 $as_echo "$ac_try_echo") >&5
3539 (eval "$ac_compile") 2>conftest.er1
3540 ac_status=$?
3541 grep -v '^ *+' conftest.er1 >conftest.err
3542 rm -f conftest.er1
3543 cat conftest.err >&5
3544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } && {
3546 test -z "$ac_c_werror_flag" ||
3547 test ! -s conftest.err
3548 } && test -s conftest.$ac_objext; then
3549 ac_cv_prog_cc_g=yes
3550 else
3551 $as_echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3553
3554 CFLAGS=""
3555 cat >conftest.$ac_ext <<_ACEOF
3556 /* confdefs.h. */
3557 _ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3561
3562 int
3563 main ()
3564 {
3565
3566 ;
3567 return 0;
3568 }
3569 _ACEOF
3570 rm -f conftest.$ac_objext
3571 if { (ac_try="$ac_compile"
3572 case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3575 esac
3576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3577 $as_echo "$ac_try_echo") >&5
3578 (eval "$ac_compile") 2>conftest.er1
3579 ac_status=$?
3580 grep -v '^ *+' conftest.er1 >conftest.err
3581 rm -f conftest.er1
3582 cat conftest.err >&5
3583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } && {
3585 test -z "$ac_c_werror_flag" ||
3586 test ! -s conftest.err
3587 } && test -s conftest.$ac_objext; then
3588 :
3589 else
3590 $as_echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3592
3593 ac_c_werror_flag=$ac_save_c_werror_flag
3594 CFLAGS="-g"
3595 cat >conftest.$ac_ext <<_ACEOF
3596 /* confdefs.h. */
3597 _ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3601
3602 int
3603 main ()
3604 {
3605
3606 ;
3607 return 0;
3608 }
3609 _ACEOF
3610 rm -f conftest.$ac_objext
3611 if { (ac_try="$ac_compile"
3612 case "(($ac_try" in
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3615 esac
3616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3617 $as_echo "$ac_try_echo") >&5
3618 (eval "$ac_compile") 2>conftest.er1
3619 ac_status=$?
3620 grep -v '^ *+' conftest.er1 >conftest.err
3621 rm -f conftest.er1
3622 cat conftest.err >&5
3623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } && {
3625 test -z "$ac_c_werror_flag" ||
3626 test ! -s conftest.err
3627 } && test -s conftest.$ac_objext; then
3628 ac_cv_prog_cc_g=yes
3629 else
3630 $as_echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3632
3633
3634 fi
3635
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637 fi
3638
3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640 fi
3641
3642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643 ac_c_werror_flag=$ac_save_c_werror_flag
3644 fi
3645 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3646 $as_echo "$ac_cv_prog_cc_g" >&6; }
3647 if test "$ac_test_CFLAGS" = set; then
3648 CFLAGS=$ac_save_CFLAGS
3649 elif test $ac_cv_prog_cc_g = yes; then
3650 if test "$GCC" = yes; then
3651 CFLAGS="-g -O2"
3652 else
3653 CFLAGS="-g"
3654 fi
3655 else
3656 if test "$GCC" = yes; then
3657 CFLAGS="-O2"
3658 else
3659 CFLAGS=
3660 fi
3661 fi
3662 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3663 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3664 if test "${ac_cv_prog_cc_c89+set}" = set; then
3665 $as_echo_n "(cached) " >&6
3666 else
3667 ac_cv_prog_cc_c89=no
3668 ac_save_CC=$CC
3669 cat >conftest.$ac_ext <<_ACEOF
3670 /* confdefs.h. */
3671 _ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h. */
3675 #include <stdarg.h>
3676 #include <stdio.h>
3677 #include <sys/types.h>
3678 #include <sys/stat.h>
3679 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3680 struct buf { int x; };
3681 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3682 static char *e (p, i)
3683 char **p;
3684 int i;
3685 {
3686 return p[i];
3687 }
3688 static char *f (char * (*g) (char **, int), char **p, ...)
3689 {
3690 char *s;
3691 va_list v;
3692 va_start (v,p);
3693 s = g (p, va_arg (v,int));
3694 va_end (v);
3695 return s;
3696 }
3697
3698 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3699 function prototypes and stuff, but not '\xHH' hex character constants.
3700 These don't provoke an error unfortunately, instead are silently treated
3701 as 'x'. The following induces an error, until -std is added to get
3702 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3703 array size at least. It's necessary to write '\x00'==0 to get something
3704 that's true only with -std. */
3705 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3706
3707 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3708 inside strings and character constants. */
3709 #define FOO(x) 'x'
3710 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3711
3712 int test (int i, double x);
3713 struct s1 {int (*f) (int a);};
3714 struct s2 {int (*f) (double a);};
3715 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3716 int argc;
3717 char **argv;
3718 int
3719 main ()
3720 {
3721 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3722 ;
3723 return 0;
3724 }
3725 _ACEOF
3726 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3727 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3728 do
3729 CC="$ac_save_CC $ac_arg"
3730 rm -f conftest.$ac_objext
3731 if { (ac_try="$ac_compile"
3732 case "(($ac_try" in
3733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3734 *) ac_try_echo=$ac_try;;
3735 esac
3736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3737 $as_echo "$ac_try_echo") >&5
3738 (eval "$ac_compile") 2>conftest.er1
3739 ac_status=$?
3740 grep -v '^ *+' conftest.er1 >conftest.err
3741 rm -f conftest.er1
3742 cat conftest.err >&5
3743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); } && {
3745 test -z "$ac_c_werror_flag" ||
3746 test ! -s conftest.err
3747 } && test -s conftest.$ac_objext; then
3748 ac_cv_prog_cc_c89=$ac_arg
3749 else
3750 $as_echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3752
3753
3754 fi
3755
3756 rm -f core conftest.err conftest.$ac_objext
3757 test "x$ac_cv_prog_cc_c89" != "xno" && break
3758 done
3759 rm -f conftest.$ac_ext
3760 CC=$ac_save_CC
3761
3762 fi
3763 # AC_CACHE_VAL
3764 case "x$ac_cv_prog_cc_c89" in
3765 x)
3766 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3767 $as_echo "none needed" >&6; } ;;
3768 xno)
3769 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3770 $as_echo "unsupported" >&6; } ;;
3771 *)
3772 CC="$CC $ac_cv_prog_cc_c89"
3773 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3774 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3775 esac
3776
3777
3778 ac_ext=c
3779 ac_cpp='$CPP $CPPFLAGS'
3780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3783
3784
3785 # On Suns, sometimes $CPP names a directory.
3786 if test -n "$CPP" && test -d "$CPP"; then
3787 CPP=
3788 fi
3789
3790 ## If not using gcc, and on Solaris, and no CPP specified, see if
3791 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3792 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3793 test x"$CPP" = x; then
3794 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3795 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3796
3797 if test "${emacs_cv_sunpro_c+set}" = set; then
3798 $as_echo_n "(cached) " >&6
3799 else
3800 cat >conftest.$ac_ext <<_ACEOF
3801 /* confdefs.h. */
3802 _ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h. */
3806
3807 int
3808 main ()
3809 {
3810 #ifndef __SUNPRO_C
3811 fail;
3812 #endif
3813
3814 ;
3815 return 0;
3816 }
3817 _ACEOF
3818 rm -f conftest.$ac_objext conftest$ac_exeext
3819 if { (ac_try="$ac_link"
3820 case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3823 esac
3824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3825 $as_echo "$ac_try_echo") >&5
3826 (eval "$ac_link") 2>conftest.er1
3827 ac_status=$?
3828 grep -v '^ *+' conftest.er1 >conftest.err
3829 rm -f conftest.er1
3830 cat conftest.err >&5
3831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } && {
3833 test -z "$ac_c_werror_flag" ||
3834 test ! -s conftest.err
3835 } && test -s conftest$ac_exeext && {
3836 test "$cross_compiling" = yes ||
3837 $as_test_x conftest$ac_exeext
3838 }; then
3839 emacs_cv_sunpro_c=yes
3840 else
3841 $as_echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3843
3844 emacs_cv_sunpro_c=no
3845 fi
3846
3847 rm -rf conftest.dSYM
3848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3849 conftest$ac_exeext conftest.$ac_ext
3850 fi
3851
3852 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3853 $as_echo "$emacs_cv_sunpro_c" >&6; }
3854
3855 if test x"$emacs_cv_sunpro_c" = xyes; then
3856 NON_GNU_CPP="$CC -E -Xs"
3857 fi
3858 fi
3859
3860 #### Some systems specify a CPP to use unless we are using GCC.
3861 #### Now that we know whether we are using GCC, we can decide whether
3862 #### to use that one.
3863 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3864 then
3865 CPP="$NON_GNU_CPP"
3866 fi
3867
3868 #### Some systems specify a CC to use unless we are using GCC.
3869 #### Now that we know whether we are using GCC, we can decide whether
3870 #### to use that one.
3871 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3872 test x$cc_specified != xyes
3873 then
3874 CC="$NON_GNU_CC"
3875 fi
3876
3877 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3878 then
3879 CC="$CC $GCC_TEST_OPTIONS"
3880 fi
3881
3882 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3883 then
3884 CC="$CC $NON_GCC_TEST_OPTIONS"
3885 fi
3886
3887 ac_ext=c
3888 ac_cpp='$CPP $CPPFLAGS'
3889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3893 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3894 # On Suns, sometimes $CPP names a directory.
3895 if test -n "$CPP" && test -d "$CPP"; then
3896 CPP=
3897 fi
3898 if test -z "$CPP"; then
3899 if test "${ac_cv_prog_CPP+set}" = set; then
3900 $as_echo_n "(cached) " >&6
3901 else
3902 # Double quotes because CPP needs to be expanded
3903 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3904 do
3905 ac_preproc_ok=false
3906 for ac_c_preproc_warn_flag in '' yes
3907 do
3908 # Use a header file that comes with gcc, so configuring glibc
3909 # with a fresh cross-compiler works.
3910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3911 # <limits.h> exists even on freestanding compilers.
3912 # On the NeXT, cc -E runs the code through the compiler's parser,
3913 # not just through cpp. "Syntax error" is here to catch this case.
3914 cat >conftest.$ac_ext <<_ACEOF
3915 /* confdefs.h. */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3920 #ifdef __STDC__
3921 # include <limits.h>
3922 #else
3923 # include <assert.h>
3924 #endif
3925 Syntax error
3926 _ACEOF
3927 if { (ac_try="$ac_cpp conftest.$ac_ext"
3928 case "(($ac_try" in
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3931 esac
3932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3933 $as_echo "$ac_try_echo") >&5
3934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3935 ac_status=$?
3936 grep -v '^ *+' conftest.er1 >conftest.err
3937 rm -f conftest.er1
3938 cat conftest.err >&5
3939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } >/dev/null && {
3941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3942 test ! -s conftest.err
3943 }; then
3944 :
3945 else
3946 $as_echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3948
3949 # Broken: fails on valid input.
3950 continue
3951 fi
3952
3953 rm -f conftest.err conftest.$ac_ext
3954
3955 # OK, works on sane cases. Now check whether nonexistent headers
3956 # can be detected and how.
3957 cat >conftest.$ac_ext <<_ACEOF
3958 /* confdefs.h. */
3959 _ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3963 #include <ac_nonexistent.h>
3964 _ACEOF
3965 if { (ac_try="$ac_cpp conftest.$ac_ext"
3966 case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3971 $as_echo "$ac_try_echo") >&5
3972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3973 ac_status=$?
3974 grep -v '^ *+' conftest.er1 >conftest.err
3975 rm -f conftest.er1
3976 cat conftest.err >&5
3977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } >/dev/null && {
3979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3980 test ! -s conftest.err
3981 }; then
3982 # Broken: success on invalid input.
3983 continue
3984 else
3985 $as_echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3987
3988 # Passes both tests.
3989 ac_preproc_ok=:
3990 break
3991 fi
3992
3993 rm -f conftest.err conftest.$ac_ext
3994
3995 done
3996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3997 rm -f conftest.err conftest.$ac_ext
3998 if $ac_preproc_ok; then
3999 break
4000 fi
4001
4002 done
4003 ac_cv_prog_CPP=$CPP
4004
4005 fi
4006 CPP=$ac_cv_prog_CPP
4007 else
4008 ac_cv_prog_CPP=$CPP
4009 fi
4010 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4011 $as_echo "$CPP" >&6; }
4012 ac_preproc_ok=false
4013 for ac_c_preproc_warn_flag in '' yes
4014 do
4015 # Use a header file that comes with gcc, so configuring glibc
4016 # with a fresh cross-compiler works.
4017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4018 # <limits.h> exists even on freestanding compilers.
4019 # On the NeXT, cc -E runs the code through the compiler's parser,
4020 # not just through cpp. "Syntax error" is here to catch this case.
4021 cat >conftest.$ac_ext <<_ACEOF
4022 /* confdefs.h. */
4023 _ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h. */
4027 #ifdef __STDC__
4028 # include <limits.h>
4029 #else
4030 # include <assert.h>
4031 #endif
4032 Syntax error
4033 _ACEOF
4034 if { (ac_try="$ac_cpp conftest.$ac_ext"
4035 case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038 esac
4039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4040 $as_echo "$ac_try_echo") >&5
4041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4042 ac_status=$?
4043 grep -v '^ *+' conftest.er1 >conftest.err
4044 rm -f conftest.er1
4045 cat conftest.err >&5
4046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } >/dev/null && {
4048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4049 test ! -s conftest.err
4050 }; then
4051 :
4052 else
4053 $as_echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4055
4056 # Broken: fails on valid input.
4057 continue
4058 fi
4059
4060 rm -f conftest.err conftest.$ac_ext
4061
4062 # OK, works on sane cases. Now check whether nonexistent headers
4063 # can be detected and how.
4064 cat >conftest.$ac_ext <<_ACEOF
4065 /* confdefs.h. */
4066 _ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4070 #include <ac_nonexistent.h>
4071 _ACEOF
4072 if { (ac_try="$ac_cpp conftest.$ac_ext"
4073 case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4076 esac
4077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4078 $as_echo "$ac_try_echo") >&5
4079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4080 ac_status=$?
4081 grep -v '^ *+' conftest.er1 >conftest.err
4082 rm -f conftest.er1
4083 cat conftest.err >&5
4084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } >/dev/null && {
4086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4087 test ! -s conftest.err
4088 }; then
4089 # Broken: success on invalid input.
4090 continue
4091 else
4092 $as_echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4094
4095 # Passes both tests.
4096 ac_preproc_ok=:
4097 break
4098 fi
4099
4100 rm -f conftest.err conftest.$ac_ext
4101
4102 done
4103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4104 rm -f conftest.err conftest.$ac_ext
4105 if $ac_preproc_ok; then
4106 :
4107 else
4108 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4110 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4111 See \`config.log' for more details." >&5
4112 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4113 See \`config.log' for more details." >&2;}
4114 { (exit 1); exit 1; }; }; }
4115 fi
4116
4117 ac_ext=c
4118 ac_cpp='$CPP $CPPFLAGS'
4119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4122
4123
4124 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4125 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4126 if test "${ac_cv_path_GREP+set}" = set; then
4127 $as_echo_n "(cached) " >&6
4128 else
4129 if test -z "$GREP"; then
4130 ac_path_GREP_found=false
4131 # Loop through the user's path and test for each of PROGNAME-LIST
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4134 do
4135 IFS=$as_save_IFS
4136 test -z "$as_dir" && as_dir=.
4137 for ac_prog in grep ggrep; do
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4140 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4141 # Check for GNU ac_path_GREP and select it if it is found.
4142 # Check for GNU $ac_path_GREP
4143 case `"$ac_path_GREP" --version 2>&1` in
4144 *GNU*)
4145 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4146 *)
4147 ac_count=0
4148 $as_echo_n 0123456789 >"conftest.in"
4149 while :
4150 do
4151 cat "conftest.in" "conftest.in" >"conftest.tmp"
4152 mv "conftest.tmp" "conftest.in"
4153 cp "conftest.in" "conftest.nl"
4154 $as_echo 'GREP' >> "conftest.nl"
4155 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4156 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4157 ac_count=`expr $ac_count + 1`
4158 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4159 # Best one so far, save it but keep looking for a better one
4160 ac_cv_path_GREP="$ac_path_GREP"
4161 ac_path_GREP_max=$ac_count
4162 fi
4163 # 10*(2^10) chars as input seems more than enough
4164 test $ac_count -gt 10 && break
4165 done
4166 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4167 esac
4168
4169 $ac_path_GREP_found && break 3
4170 done
4171 done
4172 done
4173 IFS=$as_save_IFS
4174 if test -z "$ac_cv_path_GREP"; then
4175 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4176 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4177 { (exit 1); exit 1; }; }
4178 fi
4179 else
4180 ac_cv_path_GREP=$GREP
4181 fi
4182
4183 fi
4184 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4185 $as_echo "$ac_cv_path_GREP" >&6; }
4186 GREP="$ac_cv_path_GREP"
4187
4188
4189 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4190 $as_echo_n "checking for egrep... " >&6; }
4191 if test "${ac_cv_path_EGREP+set}" = set; then
4192 $as_echo_n "(cached) " >&6
4193 else
4194 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4195 then ac_cv_path_EGREP="$GREP -E"
4196 else
4197 if test -z "$EGREP"; then
4198 ac_path_EGREP_found=false
4199 # Loop through the user's path and test for each of PROGNAME-LIST
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4202 do
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
4205 for ac_prog in egrep; do
4206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4208 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4209 # Check for GNU ac_path_EGREP and select it if it is found.
4210 # Check for GNU $ac_path_EGREP
4211 case `"$ac_path_EGREP" --version 2>&1` in
4212 *GNU*)
4213 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4214 *)
4215 ac_count=0
4216 $as_echo_n 0123456789 >"conftest.in"
4217 while :
4218 do
4219 cat "conftest.in" "conftest.in" >"conftest.tmp"
4220 mv "conftest.tmp" "conftest.in"
4221 cp "conftest.in" "conftest.nl"
4222 $as_echo 'EGREP' >> "conftest.nl"
4223 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4224 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4225 ac_count=`expr $ac_count + 1`
4226 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4227 # Best one so far, save it but keep looking for a better one
4228 ac_cv_path_EGREP="$ac_path_EGREP"
4229 ac_path_EGREP_max=$ac_count
4230 fi
4231 # 10*(2^10) chars as input seems more than enough
4232 test $ac_count -gt 10 && break
4233 done
4234 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4235 esac
4236
4237 $ac_path_EGREP_found && break 3
4238 done
4239 done
4240 done
4241 IFS=$as_save_IFS
4242 if test -z "$ac_cv_path_EGREP"; then
4243 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4244 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4245 { (exit 1); exit 1; }; }
4246 fi
4247 else
4248 ac_cv_path_EGREP=$EGREP
4249 fi
4250
4251 fi
4252 fi
4253 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4254 $as_echo "$ac_cv_path_EGREP" >&6; }
4255 EGREP="$ac_cv_path_EGREP"
4256
4257
4258 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4259 $as_echo_n "checking for ANSI C header files... " >&6; }
4260 if test "${ac_cv_header_stdc+set}" = set; then
4261 $as_echo_n "(cached) " >&6
4262 else
4263 cat >conftest.$ac_ext <<_ACEOF
4264 /* confdefs.h. */
4265 _ACEOF
4266 cat confdefs.h >>conftest.$ac_ext
4267 cat >>conftest.$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4269 #include <stdlib.h>
4270 #include <stdarg.h>
4271 #include <string.h>
4272 #include <float.h>
4273
4274 int
4275 main ()
4276 {
4277
4278 ;
4279 return 0;
4280 }
4281 _ACEOF
4282 rm -f conftest.$ac_objext
4283 if { (ac_try="$ac_compile"
4284 case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4287 esac
4288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4289 $as_echo "$ac_try_echo") >&5
4290 (eval "$ac_compile") 2>conftest.er1
4291 ac_status=$?
4292 grep -v '^ *+' conftest.er1 >conftest.err
4293 rm -f conftest.er1
4294 cat conftest.err >&5
4295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } && {
4297 test -z "$ac_c_werror_flag" ||
4298 test ! -s conftest.err
4299 } && test -s conftest.$ac_objext; then
4300 ac_cv_header_stdc=yes
4301 else
4302 $as_echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4304
4305 ac_cv_header_stdc=no
4306 fi
4307
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309
4310 if test $ac_cv_header_stdc = yes; then
4311 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4312 cat >conftest.$ac_ext <<_ACEOF
4313 /* confdefs.h. */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4318 #include <string.h>
4319
4320 _ACEOF
4321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4322 $EGREP "memchr" >/dev/null 2>&1; then
4323 :
4324 else
4325 ac_cv_header_stdc=no
4326 fi
4327 rm -f conftest*
4328
4329 fi
4330
4331 if test $ac_cv_header_stdc = yes; then
4332 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4333 cat >conftest.$ac_ext <<_ACEOF
4334 /* confdefs.h. */
4335 _ACEOF
4336 cat confdefs.h >>conftest.$ac_ext
4337 cat >>conftest.$ac_ext <<_ACEOF
4338 /* end confdefs.h. */
4339 #include <stdlib.h>
4340
4341 _ACEOF
4342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4343 $EGREP "free" >/dev/null 2>&1; then
4344 :
4345 else
4346 ac_cv_header_stdc=no
4347 fi
4348 rm -f conftest*
4349
4350 fi
4351
4352 if test $ac_cv_header_stdc = yes; then
4353 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4354 if test "$cross_compiling" = yes; then
4355 :
4356 else
4357 cat >conftest.$ac_ext <<_ACEOF
4358 /* confdefs.h. */
4359 _ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 #include <ctype.h>
4364 #include <stdlib.h>
4365 #if ((' ' & 0x0FF) == 0x020)
4366 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4367 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4368 #else
4369 # define ISLOWER(c) \
4370 (('a' <= (c) && (c) <= 'i') \
4371 || ('j' <= (c) && (c) <= 'r') \
4372 || ('s' <= (c) && (c) <= 'z'))
4373 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4374 #endif
4375
4376 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4377 int
4378 main ()
4379 {
4380 int i;
4381 for (i = 0; i < 256; i++)
4382 if (XOR (islower (i), ISLOWER (i))
4383 || toupper (i) != TOUPPER (i))
4384 return 2;
4385 return 0;
4386 }
4387 _ACEOF
4388 rm -f conftest$ac_exeext
4389 if { (ac_try="$ac_link"
4390 case "(($ac_try" in
4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392 *) ac_try_echo=$ac_try;;
4393 esac
4394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4395 $as_echo "$ac_try_echo") >&5
4396 (eval "$ac_link") 2>&5
4397 ac_status=$?
4398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4400 { (case "(($ac_try" in
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4403 esac
4404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4405 $as_echo "$ac_try_echo") >&5
4406 (eval "$ac_try") 2>&5
4407 ac_status=$?
4408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; }; then
4410 :
4411 else
4412 $as_echo "$as_me: program exited with status $ac_status" >&5
4413 $as_echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4415
4416 ( exit $ac_status )
4417 ac_cv_header_stdc=no
4418 fi
4419 rm -rf conftest.dSYM
4420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4421 fi
4422
4423
4424 fi
4425 fi
4426 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4427 $as_echo "$ac_cv_header_stdc" >&6; }
4428 if test $ac_cv_header_stdc = yes; then
4429
4430 cat >>confdefs.h <<\_ACEOF
4431 #define STDC_HEADERS 1
4432 _ACEOF
4433
4434 fi
4435
4436 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4447 inttypes.h stdint.h unistd.h
4448 do
4449 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4450 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4451 $as_echo_n "checking for $ac_header... " >&6; }
4452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4453 $as_echo_n "(cached) " >&6
4454 else
4455 cat >conftest.$ac_ext <<_ACEOF
4456 /* confdefs.h. */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4461 $ac_includes_default
4462
4463 #include <$ac_header>
4464 _ACEOF
4465 rm -f conftest.$ac_objext
4466 if { (ac_try="$ac_compile"
4467 case "(($ac_try" in
4468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4470 esac
4471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4472 $as_echo "$ac_try_echo") >&5
4473 (eval "$ac_compile") 2>conftest.er1
4474 ac_status=$?
4475 grep -v '^ *+' conftest.er1 >conftest.err
4476 rm -f conftest.er1
4477 cat conftest.err >&5
4478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } && {
4480 test -z "$ac_c_werror_flag" ||
4481 test ! -s conftest.err
4482 } && test -s conftest.$ac_objext; then
4483 eval "$as_ac_Header=yes"
4484 else
4485 $as_echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4487
4488 eval "$as_ac_Header=no"
4489 fi
4490
4491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4492 fi
4493 ac_res=`eval 'as_val=${'$as_ac_Header'}
4494 $as_echo "$as_val"'`
4495 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4496 $as_echo "$ac_res" >&6; }
4497 as_val=`eval 'as_val=${'$as_ac_Header'}
4498 $as_echo "$as_val"'`
4499 if test "x$as_val" = x""yes; then
4500 cat >>confdefs.h <<_ACEOF
4501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4502 _ACEOF
4503
4504 fi
4505
4506 done
4507
4508
4509
4510 if test "${ac_cv_header_minix_config_h+set}" = set; then
4511 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4512 $as_echo_n "checking for minix/config.h... " >&6; }
4513 if test "${ac_cv_header_minix_config_h+set}" = set; then
4514 $as_echo_n "(cached) " >&6
4515 fi
4516 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4517 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4518 else
4519 # Is the header compilable?
4520 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4521 $as_echo_n "checking minix/config.h usability... " >&6; }
4522 cat >conftest.$ac_ext <<_ACEOF
4523 /* confdefs.h. */
4524 _ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4528 $ac_includes_default
4529 #include <minix/config.h>
4530 _ACEOF
4531 rm -f conftest.$ac_objext
4532 if { (ac_try="$ac_compile"
4533 case "(($ac_try" in
4534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535 *) ac_try_echo=$ac_try;;
4536 esac
4537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4538 $as_echo "$ac_try_echo") >&5
4539 (eval "$ac_compile") 2>conftest.er1
4540 ac_status=$?
4541 grep -v '^ *+' conftest.er1 >conftest.err
4542 rm -f conftest.er1
4543 cat conftest.err >&5
4544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } && {
4546 test -z "$ac_c_werror_flag" ||
4547 test ! -s conftest.err
4548 } && test -s conftest.$ac_objext; then
4549 ac_header_compiler=yes
4550 else
4551 $as_echo "$as_me: failed program was:" >&5
4552 sed 's/^/| /' conftest.$ac_ext >&5
4553
4554 ac_header_compiler=no
4555 fi
4556
4557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4558 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4559 $as_echo "$ac_header_compiler" >&6; }
4560
4561 # Is the header present?
4562 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4563 $as_echo_n "checking minix/config.h presence... " >&6; }
4564 cat >conftest.$ac_ext <<_ACEOF
4565 /* confdefs.h. */
4566 _ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4570 #include <minix/config.h>
4571 _ACEOF
4572 if { (ac_try="$ac_cpp conftest.$ac_ext"
4573 case "(($ac_try" in
4574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575 *) ac_try_echo=$ac_try;;
4576 esac
4577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4578 $as_echo "$ac_try_echo") >&5
4579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4580 ac_status=$?
4581 grep -v '^ *+' conftest.er1 >conftest.err
4582 rm -f conftest.er1
4583 cat conftest.err >&5
4584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } >/dev/null && {
4586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4587 test ! -s conftest.err
4588 }; then
4589 ac_header_preproc=yes
4590 else
4591 $as_echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4593
4594 ac_header_preproc=no
4595 fi
4596
4597 rm -f conftest.err conftest.$ac_ext
4598 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4599 $as_echo "$ac_header_preproc" >&6; }
4600
4601 # So? What about this header?
4602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4603 yes:no: )
4604 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4605 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4606 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4607 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4608 ac_header_preproc=yes
4609 ;;
4610 no:yes:* )
4611 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4612 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4613 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4614 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4615 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4616 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4617 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4618 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4619 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4620 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4621 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4622 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4623
4624 ;;
4625 esac
4626 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4627 $as_echo_n "checking for minix/config.h... " >&6; }
4628 if test "${ac_cv_header_minix_config_h+set}" = set; then
4629 $as_echo_n "(cached) " >&6
4630 else
4631 ac_cv_header_minix_config_h=$ac_header_preproc
4632 fi
4633 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4634 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4635
4636 fi
4637 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4638 MINIX=yes
4639 else
4640 MINIX=
4641 fi
4642
4643
4644 if test "$MINIX" = yes; then
4645
4646 cat >>confdefs.h <<\_ACEOF
4647 #define _POSIX_SOURCE 1
4648 _ACEOF
4649
4650
4651 cat >>confdefs.h <<\_ACEOF
4652 #define _POSIX_1_SOURCE 2
4653 _ACEOF
4654
4655
4656 cat >>confdefs.h <<\_ACEOF
4657 #define _MINIX 1
4658 _ACEOF
4659
4660 fi
4661
4662
4663
4664 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4665 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4666 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4667 $as_echo_n "(cached) " >&6
4668 else
4669 cat >conftest.$ac_ext <<_ACEOF
4670 /* confdefs.h. */
4671 _ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4675
4676 # define __EXTENSIONS__ 1
4677 $ac_includes_default
4678 int
4679 main ()
4680 {
4681
4682 ;
4683 return 0;
4684 }
4685 _ACEOF
4686 rm -f conftest.$ac_objext
4687 if { (ac_try="$ac_compile"
4688 case "(($ac_try" in
4689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690 *) ac_try_echo=$ac_try;;
4691 esac
4692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4693 $as_echo "$ac_try_echo") >&5
4694 (eval "$ac_compile") 2>conftest.er1
4695 ac_status=$?
4696 grep -v '^ *+' conftest.er1 >conftest.err
4697 rm -f conftest.er1
4698 cat conftest.err >&5
4699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } && {
4701 test -z "$ac_c_werror_flag" ||
4702 test ! -s conftest.err
4703 } && test -s conftest.$ac_objext; then
4704 ac_cv_safe_to_define___extensions__=yes
4705 else
4706 $as_echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4708
4709 ac_cv_safe_to_define___extensions__=no
4710 fi
4711
4712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713 fi
4714 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4715 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4716 test $ac_cv_safe_to_define___extensions__ = yes &&
4717 cat >>confdefs.h <<\_ACEOF
4718 #define __EXTENSIONS__ 1
4719 _ACEOF
4720
4721 cat >>confdefs.h <<\_ACEOF
4722 #define _ALL_SOURCE 1
4723 _ACEOF
4724
4725 cat >>confdefs.h <<\_ACEOF
4726 #define _GNU_SOURCE 1
4727 _ACEOF
4728
4729 cat >>confdefs.h <<\_ACEOF
4730 #define _POSIX_PTHREAD_SEMANTICS 1
4731 _ACEOF
4732
4733 cat >>confdefs.h <<\_ACEOF
4734 #define _TANDEM_SOURCE 1
4735 _ACEOF
4736
4737
4738
4739 ### Use -Wno-pointer-sign if the compiler supports it
4740 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4741 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4742 SAVE_CFLAGS="$CFLAGS"
4743 CFLAGS="$CFLAGS -Wno-pointer-sign"
4744 cat >conftest.$ac_ext <<_ACEOF
4745 /* confdefs.h. */
4746 _ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h. */
4750
4751 int
4752 main ()
4753 {
4754
4755 ;
4756 return 0;
4757 }
4758 _ACEOF
4759 rm -f conftest.$ac_objext
4760 if { (ac_try="$ac_compile"
4761 case "(($ac_try" in
4762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4763 *) ac_try_echo=$ac_try;;
4764 esac
4765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4766 $as_echo "$ac_try_echo") >&5
4767 (eval "$ac_compile") 2>conftest.er1
4768 ac_status=$?
4769 grep -v '^ *+' conftest.er1 >conftest.err
4770 rm -f conftest.er1
4771 cat conftest.err >&5
4772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } && {
4774 test -z "$ac_c_werror_flag" ||
4775 test ! -s conftest.err
4776 } && test -s conftest.$ac_objext; then
4777 has_option=yes
4778 else
4779 $as_echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4781
4782 has_option=no
4783 fi
4784
4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786 if test $has_option = yes; then
4787 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4788 fi
4789 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4790 $as_echo "$has_option" >&6; }
4791 CFLAGS="$SAVE_CFLAGS"
4792 unset has_option
4793 unset SAVE_CFLAGS
4794
4795 #### Some other nice autoconf tests.
4796
4797 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4798 $as_echo_n "checking whether ln -s works... " >&6; }
4799 LN_S=$as_ln_s
4800 if test "$LN_S" = "ln -s"; then
4801 { $as_echo "$as_me:$LINENO: result: yes" >&5
4802 $as_echo "yes" >&6; }
4803 else
4804 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4805 $as_echo "no, using $LN_S" >&6; }
4806 fi
4807
4808 ac_ext=c
4809 ac_cpp='$CPP $CPPFLAGS'
4810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4813 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4814 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4815 # On Suns, sometimes $CPP names a directory.
4816 if test -n "$CPP" && test -d "$CPP"; then
4817 CPP=
4818 fi
4819 if test -z "$CPP"; then
4820 if test "${ac_cv_prog_CPP+set}" = set; then
4821 $as_echo_n "(cached) " >&6
4822 else
4823 # Double quotes because CPP needs to be expanded
4824 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4825 do
4826 ac_preproc_ok=false
4827 for ac_c_preproc_warn_flag in '' yes
4828 do
4829 # Use a header file that comes with gcc, so configuring glibc
4830 # with a fresh cross-compiler works.
4831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4832 # <limits.h> exists even on freestanding compilers.
4833 # On the NeXT, cc -E runs the code through the compiler's parser,
4834 # not just through cpp. "Syntax error" is here to catch this case.
4835 cat >conftest.$ac_ext <<_ACEOF
4836 /* confdefs.h. */
4837 _ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4841 #ifdef __STDC__
4842 # include <limits.h>
4843 #else
4844 # include <assert.h>
4845 #endif
4846 Syntax error
4847 _ACEOF
4848 if { (ac_try="$ac_cpp conftest.$ac_ext"
4849 case "(($ac_try" in
4850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851 *) ac_try_echo=$ac_try;;
4852 esac
4853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4854 $as_echo "$ac_try_echo") >&5
4855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4856 ac_status=$?
4857 grep -v '^ *+' conftest.er1 >conftest.err
4858 rm -f conftest.er1
4859 cat conftest.err >&5
4860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } >/dev/null && {
4862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4863 test ! -s conftest.err
4864 }; then
4865 :
4866 else
4867 $as_echo "$as_me: failed program was:" >&5
4868 sed 's/^/| /' conftest.$ac_ext >&5
4869
4870 # Broken: fails on valid input.
4871 continue
4872 fi
4873
4874 rm -f conftest.err conftest.$ac_ext
4875
4876 # OK, works on sane cases. Now check whether nonexistent headers
4877 # can be detected and how.
4878 cat >conftest.$ac_ext <<_ACEOF
4879 /* confdefs.h. */
4880 _ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4884 #include <ac_nonexistent.h>
4885 _ACEOF
4886 if { (ac_try="$ac_cpp conftest.$ac_ext"
4887 case "(($ac_try" in
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4890 esac
4891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4892 $as_echo "$ac_try_echo") >&5
4893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4894 ac_status=$?
4895 grep -v '^ *+' conftest.er1 >conftest.err
4896 rm -f conftest.er1
4897 cat conftest.err >&5
4898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } >/dev/null && {
4900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4901 test ! -s conftest.err
4902 }; then
4903 # Broken: success on invalid input.
4904 continue
4905 else
4906 $as_echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4908
4909 # Passes both tests.
4910 ac_preproc_ok=:
4911 break
4912 fi
4913
4914 rm -f conftest.err conftest.$ac_ext
4915
4916 done
4917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4918 rm -f conftest.err conftest.$ac_ext
4919 if $ac_preproc_ok; then
4920 break
4921 fi
4922
4923 done
4924 ac_cv_prog_CPP=$CPP
4925
4926 fi
4927 CPP=$ac_cv_prog_CPP
4928 else
4929 ac_cv_prog_CPP=$CPP
4930 fi
4931 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4932 $as_echo "$CPP" >&6; }
4933 ac_preproc_ok=false
4934 for ac_c_preproc_warn_flag in '' yes
4935 do
4936 # Use a header file that comes with gcc, so configuring glibc
4937 # with a fresh cross-compiler works.
4938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4939 # <limits.h> exists even on freestanding compilers.
4940 # On the NeXT, cc -E runs the code through the compiler's parser,
4941 # not just through cpp. "Syntax error" is here to catch this case.
4942 cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h. */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4948 #ifdef __STDC__
4949 # include <limits.h>
4950 #else
4951 # include <assert.h>
4952 #endif
4953 Syntax error
4954 _ACEOF
4955 if { (ac_try="$ac_cpp conftest.$ac_ext"
4956 case "(($ac_try" in
4957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958 *) ac_try_echo=$ac_try;;
4959 esac
4960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4961 $as_echo "$ac_try_echo") >&5
4962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4963 ac_status=$?
4964 grep -v '^ *+' conftest.er1 >conftest.err
4965 rm -f conftest.er1
4966 cat conftest.err >&5
4967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } >/dev/null && {
4969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4970 test ! -s conftest.err
4971 }; then
4972 :
4973 else
4974 $as_echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4976
4977 # Broken: fails on valid input.
4978 continue
4979 fi
4980
4981 rm -f conftest.err conftest.$ac_ext
4982
4983 # OK, works on sane cases. Now check whether nonexistent headers
4984 # can be detected and how.
4985 cat >conftest.$ac_ext <<_ACEOF
4986 /* confdefs.h. */
4987 _ACEOF
4988 cat confdefs.h >>conftest.$ac_ext
4989 cat >>conftest.$ac_ext <<_ACEOF
4990 /* end confdefs.h. */
4991 #include <ac_nonexistent.h>
4992 _ACEOF
4993 if { (ac_try="$ac_cpp conftest.$ac_ext"
4994 case "(($ac_try" in
4995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4996 *) ac_try_echo=$ac_try;;
4997 esac
4998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4999 $as_echo "$ac_try_echo") >&5
5000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5001 ac_status=$?
5002 grep -v '^ *+' conftest.er1 >conftest.err
5003 rm -f conftest.er1
5004 cat conftest.err >&5
5005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } >/dev/null && {
5007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5008 test ! -s conftest.err
5009 }; then
5010 # Broken: success on invalid input.
5011 continue
5012 else
5013 $as_echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5015
5016 # Passes both tests.
5017 ac_preproc_ok=:
5018 break
5019 fi
5020
5021 rm -f conftest.err conftest.$ac_ext
5022
5023 done
5024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5025 rm -f conftest.err conftest.$ac_ext
5026 if $ac_preproc_ok; then
5027 :
5028 else
5029 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5031 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5032 See \`config.log' for more details." >&5
5033 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5034 See \`config.log' for more details." >&2;}
5035 { (exit 1); exit 1; }; }; }
5036 fi
5037
5038 ac_ext=c
5039 ac_cpp='$CPP $CPPFLAGS'
5040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5043
5044 # Find a good install program. We prefer a C program (faster),
5045 # so one script is as good as another. But avoid the broken or
5046 # incompatible versions:
5047 # SysV /etc/install, /usr/sbin/install
5048 # SunOS /usr/etc/install
5049 # IRIX /sbin/install
5050 # AIX /bin/install
5051 # AmigaOS /C/install, which installs bootblocks on floppy discs
5052 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5053 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5054 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5055 # OS/2's system install, which has a completely different semantic
5056 # ./install, which can be erroneously created by make from ./install.sh.
5057 # Reject install programs that cannot install multiple files.
5058 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5059 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5060 if test -z "$INSTALL"; then
5061 if test "${ac_cv_path_install+set}" = set; then
5062 $as_echo_n "(cached) " >&6
5063 else
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5066 do
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5069 # Account for people who put trailing slashes in PATH elements.
5070 case $as_dir/ in
5071 ./ | .// | /cC/* | \
5072 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5073 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5074 /usr/ucb/* ) ;;
5075 *)
5076 # OSF1 and SCO ODT 3.0 have their own names for install.
5077 # Don't use installbsd from OSF since it installs stuff as root
5078 # by default.
5079 for ac_prog in ginstall scoinst install; do
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5082 if test $ac_prog = install &&
5083 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5084 # AIX install. It has an incompatible calling convention.
5085 :
5086 elif test $ac_prog = install &&
5087 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5088 # program-specific install script used by HP pwplus--don't use.
5089 :
5090 else
5091 rm -rf conftest.one conftest.two conftest.dir
5092 echo one > conftest.one
5093 echo two > conftest.two
5094 mkdir conftest.dir
5095 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5096 test -s conftest.one && test -s conftest.two &&
5097 test -s conftest.dir/conftest.one &&
5098 test -s conftest.dir/conftest.two
5099 then
5100 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5101 break 3
5102 fi
5103 fi
5104 fi
5105 done
5106 done
5107 ;;
5108 esac
5109
5110 done
5111 IFS=$as_save_IFS
5112
5113 rm -rf conftest.one conftest.two conftest.dir
5114
5115 fi
5116 if test "${ac_cv_path_install+set}" = set; then
5117 INSTALL=$ac_cv_path_install
5118 else
5119 # As a last resort, use the slow shell script. Don't cache a
5120 # value for INSTALL within a source directory, because that will
5121 # break other packages using the cache if that directory is
5122 # removed, or if the value is a relative name.
5123 INSTALL=$ac_install_sh
5124 fi
5125 fi
5126 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5127 $as_echo "$INSTALL" >&6; }
5128
5129 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5130 # It thinks the first close brace ends the variable substitution.
5131 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5132
5133 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5134
5135 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5136
5137 if test "x$RANLIB" = x; then
5138 if test -n "$ac_tool_prefix"; then
5139 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5140 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5141 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if test "${ac_cv_prog_RANLIB+set}" = set; then
5144 $as_echo_n "(cached) " >&6
5145 else
5146 if test -n "$RANLIB"; then
5147 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5148 else
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5151 do
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5156 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5157 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 break 2
5159 fi
5160 done
5161 done
5162 IFS=$as_save_IFS
5163
5164 fi
5165 fi
5166 RANLIB=$ac_cv_prog_RANLIB
5167 if test -n "$RANLIB"; then
5168 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5169 $as_echo "$RANLIB" >&6; }
5170 else
5171 { $as_echo "$as_me:$LINENO: result: no" >&5
5172 $as_echo "no" >&6; }
5173 fi
5174
5175
5176 fi
5177 if test -z "$ac_cv_prog_RANLIB"; then
5178 ac_ct_RANLIB=$RANLIB
5179 # Extract the first word of "ranlib", so it can be a program name with args.
5180 set dummy ranlib; ac_word=$2
5181 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5184 $as_echo_n "(cached) " >&6
5185 else
5186 if test -n "$ac_ct_RANLIB"; then
5187 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5191 do
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196 ac_cv_prog_ac_ct_RANLIB="ranlib"
5197 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5199 fi
5200 done
5201 done
5202 IFS=$as_save_IFS
5203
5204 fi
5205 fi
5206 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5207 if test -n "$ac_ct_RANLIB"; then
5208 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5209 $as_echo "$ac_ct_RANLIB" >&6; }
5210 else
5211 { $as_echo "$as_me:$LINENO: result: no" >&5
5212 $as_echo "no" >&6; }
5213 fi
5214
5215 if test "x$ac_ct_RANLIB" = x; then
5216 RANLIB=":"
5217 else
5218 case $cross_compiling:$ac_tool_warned in
5219 yes:)
5220 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5222 ac_tool_warned=yes ;;
5223 esac
5224 RANLIB=$ac_ct_RANLIB
5225 fi
5226 else
5227 RANLIB="$ac_cv_prog_RANLIB"
5228 fi
5229
5230 fi
5231 # Extract the first word of "install-info", so it can be a program name with args.
5232 set dummy install-info; ac_word=$2
5233 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5234 $as_echo_n "checking for $ac_word... " >&6; }
5235 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5236 $as_echo_n "(cached) " >&6
5237 else
5238 case $INSTALL_INFO in
5239 [\\/]* | ?:[\\/]*)
5240 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5241 ;;
5242 *)
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 for as_dir in $PATH
5245 do
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5251 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 break 2
5253 fi
5254 done
5255 done
5256 IFS=$as_save_IFS
5257
5258 ;;
5259 esac
5260 fi
5261 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5262 if test -n "$INSTALL_INFO"; then
5263 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5264 $as_echo "$INSTALL_INFO" >&6; }
5265 else
5266 { $as_echo "$as_me:$LINENO: result: no" >&5
5267 $as_echo "no" >&6; }
5268 fi
5269
5270
5271 # Extract the first word of "install-info", so it can be a program name with args.
5272 set dummy install-info; ac_word=$2
5273 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 $as_echo_n "checking for $ac_word... " >&6; }
5275 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5276 $as_echo_n "(cached) " >&6
5277 else
5278 case $INSTALL_INFO in
5279 [\\/]* | ?:[\\/]*)
5280 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5281 ;;
5282 *)
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in /usr/sbin
5285 do
5286 IFS=$as_save_IFS
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5291 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 break 2
5293 fi
5294 done
5295 done
5296 IFS=$as_save_IFS
5297
5298 ;;
5299 esac
5300 fi
5301 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5302 if test -n "$INSTALL_INFO"; then
5303 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5304 $as_echo "$INSTALL_INFO" >&6; }
5305 else
5306 { $as_echo "$as_me:$LINENO: result: no" >&5
5307 $as_echo "no" >&6; }
5308 fi
5309
5310
5311 # Extract the first word of "install-info", so it can be a program name with args.
5312 set dummy install-info; ac_word=$2
5313 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5314 $as_echo_n "checking for $ac_word... " >&6; }
5315 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5316 $as_echo_n "(cached) " >&6
5317 else
5318 case $INSTALL_INFO in
5319 [\\/]* | ?:[\\/]*)
5320 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5321 ;;
5322 *)
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in /sbin
5325 do
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5330 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5331 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 break 2
5333 fi
5334 done
5335 done
5336 IFS=$as_save_IFS
5337
5338 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5339 ;;
5340 esac
5341 fi
5342 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5343 if test -n "$INSTALL_INFO"; then
5344 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5345 $as_echo "$INSTALL_INFO" >&6; }
5346 else
5347 { $as_echo "$as_me:$LINENO: result: no" >&5
5348 $as_echo "no" >&6; }
5349 fi
5350
5351
5352 # Extract the first word of "gzip", so it can be a program name with args.
5353 set dummy gzip; ac_word=$2
5354 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5355 $as_echo_n "checking for $ac_word... " >&6; }
5356 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5357 $as_echo_n "(cached) " >&6
5358 else
5359 case $GZIP_PROG in
5360 [\\/]* | ?:[\\/]*)
5361 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5362 ;;
5363 *)
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 for as_dir in $PATH
5366 do
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5371 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5372 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 break 2
5374 fi
5375 done
5376 done
5377 IFS=$as_save_IFS
5378
5379 ;;
5380 esac
5381 fi
5382 GZIP_PROG=$ac_cv_path_GZIP_PROG
5383 if test -n "$GZIP_PROG"; then
5384 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5385 $as_echo "$GZIP_PROG" >&6; }
5386 else
5387 { $as_echo "$as_me:$LINENO: result: no" >&5
5388 $as_echo "no" >&6; }
5389 fi
5390
5391
5392
5393
5394 ## Need makeinfo >= 4.6 (?) to build the manuals.
5395 # Extract the first word of "makeinfo", so it can be a program name with args.
5396 set dummy makeinfo; ac_word=$2
5397 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5400 $as_echo_n "(cached) " >&6
5401 else
5402 case $MAKEINFO in
5403 [\\/]* | ?:[\\/]*)
5404 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5405 ;;
5406 *)
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5409 do
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5414 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5415 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 break 2
5417 fi
5418 done
5419 done
5420 IFS=$as_save_IFS
5421
5422 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5423 ;;
5424 esac
5425 fi
5426 MAKEINFO=$ac_cv_path_MAKEINFO
5427 if test -n "$MAKEINFO"; then
5428 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5429 $as_echo "$MAKEINFO" >&6; }
5430 else
5431 { $as_echo "$as_me:$LINENO: result: no" >&5
5432 $as_echo "no" >&6; }
5433 fi
5434
5435
5436 if test "$MAKEINFO" != "no" && \
5437 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
5438 MAKEINFO=no
5439 fi
5440
5441 ## Makeinfo is unusual. For a released Emacs, the manuals are
5442 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5443 ## therefore in the category of "special tools" not normally required, which
5444 ## configure does not have to check for (eg autoconf itself).
5445 ## In a CVS checkout on the other hand, the manuals are not included.
5446 ## So makeinfo is a requirement to build from CVS, and configure
5447 ## should test for it as it does for any other build requirement.
5448 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5449 ## with pre-built manuals, from a CVS checkout.
5450 if test "$MAKEINFO" = "no"; then
5451 if test "x${with_makeinfo}" = "xno"; then
5452 MAKEINFO=off
5453 elif ! test -e $srcdir/info/emacs; then
5454 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5455 source tree does not seem to have pre-built manuals in the \`info' directory.
5456 Either install a suitable version of makeinfo, or re-run configure
5457 with the \`--without-makeinfo' option to build without the manuals. " >&5
5458 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5459 source tree does not seem to have pre-built manuals in the \`info' directory.
5460 Either install a suitable version of makeinfo, or re-run configure
5461 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5462 { (exit 1); exit 1; }; }
5463 fi
5464 fi
5465
5466
5467 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5468 then
5469 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5470 fi
5471
5472 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5473 then
5474 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5475 fi
5476
5477
5478 late_LDFLAGS=$LDFLAGS
5479 if test "$GCC" = yes; then
5480 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5481 else
5482 LDFLAGS="$LDFLAGS -znocombreloc"
5483 fi
5484
5485 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5486 $as_echo_n "checking for -znocombreloc... " >&6; }
5487 cat >conftest.$ac_ext <<_ACEOF
5488 main(){return 0;}
5489 _ACEOF
5490 rm -f conftest.$ac_objext conftest$ac_exeext
5491 if { (ac_try="$ac_link"
5492 case "(($ac_try" in
5493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494 *) ac_try_echo=$ac_try;;
5495 esac
5496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5497 $as_echo "$ac_try_echo") >&5
5498 (eval "$ac_link") 2>conftest.er1
5499 ac_status=$?
5500 grep -v '^ *+' conftest.er1 >conftest.err
5501 rm -f conftest.er1
5502 cat conftest.err >&5
5503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } && {
5505 test -z "$ac_c_werror_flag" ||
5506 test ! -s conftest.err
5507 } && test -s conftest$ac_exeext && {
5508 test "$cross_compiling" = yes ||
5509 $as_test_x conftest$ac_exeext
5510 }; then
5511 { $as_echo "$as_me:$LINENO: result: yes" >&5
5512 $as_echo "yes" >&6; }
5513 else
5514 $as_echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.$ac_ext >&5
5516
5517 LDFLAGS=$late_LDFLAGS
5518 { $as_echo "$as_me:$LINENO: result: no" >&5
5519 $as_echo "no" >&6; }
5520 fi
5521
5522 rm -rf conftest.dSYM
5523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5524 conftest$ac_exeext conftest.$ac_ext
5525
5526 #### Extract some information from the operating system and machine files.
5527
5528 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5529 - which libraries the lib-src programs will want, and
5530 - whether the GNU malloc routines are usable..." >&5
5531 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5532 - which libraries the lib-src programs will want, and
5533 - whether the GNU malloc routines are usable..." >&6;}
5534
5535 ### First figure out CFLAGS (which we use for running the compiler here)
5536 ### and REAL_CFLAGS (which we use for real compilation).
5537 ### The two are the same except on a few systems, where they are made
5538 ### different to work around various lossages. For example,
5539 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5540 ### as implying static linking.
5541
5542 ### If the CFLAGS env var is specified, we use that value
5543 ### instead of the default.
5544
5545 ### It's not important that this name contain the PID; you can't run
5546 ### two configures in the same directory and have anything work
5547 ### anyway.
5548 tempcname="conftest.c"
5549
5550 echo '
5551 #include "'${srcdir}'/src/'${opsysfile}'"
5552 #include "'${srcdir}'/src/'${machfile}'"
5553 #ifndef LIBS_MACHINE
5554 #define LIBS_MACHINE
5555 #endif
5556 #ifndef LIBS_SYSTEM
5557 #define LIBS_SYSTEM
5558 #endif
5559 #ifndef C_SWITCH_SYSTEM
5560 #define C_SWITCH_SYSTEM
5561 #endif
5562 #ifndef C_SWITCH_MACHINE
5563 #define C_SWITCH_MACHINE
5564 #endif
5565 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5566 configure___ c_switch_system=C_SWITCH_SYSTEM
5567 configure___ c_switch_machine=C_SWITCH_MACHINE
5568
5569 #ifndef LIB_X11_LIB
5570 #define LIB_X11_LIB -lX11
5571 #endif
5572
5573 #ifndef LIBX11_SYSTEM
5574 #define LIBX11_SYSTEM
5575 #endif
5576 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5577
5578 #ifdef UNEXEC
5579 configure___ unexec=UNEXEC
5580 #else
5581 configure___ unexec=unexec.o
5582 #endif
5583
5584 #ifdef SYSTEM_MALLOC
5585 configure___ system_malloc=yes
5586 #else
5587 configure___ system_malloc=no
5588 #endif
5589
5590 #ifdef USE_MMAP_FOR_BUFFERS
5591 configure___ use_mmap_for_buffers=yes
5592 #else
5593 configure___ use_mmap_for_buffers=no
5594 #endif
5595
5596 #ifndef C_DEBUG_SWITCH
5597 #define C_DEBUG_SWITCH -g
5598 #endif
5599
5600 #ifndef C_OPTIMIZE_SWITCH
5601 #ifdef __GNUC__
5602 #define C_OPTIMIZE_SWITCH -O2
5603 #else
5604 #define C_OPTIMIZE_SWITCH -O
5605 #endif
5606 #endif
5607
5608 #ifndef C_WARNINGS_SWITCH
5609 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5610 #endif
5611
5612 #ifndef LD_SWITCH_MACHINE
5613 #define LD_SWITCH_MACHINE
5614 #endif
5615
5616 #ifndef LD_SWITCH_SYSTEM
5617 #define LD_SWITCH_SYSTEM
5618 #endif
5619
5620 #ifndef LD_SWITCH_X_SITE_AUX
5621 #define LD_SWITCH_X_SITE_AUX
5622 #endif
5623
5624 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5625 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5626
5627 #ifdef THIS_IS_CONFIGURE
5628
5629 /* Get the CFLAGS for tests in configure. */
5630 #ifdef __GNUC__
5631 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5632 #else
5633 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5634 #endif
5635
5636 #else /* not THIS_IS_CONFIGURE */
5637
5638 /* Get the CFLAGS for real compilation. */
5639 #ifdef __GNUC__
5640 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5641 #else
5642 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5643 #endif
5644
5645 #endif /* not THIS_IS_CONFIGURE */
5646 ' > ${tempcname}
5647
5648 # The value of CPP is a quoted variable reference, so we need to do this
5649 # to get its actual value...
5650 CPP=`eval "echo $CPP"`
5651 eval `${CPP} -Isrc ${tempcname} \
5652 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5653 if test "x$SPECIFIED_CFLAGS" = x; then
5654 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5655 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5656 else
5657 REAL_CFLAGS="$CFLAGS"
5658 fi
5659 rm ${tempcname}
5660
5661 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5662
5663 ### Make sure subsequent tests use flags consistent with the build flags.
5664
5665 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5666 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5667 else
5668 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5669 fi
5670
5671
5672
5673 # Check whether --enable-largefile was given.
5674 if test "${enable_largefile+set}" = set; then
5675 enableval=$enable_largefile;
5676 fi
5677
5678 if test "$enable_largefile" != no; then
5679
5680 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5681 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5682 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5683 $as_echo_n "(cached) " >&6
5684 else
5685 ac_cv_sys_largefile_CC=no
5686 if test "$GCC" != yes; then
5687 ac_save_CC=$CC
5688 while :; do
5689 # IRIX 6.2 and later do not support large files by default,
5690 # so use the C compiler's -n32 option if that helps.
5691 cat >conftest.$ac_ext <<_ACEOF
5692 /* confdefs.h. */
5693 _ACEOF
5694 cat confdefs.h >>conftest.$ac_ext
5695 cat >>conftest.$ac_ext <<_ACEOF
5696 /* end confdefs.h. */
5697 #include <sys/types.h>
5698 /* Check that off_t can represent 2**63 - 1 correctly.
5699 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5700 since some C++ compilers masquerading as C compilers
5701 incorrectly reject 9223372036854775807. */
5702 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5703 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5704 && LARGE_OFF_T % 2147483647 == 1)
5705 ? 1 : -1];
5706 int
5707 main ()
5708 {
5709
5710 ;
5711 return 0;
5712 }
5713 _ACEOF
5714 rm -f conftest.$ac_objext
5715 if { (ac_try="$ac_compile"
5716 case "(($ac_try" in
5717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5718 *) ac_try_echo=$ac_try;;
5719 esac
5720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5721 $as_echo "$ac_try_echo") >&5
5722 (eval "$ac_compile") 2>conftest.er1
5723 ac_status=$?
5724 grep -v '^ *+' conftest.er1 >conftest.err
5725 rm -f conftest.er1
5726 cat conftest.err >&5
5727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } && {
5729 test -z "$ac_c_werror_flag" ||
5730 test ! -s conftest.err
5731 } && test -s conftest.$ac_objext; then
5732 break
5733 else
5734 $as_echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5736
5737
5738 fi
5739
5740 rm -f core conftest.err conftest.$ac_objext
5741 CC="$CC -n32"
5742 rm -f conftest.$ac_objext
5743 if { (ac_try="$ac_compile"
5744 case "(($ac_try" in
5745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746 *) ac_try_echo=$ac_try;;
5747 esac
5748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5749 $as_echo "$ac_try_echo") >&5
5750 (eval "$ac_compile") 2>conftest.er1
5751 ac_status=$?
5752 grep -v '^ *+' conftest.er1 >conftest.err
5753 rm -f conftest.er1
5754 cat conftest.err >&5
5755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); } && {
5757 test -z "$ac_c_werror_flag" ||
5758 test ! -s conftest.err
5759 } && test -s conftest.$ac_objext; then
5760 ac_cv_sys_largefile_CC=' -n32'; break
5761 else
5762 $as_echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.$ac_ext >&5
5764
5765
5766 fi
5767
5768 rm -f core conftest.err conftest.$ac_objext
5769 break
5770 done
5771 CC=$ac_save_CC
5772 rm -f conftest.$ac_ext
5773 fi
5774 fi
5775 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5776 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5777 if test "$ac_cv_sys_largefile_CC" != no; then
5778 CC=$CC$ac_cv_sys_largefile_CC
5779 fi
5780
5781 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5782 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5783 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5784 $as_echo_n "(cached) " >&6
5785 else
5786 while :; do
5787 cat >conftest.$ac_ext <<_ACEOF
5788 /* confdefs.h. */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5793 #include <sys/types.h>
5794 /* Check that off_t can represent 2**63 - 1 correctly.
5795 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5796 since some C++ compilers masquerading as C compilers
5797 incorrectly reject 9223372036854775807. */
5798 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5799 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5800 && LARGE_OFF_T % 2147483647 == 1)
5801 ? 1 : -1];
5802 int
5803 main ()
5804 {
5805
5806 ;
5807 return 0;
5808 }
5809 _ACEOF
5810 rm -f conftest.$ac_objext
5811 if { (ac_try="$ac_compile"
5812 case "(($ac_try" in
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5815 esac
5816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5817 $as_echo "$ac_try_echo") >&5
5818 (eval "$ac_compile") 2>conftest.er1
5819 ac_status=$?
5820 grep -v '^ *+' conftest.er1 >conftest.err
5821 rm -f conftest.er1
5822 cat conftest.err >&5
5823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } && {
5825 test -z "$ac_c_werror_flag" ||
5826 test ! -s conftest.err
5827 } && test -s conftest.$ac_objext; then
5828 ac_cv_sys_file_offset_bits=no; break
5829 else
5830 $as_echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5832
5833
5834 fi
5835
5836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5837 cat >conftest.$ac_ext <<_ACEOF
5838 /* confdefs.h. */
5839 _ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5843 #define _FILE_OFFSET_BITS 64
5844 #include <sys/types.h>
5845 /* Check that off_t can represent 2**63 - 1 correctly.
5846 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5847 since some C++ compilers masquerading as C compilers
5848 incorrectly reject 9223372036854775807. */
5849 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5850 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5851 && LARGE_OFF_T % 2147483647 == 1)
5852 ? 1 : -1];
5853 int
5854 main ()
5855 {
5856
5857 ;
5858 return 0;
5859 }
5860 _ACEOF
5861 rm -f conftest.$ac_objext
5862 if { (ac_try="$ac_compile"
5863 case "(($ac_try" in
5864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865 *) ac_try_echo=$ac_try;;
5866 esac
5867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5868 $as_echo "$ac_try_echo") >&5
5869 (eval "$ac_compile") 2>conftest.er1
5870 ac_status=$?
5871 grep -v '^ *+' conftest.er1 >conftest.err
5872 rm -f conftest.er1
5873 cat conftest.err >&5
5874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } && {
5876 test -z "$ac_c_werror_flag" ||
5877 test ! -s conftest.err
5878 } && test -s conftest.$ac_objext; then
5879 ac_cv_sys_file_offset_bits=64; break
5880 else
5881 $as_echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5883
5884
5885 fi
5886
5887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888 ac_cv_sys_file_offset_bits=unknown
5889 break
5890 done
5891 fi
5892 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5893 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5894 case $ac_cv_sys_file_offset_bits in #(
5895 no | unknown) ;;
5896 *)
5897 cat >>confdefs.h <<_ACEOF
5898 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5899 _ACEOF
5900 ;;
5901 esac
5902 rm -rf conftest*
5903 if test $ac_cv_sys_file_offset_bits = unknown; then
5904 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5905 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5906 if test "${ac_cv_sys_large_files+set}" = set; then
5907 $as_echo_n "(cached) " >&6
5908 else
5909 while :; do
5910 cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h. */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 #include <sys/types.h>
5917 /* Check that off_t can represent 2**63 - 1 correctly.
5918 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5919 since some C++ compilers masquerading as C compilers
5920 incorrectly reject 9223372036854775807. */
5921 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5922 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5923 && LARGE_OFF_T % 2147483647 == 1)
5924 ? 1 : -1];
5925 int
5926 main ()
5927 {
5928
5929 ;
5930 return 0;
5931 }
5932 _ACEOF
5933 rm -f conftest.$ac_objext
5934 if { (ac_try="$ac_compile"
5935 case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938 esac
5939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5940 $as_echo "$ac_try_echo") >&5
5941 (eval "$ac_compile") 2>conftest.er1
5942 ac_status=$?
5943 grep -v '^ *+' conftest.er1 >conftest.err
5944 rm -f conftest.er1
5945 cat conftest.err >&5
5946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } && {
5948 test -z "$ac_c_werror_flag" ||
5949 test ! -s conftest.err
5950 } && test -s conftest.$ac_objext; then
5951 ac_cv_sys_large_files=no; break
5952 else
5953 $as_echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5955
5956
5957 fi
5958
5959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960 cat >conftest.$ac_ext <<_ACEOF
5961 /* confdefs.h. */
5962 _ACEOF
5963 cat confdefs.h >>conftest.$ac_ext
5964 cat >>conftest.$ac_ext <<_ACEOF
5965 /* end confdefs.h. */
5966 #define _LARGE_FILES 1
5967 #include <sys/types.h>
5968 /* Check that off_t can represent 2**63 - 1 correctly.
5969 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5970 since some C++ compilers masquerading as C compilers
5971 incorrectly reject 9223372036854775807. */
5972 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5973 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5974 && LARGE_OFF_T % 2147483647 == 1)
5975 ? 1 : -1];
5976 int
5977 main ()
5978 {
5979
5980 ;
5981 return 0;
5982 }
5983 _ACEOF
5984 rm -f conftest.$ac_objext
5985 if { (ac_try="$ac_compile"
5986 case "(($ac_try" in
5987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988 *) ac_try_echo=$ac_try;;
5989 esac
5990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5991 $as_echo "$ac_try_echo") >&5
5992 (eval "$ac_compile") 2>conftest.er1
5993 ac_status=$?
5994 grep -v '^ *+' conftest.er1 >conftest.err
5995 rm -f conftest.er1
5996 cat conftest.err >&5
5997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } && {
5999 test -z "$ac_c_werror_flag" ||
6000 test ! -s conftest.err
6001 } && test -s conftest.$ac_objext; then
6002 ac_cv_sys_large_files=1; break
6003 else
6004 $as_echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6006
6007
6008 fi
6009
6010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6011 ac_cv_sys_large_files=unknown
6012 break
6013 done
6014 fi
6015 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6016 $as_echo "$ac_cv_sys_large_files" >&6; }
6017 case $ac_cv_sys_large_files in #(
6018 no | unknown) ;;
6019 *)
6020 cat >>confdefs.h <<_ACEOF
6021 #define _LARGE_FILES $ac_cv_sys_large_files
6022 _ACEOF
6023 ;;
6024 esac
6025 rm -rf conftest*
6026 fi
6027 fi
6028
6029
6030
6031 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6032 ### be located in either /usr/lib64 or /usr/lib.
6033 ### In some rare cases, /usr/lib64 exists but does not contain the
6034 ### relevant files (bug#1287). Hence test for crtn.o.
6035 case "${canonical}" in
6036 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6037 if test -e /usr/lib64/crtn.o; then
6038
6039 cat >>confdefs.h <<\_ACEOF
6040 #define HAVE_LIB64_DIR 1
6041 _ACEOF
6042
6043 fi
6044 esac
6045
6046
6047
6048
6049 if test "${with_sound}" != "no"; then
6050 # Sound support for GNU/Linux and the free BSDs.
6051
6052
6053
6054 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6055 do
6056 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6058 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6059 $as_echo_n "checking for $ac_header... " >&6; }
6060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6061 $as_echo_n "(cached) " >&6
6062 fi
6063 ac_res=`eval 'as_val=${'$as_ac_Header'}
6064 $as_echo "$as_val"'`
6065 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6066 $as_echo "$ac_res" >&6; }
6067 else
6068 # Is the header compilable?
6069 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6070 $as_echo_n "checking $ac_header usability... " >&6; }
6071 cat >conftest.$ac_ext <<_ACEOF
6072 /* confdefs.h. */
6073 _ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6077 $ac_includes_default
6078 #include <$ac_header>
6079 _ACEOF
6080 rm -f conftest.$ac_objext
6081 if { (ac_try="$ac_compile"
6082 case "(($ac_try" in
6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084 *) ac_try_echo=$ac_try;;
6085 esac
6086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6087 $as_echo "$ac_try_echo") >&5
6088 (eval "$ac_compile") 2>conftest.er1
6089 ac_status=$?
6090 grep -v '^ *+' conftest.er1 >conftest.err
6091 rm -f conftest.er1
6092 cat conftest.err >&5
6093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } && {
6095 test -z "$ac_c_werror_flag" ||
6096 test ! -s conftest.err
6097 } && test -s conftest.$ac_objext; then
6098 ac_header_compiler=yes
6099 else
6100 $as_echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6102
6103 ac_header_compiler=no
6104 fi
6105
6106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6108 $as_echo "$ac_header_compiler" >&6; }
6109
6110 # Is the header present?
6111 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6112 $as_echo_n "checking $ac_header presence... " >&6; }
6113 cat >conftest.$ac_ext <<_ACEOF
6114 /* confdefs.h. */
6115 _ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h. */
6119 #include <$ac_header>
6120 _ACEOF
6121 if { (ac_try="$ac_cpp conftest.$ac_ext"
6122 case "(($ac_try" in
6123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6124 *) ac_try_echo=$ac_try;;
6125 esac
6126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6127 $as_echo "$ac_try_echo") >&5
6128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6129 ac_status=$?
6130 grep -v '^ *+' conftest.er1 >conftest.err
6131 rm -f conftest.er1
6132 cat conftest.err >&5
6133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } >/dev/null && {
6135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6136 test ! -s conftest.err
6137 }; then
6138 ac_header_preproc=yes
6139 else
6140 $as_echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6142
6143 ac_header_preproc=no
6144 fi
6145
6146 rm -f conftest.err conftest.$ac_ext
6147 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6148 $as_echo "$ac_header_preproc" >&6; }
6149
6150 # So? What about this header?
6151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6152 yes:no: )
6153 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6154 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6156 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6157 ac_header_preproc=yes
6158 ;;
6159 no:yes:* )
6160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6161 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6163 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6165 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6167 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6169 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6171 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6172
6173 ;;
6174 esac
6175 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6176 $as_echo_n "checking for $ac_header... " >&6; }
6177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6178 $as_echo_n "(cached) " >&6
6179 else
6180 eval "$as_ac_Header=\$ac_header_preproc"
6181 fi
6182 ac_res=`eval 'as_val=${'$as_ac_Header'}
6183 $as_echo "$as_val"'`
6184 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6185 $as_echo "$ac_res" >&6; }
6186
6187 fi
6188 as_val=`eval 'as_val=${'$as_ac_Header'}
6189 $as_echo "$as_val"'`
6190 if test "x$as_val" = x""yes; then
6191 cat >>confdefs.h <<_ACEOF
6192 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6193 _ACEOF
6194
6195 fi
6196
6197 done
6198
6199 # Emulation library used on NetBSD.
6200 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6201 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6202 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6203 $as_echo_n "(cached) " >&6
6204 else
6205 ac_check_lib_save_LIBS=$LIBS
6206 LIBS="-lossaudio $LIBS"
6207 cat >conftest.$ac_ext <<_ACEOF
6208 /* confdefs.h. */
6209 _ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6213
6214 /* Override any GCC internal prototype to avoid an error.
6215 Use char because int might match the return type of a GCC
6216 builtin and then its argument prototype would still apply. */
6217 #ifdef __cplusplus
6218 extern "C"
6219 #endif
6220 char _oss_ioctl ();
6221 int
6222 main ()
6223 {
6224 return _oss_ioctl ();
6225 ;
6226 return 0;
6227 }
6228 _ACEOF
6229 rm -f conftest.$ac_objext conftest$ac_exeext
6230 if { (ac_try="$ac_link"
6231 case "(($ac_try" in
6232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6233 *) ac_try_echo=$ac_try;;
6234 esac
6235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6236 $as_echo "$ac_try_echo") >&5
6237 (eval "$ac_link") 2>conftest.er1
6238 ac_status=$?
6239 grep -v '^ *+' conftest.er1 >conftest.err
6240 rm -f conftest.er1
6241 cat conftest.err >&5
6242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } && {
6244 test -z "$ac_c_werror_flag" ||
6245 test ! -s conftest.err
6246 } && test -s conftest$ac_exeext && {
6247 test "$cross_compiling" = yes ||
6248 $as_test_x conftest$ac_exeext
6249 }; then
6250 ac_cv_lib_ossaudio__oss_ioctl=yes
6251 else
6252 $as_echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6254
6255 ac_cv_lib_ossaudio__oss_ioctl=no
6256 fi
6257
6258 rm -rf conftest.dSYM
6259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6260 conftest$ac_exeext conftest.$ac_ext
6261 LIBS=$ac_check_lib_save_LIBS
6262 fi
6263 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6264 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6265 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then
6266 LIBSOUND=-lossaudio
6267 else
6268 LIBSOUND=
6269 fi
6270
6271
6272
6273 ALSA_REQUIRED=1.0.0
6274 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6275
6276 succeeded=no
6277
6278 # Extract the first word of "pkg-config", so it can be a program name with args.
6279 set dummy pkg-config; ac_word=$2
6280 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; }
6282 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6283 $as_echo_n "(cached) " >&6
6284 else
6285 case $PKG_CONFIG in
6286 [\\/]* | ?:[\\/]*)
6287 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6288 ;;
6289 *)
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6298 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 break 2
6300 fi
6301 done
6302 done
6303 IFS=$as_save_IFS
6304
6305 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6306 ;;
6307 esac
6308 fi
6309 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6310 if test -n "$PKG_CONFIG"; then
6311 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6312 $as_echo "$PKG_CONFIG" >&6; }
6313 else
6314 { $as_echo "$as_me:$LINENO: result: no" >&5
6315 $as_echo "no" >&6; }
6316 fi
6317
6318
6319
6320 if test "$PKG_CONFIG" = "no" ; then
6321 HAVE_ALSA=no
6322 else
6323 PKG_CONFIG_MIN_VERSION=0.9.0
6324 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6325 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6326 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6327
6328 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6329 { $as_echo "$as_me:$LINENO: result: yes" >&5
6330 $as_echo "yes" >&6; }
6331 succeeded=yes
6332
6333 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6334 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6335 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6336 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6337 $as_echo "$ALSA_CFLAGS" >&6; }
6338
6339 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6340 $as_echo_n "checking ALSA_LIBS... " >&6; }
6341 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6342 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6343 $as_echo "$ALSA_LIBS" >&6; }
6344 else
6345 { $as_echo "$as_me:$LINENO: result: no" >&5
6346 $as_echo "no" >&6; }
6347 ALSA_CFLAGS=""
6348 ALSA_LIBS=""
6349 ## If we have a custom action on failure, don't print errors, but
6350 ## do set a variable so people can do so.
6351 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6352
6353 fi
6354
6355
6356
6357 else
6358 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6359 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6360 fi
6361 fi
6362
6363 if test $succeeded = yes; then
6364 HAVE_ALSA=yes
6365 else
6366 HAVE_ALSA=no
6367 fi
6368
6369 if test $HAVE_ALSA = yes; then
6370 SAVE_CFLAGS="$CFLAGS"
6371 SAVE_LDFLAGS="$LDFLAGS"
6372 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6373 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6374 cat >conftest.$ac_ext <<_ACEOF
6375 /* confdefs.h. */
6376 _ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6380 #include <asoundlib.h>
6381 int
6382 main ()
6383 {
6384 snd_lib_error_set_handler (0);
6385 ;
6386 return 0;
6387 }
6388 _ACEOF
6389 rm -f conftest.$ac_objext
6390 if { (ac_try="$ac_compile"
6391 case "(($ac_try" in
6392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393 *) ac_try_echo=$ac_try;;
6394 esac
6395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6396 $as_echo "$ac_try_echo") >&5
6397 (eval "$ac_compile") 2>conftest.er1
6398 ac_status=$?
6399 grep -v '^ *+' conftest.er1 >conftest.err
6400 rm -f conftest.er1
6401 cat conftest.err >&5
6402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } && {
6404 test -z "$ac_c_werror_flag" ||
6405 test ! -s conftest.err
6406 } && test -s conftest.$ac_objext; then
6407 emacs_alsa_normal=yes
6408 else
6409 $as_echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6411
6412 emacs_alsa_normal=no
6413 fi
6414
6415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416 if test "$emacs_alsa_normal" != yes; then
6417 cat >conftest.$ac_ext <<_ACEOF
6418 /* confdefs.h. */
6419 _ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6423 #include <alsa/asoundlib.h>
6424 int
6425 main ()
6426 {
6427 snd_lib_error_set_handler (0);
6428 ;
6429 return 0;
6430 }
6431 _ACEOF
6432 rm -f conftest.$ac_objext
6433 if { (ac_try="$ac_compile"
6434 case "(($ac_try" in
6435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6436 *) ac_try_echo=$ac_try;;
6437 esac
6438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6439 $as_echo "$ac_try_echo") >&5
6440 (eval "$ac_compile") 2>conftest.er1
6441 ac_status=$?
6442 grep -v '^ *+' conftest.er1 >conftest.err
6443 rm -f conftest.er1
6444 cat conftest.err >&5
6445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } && {
6447 test -z "$ac_c_werror_flag" ||
6448 test ! -s conftest.err
6449 } && test -s conftest.$ac_objext; then
6450 emacs_alsa_subdir=yes
6451 else
6452 $as_echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6454
6455 emacs_alsa_subdir=no
6456 fi
6457
6458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6459 if test "$emacs_alsa_subdir" != yes; then
6460 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6461 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6462 { (exit 1); exit 1; }; }
6463 fi
6464 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6465 fi
6466
6467 CFLAGS="$SAVE_CFLAGS"
6468 LDFLAGS="$SAVE_LDFLAGS"
6469 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6470 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6471
6472 cat >>confdefs.h <<\_ACEOF
6473 #define HAVE_ALSA 1
6474 _ACEOF
6475
6476 fi
6477
6478 fi
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6506 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6507 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6508 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6509 sys/utsname.h pwd.h
6510 do
6511 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6513 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6514 $as_echo_n "checking for $ac_header... " >&6; }
6515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6516 $as_echo_n "(cached) " >&6
6517 fi
6518 ac_res=`eval 'as_val=${'$as_ac_Header'}
6519 $as_echo "$as_val"'`
6520 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6521 $as_echo "$ac_res" >&6; }
6522 else
6523 # Is the header compilable?
6524 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6525 $as_echo_n "checking $ac_header usability... " >&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 $ac_includes_default
6533 #include <$ac_header>
6534 _ACEOF
6535 rm -f conftest.$ac_objext
6536 if { (ac_try="$ac_compile"
6537 case "(($ac_try" in
6538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6539 *) ac_try_echo=$ac_try;;
6540 esac
6541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6542 $as_echo "$ac_try_echo") >&5
6543 (eval "$ac_compile") 2>conftest.er1
6544 ac_status=$?
6545 grep -v '^ *+' conftest.er1 >conftest.err
6546 rm -f conftest.er1
6547 cat conftest.err >&5
6548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } && {
6550 test -z "$ac_c_werror_flag" ||
6551 test ! -s conftest.err
6552 } && test -s conftest.$ac_objext; then
6553 ac_header_compiler=yes
6554 else
6555 $as_echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6557
6558 ac_header_compiler=no
6559 fi
6560
6561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6562 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6563 $as_echo "$ac_header_compiler" >&6; }
6564
6565 # Is the header present?
6566 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6567 $as_echo_n "checking $ac_header presence... " >&6; }
6568 cat >conftest.$ac_ext <<_ACEOF
6569 /* confdefs.h. */
6570 _ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h. */
6574 #include <$ac_header>
6575 _ACEOF
6576 if { (ac_try="$ac_cpp conftest.$ac_ext"
6577 case "(($ac_try" in
6578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6579 *) ac_try_echo=$ac_try;;
6580 esac
6581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6582 $as_echo "$ac_try_echo") >&5
6583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6584 ac_status=$?
6585 grep -v '^ *+' conftest.er1 >conftest.err
6586 rm -f conftest.er1
6587 cat conftest.err >&5
6588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); } >/dev/null && {
6590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6591 test ! -s conftest.err
6592 }; then
6593 ac_header_preproc=yes
6594 else
6595 $as_echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6597
6598 ac_header_preproc=no
6599 fi
6600
6601 rm -f conftest.err conftest.$ac_ext
6602 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6603 $as_echo "$ac_header_preproc" >&6; }
6604
6605 # So? What about this header?
6606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6607 yes:no: )
6608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6609 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6611 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6612 ac_header_preproc=yes
6613 ;;
6614 no:yes:* )
6615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6616 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6618 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6620 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6622 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6624 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6626 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6627
6628 ;;
6629 esac
6630 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6631 $as_echo_n "checking for $ac_header... " >&6; }
6632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6633 $as_echo_n "(cached) " >&6
6634 else
6635 eval "$as_ac_Header=\$ac_header_preproc"
6636 fi
6637 ac_res=`eval 'as_val=${'$as_ac_Header'}
6638 $as_echo "$as_val"'`
6639 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6640 $as_echo "$ac_res" >&6; }
6641
6642 fi
6643 as_val=`eval 'as_val=${'$as_ac_Header'}
6644 $as_echo "$as_val"'`
6645 if test "x$as_val" = x""yes; then
6646 cat >>confdefs.h <<_ACEOF
6647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6648 _ACEOF
6649
6650 fi
6651
6652 done
6653
6654
6655 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6656 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6657 cat >conftest.$ac_ext <<_ACEOF
6658 /* confdefs.h. */
6659 _ACEOF
6660 cat confdefs.h >>conftest.$ac_ext
6661 cat >>conftest.$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6663 #include <sys/personality.h>
6664 int
6665 main ()
6666 {
6667 personality (PER_LINUX32)
6668 ;
6669 return 0;
6670 }
6671 _ACEOF
6672 rm -f conftest.$ac_objext
6673 if { (ac_try="$ac_compile"
6674 case "(($ac_try" in
6675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6676 *) ac_try_echo=$ac_try;;
6677 esac
6678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6679 $as_echo "$ac_try_echo") >&5
6680 (eval "$ac_compile") 2>conftest.er1
6681 ac_status=$?
6682 grep -v '^ *+' conftest.er1 >conftest.err
6683 rm -f conftest.er1
6684 cat conftest.err >&5
6685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } && {
6687 test -z "$ac_c_werror_flag" ||
6688 test ! -s conftest.err
6689 } && test -s conftest.$ac_objext; then
6690 emacs_cv_personality_linux32=yes
6691 else
6692 $as_echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.$ac_ext >&5
6694
6695 emacs_cv_personality_linux32=no
6696 fi
6697
6698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6699 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6700 $as_echo "$emacs_cv_personality_linux32" >&6; }
6701
6702 if test $emacs_cv_personality_linux32 = yes; then
6703
6704 cat >>confdefs.h <<\_ACEOF
6705 #define HAVE_PERSONALITY_LINUX32 1
6706 _ACEOF
6707
6708 fi
6709
6710
6711 for ac_header in term.h
6712 do
6713 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6714 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6715 $as_echo_n "checking for $ac_header... " >&6; }
6716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6717 $as_echo_n "(cached) " >&6
6718 else
6719 cat >conftest.$ac_ext <<_ACEOF
6720 /* confdefs.h. */
6721 _ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h. */
6725 #include <$ac_header>
6726 _ACEOF
6727 if { (ac_try="$ac_cpp conftest.$ac_ext"
6728 case "(($ac_try" in
6729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6730 *) ac_try_echo=$ac_try;;
6731 esac
6732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6733 $as_echo "$ac_try_echo") >&5
6734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6735 ac_status=$?
6736 grep -v '^ *+' conftest.er1 >conftest.err
6737 rm -f conftest.er1
6738 cat conftest.err >&5
6739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); } >/dev/null && {
6741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6742 test ! -s conftest.err
6743 }; then
6744 eval "$as_ac_Header=yes"
6745 else
6746 $as_echo "$as_me: failed program was:" >&5
6747 sed 's/^/| /' conftest.$ac_ext >&5
6748
6749 eval "$as_ac_Header=no"
6750 fi
6751
6752 rm -f conftest.err conftest.$ac_ext
6753 fi
6754 ac_res=`eval 'as_val=${'$as_ac_Header'}
6755 $as_echo "$as_val"'`
6756 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6757 $as_echo "$ac_res" >&6; }
6758 as_val=`eval 'as_val=${'$as_ac_Header'}
6759 $as_echo "$as_val"'`
6760 if test "x$as_val" = x""yes; then
6761 cat >>confdefs.h <<_ACEOF
6762 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6763 _ACEOF
6764
6765 fi
6766
6767 done
6768
6769 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6770 $as_echo_n "checking for ANSI C header files... " >&6; }
6771 if test "${ac_cv_header_stdc+set}" = set; then
6772 $as_echo_n "(cached) " >&6
6773 else
6774 cat >conftest.$ac_ext <<_ACEOF
6775 /* confdefs.h. */
6776 _ACEOF
6777 cat confdefs.h >>conftest.$ac_ext
6778 cat >>conftest.$ac_ext <<_ACEOF
6779 /* end confdefs.h. */
6780 #include <stdlib.h>
6781 #include <stdarg.h>
6782 #include <string.h>
6783 #include <float.h>
6784
6785 int
6786 main ()
6787 {
6788
6789 ;
6790 return 0;
6791 }
6792 _ACEOF
6793 rm -f conftest.$ac_objext
6794 if { (ac_try="$ac_compile"
6795 case "(($ac_try" in
6796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6797 *) ac_try_echo=$ac_try;;
6798 esac
6799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6800 $as_echo "$ac_try_echo") >&5
6801 (eval "$ac_compile") 2>conftest.er1
6802 ac_status=$?
6803 grep -v '^ *+' conftest.er1 >conftest.err
6804 rm -f conftest.er1
6805 cat conftest.err >&5
6806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); } && {
6808 test -z "$ac_c_werror_flag" ||
6809 test ! -s conftest.err
6810 } && test -s conftest.$ac_objext; then
6811 ac_cv_header_stdc=yes
6812 else
6813 $as_echo "$as_me: failed program was:" >&5
6814 sed 's/^/| /' conftest.$ac_ext >&5
6815
6816 ac_cv_header_stdc=no
6817 fi
6818
6819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6820
6821 if test $ac_cv_header_stdc = yes; then
6822 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6823 cat >conftest.$ac_ext <<_ACEOF
6824 /* confdefs.h. */
6825 _ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6829 #include <string.h>
6830
6831 _ACEOF
6832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6833 $EGREP "memchr" >/dev/null 2>&1; then
6834 :
6835 else
6836 ac_cv_header_stdc=no
6837 fi
6838 rm -f conftest*
6839
6840 fi
6841
6842 if test $ac_cv_header_stdc = yes; then
6843 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6844 cat >conftest.$ac_ext <<_ACEOF
6845 /* confdefs.h. */
6846 _ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6850 #include <stdlib.h>
6851
6852 _ACEOF
6853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6854 $EGREP "free" >/dev/null 2>&1; then
6855 :
6856 else
6857 ac_cv_header_stdc=no
6858 fi
6859 rm -f conftest*
6860
6861 fi
6862
6863 if test $ac_cv_header_stdc = yes; then
6864 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6865 if test "$cross_compiling" = yes; then
6866 :
6867 else
6868 cat >conftest.$ac_ext <<_ACEOF
6869 /* confdefs.h. */
6870 _ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6874 #include <ctype.h>
6875 #include <stdlib.h>
6876 #if ((' ' & 0x0FF) == 0x020)
6877 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6878 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6879 #else
6880 # define ISLOWER(c) \
6881 (('a' <= (c) && (c) <= 'i') \
6882 || ('j' <= (c) && (c) <= 'r') \
6883 || ('s' <= (c) && (c) <= 'z'))
6884 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6885 #endif
6886
6887 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6888 int
6889 main ()
6890 {
6891 int i;
6892 for (i = 0; i < 256; i++)
6893 if (XOR (islower (i), ISLOWER (i))
6894 || toupper (i) != TOUPPER (i))
6895 return 2;
6896 return 0;
6897 }
6898 _ACEOF
6899 rm -f conftest$ac_exeext
6900 if { (ac_try="$ac_link"
6901 case "(($ac_try" in
6902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6903 *) ac_try_echo=$ac_try;;
6904 esac
6905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6906 $as_echo "$ac_try_echo") >&5
6907 (eval "$ac_link") 2>&5
6908 ac_status=$?
6909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6911 { (case "(($ac_try" in
6912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6913 *) ac_try_echo=$ac_try;;
6914 esac
6915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6916 $as_echo "$ac_try_echo") >&5
6917 (eval "$ac_try") 2>&5
6918 ac_status=$?
6919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; }; then
6921 :
6922 else
6923 $as_echo "$as_me: program exited with status $ac_status" >&5
6924 $as_echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6926
6927 ( exit $ac_status )
6928 ac_cv_header_stdc=no
6929 fi
6930 rm -rf conftest.dSYM
6931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6932 fi
6933
6934
6935 fi
6936 fi
6937 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6938 $as_echo "$ac_cv_header_stdc" >&6; }
6939 if test $ac_cv_header_stdc = yes; then
6940
6941 cat >>confdefs.h <<\_ACEOF
6942 #define STDC_HEADERS 1
6943 _ACEOF
6944
6945 fi
6946
6947 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6948 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6949 if test "${ac_cv_header_time+set}" = set; then
6950 $as_echo_n "(cached) " >&6
6951 else
6952 cat >conftest.$ac_ext <<_ACEOF
6953 /* confdefs.h. */
6954 _ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h. */
6958 #include <sys/types.h>
6959 #include <sys/time.h>
6960 #include <time.h>
6961
6962 int
6963 main ()
6964 {
6965 if ((struct tm *) 0)
6966 return 0;
6967 ;
6968 return 0;
6969 }
6970 _ACEOF
6971 rm -f conftest.$ac_objext
6972 if { (ac_try="$ac_compile"
6973 case "(($ac_try" in
6974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6975 *) ac_try_echo=$ac_try;;
6976 esac
6977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6978 $as_echo "$ac_try_echo") >&5
6979 (eval "$ac_compile") 2>conftest.er1
6980 ac_status=$?
6981 grep -v '^ *+' conftest.er1 >conftest.err
6982 rm -f conftest.er1
6983 cat conftest.err >&5
6984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } && {
6986 test -z "$ac_c_werror_flag" ||
6987 test ! -s conftest.err
6988 } && test -s conftest.$ac_objext; then
6989 ac_cv_header_time=yes
6990 else
6991 $as_echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6993
6994 ac_cv_header_time=no
6995 fi
6996
6997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6998 fi
6999 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7000 $as_echo "$ac_cv_header_time" >&6; }
7001 if test $ac_cv_header_time = yes; then
7002
7003 cat >>confdefs.h <<\_ACEOF
7004 #define TIME_WITH_SYS_TIME 1
7005 _ACEOF
7006
7007 fi
7008
7009 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7010 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7011 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7012 $as_echo_n "(cached) " >&6
7013 else
7014 cat >conftest.$ac_ext <<_ACEOF
7015 /* confdefs.h. */
7016 _ACEOF
7017 cat confdefs.h >>conftest.$ac_ext
7018 cat >>conftest.$ac_ext <<_ACEOF
7019 /* end confdefs.h. */
7020 $ac_includes_default
7021 int
7022 main ()
7023 {
7024 #ifndef sys_siglist
7025 (void) sys_siglist;
7026 #endif
7027
7028 ;
7029 return 0;
7030 }
7031 _ACEOF
7032 rm -f conftest.$ac_objext
7033 if { (ac_try="$ac_compile"
7034 case "(($ac_try" in
7035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7036 *) ac_try_echo=$ac_try;;
7037 esac
7038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7039 $as_echo "$ac_try_echo") >&5
7040 (eval "$ac_compile") 2>conftest.er1
7041 ac_status=$?
7042 grep -v '^ *+' conftest.er1 >conftest.err
7043 rm -f conftest.er1
7044 cat conftest.err >&5
7045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } && {
7047 test -z "$ac_c_werror_flag" ||
7048 test ! -s conftest.err
7049 } && test -s conftest.$ac_objext; then
7050 ac_cv_have_decl_sys_siglist=yes
7051 else
7052 $as_echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.$ac_ext >&5
7054
7055 ac_cv_have_decl_sys_siglist=no
7056 fi
7057
7058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7059 fi
7060 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7061 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7062 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
7063
7064 cat >>confdefs.h <<_ACEOF
7065 #define HAVE_DECL_SYS_SIGLIST 1
7066 _ACEOF
7067
7068
7069 else
7070 cat >>confdefs.h <<_ACEOF
7071 #define HAVE_DECL_SYS_SIGLIST 0
7072 _ACEOF
7073
7074
7075 fi
7076
7077
7078 if test $ac_cv_have_decl_sys_siglist != yes; then
7079 # For Tru64, at least:
7080 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7081 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7082 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7083 $as_echo_n "(cached) " >&6
7084 else
7085 cat >conftest.$ac_ext <<_ACEOF
7086 /* confdefs.h. */
7087 _ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7091 $ac_includes_default
7092 int
7093 main ()
7094 {
7095 #ifndef __sys_siglist
7096 (void) __sys_siglist;
7097 #endif
7098
7099 ;
7100 return 0;
7101 }
7102 _ACEOF
7103 rm -f conftest.$ac_objext
7104 if { (ac_try="$ac_compile"
7105 case "(($ac_try" in
7106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7107 *) ac_try_echo=$ac_try;;
7108 esac
7109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7110 $as_echo "$ac_try_echo") >&5
7111 (eval "$ac_compile") 2>conftest.er1
7112 ac_status=$?
7113 grep -v '^ *+' conftest.er1 >conftest.err
7114 rm -f conftest.er1
7115 cat conftest.err >&5
7116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } && {
7118 test -z "$ac_c_werror_flag" ||
7119 test ! -s conftest.err
7120 } && test -s conftest.$ac_objext; then
7121 ac_cv_have_decl___sys_siglist=yes
7122 else
7123 $as_echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.$ac_ext >&5
7125
7126 ac_cv_have_decl___sys_siglist=no
7127 fi
7128
7129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7130 fi
7131 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7132 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7133 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then
7134
7135 cat >>confdefs.h <<_ACEOF
7136 #define HAVE_DECL___SYS_SIGLIST 1
7137 _ACEOF
7138
7139
7140 else
7141 cat >>confdefs.h <<_ACEOF
7142 #define HAVE_DECL___SYS_SIGLIST 0
7143 _ACEOF
7144
7145
7146 fi
7147
7148
7149 if test $ac_cv_have_decl___sys_siglist = yes; then
7150
7151 cat >>confdefs.h <<\_ACEOF
7152 #define sys_siglist __sys_siglist
7153 _ACEOF
7154
7155 fi
7156 fi
7157 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7158 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7159 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7160 $as_echo_n "(cached) " >&6
7161 else
7162 cat >conftest.$ac_ext <<_ACEOF
7163 /* confdefs.h. */
7164 _ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7168 #include <sys/types.h>
7169 #include <sys/wait.h>
7170 #ifndef WEXITSTATUS
7171 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7172 #endif
7173 #ifndef WIFEXITED
7174 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7175 #endif
7176
7177 int
7178 main ()
7179 {
7180 int s;
7181 wait (&s);
7182 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7183 ;
7184 return 0;
7185 }
7186 _ACEOF
7187 rm -f conftest.$ac_objext
7188 if { (ac_try="$ac_compile"
7189 case "(($ac_try" in
7190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7191 *) ac_try_echo=$ac_try;;
7192 esac
7193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7194 $as_echo "$ac_try_echo") >&5
7195 (eval "$ac_compile") 2>conftest.er1
7196 ac_status=$?
7197 grep -v '^ *+' conftest.er1 >conftest.err
7198 rm -f conftest.er1
7199 cat conftest.err >&5
7200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } && {
7202 test -z "$ac_c_werror_flag" ||
7203 test ! -s conftest.err
7204 } && test -s conftest.$ac_objext; then
7205 ac_cv_header_sys_wait_h=yes
7206 else
7207 $as_echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7209
7210 ac_cv_header_sys_wait_h=no
7211 fi
7212
7213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7214 fi
7215 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7216 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7217 if test $ac_cv_header_sys_wait_h = yes; then
7218
7219 cat >>confdefs.h <<\_ACEOF
7220 #define HAVE_SYS_WAIT_H 1
7221 _ACEOF
7222
7223 fi
7224
7225
7226 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7227 $as_echo_n "checking for struct utimbuf... " >&6; }
7228 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7229 $as_echo_n "(cached) " >&6
7230 else
7231 cat >conftest.$ac_ext <<_ACEOF
7232 /* confdefs.h. */
7233 _ACEOF
7234 cat confdefs.h >>conftest.$ac_ext
7235 cat >>conftest.$ac_ext <<_ACEOF
7236 /* end confdefs.h. */
7237 #ifdef TIME_WITH_SYS_TIME
7238 #include <sys/time.h>
7239 #include <time.h>
7240 #else
7241 #ifdef HAVE_SYS_TIME_H
7242 #include <sys/time.h>
7243 #else
7244 #include <time.h>
7245 #endif
7246 #endif
7247 #ifdef HAVE_UTIME_H
7248 #include <utime.h>
7249 #endif
7250 int
7251 main ()
7252 {
7253 static struct utimbuf x; x.actime = x.modtime;
7254 ;
7255 return 0;
7256 }
7257 _ACEOF
7258 rm -f conftest.$ac_objext
7259 if { (ac_try="$ac_compile"
7260 case "(($ac_try" in
7261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262 *) ac_try_echo=$ac_try;;
7263 esac
7264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7265 $as_echo "$ac_try_echo") >&5
7266 (eval "$ac_compile") 2>conftest.er1
7267 ac_status=$?
7268 grep -v '^ *+' conftest.er1 >conftest.err
7269 rm -f conftest.er1
7270 cat conftest.err >&5
7271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } && {
7273 test -z "$ac_c_werror_flag" ||
7274 test ! -s conftest.err
7275 } && test -s conftest.$ac_objext; then
7276 emacs_cv_struct_utimbuf=yes
7277 else
7278 $as_echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.$ac_ext >&5
7280
7281 emacs_cv_struct_utimbuf=no
7282 fi
7283
7284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7285 fi
7286 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7287 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7288 if test $emacs_cv_struct_utimbuf = yes; then
7289
7290 cat >>confdefs.h <<\_ACEOF
7291 #define HAVE_STRUCT_UTIMBUF 1
7292 _ACEOF
7293
7294 fi
7295
7296 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7297 $as_echo_n "checking return type of signal handlers... " >&6; }
7298 if test "${ac_cv_type_signal+set}" = set; then
7299 $as_echo_n "(cached) " >&6
7300 else
7301 cat >conftest.$ac_ext <<_ACEOF
7302 /* confdefs.h. */
7303 _ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7307 #include <sys/types.h>
7308 #include <signal.h>
7309
7310 int
7311 main ()
7312 {
7313 return *(signal (0, 0)) (0) == 1;
7314 ;
7315 return 0;
7316 }
7317 _ACEOF
7318 rm -f conftest.$ac_objext
7319 if { (ac_try="$ac_compile"
7320 case "(($ac_try" in
7321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7322 *) ac_try_echo=$ac_try;;
7323 esac
7324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7325 $as_echo "$ac_try_echo") >&5
7326 (eval "$ac_compile") 2>conftest.er1
7327 ac_status=$?
7328 grep -v '^ *+' conftest.er1 >conftest.err
7329 rm -f conftest.er1
7330 cat conftest.err >&5
7331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } && {
7333 test -z "$ac_c_werror_flag" ||
7334 test ! -s conftest.err
7335 } && test -s conftest.$ac_objext; then
7336 ac_cv_type_signal=int
7337 else
7338 $as_echo "$as_me: failed program was:" >&5
7339 sed 's/^/| /' conftest.$ac_ext >&5
7340
7341 ac_cv_type_signal=void
7342 fi
7343
7344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345 fi
7346 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7347 $as_echo "$ac_cv_type_signal" >&6; }
7348
7349 cat >>confdefs.h <<_ACEOF
7350 #define RETSIGTYPE $ac_cv_type_signal
7351 _ACEOF
7352
7353
7354
7355 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7356 $as_echo_n "checking for speed_t... " >&6; }
7357 if test "${emacs_cv_speed_t+set}" = set; then
7358 $as_echo_n "(cached) " >&6
7359 else
7360 cat >conftest.$ac_ext <<_ACEOF
7361 /* confdefs.h. */
7362 _ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h. */
7366 #include <termios.h>
7367 int
7368 main ()
7369 {
7370 speed_t x = 1;
7371 ;
7372 return 0;
7373 }
7374 _ACEOF
7375 rm -f conftest.$ac_objext
7376 if { (ac_try="$ac_compile"
7377 case "(($ac_try" in
7378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7379 *) ac_try_echo=$ac_try;;
7380 esac
7381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7382 $as_echo "$ac_try_echo") >&5
7383 (eval "$ac_compile") 2>conftest.er1
7384 ac_status=$?
7385 grep -v '^ *+' conftest.er1 >conftest.err
7386 rm -f conftest.er1
7387 cat conftest.err >&5
7388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && {
7390 test -z "$ac_c_werror_flag" ||
7391 test ! -s conftest.err
7392 } && test -s conftest.$ac_objext; then
7393 emacs_cv_speed_t=yes
7394 else
7395 $as_echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.$ac_ext >&5
7397
7398 emacs_cv_speed_t=no
7399 fi
7400
7401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7402 fi
7403 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7404 $as_echo "$emacs_cv_speed_t" >&6; }
7405 if test $emacs_cv_speed_t = yes; then
7406
7407 cat >>confdefs.h <<\_ACEOF
7408 #define HAVE_SPEED_T 1
7409 _ACEOF
7410
7411 fi
7412
7413 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7414 $as_echo_n "checking for struct timeval... " >&6; }
7415 if test "${emacs_cv_struct_timeval+set}" = set; then
7416 $as_echo_n "(cached) " >&6
7417 else
7418 cat >conftest.$ac_ext <<_ACEOF
7419 /* confdefs.h. */
7420 _ACEOF
7421 cat confdefs.h >>conftest.$ac_ext
7422 cat >>conftest.$ac_ext <<_ACEOF
7423 /* end confdefs.h. */
7424 #ifdef TIME_WITH_SYS_TIME
7425 #include <sys/time.h>
7426 #include <time.h>
7427 #else
7428 #ifdef HAVE_SYS_TIME_H
7429 #include <sys/time.h>
7430 #else
7431 #include <time.h>
7432 #endif
7433 #endif
7434 int
7435 main ()
7436 {
7437 static struct timeval x; x.tv_sec = x.tv_usec;
7438 ;
7439 return 0;
7440 }
7441 _ACEOF
7442 rm -f conftest.$ac_objext
7443 if { (ac_try="$ac_compile"
7444 case "(($ac_try" in
7445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7446 *) ac_try_echo=$ac_try;;
7447 esac
7448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7449 $as_echo "$ac_try_echo") >&5
7450 (eval "$ac_compile") 2>conftest.er1
7451 ac_status=$?
7452 grep -v '^ *+' conftest.er1 >conftest.err
7453 rm -f conftest.er1
7454 cat conftest.err >&5
7455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); } && {
7457 test -z "$ac_c_werror_flag" ||
7458 test ! -s conftest.err
7459 } && test -s conftest.$ac_objext; then
7460 emacs_cv_struct_timeval=yes
7461 else
7462 $as_echo "$as_me: failed program was:" >&5
7463 sed 's/^/| /' conftest.$ac_ext >&5
7464
7465 emacs_cv_struct_timeval=no
7466 fi
7467
7468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469 fi
7470 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7471 $as_echo "$emacs_cv_struct_timeval" >&6; }
7472 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7473 if test $emacs_cv_struct_timeval = yes; then
7474
7475 cat >>confdefs.h <<\_ACEOF
7476 #define HAVE_TIMEVAL 1
7477 _ACEOF
7478
7479 fi
7480
7481 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7482 $as_echo_n "checking for struct exception... " >&6; }
7483 if test "${emacs_cv_struct_exception+set}" = set; then
7484 $as_echo_n "(cached) " >&6
7485 else
7486 cat >conftest.$ac_ext <<_ACEOF
7487 /* confdefs.h. */
7488 _ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7492 #include <math.h>
7493 int
7494 main ()
7495 {
7496 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7497 ;
7498 return 0;
7499 }
7500 _ACEOF
7501 rm -f conftest.$ac_objext
7502 if { (ac_try="$ac_compile"
7503 case "(($ac_try" in
7504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7505 *) ac_try_echo=$ac_try;;
7506 esac
7507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7508 $as_echo "$ac_try_echo") >&5
7509 (eval "$ac_compile") 2>conftest.er1
7510 ac_status=$?
7511 grep -v '^ *+' conftest.er1 >conftest.err
7512 rm -f conftest.er1
7513 cat conftest.err >&5
7514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } && {
7516 test -z "$ac_c_werror_flag" ||
7517 test ! -s conftest.err
7518 } && test -s conftest.$ac_objext; then
7519 emacs_cv_struct_exception=yes
7520 else
7521 $as_echo "$as_me: failed program was:" >&5
7522 sed 's/^/| /' conftest.$ac_ext >&5
7523
7524 emacs_cv_struct_exception=no
7525 fi
7526
7527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7528 fi
7529 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7530 $as_echo "$emacs_cv_struct_exception" >&6; }
7531 HAVE_EXCEPTION=$emacs_cv_struct_exception
7532 if test $emacs_cv_struct_exception != yes; then
7533
7534 cat >>confdefs.h <<\_ACEOF
7535 #define NO_MATHERR 1
7536 _ACEOF
7537
7538 fi
7539
7540
7541 for ac_header in sys/socket.h
7542 do
7543 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7545 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7546 $as_echo_n "checking for $ac_header... " >&6; }
7547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7548 $as_echo_n "(cached) " >&6
7549 fi
7550 ac_res=`eval 'as_val=${'$as_ac_Header'}
7551 $as_echo "$as_val"'`
7552 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7553 $as_echo "$ac_res" >&6; }
7554 else
7555 # Is the header compilable?
7556 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7557 $as_echo_n "checking $ac_header usability... " >&6; }
7558 cat >conftest.$ac_ext <<_ACEOF
7559 /* confdefs.h. */
7560 _ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7564 $ac_includes_default
7565 #include <$ac_header>
7566 _ACEOF
7567 rm -f conftest.$ac_objext
7568 if { (ac_try="$ac_compile"
7569 case "(($ac_try" in
7570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7571 *) ac_try_echo=$ac_try;;
7572 esac
7573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7574 $as_echo "$ac_try_echo") >&5
7575 (eval "$ac_compile") 2>conftest.er1
7576 ac_status=$?
7577 grep -v '^ *+' conftest.er1 >conftest.err
7578 rm -f conftest.er1
7579 cat conftest.err >&5
7580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); } && {
7582 test -z "$ac_c_werror_flag" ||
7583 test ! -s conftest.err
7584 } && test -s conftest.$ac_objext; then
7585 ac_header_compiler=yes
7586 else
7587 $as_echo "$as_me: failed program was:" >&5
7588 sed 's/^/| /' conftest.$ac_ext >&5
7589
7590 ac_header_compiler=no
7591 fi
7592
7593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7594 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7595 $as_echo "$ac_header_compiler" >&6; }
7596
7597 # Is the header present?
7598 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7599 $as_echo_n "checking $ac_header presence... " >&6; }
7600 cat >conftest.$ac_ext <<_ACEOF
7601 /* confdefs.h. */
7602 _ACEOF
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h. */
7606 #include <$ac_header>
7607 _ACEOF
7608 if { (ac_try="$ac_cpp conftest.$ac_ext"
7609 case "(($ac_try" in
7610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7611 *) ac_try_echo=$ac_try;;
7612 esac
7613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7614 $as_echo "$ac_try_echo") >&5
7615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7616 ac_status=$?
7617 grep -v '^ *+' conftest.er1 >conftest.err
7618 rm -f conftest.er1
7619 cat conftest.err >&5
7620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } >/dev/null && {
7622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7623 test ! -s conftest.err
7624 }; then
7625 ac_header_preproc=yes
7626 else
7627 $as_echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7629
7630 ac_header_preproc=no
7631 fi
7632
7633 rm -f conftest.err conftest.$ac_ext
7634 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7635 $as_echo "$ac_header_preproc" >&6; }
7636
7637 # So? What about this header?
7638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7639 yes:no: )
7640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7641 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7643 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7644 ac_header_preproc=yes
7645 ;;
7646 no:yes:* )
7647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7648 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7650 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7651 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7652 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7653 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7654 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7656 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7657 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7658 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7659
7660 ;;
7661 esac
7662 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7663 $as_echo_n "checking for $ac_header... " >&6; }
7664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7665 $as_echo_n "(cached) " >&6
7666 else
7667 eval "$as_ac_Header=\$ac_header_preproc"
7668 fi
7669 ac_res=`eval 'as_val=${'$as_ac_Header'}
7670 $as_echo "$as_val"'`
7671 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7672 $as_echo "$ac_res" >&6; }
7673
7674 fi
7675 as_val=`eval 'as_val=${'$as_ac_Header'}
7676 $as_echo "$as_val"'`
7677 if test "x$as_val" = x""yes; then
7678 cat >>confdefs.h <<_ACEOF
7679 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7680 _ACEOF
7681
7682 fi
7683
7684 done
7685
7686
7687 for ac_header in net/if.h
7688 do
7689 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7690 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7691 $as_echo_n "checking for $ac_header... " >&6; }
7692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7693 $as_echo_n "(cached) " >&6
7694 else
7695 cat >conftest.$ac_ext <<_ACEOF
7696 /* confdefs.h. */
7697 _ACEOF
7698 cat confdefs.h >>conftest.$ac_ext
7699 cat >>conftest.$ac_ext <<_ACEOF
7700 /* end confdefs.h. */
7701 $ac_includes_default
7702 #if HAVE_SYS_SOCKET_H
7703 #include <sys/socket.h>
7704 #endif
7705
7706 #include <$ac_header>
7707 _ACEOF
7708 rm -f conftest.$ac_objext
7709 if { (ac_try="$ac_compile"
7710 case "(($ac_try" in
7711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7712 *) ac_try_echo=$ac_try;;
7713 esac
7714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7715 $as_echo "$ac_try_echo") >&5
7716 (eval "$ac_compile") 2>conftest.er1
7717 ac_status=$?
7718 grep -v '^ *+' conftest.er1 >conftest.err
7719 rm -f conftest.er1
7720 cat conftest.err >&5
7721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); } && {
7723 test -z "$ac_c_werror_flag" ||
7724 test ! -s conftest.err
7725 } && test -s conftest.$ac_objext; then
7726 eval "$as_ac_Header=yes"
7727 else
7728 $as_echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7730
7731 eval "$as_ac_Header=no"
7732 fi
7733
7734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7735 fi
7736 ac_res=`eval 'as_val=${'$as_ac_Header'}
7737 $as_echo "$as_val"'`
7738 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7739 $as_echo "$ac_res" >&6; }
7740 as_val=`eval 'as_val=${'$as_ac_Header'}
7741 $as_echo "$as_val"'`
7742 if test "x$as_val" = x""yes; then
7743 cat >>confdefs.h <<_ACEOF
7744 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7745 _ACEOF
7746
7747 fi
7748
7749 done
7750
7751
7752 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7753 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7754 if test "${ac_cv_struct_tm+set}" = set; then
7755 $as_echo_n "(cached) " >&6
7756 else
7757 cat >conftest.$ac_ext <<_ACEOF
7758 /* confdefs.h. */
7759 _ACEOF
7760 cat confdefs.h >>conftest.$ac_ext
7761 cat >>conftest.$ac_ext <<_ACEOF
7762 /* end confdefs.h. */
7763 #include <sys/types.h>
7764 #include <time.h>
7765
7766 int
7767 main ()
7768 {
7769 struct tm tm;
7770 int *p = &tm.tm_sec;
7771 return !p;
7772 ;
7773 return 0;
7774 }
7775 _ACEOF
7776 rm -f conftest.$ac_objext
7777 if { (ac_try="$ac_compile"
7778 case "(($ac_try" in
7779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7780 *) ac_try_echo=$ac_try;;
7781 esac
7782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7783 $as_echo "$ac_try_echo") >&5
7784 (eval "$ac_compile") 2>conftest.er1
7785 ac_status=$?
7786 grep -v '^ *+' conftest.er1 >conftest.err
7787 rm -f conftest.er1
7788 cat conftest.err >&5
7789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); } && {
7791 test -z "$ac_c_werror_flag" ||
7792 test ! -s conftest.err
7793 } && test -s conftest.$ac_objext; then
7794 ac_cv_struct_tm=time.h
7795 else
7796 $as_echo "$as_me: failed program was:" >&5
7797 sed 's/^/| /' conftest.$ac_ext >&5
7798
7799 ac_cv_struct_tm=sys/time.h
7800 fi
7801
7802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7803 fi
7804 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7805 $as_echo "$ac_cv_struct_tm" >&6; }
7806 if test $ac_cv_struct_tm = sys/time.h; then
7807
7808 cat >>confdefs.h <<\_ACEOF
7809 #define TM_IN_SYS_TIME 1
7810 _ACEOF
7811
7812 fi
7813
7814 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7815 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
7816 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7817 $as_echo_n "(cached) " >&6
7818 else
7819 cat >conftest.$ac_ext <<_ACEOF
7820 /* confdefs.h. */
7821 _ACEOF
7822 cat confdefs.h >>conftest.$ac_ext
7823 cat >>conftest.$ac_ext <<_ACEOF
7824 /* end confdefs.h. */
7825 #include <sys/types.h>
7826 #include <$ac_cv_struct_tm>
7827
7828
7829 int
7830 main ()
7831 {
7832 static struct tm ac_aggr;
7833 if (ac_aggr.tm_zone)
7834 return 0;
7835 ;
7836 return 0;
7837 }
7838 _ACEOF
7839 rm -f conftest.$ac_objext
7840 if { (ac_try="$ac_compile"
7841 case "(($ac_try" in
7842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7843 *) ac_try_echo=$ac_try;;
7844 esac
7845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7846 $as_echo "$ac_try_echo") >&5
7847 (eval "$ac_compile") 2>conftest.er1
7848 ac_status=$?
7849 grep -v '^ *+' conftest.er1 >conftest.err
7850 rm -f conftest.er1
7851 cat conftest.err >&5
7852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } && {
7854 test -z "$ac_c_werror_flag" ||
7855 test ! -s conftest.err
7856 } && test -s conftest.$ac_objext; then
7857 ac_cv_member_struct_tm_tm_zone=yes
7858 else
7859 $as_echo "$as_me: failed program was:" >&5
7860 sed 's/^/| /' conftest.$ac_ext >&5
7861
7862 cat >conftest.$ac_ext <<_ACEOF
7863 /* confdefs.h. */
7864 _ACEOF
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7868 #include <sys/types.h>
7869 #include <$ac_cv_struct_tm>
7870
7871
7872 int
7873 main ()
7874 {
7875 static struct tm ac_aggr;
7876 if (sizeof ac_aggr.tm_zone)
7877 return 0;
7878 ;
7879 return 0;
7880 }
7881 _ACEOF
7882 rm -f conftest.$ac_objext
7883 if { (ac_try="$ac_compile"
7884 case "(($ac_try" in
7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886 *) ac_try_echo=$ac_try;;
7887 esac
7888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7889 $as_echo "$ac_try_echo") >&5
7890 (eval "$ac_compile") 2>conftest.er1
7891 ac_status=$?
7892 grep -v '^ *+' conftest.er1 >conftest.err
7893 rm -f conftest.er1
7894 cat conftest.err >&5
7895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); } && {
7897 test -z "$ac_c_werror_flag" ||
7898 test ! -s conftest.err
7899 } && test -s conftest.$ac_objext; then
7900 ac_cv_member_struct_tm_tm_zone=yes
7901 else
7902 $as_echo "$as_me: failed program was:" >&5
7903 sed 's/^/| /' conftest.$ac_ext >&5
7904
7905 ac_cv_member_struct_tm_tm_zone=no
7906 fi
7907
7908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7909 fi
7910
7911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7912 fi
7913 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7914 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
7915 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
7916
7917 cat >>confdefs.h <<_ACEOF
7918 #define HAVE_STRUCT_TM_TM_ZONE 1
7919 _ACEOF
7920
7921
7922 fi
7923
7924 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7925
7926 cat >>confdefs.h <<\_ACEOF
7927 #define HAVE_TM_ZONE 1
7928 _ACEOF
7929
7930 else
7931 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7932 $as_echo_n "checking whether tzname is declared... " >&6; }
7933 if test "${ac_cv_have_decl_tzname+set}" = set; then
7934 $as_echo_n "(cached) " >&6
7935 else
7936 cat >conftest.$ac_ext <<_ACEOF
7937 /* confdefs.h. */
7938 _ACEOF
7939 cat confdefs.h >>conftest.$ac_ext
7940 cat >>conftest.$ac_ext <<_ACEOF
7941 /* end confdefs.h. */
7942 #include <time.h>
7943
7944 int
7945 main ()
7946 {
7947 #ifndef tzname
7948 (void) tzname;
7949 #endif
7950
7951 ;
7952 return 0;
7953 }
7954 _ACEOF
7955 rm -f conftest.$ac_objext
7956 if { (ac_try="$ac_compile"
7957 case "(($ac_try" in
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7960 esac
7961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7962 $as_echo "$ac_try_echo") >&5
7963 (eval "$ac_compile") 2>conftest.er1
7964 ac_status=$?
7965 grep -v '^ *+' conftest.er1 >conftest.err
7966 rm -f conftest.er1
7967 cat conftest.err >&5
7968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } && {
7970 test -z "$ac_c_werror_flag" ||
7971 test ! -s conftest.err
7972 } && test -s conftest.$ac_objext; then
7973 ac_cv_have_decl_tzname=yes
7974 else
7975 $as_echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.$ac_ext >&5
7977
7978 ac_cv_have_decl_tzname=no
7979 fi
7980
7981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7982 fi
7983 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7984 $as_echo "$ac_cv_have_decl_tzname" >&6; }
7985 if test "x$ac_cv_have_decl_tzname" = x""yes; then
7986
7987 cat >>confdefs.h <<_ACEOF
7988 #define HAVE_DECL_TZNAME 1
7989 _ACEOF
7990
7991
7992 else
7993 cat >>confdefs.h <<_ACEOF
7994 #define HAVE_DECL_TZNAME 0
7995 _ACEOF
7996
7997
7998 fi
7999
8000
8001 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8002 $as_echo_n "checking for tzname... " >&6; }
8003 if test "${ac_cv_var_tzname+set}" = set; then
8004 $as_echo_n "(cached) " >&6
8005 else
8006 cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h. */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 #include <time.h>
8013 #if !HAVE_DECL_TZNAME
8014 extern char *tzname[];
8015 #endif
8016
8017 int
8018 main ()
8019 {
8020 return tzname[0][0];
8021 ;
8022 return 0;
8023 }
8024 _ACEOF
8025 rm -f conftest.$ac_objext conftest$ac_exeext
8026 if { (ac_try="$ac_link"
8027 case "(($ac_try" in
8028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029 *) ac_try_echo=$ac_try;;
8030 esac
8031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8032 $as_echo "$ac_try_echo") >&5
8033 (eval "$ac_link") 2>conftest.er1
8034 ac_status=$?
8035 grep -v '^ *+' conftest.er1 >conftest.err
8036 rm -f conftest.er1
8037 cat conftest.err >&5
8038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } && {
8040 test -z "$ac_c_werror_flag" ||
8041 test ! -s conftest.err
8042 } && test -s conftest$ac_exeext && {
8043 test "$cross_compiling" = yes ||
8044 $as_test_x conftest$ac_exeext
8045 }; then
8046 ac_cv_var_tzname=yes
8047 else
8048 $as_echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8050
8051 ac_cv_var_tzname=no
8052 fi
8053
8054 rm -rf conftest.dSYM
8055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8056 conftest$ac_exeext conftest.$ac_ext
8057 fi
8058 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8059 $as_echo "$ac_cv_var_tzname" >&6; }
8060 if test $ac_cv_var_tzname = yes; then
8061
8062 cat >>confdefs.h <<\_ACEOF
8063 #define HAVE_TZNAME 1
8064 _ACEOF
8065
8066 fi
8067 fi
8068
8069 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8070 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8071 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8072 $as_echo_n "(cached) " >&6
8073 else
8074 cat >conftest.$ac_ext <<_ACEOF
8075 /* confdefs.h. */
8076 _ACEOF
8077 cat confdefs.h >>conftest.$ac_ext
8078 cat >>conftest.$ac_ext <<_ACEOF
8079 /* end confdefs.h. */
8080 #include <time.h>
8081
8082 int
8083 main ()
8084 {
8085 static struct tm ac_aggr;
8086 if (ac_aggr.tm_gmtoff)
8087 return 0;
8088 ;
8089 return 0;
8090 }
8091 _ACEOF
8092 rm -f conftest.$ac_objext
8093 if { (ac_try="$ac_compile"
8094 case "(($ac_try" in
8095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8096 *) ac_try_echo=$ac_try;;
8097 esac
8098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8099 $as_echo "$ac_try_echo") >&5
8100 (eval "$ac_compile") 2>conftest.er1
8101 ac_status=$?
8102 grep -v '^ *+' conftest.er1 >conftest.err
8103 rm -f conftest.er1
8104 cat conftest.err >&5
8105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } && {
8107 test -z "$ac_c_werror_flag" ||
8108 test ! -s conftest.err
8109 } && test -s conftest.$ac_objext; then
8110 ac_cv_member_struct_tm_tm_gmtoff=yes
8111 else
8112 $as_echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8114
8115 cat >conftest.$ac_ext <<_ACEOF
8116 /* confdefs.h. */
8117 _ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h. */
8121 #include <time.h>
8122
8123 int
8124 main ()
8125 {
8126 static struct tm ac_aggr;
8127 if (sizeof ac_aggr.tm_gmtoff)
8128 return 0;
8129 ;
8130 return 0;
8131 }
8132 _ACEOF
8133 rm -f conftest.$ac_objext
8134 if { (ac_try="$ac_compile"
8135 case "(($ac_try" in
8136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8137 *) ac_try_echo=$ac_try;;
8138 esac
8139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8140 $as_echo "$ac_try_echo") >&5
8141 (eval "$ac_compile") 2>conftest.er1
8142 ac_status=$?
8143 grep -v '^ *+' conftest.er1 >conftest.err
8144 rm -f conftest.er1
8145 cat conftest.err >&5
8146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); } && {
8148 test -z "$ac_c_werror_flag" ||
8149 test ! -s conftest.err
8150 } && test -s conftest.$ac_objext; then
8151 ac_cv_member_struct_tm_tm_gmtoff=yes
8152 else
8153 $as_echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8155
8156 ac_cv_member_struct_tm_tm_gmtoff=no
8157 fi
8158
8159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8160 fi
8161
8162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8163 fi
8164 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8165 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8166 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then
8167
8168 cat >>confdefs.h <<\_ACEOF
8169 #define HAVE_TM_GMTOFF 1
8170 _ACEOF
8171
8172 fi
8173
8174 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8175 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8176 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8177 $as_echo_n "(cached) " >&6
8178 else
8179 cat >conftest.$ac_ext <<_ACEOF
8180 /* confdefs.h. */
8181 _ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h. */
8185 $ac_includes_default
8186 #if HAVE_SYS_SOCKET_H
8187 #include <sys/socket.h>
8188 #endif
8189 #if HAVE_NET_IF_H
8190 #include <net/if.h>
8191 #endif
8192
8193 int
8194 main ()
8195 {
8196 static struct ifreq ac_aggr;
8197 if (ac_aggr.ifr_flags)
8198 return 0;
8199 ;
8200 return 0;
8201 }
8202 _ACEOF
8203 rm -f conftest.$ac_objext
8204 if { (ac_try="$ac_compile"
8205 case "(($ac_try" in
8206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207 *) ac_try_echo=$ac_try;;
8208 esac
8209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8210 $as_echo "$ac_try_echo") >&5
8211 (eval "$ac_compile") 2>conftest.er1
8212 ac_status=$?
8213 grep -v '^ *+' conftest.er1 >conftest.err
8214 rm -f conftest.er1
8215 cat conftest.err >&5
8216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } && {
8218 test -z "$ac_c_werror_flag" ||
8219 test ! -s conftest.err
8220 } && test -s conftest.$ac_objext; then
8221 ac_cv_member_struct_ifreq_ifr_flags=yes
8222 else
8223 $as_echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8225
8226 cat >conftest.$ac_ext <<_ACEOF
8227 /* confdefs.h. */
8228 _ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h. */
8232 $ac_includes_default
8233 #if HAVE_SYS_SOCKET_H
8234 #include <sys/socket.h>
8235 #endif
8236 #if HAVE_NET_IF_H
8237 #include <net/if.h>
8238 #endif
8239
8240 int
8241 main ()
8242 {
8243 static struct ifreq ac_aggr;
8244 if (sizeof ac_aggr.ifr_flags)
8245 return 0;
8246 ;
8247 return 0;
8248 }
8249 _ACEOF
8250 rm -f conftest.$ac_objext
8251 if { (ac_try="$ac_compile"
8252 case "(($ac_try" in
8253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8254 *) ac_try_echo=$ac_try;;
8255 esac
8256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8257 $as_echo "$ac_try_echo") >&5
8258 (eval "$ac_compile") 2>conftest.er1
8259 ac_status=$?
8260 grep -v '^ *+' conftest.er1 >conftest.err
8261 rm -f conftest.er1
8262 cat conftest.err >&5
8263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); } && {
8265 test -z "$ac_c_werror_flag" ||
8266 test ! -s conftest.err
8267 } && test -s conftest.$ac_objext; then
8268 ac_cv_member_struct_ifreq_ifr_flags=yes
8269 else
8270 $as_echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8272
8273 ac_cv_member_struct_ifreq_ifr_flags=no
8274 fi
8275
8276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8277 fi
8278
8279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8280 fi
8281 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8282 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8283 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then
8284
8285 cat >>confdefs.h <<_ACEOF
8286 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8287 _ACEOF
8288
8289
8290 fi
8291 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8292 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8293 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8294 $as_echo_n "(cached) " >&6
8295 else
8296 cat >conftest.$ac_ext <<_ACEOF
8297 /* confdefs.h. */
8298 _ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8302 $ac_includes_default
8303 #if HAVE_SYS_SOCKET_H
8304 #include <sys/socket.h>
8305 #endif
8306 #if HAVE_NET_IF_H
8307 #include <net/if.h>
8308 #endif
8309
8310 int
8311 main ()
8312 {
8313 static struct ifreq ac_aggr;
8314 if (ac_aggr.ifr_hwaddr)
8315 return 0;
8316 ;
8317 return 0;
8318 }
8319 _ACEOF
8320 rm -f conftest.$ac_objext
8321 if { (ac_try="$ac_compile"
8322 case "(($ac_try" in
8323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8324 *) ac_try_echo=$ac_try;;
8325 esac
8326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8327 $as_echo "$ac_try_echo") >&5
8328 (eval "$ac_compile") 2>conftest.er1
8329 ac_status=$?
8330 grep -v '^ *+' conftest.er1 >conftest.err
8331 rm -f conftest.er1
8332 cat conftest.err >&5
8333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } && {
8335 test -z "$ac_c_werror_flag" ||
8336 test ! -s conftest.err
8337 } && test -s conftest.$ac_objext; then
8338 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8339 else
8340 $as_echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8342
8343 cat >conftest.$ac_ext <<_ACEOF
8344 /* confdefs.h. */
8345 _ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8349 $ac_includes_default
8350 #if HAVE_SYS_SOCKET_H
8351 #include <sys/socket.h>
8352 #endif
8353 #if HAVE_NET_IF_H
8354 #include <net/if.h>
8355 #endif
8356
8357 int
8358 main ()
8359 {
8360 static struct ifreq ac_aggr;
8361 if (sizeof ac_aggr.ifr_hwaddr)
8362 return 0;
8363 ;
8364 return 0;
8365 }
8366 _ACEOF
8367 rm -f conftest.$ac_objext
8368 if { (ac_try="$ac_compile"
8369 case "(($ac_try" in
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8372 esac
8373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8374 $as_echo "$ac_try_echo") >&5
8375 (eval "$ac_compile") 2>conftest.er1
8376 ac_status=$?
8377 grep -v '^ *+' conftest.er1 >conftest.err
8378 rm -f conftest.er1
8379 cat conftest.err >&5
8380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } && {
8382 test -z "$ac_c_werror_flag" ||
8383 test ! -s conftest.err
8384 } && test -s conftest.$ac_objext; then
8385 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8386 else
8387 $as_echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8389
8390 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8391 fi
8392
8393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 fi
8395
8396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8397 fi
8398 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8399 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8400 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then
8401
8402 cat >>confdefs.h <<_ACEOF
8403 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8404 _ACEOF
8405
8406
8407 fi
8408 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8409 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8410 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8411 $as_echo_n "(cached) " >&6
8412 else
8413 cat >conftest.$ac_ext <<_ACEOF
8414 /* confdefs.h. */
8415 _ACEOF
8416 cat confdefs.h >>conftest.$ac_ext
8417 cat >>conftest.$ac_ext <<_ACEOF
8418 /* end confdefs.h. */
8419 $ac_includes_default
8420 #if HAVE_SYS_SOCKET_H
8421 #include <sys/socket.h>
8422 #endif
8423 #if HAVE_NET_IF_H
8424 #include <net/if.h>
8425 #endif
8426
8427 int
8428 main ()
8429 {
8430 static struct ifreq ac_aggr;
8431 if (ac_aggr.ifr_netmask)
8432 return 0;
8433 ;
8434 return 0;
8435 }
8436 _ACEOF
8437 rm -f conftest.$ac_objext
8438 if { (ac_try="$ac_compile"
8439 case "(($ac_try" in
8440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8442 esac
8443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8444 $as_echo "$ac_try_echo") >&5
8445 (eval "$ac_compile") 2>conftest.er1
8446 ac_status=$?
8447 grep -v '^ *+' conftest.er1 >conftest.err
8448 rm -f conftest.er1
8449 cat conftest.err >&5
8450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } && {
8452 test -z "$ac_c_werror_flag" ||
8453 test ! -s conftest.err
8454 } && test -s conftest.$ac_objext; then
8455 ac_cv_member_struct_ifreq_ifr_netmask=yes
8456 else
8457 $as_echo "$as_me: failed program was:" >&5
8458 sed 's/^/| /' conftest.$ac_ext >&5
8459
8460 cat >conftest.$ac_ext <<_ACEOF
8461 /* confdefs.h. */
8462 _ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h. */
8466 $ac_includes_default
8467 #if HAVE_SYS_SOCKET_H
8468 #include <sys/socket.h>
8469 #endif
8470 #if HAVE_NET_IF_H
8471 #include <net/if.h>
8472 #endif
8473
8474 int
8475 main ()
8476 {
8477 static struct ifreq ac_aggr;
8478 if (sizeof ac_aggr.ifr_netmask)
8479 return 0;
8480 ;
8481 return 0;
8482 }
8483 _ACEOF
8484 rm -f conftest.$ac_objext
8485 if { (ac_try="$ac_compile"
8486 case "(($ac_try" in
8487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488 *) ac_try_echo=$ac_try;;
8489 esac
8490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8491 $as_echo "$ac_try_echo") >&5
8492 (eval "$ac_compile") 2>conftest.er1
8493 ac_status=$?
8494 grep -v '^ *+' conftest.er1 >conftest.err
8495 rm -f conftest.er1
8496 cat conftest.err >&5
8497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } && {
8499 test -z "$ac_c_werror_flag" ||
8500 test ! -s conftest.err
8501 } && test -s conftest.$ac_objext; then
8502 ac_cv_member_struct_ifreq_ifr_netmask=yes
8503 else
8504 $as_echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.$ac_ext >&5
8506
8507 ac_cv_member_struct_ifreq_ifr_netmask=no
8508 fi
8509
8510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8511 fi
8512
8513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8514 fi
8515 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8516 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8517 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then
8518
8519 cat >>confdefs.h <<_ACEOF
8520 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8521 _ACEOF
8522
8523
8524 fi
8525 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8526 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8527 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8528 $as_echo_n "(cached) " >&6
8529 else
8530 cat >conftest.$ac_ext <<_ACEOF
8531 /* confdefs.h. */
8532 _ACEOF
8533 cat confdefs.h >>conftest.$ac_ext
8534 cat >>conftest.$ac_ext <<_ACEOF
8535 /* end confdefs.h. */
8536 $ac_includes_default
8537 #if HAVE_SYS_SOCKET_H
8538 #include <sys/socket.h>
8539 #endif
8540 #if HAVE_NET_IF_H
8541 #include <net/if.h>
8542 #endif
8543
8544 int
8545 main ()
8546 {
8547 static struct ifreq ac_aggr;
8548 if (ac_aggr.ifr_broadaddr)
8549 return 0;
8550 ;
8551 return 0;
8552 }
8553 _ACEOF
8554 rm -f conftest.$ac_objext
8555 if { (ac_try="$ac_compile"
8556 case "(($ac_try" in
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8559 esac
8560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8561 $as_echo "$ac_try_echo") >&5
8562 (eval "$ac_compile") 2>conftest.er1
8563 ac_status=$?
8564 grep -v '^ *+' conftest.er1 >conftest.err
8565 rm -f conftest.er1
8566 cat conftest.err >&5
8567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } && {
8569 test -z "$ac_c_werror_flag" ||
8570 test ! -s conftest.err
8571 } && test -s conftest.$ac_objext; then
8572 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8573 else
8574 $as_echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8576
8577 cat >conftest.$ac_ext <<_ACEOF
8578 /* confdefs.h. */
8579 _ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h. */
8583 $ac_includes_default
8584 #if HAVE_SYS_SOCKET_H
8585 #include <sys/socket.h>
8586 #endif
8587 #if HAVE_NET_IF_H
8588 #include <net/if.h>
8589 #endif
8590
8591 int
8592 main ()
8593 {
8594 static struct ifreq ac_aggr;
8595 if (sizeof ac_aggr.ifr_broadaddr)
8596 return 0;
8597 ;
8598 return 0;
8599 }
8600 _ACEOF
8601 rm -f conftest.$ac_objext
8602 if { (ac_try="$ac_compile"
8603 case "(($ac_try" in
8604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605 *) ac_try_echo=$ac_try;;
8606 esac
8607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8608 $as_echo "$ac_try_echo") >&5
8609 (eval "$ac_compile") 2>conftest.er1
8610 ac_status=$?
8611 grep -v '^ *+' conftest.er1 >conftest.err
8612 rm -f conftest.er1
8613 cat conftest.err >&5
8614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } && {
8616 test -z "$ac_c_werror_flag" ||
8617 test ! -s conftest.err
8618 } && test -s conftest.$ac_objext; then
8619 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8620 else
8621 $as_echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.$ac_ext >&5
8623
8624 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8625 fi
8626
8627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8628 fi
8629
8630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8631 fi
8632 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8633 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8634 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then
8635
8636 cat >>confdefs.h <<_ACEOF
8637 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8638 _ACEOF
8639
8640
8641 fi
8642 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8643 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8644 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8645 $as_echo_n "(cached) " >&6
8646 else
8647 cat >conftest.$ac_ext <<_ACEOF
8648 /* confdefs.h. */
8649 _ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h. */
8653 $ac_includes_default
8654 #if HAVE_SYS_SOCKET_H
8655 #include <sys/socket.h>
8656 #endif
8657 #if HAVE_NET_IF_H
8658 #include <net/if.h>
8659 #endif
8660
8661 int
8662 main ()
8663 {
8664 static struct ifreq ac_aggr;
8665 if (ac_aggr.ifr_addr)
8666 return 0;
8667 ;
8668 return 0;
8669 }
8670 _ACEOF
8671 rm -f conftest.$ac_objext
8672 if { (ac_try="$ac_compile"
8673 case "(($ac_try" in
8674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8675 *) ac_try_echo=$ac_try;;
8676 esac
8677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8678 $as_echo "$ac_try_echo") >&5
8679 (eval "$ac_compile") 2>conftest.er1
8680 ac_status=$?
8681 grep -v '^ *+' conftest.er1 >conftest.err
8682 rm -f conftest.er1
8683 cat conftest.err >&5
8684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); } && {
8686 test -z "$ac_c_werror_flag" ||
8687 test ! -s conftest.err
8688 } && test -s conftest.$ac_objext; then
8689 ac_cv_member_struct_ifreq_ifr_addr=yes
8690 else
8691 $as_echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.$ac_ext >&5
8693
8694 cat >conftest.$ac_ext <<_ACEOF
8695 /* confdefs.h. */
8696 _ACEOF
8697 cat confdefs.h >>conftest.$ac_ext
8698 cat >>conftest.$ac_ext <<_ACEOF
8699 /* end confdefs.h. */
8700 $ac_includes_default
8701 #if HAVE_SYS_SOCKET_H
8702 #include <sys/socket.h>
8703 #endif
8704 #if HAVE_NET_IF_H
8705 #include <net/if.h>
8706 #endif
8707
8708 int
8709 main ()
8710 {
8711 static struct ifreq ac_aggr;
8712 if (sizeof ac_aggr.ifr_addr)
8713 return 0;
8714 ;
8715 return 0;
8716 }
8717 _ACEOF
8718 rm -f conftest.$ac_objext
8719 if { (ac_try="$ac_compile"
8720 case "(($ac_try" in
8721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8722 *) ac_try_echo=$ac_try;;
8723 esac
8724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8725 $as_echo "$ac_try_echo") >&5
8726 (eval "$ac_compile") 2>conftest.er1
8727 ac_status=$?
8728 grep -v '^ *+' conftest.er1 >conftest.err
8729 rm -f conftest.er1
8730 cat conftest.err >&5
8731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); } && {
8733 test -z "$ac_c_werror_flag" ||
8734 test ! -s conftest.err
8735 } && test -s conftest.$ac_objext; then
8736 ac_cv_member_struct_ifreq_ifr_addr=yes
8737 else
8738 $as_echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.$ac_ext >&5
8740
8741 ac_cv_member_struct_ifreq_ifr_addr=no
8742 fi
8743
8744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8745 fi
8746
8747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8748 fi
8749 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8750 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8751 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then
8752
8753 cat >>confdefs.h <<_ACEOF
8754 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8755 _ACEOF
8756
8757
8758 fi
8759
8760
8761
8762 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8763 $as_echo_n "checking for function prototypes... " >&6; }
8764 if test "$ac_cv_prog_cc_c89" != no; then
8765 { $as_echo "$as_me:$LINENO: result: yes" >&5
8766 $as_echo "yes" >&6; }
8767
8768 cat >>confdefs.h <<\_ACEOF
8769 #define PROTOTYPES 1
8770 _ACEOF
8771
8772
8773 cat >>confdefs.h <<\_ACEOF
8774 #define __PROTOTYPES 1
8775 _ACEOF
8776
8777 else
8778 { $as_echo "$as_me:$LINENO: result: no" >&5
8779 $as_echo "no" >&6; }
8780 fi
8781
8782 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8783 $as_echo_n "checking for working volatile... " >&6; }
8784 if test "${ac_cv_c_volatile+set}" = set; then
8785 $as_echo_n "(cached) " >&6
8786 else
8787 cat >conftest.$ac_ext <<_ACEOF
8788 /* confdefs.h. */
8789 _ACEOF
8790 cat confdefs.h >>conftest.$ac_ext
8791 cat >>conftest.$ac_ext <<_ACEOF
8792 /* end confdefs.h. */
8793
8794 int
8795 main ()
8796 {
8797
8798 volatile int x;
8799 int * volatile y = (int *) 0;
8800 return !x && !y;
8801 ;
8802 return 0;
8803 }
8804 _ACEOF
8805 rm -f conftest.$ac_objext
8806 if { (ac_try="$ac_compile"
8807 case "(($ac_try" in
8808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8809 *) ac_try_echo=$ac_try;;
8810 esac
8811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8812 $as_echo "$ac_try_echo") >&5
8813 (eval "$ac_compile") 2>conftest.er1
8814 ac_status=$?
8815 grep -v '^ *+' conftest.er1 >conftest.err
8816 rm -f conftest.er1
8817 cat conftest.err >&5
8818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } && {
8820 test -z "$ac_c_werror_flag" ||
8821 test ! -s conftest.err
8822 } && test -s conftest.$ac_objext; then
8823 ac_cv_c_volatile=yes
8824 else
8825 $as_echo "$as_me: failed program was:" >&5
8826 sed 's/^/| /' conftest.$ac_ext >&5
8827
8828 ac_cv_c_volatile=no
8829 fi
8830
8831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8832 fi
8833 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8834 $as_echo "$ac_cv_c_volatile" >&6; }
8835 if test $ac_cv_c_volatile = no; then
8836
8837 cat >>confdefs.h <<\_ACEOF
8838 #define volatile /**/
8839 _ACEOF
8840
8841 fi
8842
8843 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8844 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8845 if test "${ac_cv_c_const+set}" = set; then
8846 $as_echo_n "(cached) " >&6
8847 else
8848 cat >conftest.$ac_ext <<_ACEOF
8849 /* confdefs.h. */
8850 _ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8854
8855 int
8856 main ()
8857 {
8858 /* FIXME: Include the comments suggested by Paul. */
8859 #ifndef __cplusplus
8860 /* Ultrix mips cc rejects this. */
8861 typedef int charset[2];
8862 const charset cs;
8863 /* SunOS 4.1.1 cc rejects this. */
8864 char const *const *pcpcc;
8865 char **ppc;
8866 /* NEC SVR4.0.2 mips cc rejects this. */
8867 struct point {int x, y;};
8868 static struct point const zero = {0,0};
8869 /* AIX XL C 1.02.0.0 rejects this.
8870 It does not let you subtract one const X* pointer from another in
8871 an arm of an if-expression whose if-part is not a constant
8872 expression */
8873 const char *g = "string";
8874 pcpcc = &g + (g ? g-g : 0);
8875 /* HPUX 7.0 cc rejects these. */
8876 ++pcpcc;
8877 ppc = (char**) pcpcc;
8878 pcpcc = (char const *const *) ppc;
8879 { /* SCO 3.2v4 cc rejects this. */
8880 char *t;
8881 char const *s = 0 ? (char *) 0 : (char const *) 0;
8882
8883 *t++ = 0;
8884 if (s) return 0;
8885 }
8886 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8887 int x[] = {25, 17};
8888 const int *foo = &x[0];
8889 ++foo;
8890 }
8891 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8892 typedef const int *iptr;
8893 iptr p = 0;
8894 ++p;
8895 }
8896 { /* AIX XL C 1.02.0.0 rejects this saying
8897 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8898 struct s { int j; const int *ap[3]; };
8899 struct s *b; b->j = 5;
8900 }
8901 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8902 const int foo = 10;
8903 if (!foo) return 0;
8904 }
8905 return !cs[0] && !zero.x;
8906 #endif
8907
8908 ;
8909 return 0;
8910 }
8911 _ACEOF
8912 rm -f conftest.$ac_objext
8913 if { (ac_try="$ac_compile"
8914 case "(($ac_try" in
8915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916 *) ac_try_echo=$ac_try;;
8917 esac
8918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8919 $as_echo "$ac_try_echo") >&5
8920 (eval "$ac_compile") 2>conftest.er1
8921 ac_status=$?
8922 grep -v '^ *+' conftest.er1 >conftest.err
8923 rm -f conftest.er1
8924 cat conftest.err >&5
8925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } && {
8927 test -z "$ac_c_werror_flag" ||
8928 test ! -s conftest.err
8929 } && test -s conftest.$ac_objext; then
8930 ac_cv_c_const=yes
8931 else
8932 $as_echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.$ac_ext >&5
8934
8935 ac_cv_c_const=no
8936 fi
8937
8938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8939 fi
8940 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8941 $as_echo "$ac_cv_c_const" >&6; }
8942 if test $ac_cv_c_const = no; then
8943
8944 cat >>confdefs.h <<\_ACEOF
8945 #define const /**/
8946 _ACEOF
8947
8948 fi
8949
8950 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
8951 $as_echo_n "checking for void * support... " >&6; }
8952 if test "${emacs_cv_void_star+set}" = set; then
8953 $as_echo_n "(cached) " >&6
8954 else
8955 cat >conftest.$ac_ext <<_ACEOF
8956 /* confdefs.h. */
8957 _ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8961
8962 int
8963 main ()
8964 {
8965 void * foo;
8966 ;
8967 return 0;
8968 }
8969 _ACEOF
8970 rm -f conftest.$ac_objext
8971 if { (ac_try="$ac_compile"
8972 case "(($ac_try" in
8973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8974 *) ac_try_echo=$ac_try;;
8975 esac
8976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8977 $as_echo "$ac_try_echo") >&5
8978 (eval "$ac_compile") 2>conftest.er1
8979 ac_status=$?
8980 grep -v '^ *+' conftest.er1 >conftest.err
8981 rm -f conftest.er1
8982 cat conftest.err >&5
8983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } && {
8985 test -z "$ac_c_werror_flag" ||
8986 test ! -s conftest.err
8987 } && test -s conftest.$ac_objext; then
8988 emacs_cv_void_star=yes
8989 else
8990 $as_echo "$as_me: failed program was:" >&5
8991 sed 's/^/| /' conftest.$ac_ext >&5
8992
8993 emacs_cv_void_star=no
8994 fi
8995
8996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8997 fi
8998 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8999 $as_echo "$emacs_cv_void_star" >&6; }
9000 if test $emacs_cv_void_star = yes; then
9001 cat >>confdefs.h <<\_ACEOF
9002 #define POINTER_TYPE void
9003 _ACEOF
9004
9005 else
9006 cat >>confdefs.h <<\_ACEOF
9007 #define POINTER_TYPE char
9008 _ACEOF
9009
9010 fi
9011
9012
9013
9014
9015
9016 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9017 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9018 set x ${MAKE-make}
9019 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9020 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9021 $as_echo_n "(cached) " >&6
9022 else
9023 cat >conftest.make <<\_ACEOF
9024 SHELL = /bin/sh
9025 all:
9026 @echo '@@@%%%=$(MAKE)=@@@%%%'
9027 _ACEOF
9028 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9029 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9030 *@@@%%%=?*=@@@%%%*)
9031 eval ac_cv_prog_make_${ac_make}_set=yes;;
9032 *)
9033 eval ac_cv_prog_make_${ac_make}_set=no;;
9034 esac
9035 rm -f conftest.make
9036 fi
9037 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9038 { $as_echo "$as_me:$LINENO: result: yes" >&5
9039 $as_echo "yes" >&6; }
9040 SET_MAKE=
9041 else
9042 { $as_echo "$as_me:$LINENO: result: no" >&5
9043 $as_echo "no" >&6; }
9044 SET_MAKE="MAKE=${MAKE-make}"
9045 fi
9046
9047
9048 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9049 $as_echo_n "checking for long file names... " >&6; }
9050 if test "${ac_cv_sys_long_file_names+set}" = set; then
9051 $as_echo_n "(cached) " >&6
9052 else
9053 ac_cv_sys_long_file_names=yes
9054 # Test for long file names in all the places we know might matter:
9055 # . the current directory, where building will happen
9056 # $prefix/lib where we will be installing things
9057 # $exec_prefix/lib likewise
9058 # $TMPDIR if set, where it might want to write temporary files
9059 # /tmp where it might want to write temporary files
9060 # /var/tmp likewise
9061 # /usr/tmp likewise
9062 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9063 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9064 # in the usual case where exec_prefix is '${prefix}'.
9065 case $ac_dir in #(
9066 . | /* | ?:[\\/]*) ;; #(
9067 *) continue;;
9068 esac
9069 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9070 ac_xdir=$ac_dir/cf$$
9071 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9072 ac_tf1=$ac_xdir/conftest9012345
9073 ac_tf2=$ac_xdir/conftest9012346
9074 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9075 ac_cv_sys_long_file_names=no
9076 rm -f -r "$ac_xdir" 2>/dev/null
9077 test $ac_cv_sys_long_file_names = no && break
9078 done
9079 fi
9080 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9081 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9082 if test $ac_cv_sys_long_file_names = yes; then
9083
9084 cat >>confdefs.h <<\_ACEOF
9085 #define HAVE_LONG_FILE_NAMES 1
9086 _ACEOF
9087
9088 fi
9089
9090
9091 #### Choose a window system.
9092
9093 { $as_echo "$as_me:$LINENO: checking for X" >&5
9094 $as_echo_n "checking for X... " >&6; }
9095
9096
9097 # Check whether --with-x was given.
9098 if test "${with_x+set}" = set; then
9099 withval=$with_x;
9100 fi
9101
9102 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9103 if test "x$with_x" = xno; then
9104 # The user explicitly disabled X.
9105 have_x=disabled
9106 else
9107 case $x_includes,$x_libraries in #(
9108 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
9109 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
9110 { (exit 1); exit 1; }; };; #(
9111 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9112 $as_echo_n "(cached) " >&6
9113 else
9114 # One or both of the vars are not set, and there is no cached value.
9115 ac_x_includes=no ac_x_libraries=no
9116 rm -f -r conftest.dir
9117 if mkdir conftest.dir; then
9118 cd conftest.dir
9119 cat >Imakefile <<'_ACEOF'
9120 incroot:
9121 @echo incroot='${INCROOT}'
9122 usrlibdir:
9123 @echo usrlibdir='${USRLIBDIR}'
9124 libdir:
9125 @echo libdir='${LIBDIR}'
9126 _ACEOF
9127 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9128 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9129 for ac_var in incroot usrlibdir libdir; do
9130 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9131 done
9132 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9133 for ac_extension in a so sl dylib la dll; do
9134 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9135 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9136 ac_im_usrlibdir=$ac_im_libdir; break
9137 fi
9138 done
9139 # Screen out bogus values from the imake configuration. They are
9140 # bogus both because they are the default anyway, and because
9141 # using them would break gcc on systems where it needs fixed includes.
9142 case $ac_im_incroot in
9143 /usr/include) ac_x_includes= ;;
9144 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9145 esac
9146 case $ac_im_usrlibdir in
9147 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9148 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9149 esac
9150 fi
9151 cd ..
9152 rm -f -r conftest.dir
9153 fi
9154
9155 # Standard set of common directories for X headers.
9156 # Check X11 before X11Rn because it is often a symlink to the current release.
9157 ac_x_header_dirs='
9158 /usr/X11/include
9159 /usr/X11R6/include
9160 /usr/X11R5/include
9161 /usr/X11R4/include
9162
9163 /usr/include/X11
9164 /usr/include/X11R6
9165 /usr/include/X11R5
9166 /usr/include/X11R4
9167
9168 /usr/local/X11/include
9169 /usr/local/X11R6/include
9170 /usr/local/X11R5/include
9171 /usr/local/X11R4/include
9172
9173 /usr/local/include/X11
9174 /usr/local/include/X11R6
9175 /usr/local/include/X11R5
9176 /usr/local/include/X11R4
9177
9178 /usr/X386/include
9179 /usr/x386/include
9180 /usr/XFree86/include/X11
9181
9182 /usr/include
9183 /usr/local/include
9184 /usr/unsupported/include
9185 /usr/athena/include
9186 /usr/local/x11r5/include
9187 /usr/lpp/Xamples/include
9188
9189 /usr/openwin/include
9190 /usr/openwin/share/include'
9191
9192 if test "$ac_x_includes" = no; then
9193 # Guess where to find include files, by looking for Xlib.h.
9194 # First, try using that file with no special directory specified.
9195 cat >conftest.$ac_ext <<_ACEOF
9196 /* confdefs.h. */
9197 _ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h. */
9201 #include <X11/Xlib.h>
9202 _ACEOF
9203 if { (ac_try="$ac_cpp conftest.$ac_ext"
9204 case "(($ac_try" in
9205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9206 *) ac_try_echo=$ac_try;;
9207 esac
9208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9209 $as_echo "$ac_try_echo") >&5
9210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9211 ac_status=$?
9212 grep -v '^ *+' conftest.er1 >conftest.err
9213 rm -f conftest.er1
9214 cat conftest.err >&5
9215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } >/dev/null && {
9217 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9218 test ! -s conftest.err
9219 }; then
9220 # We can compile using X headers with no special include directory.
9221 ac_x_includes=
9222 else
9223 $as_echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.$ac_ext >&5
9225
9226 for ac_dir in $ac_x_header_dirs; do
9227 if test -r "$ac_dir/X11/Xlib.h"; then
9228 ac_x_includes=$ac_dir
9229 break
9230 fi
9231 done
9232 fi
9233
9234 rm -f conftest.err conftest.$ac_ext
9235 fi # $ac_x_includes = no
9236
9237 if test "$ac_x_libraries" = no; then
9238 # Check for the libraries.
9239 # See if we find them without any special options.
9240 # Don't add to $LIBS permanently.
9241 ac_save_LIBS=$LIBS
9242 LIBS="-lX11 $LIBS"
9243 cat >conftest.$ac_ext <<_ACEOF
9244 /* confdefs.h. */
9245 _ACEOF
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h. */
9249 #include <X11/Xlib.h>
9250 int
9251 main ()
9252 {
9253 XrmInitialize ()
9254 ;
9255 return 0;
9256 }
9257 _ACEOF
9258 rm -f conftest.$ac_objext conftest$ac_exeext
9259 if { (ac_try="$ac_link"
9260 case "(($ac_try" in
9261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9262 *) ac_try_echo=$ac_try;;
9263 esac
9264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9265 $as_echo "$ac_try_echo") >&5
9266 (eval "$ac_link") 2>conftest.er1
9267 ac_status=$?
9268 grep -v '^ *+' conftest.er1 >conftest.err
9269 rm -f conftest.er1
9270 cat conftest.err >&5
9271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); } && {
9273 test -z "$ac_c_werror_flag" ||
9274 test ! -s conftest.err
9275 } && test -s conftest$ac_exeext && {
9276 test "$cross_compiling" = yes ||
9277 $as_test_x conftest$ac_exeext
9278 }; then
9279 LIBS=$ac_save_LIBS
9280 # We can link X programs with no special library path.
9281 ac_x_libraries=
9282 else
9283 $as_echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9285
9286 LIBS=$ac_save_LIBS
9287 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9288 do
9289 # Don't even attempt the hair of trying to link an X program!
9290 for ac_extension in a so sl dylib la dll; do
9291 if test -r "$ac_dir/libX11.$ac_extension"; then
9292 ac_x_libraries=$ac_dir
9293 break 2
9294 fi
9295 done
9296 done
9297 fi
9298
9299 rm -rf conftest.dSYM
9300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9301 conftest$ac_exeext conftest.$ac_ext
9302 fi # $ac_x_libraries = no
9303
9304 case $ac_x_includes,$ac_x_libraries in #(
9305 no,* | *,no | *\'*)
9306 # Didn't find X, or a directory has "'" in its name.
9307 ac_cv_have_x="have_x=no";; #(
9308 *)
9309 # Record where we found X for the cache.
9310 ac_cv_have_x="have_x=yes\
9311 ac_x_includes='$ac_x_includes'\
9312 ac_x_libraries='$ac_x_libraries'"
9313 esac
9314 fi
9315 ;; #(
9316 *) have_x=yes;;
9317 esac
9318 eval "$ac_cv_have_x"
9319 fi # $with_x != no
9320
9321 if test "$have_x" != yes; then
9322 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9323 $as_echo "$have_x" >&6; }
9324 no_x=yes
9325 else
9326 # If each of the values was on the command line, it overrides each guess.
9327 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9328 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9329 # Update the cache value to reflect the command line values.
9330 ac_cv_have_x="have_x=yes\
9331 ac_x_includes='$x_includes'\
9332 ac_x_libraries='$x_libraries'"
9333 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9334 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9335 fi
9336
9337 if test "$no_x" = yes; then
9338 window_system=none
9339 else
9340 window_system=x11
9341 fi
9342
9343 ## Workaround for bug in autoconf <= 2.62.
9344 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9345 ## No need to do anything special for these standard directories.
9346 ## This is an experiment, take it out if it causes problems.
9347 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9348
9349 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9350
9351 fi
9352
9353 if test "${x_libraries}" != NONE; then
9354 if test -n "${x_libraries}"; then
9355 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9356 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9357 fi
9358 x_default_search_path=""
9359 x_search_path=${x_libraries}
9360 if test -z "${x_search_path}"; then
9361 x_search_path=/usr/lib
9362 fi
9363 for x_library in `echo ${x_search_path}: | \
9364 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9365 x_search_path="\
9366 ${x_library}/X11/%L/%T/%N%C%S:\
9367 ${x_library}/X11/%l/%T/%N%C%S:\
9368 ${x_library}/X11/%T/%N%C%S:\
9369 ${x_library}/X11/%L/%T/%N%S:\
9370 ${x_library}/X11/%l/%T/%N%S:\
9371 ${x_library}/X11/%T/%N%S"
9372 if test x"${x_default_search_path}" = x; then
9373 x_default_search_path=${x_search_path}
9374 else
9375 x_default_search_path="${x_search_path}:${x_default_search_path}"
9376 fi
9377 done
9378 fi
9379 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9380 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9381 fi
9382
9383 if test x"${x_includes}" = x; then
9384 bitmapdir=/usr/include/X11/bitmaps
9385 else
9386 # accumulate include directories that have X11 bitmap subdirectories
9387 bmd_acc="dummyval"
9388 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9389 if test -d "${bmd}/X11/bitmaps"; then
9390 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9391 fi
9392 if test -d "${bmd}/bitmaps"; then
9393 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9394 fi
9395 done
9396 if test ${bmd_acc} != "dummyval"; then
9397 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9398 fi
9399 fi
9400
9401 HAVE_NS=no
9402 NS_IMPL_COCOA=no
9403 NS_IMPL_GNUSTEP=no
9404 tmp_CPPFLAGS="$CPPFLAGS"
9405 tmp_CFLAGS="$CFLAGS"
9406 CPPFLAGS="$CPPFLAGS -x objective-c"
9407 CFLAGS="$CFLAGS -x objective-c"
9408 if test "${with_ns}" != no; then
9409 if test "${opsys}" = darwin; then
9410 NS_IMPL_COCOA=yes
9411 ns_appdir=`pwd`/nextstep/Emacs.app
9412 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9413 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9414 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9415 elif test -f $GNUSTEP_CONFIG_FILE; then
9416 NS_IMPL_GNUSTEP=yes
9417 ns_appdir=`pwd`/nextstep/Emacs.app
9418 ns_appbindir=`pwd`/nextstep/Emacs.app
9419 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9420 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9421 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9422 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9423 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9424 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9425 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9426 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9427 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9428 fi
9429 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9430 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9431 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9432 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9433 $as_echo_n "(cached) " >&6
9434 fi
9435 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9436 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9437 else
9438 # Is the header compilable?
9439 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9440 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9441 cat >conftest.$ac_ext <<_ACEOF
9442 /* confdefs.h. */
9443 _ACEOF
9444 cat confdefs.h >>conftest.$ac_ext
9445 cat >>conftest.$ac_ext <<_ACEOF
9446 /* end confdefs.h. */
9447 $ac_includes_default
9448 #include <AppKit/AppKit.h>
9449 _ACEOF
9450 rm -f conftest.$ac_objext
9451 if { (ac_try="$ac_compile"
9452 case "(($ac_try" in
9453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9454 *) ac_try_echo=$ac_try;;
9455 esac
9456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9457 $as_echo "$ac_try_echo") >&5
9458 (eval "$ac_compile") 2>conftest.er1
9459 ac_status=$?
9460 grep -v '^ *+' conftest.er1 >conftest.err
9461 rm -f conftest.er1
9462 cat conftest.err >&5
9463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); } && {
9465 test -z "$ac_c_werror_flag" ||
9466 test ! -s conftest.err
9467 } && test -s conftest.$ac_objext; then
9468 ac_header_compiler=yes
9469 else
9470 $as_echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.$ac_ext >&5
9472
9473 ac_header_compiler=no
9474 fi
9475
9476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9477 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9478 $as_echo "$ac_header_compiler" >&6; }
9479
9480 # Is the header present?
9481 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9482 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9483 cat >conftest.$ac_ext <<_ACEOF
9484 /* confdefs.h. */
9485 _ACEOF
9486 cat confdefs.h >>conftest.$ac_ext
9487 cat >>conftest.$ac_ext <<_ACEOF
9488 /* end confdefs.h. */
9489 #include <AppKit/AppKit.h>
9490 _ACEOF
9491 if { (ac_try="$ac_cpp conftest.$ac_ext"
9492 case "(($ac_try" in
9493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9494 *) ac_try_echo=$ac_try;;
9495 esac
9496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9497 $as_echo "$ac_try_echo") >&5
9498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9499 ac_status=$?
9500 grep -v '^ *+' conftest.er1 >conftest.err
9501 rm -f conftest.er1
9502 cat conftest.err >&5
9503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } >/dev/null && {
9505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9506 test ! -s conftest.err
9507 }; then
9508 ac_header_preproc=yes
9509 else
9510 $as_echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9512
9513 ac_header_preproc=no
9514 fi
9515
9516 rm -f conftest.err conftest.$ac_ext
9517 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9518 $as_echo "$ac_header_preproc" >&6; }
9519
9520 # So? What about this header?
9521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9522 yes:no: )
9523 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9524 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9525 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9526 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9527 ac_header_preproc=yes
9528 ;;
9529 no:yes:* )
9530 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9531 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9532 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9533 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9534 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9535 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9536 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9537 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9538 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9539 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9540 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9541 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9542
9543 ;;
9544 esac
9545 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9546 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9547 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9548 $as_echo_n "(cached) " >&6
9549 else
9550 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9551 fi
9552 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9553 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9554
9555 fi
9556 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then
9557 HAVE_NS=yes
9558 else
9559 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9560 files are missing or cannot be compiled." >&5
9561 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9562 files are missing or cannot be compiled." >&2;}
9563 { (exit 1); exit 1; }; }
9564 fi
9565
9566
9567 NS_HAVE_NSINTEGER=yes
9568 cat >conftest.$ac_ext <<_ACEOF
9569 /* confdefs.h. */
9570 _ACEOF
9571 cat confdefs.h >>conftest.$ac_ext
9572 cat >>conftest.$ac_ext <<_ACEOF
9573 /* end confdefs.h. */
9574 #include <Foundation/NSObjCRuntime.h>
9575 int
9576 main ()
9577 {
9578 NSInteger i;
9579 ;
9580 return 0;
9581 }
9582 _ACEOF
9583 rm -f conftest.$ac_objext
9584 if { (ac_try="$ac_compile"
9585 case "(($ac_try" in
9586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9587 *) ac_try_echo=$ac_try;;
9588 esac
9589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9590 $as_echo "$ac_try_echo") >&5
9591 (eval "$ac_compile") 2>conftest.er1
9592 ac_status=$?
9593 grep -v '^ *+' conftest.er1 >conftest.err
9594 rm -f conftest.er1
9595 cat conftest.err >&5
9596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } && {
9598 test -z "$ac_c_werror_flag" ||
9599 test ! -s conftest.err
9600 } && test -s conftest.$ac_objext; then
9601 ns_have_nsinteger=yes
9602 else
9603 $as_echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9605
9606 ns_have_nsinteger=no
9607 fi
9608
9609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9610 if test $ns_have_nsinteger = no; then
9611 NS_HAVE_NSINTEGER=no
9612 fi
9613 fi
9614 if test "${HAVE_NS}" = yes; then
9615 window_system=nextstep
9616 with_xft=no
9617 with_freetype=no
9618 # set up packaging dirs
9619 exec_prefix=${ns_appbindir}
9620 libexecdir=${ns_appbindir}/libexec
9621 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9622 prefix=${ns_appresdir}
9623 fi
9624 fi
9625 CFLAGS="$tmp_CFLAGS"
9626 CPPFLAGS="$tmp_CPPFLAGS"
9627
9628 case "${window_system}" in
9629 x11 )
9630 HAVE_X_WINDOWS=yes
9631 HAVE_X11=yes
9632 case "${with_x_toolkit}" in
9633 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9634 motif ) USE_X_TOOLKIT=MOTIF ;;
9635 gtk ) with_gtk=yes
9636 USE_X_TOOLKIT=none ;;
9637 no ) USE_X_TOOLKIT=none ;;
9638 * ) USE_X_TOOLKIT=maybe ;;
9639 esac
9640 ;;
9641 nextstep | none )
9642 HAVE_X_WINDOWS=no
9643 HAVE_X11=no
9644 USE_X_TOOLKIT=none
9645 ;;
9646 esac
9647
9648 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9649 # Extract the first word of "X", so it can be a program name with args.
9650 set dummy X; ac_word=$2
9651 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9652 $as_echo_n "checking for $ac_word... " >&6; }
9653 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9654 $as_echo_n "(cached) " >&6
9655 else
9656 if test -n "$HAVE_XSERVER"; then
9657 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9658 else
9659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9660 for as_dir in $PATH
9661 do
9662 IFS=$as_save_IFS
9663 test -z "$as_dir" && as_dir=.
9664 for ac_exec_ext in '' $ac_executable_extensions; do
9665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9666 ac_cv_prog_HAVE_XSERVER="true"
9667 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9668 break 2
9669 fi
9670 done
9671 done
9672 IFS=$as_save_IFS
9673
9674 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9675 fi
9676 fi
9677 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9678 if test -n "$HAVE_XSERVER"; then
9679 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9680 $as_echo "$HAVE_XSERVER" >&6; }
9681 else
9682 { $as_echo "$as_me:$LINENO: result: no" >&5
9683 $as_echo "no" >&6; }
9684 fi
9685
9686
9687 if test "$HAVE_XSERVER" = true ||
9688 test -n "$DISPLAY" ||
9689 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9690 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9691 were found. You should install the relevant development files for X
9692 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9693 sure you have development files for image handling, i.e.
9694 tiff, gif, jpeg, png and xpm.
9695 If you are sure you want Emacs compiled without X window support, pass
9696 --without-x
9697 to configure." >&5
9698 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9699 were found. You should install the relevant development files for X
9700 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9701 sure you have development files for image handling, i.e.
9702 tiff, gif, jpeg, png and xpm.
9703 If you are sure you want Emacs compiled without X window support, pass
9704 --without-x
9705 to configure." >&2;}
9706 { (exit 1); exit 1; }; }
9707 fi
9708 fi
9709
9710 ### If we're using X11, we should use the X menu package.
9711 HAVE_MENUS=no
9712 case ${HAVE_X11} in
9713 yes ) HAVE_MENUS=yes ;;
9714 esac
9715
9716 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9717 # Assume not, until told otherwise.
9718 GNU_MALLOC=yes
9719 doug_lea_malloc=yes
9720 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9721 $as_echo_n "checking for malloc_get_state... " >&6; }
9722 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9723 $as_echo_n "(cached) " >&6
9724 else
9725 cat >conftest.$ac_ext <<_ACEOF
9726 /* confdefs.h. */
9727 _ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h. */
9731 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9733 #define malloc_get_state innocuous_malloc_get_state
9734
9735 /* System header to define __stub macros and hopefully few prototypes,
9736 which can conflict with char malloc_get_state (); below.
9737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9738 <limits.h> exists even on freestanding compilers. */
9739
9740 #ifdef __STDC__
9741 # include <limits.h>
9742 #else
9743 # include <assert.h>
9744 #endif
9745
9746 #undef malloc_get_state
9747
9748 /* Override any GCC internal prototype to avoid an error.
9749 Use char because int might match the return type of a GCC
9750 builtin and then its argument prototype would still apply. */
9751 #ifdef __cplusplus
9752 extern "C"
9753 #endif
9754 char malloc_get_state ();
9755 /* The GNU C library defines this for functions which it implements
9756 to always fail with ENOSYS. Some functions are actually named
9757 something starting with __ and the normal name is an alias. */
9758 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9759 choke me
9760 #endif
9761
9762 int
9763 main ()
9764 {
9765 return malloc_get_state ();
9766 ;
9767 return 0;
9768 }
9769 _ACEOF
9770 rm -f conftest.$ac_objext conftest$ac_exeext
9771 if { (ac_try="$ac_link"
9772 case "(($ac_try" in
9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774 *) ac_try_echo=$ac_try;;
9775 esac
9776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9777 $as_echo "$ac_try_echo") >&5
9778 (eval "$ac_link") 2>conftest.er1
9779 ac_status=$?
9780 grep -v '^ *+' conftest.er1 >conftest.err
9781 rm -f conftest.er1
9782 cat conftest.err >&5
9783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); } && {
9785 test -z "$ac_c_werror_flag" ||
9786 test ! -s conftest.err
9787 } && test -s conftest$ac_exeext && {
9788 test "$cross_compiling" = yes ||
9789 $as_test_x conftest$ac_exeext
9790 }; then
9791 ac_cv_func_malloc_get_state=yes
9792 else
9793 $as_echo "$as_me: failed program was:" >&5
9794 sed 's/^/| /' conftest.$ac_ext >&5
9795
9796 ac_cv_func_malloc_get_state=no
9797 fi
9798
9799 rm -rf conftest.dSYM
9800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9801 conftest$ac_exeext conftest.$ac_ext
9802 fi
9803 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9804 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
9805 if test "x$ac_cv_func_malloc_get_state" = x""yes; then
9806 :
9807 else
9808 doug_lea_malloc=no
9809 fi
9810
9811 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9812 $as_echo_n "checking for malloc_set_state... " >&6; }
9813 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9814 $as_echo_n "(cached) " >&6
9815 else
9816 cat >conftest.$ac_ext <<_ACEOF
9817 /* confdefs.h. */
9818 _ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9822 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9824 #define malloc_set_state innocuous_malloc_set_state
9825
9826 /* System header to define __stub macros and hopefully few prototypes,
9827 which can conflict with char malloc_set_state (); below.
9828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9829 <limits.h> exists even on freestanding compilers. */
9830
9831 #ifdef __STDC__
9832 # include <limits.h>
9833 #else
9834 # include <assert.h>
9835 #endif
9836
9837 #undef malloc_set_state
9838
9839 /* Override any GCC internal prototype to avoid an error.
9840 Use char because int might match the return type of a GCC
9841 builtin and then its argument prototype would still apply. */
9842 #ifdef __cplusplus
9843 extern "C"
9844 #endif
9845 char malloc_set_state ();
9846 /* The GNU C library defines this for functions which it implements
9847 to always fail with ENOSYS. Some functions are actually named
9848 something starting with __ and the normal name is an alias. */
9849 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9850 choke me
9851 #endif
9852
9853 int
9854 main ()
9855 {
9856 return malloc_set_state ();
9857 ;
9858 return 0;
9859 }
9860 _ACEOF
9861 rm -f conftest.$ac_objext conftest$ac_exeext
9862 if { (ac_try="$ac_link"
9863 case "(($ac_try" in
9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9866 esac
9867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9868 $as_echo "$ac_try_echo") >&5
9869 (eval "$ac_link") 2>conftest.er1
9870 ac_status=$?
9871 grep -v '^ *+' conftest.er1 >conftest.err
9872 rm -f conftest.er1
9873 cat conftest.err >&5
9874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } && {
9876 test -z "$ac_c_werror_flag" ||
9877 test ! -s conftest.err
9878 } && test -s conftest$ac_exeext && {
9879 test "$cross_compiling" = yes ||
9880 $as_test_x conftest$ac_exeext
9881 }; then
9882 ac_cv_func_malloc_set_state=yes
9883 else
9884 $as_echo "$as_me: failed program was:" >&5
9885 sed 's/^/| /' conftest.$ac_ext >&5
9886
9887 ac_cv_func_malloc_set_state=no
9888 fi
9889
9890 rm -rf conftest.dSYM
9891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9892 conftest$ac_exeext conftest.$ac_ext
9893 fi
9894 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9895 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
9896 if test "x$ac_cv_func_malloc_set_state" = x""yes; then
9897 :
9898 else
9899 doug_lea_malloc=no
9900 fi
9901
9902 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9903 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
9904 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9905 $as_echo_n "(cached) " >&6
9906 else
9907 cat >conftest.$ac_ext <<_ACEOF
9908 /* confdefs.h. */
9909 _ACEOF
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h. */
9913 extern void (* __after_morecore_hook)();
9914 int
9915 main ()
9916 {
9917 __after_morecore_hook = 0
9918 ;
9919 return 0;
9920 }
9921 _ACEOF
9922 rm -f conftest.$ac_objext conftest$ac_exeext
9923 if { (ac_try="$ac_link"
9924 case "(($ac_try" in
9925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926 *) ac_try_echo=$ac_try;;
9927 esac
9928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9929 $as_echo "$ac_try_echo") >&5
9930 (eval "$ac_link") 2>conftest.er1
9931 ac_status=$?
9932 grep -v '^ *+' conftest.er1 >conftest.err
9933 rm -f conftest.er1
9934 cat conftest.err >&5
9935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } && {
9937 test -z "$ac_c_werror_flag" ||
9938 test ! -s conftest.err
9939 } && test -s conftest$ac_exeext && {
9940 test "$cross_compiling" = yes ||
9941 $as_test_x conftest$ac_exeext
9942 }; then
9943 emacs_cv_var___after_morecore_hook=yes
9944 else
9945 $as_echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9947
9948 emacs_cv_var___after_morecore_hook=no
9949 fi
9950
9951 rm -rf conftest.dSYM
9952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9953 conftest$ac_exeext conftest.$ac_ext
9954 fi
9955 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9956 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9957 if test $emacs_cv_var___after_morecore_hook = no; then
9958 doug_lea_malloc=no
9959 fi
9960 if test "${system_malloc}" = "yes"; then
9961 GNU_MALLOC=no
9962 GNU_MALLOC_reason="
9963 (The GNU allocators don't work with this system configuration.)"
9964 fi
9965 if test "$doug_lea_malloc" = "yes" ; then
9966 if test "$GNU_MALLOC" = yes ; then
9967 GNU_MALLOC_reason="
9968 (Using Doug Lea's new malloc from the GNU C Library.)"
9969 fi
9970
9971 cat >>confdefs.h <<\_ACEOF
9972 #define DOUG_LEA_MALLOC 1
9973 _ACEOF
9974
9975 fi
9976
9977 if test x"${REL_ALLOC}" = x; then
9978 REL_ALLOC=${GNU_MALLOC}
9979 fi
9980
9981
9982
9983
9984 for ac_header in stdlib.h unistd.h
9985 do
9986 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9988 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9989 $as_echo_n "checking for $ac_header... " >&6; }
9990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9991 $as_echo_n "(cached) " >&6
9992 fi
9993 ac_res=`eval 'as_val=${'$as_ac_Header'}
9994 $as_echo "$as_val"'`
9995 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9996 $as_echo "$ac_res" >&6; }
9997 else
9998 # Is the header compilable?
9999 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10000 $as_echo_n "checking $ac_header usability... " >&6; }
10001 cat >conftest.$ac_ext <<_ACEOF
10002 /* confdefs.h. */
10003 _ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h. */
10007 $ac_includes_default
10008 #include <$ac_header>
10009 _ACEOF
10010 rm -f conftest.$ac_objext
10011 if { (ac_try="$ac_compile"
10012 case "(($ac_try" in
10013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014 *) ac_try_echo=$ac_try;;
10015 esac
10016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10017 $as_echo "$ac_try_echo") >&5
10018 (eval "$ac_compile") 2>conftest.er1
10019 ac_status=$?
10020 grep -v '^ *+' conftest.er1 >conftest.err
10021 rm -f conftest.er1
10022 cat conftest.err >&5
10023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } && {
10025 test -z "$ac_c_werror_flag" ||
10026 test ! -s conftest.err
10027 } && test -s conftest.$ac_objext; then
10028 ac_header_compiler=yes
10029 else
10030 $as_echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10032
10033 ac_header_compiler=no
10034 fi
10035
10036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10037 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10038 $as_echo "$ac_header_compiler" >&6; }
10039
10040 # Is the header present?
10041 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10042 $as_echo_n "checking $ac_header presence... " >&6; }
10043 cat >conftest.$ac_ext <<_ACEOF
10044 /* confdefs.h. */
10045 _ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h. */
10049 #include <$ac_header>
10050 _ACEOF
10051 if { (ac_try="$ac_cpp conftest.$ac_ext"
10052 case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10055 esac
10056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10057 $as_echo "$ac_try_echo") >&5
10058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10059 ac_status=$?
10060 grep -v '^ *+' conftest.er1 >conftest.err
10061 rm -f conftest.er1
10062 cat conftest.err >&5
10063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); } >/dev/null && {
10065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10066 test ! -s conftest.err
10067 }; then
10068 ac_header_preproc=yes
10069 else
10070 $as_echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10072
10073 ac_header_preproc=no
10074 fi
10075
10076 rm -f conftest.err conftest.$ac_ext
10077 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10078 $as_echo "$ac_header_preproc" >&6; }
10079
10080 # So? What about this header?
10081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10082 yes:no: )
10083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10084 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10086 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10087 ac_header_preproc=yes
10088 ;;
10089 no:yes:* )
10090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10091 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10093 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10095 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10097 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10099 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10101 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10102
10103 ;;
10104 esac
10105 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10106 $as_echo_n "checking for $ac_header... " >&6; }
10107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10108 $as_echo_n "(cached) " >&6
10109 else
10110 eval "$as_ac_Header=\$ac_header_preproc"
10111 fi
10112 ac_res=`eval 'as_val=${'$as_ac_Header'}
10113 $as_echo "$as_val"'`
10114 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10115 $as_echo "$ac_res" >&6; }
10116
10117 fi
10118 as_val=`eval 'as_val=${'$as_ac_Header'}
10119 $as_echo "$as_val"'`
10120 if test "x$as_val" = x""yes; then
10121 cat >>confdefs.h <<_ACEOF
10122 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10123 _ACEOF
10124
10125 fi
10126
10127 done
10128
10129
10130 for ac_func in getpagesize
10131 do
10132 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10133 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10134 $as_echo_n "checking for $ac_func... " >&6; }
10135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10136 $as_echo_n "(cached) " >&6
10137 else
10138 cat >conftest.$ac_ext <<_ACEOF
10139 /* confdefs.h. */
10140 _ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h. */
10144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10146 #define $ac_func innocuous_$ac_func
10147
10148 /* System header to define __stub macros and hopefully few prototypes,
10149 which can conflict with char $ac_func (); below.
10150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10151 <limits.h> exists even on freestanding compilers. */
10152
10153 #ifdef __STDC__
10154 # include <limits.h>
10155 #else
10156 # include <assert.h>
10157 #endif
10158
10159 #undef $ac_func
10160
10161 /* Override any GCC internal prototype to avoid an error.
10162 Use char because int might match the return type of a GCC
10163 builtin and then its argument prototype would still apply. */
10164 #ifdef __cplusplus
10165 extern "C"
10166 #endif
10167 char $ac_func ();
10168 /* The GNU C library defines this for functions which it implements
10169 to always fail with ENOSYS. Some functions are actually named
10170 something starting with __ and the normal name is an alias. */
10171 #if defined __stub_$ac_func || defined __stub___$ac_func
10172 choke me
10173 #endif
10174
10175 int
10176 main ()
10177 {
10178 return $ac_func ();
10179 ;
10180 return 0;
10181 }
10182 _ACEOF
10183 rm -f conftest.$ac_objext conftest$ac_exeext
10184 if { (ac_try="$ac_link"
10185 case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10188 esac
10189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10190 $as_echo "$ac_try_echo") >&5
10191 (eval "$ac_link") 2>conftest.er1
10192 ac_status=$?
10193 grep -v '^ *+' conftest.er1 >conftest.err
10194 rm -f conftest.er1
10195 cat conftest.err >&5
10196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); } && {
10198 test -z "$ac_c_werror_flag" ||
10199 test ! -s conftest.err
10200 } && test -s conftest$ac_exeext && {
10201 test "$cross_compiling" = yes ||
10202 $as_test_x conftest$ac_exeext
10203 }; then
10204 eval "$as_ac_var=yes"
10205 else
10206 $as_echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10208
10209 eval "$as_ac_var=no"
10210 fi
10211
10212 rm -rf conftest.dSYM
10213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10214 conftest$ac_exeext conftest.$ac_ext
10215 fi
10216 ac_res=`eval 'as_val=${'$as_ac_var'}
10217 $as_echo "$as_val"'`
10218 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10219 $as_echo "$ac_res" >&6; }
10220 as_val=`eval 'as_val=${'$as_ac_var'}
10221 $as_echo "$as_val"'`
10222 if test "x$as_val" = x""yes; then
10223 cat >>confdefs.h <<_ACEOF
10224 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10225 _ACEOF
10226
10227 fi
10228 done
10229
10230 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10231 $as_echo_n "checking for working mmap... " >&6; }
10232 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10233 $as_echo_n "(cached) " >&6
10234 else
10235 if test "$cross_compiling" = yes; then
10236 ac_cv_func_mmap_fixed_mapped=no
10237 else
10238 cat >conftest.$ac_ext <<_ACEOF
10239 /* confdefs.h. */
10240 _ACEOF
10241 cat confdefs.h >>conftest.$ac_ext
10242 cat >>conftest.$ac_ext <<_ACEOF
10243 /* end confdefs.h. */
10244 $ac_includes_default
10245 /* malloc might have been renamed as rpl_malloc. */
10246 #undef malloc
10247
10248 /* Thanks to Mike Haertel and Jim Avera for this test.
10249 Here is a matrix of mmap possibilities:
10250 mmap private not fixed
10251 mmap private fixed at somewhere currently unmapped
10252 mmap private fixed at somewhere already mapped
10253 mmap shared not fixed
10254 mmap shared fixed at somewhere currently unmapped
10255 mmap shared fixed at somewhere already mapped
10256 For private mappings, we should verify that changes cannot be read()
10257 back from the file, nor mmap's back from the file at a different
10258 address. (There have been systems where private was not correctly
10259 implemented like the infamous i386 svr4.0, and systems where the
10260 VM page cache was not coherent with the file system buffer cache
10261 like early versions of FreeBSD and possibly contemporary NetBSD.)
10262 For shared mappings, we should conversely verify that changes get
10263 propagated back to all the places they're supposed to be.
10264
10265 Grep wants private fixed already mapped.
10266 The main things grep needs to know about mmap are:
10267 * does it exist and is it safe to write into the mmap'd area
10268 * how to use it (BSD variants) */
10269
10270 #include <fcntl.h>
10271 #include <sys/mman.h>
10272
10273 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10274 char *malloc ();
10275 #endif
10276
10277 /* This mess was copied from the GNU getpagesize.h. */
10278 #ifndef HAVE_GETPAGESIZE
10279 /* Assume that all systems that can run configure have sys/param.h. */
10280 # ifndef HAVE_SYS_PARAM_H
10281 # define HAVE_SYS_PARAM_H 1
10282 # endif
10283
10284 # ifdef _SC_PAGESIZE
10285 # define getpagesize() sysconf(_SC_PAGESIZE)
10286 # else /* no _SC_PAGESIZE */
10287 # ifdef HAVE_SYS_PARAM_H
10288 # include <sys/param.h>
10289 # ifdef EXEC_PAGESIZE
10290 # define getpagesize() EXEC_PAGESIZE
10291 # else /* no EXEC_PAGESIZE */
10292 # ifdef NBPG
10293 # define getpagesize() NBPG * CLSIZE
10294 # ifndef CLSIZE
10295 # define CLSIZE 1
10296 # endif /* no CLSIZE */
10297 # else /* no NBPG */
10298 # ifdef NBPC
10299 # define getpagesize() NBPC
10300 # else /* no NBPC */
10301 # ifdef PAGESIZE
10302 # define getpagesize() PAGESIZE
10303 # endif /* PAGESIZE */
10304 # endif /* no NBPC */
10305 # endif /* no NBPG */
10306 # endif /* no EXEC_PAGESIZE */
10307 # else /* no HAVE_SYS_PARAM_H */
10308 # define getpagesize() 8192 /* punt totally */
10309 # endif /* no HAVE_SYS_PARAM_H */
10310 # endif /* no _SC_PAGESIZE */
10311
10312 #endif /* no HAVE_GETPAGESIZE */
10313
10314 int
10315 main ()
10316 {
10317 char *data, *data2, *data3;
10318 int i, pagesize;
10319 int fd;
10320
10321 pagesize = getpagesize ();
10322
10323 /* First, make a file with some known garbage in it. */
10324 data = (char *) malloc (pagesize);
10325 if (!data)
10326 return 1;
10327 for (i = 0; i < pagesize; ++i)
10328 *(data + i) = rand ();
10329 umask (0);
10330 fd = creat ("conftest.mmap", 0600);
10331 if (fd < 0)
10332 return 1;
10333 if (write (fd, data, pagesize) != pagesize)
10334 return 1;
10335 close (fd);
10336
10337 /* Next, try to mmap the file at a fixed address which already has
10338 something else allocated at it. If we can, also make sure that
10339 we see the same garbage. */
10340 fd = open ("conftest.mmap", O_RDWR);
10341 if (fd < 0)
10342 return 1;
10343 data2 = (char *) malloc (2 * pagesize);
10344 if (!data2)
10345 return 1;
10346 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10347 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10348 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10349 return 1;
10350 for (i = 0; i < pagesize; ++i)
10351 if (*(data + i) != *(data2 + i))
10352 return 1;
10353
10354 /* Finally, make sure that changes to the mapped area do not
10355 percolate back to the file as seen by read(). (This is a bug on
10356 some variants of i386 svr4.0.) */
10357 for (i = 0; i < pagesize; ++i)
10358 *(data2 + i) = *(data2 + i) + 1;
10359 data3 = (char *) malloc (pagesize);
10360 if (!data3)
10361 return 1;
10362 if (read (fd, data3, pagesize) != pagesize)
10363 return 1;
10364 for (i = 0; i < pagesize; ++i)
10365 if (*(data + i) != *(data3 + i))
10366 return 1;
10367 close (fd);
10368 return 0;
10369 }
10370 _ACEOF
10371 rm -f conftest$ac_exeext
10372 if { (ac_try="$ac_link"
10373 case "(($ac_try" in
10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375 *) ac_try_echo=$ac_try;;
10376 esac
10377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10378 $as_echo "$ac_try_echo") >&5
10379 (eval "$ac_link") 2>&5
10380 ac_status=$?
10381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10383 { (case "(($ac_try" in
10384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385 *) ac_try_echo=$ac_try;;
10386 esac
10387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10388 $as_echo "$ac_try_echo") >&5
10389 (eval "$ac_try") 2>&5
10390 ac_status=$?
10391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; }; then
10393 ac_cv_func_mmap_fixed_mapped=yes
10394 else
10395 $as_echo "$as_me: program exited with status $ac_status" >&5
10396 $as_echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10398
10399 ( exit $ac_status )
10400 ac_cv_func_mmap_fixed_mapped=no
10401 fi
10402 rm -rf conftest.dSYM
10403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10404 fi
10405
10406
10407 fi
10408 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10409 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10410 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10411
10412 cat >>confdefs.h <<\_ACEOF
10413 #define HAVE_MMAP 1
10414 _ACEOF
10415
10416 fi
10417 rm -f conftest.mmap
10418
10419 if test $use_mmap_for_buffers = yes; then
10420 REL_ALLOC=no
10421 fi
10422
10423 LIBS="$libsrc_libs $LIBS"
10424
10425
10426 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10427 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10428 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10429 $as_echo_n "(cached) " >&6
10430 else
10431 ac_check_lib_save_LIBS=$LIBS
10432 LIBS="-ldnet $LIBS"
10433 cat >conftest.$ac_ext <<_ACEOF
10434 /* confdefs.h. */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439
10440 /* Override any GCC internal prototype to avoid an error.
10441 Use char because int might match the return type of a GCC
10442 builtin and then its argument prototype would still apply. */
10443 #ifdef __cplusplus
10444 extern "C"
10445 #endif
10446 char dnet_ntoa ();
10447 int
10448 main ()
10449 {
10450 return dnet_ntoa ();
10451 ;
10452 return 0;
10453 }
10454 _ACEOF
10455 rm -f conftest.$ac_objext conftest$ac_exeext
10456 if { (ac_try="$ac_link"
10457 case "(($ac_try" in
10458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10459 *) ac_try_echo=$ac_try;;
10460 esac
10461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10462 $as_echo "$ac_try_echo") >&5
10463 (eval "$ac_link") 2>conftest.er1
10464 ac_status=$?
10465 grep -v '^ *+' conftest.er1 >conftest.err
10466 rm -f conftest.er1
10467 cat conftest.err >&5
10468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } && {
10470 test -z "$ac_c_werror_flag" ||
10471 test ! -s conftest.err
10472 } && test -s conftest$ac_exeext && {
10473 test "$cross_compiling" = yes ||
10474 $as_test_x conftest$ac_exeext
10475 }; then
10476 ac_cv_lib_dnet_dnet_ntoa=yes
10477 else
10478 $as_echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10480
10481 ac_cv_lib_dnet_dnet_ntoa=no
10482 fi
10483
10484 rm -rf conftest.dSYM
10485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10486 conftest$ac_exeext conftest.$ac_ext
10487 LIBS=$ac_check_lib_save_LIBS
10488 fi
10489 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10490 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10491 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
10492 cat >>confdefs.h <<_ACEOF
10493 #define HAVE_LIBDNET 1
10494 _ACEOF
10495
10496 LIBS="-ldnet $LIBS"
10497
10498 fi
10499
10500
10501 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10502 $as_echo_n "checking for main in -lXbsd... " >&6; }
10503 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10504 $as_echo_n "(cached) " >&6
10505 else
10506 ac_check_lib_save_LIBS=$LIBS
10507 LIBS="-lXbsd $LIBS"
10508 cat >conftest.$ac_ext <<_ACEOF
10509 /* confdefs.h. */
10510 _ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h. */
10514
10515
10516 int
10517 main ()
10518 {
10519 return main ();
10520 ;
10521 return 0;
10522 }
10523 _ACEOF
10524 rm -f conftest.$ac_objext conftest$ac_exeext
10525 if { (ac_try="$ac_link"
10526 case "(($ac_try" in
10527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10528 *) ac_try_echo=$ac_try;;
10529 esac
10530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10531 $as_echo "$ac_try_echo") >&5
10532 (eval "$ac_link") 2>conftest.er1
10533 ac_status=$?
10534 grep -v '^ *+' conftest.er1 >conftest.err
10535 rm -f conftest.er1
10536 cat conftest.err >&5
10537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } && {
10539 test -z "$ac_c_werror_flag" ||
10540 test ! -s conftest.err
10541 } && test -s conftest$ac_exeext && {
10542 test "$cross_compiling" = yes ||
10543 $as_test_x conftest$ac_exeext
10544 }; then
10545 ac_cv_lib_Xbsd_main=yes
10546 else
10547 $as_echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10549
10550 ac_cv_lib_Xbsd_main=no
10551 fi
10552
10553 rm -rf conftest.dSYM
10554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10555 conftest$ac_exeext conftest.$ac_ext
10556 LIBS=$ac_check_lib_save_LIBS
10557 fi
10558 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10559 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10560 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then
10561 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10562 fi
10563
10564
10565
10566 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10567 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10568 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10569 $as_echo_n "(cached) " >&6
10570 else
10571 ac_check_lib_save_LIBS=$LIBS
10572 LIBS="-lpthreads $LIBS"
10573 cat >conftest.$ac_ext <<_ACEOF
10574 /* confdefs.h. */
10575 _ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h. */
10579
10580 /* Override any GCC internal prototype to avoid an error.
10581 Use char because int might match the return type of a GCC
10582 builtin and then its argument prototype would still apply. */
10583 #ifdef __cplusplus
10584 extern "C"
10585 #endif
10586 char cma_open ();
10587 int
10588 main ()
10589 {
10590 return cma_open ();
10591 ;
10592 return 0;
10593 }
10594 _ACEOF
10595 rm -f conftest.$ac_objext conftest$ac_exeext
10596 if { (ac_try="$ac_link"
10597 case "(($ac_try" in
10598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10599 *) ac_try_echo=$ac_try;;
10600 esac
10601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10602 $as_echo "$ac_try_echo") >&5
10603 (eval "$ac_link") 2>conftest.er1
10604 ac_status=$?
10605 grep -v '^ *+' conftest.er1 >conftest.err
10606 rm -f conftest.er1
10607 cat conftest.err >&5
10608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); } && {
10610 test -z "$ac_c_werror_flag" ||
10611 test ! -s conftest.err
10612 } && test -s conftest$ac_exeext && {
10613 test "$cross_compiling" = yes ||
10614 $as_test_x conftest$ac_exeext
10615 }; then
10616 ac_cv_lib_pthreads_cma_open=yes
10617 else
10618 $as_echo "$as_me: failed program was:" >&5
10619 sed 's/^/| /' conftest.$ac_ext >&5
10620
10621 ac_cv_lib_pthreads_cma_open=no
10622 fi
10623
10624 rm -rf conftest.dSYM
10625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10626 conftest$ac_exeext conftest.$ac_ext
10627 LIBS=$ac_check_lib_save_LIBS
10628 fi
10629 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10630 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10631 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then
10632 cat >>confdefs.h <<_ACEOF
10633 #define HAVE_LIBPTHREADS 1
10634 _ACEOF
10635
10636 LIBS="-lpthreads $LIBS"
10637
10638 fi
10639
10640
10641
10642 case ${host_os} in
10643 aix*)
10644 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10645 $as_echo_n "checking for -bbigtoc option... " >&6; }
10646 if test "${gdb_cv_bigtoc+set}" = set; then
10647 $as_echo_n "(cached) " >&6
10648 else
10649
10650 case $GCC in
10651 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10652 *) gdb_cv_bigtoc=-bbigtoc ;;
10653 esac
10654
10655 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10656 cat >conftest.$ac_ext <<_ACEOF
10657 /* confdefs.h. */
10658 _ACEOF
10659 cat confdefs.h >>conftest.$ac_ext
10660 cat >>conftest.$ac_ext <<_ACEOF
10661 /* end confdefs.h. */
10662
10663 int
10664 main ()
10665 {
10666 int i;
10667 ;
10668 return 0;
10669 }
10670 _ACEOF
10671 rm -f conftest.$ac_objext conftest$ac_exeext
10672 if { (ac_try="$ac_link"
10673 case "(($ac_try" in
10674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675 *) ac_try_echo=$ac_try;;
10676 esac
10677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10678 $as_echo "$ac_try_echo") >&5
10679 (eval "$ac_link") 2>conftest.er1
10680 ac_status=$?
10681 grep -v '^ *+' conftest.er1 >conftest.err
10682 rm -f conftest.er1
10683 cat conftest.err >&5
10684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); } && {
10686 test -z "$ac_c_werror_flag" ||
10687 test ! -s conftest.err
10688 } && test -s conftest$ac_exeext && {
10689 test "$cross_compiling" = yes ||
10690 $as_test_x conftest$ac_exeext
10691 }; then
10692 :
10693 else
10694 $as_echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10696
10697 gdb_cv_bigtoc=
10698 fi
10699
10700 rm -rf conftest.dSYM
10701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10702 conftest$ac_exeext conftest.$ac_ext
10703
10704 fi
10705 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10706 $as_echo "$gdb_cv_bigtoc" >&6; }
10707 ;;
10708 esac
10709
10710 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10711 # used for the tests that follow. We set them back to REAL_CFLAGS and
10712 # REAL_CPPFLAGS later on.
10713
10714 REAL_CPPFLAGS="$CPPFLAGS"
10715
10716 if test "${HAVE_X11}" = "yes"; then
10717 DEFS="$C_SWITCH_X_SITE $DEFS"
10718 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10719 LIBS="$LIBX $LIBS"
10720 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10721 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10722
10723 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10724 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10725 # but it's more convenient here to set LD_RUN_PATH
10726 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10727 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10728 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10729 export LD_RUN_PATH
10730 fi
10731
10732 if test "${opsys}" = "gnu-linux"; then
10733 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10734 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10735 cat >conftest.$ac_ext <<_ACEOF
10736 /* confdefs.h. */
10737 _ACEOF
10738 cat confdefs.h >>conftest.$ac_ext
10739 cat >>conftest.$ac_ext <<_ACEOF
10740 /* end confdefs.h. */
10741
10742 int
10743 main ()
10744 {
10745 XOpenDisplay ("foo");
10746 ;
10747 return 0;
10748 }
10749 _ACEOF
10750 rm -f conftest.$ac_objext conftest$ac_exeext
10751 if { (ac_try="$ac_link"
10752 case "(($ac_try" in
10753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10754 *) ac_try_echo=$ac_try;;
10755 esac
10756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10757 $as_echo "$ac_try_echo") >&5
10758 (eval "$ac_link") 2>conftest.er1
10759 ac_status=$?
10760 grep -v '^ *+' conftest.er1 >conftest.err
10761 rm -f conftest.er1
10762 cat conftest.err >&5
10763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); } && {
10765 test -z "$ac_c_werror_flag" ||
10766 test ! -s conftest.err
10767 } && test -s conftest$ac_exeext && {
10768 test "$cross_compiling" = yes ||
10769 $as_test_x conftest$ac_exeext
10770 }; then
10771 xlinux_first_failure=no
10772 else
10773 $as_echo "$as_me: failed program was:" >&5
10774 sed 's/^/| /' conftest.$ac_ext >&5
10775
10776 xlinux_first_failure=yes
10777 fi
10778
10779 rm -rf conftest.dSYM
10780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10781 conftest$ac_exeext conftest.$ac_ext
10782 if test "${xlinux_first_failure}" = "yes"; then
10783 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10784 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10785 OLD_CPPFLAGS="$CPPFLAGS"
10786 OLD_LIBS="$LIBS"
10787 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10788 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10789 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10790 LIBS="$LIBS -b i486-linuxaout"
10791 cat >conftest.$ac_ext <<_ACEOF
10792 /* confdefs.h. */
10793 _ACEOF
10794 cat confdefs.h >>conftest.$ac_ext
10795 cat >>conftest.$ac_ext <<_ACEOF
10796 /* end confdefs.h. */
10797
10798 int
10799 main ()
10800 {
10801 XOpenDisplay ("foo");
10802 ;
10803 return 0;
10804 }
10805 _ACEOF
10806 rm -f conftest.$ac_objext conftest$ac_exeext
10807 if { (ac_try="$ac_link"
10808 case "(($ac_try" in
10809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10810 *) ac_try_echo=$ac_try;;
10811 esac
10812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10813 $as_echo "$ac_try_echo") >&5
10814 (eval "$ac_link") 2>conftest.er1
10815 ac_status=$?
10816 grep -v '^ *+' conftest.er1 >conftest.err
10817 rm -f conftest.er1
10818 cat conftest.err >&5
10819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } && {
10821 test -z "$ac_c_werror_flag" ||
10822 test ! -s conftest.err
10823 } && test -s conftest$ac_exeext && {
10824 test "$cross_compiling" = yes ||
10825 $as_test_x conftest$ac_exeext
10826 }; then
10827 xlinux_second_failure=no
10828 else
10829 $as_echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10831
10832 xlinux_second_failure=yes
10833 fi
10834
10835 rm -rf conftest.dSYM
10836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10837 conftest$ac_exeext conftest.$ac_ext
10838 if test "${xlinux_second_failure}" = "yes"; then
10839 # If we get the same failure with -b, there is no use adding -b.
10840 # So take it out. This plays safe.
10841 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10842 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10843 CPPFLAGS="$OLD_CPPFLAGS"
10844 LIBS="$OLD_LIBS"
10845 { $as_echo "$as_me:$LINENO: result: no" >&5
10846 $as_echo "no" >&6; }
10847 else
10848 { $as_echo "$as_me:$LINENO: result: yes" >&5
10849 $as_echo "yes" >&6; }
10850 fi
10851 else
10852 { $as_echo "$as_me:$LINENO: result: no" >&5
10853 $as_echo "no" >&6; }
10854 fi
10855 fi
10856
10857 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10858 # header files included from there.
10859 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
10860 $as_echo_n "checking for Xkb... " >&6; }
10861 cat >conftest.$ac_ext <<_ACEOF
10862 /* confdefs.h. */
10863 _ACEOF
10864 cat confdefs.h >>conftest.$ac_ext
10865 cat >>conftest.$ac_ext <<_ACEOF
10866 /* end confdefs.h. */
10867 #include <X11/Xlib.h>
10868 #include <X11/XKBlib.h>
10869 int
10870 main ()
10871 {
10872 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10873 ;
10874 return 0;
10875 }
10876 _ACEOF
10877 rm -f conftest.$ac_objext conftest$ac_exeext
10878 if { (ac_try="$ac_link"
10879 case "(($ac_try" in
10880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881 *) ac_try_echo=$ac_try;;
10882 esac
10883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10884 $as_echo "$ac_try_echo") >&5
10885 (eval "$ac_link") 2>conftest.er1
10886 ac_status=$?
10887 grep -v '^ *+' conftest.er1 >conftest.err
10888 rm -f conftest.er1
10889 cat conftest.err >&5
10890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); } && {
10892 test -z "$ac_c_werror_flag" ||
10893 test ! -s conftest.err
10894 } && test -s conftest$ac_exeext && {
10895 test "$cross_compiling" = yes ||
10896 $as_test_x conftest$ac_exeext
10897 }; then
10898 emacs_xkb=yes
10899 else
10900 $as_echo "$as_me: failed program was:" >&5
10901 sed 's/^/| /' conftest.$ac_ext >&5
10902
10903 emacs_xkb=no
10904 fi
10905
10906 rm -rf conftest.dSYM
10907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10908 conftest$ac_exeext conftest.$ac_ext
10909 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10910 $as_echo "$emacs_xkb" >&6; }
10911 if test $emacs_xkb = yes; then
10912
10913 cat >>confdefs.h <<\_ACEOF
10914 #define HAVE_XKBGETKEYBOARD 1
10915 _ACEOF
10916
10917 fi
10918
10919
10920
10921
10922
10923 for ac_func in XrmSetDatabase XScreenResourceString \
10924 XScreenNumberOfScreen XSetWMProtocols
10925 do
10926 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10927 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10928 $as_echo_n "checking for $ac_func... " >&6; }
10929 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10930 $as_echo_n "(cached) " >&6
10931 else
10932 cat >conftest.$ac_ext <<_ACEOF
10933 /* confdefs.h. */
10934 _ACEOF
10935 cat confdefs.h >>conftest.$ac_ext
10936 cat >>conftest.$ac_ext <<_ACEOF
10937 /* end confdefs.h. */
10938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10940 #define $ac_func innocuous_$ac_func
10941
10942 /* System header to define __stub macros and hopefully few prototypes,
10943 which can conflict with char $ac_func (); below.
10944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10945 <limits.h> exists even on freestanding compilers. */
10946
10947 #ifdef __STDC__
10948 # include <limits.h>
10949 #else
10950 # include <assert.h>
10951 #endif
10952
10953 #undef $ac_func
10954
10955 /* Override any GCC internal prototype to avoid an error.
10956 Use char because int might match the return type of a GCC
10957 builtin and then its argument prototype would still apply. */
10958 #ifdef __cplusplus
10959 extern "C"
10960 #endif
10961 char $ac_func ();
10962 /* The GNU C library defines this for functions which it implements
10963 to always fail with ENOSYS. Some functions are actually named
10964 something starting with __ and the normal name is an alias. */
10965 #if defined __stub_$ac_func || defined __stub___$ac_func
10966 choke me
10967 #endif
10968
10969 int
10970 main ()
10971 {
10972 return $ac_func ();
10973 ;
10974 return 0;
10975 }
10976 _ACEOF
10977 rm -f conftest.$ac_objext conftest$ac_exeext
10978 if { (ac_try="$ac_link"
10979 case "(($ac_try" in
10980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981 *) ac_try_echo=$ac_try;;
10982 esac
10983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10984 $as_echo "$ac_try_echo") >&5
10985 (eval "$ac_link") 2>conftest.er1
10986 ac_status=$?
10987 grep -v '^ *+' conftest.er1 >conftest.err
10988 rm -f conftest.er1
10989 cat conftest.err >&5
10990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); } && {
10992 test -z "$ac_c_werror_flag" ||
10993 test ! -s conftest.err
10994 } && test -s conftest$ac_exeext && {
10995 test "$cross_compiling" = yes ||
10996 $as_test_x conftest$ac_exeext
10997 }; then
10998 eval "$as_ac_var=yes"
10999 else
11000 $as_echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11002
11003 eval "$as_ac_var=no"
11004 fi
11005
11006 rm -rf conftest.dSYM
11007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11008 conftest$ac_exeext conftest.$ac_ext
11009 fi
11010 ac_res=`eval 'as_val=${'$as_ac_var'}
11011 $as_echo "$as_val"'`
11012 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11013 $as_echo "$ac_res" >&6; }
11014 as_val=`eval 'as_val=${'$as_ac_var'}
11015 $as_echo "$as_val"'`
11016 if test "x$as_val" = x""yes; then
11017 cat >>confdefs.h <<_ACEOF
11018 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11019 _ACEOF
11020
11021 fi
11022 done
11023
11024 fi
11025
11026 if test "${window_system}" = "x11"; then
11027 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11028 $as_echo_n "checking X11 version 6... " >&6; }
11029 if test "${emacs_cv_x11_version_6+set}" = set; then
11030 $as_echo_n "(cached) " >&6
11031 else
11032 cat >conftest.$ac_ext <<_ACEOF
11033 /* confdefs.h. */
11034 _ACEOF
11035 cat confdefs.h >>conftest.$ac_ext
11036 cat >>conftest.$ac_ext <<_ACEOF
11037 /* end confdefs.h. */
11038 #include <X11/Xlib.h>
11039 int
11040 main ()
11041 {
11042 #if XlibSpecificationRelease < 6
11043 fail;
11044 #endif
11045
11046 ;
11047 return 0;
11048 }
11049 _ACEOF
11050 rm -f conftest.$ac_objext conftest$ac_exeext
11051 if { (ac_try="$ac_link"
11052 case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11055 esac
11056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11057 $as_echo "$ac_try_echo") >&5
11058 (eval "$ac_link") 2>conftest.er1
11059 ac_status=$?
11060 grep -v '^ *+' conftest.er1 >conftest.err
11061 rm -f conftest.er1
11062 cat conftest.err >&5
11063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } && {
11065 test -z "$ac_c_werror_flag" ||
11066 test ! -s conftest.err
11067 } && test -s conftest$ac_exeext && {
11068 test "$cross_compiling" = yes ||
11069 $as_test_x conftest$ac_exeext
11070 }; then
11071 emacs_cv_x11_version_6=yes
11072 else
11073 $as_echo "$as_me: failed program was:" >&5
11074 sed 's/^/| /' conftest.$ac_ext >&5
11075
11076 emacs_cv_x11_version_6=no
11077 fi
11078
11079 rm -rf conftest.dSYM
11080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11081 conftest$ac_exeext conftest.$ac_ext
11082 fi
11083
11084 if test $emacs_cv_x11_version_6 = yes; then
11085 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11086 $as_echo "6 or newer" >&6; }
11087
11088 cat >>confdefs.h <<\_ACEOF
11089 #define HAVE_X11R6 1
11090 _ACEOF
11091
11092 else
11093 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11094 $as_echo "before 6" >&6; }
11095 fi
11096 fi
11097
11098
11099 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11100 HAVE_RSVG=no
11101 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11102 if test "${with_rsvg}" != "no"; then
11103 RSVG_REQUIRED=2.11.0
11104 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11105
11106
11107 succeeded=no
11108
11109 # Extract the first word of "pkg-config", so it can be a program name with args.
11110 set dummy pkg-config; ac_word=$2
11111 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11112 $as_echo_n "checking for $ac_word... " >&6; }
11113 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11114 $as_echo_n "(cached) " >&6
11115 else
11116 case $PKG_CONFIG in
11117 [\\/]* | ?:[\\/]*)
11118 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11119 ;;
11120 *)
11121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11122 for as_dir in $PATH
11123 do
11124 IFS=$as_save_IFS
11125 test -z "$as_dir" && as_dir=.
11126 for ac_exec_ext in '' $ac_executable_extensions; do
11127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11128 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11129 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11130 break 2
11131 fi
11132 done
11133 done
11134 IFS=$as_save_IFS
11135
11136 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11137 ;;
11138 esac
11139 fi
11140 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11141 if test -n "$PKG_CONFIG"; then
11142 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11143 $as_echo "$PKG_CONFIG" >&6; }
11144 else
11145 { $as_echo "$as_me:$LINENO: result: no" >&5
11146 $as_echo "no" >&6; }
11147 fi
11148
11149
11150
11151 if test "$PKG_CONFIG" = "no" ; then
11152 :
11153 else
11154 PKG_CONFIG_MIN_VERSION=0.9.0
11155 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11156 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11157 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11158
11159 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11160 { $as_echo "$as_me:$LINENO: result: yes" >&5
11161 $as_echo "yes" >&6; }
11162 succeeded=yes
11163
11164 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11165 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11166 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11167 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11168 $as_echo "$RSVG_CFLAGS" >&6; }
11169
11170 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11171 $as_echo_n "checking RSVG_LIBS... " >&6; }
11172 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11173 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11174 $as_echo "$RSVG_LIBS" >&6; }
11175 else
11176 { $as_echo "$as_me:$LINENO: result: no" >&5
11177 $as_echo "no" >&6; }
11178 RSVG_CFLAGS=""
11179 RSVG_LIBS=""
11180 ## If we have a custom action on failure, don't print errors, but
11181 ## do set a variable so people can do so.
11182 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11183
11184 fi
11185
11186
11187
11188 else
11189 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11190 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11191 fi
11192 fi
11193
11194 if test $succeeded = yes; then
11195 :
11196 else
11197 :
11198 fi
11199
11200
11201
11202
11203 if test ".${RSVG_CFLAGS}" != "."; then
11204 HAVE_RSVG=yes
11205
11206 cat >>confdefs.h <<\_ACEOF
11207 #define HAVE_RSVG 1
11208 _ACEOF
11209
11210 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11211 LIBS="$RSVG_LIBS $LIBS"
11212 fi
11213 fi
11214 fi
11215
11216
11217 HAVE_GTK=no
11218 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11219 GLIB_REQUIRED=2.6
11220 GTK_REQUIRED=2.6
11221 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11222
11223
11224 succeeded=no
11225
11226 # Extract the first word of "pkg-config", so it can be a program name with args.
11227 set dummy pkg-config; ac_word=$2
11228 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11229 $as_echo_n "checking for $ac_word... " >&6; }
11230 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11231 $as_echo_n "(cached) " >&6
11232 else
11233 case $PKG_CONFIG in
11234 [\\/]* | ?:[\\/]*)
11235 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11236 ;;
11237 *)
11238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11239 for as_dir in $PATH
11240 do
11241 IFS=$as_save_IFS
11242 test -z "$as_dir" && as_dir=.
11243 for ac_exec_ext in '' $ac_executable_extensions; do
11244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11245 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11246 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11247 break 2
11248 fi
11249 done
11250 done
11251 IFS=$as_save_IFS
11252
11253 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11254 ;;
11255 esac
11256 fi
11257 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11258 if test -n "$PKG_CONFIG"; then
11259 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11260 $as_echo "$PKG_CONFIG" >&6; }
11261 else
11262 { $as_echo "$as_me:$LINENO: result: no" >&5
11263 $as_echo "no" >&6; }
11264 fi
11265
11266
11267
11268 if test "$PKG_CONFIG" = "no" ; then
11269 pkg_check_gtk=no
11270 else
11271 PKG_CONFIG_MIN_VERSION=0.9.0
11272 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11273 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11274 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11275
11276 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11277 { $as_echo "$as_me:$LINENO: result: yes" >&5
11278 $as_echo "yes" >&6; }
11279 succeeded=yes
11280
11281 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11282 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11283 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11284 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11285 $as_echo "$GTK_CFLAGS" >&6; }
11286
11287 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11288 $as_echo_n "checking GTK_LIBS... " >&6; }
11289 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11290 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11291 $as_echo "$GTK_LIBS" >&6; }
11292 else
11293 { $as_echo "$as_me:$LINENO: result: no" >&5
11294 $as_echo "no" >&6; }
11295 GTK_CFLAGS=""
11296 GTK_LIBS=""
11297 ## If we have a custom action on failure, don't print errors, but
11298 ## do set a variable so people can do so.
11299 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11300
11301 fi
11302
11303
11304
11305 else
11306 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11307 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11308 fi
11309 fi
11310
11311 if test $succeeded = yes; then
11312 pkg_check_gtk=yes
11313 else
11314 pkg_check_gtk=no
11315 fi
11316
11317 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11318 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11319 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11320 { (exit 1); exit 1; }; }
11321 fi
11322 fi
11323
11324
11325 if test x"$pkg_check_gtk" = xyes; then
11326
11327
11328
11329 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11330 CFLAGS="$CFLAGS $GTK_CFLAGS"
11331 LIBS="$GTK_LIBS $LIBS"
11332 GTK_COMPILES=no
11333
11334 for ac_func in gtk_main
11335 do
11336 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11337 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11338 $as_echo_n "checking for $ac_func... " >&6; }
11339 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11340 $as_echo_n "(cached) " >&6
11341 else
11342 cat >conftest.$ac_ext <<_ACEOF
11343 /* confdefs.h. */
11344 _ACEOF
11345 cat confdefs.h >>conftest.$ac_ext
11346 cat >>conftest.$ac_ext <<_ACEOF
11347 /* end confdefs.h. */
11348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11350 #define $ac_func innocuous_$ac_func
11351
11352 /* System header to define __stub macros and hopefully few prototypes,
11353 which can conflict with char $ac_func (); below.
11354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11355 <limits.h> exists even on freestanding compilers. */
11356
11357 #ifdef __STDC__
11358 # include <limits.h>
11359 #else
11360 # include <assert.h>
11361 #endif
11362
11363 #undef $ac_func
11364
11365 /* Override any GCC internal prototype to avoid an error.
11366 Use char because int might match the return type of a GCC
11367 builtin and then its argument prototype would still apply. */
11368 #ifdef __cplusplus
11369 extern "C"
11370 #endif
11371 char $ac_func ();
11372 /* The GNU C library defines this for functions which it implements
11373 to always fail with ENOSYS. Some functions are actually named
11374 something starting with __ and the normal name is an alias. */
11375 #if defined __stub_$ac_func || defined __stub___$ac_func
11376 choke me
11377 #endif
11378
11379 int
11380 main ()
11381 {
11382 return $ac_func ();
11383 ;
11384 return 0;
11385 }
11386 _ACEOF
11387 rm -f conftest.$ac_objext conftest$ac_exeext
11388 if { (ac_try="$ac_link"
11389 case "(($ac_try" in
11390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11391 *) ac_try_echo=$ac_try;;
11392 esac
11393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11394 $as_echo "$ac_try_echo") >&5
11395 (eval "$ac_link") 2>conftest.er1
11396 ac_status=$?
11397 grep -v '^ *+' conftest.er1 >conftest.err
11398 rm -f conftest.er1
11399 cat conftest.err >&5
11400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); } && {
11402 test -z "$ac_c_werror_flag" ||
11403 test ! -s conftest.err
11404 } && test -s conftest$ac_exeext && {
11405 test "$cross_compiling" = yes ||
11406 $as_test_x conftest$ac_exeext
11407 }; then
11408 eval "$as_ac_var=yes"
11409 else
11410 $as_echo "$as_me: failed program was:" >&5
11411 sed 's/^/| /' conftest.$ac_ext >&5
11412
11413 eval "$as_ac_var=no"
11414 fi
11415
11416 rm -rf conftest.dSYM
11417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11418 conftest$ac_exeext conftest.$ac_ext
11419 fi
11420 ac_res=`eval 'as_val=${'$as_ac_var'}
11421 $as_echo "$as_val"'`
11422 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11423 $as_echo "$ac_res" >&6; }
11424 as_val=`eval 'as_val=${'$as_ac_var'}
11425 $as_echo "$as_val"'`
11426 if test "x$as_val" = x""yes; then
11427 cat >>confdefs.h <<_ACEOF
11428 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11429 _ACEOF
11430 GTK_COMPILES=yes
11431 fi
11432 done
11433
11434 if test "${GTK_COMPILES}" != "yes"; then
11435 if test "$USE_X_TOOLKIT" != "maybe"; then
11436 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11437 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11438 { (exit 1); exit 1; }; };
11439 fi
11440 else
11441 HAVE_GTK=yes
11442
11443 cat >>confdefs.h <<\_ACEOF
11444 #define USE_GTK 1
11445 _ACEOF
11446
11447 USE_X_TOOLKIT=none
11448 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11449 :
11450 else
11451 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11452 closing open displays. This is no problem if you just use
11453 one display, but if you use more than one and close one of them
11454 Emacs may crash." >&5
11455 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11456 closing open displays. This is no problem if you just use
11457 one display, but if you use more than one and close one of them
11458 Emacs may crash." >&2;}
11459 sleep 3
11460 fi
11461 fi
11462
11463 fi
11464
11465
11466 if test "${HAVE_GTK}" = "yes"; then
11467
11468 if test "$with_toolkit_scroll_bars" != no; then
11469 with_toolkit_scroll_bars=yes
11470 fi
11471
11472 HAVE_GTK_MULTIDISPLAY=no
11473
11474 for ac_func in gdk_display_open
11475 do
11476 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11477 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11478 $as_echo_n "checking for $ac_func... " >&6; }
11479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11480 $as_echo_n "(cached) " >&6
11481 else
11482 cat >conftest.$ac_ext <<_ACEOF
11483 /* confdefs.h. */
11484 _ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11490 #define $ac_func innocuous_$ac_func
11491
11492 /* System header to define __stub macros and hopefully few prototypes,
11493 which can conflict with char $ac_func (); below.
11494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11495 <limits.h> exists even on freestanding compilers. */
11496
11497 #ifdef __STDC__
11498 # include <limits.h>
11499 #else
11500 # include <assert.h>
11501 #endif
11502
11503 #undef $ac_func
11504
11505 /* Override any GCC internal prototype to avoid an error.
11506 Use char because int might match the return type of a GCC
11507 builtin and then its argument prototype would still apply. */
11508 #ifdef __cplusplus
11509 extern "C"
11510 #endif
11511 char $ac_func ();
11512 /* The GNU C library defines this for functions which it implements
11513 to always fail with ENOSYS. Some functions are actually named
11514 something starting with __ and the normal name is an alias. */
11515 #if defined __stub_$ac_func || defined __stub___$ac_func
11516 choke me
11517 #endif
11518
11519 int
11520 main ()
11521 {
11522 return $ac_func ();
11523 ;
11524 return 0;
11525 }
11526 _ACEOF
11527 rm -f conftest.$ac_objext conftest$ac_exeext
11528 if { (ac_try="$ac_link"
11529 case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11532 esac
11533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11534 $as_echo "$ac_try_echo") >&5
11535 (eval "$ac_link") 2>conftest.er1
11536 ac_status=$?
11537 grep -v '^ *+' conftest.er1 >conftest.err
11538 rm -f conftest.er1
11539 cat conftest.err >&5
11540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); } && {
11542 test -z "$ac_c_werror_flag" ||
11543 test ! -s conftest.err
11544 } && test -s conftest$ac_exeext && {
11545 test "$cross_compiling" = yes ||
11546 $as_test_x conftest$ac_exeext
11547 }; then
11548 eval "$as_ac_var=yes"
11549 else
11550 $as_echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11552
11553 eval "$as_ac_var=no"
11554 fi
11555
11556 rm -rf conftest.dSYM
11557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11558 conftest$ac_exeext conftest.$ac_ext
11559 fi
11560 ac_res=`eval 'as_val=${'$as_ac_var'}
11561 $as_echo "$as_val"'`
11562 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11563 $as_echo "$ac_res" >&6; }
11564 as_val=`eval 'as_val=${'$as_ac_var'}
11565 $as_echo "$as_val"'`
11566 if test "x$as_val" = x""yes; then
11567 cat >>confdefs.h <<_ACEOF
11568 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11569 _ACEOF
11570 HAVE_GTK_MULTIDISPLAY=yes
11571 fi
11572 done
11573
11574 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11575
11576 cat >>confdefs.h <<\_ACEOF
11577 #define HAVE_GTK_MULTIDISPLAY 1
11578 _ACEOF
11579
11580 fi
11581
11582 HAVE_GTK_FILE_SELECTION=no
11583
11584 for ac_func in gtk_file_selection_new
11585 do
11586 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11587 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11588 $as_echo_n "checking for $ac_func... " >&6; }
11589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11590 $as_echo_n "(cached) " >&6
11591 else
11592 cat >conftest.$ac_ext <<_ACEOF
11593 /* confdefs.h. */
11594 _ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h. */
11598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11600 #define $ac_func innocuous_$ac_func
11601
11602 /* System header to define __stub macros and hopefully few prototypes,
11603 which can conflict with char $ac_func (); below.
11604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11605 <limits.h> exists even on freestanding compilers. */
11606
11607 #ifdef __STDC__
11608 # include <limits.h>
11609 #else
11610 # include <assert.h>
11611 #endif
11612
11613 #undef $ac_func
11614
11615 /* Override any GCC internal prototype to avoid an error.
11616 Use char because int might match the return type of a GCC
11617 builtin and then its argument prototype would still apply. */
11618 #ifdef __cplusplus
11619 extern "C"
11620 #endif
11621 char $ac_func ();
11622 /* The GNU C library defines this for functions which it implements
11623 to always fail with ENOSYS. Some functions are actually named
11624 something starting with __ and the normal name is an alias. */
11625 #if defined __stub_$ac_func || defined __stub___$ac_func
11626 choke me
11627 #endif
11628
11629 int
11630 main ()
11631 {
11632 return $ac_func ();
11633 ;
11634 return 0;
11635 }
11636 _ACEOF
11637 rm -f conftest.$ac_objext conftest$ac_exeext
11638 if { (ac_try="$ac_link"
11639 case "(($ac_try" in
11640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641 *) ac_try_echo=$ac_try;;
11642 esac
11643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11644 $as_echo "$ac_try_echo") >&5
11645 (eval "$ac_link") 2>conftest.er1
11646 ac_status=$?
11647 grep -v '^ *+' conftest.er1 >conftest.err
11648 rm -f conftest.er1
11649 cat conftest.err >&5
11650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); } && {
11652 test -z "$ac_c_werror_flag" ||
11653 test ! -s conftest.err
11654 } && test -s conftest$ac_exeext && {
11655 test "$cross_compiling" = yes ||
11656 $as_test_x conftest$ac_exeext
11657 }; then
11658 eval "$as_ac_var=yes"
11659 else
11660 $as_echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.$ac_ext >&5
11662
11663 eval "$as_ac_var=no"
11664 fi
11665
11666 rm -rf conftest.dSYM
11667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11668 conftest$ac_exeext conftest.$ac_ext
11669 fi
11670 ac_res=`eval 'as_val=${'$as_ac_var'}
11671 $as_echo "$as_val"'`
11672 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11673 $as_echo "$ac_res" >&6; }
11674 as_val=`eval 'as_val=${'$as_ac_var'}
11675 $as_echo "$as_val"'`
11676 if test "x$as_val" = x""yes; then
11677 cat >>confdefs.h <<_ACEOF
11678 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11679 _ACEOF
11680 HAVE_GTK_FILE_SELECTION=yes
11681 fi
11682 done
11683
11684
11685 HAVE_GTK_FILE_CHOOSER=no
11686
11687 for ac_func in gtk_file_chooser_dialog_new
11688 do
11689 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11690 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11691 $as_echo_n "checking for $ac_func... " >&6; }
11692 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11693 $as_echo_n "(cached) " >&6
11694 else
11695 cat >conftest.$ac_ext <<_ACEOF
11696 /* confdefs.h. */
11697 _ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11703 #define $ac_func innocuous_$ac_func
11704
11705 /* System header to define __stub macros and hopefully few prototypes,
11706 which can conflict with char $ac_func (); below.
11707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11708 <limits.h> exists even on freestanding compilers. */
11709
11710 #ifdef __STDC__
11711 # include <limits.h>
11712 #else
11713 # include <assert.h>
11714 #endif
11715
11716 #undef $ac_func
11717
11718 /* Override any GCC internal prototype to avoid an error.
11719 Use char because int might match the return type of a GCC
11720 builtin and then its argument prototype would still apply. */
11721 #ifdef __cplusplus
11722 extern "C"
11723 #endif
11724 char $ac_func ();
11725 /* The GNU C library defines this for functions which it implements
11726 to always fail with ENOSYS. Some functions are actually named
11727 something starting with __ and the normal name is an alias. */
11728 #if defined __stub_$ac_func || defined __stub___$ac_func
11729 choke me
11730 #endif
11731
11732 int
11733 main ()
11734 {
11735 return $ac_func ();
11736 ;
11737 return 0;
11738 }
11739 _ACEOF
11740 rm -f conftest.$ac_objext conftest$ac_exeext
11741 if { (ac_try="$ac_link"
11742 case "(($ac_try" in
11743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11744 *) ac_try_echo=$ac_try;;
11745 esac
11746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11747 $as_echo "$ac_try_echo") >&5
11748 (eval "$ac_link") 2>conftest.er1
11749 ac_status=$?
11750 grep -v '^ *+' conftest.er1 >conftest.err
11751 rm -f conftest.er1
11752 cat conftest.err >&5
11753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } && {
11755 test -z "$ac_c_werror_flag" ||
11756 test ! -s conftest.err
11757 } && test -s conftest$ac_exeext && {
11758 test "$cross_compiling" = yes ||
11759 $as_test_x conftest$ac_exeext
11760 }; then
11761 eval "$as_ac_var=yes"
11762 else
11763 $as_echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11765
11766 eval "$as_ac_var=no"
11767 fi
11768
11769 rm -rf conftest.dSYM
11770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11771 conftest$ac_exeext conftest.$ac_ext
11772 fi
11773 ac_res=`eval 'as_val=${'$as_ac_var'}
11774 $as_echo "$as_val"'`
11775 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11776 $as_echo "$ac_res" >&6; }
11777 as_val=`eval 'as_val=${'$as_ac_var'}
11778 $as_echo "$as_val"'`
11779 if test "x$as_val" = x""yes; then
11780 cat >>confdefs.h <<_ACEOF
11781 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11782 _ACEOF
11783 HAVE_GTK_FILE_CHOOSER=yes
11784 fi
11785 done
11786
11787
11788 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11789 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11790
11791 cat >>confdefs.h <<\_ACEOF
11792 #define HAVE_GTK_FILE_BOTH 1
11793 _ACEOF
11794
11795 fi
11796
11797 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11798 HAVE_GTK_AND_PTHREAD=no
11799
11800 for ac_header in pthread.h
11801 do
11802 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11804 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11805 $as_echo_n "checking for $ac_header... " >&6; }
11806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11807 $as_echo_n "(cached) " >&6
11808 fi
11809 ac_res=`eval 'as_val=${'$as_ac_Header'}
11810 $as_echo "$as_val"'`
11811 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11812 $as_echo "$ac_res" >&6; }
11813 else
11814 # Is the header compilable?
11815 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11816 $as_echo_n "checking $ac_header usability... " >&6; }
11817 cat >conftest.$ac_ext <<_ACEOF
11818 /* confdefs.h. */
11819 _ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h. */
11823 $ac_includes_default
11824 #include <$ac_header>
11825 _ACEOF
11826 rm -f conftest.$ac_objext
11827 if { (ac_try="$ac_compile"
11828 case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11831 esac
11832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11833 $as_echo "$ac_try_echo") >&5
11834 (eval "$ac_compile") 2>conftest.er1
11835 ac_status=$?
11836 grep -v '^ *+' conftest.er1 >conftest.err
11837 rm -f conftest.er1
11838 cat conftest.err >&5
11839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } && {
11841 test -z "$ac_c_werror_flag" ||
11842 test ! -s conftest.err
11843 } && test -s conftest.$ac_objext; then
11844 ac_header_compiler=yes
11845 else
11846 $as_echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11848
11849 ac_header_compiler=no
11850 fi
11851
11852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11853 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11854 $as_echo "$ac_header_compiler" >&6; }
11855
11856 # Is the header present?
11857 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11858 $as_echo_n "checking $ac_header presence... " >&6; }
11859 cat >conftest.$ac_ext <<_ACEOF
11860 /* confdefs.h. */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 #include <$ac_header>
11866 _ACEOF
11867 if { (ac_try="$ac_cpp conftest.$ac_ext"
11868 case "(($ac_try" in
11869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870 *) ac_try_echo=$ac_try;;
11871 esac
11872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11873 $as_echo "$ac_try_echo") >&5
11874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11875 ac_status=$?
11876 grep -v '^ *+' conftest.er1 >conftest.err
11877 rm -f conftest.er1
11878 cat conftest.err >&5
11879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } >/dev/null && {
11881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11882 test ! -s conftest.err
11883 }; then
11884 ac_header_preproc=yes
11885 else
11886 $as_echo "$as_me: failed program was:" >&5
11887 sed 's/^/| /' conftest.$ac_ext >&5
11888
11889 ac_header_preproc=no
11890 fi
11891
11892 rm -f conftest.err conftest.$ac_ext
11893 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11894 $as_echo "$ac_header_preproc" >&6; }
11895
11896 # So? What about this header?
11897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11898 yes:no: )
11899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11900 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11902 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11903 ac_header_preproc=yes
11904 ;;
11905 no:yes:* )
11906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11907 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11908 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11909 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11911 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11913 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11914 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11915 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11917 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11918
11919 ;;
11920 esac
11921 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11922 $as_echo_n "checking for $ac_header... " >&6; }
11923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11924 $as_echo_n "(cached) " >&6
11925 else
11926 eval "$as_ac_Header=\$ac_header_preproc"
11927 fi
11928 ac_res=`eval 'as_val=${'$as_ac_Header'}
11929 $as_echo "$as_val"'`
11930 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11931 $as_echo "$ac_res" >&6; }
11932
11933 fi
11934 as_val=`eval 'as_val=${'$as_ac_Header'}
11935 $as_echo "$as_val"'`
11936 if test "x$as_val" = x""yes; then
11937 cat >>confdefs.h <<_ACEOF
11938 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11939 _ACEOF
11940
11941 fi
11942
11943 done
11944
11945 if test "$ac_cv_header_pthread_h"; then
11946 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11947 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
11948 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11949 $as_echo_n "(cached) " >&6
11950 else
11951 ac_check_lib_save_LIBS=$LIBS
11952 LIBS="-lpthread $LIBS"
11953 cat >conftest.$ac_ext <<_ACEOF
11954 /* confdefs.h. */
11955 _ACEOF
11956 cat confdefs.h >>conftest.$ac_ext
11957 cat >>conftest.$ac_ext <<_ACEOF
11958 /* end confdefs.h. */
11959
11960 /* Override any GCC internal prototype to avoid an error.
11961 Use char because int might match the return type of a GCC
11962 builtin and then its argument prototype would still apply. */
11963 #ifdef __cplusplus
11964 extern "C"
11965 #endif
11966 char pthread_self ();
11967 int
11968 main ()
11969 {
11970 return pthread_self ();
11971 ;
11972 return 0;
11973 }
11974 _ACEOF
11975 rm -f conftest.$ac_objext conftest$ac_exeext
11976 if { (ac_try="$ac_link"
11977 case "(($ac_try" in
11978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11979 *) ac_try_echo=$ac_try;;
11980 esac
11981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11982 $as_echo "$ac_try_echo") >&5
11983 (eval "$ac_link") 2>conftest.er1
11984 ac_status=$?
11985 grep -v '^ *+' conftest.er1 >conftest.err
11986 rm -f conftest.er1
11987 cat conftest.err >&5
11988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); } && {
11990 test -z "$ac_c_werror_flag" ||
11991 test ! -s conftest.err
11992 } && test -s conftest$ac_exeext && {
11993 test "$cross_compiling" = yes ||
11994 $as_test_x conftest$ac_exeext
11995 }; then
11996 ac_cv_lib_pthread_pthread_self=yes
11997 else
11998 $as_echo "$as_me: failed program was:" >&5
11999 sed 's/^/| /' conftest.$ac_ext >&5
12000
12001 ac_cv_lib_pthread_pthread_self=no
12002 fi
12003
12004 rm -rf conftest.dSYM
12005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12006 conftest$ac_exeext conftest.$ac_ext
12007 LIBS=$ac_check_lib_save_LIBS
12008 fi
12009 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12010 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12011 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then
12012 HAVE_GTK_AND_PTHREAD=yes
12013 fi
12014
12015 fi
12016 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12017 case "${canonical}" in
12018 *-hpux*) ;;
12019 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12020 esac
12021
12022 cat >>confdefs.h <<\_ACEOF
12023 #define HAVE_GTK_AND_PTHREAD 1
12024 _ACEOF
12025
12026 fi
12027 fi
12028 fi
12029
12030 HAVE_DBUS=no
12031 if test "${with_dbus}" = "yes"; then
12032
12033 succeeded=no
12034
12035 # Extract the first word of "pkg-config", so it can be a program name with args.
12036 set dummy pkg-config; ac_word=$2
12037 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12038 $as_echo_n "checking for $ac_word... " >&6; }
12039 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12040 $as_echo_n "(cached) " >&6
12041 else
12042 case $PKG_CONFIG in
12043 [\\/]* | ?:[\\/]*)
12044 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12045 ;;
12046 *)
12047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12048 for as_dir in $PATH
12049 do
12050 IFS=$as_save_IFS
12051 test -z "$as_dir" && as_dir=.
12052 for ac_exec_ext in '' $ac_executable_extensions; do
12053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12054 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12055 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12056 break 2
12057 fi
12058 done
12059 done
12060 IFS=$as_save_IFS
12061
12062 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12063 ;;
12064 esac
12065 fi
12066 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12067 if test -n "$PKG_CONFIG"; then
12068 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12069 $as_echo "$PKG_CONFIG" >&6; }
12070 else
12071 { $as_echo "$as_me:$LINENO: result: no" >&5
12072 $as_echo "no" >&6; }
12073 fi
12074
12075
12076
12077 if test "$PKG_CONFIG" = "no" ; then
12078 HAVE_DBUS=no
12079 else
12080 PKG_CONFIG_MIN_VERSION=0.9.0
12081 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12082 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12083 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12084
12085 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12086 { $as_echo "$as_me:$LINENO: result: yes" >&5
12087 $as_echo "yes" >&6; }
12088 succeeded=yes
12089
12090 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12091 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12092 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12093 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12094 $as_echo "$DBUS_CFLAGS" >&6; }
12095
12096 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12097 $as_echo_n "checking DBUS_LIBS... " >&6; }
12098 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12099 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12100 $as_echo "$DBUS_LIBS" >&6; }
12101 else
12102 { $as_echo "$as_me:$LINENO: result: no" >&5
12103 $as_echo "no" >&6; }
12104 DBUS_CFLAGS=""
12105 DBUS_LIBS=""
12106 ## If we have a custom action on failure, don't print errors, but
12107 ## do set a variable so people can do so.
12108 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12109
12110 fi
12111
12112
12113
12114 else
12115 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12116 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12117 fi
12118 fi
12119
12120 if test $succeeded = yes; then
12121 HAVE_DBUS=yes
12122 else
12123 HAVE_DBUS=no
12124 fi
12125
12126 if test "$HAVE_DBUS" = yes; then
12127
12128 cat >>confdefs.h <<\_ACEOF
12129 #define HAVE_DBUS 1
12130 _ACEOF
12131
12132 fi
12133 fi
12134
12135 HAVE_XAW3D=no
12136 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12137 if test "$with_xaw3d" != no; then
12138 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12139 $as_echo_n "checking for xaw3d... " >&6; }
12140 if test "${emacs_cv_xaw3d+set}" = set; then
12141 $as_echo_n "(cached) " >&6
12142 else
12143 cat >conftest.$ac_ext <<_ACEOF
12144 /* confdefs.h. */
12145 _ACEOF
12146 cat confdefs.h >>conftest.$ac_ext
12147 cat >>conftest.$ac_ext <<_ACEOF
12148 /* end confdefs.h. */
12149
12150 #include <X11/Intrinsic.h>
12151 #include <X11/Xaw3d/Simple.h>
12152 int
12153 main ()
12154 {
12155
12156 ;
12157 return 0;
12158 }
12159 _ACEOF
12160 rm -f conftest.$ac_objext conftest$ac_exeext
12161 if { (ac_try="$ac_link"
12162 case "(($ac_try" in
12163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12164 *) ac_try_echo=$ac_try;;
12165 esac
12166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12167 $as_echo "$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 $as_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 test "$cross_compiling" = yes ||
12179 $as_test_x conftest$ac_exeext
12180 }; then
12181 emacs_cv_xaw3d=yes
12182 else
12183 $as_echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12185
12186 emacs_cv_xaw3d=no
12187 fi
12188
12189 rm -rf conftest.dSYM
12190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12191 conftest$ac_exeext conftest.$ac_ext
12192 fi
12193
12194 else
12195 emacs_cv_xaw3d=no
12196 fi
12197 if test $emacs_cv_xaw3d = yes; then
12198 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12199 $as_echo "yes; using Lucid toolkit" >&6; }
12200 USE_X_TOOLKIT=LUCID
12201 HAVE_XAW3D=yes
12202
12203 cat >>confdefs.h <<\_ACEOF
12204 #define HAVE_XAW3D 1
12205 _ACEOF
12206
12207 else
12208 { $as_echo "$as_me:$LINENO: result: no" >&5
12209 $as_echo "no" >&6; }
12210 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12211 $as_echo_n "checking for libXaw... " >&6; }
12212 if test "${emacs_cv_xaw+set}" = set; then
12213 $as_echo_n "(cached) " >&6
12214 else
12215 cat >conftest.$ac_ext <<_ACEOF
12216 /* confdefs.h. */
12217 _ACEOF
12218 cat confdefs.h >>conftest.$ac_ext
12219 cat >>conftest.$ac_ext <<_ACEOF
12220 /* end confdefs.h. */
12221
12222 #include <X11/Intrinsic.h>
12223 #include <X11/Xaw/Simple.h>
12224 int
12225 main ()
12226 {
12227
12228 ;
12229 return 0;
12230 }
12231 _ACEOF
12232 rm -f conftest.$ac_objext conftest$ac_exeext
12233 if { (ac_try="$ac_link"
12234 case "(($ac_try" in
12235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12236 *) ac_try_echo=$ac_try;;
12237 esac
12238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12239 $as_echo "$ac_try_echo") >&5
12240 (eval "$ac_link") 2>conftest.er1
12241 ac_status=$?
12242 grep -v '^ *+' conftest.er1 >conftest.err
12243 rm -f conftest.er1
12244 cat conftest.err >&5
12245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } && {
12247 test -z "$ac_c_werror_flag" ||
12248 test ! -s conftest.err
12249 } && test -s conftest$ac_exeext && {
12250 test "$cross_compiling" = yes ||
12251 $as_test_x conftest$ac_exeext
12252 }; then
12253 emacs_cv_xaw=yes
12254 else
12255 $as_echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12257
12258 emacs_cv_xaw=no
12259 fi
12260
12261 rm -rf conftest.dSYM
12262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12263 conftest$ac_exeext conftest.$ac_ext
12264 fi
12265
12266 if test $emacs_cv_xaw = yes; then
12267 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12268 $as_echo "yes; using Lucid toolkit" >&6; }
12269 USE_X_TOOLKIT=LUCID
12270 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12271 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12272 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12273 { (exit 1); exit 1; }; }
12274 else
12275 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12276 $as_echo "no; do not use toolkit by default" >&6; }
12277 USE_X_TOOLKIT=none
12278 fi
12279 fi
12280 fi
12281
12282 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12283
12284 if test "${USE_X_TOOLKIT}" != "none"; then
12285 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12286 $as_echo_n "checking X11 toolkit version... " >&6; }
12287 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12288 $as_echo_n "(cached) " >&6
12289 else
12290 cat >conftest.$ac_ext <<_ACEOF
12291 /* confdefs.h. */
12292 _ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h. */
12296 #include <X11/Intrinsic.h>
12297 int
12298 main ()
12299 {
12300 #if XtSpecificationRelease < 6
12301 fail;
12302 #endif
12303
12304 ;
12305 return 0;
12306 }
12307 _ACEOF
12308 rm -f conftest.$ac_objext conftest$ac_exeext
12309 if { (ac_try="$ac_link"
12310 case "(($ac_try" in
12311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12312 *) ac_try_echo=$ac_try;;
12313 esac
12314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12315 $as_echo "$ac_try_echo") >&5
12316 (eval "$ac_link") 2>conftest.er1
12317 ac_status=$?
12318 grep -v '^ *+' conftest.er1 >conftest.err
12319 rm -f conftest.er1
12320 cat conftest.err >&5
12321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); } && {
12323 test -z "$ac_c_werror_flag" ||
12324 test ! -s conftest.err
12325 } && test -s conftest$ac_exeext && {
12326 test "$cross_compiling" = yes ||
12327 $as_test_x conftest$ac_exeext
12328 }; then
12329 emacs_cv_x11_toolkit_version_6=yes
12330 else
12331 $as_echo "$as_me: failed program was:" >&5
12332 sed 's/^/| /' conftest.$ac_ext >&5
12333
12334 emacs_cv_x11_toolkit_version_6=no
12335 fi
12336
12337 rm -rf conftest.dSYM
12338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12339 conftest$ac_exeext conftest.$ac_ext
12340 fi
12341
12342 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12343 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12344 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
12345 $as_echo "6 or newer" >&6; }
12346
12347 cat >>confdefs.h <<\_ACEOF
12348 #define HAVE_X11XTR6 1
12349 _ACEOF
12350
12351 else
12352 { $as_echo "$as_me:$LINENO: result: before 6" >&5
12353 $as_echo "before 6" >&6; }
12354 fi
12355
12356 OLDLIBS="$LIBS"
12357 if test x$HAVE_X11XTR6 = xyes; then
12358 LIBS="-lXt -lSM -lICE $LIBS"
12359 else
12360 LIBS="-lXt $LIBS"
12361 fi
12362
12363 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12364 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12365 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12366 $as_echo_n "(cached) " >&6
12367 else
12368 ac_check_lib_save_LIBS=$LIBS
12369 LIBS="-lXmu $LIBS"
12370 cat >conftest.$ac_ext <<_ACEOF
12371 /* confdefs.h. */
12372 _ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h. */
12376
12377 /* Override any GCC internal prototype to avoid an error.
12378 Use char because int might match the return type of a GCC
12379 builtin and then its argument prototype would still apply. */
12380 #ifdef __cplusplus
12381 extern "C"
12382 #endif
12383 char XmuConvertStandardSelection ();
12384 int
12385 main ()
12386 {
12387 return XmuConvertStandardSelection ();
12388 ;
12389 return 0;
12390 }
12391 _ACEOF
12392 rm -f conftest.$ac_objext conftest$ac_exeext
12393 if { (ac_try="$ac_link"
12394 case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12397 esac
12398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12399 $as_echo "$ac_try_echo") >&5
12400 (eval "$ac_link") 2>conftest.er1
12401 ac_status=$?
12402 grep -v '^ *+' conftest.er1 >conftest.err
12403 rm -f conftest.er1
12404 cat conftest.err >&5
12405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); } && {
12407 test -z "$ac_c_werror_flag" ||
12408 test ! -s conftest.err
12409 } && test -s conftest$ac_exeext && {
12410 test "$cross_compiling" = yes ||
12411 $as_test_x conftest$ac_exeext
12412 }; then
12413 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12414 else
12415 $as_echo "$as_me: failed program was:" >&5
12416 sed 's/^/| /' conftest.$ac_ext >&5
12417
12418 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12419 fi
12420
12421 rm -rf conftest.dSYM
12422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12423 conftest$ac_exeext conftest.$ac_ext
12424 LIBS=$ac_check_lib_save_LIBS
12425 fi
12426 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12427 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12428 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then
12429 cat >>confdefs.h <<_ACEOF
12430 #define HAVE_LIBXMU 1
12431 _ACEOF
12432
12433 LIBS="-lXmu $LIBS"
12434
12435 fi
12436
12437 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12438 fi
12439
12440 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12441 if test "${HAVE_X11}" = "yes"; then
12442 if test "${USE_X_TOOLKIT}" != "none"; then
12443
12444 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12445 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
12446 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12447 $as_echo_n "(cached) " >&6
12448 else
12449 ac_check_lib_save_LIBS=$LIBS
12450 LIBS="-lXext $LIBS"
12451 cat >conftest.$ac_ext <<_ACEOF
12452 /* confdefs.h. */
12453 _ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h. */
12457
12458 /* Override any GCC internal prototype to avoid an error.
12459 Use char because int might match the return type of a GCC
12460 builtin and then its argument prototype would still apply. */
12461 #ifdef __cplusplus
12462 extern "C"
12463 #endif
12464 char XShapeQueryExtension ();
12465 int
12466 main ()
12467 {
12468 return XShapeQueryExtension ();
12469 ;
12470 return 0;
12471 }
12472 _ACEOF
12473 rm -f conftest.$ac_objext conftest$ac_exeext
12474 if { (ac_try="$ac_link"
12475 case "(($ac_try" in
12476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477 *) ac_try_echo=$ac_try;;
12478 esac
12479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12480 $as_echo "$ac_try_echo") >&5
12481 (eval "$ac_link") 2>conftest.er1
12482 ac_status=$?
12483 grep -v '^ *+' conftest.er1 >conftest.err
12484 rm -f conftest.er1
12485 cat conftest.err >&5
12486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); } && {
12488 test -z "$ac_c_werror_flag" ||
12489 test ! -s conftest.err
12490 } && test -s conftest$ac_exeext && {
12491 test "$cross_compiling" = yes ||
12492 $as_test_x conftest$ac_exeext
12493 }; then
12494 ac_cv_lib_Xext_XShapeQueryExtension=yes
12495 else
12496 $as_echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.$ac_ext >&5
12498
12499 ac_cv_lib_Xext_XShapeQueryExtension=no
12500 fi
12501
12502 rm -rf conftest.dSYM
12503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12504 conftest$ac_exeext conftest.$ac_ext
12505 LIBS=$ac_check_lib_save_LIBS
12506 fi
12507 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12508 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12509 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then
12510 cat >>confdefs.h <<_ACEOF
12511 #define HAVE_LIBXEXT 1
12512 _ACEOF
12513
12514 LIBS="-lXext $LIBS"
12515
12516 fi
12517
12518 fi
12519 fi
12520
12521 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12522 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12523 $as_echo_n "checking for Motif version 2.1... " >&6; }
12524 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12525 $as_echo_n "(cached) " >&6
12526 else
12527 cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h. */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12533 #include <Xm/Xm.h>
12534 int
12535 main ()
12536 {
12537 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12538 int x = 5;
12539 #else
12540 Motif version prior to 2.1.
12541 #endif
12542 ;
12543 return 0;
12544 }
12545 _ACEOF
12546 rm -f conftest.$ac_objext
12547 if { (ac_try="$ac_compile"
12548 case "(($ac_try" in
12549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550 *) ac_try_echo=$ac_try;;
12551 esac
12552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12553 $as_echo "$ac_try_echo") >&5
12554 (eval "$ac_compile") 2>conftest.er1
12555 ac_status=$?
12556 grep -v '^ *+' conftest.er1 >conftest.err
12557 rm -f conftest.er1
12558 cat conftest.err >&5
12559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } && {
12561 test -z "$ac_c_werror_flag" ||
12562 test ! -s conftest.err
12563 } && test -s conftest.$ac_objext; then
12564 emacs_cv_motif_version_2_1=yes
12565 else
12566 $as_echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12568
12569 emacs_cv_motif_version_2_1=no
12570 fi
12571
12572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12573 fi
12574 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12575 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
12576 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12577 if test $emacs_cv_motif_version_2_1 = yes; then
12578 HAVE_LIBXP=no
12579
12580 cat >>confdefs.h <<\_ACEOF
12581 #define HAVE_MOTIF_2_1 1
12582 _ACEOF
12583
12584 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12585 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
12586 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12587 $as_echo_n "(cached) " >&6
12588 else
12589 ac_check_lib_save_LIBS=$LIBS
12590 LIBS="-lXp $LIBS"
12591 cat >conftest.$ac_ext <<_ACEOF
12592 /* confdefs.h. */
12593 _ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12597
12598 /* Override any GCC internal prototype to avoid an error.
12599 Use char because int might match the return type of a GCC
12600 builtin and then its argument prototype would still apply. */
12601 #ifdef __cplusplus
12602 extern "C"
12603 #endif
12604 char XpCreateContext ();
12605 int
12606 main ()
12607 {
12608 return XpCreateContext ();
12609 ;
12610 return 0;
12611 }
12612 _ACEOF
12613 rm -f conftest.$ac_objext conftest$ac_exeext
12614 if { (ac_try="$ac_link"
12615 case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12618 esac
12619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12620 $as_echo "$ac_try_echo") >&5
12621 (eval "$ac_link") 2>conftest.er1
12622 ac_status=$?
12623 grep -v '^ *+' conftest.er1 >conftest.err
12624 rm -f conftest.er1
12625 cat conftest.err >&5
12626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); } && {
12628 test -z "$ac_c_werror_flag" ||
12629 test ! -s conftest.err
12630 } && test -s conftest$ac_exeext && {
12631 test "$cross_compiling" = yes ||
12632 $as_test_x conftest$ac_exeext
12633 }; then
12634 ac_cv_lib_Xp_XpCreateContext=yes
12635 else
12636 $as_echo "$as_me: failed program was:" >&5
12637 sed 's/^/| /' conftest.$ac_ext >&5
12638
12639 ac_cv_lib_Xp_XpCreateContext=no
12640 fi
12641
12642 rm -rf conftest.dSYM
12643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12644 conftest$ac_exeext conftest.$ac_ext
12645 LIBS=$ac_check_lib_save_LIBS
12646 fi
12647 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12648 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
12649 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then
12650 HAVE_LIBXP=yes
12651 fi
12652
12653 if test ${HAVE_LIBXP} = yes; then
12654
12655 cat >>confdefs.h <<\_ACEOF
12656 #define HAVE_LIBXP 1
12657 _ACEOF
12658
12659 fi
12660 else
12661 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12662 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
12663 if test "${emacs_cv_lesstif+set}" = set; then
12664 $as_echo_n "(cached) " >&6
12665 else
12666 # We put this in CFLAGS temporarily to precede other -I options
12667 # that might be in CFLAGS temporarily.
12668 # We put this in CPPFLAGS where it precedes the other -I options.
12669 OLD_CPPFLAGS=$CPPFLAGS
12670 OLD_CFLAGS=$CFLAGS
12671 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12672 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12673 cat >conftest.$ac_ext <<_ACEOF
12674 /* confdefs.h. */
12675 _ACEOF
12676 cat confdefs.h >>conftest.$ac_ext
12677 cat >>conftest.$ac_ext <<_ACEOF
12678 /* end confdefs.h. */
12679 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12680 int
12681 main ()
12682 {
12683 int x = 5;
12684 ;
12685 return 0;
12686 }
12687 _ACEOF
12688 rm -f conftest.$ac_objext
12689 if { (ac_try="$ac_compile"
12690 case "(($ac_try" in
12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12693 esac
12694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12695 $as_echo "$ac_try_echo") >&5
12696 (eval "$ac_compile") 2>conftest.er1
12697 ac_status=$?
12698 grep -v '^ *+' conftest.er1 >conftest.err
12699 rm -f conftest.er1
12700 cat conftest.err >&5
12701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); } && {
12703 test -z "$ac_c_werror_flag" ||
12704 test ! -s conftest.err
12705 } && test -s conftest.$ac_objext; then
12706 emacs_cv_lesstif=yes
12707 else
12708 $as_echo "$as_me: failed program was:" >&5
12709 sed 's/^/| /' conftest.$ac_ext >&5
12710
12711 emacs_cv_lesstif=no
12712 fi
12713
12714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12715 fi
12716 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12717 $as_echo "$emacs_cv_lesstif" >&6; }
12718 if test $emacs_cv_lesstif = yes; then
12719 # Make sure this -I option remains in CPPFLAGS after it is set
12720 # back to REAL_CPPFLAGS.
12721 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12722 # have those other -I options anyway. Ultimately, having this
12723 # directory ultimately in CPPFLAGS will be enough.
12724 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12725 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12726 else
12727 CFLAGS=$OLD_CFLAGS
12728 CPPFLAGS=$OLD_CPPFLAGS
12729 fi
12730 fi
12731 fi
12732
12733
12734
12735 USE_TOOLKIT_SCROLL_BARS=no
12736 if test "${with_toolkit_scroll_bars}" != "no"; then
12737 if test "${USE_X_TOOLKIT}" != "none"; then
12738 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12739 cat >>confdefs.h <<\_ACEOF
12740 #define USE_TOOLKIT_SCROLL_BARS 1
12741 _ACEOF
12742
12743 HAVE_XAW3D=no
12744 USE_TOOLKIT_SCROLL_BARS=yes
12745 elif test "${HAVE_XAW3D}" = "yes"; then
12746 cat >>confdefs.h <<\_ACEOF
12747 #define USE_TOOLKIT_SCROLL_BARS 1
12748 _ACEOF
12749
12750 USE_TOOLKIT_SCROLL_BARS=yes
12751 fi
12752 elif test "${HAVE_GTK}" = "yes"; then
12753 cat >>confdefs.h <<\_ACEOF
12754 #define USE_TOOLKIT_SCROLL_BARS 1
12755 _ACEOF
12756
12757 USE_TOOLKIT_SCROLL_BARS=yes
12758 elif test "${HAVE_NS}" = "yes"; then
12759 cat >>confdefs.h <<\_ACEOF
12760 #define USE_TOOLKIT_SCROLL_BARS 1
12761 _ACEOF
12762
12763 USE_TOOLKIT_SCROLL_BARS=yes
12764 fi
12765 fi
12766
12767 cat >conftest.$ac_ext <<_ACEOF
12768 /* confdefs.h. */
12769 _ACEOF
12770 cat confdefs.h >>conftest.$ac_ext
12771 cat >>conftest.$ac_ext <<_ACEOF
12772 /* end confdefs.h. */
12773
12774 #include <X11/Xlib.h>
12775 #include <X11/Xresource.h>
12776 int
12777 main ()
12778 {
12779 XIMProc callback;
12780 ;
12781 return 0;
12782 }
12783 _ACEOF
12784 rm -f conftest.$ac_objext
12785 if { (ac_try="$ac_compile"
12786 case "(($ac_try" in
12787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788 *) ac_try_echo=$ac_try;;
12789 esac
12790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12791 $as_echo "$ac_try_echo") >&5
12792 (eval "$ac_compile") 2>conftest.er1
12793 ac_status=$?
12794 grep -v '^ *+' conftest.er1 >conftest.err
12795 rm -f conftest.er1
12796 cat conftest.err >&5
12797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } && {
12799 test -z "$ac_c_werror_flag" ||
12800 test ! -s conftest.err
12801 } && test -s conftest.$ac_objext; then
12802 HAVE_XIM=yes
12803
12804 cat >>confdefs.h <<\_ACEOF
12805 #define HAVE_XIM 1
12806 _ACEOF
12807
12808 else
12809 $as_echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12811
12812 HAVE_XIM=no
12813 fi
12814
12815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12816
12817
12818 if test "${with_xim}" != "no"; then
12819
12820 cat >>confdefs.h <<\_ACEOF
12821 #define USE_XIM 1
12822 _ACEOF
12823
12824 fi
12825
12826
12827 if test "${HAVE_XIM}" != "no"; then
12828 late_CFLAGS=$CFLAGS
12829 if test "$GCC" = yes; then
12830 CFLAGS="$CFLAGS --pedantic-errors"
12831 fi
12832 cat >conftest.$ac_ext <<_ACEOF
12833 /* confdefs.h. */
12834 _ACEOF
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h. */
12838
12839 #include <X11/Xlib.h>
12840 #include <X11/Xresource.h>
12841 int
12842 main ()
12843 {
12844 Display *display;
12845 XrmDatabase db;
12846 char *res_name;
12847 char *res_class;
12848 XIMProc callback;
12849 XPointer *client_data;
12850 #ifndef __GNUC__
12851 /* If we're not using GCC, it's probably not XFree86, and this is
12852 probably right, but we can't use something like --pedantic-errors. */
12853 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12854 char*, XIMProc, XPointer*);
12855 #endif
12856 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12857 client_data);
12858 ;
12859 return 0;
12860 }
12861 _ACEOF
12862 rm -f conftest.$ac_objext
12863 if { (ac_try="$ac_compile"
12864 case "(($ac_try" in
12865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12866 *) ac_try_echo=$ac_try;;
12867 esac
12868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12869 $as_echo "$ac_try_echo") >&5
12870 (eval "$ac_compile") 2>conftest.er1
12871 ac_status=$?
12872 grep -v '^ *+' conftest.er1 >conftest.err
12873 rm -f conftest.er1
12874 cat conftest.err >&5
12875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); } && {
12877 test -z "$ac_c_werror_flag" ||
12878 test ! -s conftest.err
12879 } && test -s conftest.$ac_objext; then
12880 emacs_cv_arg6_star=yes
12881 else
12882 $as_echo "$as_me: failed program was:" >&5
12883 sed 's/^/| /' conftest.$ac_ext >&5
12884
12885
12886 fi
12887
12888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12889
12890 if test "$emacs_cv_arg6_star" = yes; then
12891 cat >>confdefs.h <<\_ACEOF
12892 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12893 _ACEOF
12894
12895 else
12896 cat >>confdefs.h <<\_ACEOF
12897 #define XRegisterIMInstantiateCallback_arg6 XPointer
12898 _ACEOF
12899
12900 fi
12901 CFLAGS=$late_CFLAGS
12902 fi
12903
12904 ### Start of font-backend (under any platform) section.
12905 # (nothing here yet -- this is a placeholder)
12906 ### End of font-backend (under any platform) section.
12907
12908 ### Start of font-backend (under X11) section.
12909 if test "${HAVE_X11}" = "yes"; then
12910
12911 succeeded=no
12912
12913 # Extract the first word of "pkg-config", so it can be a program name with args.
12914 set dummy pkg-config; ac_word=$2
12915 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12916 $as_echo_n "checking for $ac_word... " >&6; }
12917 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12918 $as_echo_n "(cached) " >&6
12919 else
12920 case $PKG_CONFIG in
12921 [\\/]* | ?:[\\/]*)
12922 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12923 ;;
12924 *)
12925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12926 for as_dir in $PATH
12927 do
12928 IFS=$as_save_IFS
12929 test -z "$as_dir" && as_dir=.
12930 for ac_exec_ext in '' $ac_executable_extensions; do
12931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12932 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12933 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12934 break 2
12935 fi
12936 done
12937 done
12938 IFS=$as_save_IFS
12939
12940 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12941 ;;
12942 esac
12943 fi
12944 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12945 if test -n "$PKG_CONFIG"; then
12946 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12947 $as_echo "$PKG_CONFIG" >&6; }
12948 else
12949 { $as_echo "$as_me:$LINENO: result: no" >&5
12950 $as_echo "no" >&6; }
12951 fi
12952
12953
12954
12955 if test "$PKG_CONFIG" = "no" ; then
12956 HAVE_FC=no
12957 else
12958 PKG_CONFIG_MIN_VERSION=0.9.0
12959 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12960 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
12961 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
12962
12963 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
12964 { $as_echo "$as_me:$LINENO: result: yes" >&5
12965 $as_echo "yes" >&6; }
12966 succeeded=yes
12967
12968 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12969 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12970 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12971 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12972 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12973
12974 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12975 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12976 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
12977 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12978 $as_echo "$FONTCONFIG_LIBS" >&6; }
12979 else
12980 { $as_echo "$as_me:$LINENO: result: no" >&5
12981 $as_echo "no" >&6; }
12982 FONTCONFIG_CFLAGS=""
12983 FONTCONFIG_LIBS=""
12984 ## If we have a custom action on failure, don't print errors, but
12985 ## do set a variable so people can do so.
12986 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
12987
12988 fi
12989
12990
12991
12992 else
12993 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12994 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12995 fi
12996 fi
12997
12998 if test $succeeded = yes; then
12999 HAVE_FC=yes
13000 else
13001 HAVE_FC=no
13002 fi
13003
13004 test "${HAVE_FC}" = "no" && with_freetype=no
13005
13006 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
13007 HAVE_XFT=maybe
13008 if test "x${with_freetype}" = "xno" || test "x${with_x}" = "xno"; then
13009 with_xft="no";
13010 fi
13011 if test "x${with_xft}" != "xno"; then
13012
13013
13014 succeeded=no
13015
13016 # Extract the first word of "pkg-config", so it can be a program name with args.
13017 set dummy pkg-config; ac_word=$2
13018 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13019 $as_echo_n "checking for $ac_word... " >&6; }
13020 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13021 $as_echo_n "(cached) " >&6
13022 else
13023 case $PKG_CONFIG in
13024 [\\/]* | ?:[\\/]*)
13025 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13026 ;;
13027 *)
13028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13029 for as_dir in $PATH
13030 do
13031 IFS=$as_save_IFS
13032 test -z "$as_dir" && as_dir=.
13033 for ac_exec_ext in '' $ac_executable_extensions; do
13034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13035 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13036 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13037 break 2
13038 fi
13039 done
13040 done
13041 IFS=$as_save_IFS
13042
13043 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13044 ;;
13045 esac
13046 fi
13047 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13048 if test -n "$PKG_CONFIG"; then
13049 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13050 $as_echo "$PKG_CONFIG" >&6; }
13051 else
13052 { $as_echo "$as_me:$LINENO: result: no" >&5
13053 $as_echo "no" >&6; }
13054 fi
13055
13056
13057
13058 if test "$PKG_CONFIG" = "no" ; then
13059 HAVE_XFT=no
13060 else
13061 PKG_CONFIG_MIN_VERSION=0.9.0
13062 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13063 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13064 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13065
13066 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13067 { $as_echo "$as_me:$LINENO: result: yes" >&5
13068 $as_echo "yes" >&6; }
13069 succeeded=yes
13070
13071 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13072 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13073 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13074 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13075 $as_echo "$XFT_CFLAGS" >&6; }
13076
13077 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13078 $as_echo_n "checking XFT_LIBS... " >&6; }
13079 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13080 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13081 $as_echo "$XFT_LIBS" >&6; }
13082 else
13083 { $as_echo "$as_me:$LINENO: result: no" >&5
13084 $as_echo "no" >&6; }
13085 XFT_CFLAGS=""
13086 XFT_LIBS=""
13087 ## If we have a custom action on failure, don't print errors, but
13088 ## do set a variable so people can do so.
13089 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13090
13091 fi
13092
13093
13094
13095 else
13096 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13097 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13098 fi
13099 fi
13100
13101 if test $succeeded = yes; then
13102 :
13103 else
13104 HAVE_XFT=no
13105 fi
13106
13107 if test "$HAVE_XFT" != no; then
13108 OLD_CPPFLAGS="$CPPFLAGS"
13109 OLD_CFLAGS="$CFLAGS"
13110 OLD_LIBS="$LIBS"
13111 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13112 CFLAGS="$CFLAGS $XFT_CFLAGS"
13113 LIBS="$XFT_LIBS $LIBS"
13114 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13115 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13116 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13117 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13118 $as_echo_n "(cached) " >&6
13119 fi
13120 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13121 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13122 else
13123 # Is the header compilable?
13124 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13125 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13126 cat >conftest.$ac_ext <<_ACEOF
13127 /* confdefs.h. */
13128 _ACEOF
13129 cat confdefs.h >>conftest.$ac_ext
13130 cat >>conftest.$ac_ext <<_ACEOF
13131 /* end confdefs.h. */
13132 $ac_includes_default
13133 #include <X11/Xft/Xft.h>
13134 _ACEOF
13135 rm -f conftest.$ac_objext
13136 if { (ac_try="$ac_compile"
13137 case "(($ac_try" in
13138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13139 *) ac_try_echo=$ac_try;;
13140 esac
13141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13142 $as_echo "$ac_try_echo") >&5
13143 (eval "$ac_compile") 2>conftest.er1
13144 ac_status=$?
13145 grep -v '^ *+' conftest.er1 >conftest.err
13146 rm -f conftest.er1
13147 cat conftest.err >&5
13148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); } && {
13150 test -z "$ac_c_werror_flag" ||
13151 test ! -s conftest.err
13152 } && test -s conftest.$ac_objext; then
13153 ac_header_compiler=yes
13154 else
13155 $as_echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.$ac_ext >&5
13157
13158 ac_header_compiler=no
13159 fi
13160
13161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13162 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13163 $as_echo "$ac_header_compiler" >&6; }
13164
13165 # Is the header present?
13166 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13167 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13168 cat >conftest.$ac_ext <<_ACEOF
13169 /* confdefs.h. */
13170 _ACEOF
13171 cat confdefs.h >>conftest.$ac_ext
13172 cat >>conftest.$ac_ext <<_ACEOF
13173 /* end confdefs.h. */
13174 #include <X11/Xft/Xft.h>
13175 _ACEOF
13176 if { (ac_try="$ac_cpp conftest.$ac_ext"
13177 case "(($ac_try" in
13178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13180 esac
13181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13182 $as_echo "$ac_try_echo") >&5
13183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13184 ac_status=$?
13185 grep -v '^ *+' conftest.er1 >conftest.err
13186 rm -f conftest.er1
13187 cat conftest.err >&5
13188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); } >/dev/null && {
13190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13191 test ! -s conftest.err
13192 }; then
13193 ac_header_preproc=yes
13194 else
13195 $as_echo "$as_me: failed program was:" >&5
13196 sed 's/^/| /' conftest.$ac_ext >&5
13197
13198 ac_header_preproc=no
13199 fi
13200
13201 rm -f conftest.err conftest.$ac_ext
13202 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13203 $as_echo "$ac_header_preproc" >&6; }
13204
13205 # So? What about this header?
13206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13207 yes:no: )
13208 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13209 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13210 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13211 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13212 ac_header_preproc=yes
13213 ;;
13214 no:yes:* )
13215 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13216 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13217 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13218 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13219 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13220 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13221 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13222 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13223 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13224 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13225 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13226 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13227
13228 ;;
13229 esac
13230 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13231 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13232 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13233 $as_echo_n "(cached) " >&6
13234 else
13235 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13236 fi
13237 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13238 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13239
13240 fi
13241 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then
13242 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13243 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13244 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13245 $as_echo_n "(cached) " >&6
13246 else
13247 ac_check_lib_save_LIBS=$LIBS
13248 LIBS="-lXft $XFT_LIBS $LIBS"
13249 cat >conftest.$ac_ext <<_ACEOF
13250 /* confdefs.h. */
13251 _ACEOF
13252 cat confdefs.h >>conftest.$ac_ext
13253 cat >>conftest.$ac_ext <<_ACEOF
13254 /* end confdefs.h. */
13255
13256 /* Override any GCC internal prototype to avoid an error.
13257 Use char because int might match the return type of a GCC
13258 builtin and then its argument prototype would still apply. */
13259 #ifdef __cplusplus
13260 extern "C"
13261 #endif
13262 char XftFontOpen ();
13263 int
13264 main ()
13265 {
13266 return XftFontOpen ();
13267 ;
13268 return 0;
13269 }
13270 _ACEOF
13271 rm -f conftest.$ac_objext conftest$ac_exeext
13272 if { (ac_try="$ac_link"
13273 case "(($ac_try" in
13274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13275 *) ac_try_echo=$ac_try;;
13276 esac
13277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13278 $as_echo "$ac_try_echo") >&5
13279 (eval "$ac_link") 2>conftest.er1
13280 ac_status=$?
13281 grep -v '^ *+' conftest.er1 >conftest.err
13282 rm -f conftest.er1
13283 cat conftest.err >&5
13284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); } && {
13286 test -z "$ac_c_werror_flag" ||
13287 test ! -s conftest.err
13288 } && test -s conftest$ac_exeext && {
13289 test "$cross_compiling" = yes ||
13290 $as_test_x conftest$ac_exeext
13291 }; then
13292 ac_cv_lib_Xft_XftFontOpen=yes
13293 else
13294 $as_echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.$ac_ext >&5
13296
13297 ac_cv_lib_Xft_XftFontOpen=no
13298 fi
13299
13300 rm -rf conftest.dSYM
13301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13302 conftest$ac_exeext conftest.$ac_ext
13303 LIBS=$ac_check_lib_save_LIBS
13304 fi
13305 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13306 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13307 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then
13308 HAVE_XFT=yes
13309 fi
13310
13311 fi
13312
13313
13314
13315 if test "${HAVE_XFT}" = "yes"; then
13316
13317 cat >>confdefs.h <<\_ACEOF
13318 #define HAVE_XFT 1
13319 _ACEOF
13320
13321
13322 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13323 else
13324 CPPFLAGS="$OLD_CPPFLAGS"
13325 CFLAGS="$OLD_CFLAGS"
13326 LIBS="$OLD_LIBS"
13327 fi # "${HAVE_XFT}" = "yes"
13328 fi # "$HAVE_XFT" != no
13329 fi # "x${with_xft}" != "xno"
13330
13331 if test "$HAVE_XFT" != "yes"; then
13332 HAVE_XFT=no
13333 fi
13334
13335
13336 HAVE_FREETYPE=no
13337 ### Use -lfreetype if available, unless `--with-freetype=no'.
13338 if test "${HAVE_XFT}" = "yes"; then
13339 HAVE_FREETYPE=yes
13340 FONTCONFIG_CFLAGS=
13341 FONTCONFIG_LIBS=
13342 elif test "x${with_freetype}" != "xno" && test "x${with_x}" != "xno"; then
13343
13344
13345 succeeded=no
13346
13347 # Extract the first word of "pkg-config", so it can be a program name with args.
13348 set dummy pkg-config; ac_word=$2
13349 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13350 $as_echo_n "checking for $ac_word... " >&6; }
13351 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13352 $as_echo_n "(cached) " >&6
13353 else
13354 case $PKG_CONFIG in
13355 [\\/]* | ?:[\\/]*)
13356 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13357 ;;
13358 *)
13359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13360 for as_dir in $PATH
13361 do
13362 IFS=$as_save_IFS
13363 test -z "$as_dir" && as_dir=.
13364 for ac_exec_ext in '' $ac_executable_extensions; do
13365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13366 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13367 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13368 break 2
13369 fi
13370 done
13371 done
13372 IFS=$as_save_IFS
13373
13374 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13375 ;;
13376 esac
13377 fi
13378 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13379 if test -n "$PKG_CONFIG"; then
13380 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13381 $as_echo "$PKG_CONFIG" >&6; }
13382 else
13383 { $as_echo "$as_me:$LINENO: result: no" >&5
13384 $as_echo "no" >&6; }
13385 fi
13386
13387
13388
13389 if test "$PKG_CONFIG" = "no" ; then
13390 HAVE_FREETYPE=no
13391 else
13392 PKG_CONFIG_MIN_VERSION=0.9.0
13393 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13394 { $as_echo "$as_me:$LINENO: checking for freetype2" >&5
13395 $as_echo_n "checking for freetype2... " >&6; }
13396
13397 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13398 { $as_echo "$as_me:$LINENO: result: yes" >&5
13399 $as_echo "yes" >&6; }
13400 succeeded=yes
13401
13402 { $as_echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13403 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
13404 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
13405 { $as_echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13406 $as_echo "$FREETYPE_CFLAGS" >&6; }
13407
13408 { $as_echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13409 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
13410 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
13411 { $as_echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13412 $as_echo "$FREETYPE_LIBS" >&6; }
13413 else
13414 { $as_echo "$as_me:$LINENO: result: no" >&5
13415 $as_echo "no" >&6; }
13416 FREETYPE_CFLAGS=""
13417 FREETYPE_LIBS=""
13418 ## If we have a custom action on failure, don't print errors, but
13419 ## do set a variable so people can do so.
13420 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13421
13422 fi
13423
13424
13425
13426 else
13427 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13428 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13429 fi
13430 fi
13431
13432 if test $succeeded = yes; then
13433 HAVE_FREETYPE=yes
13434 else
13435 HAVE_FREETYPE=no
13436 fi
13437
13438 fi
13439
13440 HAVE_LIBOTF=no
13441 if test "${HAVE_FREETYPE}" = "yes"; then
13442
13443 cat >>confdefs.h <<\_ACEOF
13444 #define HAVE_FREETYPE 1
13445 _ACEOF
13446
13447 if test "${with_libotf}" != "no"; then
13448
13449 succeeded=no
13450
13451 # Extract the first word of "pkg-config", so it can be a program name with args.
13452 set dummy pkg-config; ac_word=$2
13453 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13454 $as_echo_n "checking for $ac_word... " >&6; }
13455 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13456 $as_echo_n "(cached) " >&6
13457 else
13458 case $PKG_CONFIG in
13459 [\\/]* | ?:[\\/]*)
13460 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13461 ;;
13462 *)
13463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13464 for as_dir in $PATH
13465 do
13466 IFS=$as_save_IFS
13467 test -z "$as_dir" && as_dir=.
13468 for ac_exec_ext in '' $ac_executable_extensions; do
13469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13470 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13472 break 2
13473 fi
13474 done
13475 done
13476 IFS=$as_save_IFS
13477
13478 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13479 ;;
13480 esac
13481 fi
13482 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13483 if test -n "$PKG_CONFIG"; then
13484 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13485 $as_echo "$PKG_CONFIG" >&6; }
13486 else
13487 { $as_echo "$as_me:$LINENO: result: no" >&5
13488 $as_echo "no" >&6; }
13489 fi
13490
13491
13492
13493 if test "$PKG_CONFIG" = "no" ; then
13494 HAVE_LIBOTF=no
13495 else
13496 PKG_CONFIG_MIN_VERSION=0.9.0
13497 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13498 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
13499 $as_echo_n "checking for libotf... " >&6; }
13500
13501 if $PKG_CONFIG --exists "libotf" 2>&5; then
13502 { $as_echo "$as_me:$LINENO: result: yes" >&5
13503 $as_echo "yes" >&6; }
13504 succeeded=yes
13505
13506 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13507 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
13508 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13509 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13510 $as_echo "$LIBOTF_CFLAGS" >&6; }
13511
13512 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13513 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
13514 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13515 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13516 $as_echo "$LIBOTF_LIBS" >&6; }
13517 else
13518 { $as_echo "$as_me:$LINENO: result: no" >&5
13519 $as_echo "no" >&6; }
13520 LIBOTF_CFLAGS=""
13521 LIBOTF_LIBS=""
13522 ## If we have a custom action on failure, don't print errors, but
13523 ## do set a variable so people can do so.
13524 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13525
13526 fi
13527
13528
13529
13530 else
13531 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13532 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13533 fi
13534 fi
13535
13536 if test $succeeded = yes; then
13537 HAVE_LIBOTF=yes
13538 else
13539 HAVE_LIBOTF=no
13540 fi
13541
13542 if test "$HAVE_LIBOTF" = "yes"; then
13543
13544 cat >>confdefs.h <<\_ACEOF
13545 #define HAVE_LIBOTF 1
13546 _ACEOF
13547
13548 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
13549 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
13550 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
13551 $as_echo_n "(cached) " >&6
13552 else
13553 ac_check_lib_save_LIBS=$LIBS
13554 LIBS="-lotf $LIBS"
13555 cat >conftest.$ac_ext <<_ACEOF
13556 /* confdefs.h. */
13557 _ACEOF
13558 cat confdefs.h >>conftest.$ac_ext
13559 cat >>conftest.$ac_ext <<_ACEOF
13560 /* end confdefs.h. */
13561
13562 /* Override any GCC internal prototype to avoid an error.
13563 Use char because int might match the return type of a GCC
13564 builtin and then its argument prototype would still apply. */
13565 #ifdef __cplusplus
13566 extern "C"
13567 #endif
13568 char OTF_get_variation_glyphs ();
13569 int
13570 main ()
13571 {
13572 return OTF_get_variation_glyphs ();
13573 ;
13574 return 0;
13575 }
13576 _ACEOF
13577 rm -f conftest.$ac_objext conftest$ac_exeext
13578 if { (ac_try="$ac_link"
13579 case "(($ac_try" in
13580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13581 *) ac_try_echo=$ac_try;;
13582 esac
13583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13584 $as_echo "$ac_try_echo") >&5
13585 (eval "$ac_link") 2>conftest.er1
13586 ac_status=$?
13587 grep -v '^ *+' conftest.er1 >conftest.err
13588 rm -f conftest.er1
13589 cat conftest.err >&5
13590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); } && {
13592 test -z "$ac_c_werror_flag" ||
13593 test ! -s conftest.err
13594 } && test -s conftest$ac_exeext && {
13595 test "$cross_compiling" = yes ||
13596 $as_test_x conftest$ac_exeext
13597 }; then
13598 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
13599 else
13600 $as_echo "$as_me: failed program was:" >&5
13601 sed 's/^/| /' conftest.$ac_ext >&5
13602
13603 ac_cv_lib_otf_OTF_get_variation_glyphs=no
13604 fi
13605
13606 rm -rf conftest.dSYM
13607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13608 conftest$ac_exeext conftest.$ac_ext
13609 LIBS=$ac_check_lib_save_LIBS
13610 fi
13611 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
13612 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
13613 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then
13614 HAVE_OTF_GET_VARIATION_GLYPHS=yes
13615 else
13616 HAVE_OTF_GET_VARIATION_GLYPHS=no
13617 fi
13618
13619 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
13620
13621 cat >>confdefs.h <<\_ACEOF
13622 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
13623 _ACEOF
13624
13625 fi
13626 fi
13627 fi
13628 fi
13629
13630 HAVE_M17N_FLT=no
13631 if test "${HAVE_LIBOTF}" = yes; then
13632 if test "${with_m17n_flt}" != "no"; then
13633
13634 succeeded=no
13635
13636 # Extract the first word of "pkg-config", so it can be a program name with args.
13637 set dummy pkg-config; ac_word=$2
13638 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13639 $as_echo_n "checking for $ac_word... " >&6; }
13640 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13641 $as_echo_n "(cached) " >&6
13642 else
13643 case $PKG_CONFIG in
13644 [\\/]* | ?:[\\/]*)
13645 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13646 ;;
13647 *)
13648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13649 for as_dir in $PATH
13650 do
13651 IFS=$as_save_IFS
13652 test -z "$as_dir" && as_dir=.
13653 for ac_exec_ext in '' $ac_executable_extensions; do
13654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13655 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13656 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13657 break 2
13658 fi
13659 done
13660 done
13661 IFS=$as_save_IFS
13662
13663 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13664 ;;
13665 esac
13666 fi
13667 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13668 if test -n "$PKG_CONFIG"; then
13669 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13670 $as_echo "$PKG_CONFIG" >&6; }
13671 else
13672 { $as_echo "$as_me:$LINENO: result: no" >&5
13673 $as_echo "no" >&6; }
13674 fi
13675
13676
13677
13678 if test "$PKG_CONFIG" = "no" ; then
13679 HAVE_M17N_FLT=no
13680 else
13681 PKG_CONFIG_MIN_VERSION=0.9.0
13682 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13683 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
13684 $as_echo_n "checking for m17n-flt... " >&6; }
13685
13686 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13687 { $as_echo "$as_me:$LINENO: result: yes" >&5
13688 $as_echo "yes" >&6; }
13689 succeeded=yes
13690
13691 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13692 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
13693 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13694 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13695 $as_echo "$M17N_FLT_CFLAGS" >&6; }
13696
13697 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13698 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
13699 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13700 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13701 $as_echo "$M17N_FLT_LIBS" >&6; }
13702 else
13703 { $as_echo "$as_me:$LINENO: result: no" >&5
13704 $as_echo "no" >&6; }
13705 M17N_FLT_CFLAGS=""
13706 M17N_FLT_LIBS=""
13707 ## If we have a custom action on failure, don't print errors, but
13708 ## do set a variable so people can do so.
13709 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13710
13711 fi
13712
13713
13714
13715 else
13716 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13717 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13718 fi
13719 fi
13720
13721 if test $succeeded = yes; then
13722 HAVE_M17N_FLT=yes
13723 else
13724 HAVE_M17N_FLT=no
13725 fi
13726
13727 if test "$HAVE_M17N_FLT" = "yes"; then
13728
13729 cat >>confdefs.h <<\_ACEOF
13730 #define HAVE_M17N_FLT 1
13731 _ACEOF
13732
13733 fi
13734 fi
13735 fi
13736 else
13737 HAVE_XFT=no
13738 HAVE_FREETYPE=no
13739 HAVE_LIBOTF=no
13740 HAVE_M17N_FLT=no
13741 fi
13742 ### End of font-backend (under X11) section.
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753 ### Use -lXpm if available, unless `--with-xpm=no'.
13754 HAVE_XPM=no
13755 if test "${HAVE_X11}" = "yes"; then
13756 if test "${with_xpm}" != "no"; then
13757 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13758 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13759 $as_echo_n "checking for X11/xpm.h... " >&6; }
13760 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13761 $as_echo_n "(cached) " >&6
13762 fi
13763 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13764 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
13765 else
13766 # Is the header compilable?
13767 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13768 $as_echo_n "checking X11/xpm.h usability... " >&6; }
13769 cat >conftest.$ac_ext <<_ACEOF
13770 /* confdefs.h. */
13771 _ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h. */
13775 $ac_includes_default
13776 #include <X11/xpm.h>
13777 _ACEOF
13778 rm -f conftest.$ac_objext
13779 if { (ac_try="$ac_compile"
13780 case "(($ac_try" in
13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13783 esac
13784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13785 $as_echo "$ac_try_echo") >&5
13786 (eval "$ac_compile") 2>conftest.er1
13787 ac_status=$?
13788 grep -v '^ *+' conftest.er1 >conftest.err
13789 rm -f conftest.er1
13790 cat conftest.err >&5
13791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); } && {
13793 test -z "$ac_c_werror_flag" ||
13794 test ! -s conftest.err
13795 } && test -s conftest.$ac_objext; then
13796 ac_header_compiler=yes
13797 else
13798 $as_echo "$as_me: failed program was:" >&5
13799 sed 's/^/| /' conftest.$ac_ext >&5
13800
13801 ac_header_compiler=no
13802 fi
13803
13804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13805 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13806 $as_echo "$ac_header_compiler" >&6; }
13807
13808 # Is the header present?
13809 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13810 $as_echo_n "checking X11/xpm.h presence... " >&6; }
13811 cat >conftest.$ac_ext <<_ACEOF
13812 /* confdefs.h. */
13813 _ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h. */
13817 #include <X11/xpm.h>
13818 _ACEOF
13819 if { (ac_try="$ac_cpp conftest.$ac_ext"
13820 case "(($ac_try" in
13821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822 *) ac_try_echo=$ac_try;;
13823 esac
13824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13825 $as_echo "$ac_try_echo") >&5
13826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13827 ac_status=$?
13828 grep -v '^ *+' conftest.er1 >conftest.err
13829 rm -f conftest.er1
13830 cat conftest.err >&5
13831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } >/dev/null && {
13833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13834 test ! -s conftest.err
13835 }; then
13836 ac_header_preproc=yes
13837 else
13838 $as_echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13840
13841 ac_header_preproc=no
13842 fi
13843
13844 rm -f conftest.err conftest.$ac_ext
13845 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13846 $as_echo "$ac_header_preproc" >&6; }
13847
13848 # So? What about this header?
13849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13850 yes:no: )
13851 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13852 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13853 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13854 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13855 ac_header_preproc=yes
13856 ;;
13857 no:yes:* )
13858 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13859 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13860 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13861 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13862 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13863 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13864 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13865 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13866 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13867 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13868 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13869 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13870
13871 ;;
13872 esac
13873 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13874 $as_echo_n "checking for X11/xpm.h... " >&6; }
13875 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13876 $as_echo_n "(cached) " >&6
13877 else
13878 ac_cv_header_X11_xpm_h=$ac_header_preproc
13879 fi
13880 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13881 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
13882
13883 fi
13884 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then
13885 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13886 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
13887 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13888 $as_echo_n "(cached) " >&6
13889 else
13890 ac_check_lib_save_LIBS=$LIBS
13891 LIBS="-lXpm -lX11 $LIBS"
13892 cat >conftest.$ac_ext <<_ACEOF
13893 /* confdefs.h. */
13894 _ACEOF
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h. */
13898
13899 /* Override any GCC internal prototype to avoid an error.
13900 Use char because int might match the return type of a GCC
13901 builtin and then its argument prototype would still apply. */
13902 #ifdef __cplusplus
13903 extern "C"
13904 #endif
13905 char XpmReadFileToPixmap ();
13906 int
13907 main ()
13908 {
13909 return XpmReadFileToPixmap ();
13910 ;
13911 return 0;
13912 }
13913 _ACEOF
13914 rm -f conftest.$ac_objext conftest$ac_exeext
13915 if { (ac_try="$ac_link"
13916 case "(($ac_try" in
13917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918 *) ac_try_echo=$ac_try;;
13919 esac
13920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13921 $as_echo "$ac_try_echo") >&5
13922 (eval "$ac_link") 2>conftest.er1
13923 ac_status=$?
13924 grep -v '^ *+' conftest.er1 >conftest.err
13925 rm -f conftest.er1
13926 cat conftest.err >&5
13927 $as_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_exeext && {
13932 test "$cross_compiling" = yes ||
13933 $as_test_x conftest$ac_exeext
13934 }; then
13935 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13936 else
13937 $as_echo "$as_me: failed program was:" >&5
13938 sed 's/^/| /' conftest.$ac_ext >&5
13939
13940 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13941 fi
13942
13943 rm -rf conftest.dSYM
13944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13945 conftest$ac_exeext conftest.$ac_ext
13946 LIBS=$ac_check_lib_save_LIBS
13947 fi
13948 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13949 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13950 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then
13951 HAVE_XPM=yes
13952 fi
13953
13954 fi
13955
13956
13957 if test "${HAVE_XPM}" = "yes"; then
13958 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13959 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
13960 cat >conftest.$ac_ext <<_ACEOF
13961 /* confdefs.h. */
13962 _ACEOF
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h. */
13966 #include "X11/xpm.h"
13967 #ifndef XpmReturnAllocPixels
13968 no_return_alloc_pixels
13969 #endif
13970
13971 _ACEOF
13972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13973 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13974 HAVE_XPM=no
13975 else
13976 HAVE_XPM=yes
13977 fi
13978 rm -f conftest*
13979
13980
13981 if test "${HAVE_XPM}" = "yes"; then
13982 { $as_echo "$as_me:$LINENO: result: yes" >&5
13983 $as_echo "yes" >&6; }
13984 else
13985 { $as_echo "$as_me:$LINENO: result: no" >&5
13986 $as_echo "no" >&6; }
13987 fi
13988 fi
13989 fi
13990
13991 if test "${HAVE_XPM}" = "yes"; then
13992
13993 cat >>confdefs.h <<\_ACEOF
13994 #define HAVE_XPM 1
13995 _ACEOF
13996
13997 fi
13998 fi
13999
14000 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14001 HAVE_JPEG=no
14002 if test "${HAVE_X11}" = "yes"; then
14003 if test "${with_jpeg}" != "no"; then
14004 if test "${ac_cv_header_jerror_h+set}" = set; then
14005 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14006 $as_echo_n "checking for jerror.h... " >&6; }
14007 if test "${ac_cv_header_jerror_h+set}" = set; then
14008 $as_echo_n "(cached) " >&6
14009 fi
14010 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14011 $as_echo "$ac_cv_header_jerror_h" >&6; }
14012 else
14013 # Is the header compilable?
14014 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14015 $as_echo_n "checking jerror.h usability... " >&6; }
14016 cat >conftest.$ac_ext <<_ACEOF
14017 /* confdefs.h. */
14018 _ACEOF
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h. */
14022 $ac_includes_default
14023 #include <jerror.h>
14024 _ACEOF
14025 rm -f conftest.$ac_objext
14026 if { (ac_try="$ac_compile"
14027 case "(($ac_try" in
14028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14029 *) ac_try_echo=$ac_try;;
14030 esac
14031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14032 $as_echo "$ac_try_echo") >&5
14033 (eval "$ac_compile") 2>conftest.er1
14034 ac_status=$?
14035 grep -v '^ *+' conftest.er1 >conftest.err
14036 rm -f conftest.er1
14037 cat conftest.err >&5
14038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); } && {
14040 test -z "$ac_c_werror_flag" ||
14041 test ! -s conftest.err
14042 } && test -s conftest.$ac_objext; then
14043 ac_header_compiler=yes
14044 else
14045 $as_echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14047
14048 ac_header_compiler=no
14049 fi
14050
14051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14052 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14053 $as_echo "$ac_header_compiler" >&6; }
14054
14055 # Is the header present?
14056 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14057 $as_echo_n "checking jerror.h presence... " >&6; }
14058 cat >conftest.$ac_ext <<_ACEOF
14059 /* confdefs.h. */
14060 _ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h. */
14064 #include <jerror.h>
14065 _ACEOF
14066 if { (ac_try="$ac_cpp conftest.$ac_ext"
14067 case "(($ac_try" in
14068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14069 *) ac_try_echo=$ac_try;;
14070 esac
14071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14072 $as_echo "$ac_try_echo") >&5
14073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14074 ac_status=$?
14075 grep -v '^ *+' conftest.er1 >conftest.err
14076 rm -f conftest.er1
14077 cat conftest.err >&5
14078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); } >/dev/null && {
14080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14081 test ! -s conftest.err
14082 }; then
14083 ac_header_preproc=yes
14084 else
14085 $as_echo "$as_me: failed program was:" >&5
14086 sed 's/^/| /' conftest.$ac_ext >&5
14087
14088 ac_header_preproc=no
14089 fi
14090
14091 rm -f conftest.err conftest.$ac_ext
14092 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14093 $as_echo "$ac_header_preproc" >&6; }
14094
14095 # So? What about this header?
14096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14097 yes:no: )
14098 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14099 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14100 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14101 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14102 ac_header_preproc=yes
14103 ;;
14104 no:yes:* )
14105 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14106 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14107 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14108 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14109 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14110 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14111 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14112 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14113 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14114 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14115 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14116 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14117
14118 ;;
14119 esac
14120 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14121 $as_echo_n "checking for jerror.h... " >&6; }
14122 if test "${ac_cv_header_jerror_h+set}" = set; then
14123 $as_echo_n "(cached) " >&6
14124 else
14125 ac_cv_header_jerror_h=$ac_header_preproc
14126 fi
14127 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14128 $as_echo "$ac_cv_header_jerror_h" >&6; }
14129
14130 fi
14131 if test "x$ac_cv_header_jerror_h" = x""yes; then
14132 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14133 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14134 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14135 $as_echo_n "(cached) " >&6
14136 else
14137 ac_check_lib_save_LIBS=$LIBS
14138 LIBS="-ljpeg $LIBS"
14139 cat >conftest.$ac_ext <<_ACEOF
14140 /* confdefs.h. */
14141 _ACEOF
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h. */
14145
14146 /* Override any GCC internal prototype to avoid an error.
14147 Use char because int might match the return type of a GCC
14148 builtin and then its argument prototype would still apply. */
14149 #ifdef __cplusplus
14150 extern "C"
14151 #endif
14152 char jpeg_destroy_compress ();
14153 int
14154 main ()
14155 {
14156 return jpeg_destroy_compress ();
14157 ;
14158 return 0;
14159 }
14160 _ACEOF
14161 rm -f conftest.$ac_objext conftest$ac_exeext
14162 if { (ac_try="$ac_link"
14163 case "(($ac_try" in
14164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165 *) ac_try_echo=$ac_try;;
14166 esac
14167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14168 $as_echo "$ac_try_echo") >&5
14169 (eval "$ac_link") 2>conftest.er1
14170 ac_status=$?
14171 grep -v '^ *+' conftest.er1 >conftest.err
14172 rm -f conftest.er1
14173 cat conftest.err >&5
14174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } && {
14176 test -z "$ac_c_werror_flag" ||
14177 test ! -s conftest.err
14178 } && test -s conftest$ac_exeext && {
14179 test "$cross_compiling" = yes ||
14180 $as_test_x conftest$ac_exeext
14181 }; then
14182 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14183 else
14184 $as_echo "$as_me: failed program was:" >&5
14185 sed 's/^/| /' conftest.$ac_ext >&5
14186
14187 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14188 fi
14189
14190 rm -rf conftest.dSYM
14191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14192 conftest$ac_exeext conftest.$ac_ext
14193 LIBS=$ac_check_lib_save_LIBS
14194 fi
14195 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14196 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14197 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then
14198 HAVE_JPEG=yes
14199 fi
14200
14201 fi
14202
14203
14204 fi
14205
14206
14207 if test "${HAVE_JPEG}" = "yes"; then
14208 cat >>confdefs.h <<\_ACEOF
14209 #define HAVE_JPEG 1
14210 _ACEOF
14211
14212 cat >conftest.$ac_ext <<_ACEOF
14213 /* confdefs.h. */
14214 _ACEOF
14215 cat confdefs.h >>conftest.$ac_ext
14216 cat >>conftest.$ac_ext <<_ACEOF
14217 /* end confdefs.h. */
14218 #include <jpeglib.h>
14219 version=JPEG_LIB_VERSION
14220
14221 _ACEOF
14222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14223 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14224 cat >>confdefs.h <<\_ACEOF
14225 #define HAVE_JPEG 1
14226 _ACEOF
14227
14228 else
14229 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14230 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14231 HAVE_JPEG=no
14232 fi
14233 rm -f conftest*
14234
14235 fi
14236 fi
14237
14238 ### Use -lpng if available, unless `--with-png=no'.
14239 HAVE_PNG=no
14240 if test "${HAVE_X11}" = "yes"; then
14241 if test "${with_png}" != "no"; then
14242 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14243 # in /usr/include/libpng.
14244
14245
14246 for ac_header in png.h libpng/png.h
14247 do
14248 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14250 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14251 $as_echo_n "checking for $ac_header... " >&6; }
14252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14253 $as_echo_n "(cached) " >&6
14254 fi
14255 ac_res=`eval 'as_val=${'$as_ac_Header'}
14256 $as_echo "$as_val"'`
14257 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14258 $as_echo "$ac_res" >&6; }
14259 else
14260 # Is the header compilable?
14261 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14262 $as_echo_n "checking $ac_header usability... " >&6; }
14263 cat >conftest.$ac_ext <<_ACEOF
14264 /* confdefs.h. */
14265 _ACEOF
14266 cat confdefs.h >>conftest.$ac_ext
14267 cat >>conftest.$ac_ext <<_ACEOF
14268 /* end confdefs.h. */
14269 $ac_includes_default
14270 #include <$ac_header>
14271 _ACEOF
14272 rm -f conftest.$ac_objext
14273 if { (ac_try="$ac_compile"
14274 case "(($ac_try" in
14275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276 *) ac_try_echo=$ac_try;;
14277 esac
14278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14279 $as_echo "$ac_try_echo") >&5
14280 (eval "$ac_compile") 2>conftest.er1
14281 ac_status=$?
14282 grep -v '^ *+' conftest.er1 >conftest.err
14283 rm -f conftest.er1
14284 cat conftest.err >&5
14285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); } && {
14287 test -z "$ac_c_werror_flag" ||
14288 test ! -s conftest.err
14289 } && test -s conftest.$ac_objext; then
14290 ac_header_compiler=yes
14291 else
14292 $as_echo "$as_me: failed program was:" >&5
14293 sed 's/^/| /' conftest.$ac_ext >&5
14294
14295 ac_header_compiler=no
14296 fi
14297
14298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14299 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14300 $as_echo "$ac_header_compiler" >&6; }
14301
14302 # Is the header present?
14303 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14304 $as_echo_n "checking $ac_header presence... " >&6; }
14305 cat >conftest.$ac_ext <<_ACEOF
14306 /* confdefs.h. */
14307 _ACEOF
14308 cat confdefs.h >>conftest.$ac_ext
14309 cat >>conftest.$ac_ext <<_ACEOF
14310 /* end confdefs.h. */
14311 #include <$ac_header>
14312 _ACEOF
14313 if { (ac_try="$ac_cpp conftest.$ac_ext"
14314 case "(($ac_try" in
14315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14316 *) ac_try_echo=$ac_try;;
14317 esac
14318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14319 $as_echo "$ac_try_echo") >&5
14320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14321 ac_status=$?
14322 grep -v '^ *+' conftest.er1 >conftest.err
14323 rm -f conftest.er1
14324 cat conftest.err >&5
14325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } >/dev/null && {
14327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14328 test ! -s conftest.err
14329 }; then
14330 ac_header_preproc=yes
14331 else
14332 $as_echo "$as_me: failed program was:" >&5
14333 sed 's/^/| /' conftest.$ac_ext >&5
14334
14335 ac_header_preproc=no
14336 fi
14337
14338 rm -f conftest.err conftest.$ac_ext
14339 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14340 $as_echo "$ac_header_preproc" >&6; }
14341
14342 # So? What about this header?
14343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14344 yes:no: )
14345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14346 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14348 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14349 ac_header_preproc=yes
14350 ;;
14351 no:yes:* )
14352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14353 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14355 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14357 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14359 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14361 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14363 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14364
14365 ;;
14366 esac
14367 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14368 $as_echo_n "checking for $ac_header... " >&6; }
14369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14370 $as_echo_n "(cached) " >&6
14371 else
14372 eval "$as_ac_Header=\$ac_header_preproc"
14373 fi
14374 ac_res=`eval 'as_val=${'$as_ac_Header'}
14375 $as_echo "$as_val"'`
14376 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14377 $as_echo "$ac_res" >&6; }
14378
14379 fi
14380 as_val=`eval 'as_val=${'$as_ac_Header'}
14381 $as_echo "$as_val"'`
14382 if test "x$as_val" = x""yes; then
14383 cat >>confdefs.h <<_ACEOF
14384 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14385 _ACEOF
14386
14387 fi
14388
14389 done
14390
14391 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14392 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14393 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
14394 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14395 $as_echo_n "(cached) " >&6
14396 else
14397 ac_check_lib_save_LIBS=$LIBS
14398 LIBS="-lpng -lz -lm $LIBS"
14399 cat >conftest.$ac_ext <<_ACEOF
14400 /* confdefs.h. */
14401 _ACEOF
14402 cat confdefs.h >>conftest.$ac_ext
14403 cat >>conftest.$ac_ext <<_ACEOF
14404 /* end confdefs.h. */
14405
14406 /* Override any GCC internal prototype to avoid an error.
14407 Use char because int might match the return type of a GCC
14408 builtin and then its argument prototype would still apply. */
14409 #ifdef __cplusplus
14410 extern "C"
14411 #endif
14412 char png_get_channels ();
14413 int
14414 main ()
14415 {
14416 return png_get_channels ();
14417 ;
14418 return 0;
14419 }
14420 _ACEOF
14421 rm -f conftest.$ac_objext conftest$ac_exeext
14422 if { (ac_try="$ac_link"
14423 case "(($ac_try" in
14424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425 *) ac_try_echo=$ac_try;;
14426 esac
14427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14428 $as_echo "$ac_try_echo") >&5
14429 (eval "$ac_link") 2>conftest.er1
14430 ac_status=$?
14431 grep -v '^ *+' conftest.er1 >conftest.err
14432 rm -f conftest.er1
14433 cat conftest.err >&5
14434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); } && {
14436 test -z "$ac_c_werror_flag" ||
14437 test ! -s conftest.err
14438 } && test -s conftest$ac_exeext && {
14439 test "$cross_compiling" = yes ||
14440 $as_test_x conftest$ac_exeext
14441 }; then
14442 ac_cv_lib_png_png_get_channels=yes
14443 else
14444 $as_echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14446
14447 ac_cv_lib_png_png_get_channels=no
14448 fi
14449
14450 rm -rf conftest.dSYM
14451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14452 conftest$ac_exeext conftest.$ac_ext
14453 LIBS=$ac_check_lib_save_LIBS
14454 fi
14455 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14456 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
14457 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then
14458 HAVE_PNG=yes
14459 fi
14460
14461 fi
14462 fi
14463
14464 if test "${HAVE_PNG}" = "yes"; then
14465
14466 cat >>confdefs.h <<\_ACEOF
14467 #define HAVE_PNG 1
14468 _ACEOF
14469
14470 fi
14471 fi
14472
14473 ### Use -ltiff if available, unless `--with-tiff=no'.
14474 HAVE_TIFF=no
14475 if test "${HAVE_X11}" = "yes"; then
14476 if test "${with_tiff}" != "no"; then
14477 if test "${ac_cv_header_tiffio_h+set}" = set; then
14478 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
14479 $as_echo_n "checking for tiffio.h... " >&6; }
14480 if test "${ac_cv_header_tiffio_h+set}" = set; then
14481 $as_echo_n "(cached) " >&6
14482 fi
14483 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14484 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14485 else
14486 # Is the header compilable?
14487 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14488 $as_echo_n "checking tiffio.h usability... " >&6; }
14489 cat >conftest.$ac_ext <<_ACEOF
14490 /* confdefs.h. */
14491 _ACEOF
14492 cat confdefs.h >>conftest.$ac_ext
14493 cat >>conftest.$ac_ext <<_ACEOF
14494 /* end confdefs.h. */
14495 $ac_includes_default
14496 #include <tiffio.h>
14497 _ACEOF
14498 rm -f conftest.$ac_objext
14499 if { (ac_try="$ac_compile"
14500 case "(($ac_try" in
14501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14502 *) ac_try_echo=$ac_try;;
14503 esac
14504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14505 $as_echo "$ac_try_echo") >&5
14506 (eval "$ac_compile") 2>conftest.er1
14507 ac_status=$?
14508 grep -v '^ *+' conftest.er1 >conftest.err
14509 rm -f conftest.er1
14510 cat conftest.err >&5
14511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } && {
14513 test -z "$ac_c_werror_flag" ||
14514 test ! -s conftest.err
14515 } && test -s conftest.$ac_objext; then
14516 ac_header_compiler=yes
14517 else
14518 $as_echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14520
14521 ac_header_compiler=no
14522 fi
14523
14524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14525 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14526 $as_echo "$ac_header_compiler" >&6; }
14527
14528 # Is the header present?
14529 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14530 $as_echo_n "checking tiffio.h presence... " >&6; }
14531 cat >conftest.$ac_ext <<_ACEOF
14532 /* confdefs.h. */
14533 _ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h. */
14537 #include <tiffio.h>
14538 _ACEOF
14539 if { (ac_try="$ac_cpp conftest.$ac_ext"
14540 case "(($ac_try" in
14541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542 *) ac_try_echo=$ac_try;;
14543 esac
14544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14545 $as_echo "$ac_try_echo") >&5
14546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14547 ac_status=$?
14548 grep -v '^ *+' conftest.er1 >conftest.err
14549 rm -f conftest.er1
14550 cat conftest.err >&5
14551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } >/dev/null && {
14553 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14554 test ! -s conftest.err
14555 }; then
14556 ac_header_preproc=yes
14557 else
14558 $as_echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14560
14561 ac_header_preproc=no
14562 fi
14563
14564 rm -f conftest.err conftest.$ac_ext
14565 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14566 $as_echo "$ac_header_preproc" >&6; }
14567
14568 # So? What about this header?
14569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14570 yes:no: )
14571 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14572 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14573 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14574 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14575 ac_header_preproc=yes
14576 ;;
14577 no:yes:* )
14578 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14579 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14580 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14581 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14582 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14583 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14584 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14585 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14586 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14587 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14588 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14589 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14590
14591 ;;
14592 esac
14593 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
14594 $as_echo_n "checking for tiffio.h... " >&6; }
14595 if test "${ac_cv_header_tiffio_h+set}" = set; then
14596 $as_echo_n "(cached) " >&6
14597 else
14598 ac_cv_header_tiffio_h=$ac_header_preproc
14599 fi
14600 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14601 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14602
14603 fi
14604 if test "x$ac_cv_header_tiffio_h" = x""yes; then
14605 tifflibs="-lz -lm"
14606 # At least one tiff package requires the jpeg library.
14607 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14608 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14609 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
14610 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14611 $as_echo_n "(cached) " >&6
14612 else
14613 ac_check_lib_save_LIBS=$LIBS
14614 LIBS="-ltiff $tifflibs $LIBS"
14615 cat >conftest.$ac_ext <<_ACEOF
14616 /* confdefs.h. */
14617 _ACEOF
14618 cat confdefs.h >>conftest.$ac_ext
14619 cat >>conftest.$ac_ext <<_ACEOF
14620 /* end confdefs.h. */
14621
14622 /* Override any GCC internal prototype to avoid an error.
14623 Use char because int might match the return type of a GCC
14624 builtin and then its argument prototype would still apply. */
14625 #ifdef __cplusplus
14626 extern "C"
14627 #endif
14628 char TIFFGetVersion ();
14629 int
14630 main ()
14631 {
14632 return TIFFGetVersion ();
14633 ;
14634 return 0;
14635 }
14636 _ACEOF
14637 rm -f conftest.$ac_objext conftest$ac_exeext
14638 if { (ac_try="$ac_link"
14639 case "(($ac_try" in
14640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14641 *) ac_try_echo=$ac_try;;
14642 esac
14643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14644 $as_echo "$ac_try_echo") >&5
14645 (eval "$ac_link") 2>conftest.er1
14646 ac_status=$?
14647 grep -v '^ *+' conftest.er1 >conftest.err
14648 rm -f conftest.er1
14649 cat conftest.err >&5
14650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); } && {
14652 test -z "$ac_c_werror_flag" ||
14653 test ! -s conftest.err
14654 } && test -s conftest$ac_exeext && {
14655 test "$cross_compiling" = yes ||
14656 $as_test_x conftest$ac_exeext
14657 }; then
14658 ac_cv_lib_tiff_TIFFGetVersion=yes
14659 else
14660 $as_echo "$as_me: failed program was:" >&5
14661 sed 's/^/| /' conftest.$ac_ext >&5
14662
14663 ac_cv_lib_tiff_TIFFGetVersion=no
14664 fi
14665
14666 rm -rf conftest.dSYM
14667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14668 conftest$ac_exeext conftest.$ac_ext
14669 LIBS=$ac_check_lib_save_LIBS
14670 fi
14671 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14672 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14673 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then
14674 HAVE_TIFF=yes
14675 fi
14676
14677 fi
14678
14679
14680 fi
14681
14682 if test "${HAVE_TIFF}" = "yes"; then
14683
14684 cat >>confdefs.h <<\_ACEOF
14685 #define HAVE_TIFF 1
14686 _ACEOF
14687
14688 fi
14689 fi
14690
14691 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14692 HAVE_GIF=no
14693 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14694 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14695 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14696 $as_echo_n "checking for gif_lib.h... " >&6; }
14697 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14698 $as_echo_n "(cached) " >&6
14699 fi
14700 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14701 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
14702 else
14703 # Is the header compilable?
14704 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14705 $as_echo_n "checking gif_lib.h usability... " >&6; }
14706 cat >conftest.$ac_ext <<_ACEOF
14707 /* confdefs.h. */
14708 _ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h. */
14712 $ac_includes_default
14713 #include <gif_lib.h>
14714 _ACEOF
14715 rm -f conftest.$ac_objext
14716 if { (ac_try="$ac_compile"
14717 case "(($ac_try" in
14718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719 *) ac_try_echo=$ac_try;;
14720 esac
14721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14722 $as_echo "$ac_try_echo") >&5
14723 (eval "$ac_compile") 2>conftest.er1
14724 ac_status=$?
14725 grep -v '^ *+' conftest.er1 >conftest.err
14726 rm -f conftest.er1
14727 cat conftest.err >&5
14728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } && {
14730 test -z "$ac_c_werror_flag" ||
14731 test ! -s conftest.err
14732 } && test -s conftest.$ac_objext; then
14733 ac_header_compiler=yes
14734 else
14735 $as_echo "$as_me: failed program was:" >&5
14736 sed 's/^/| /' conftest.$ac_ext >&5
14737
14738 ac_header_compiler=no
14739 fi
14740
14741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14742 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14743 $as_echo "$ac_header_compiler" >&6; }
14744
14745 # Is the header present?
14746 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14747 $as_echo_n "checking gif_lib.h presence... " >&6; }
14748 cat >conftest.$ac_ext <<_ACEOF
14749 /* confdefs.h. */
14750 _ACEOF
14751 cat confdefs.h >>conftest.$ac_ext
14752 cat >>conftest.$ac_ext <<_ACEOF
14753 /* end confdefs.h. */
14754 #include <gif_lib.h>
14755 _ACEOF
14756 if { (ac_try="$ac_cpp conftest.$ac_ext"
14757 case "(($ac_try" in
14758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14759 *) ac_try_echo=$ac_try;;
14760 esac
14761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14762 $as_echo "$ac_try_echo") >&5
14763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14764 ac_status=$?
14765 grep -v '^ *+' conftest.er1 >conftest.err
14766 rm -f conftest.er1
14767 cat conftest.err >&5
14768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); } >/dev/null && {
14770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14771 test ! -s conftest.err
14772 }; then
14773 ac_header_preproc=yes
14774 else
14775 $as_echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14777
14778 ac_header_preproc=no
14779 fi
14780
14781 rm -f conftest.err conftest.$ac_ext
14782 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14783 $as_echo "$ac_header_preproc" >&6; }
14784
14785 # So? What about this header?
14786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14787 yes:no: )
14788 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14789 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14790 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14791 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14792 ac_header_preproc=yes
14793 ;;
14794 no:yes:* )
14795 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14796 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14797 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14798 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14799 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14800 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14801 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14802 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14803 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14804 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14805 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14806 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14807
14808 ;;
14809 esac
14810 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14811 $as_echo_n "checking for gif_lib.h... " >&6; }
14812 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14813 $as_echo_n "(cached) " >&6
14814 else
14815 ac_cv_header_gif_lib_h=$ac_header_preproc
14816 fi
14817 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14818 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
14819
14820 fi
14821 if test "x$ac_cv_header_gif_lib_h" = x""yes; then
14822 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14823 # Earlier versions can crash Emacs.
14824 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14825 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
14826 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14827 $as_echo_n "(cached) " >&6
14828 else
14829 ac_check_lib_save_LIBS=$LIBS
14830 LIBS="-lgif $LIBS"
14831 cat >conftest.$ac_ext <<_ACEOF
14832 /* confdefs.h. */
14833 _ACEOF
14834 cat confdefs.h >>conftest.$ac_ext
14835 cat >>conftest.$ac_ext <<_ACEOF
14836 /* end confdefs.h. */
14837
14838 /* Override any GCC internal prototype to avoid an error.
14839 Use char because int might match the return type of a GCC
14840 builtin and then its argument prototype would still apply. */
14841 #ifdef __cplusplus
14842 extern "C"
14843 #endif
14844 char EGifPutExtensionLast ();
14845 int
14846 main ()
14847 {
14848 return EGifPutExtensionLast ();
14849 ;
14850 return 0;
14851 }
14852 _ACEOF
14853 rm -f conftest.$ac_objext conftest$ac_exeext
14854 if { (ac_try="$ac_link"
14855 case "(($ac_try" in
14856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14857 *) ac_try_echo=$ac_try;;
14858 esac
14859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14860 $as_echo "$ac_try_echo") >&5
14861 (eval "$ac_link") 2>conftest.er1
14862 ac_status=$?
14863 grep -v '^ *+' conftest.er1 >conftest.err
14864 rm -f conftest.er1
14865 cat conftest.err >&5
14866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } && {
14868 test -z "$ac_c_werror_flag" ||
14869 test ! -s conftest.err
14870 } && test -s conftest$ac_exeext && {
14871 test "$cross_compiling" = yes ||
14872 $as_test_x conftest$ac_exeext
14873 }; then
14874 ac_cv_lib_gif_EGifPutExtensionLast=yes
14875 else
14876 $as_echo "$as_me: failed program was:" >&5
14877 sed 's/^/| /' conftest.$ac_ext >&5
14878
14879 ac_cv_lib_gif_EGifPutExtensionLast=no
14880 fi
14881
14882 rm -rf conftest.dSYM
14883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14884 conftest$ac_exeext conftest.$ac_ext
14885 LIBS=$ac_check_lib_save_LIBS
14886 fi
14887 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14888 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14889 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then
14890 HAVE_GIF=yes
14891 else
14892 try_libungif=yes
14893 fi
14894
14895 fi
14896
14897
14898
14899 if test "$HAVE_GIF" = yes; then
14900 ac_gif_lib_name="-lgif"
14901 fi
14902
14903 # If gif_lib.h but no libgif, try libungif.
14904 if test x"$try_libungif" = xyes; then
14905 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14906 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
14907 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14908 $as_echo_n "(cached) " >&6
14909 else
14910 ac_check_lib_save_LIBS=$LIBS
14911 LIBS="-lungif $LIBS"
14912 cat >conftest.$ac_ext <<_ACEOF
14913 /* confdefs.h. */
14914 _ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h. */
14918
14919 /* Override any GCC internal prototype to avoid an error.
14920 Use char because int might match the return type of a GCC
14921 builtin and then its argument prototype would still apply. */
14922 #ifdef __cplusplus
14923 extern "C"
14924 #endif
14925 char EGifPutExtensionLast ();
14926 int
14927 main ()
14928 {
14929 return EGifPutExtensionLast ();
14930 ;
14931 return 0;
14932 }
14933 _ACEOF
14934 rm -f conftest.$ac_objext conftest$ac_exeext
14935 if { (ac_try="$ac_link"
14936 case "(($ac_try" in
14937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14938 *) ac_try_echo=$ac_try;;
14939 esac
14940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14941 $as_echo "$ac_try_echo") >&5
14942 (eval "$ac_link") 2>conftest.er1
14943 ac_status=$?
14944 grep -v '^ *+' conftest.er1 >conftest.err
14945 rm -f conftest.er1
14946 cat conftest.err >&5
14947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); } && {
14949 test -z "$ac_c_werror_flag" ||
14950 test ! -s conftest.err
14951 } && test -s conftest$ac_exeext && {
14952 test "$cross_compiling" = yes ||
14953 $as_test_x conftest$ac_exeext
14954 }; then
14955 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14956 else
14957 $as_echo "$as_me: failed program was:" >&5
14958 sed 's/^/| /' conftest.$ac_ext >&5
14959
14960 ac_cv_lib_ungif_EGifPutExtensionLast=no
14961 fi
14962
14963 rm -rf conftest.dSYM
14964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14965 conftest$ac_exeext conftest.$ac_ext
14966 LIBS=$ac_check_lib_save_LIBS
14967 fi
14968 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14969 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14970 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then
14971 HAVE_GIF=yes
14972 fi
14973
14974
14975 if test "$HAVE_GIF" = yes; then
14976
14977 cat >>confdefs.h <<\_ACEOF
14978 #define LIBGIF -lungif
14979 _ACEOF
14980
14981 ac_gif_lib_name="-lungif"
14982 fi
14983 fi
14984
14985 if test "${HAVE_GIF}" = "yes"; then
14986
14987 cat >>confdefs.h <<\_ACEOF
14988 #define HAVE_GIF 1
14989 _ACEOF
14990
14991 fi
14992 fi
14993
14994 if test "${HAVE_X11}" = "yes"; then
14995 MISSING=""
14996 WITH_NO=""
14997 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14998 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14999 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15000 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15001 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15002 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15003 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15004 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15005 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15006 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15007
15008 if test "X${MISSING}" != X; then
15009 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15010 $MISSING
15011 Maybe some development libraries/packages are missing?
15012 If you don't want to link with them give
15013 $WITH_NO
15014 as options to configure" >&5
15015 $as_echo "$as_me: error: The following required libraries were not found:
15016 $MISSING
15017 Maybe some development libraries/packages are missing?
15018 If you don't want to link with them give
15019 $WITH_NO
15020 as options to configure" >&2;}
15021 { (exit 1); exit 1; }; }
15022 fi
15023 fi
15024
15025 ### Use -lgpm if available, unless `--with-gpm=no'.
15026 HAVE_GPM=no
15027 if test "${with_gpm}" != "no"; then
15028 if test "${ac_cv_header_gpm_h+set}" = set; then
15029 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15030 $as_echo_n "checking for gpm.h... " >&6; }
15031 if test "${ac_cv_header_gpm_h+set}" = set; then
15032 $as_echo_n "(cached) " >&6
15033 fi
15034 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15035 $as_echo "$ac_cv_header_gpm_h" >&6; }
15036 else
15037 # Is the header compilable?
15038 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15039 $as_echo_n "checking gpm.h usability... " >&6; }
15040 cat >conftest.$ac_ext <<_ACEOF
15041 /* confdefs.h. */
15042 _ACEOF
15043 cat confdefs.h >>conftest.$ac_ext
15044 cat >>conftest.$ac_ext <<_ACEOF
15045 /* end confdefs.h. */
15046 $ac_includes_default
15047 #include <gpm.h>
15048 _ACEOF
15049 rm -f conftest.$ac_objext
15050 if { (ac_try="$ac_compile"
15051 case "(($ac_try" in
15052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15053 *) ac_try_echo=$ac_try;;
15054 esac
15055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15056 $as_echo "$ac_try_echo") >&5
15057 (eval "$ac_compile") 2>conftest.er1
15058 ac_status=$?
15059 grep -v '^ *+' conftest.er1 >conftest.err
15060 rm -f conftest.er1
15061 cat conftest.err >&5
15062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } && {
15064 test -z "$ac_c_werror_flag" ||
15065 test ! -s conftest.err
15066 } && test -s conftest.$ac_objext; then
15067 ac_header_compiler=yes
15068 else
15069 $as_echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15071
15072 ac_header_compiler=no
15073 fi
15074
15075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15076 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15077 $as_echo "$ac_header_compiler" >&6; }
15078
15079 # Is the header present?
15080 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15081 $as_echo_n "checking gpm.h presence... " >&6; }
15082 cat >conftest.$ac_ext <<_ACEOF
15083 /* confdefs.h. */
15084 _ACEOF
15085 cat confdefs.h >>conftest.$ac_ext
15086 cat >>conftest.$ac_ext <<_ACEOF
15087 /* end confdefs.h. */
15088 #include <gpm.h>
15089 _ACEOF
15090 if { (ac_try="$ac_cpp conftest.$ac_ext"
15091 case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15094 esac
15095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15096 $as_echo "$ac_try_echo") >&5
15097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15098 ac_status=$?
15099 grep -v '^ *+' conftest.er1 >conftest.err
15100 rm -f conftest.er1
15101 cat conftest.err >&5
15102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } >/dev/null && {
15104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15105 test ! -s conftest.err
15106 }; then
15107 ac_header_preproc=yes
15108 else
15109 $as_echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15111
15112 ac_header_preproc=no
15113 fi
15114
15115 rm -f conftest.err conftest.$ac_ext
15116 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15117 $as_echo "$ac_header_preproc" >&6; }
15118
15119 # So? What about this header?
15120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15121 yes:no: )
15122 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15123 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15124 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15125 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15126 ac_header_preproc=yes
15127 ;;
15128 no:yes:* )
15129 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15130 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15131 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15132 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15133 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15134 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15135 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15136 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15137 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15138 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15139 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15140 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15141
15142 ;;
15143 esac
15144 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15145 $as_echo_n "checking for gpm.h... " >&6; }
15146 if test "${ac_cv_header_gpm_h+set}" = set; then
15147 $as_echo_n "(cached) " >&6
15148 else
15149 ac_cv_header_gpm_h=$ac_header_preproc
15150 fi
15151 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15152 $as_echo "$ac_cv_header_gpm_h" >&6; }
15153
15154 fi
15155 if test "x$ac_cv_header_gpm_h" = x""yes; then
15156 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15157 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15158 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15159 $as_echo_n "(cached) " >&6
15160 else
15161 ac_check_lib_save_LIBS=$LIBS
15162 LIBS="-lgpm $LIBS"
15163 cat >conftest.$ac_ext <<_ACEOF
15164 /* confdefs.h. */
15165 _ACEOF
15166 cat confdefs.h >>conftest.$ac_ext
15167 cat >>conftest.$ac_ext <<_ACEOF
15168 /* end confdefs.h. */
15169
15170 /* Override any GCC internal prototype to avoid an error.
15171 Use char because int might match the return type of a GCC
15172 builtin and then its argument prototype would still apply. */
15173 #ifdef __cplusplus
15174 extern "C"
15175 #endif
15176 char Gpm_Open ();
15177 int
15178 main ()
15179 {
15180 return Gpm_Open ();
15181 ;
15182 return 0;
15183 }
15184 _ACEOF
15185 rm -f conftest.$ac_objext conftest$ac_exeext
15186 if { (ac_try="$ac_link"
15187 case "(($ac_try" in
15188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15189 *) ac_try_echo=$ac_try;;
15190 esac
15191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15192 $as_echo "$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 $as_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 test "$cross_compiling" = yes ||
15204 $as_test_x conftest$ac_exeext
15205 }; then
15206 ac_cv_lib_gpm_Gpm_Open=yes
15207 else
15208 $as_echo "$as_me: failed program was:" >&5
15209 sed 's/^/| /' conftest.$ac_ext >&5
15210
15211 ac_cv_lib_gpm_Gpm_Open=no
15212 fi
15213
15214 rm -rf conftest.dSYM
15215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15216 conftest$ac_exeext conftest.$ac_ext
15217 LIBS=$ac_check_lib_save_LIBS
15218 fi
15219 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15220 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15221 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then
15222 HAVE_GPM=yes
15223 fi
15224
15225 fi
15226
15227
15228 fi
15229
15230 if test "${HAVE_GPM}" = "yes"; then
15231
15232 cat >>confdefs.h <<\_ACEOF
15233 #define HAVE_GPM 1
15234 _ACEOF
15235
15236 fi
15237
15238 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15239 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15240 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15241 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15242 $as_echo_n "(cached) " >&6
15243 fi
15244 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15245 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15246 else
15247 # Is the header compilable?
15248 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15249 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15250 cat >conftest.$ac_ext <<_ACEOF
15251 /* confdefs.h. */
15252 _ACEOF
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h. */
15256 $ac_includes_default
15257 #include <malloc/malloc.h>
15258 _ACEOF
15259 rm -f conftest.$ac_objext
15260 if { (ac_try="$ac_compile"
15261 case "(($ac_try" in
15262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263 *) ac_try_echo=$ac_try;;
15264 esac
15265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15266 $as_echo "$ac_try_echo") >&5
15267 (eval "$ac_compile") 2>conftest.er1
15268 ac_status=$?
15269 grep -v '^ *+' conftest.er1 >conftest.err
15270 rm -f conftest.er1
15271 cat conftest.err >&5
15272 $as_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_objext; then
15277 ac_header_compiler=yes
15278 else
15279 $as_echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15281
15282 ac_header_compiler=no
15283 fi
15284
15285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15286 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15287 $as_echo "$ac_header_compiler" >&6; }
15288
15289 # Is the header present?
15290 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15291 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15292 cat >conftest.$ac_ext <<_ACEOF
15293 /* confdefs.h. */
15294 _ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15298 #include <malloc/malloc.h>
15299 _ACEOF
15300 if { (ac_try="$ac_cpp conftest.$ac_ext"
15301 case "(($ac_try" in
15302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303 *) ac_try_echo=$ac_try;;
15304 esac
15305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15306 $as_echo "$ac_try_echo") >&5
15307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15308 ac_status=$?
15309 grep -v '^ *+' conftest.er1 >conftest.err
15310 rm -f conftest.er1
15311 cat conftest.err >&5
15312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); } >/dev/null && {
15314 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15315 test ! -s conftest.err
15316 }; then
15317 ac_header_preproc=yes
15318 else
15319 $as_echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15321
15322 ac_header_preproc=no
15323 fi
15324
15325 rm -f conftest.err conftest.$ac_ext
15326 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15327 $as_echo "$ac_header_preproc" >&6; }
15328
15329 # So? What about this header?
15330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15331 yes:no: )
15332 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15333 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15334 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15335 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15336 ac_header_preproc=yes
15337 ;;
15338 no:yes:* )
15339 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15340 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15341 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15342 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15343 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15344 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15345 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15346 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15347 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15348 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15349 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15350 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15351
15352 ;;
15353 esac
15354 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15355 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15356 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15357 $as_echo_n "(cached) " >&6
15358 else
15359 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15360 fi
15361 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15362 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15363
15364 fi
15365 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then
15366
15367 cat >>confdefs.h <<\_ACEOF
15368 #define HAVE_MALLOC_MALLOC_H 1
15369 _ACEOF
15370
15371 fi
15372
15373
15374
15375 ### Use NeXTstep API to implement GUI.
15376 if test "${HAVE_NS}" = "yes"; then
15377
15378 cat >>confdefs.h <<\_ACEOF
15379 #define HAVE_NS 1
15380 _ACEOF
15381
15382 if test "${NS_IMPL_COCOA}" = "yes"; then
15383
15384 cat >>confdefs.h <<\_ACEOF
15385 #define NS_IMPL_COCOA 1
15386 _ACEOF
15387
15388 GNU_OBJC_CFLAGS=
15389 LIB_SRC_EXTRA_INSTALLABLES=mac-fix-env
15390 fi
15391 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15392
15393 cat >>confdefs.h <<\_ACEOF
15394 #define NS_IMPL_GNUSTEP 1
15395 _ACEOF
15396
15397 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15398 fi
15399 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15400
15401 cat >>confdefs.h <<\_ACEOF
15402 #define NS_HAVE_NSINTEGER 1
15403 _ACEOF
15404
15405 fi
15406 # We also have mouse menus.
15407 HAVE_MENUS=yes
15408 fi
15409
15410
15411 ### Use session management (-lSM -lICE) if available
15412 HAVE_X_SM=no
15413 if test "${HAVE_X11}" = "yes"; then
15414 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15415 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15416 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15417 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15418 $as_echo_n "(cached) " >&6
15419 fi
15420 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15421 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15422 else
15423 # Is the header compilable?
15424 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15425 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
15426 cat >conftest.$ac_ext <<_ACEOF
15427 /* confdefs.h. */
15428 _ACEOF
15429 cat confdefs.h >>conftest.$ac_ext
15430 cat >>conftest.$ac_ext <<_ACEOF
15431 /* end confdefs.h. */
15432 $ac_includes_default
15433 #include <X11/SM/SMlib.h>
15434 _ACEOF
15435 rm -f conftest.$ac_objext
15436 if { (ac_try="$ac_compile"
15437 case "(($ac_try" in
15438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15439 *) ac_try_echo=$ac_try;;
15440 esac
15441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15442 $as_echo "$ac_try_echo") >&5
15443 (eval "$ac_compile") 2>conftest.er1
15444 ac_status=$?
15445 grep -v '^ *+' conftest.er1 >conftest.err
15446 rm -f conftest.er1
15447 cat conftest.err >&5
15448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } && {
15450 test -z "$ac_c_werror_flag" ||
15451 test ! -s conftest.err
15452 } && test -s conftest.$ac_objext; then
15453 ac_header_compiler=yes
15454 else
15455 $as_echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.$ac_ext >&5
15457
15458 ac_header_compiler=no
15459 fi
15460
15461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15462 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15463 $as_echo "$ac_header_compiler" >&6; }
15464
15465 # Is the header present?
15466 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15467 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
15468 cat >conftest.$ac_ext <<_ACEOF
15469 /* confdefs.h. */
15470 _ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h. */
15474 #include <X11/SM/SMlib.h>
15475 _ACEOF
15476 if { (ac_try="$ac_cpp conftest.$ac_ext"
15477 case "(($ac_try" in
15478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15479 *) ac_try_echo=$ac_try;;
15480 esac
15481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15482 $as_echo "$ac_try_echo") >&5
15483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15484 ac_status=$?
15485 grep -v '^ *+' conftest.er1 >conftest.err
15486 rm -f conftest.er1
15487 cat conftest.err >&5
15488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); } >/dev/null && {
15490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15491 test ! -s conftest.err
15492 }; then
15493 ac_header_preproc=yes
15494 else
15495 $as_echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.$ac_ext >&5
15497
15498 ac_header_preproc=no
15499 fi
15500
15501 rm -f conftest.err conftest.$ac_ext
15502 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15503 $as_echo "$ac_header_preproc" >&6; }
15504
15505 # So? What about this header?
15506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15507 yes:no: )
15508 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15509 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15510 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15511 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15512 ac_header_preproc=yes
15513 ;;
15514 no:yes:* )
15515 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15516 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15517 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15518 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15519 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15520 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15521 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15522 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15523 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15524 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15525 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15526 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15527
15528 ;;
15529 esac
15530 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15531 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15532 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15533 $as_echo_n "(cached) " >&6
15534 else
15535 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15536 fi
15537 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15538 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15539
15540 fi
15541 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then
15542 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15543 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
15544 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15545 $as_echo_n "(cached) " >&6
15546 else
15547 ac_check_lib_save_LIBS=$LIBS
15548 LIBS="-lSM -lICE $LIBS"
15549 cat >conftest.$ac_ext <<_ACEOF
15550 /* confdefs.h. */
15551 _ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h. */
15555
15556 /* Override any GCC internal prototype to avoid an error.
15557 Use char because int might match the return type of a GCC
15558 builtin and then its argument prototype would still apply. */
15559 #ifdef __cplusplus
15560 extern "C"
15561 #endif
15562 char SmcOpenConnection ();
15563 int
15564 main ()
15565 {
15566 return SmcOpenConnection ();
15567 ;
15568 return 0;
15569 }
15570 _ACEOF
15571 rm -f conftest.$ac_objext conftest$ac_exeext
15572 if { (ac_try="$ac_link"
15573 case "(($ac_try" in
15574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575 *) ac_try_echo=$ac_try;;
15576 esac
15577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15578 $as_echo "$ac_try_echo") >&5
15579 (eval "$ac_link") 2>conftest.er1
15580 ac_status=$?
15581 grep -v '^ *+' conftest.er1 >conftest.err
15582 rm -f conftest.er1
15583 cat conftest.err >&5
15584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); } && {
15586 test -z "$ac_c_werror_flag" ||
15587 test ! -s conftest.err
15588 } && test -s conftest$ac_exeext && {
15589 test "$cross_compiling" = yes ||
15590 $as_test_x conftest$ac_exeext
15591 }; then
15592 ac_cv_lib_SM_SmcOpenConnection=yes
15593 else
15594 $as_echo "$as_me: failed program was:" >&5
15595 sed 's/^/| /' conftest.$ac_ext >&5
15596
15597 ac_cv_lib_SM_SmcOpenConnection=no
15598 fi
15599
15600 rm -rf conftest.dSYM
15601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15602 conftest$ac_exeext conftest.$ac_ext
15603 LIBS=$ac_check_lib_save_LIBS
15604 fi
15605 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15606 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15607 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then
15608 HAVE_X_SM=yes
15609 fi
15610
15611 fi
15612
15613
15614
15615 if test "${HAVE_X_SM}" = "yes"; then
15616
15617 cat >>confdefs.h <<\_ACEOF
15618 #define HAVE_X_SM 1
15619 _ACEOF
15620
15621 case "$LIBS" in
15622 *-lSM*) ;;
15623 *) LIBS="-lSM -lICE $LIBS" ;;
15624 esac
15625 fi
15626 fi
15627
15628 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15629 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15630 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
15631 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15632 $as_echo_n "(cached) " >&6
15633 else
15634 cat >conftest.$ac_ext <<_ACEOF
15635 /* confdefs.h. */
15636 _ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h. */
15640 #include <netdb.h>
15641 int
15642 main ()
15643 {
15644 return h_errno;
15645 ;
15646 return 0;
15647 }
15648 _ACEOF
15649 rm -f conftest.$ac_objext conftest$ac_exeext
15650 if { (ac_try="$ac_link"
15651 case "(($ac_try" in
15652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15653 *) ac_try_echo=$ac_try;;
15654 esac
15655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15656 $as_echo "$ac_try_echo") >&5
15657 (eval "$ac_link") 2>conftest.er1
15658 ac_status=$?
15659 grep -v '^ *+' conftest.er1 >conftest.err
15660 rm -f conftest.er1
15661 cat conftest.err >&5
15662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); } && {
15664 test -z "$ac_c_werror_flag" ||
15665 test ! -s conftest.err
15666 } && test -s conftest$ac_exeext && {
15667 test "$cross_compiling" = yes ||
15668 $as_test_x conftest$ac_exeext
15669 }; then
15670 emacs_cv_netdb_declares_h_errno=yes
15671 else
15672 $as_echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15674
15675 emacs_cv_netdb_declares_h_errno=no
15676 fi
15677
15678 rm -rf conftest.dSYM
15679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15680 conftest$ac_exeext conftest.$ac_ext
15681 fi
15682 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15683 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
15684 if test $emacs_cv_netdb_declares_h_errno = yes; then
15685
15686 cat >>confdefs.h <<\_ACEOF
15687 #define HAVE_H_ERRNO 1
15688 _ACEOF
15689
15690 fi
15691
15692 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15693 # for constant arguments. Useless!
15694 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
15695 $as_echo_n "checking for working alloca.h... " >&6; }
15696 if test "${ac_cv_working_alloca_h+set}" = set; then
15697 $as_echo_n "(cached) " >&6
15698 else
15699 cat >conftest.$ac_ext <<_ACEOF
15700 /* confdefs.h. */
15701 _ACEOF
15702 cat confdefs.h >>conftest.$ac_ext
15703 cat >>conftest.$ac_ext <<_ACEOF
15704 /* end confdefs.h. */
15705 #include <alloca.h>
15706 int
15707 main ()
15708 {
15709 char *p = (char *) alloca (2 * sizeof (int));
15710 if (p) return 0;
15711 ;
15712 return 0;
15713 }
15714 _ACEOF
15715 rm -f conftest.$ac_objext conftest$ac_exeext
15716 if { (ac_try="$ac_link"
15717 case "(($ac_try" in
15718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15719 *) ac_try_echo=$ac_try;;
15720 esac
15721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15722 $as_echo "$ac_try_echo") >&5
15723 (eval "$ac_link") 2>conftest.er1
15724 ac_status=$?
15725 grep -v '^ *+' conftest.er1 >conftest.err
15726 rm -f conftest.er1
15727 cat conftest.err >&5
15728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); } && {
15730 test -z "$ac_c_werror_flag" ||
15731 test ! -s conftest.err
15732 } && test -s conftest$ac_exeext && {
15733 test "$cross_compiling" = yes ||
15734 $as_test_x conftest$ac_exeext
15735 }; then
15736 ac_cv_working_alloca_h=yes
15737 else
15738 $as_echo "$as_me: failed program was:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15740
15741 ac_cv_working_alloca_h=no
15742 fi
15743
15744 rm -rf conftest.dSYM
15745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15746 conftest$ac_exeext conftest.$ac_ext
15747 fi
15748 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15749 $as_echo "$ac_cv_working_alloca_h" >&6; }
15750 if test $ac_cv_working_alloca_h = yes; then
15751
15752 cat >>confdefs.h <<\_ACEOF
15753 #define HAVE_ALLOCA_H 1
15754 _ACEOF
15755
15756 fi
15757
15758 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
15759 $as_echo_n "checking for alloca... " >&6; }
15760 if test "${ac_cv_func_alloca_works+set}" = set; then
15761 $as_echo_n "(cached) " >&6
15762 else
15763 cat >conftest.$ac_ext <<_ACEOF
15764 /* confdefs.h. */
15765 _ACEOF
15766 cat confdefs.h >>conftest.$ac_ext
15767 cat >>conftest.$ac_ext <<_ACEOF
15768 /* end confdefs.h. */
15769 #ifdef __GNUC__
15770 # define alloca __builtin_alloca
15771 #else
15772 # ifdef _MSC_VER
15773 # include <malloc.h>
15774 # define alloca _alloca
15775 # else
15776 # ifdef HAVE_ALLOCA_H
15777 # include <alloca.h>
15778 # else
15779 # ifdef _AIX
15780 #pragma alloca
15781 # else
15782 # ifndef alloca /* predefined by HP cc +Olibcalls */
15783 char *alloca ();
15784 # endif
15785 # endif
15786 # endif
15787 # endif
15788 #endif
15789
15790 int
15791 main ()
15792 {
15793 char *p = (char *) alloca (1);
15794 if (p) return 0;
15795 ;
15796 return 0;
15797 }
15798 _ACEOF
15799 rm -f conftest.$ac_objext conftest$ac_exeext
15800 if { (ac_try="$ac_link"
15801 case "(($ac_try" in
15802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15803 *) ac_try_echo=$ac_try;;
15804 esac
15805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15806 $as_echo "$ac_try_echo") >&5
15807 (eval "$ac_link") 2>conftest.er1
15808 ac_status=$?
15809 grep -v '^ *+' conftest.er1 >conftest.err
15810 rm -f conftest.er1
15811 cat conftest.err >&5
15812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } && {
15814 test -z "$ac_c_werror_flag" ||
15815 test ! -s conftest.err
15816 } && test -s conftest$ac_exeext && {
15817 test "$cross_compiling" = yes ||
15818 $as_test_x conftest$ac_exeext
15819 }; then
15820 ac_cv_func_alloca_works=yes
15821 else
15822 $as_echo "$as_me: failed program was:" >&5
15823 sed 's/^/| /' conftest.$ac_ext >&5
15824
15825 ac_cv_func_alloca_works=no
15826 fi
15827
15828 rm -rf conftest.dSYM
15829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15830 conftest$ac_exeext conftest.$ac_ext
15831 fi
15832 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15833 $as_echo "$ac_cv_func_alloca_works" >&6; }
15834
15835 if test $ac_cv_func_alloca_works = yes; then
15836
15837 cat >>confdefs.h <<\_ACEOF
15838 #define HAVE_ALLOCA 1
15839 _ACEOF
15840
15841 else
15842 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15843 # that cause trouble. Some versions do not even contain alloca or
15844 # contain a buggy version. If you still want to use their alloca,
15845 # use ar to extract alloca.o from them instead of compiling alloca.c.
15846
15847 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15848
15849 cat >>confdefs.h <<\_ACEOF
15850 #define C_ALLOCA 1
15851 _ACEOF
15852
15853
15854 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15855 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15856 if test "${ac_cv_os_cray+set}" = set; then
15857 $as_echo_n "(cached) " >&6
15858 else
15859 cat >conftest.$ac_ext <<_ACEOF
15860 /* confdefs.h. */
15861 _ACEOF
15862 cat confdefs.h >>conftest.$ac_ext
15863 cat >>conftest.$ac_ext <<_ACEOF
15864 /* end confdefs.h. */
15865 #if defined CRAY && ! defined CRAY2
15866 webecray
15867 #else
15868 wenotbecray
15869 #endif
15870
15871 _ACEOF
15872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15873 $EGREP "webecray" >/dev/null 2>&1; then
15874 ac_cv_os_cray=yes
15875 else
15876 ac_cv_os_cray=no
15877 fi
15878 rm -f conftest*
15879
15880 fi
15881 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15882 $as_echo "$ac_cv_os_cray" >&6; }
15883 if test $ac_cv_os_cray = yes; then
15884 for ac_func in _getb67 GETB67 getb67; do
15885 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15886 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15887 $as_echo_n "checking for $ac_func... " >&6; }
15888 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15889 $as_echo_n "(cached) " >&6
15890 else
15891 cat >conftest.$ac_ext <<_ACEOF
15892 /* confdefs.h. */
15893 _ACEOF
15894 cat confdefs.h >>conftest.$ac_ext
15895 cat >>conftest.$ac_ext <<_ACEOF
15896 /* end confdefs.h. */
15897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15899 #define $ac_func innocuous_$ac_func
15900
15901 /* System header to define __stub macros and hopefully few prototypes,
15902 which can conflict with char $ac_func (); below.
15903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15904 <limits.h> exists even on freestanding compilers. */
15905
15906 #ifdef __STDC__
15907 # include <limits.h>
15908 #else
15909 # include <assert.h>
15910 #endif
15911
15912 #undef $ac_func
15913
15914 /* Override any GCC internal prototype to avoid an error.
15915 Use char because int might match the return type of a GCC
15916 builtin and then its argument prototype would still apply. */
15917 #ifdef __cplusplus
15918 extern "C"
15919 #endif
15920 char $ac_func ();
15921 /* The GNU C library defines this for functions which it implements
15922 to always fail with ENOSYS. Some functions are actually named
15923 something starting with __ and the normal name is an alias. */
15924 #if defined __stub_$ac_func || defined __stub___$ac_func
15925 choke me
15926 #endif
15927
15928 int
15929 main ()
15930 {
15931 return $ac_func ();
15932 ;
15933 return 0;
15934 }
15935 _ACEOF
15936 rm -f conftest.$ac_objext conftest$ac_exeext
15937 if { (ac_try="$ac_link"
15938 case "(($ac_try" in
15939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940 *) ac_try_echo=$ac_try;;
15941 esac
15942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15943 $as_echo "$ac_try_echo") >&5
15944 (eval "$ac_link") 2>conftest.er1
15945 ac_status=$?
15946 grep -v '^ *+' conftest.er1 >conftest.err
15947 rm -f conftest.er1
15948 cat conftest.err >&5
15949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } && {
15951 test -z "$ac_c_werror_flag" ||
15952 test ! -s conftest.err
15953 } && test -s conftest$ac_exeext && {
15954 test "$cross_compiling" = yes ||
15955 $as_test_x conftest$ac_exeext
15956 }; then
15957 eval "$as_ac_var=yes"
15958 else
15959 $as_echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15961
15962 eval "$as_ac_var=no"
15963 fi
15964
15965 rm -rf conftest.dSYM
15966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15967 conftest$ac_exeext conftest.$ac_ext
15968 fi
15969 ac_res=`eval 'as_val=${'$as_ac_var'}
15970 $as_echo "$as_val"'`
15971 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15972 $as_echo "$ac_res" >&6; }
15973 as_val=`eval 'as_val=${'$as_ac_var'}
15974 $as_echo "$as_val"'`
15975 if test "x$as_val" = x""yes; then
15976
15977 cat >>confdefs.h <<_ACEOF
15978 #define CRAY_STACKSEG_END $ac_func
15979 _ACEOF
15980
15981 break
15982 fi
15983
15984 done
15985 fi
15986
15987 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15988 $as_echo_n "checking stack direction for C alloca... " >&6; }
15989 if test "${ac_cv_c_stack_direction+set}" = set; then
15990 $as_echo_n "(cached) " >&6
15991 else
15992 if test "$cross_compiling" = yes; then
15993 ac_cv_c_stack_direction=0
15994 else
15995 cat >conftest.$ac_ext <<_ACEOF
15996 /* confdefs.h. */
15997 _ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h. */
16001 $ac_includes_default
16002 int
16003 find_stack_direction ()
16004 {
16005 static char *addr = 0;
16006 auto char dummy;
16007 if (addr == 0)
16008 {
16009 addr = &dummy;
16010 return find_stack_direction ();
16011 }
16012 else
16013 return (&dummy > addr) ? 1 : -1;
16014 }
16015
16016 int
16017 main ()
16018 {
16019 return find_stack_direction () < 0;
16020 }
16021 _ACEOF
16022 rm -f conftest$ac_exeext
16023 if { (ac_try="$ac_link"
16024 case "(($ac_try" in
16025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16026 *) ac_try_echo=$ac_try;;
16027 esac
16028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16029 $as_echo "$ac_try_echo") >&5
16030 (eval "$ac_link") 2>&5
16031 ac_status=$?
16032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16034 { (case "(($ac_try" in
16035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16036 *) ac_try_echo=$ac_try;;
16037 esac
16038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16039 $as_echo "$ac_try_echo") >&5
16040 (eval "$ac_try") 2>&5
16041 ac_status=$?
16042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); }; }; then
16044 ac_cv_c_stack_direction=1
16045 else
16046 $as_echo "$as_me: program exited with status $ac_status" >&5
16047 $as_echo "$as_me: failed program was:" >&5
16048 sed 's/^/| /' conftest.$ac_ext >&5
16049
16050 ( exit $ac_status )
16051 ac_cv_c_stack_direction=-1
16052 fi
16053 rm -rf conftest.dSYM
16054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16055 fi
16056
16057
16058 fi
16059 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16060 $as_echo "$ac_cv_c_stack_direction" >&6; }
16061
16062 cat >>confdefs.h <<_ACEOF
16063 #define STACK_DIRECTION $ac_cv_c_stack_direction
16064 _ACEOF
16065
16066
16067 fi
16068
16069
16070 if test x"$ac_cv_func_alloca_works" != xyes; then
16071 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16072 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16073 { (exit 1); exit 1; }; }
16074 fi
16075
16076 # fmod, logb, and frexp are found in -lm on most systems.
16077 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16078
16079 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16080 $as_echo_n "checking for sqrt in -lm... " >&6; }
16081 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16082 $as_echo_n "(cached) " >&6
16083 else
16084 ac_check_lib_save_LIBS=$LIBS
16085 LIBS="-lm $LIBS"
16086 cat >conftest.$ac_ext <<_ACEOF
16087 /* confdefs.h. */
16088 _ACEOF
16089 cat confdefs.h >>conftest.$ac_ext
16090 cat >>conftest.$ac_ext <<_ACEOF
16091 /* end confdefs.h. */
16092
16093 /* Override any GCC internal prototype to avoid an error.
16094 Use char because int might match the return type of a GCC
16095 builtin and then its argument prototype would still apply. */
16096 #ifdef __cplusplus
16097 extern "C"
16098 #endif
16099 char sqrt ();
16100 int
16101 main ()
16102 {
16103 return sqrt ();
16104 ;
16105 return 0;
16106 }
16107 _ACEOF
16108 rm -f conftest.$ac_objext conftest$ac_exeext
16109 if { (ac_try="$ac_link"
16110 case "(($ac_try" in
16111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16112 *) ac_try_echo=$ac_try;;
16113 esac
16114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16115 $as_echo "$ac_try_echo") >&5
16116 (eval "$ac_link") 2>conftest.er1
16117 ac_status=$?
16118 grep -v '^ *+' conftest.er1 >conftest.err
16119 rm -f conftest.er1
16120 cat conftest.err >&5
16121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); } && {
16123 test -z "$ac_c_werror_flag" ||
16124 test ! -s conftest.err
16125 } && test -s conftest$ac_exeext && {
16126 test "$cross_compiling" = yes ||
16127 $as_test_x conftest$ac_exeext
16128 }; then
16129 ac_cv_lib_m_sqrt=yes
16130 else
16131 $as_echo "$as_me: failed program was:" >&5
16132 sed 's/^/| /' conftest.$ac_ext >&5
16133
16134 ac_cv_lib_m_sqrt=no
16135 fi
16136
16137 rm -rf conftest.dSYM
16138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16139 conftest$ac_exeext conftest.$ac_ext
16140 LIBS=$ac_check_lib_save_LIBS
16141 fi
16142 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16143 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16144 if test "x$ac_cv_lib_m_sqrt" = x""yes; then
16145 cat >>confdefs.h <<_ACEOF
16146 #define HAVE_LIBM 1
16147 _ACEOF
16148
16149 LIBS="-lm $LIBS"
16150
16151 fi
16152
16153
16154 # Check for mail-locking functions in a "mail" library. Probably this should
16155 # have the same check as for liblockfile below.
16156
16157 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16158 $as_echo_n "checking for maillock in -lmail... " >&6; }
16159 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16160 $as_echo_n "(cached) " >&6
16161 else
16162 ac_check_lib_save_LIBS=$LIBS
16163 LIBS="-lmail $LIBS"
16164 cat >conftest.$ac_ext <<_ACEOF
16165 /* confdefs.h. */
16166 _ACEOF
16167 cat confdefs.h >>conftest.$ac_ext
16168 cat >>conftest.$ac_ext <<_ACEOF
16169 /* end confdefs.h. */
16170
16171 /* Override any GCC internal prototype to avoid an error.
16172 Use char because int might match the return type of a GCC
16173 builtin and then its argument prototype would still apply. */
16174 #ifdef __cplusplus
16175 extern "C"
16176 #endif
16177 char maillock ();
16178 int
16179 main ()
16180 {
16181 return maillock ();
16182 ;
16183 return 0;
16184 }
16185 _ACEOF
16186 rm -f conftest.$ac_objext conftest$ac_exeext
16187 if { (ac_try="$ac_link"
16188 case "(($ac_try" in
16189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16190 *) ac_try_echo=$ac_try;;
16191 esac
16192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16193 $as_echo "$ac_try_echo") >&5
16194 (eval "$ac_link") 2>conftest.er1
16195 ac_status=$?
16196 grep -v '^ *+' conftest.er1 >conftest.err
16197 rm -f conftest.er1
16198 cat conftest.err >&5
16199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); } && {
16201 test -z "$ac_c_werror_flag" ||
16202 test ! -s conftest.err
16203 } && test -s conftest$ac_exeext && {
16204 test "$cross_compiling" = yes ||
16205 $as_test_x conftest$ac_exeext
16206 }; then
16207 ac_cv_lib_mail_maillock=yes
16208 else
16209 $as_echo "$as_me: failed program was:" >&5
16210 sed 's/^/| /' conftest.$ac_ext >&5
16211
16212 ac_cv_lib_mail_maillock=no
16213 fi
16214
16215 rm -rf conftest.dSYM
16216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16217 conftest$ac_exeext conftest.$ac_ext
16218 LIBS=$ac_check_lib_save_LIBS
16219 fi
16220 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16221 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16222 if test "x$ac_cv_lib_mail_maillock" = x""yes; then
16223 cat >>confdefs.h <<_ACEOF
16224 #define HAVE_LIBMAIL 1
16225 _ACEOF
16226
16227 LIBS="-lmail $LIBS"
16228
16229 fi
16230
16231
16232 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16233 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16234 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16235 $as_echo_n "(cached) " >&6
16236 else
16237 ac_check_lib_save_LIBS=$LIBS
16238 LIBS="-llockfile $LIBS"
16239 cat >conftest.$ac_ext <<_ACEOF
16240 /* confdefs.h. */
16241 _ACEOF
16242 cat confdefs.h >>conftest.$ac_ext
16243 cat >>conftest.$ac_ext <<_ACEOF
16244 /* end confdefs.h. */
16245
16246 /* Override any GCC internal prototype to avoid an error.
16247 Use char because int might match the return type of a GCC
16248 builtin and then its argument prototype would still apply. */
16249 #ifdef __cplusplus
16250 extern "C"
16251 #endif
16252 char maillock ();
16253 int
16254 main ()
16255 {
16256 return maillock ();
16257 ;
16258 return 0;
16259 }
16260 _ACEOF
16261 rm -f conftest.$ac_objext conftest$ac_exeext
16262 if { (ac_try="$ac_link"
16263 case "(($ac_try" in
16264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16265 *) ac_try_echo=$ac_try;;
16266 esac
16267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16268 $as_echo "$ac_try_echo") >&5
16269 (eval "$ac_link") 2>conftest.er1
16270 ac_status=$?
16271 grep -v '^ *+' conftest.er1 >conftest.err
16272 rm -f conftest.er1
16273 cat conftest.err >&5
16274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); } && {
16276 test -z "$ac_c_werror_flag" ||
16277 test ! -s conftest.err
16278 } && test -s conftest$ac_exeext && {
16279 test "$cross_compiling" = yes ||
16280 $as_test_x conftest$ac_exeext
16281 }; then
16282 ac_cv_lib_lockfile_maillock=yes
16283 else
16284 $as_echo "$as_me: failed program was:" >&5
16285 sed 's/^/| /' conftest.$ac_ext >&5
16286
16287 ac_cv_lib_lockfile_maillock=no
16288 fi
16289
16290 rm -rf conftest.dSYM
16291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16292 conftest$ac_exeext conftest.$ac_ext
16293 LIBS=$ac_check_lib_save_LIBS
16294 fi
16295 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16296 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16297 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then
16298 cat >>confdefs.h <<_ACEOF
16299 #define HAVE_LIBLOCKFILE 1
16300 _ACEOF
16301
16302 LIBS="-llockfile $LIBS"
16303
16304 fi
16305
16306 # If we have the shared liblockfile, assume we must use it for mail
16307 # locking (e.g. Debian). If we couldn't link against liblockfile
16308 # (no liblockfile.a installed), ensure that we don't need to.
16309 if test "$ac_cv_lib_lockfile_maillock" = no; then
16310 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16311 set dummy liblockfile.so; ac_word=$2
16312 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16313 $as_echo_n "checking for $ac_word... " >&6; }
16314 if test "${ac_cv_prog_liblockfile+set}" = set; then
16315 $as_echo_n "(cached) " >&6
16316 else
16317 if test -n "$liblockfile"; then
16318 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16319 else
16320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16321 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16322 for as_dir in $as_dummy
16323 do
16324 IFS=$as_save_IFS
16325 test -z "$as_dir" && as_dir=.
16326 for ac_exec_ext in '' $ac_executable_extensions; do
16327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16328 ac_cv_prog_liblockfile="yes"
16329 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16330 break 2
16331 fi
16332 done
16333 done
16334 IFS=$as_save_IFS
16335
16336 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16337 fi
16338 fi
16339 liblockfile=$ac_cv_prog_liblockfile
16340 if test -n "$liblockfile"; then
16341 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
16342 $as_echo "$liblockfile" >&6; }
16343 else
16344 { $as_echo "$as_me:$LINENO: result: no" >&5
16345 $as_echo "no" >&6; }
16346 fi
16347
16348
16349 if test $ac_cv_prog_liblockfile = yes; then
16350 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16351 This probably means that movemail could lose mail.
16352 There may be a \`development' package to install containing liblockfile." >&5
16353 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
16354 This probably means that movemail could lose mail.
16355 There may be a \`development' package to install containing liblockfile." >&2;}
16356 { (exit 1); exit 1; }; }
16357 else :
16358 fi
16359 fi
16360
16361 for ac_func in touchlock
16362 do
16363 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16364 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16365 $as_echo_n "checking for $ac_func... " >&6; }
16366 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16367 $as_echo_n "(cached) " >&6
16368 else
16369 cat >conftest.$ac_ext <<_ACEOF
16370 /* confdefs.h. */
16371 _ACEOF
16372 cat confdefs.h >>conftest.$ac_ext
16373 cat >>conftest.$ac_ext <<_ACEOF
16374 /* end confdefs.h. */
16375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16377 #define $ac_func innocuous_$ac_func
16378
16379 /* System header to define __stub macros and hopefully few prototypes,
16380 which can conflict with char $ac_func (); below.
16381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16382 <limits.h> exists even on freestanding compilers. */
16383
16384 #ifdef __STDC__
16385 # include <limits.h>
16386 #else
16387 # include <assert.h>
16388 #endif
16389
16390 #undef $ac_func
16391
16392 /* Override any GCC internal prototype to avoid an error.
16393 Use char because int might match the return type of a GCC
16394 builtin and then its argument prototype would still apply. */
16395 #ifdef __cplusplus
16396 extern "C"
16397 #endif
16398 char $ac_func ();
16399 /* The GNU C library defines this for functions which it implements
16400 to always fail with ENOSYS. Some functions are actually named
16401 something starting with __ and the normal name is an alias. */
16402 #if defined __stub_$ac_func || defined __stub___$ac_func
16403 choke me
16404 #endif
16405
16406 int
16407 main ()
16408 {
16409 return $ac_func ();
16410 ;
16411 return 0;
16412 }
16413 _ACEOF
16414 rm -f conftest.$ac_objext conftest$ac_exeext
16415 if { (ac_try="$ac_link"
16416 case "(($ac_try" in
16417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418 *) ac_try_echo=$ac_try;;
16419 esac
16420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16421 $as_echo "$ac_try_echo") >&5
16422 (eval "$ac_link") 2>conftest.er1
16423 ac_status=$?
16424 grep -v '^ *+' conftest.er1 >conftest.err
16425 rm -f conftest.er1
16426 cat conftest.err >&5
16427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } && {
16429 test -z "$ac_c_werror_flag" ||
16430 test ! -s conftest.err
16431 } && test -s conftest$ac_exeext && {
16432 test "$cross_compiling" = yes ||
16433 $as_test_x conftest$ac_exeext
16434 }; then
16435 eval "$as_ac_var=yes"
16436 else
16437 $as_echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16439
16440 eval "$as_ac_var=no"
16441 fi
16442
16443 rm -rf conftest.dSYM
16444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16445 conftest$ac_exeext conftest.$ac_ext
16446 fi
16447 ac_res=`eval 'as_val=${'$as_ac_var'}
16448 $as_echo "$as_val"'`
16449 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16450 $as_echo "$ac_res" >&6; }
16451 as_val=`eval 'as_val=${'$as_ac_var'}
16452 $as_echo "$as_val"'`
16453 if test "x$as_val" = x""yes; then
16454 cat >>confdefs.h <<_ACEOF
16455 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16456 _ACEOF
16457
16458 fi
16459 done
16460
16461
16462 for ac_header in maillock.h
16463 do
16464 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16466 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16467 $as_echo_n "checking for $ac_header... " >&6; }
16468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16469 $as_echo_n "(cached) " >&6
16470 fi
16471 ac_res=`eval 'as_val=${'$as_ac_Header'}
16472 $as_echo "$as_val"'`
16473 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16474 $as_echo "$ac_res" >&6; }
16475 else
16476 # Is the header compilable?
16477 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16478 $as_echo_n "checking $ac_header usability... " >&6; }
16479 cat >conftest.$ac_ext <<_ACEOF
16480 /* confdefs.h. */
16481 _ACEOF
16482 cat confdefs.h >>conftest.$ac_ext
16483 cat >>conftest.$ac_ext <<_ACEOF
16484 /* end confdefs.h. */
16485 $ac_includes_default
16486 #include <$ac_header>
16487 _ACEOF
16488 rm -f conftest.$ac_objext
16489 if { (ac_try="$ac_compile"
16490 case "(($ac_try" in
16491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16492 *) ac_try_echo=$ac_try;;
16493 esac
16494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16495 $as_echo "$ac_try_echo") >&5
16496 (eval "$ac_compile") 2>conftest.er1
16497 ac_status=$?
16498 grep -v '^ *+' conftest.er1 >conftest.err
16499 rm -f conftest.er1
16500 cat conftest.err >&5
16501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); } && {
16503 test -z "$ac_c_werror_flag" ||
16504 test ! -s conftest.err
16505 } && test -s conftest.$ac_objext; then
16506 ac_header_compiler=yes
16507 else
16508 $as_echo "$as_me: failed program was:" >&5
16509 sed 's/^/| /' conftest.$ac_ext >&5
16510
16511 ac_header_compiler=no
16512 fi
16513
16514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16515 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16516 $as_echo "$ac_header_compiler" >&6; }
16517
16518 # Is the header present?
16519 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16520 $as_echo_n "checking $ac_header presence... " >&6; }
16521 cat >conftest.$ac_ext <<_ACEOF
16522 /* confdefs.h. */
16523 _ACEOF
16524 cat confdefs.h >>conftest.$ac_ext
16525 cat >>conftest.$ac_ext <<_ACEOF
16526 /* end confdefs.h. */
16527 #include <$ac_header>
16528 _ACEOF
16529 if { (ac_try="$ac_cpp conftest.$ac_ext"
16530 case "(($ac_try" in
16531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16532 *) ac_try_echo=$ac_try;;
16533 esac
16534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16535 $as_echo "$ac_try_echo") >&5
16536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16537 ac_status=$?
16538 grep -v '^ *+' conftest.er1 >conftest.err
16539 rm -f conftest.er1
16540 cat conftest.err >&5
16541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } >/dev/null && {
16543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16544 test ! -s conftest.err
16545 }; then
16546 ac_header_preproc=yes
16547 else
16548 $as_echo "$as_me: failed program was:" >&5
16549 sed 's/^/| /' conftest.$ac_ext >&5
16550
16551 ac_header_preproc=no
16552 fi
16553
16554 rm -f conftest.err conftest.$ac_ext
16555 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16556 $as_echo "$ac_header_preproc" >&6; }
16557
16558 # So? What about this header?
16559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16560 yes:no: )
16561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16562 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16564 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16565 ac_header_preproc=yes
16566 ;;
16567 no:yes:* )
16568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16569 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16571 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16573 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16575 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16577 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16579 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16580
16581 ;;
16582 esac
16583 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16584 $as_echo_n "checking for $ac_header... " >&6; }
16585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16586 $as_echo_n "(cached) " >&6
16587 else
16588 eval "$as_ac_Header=\$ac_header_preproc"
16589 fi
16590 ac_res=`eval 'as_val=${'$as_ac_Header'}
16591 $as_echo "$as_val"'`
16592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16593 $as_echo "$ac_res" >&6; }
16594
16595 fi
16596 as_val=`eval 'as_val=${'$as_ac_Header'}
16597 $as_echo "$as_val"'`
16598 if test "x$as_val" = x""yes; then
16599 cat >>confdefs.h <<_ACEOF
16600 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16601 _ACEOF
16602
16603 fi
16604
16605 done
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679 for ac_func in gethostname getdomainname dup2 \
16680 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16681 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16682 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16683 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16684 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16685 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16686 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16687 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16688 cfmakeraw cfsetspeed
16689 do
16690 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16691 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16692 $as_echo_n "checking for $ac_func... " >&6; }
16693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16694 $as_echo_n "(cached) " >&6
16695 else
16696 cat >conftest.$ac_ext <<_ACEOF
16697 /* confdefs.h. */
16698 _ACEOF
16699 cat confdefs.h >>conftest.$ac_ext
16700 cat >>conftest.$ac_ext <<_ACEOF
16701 /* end confdefs.h. */
16702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16704 #define $ac_func innocuous_$ac_func
16705
16706 /* System header to define __stub macros and hopefully few prototypes,
16707 which can conflict with char $ac_func (); below.
16708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16709 <limits.h> exists even on freestanding compilers. */
16710
16711 #ifdef __STDC__
16712 # include <limits.h>
16713 #else
16714 # include <assert.h>
16715 #endif
16716
16717 #undef $ac_func
16718
16719 /* Override any GCC internal prototype to avoid an error.
16720 Use char because int might match the return type of a GCC
16721 builtin and then its argument prototype would still apply. */
16722 #ifdef __cplusplus
16723 extern "C"
16724 #endif
16725 char $ac_func ();
16726 /* The GNU C library defines this for functions which it implements
16727 to always fail with ENOSYS. Some functions are actually named
16728 something starting with __ and the normal name is an alias. */
16729 #if defined __stub_$ac_func || defined __stub___$ac_func
16730 choke me
16731 #endif
16732
16733 int
16734 main ()
16735 {
16736 return $ac_func ();
16737 ;
16738 return 0;
16739 }
16740 _ACEOF
16741 rm -f conftest.$ac_objext conftest$ac_exeext
16742 if { (ac_try="$ac_link"
16743 case "(($ac_try" in
16744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745 *) ac_try_echo=$ac_try;;
16746 esac
16747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16748 $as_echo "$ac_try_echo") >&5
16749 (eval "$ac_link") 2>conftest.er1
16750 ac_status=$?
16751 grep -v '^ *+' conftest.er1 >conftest.err
16752 rm -f conftest.er1
16753 cat conftest.err >&5
16754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); } && {
16756 test -z "$ac_c_werror_flag" ||
16757 test ! -s conftest.err
16758 } && test -s conftest$ac_exeext && {
16759 test "$cross_compiling" = yes ||
16760 $as_test_x conftest$ac_exeext
16761 }; then
16762 eval "$as_ac_var=yes"
16763 else
16764 $as_echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.$ac_ext >&5
16766
16767 eval "$as_ac_var=no"
16768 fi
16769
16770 rm -rf conftest.dSYM
16771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16772 conftest$ac_exeext conftest.$ac_ext
16773 fi
16774 ac_res=`eval 'as_val=${'$as_ac_var'}
16775 $as_echo "$as_val"'`
16776 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16777 $as_echo "$ac_res" >&6; }
16778 as_val=`eval 'as_val=${'$as_ac_var'}
16779 $as_echo "$as_val"'`
16780 if test "x$as_val" = x""yes; then
16781 cat >>confdefs.h <<_ACEOF
16782 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16783 _ACEOF
16784
16785 fi
16786 done
16787
16788
16789
16790 for ac_header in sys/un.h
16791 do
16792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16794 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16795 $as_echo_n "checking for $ac_header... " >&6; }
16796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16797 $as_echo_n "(cached) " >&6
16798 fi
16799 ac_res=`eval 'as_val=${'$as_ac_Header'}
16800 $as_echo "$as_val"'`
16801 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16802 $as_echo "$ac_res" >&6; }
16803 else
16804 # Is the header compilable?
16805 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16806 $as_echo_n "checking $ac_header usability... " >&6; }
16807 cat >conftest.$ac_ext <<_ACEOF
16808 /* confdefs.h. */
16809 _ACEOF
16810 cat confdefs.h >>conftest.$ac_ext
16811 cat >>conftest.$ac_ext <<_ACEOF
16812 /* end confdefs.h. */
16813 $ac_includes_default
16814 #include <$ac_header>
16815 _ACEOF
16816 rm -f conftest.$ac_objext
16817 if { (ac_try="$ac_compile"
16818 case "(($ac_try" in
16819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820 *) ac_try_echo=$ac_try;;
16821 esac
16822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16823 $as_echo "$ac_try_echo") >&5
16824 (eval "$ac_compile") 2>conftest.er1
16825 ac_status=$?
16826 grep -v '^ *+' conftest.er1 >conftest.err
16827 rm -f conftest.er1
16828 cat conftest.err >&5
16829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); } && {
16831 test -z "$ac_c_werror_flag" ||
16832 test ! -s conftest.err
16833 } && test -s conftest.$ac_objext; then
16834 ac_header_compiler=yes
16835 else
16836 $as_echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16838
16839 ac_header_compiler=no
16840 fi
16841
16842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16843 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16844 $as_echo "$ac_header_compiler" >&6; }
16845
16846 # Is the header present?
16847 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16848 $as_echo_n "checking $ac_header presence... " >&6; }
16849 cat >conftest.$ac_ext <<_ACEOF
16850 /* confdefs.h. */
16851 _ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h. */
16855 #include <$ac_header>
16856 _ACEOF
16857 if { (ac_try="$ac_cpp conftest.$ac_ext"
16858 case "(($ac_try" in
16859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860 *) ac_try_echo=$ac_try;;
16861 esac
16862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16863 $as_echo "$ac_try_echo") >&5
16864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16865 ac_status=$?
16866 grep -v '^ *+' conftest.er1 >conftest.err
16867 rm -f conftest.er1
16868 cat conftest.err >&5
16869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } >/dev/null && {
16871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16872 test ! -s conftest.err
16873 }; then
16874 ac_header_preproc=yes
16875 else
16876 $as_echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16878
16879 ac_header_preproc=no
16880 fi
16881
16882 rm -f conftest.err conftest.$ac_ext
16883 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16884 $as_echo "$ac_header_preproc" >&6; }
16885
16886 # So? What about this header?
16887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16888 yes:no: )
16889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16890 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16892 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16893 ac_header_preproc=yes
16894 ;;
16895 no:yes:* )
16896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16897 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16899 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16901 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16903 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16905 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16907 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16908
16909 ;;
16910 esac
16911 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16912 $as_echo_n "checking for $ac_header... " >&6; }
16913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16914 $as_echo_n "(cached) " >&6
16915 else
16916 eval "$as_ac_Header=\$ac_header_preproc"
16917 fi
16918 ac_res=`eval 'as_val=${'$as_ac_Header'}
16919 $as_echo "$as_val"'`
16920 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16921 $as_echo "$ac_res" >&6; }
16922
16923 fi
16924 as_val=`eval 'as_val=${'$as_ac_Header'}
16925 $as_echo "$as_val"'`
16926 if test "x$as_val" = x""yes; then
16927 cat >>confdefs.h <<_ACEOF
16928 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16929 _ACEOF
16930
16931 fi
16932
16933 done
16934
16935
16936
16937
16938
16939
16940 for ac_header in $ac_header_list
16941 do
16942 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16944 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16945 $as_echo_n "checking for $ac_header... " >&6; }
16946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16947 $as_echo_n "(cached) " >&6
16948 fi
16949 ac_res=`eval 'as_val=${'$as_ac_Header'}
16950 $as_echo "$as_val"'`
16951 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16952 $as_echo "$ac_res" >&6; }
16953 else
16954 # Is the header compilable?
16955 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16956 $as_echo_n "checking $ac_header usability... " >&6; }
16957 cat >conftest.$ac_ext <<_ACEOF
16958 /* confdefs.h. */
16959 _ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h. */
16963 $ac_includes_default
16964 #include <$ac_header>
16965 _ACEOF
16966 rm -f conftest.$ac_objext
16967 if { (ac_try="$ac_compile"
16968 case "(($ac_try" in
16969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970 *) ac_try_echo=$ac_try;;
16971 esac
16972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16973 $as_echo "$ac_try_echo") >&5
16974 (eval "$ac_compile") 2>conftest.er1
16975 ac_status=$?
16976 grep -v '^ *+' conftest.er1 >conftest.err
16977 rm -f conftest.er1
16978 cat conftest.err >&5
16979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } && {
16981 test -z "$ac_c_werror_flag" ||
16982 test ! -s conftest.err
16983 } && test -s conftest.$ac_objext; then
16984 ac_header_compiler=yes
16985 else
16986 $as_echo "$as_me: failed program was:" >&5
16987 sed 's/^/| /' conftest.$ac_ext >&5
16988
16989 ac_header_compiler=no
16990 fi
16991
16992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16993 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16994 $as_echo "$ac_header_compiler" >&6; }
16995
16996 # Is the header present?
16997 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16998 $as_echo_n "checking $ac_header presence... " >&6; }
16999 cat >conftest.$ac_ext <<_ACEOF
17000 /* confdefs.h. */
17001 _ACEOF
17002 cat confdefs.h >>conftest.$ac_ext
17003 cat >>conftest.$ac_ext <<_ACEOF
17004 /* end confdefs.h. */
17005 #include <$ac_header>
17006 _ACEOF
17007 if { (ac_try="$ac_cpp conftest.$ac_ext"
17008 case "(($ac_try" in
17009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010 *) ac_try_echo=$ac_try;;
17011 esac
17012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17013 $as_echo "$ac_try_echo") >&5
17014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17015 ac_status=$?
17016 grep -v '^ *+' conftest.er1 >conftest.err
17017 rm -f conftest.er1
17018 cat conftest.err >&5
17019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); } >/dev/null && {
17021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17022 test ! -s conftest.err
17023 }; then
17024 ac_header_preproc=yes
17025 else
17026 $as_echo "$as_me: failed program was:" >&5
17027 sed 's/^/| /' conftest.$ac_ext >&5
17028
17029 ac_header_preproc=no
17030 fi
17031
17032 rm -f conftest.err conftest.$ac_ext
17033 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17034 $as_echo "$ac_header_preproc" >&6; }
17035
17036 # So? What about this header?
17037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17038 yes:no: )
17039 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17040 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17042 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17043 ac_header_preproc=yes
17044 ;;
17045 no:yes:* )
17046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17047 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17048 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17049 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17051 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17053 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17055 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17057 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17058
17059 ;;
17060 esac
17061 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17062 $as_echo_n "checking for $ac_header... " >&6; }
17063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17064 $as_echo_n "(cached) " >&6
17065 else
17066 eval "$as_ac_Header=\$ac_header_preproc"
17067 fi
17068 ac_res=`eval 'as_val=${'$as_ac_Header'}
17069 $as_echo "$as_val"'`
17070 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17071 $as_echo "$ac_res" >&6; }
17072
17073 fi
17074 as_val=`eval 'as_val=${'$as_ac_Header'}
17075 $as_echo "$as_val"'`
17076 if test "x$as_val" = x""yes; then
17077 cat >>confdefs.h <<_ACEOF
17078 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17079 _ACEOF
17080
17081 fi
17082
17083 done
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093 for ac_func in $ac_func_list
17094 do
17095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17096 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17097 $as_echo_n "checking for $ac_func... " >&6; }
17098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17099 $as_echo_n "(cached) " >&6
17100 else
17101 cat >conftest.$ac_ext <<_ACEOF
17102 /* confdefs.h. */
17103 _ACEOF
17104 cat confdefs.h >>conftest.$ac_ext
17105 cat >>conftest.$ac_ext <<_ACEOF
17106 /* end confdefs.h. */
17107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17109 #define $ac_func innocuous_$ac_func
17110
17111 /* System header to define __stub macros and hopefully few prototypes,
17112 which can conflict with char $ac_func (); below.
17113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17114 <limits.h> exists even on freestanding compilers. */
17115
17116 #ifdef __STDC__
17117 # include <limits.h>
17118 #else
17119 # include <assert.h>
17120 #endif
17121
17122 #undef $ac_func
17123
17124 /* Override any GCC internal prototype to avoid an error.
17125 Use char because int might match the return type of a GCC
17126 builtin and then its argument prototype would still apply. */
17127 #ifdef __cplusplus
17128 extern "C"
17129 #endif
17130 char $ac_func ();
17131 /* The GNU C library defines this for functions which it implements
17132 to always fail with ENOSYS. Some functions are actually named
17133 something starting with __ and the normal name is an alias. */
17134 #if defined __stub_$ac_func || defined __stub___$ac_func
17135 choke me
17136 #endif
17137
17138 int
17139 main ()
17140 {
17141 return $ac_func ();
17142 ;
17143 return 0;
17144 }
17145 _ACEOF
17146 rm -f conftest.$ac_objext conftest$ac_exeext
17147 if { (ac_try="$ac_link"
17148 case "(($ac_try" in
17149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150 *) ac_try_echo=$ac_try;;
17151 esac
17152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17153 $as_echo "$ac_try_echo") >&5
17154 (eval "$ac_link") 2>conftest.er1
17155 ac_status=$?
17156 grep -v '^ *+' conftest.er1 >conftest.err
17157 rm -f conftest.er1
17158 cat conftest.err >&5
17159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); } && {
17161 test -z "$ac_c_werror_flag" ||
17162 test ! -s conftest.err
17163 } && test -s conftest$ac_exeext && {
17164 test "$cross_compiling" = yes ||
17165 $as_test_x conftest$ac_exeext
17166 }; then
17167 eval "$as_ac_var=yes"
17168 else
17169 $as_echo "$as_me: failed program was:" >&5
17170 sed 's/^/| /' conftest.$ac_ext >&5
17171
17172 eval "$as_ac_var=no"
17173 fi
17174
17175 rm -rf conftest.dSYM
17176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17177 conftest$ac_exeext conftest.$ac_ext
17178 fi
17179 ac_res=`eval 'as_val=${'$as_ac_var'}
17180 $as_echo "$as_val"'`
17181 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17182 $as_echo "$ac_res" >&6; }
17183 as_val=`eval 'as_val=${'$as_ac_var'}
17184 $as_echo "$as_val"'`
17185 if test "x$as_val" = x""yes; then
17186 cat >>confdefs.h <<_ACEOF
17187 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17188 _ACEOF
17189
17190 fi
17191 done
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17210 $as_echo_n "checking for working mktime... " >&6; }
17211 if test "${ac_cv_func_working_mktime+set}" = set; then
17212 $as_echo_n "(cached) " >&6
17213 else
17214 if test "$cross_compiling" = yes; then
17215 ac_cv_func_working_mktime=no
17216 else
17217 cat >conftest.$ac_ext <<_ACEOF
17218 /* confdefs.h. */
17219 _ACEOF
17220 cat confdefs.h >>conftest.$ac_ext
17221 cat >>conftest.$ac_ext <<_ACEOF
17222 /* end confdefs.h. */
17223 /* Test program from Paul Eggert and Tony Leneis. */
17224 #ifdef TIME_WITH_SYS_TIME
17225 # include <sys/time.h>
17226 # include <time.h>
17227 #else
17228 # ifdef HAVE_SYS_TIME_H
17229 # include <sys/time.h>
17230 # else
17231 # include <time.h>
17232 # endif
17233 #endif
17234
17235 #include <limits.h>
17236 #include <stdlib.h>
17237
17238 #ifdef HAVE_UNISTD_H
17239 # include <unistd.h>
17240 #endif
17241
17242 #ifndef HAVE_ALARM
17243 # define alarm(X) /* empty */
17244 #endif
17245
17246 /* Work around redefinition to rpl_putenv by other config tests. */
17247 #undef putenv
17248
17249 static time_t time_t_max;
17250 static time_t time_t_min;
17251
17252 /* Values we'll use to set the TZ environment variable. */
17253 static char *tz_strings[] = {
17254 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17255 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17256 };
17257 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17258
17259 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17260 Based on a problem report from Andreas Jaeger. */
17261 static int
17262 spring_forward_gap ()
17263 {
17264 /* glibc (up to about 1998-10-07) failed this test. */
17265 struct tm tm;
17266
17267 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17268 instead of "TZ=America/Vancouver" in order to detect the bug even
17269 on systems that don't support the Olson extension, or don't have the
17270 full zoneinfo tables installed. */
17271 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17272
17273 tm.tm_year = 98;
17274 tm.tm_mon = 3;
17275 tm.tm_mday = 5;
17276 tm.tm_hour = 2;
17277 tm.tm_min = 0;
17278 tm.tm_sec = 0;
17279 tm.tm_isdst = -1;
17280 return mktime (&tm) != (time_t) -1;
17281 }
17282
17283 static int
17284 mktime_test1 (now)
17285 time_t now;
17286 {
17287 struct tm *lt;
17288 return ! (lt = localtime (&now)) || mktime (lt) == now;
17289 }
17290
17291 static int
17292 mktime_test (now)
17293 time_t now;
17294 {
17295 return (mktime_test1 (now)
17296 && mktime_test1 ((time_t) (time_t_max - now))
17297 && mktime_test1 ((time_t) (time_t_min + now)));
17298 }
17299
17300 static int
17301 irix_6_4_bug ()
17302 {
17303 /* Based on code from Ariel Faigon. */
17304 struct tm tm;
17305 tm.tm_year = 96;
17306 tm.tm_mon = 3;
17307 tm.tm_mday = 0;
17308 tm.tm_hour = 0;
17309 tm.tm_min = 0;
17310 tm.tm_sec = 0;
17311 tm.tm_isdst = -1;
17312 mktime (&tm);
17313 return tm.tm_mon == 2 && tm.tm_mday == 31;
17314 }
17315
17316 static int
17317 bigtime_test (j)
17318 int j;
17319 {
17320 struct tm tm;
17321 time_t now;
17322 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17323 now = mktime (&tm);
17324 if (now != (time_t) -1)
17325 {
17326 struct tm *lt = localtime (&now);
17327 if (! (lt
17328 && lt->tm_year == tm.tm_year
17329 && lt->tm_mon == tm.tm_mon
17330 && lt->tm_mday == tm.tm_mday
17331 && lt->tm_hour == tm.tm_hour
17332 && lt->tm_min == tm.tm_min
17333 && lt->tm_sec == tm.tm_sec
17334 && lt->tm_yday == tm.tm_yday
17335 && lt->tm_wday == tm.tm_wday
17336 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17337 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17338 return 0;
17339 }
17340 return 1;
17341 }
17342
17343 static int
17344 year_2050_test ()
17345 {
17346 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17347 ignoring leap seconds. */
17348 unsigned long int answer = 2527315200UL;
17349
17350 struct tm tm;
17351 time_t t;
17352 tm.tm_year = 2050 - 1900;
17353 tm.tm_mon = 2 - 1;
17354 tm.tm_mday = 1;
17355 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17356 tm.tm_isdst = -1;
17357
17358 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17359 instead of "TZ=America/Vancouver" in order to detect the bug even
17360 on systems that don't support the Olson extension, or don't have the
17361 full zoneinfo tables installed. */
17362 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17363
17364 t = mktime (&tm);
17365
17366 /* Check that the result is either a failure, or close enough
17367 to the correct answer that we can assume the discrepancy is
17368 due to leap seconds. */
17369 return (t == (time_t) -1
17370 || (0 < t && answer - 120 <= t && t <= answer + 120));
17371 }
17372
17373 int
17374 main ()
17375 {
17376 time_t t, delta;
17377 int i, j;
17378
17379 /* This test makes some buggy mktime implementations loop.
17380 Give up after 60 seconds; a mktime slower than that
17381 isn't worth using anyway. */
17382 alarm (60);
17383
17384 for (;;)
17385 {
17386 t = (time_t_max << 1) + 1;
17387 if (t <= time_t_max)
17388 break;
17389 time_t_max = t;
17390 }
17391 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17392
17393 delta = time_t_max / 997; /* a suitable prime number */
17394 for (i = 0; i < N_STRINGS; i++)
17395 {
17396 if (tz_strings[i])
17397 putenv (tz_strings[i]);
17398
17399 for (t = 0; t <= time_t_max - delta; t += delta)
17400 if (! mktime_test (t))
17401 return 1;
17402 if (! (mktime_test ((time_t) 1)
17403 && mktime_test ((time_t) (60 * 60))
17404 && mktime_test ((time_t) (60 * 60 * 24))))
17405 return 1;
17406
17407 for (j = 1; ; j <<= 1)
17408 if (! bigtime_test (j))
17409 return 1;
17410 else if (INT_MAX / 2 < j)
17411 break;
17412 if (! bigtime_test (INT_MAX))
17413 return 1;
17414 }
17415 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17416 }
17417 _ACEOF
17418 rm -f conftest$ac_exeext
17419 if { (ac_try="$ac_link"
17420 case "(($ac_try" in
17421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422 *) ac_try_echo=$ac_try;;
17423 esac
17424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17425 $as_echo "$ac_try_echo") >&5
17426 (eval "$ac_link") 2>&5
17427 ac_status=$?
17428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17430 { (case "(($ac_try" in
17431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17432 *) ac_try_echo=$ac_try;;
17433 esac
17434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17435 $as_echo "$ac_try_echo") >&5
17436 (eval "$ac_try") 2>&5
17437 ac_status=$?
17438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17439 (exit $ac_status); }; }; then
17440 ac_cv_func_working_mktime=yes
17441 else
17442 $as_echo "$as_me: program exited with status $ac_status" >&5
17443 $as_echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17445
17446 ( exit $ac_status )
17447 ac_cv_func_working_mktime=no
17448 fi
17449 rm -rf conftest.dSYM
17450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17451 fi
17452
17453
17454 fi
17455 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17456 $as_echo "$ac_cv_func_working_mktime" >&6; }
17457 if test $ac_cv_func_working_mktime = no; then
17458 case " $LIBOBJS " in
17459 *" mktime.$ac_objext "* ) ;;
17460 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17461 ;;
17462 esac
17463
17464 fi
17465
17466 if test "$ac_cv_func_working_mktime" = no; then
17467
17468 cat >>confdefs.h <<\_ACEOF
17469 #define BROKEN_MKTIME 1
17470 _ACEOF
17471
17472 fi
17473
17474 ac_have_func=no # yes means we've found a way to get the load average.
17475
17476 # Make sure getloadavg.c is where it belongs, at configure-time.
17477 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17478 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17479 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17480 { (exit 1); exit 1; }; }
17481
17482 ac_save_LIBS=$LIBS
17483
17484 # Check for getloadavg, but be sure not to touch the cache variable.
17485 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
17486 $as_echo_n "checking for getloadavg... " >&6; }
17487 if test "${ac_cv_func_getloadavg+set}" = set; then
17488 $as_echo_n "(cached) " >&6
17489 else
17490 cat >conftest.$ac_ext <<_ACEOF
17491 /* confdefs.h. */
17492 _ACEOF
17493 cat confdefs.h >>conftest.$ac_ext
17494 cat >>conftest.$ac_ext <<_ACEOF
17495 /* end confdefs.h. */
17496 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17498 #define getloadavg innocuous_getloadavg
17499
17500 /* System header to define __stub macros and hopefully few prototypes,
17501 which can conflict with char getloadavg (); below.
17502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17503 <limits.h> exists even on freestanding compilers. */
17504
17505 #ifdef __STDC__
17506 # include <limits.h>
17507 #else
17508 # include <assert.h>
17509 #endif
17510
17511 #undef getloadavg
17512
17513 /* Override any GCC internal prototype to avoid an error.
17514 Use char because int might match the return type of a GCC
17515 builtin and then its argument prototype would still apply. */
17516 #ifdef __cplusplus
17517 extern "C"
17518 #endif
17519 char getloadavg ();
17520 /* The GNU C library defines this for functions which it implements
17521 to always fail with ENOSYS. Some functions are actually named
17522 something starting with __ and the normal name is an alias. */
17523 #if defined __stub_getloadavg || defined __stub___getloadavg
17524 choke me
17525 #endif
17526
17527 int
17528 main ()
17529 {
17530 return getloadavg ();
17531 ;
17532 return 0;
17533 }
17534 _ACEOF
17535 rm -f conftest.$ac_objext conftest$ac_exeext
17536 if { (ac_try="$ac_link"
17537 case "(($ac_try" in
17538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539 *) ac_try_echo=$ac_try;;
17540 esac
17541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17542 $as_echo "$ac_try_echo") >&5
17543 (eval "$ac_link") 2>conftest.er1
17544 ac_status=$?
17545 grep -v '^ *+' conftest.er1 >conftest.err
17546 rm -f conftest.er1
17547 cat conftest.err >&5
17548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } && {
17550 test -z "$ac_c_werror_flag" ||
17551 test ! -s conftest.err
17552 } && test -s conftest$ac_exeext && {
17553 test "$cross_compiling" = yes ||
17554 $as_test_x conftest$ac_exeext
17555 }; then
17556 ac_cv_func_getloadavg=yes
17557 else
17558 $as_echo "$as_me: failed program was:" >&5
17559 sed 's/^/| /' conftest.$ac_ext >&5
17560
17561 ac_cv_func_getloadavg=no
17562 fi
17563
17564 rm -rf conftest.dSYM
17565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17566 conftest$ac_exeext conftest.$ac_ext
17567 fi
17568 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17569 $as_echo "$ac_cv_func_getloadavg" >&6; }
17570 if test "x$ac_cv_func_getloadavg" = x""yes; then
17571 exit 0
17572 else
17573 exit 1
17574 fi
17575 ) && ac_have_func=yes
17576
17577 # On HPUX9, an unprivileged user can get load averages through this function.
17578
17579 for ac_func in pstat_getdynamic
17580 do
17581 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17582 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17583 $as_echo_n "checking for $ac_func... " >&6; }
17584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17585 $as_echo_n "(cached) " >&6
17586 else
17587 cat >conftest.$ac_ext <<_ACEOF
17588 /* confdefs.h. */
17589 _ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h. */
17593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17595 #define $ac_func innocuous_$ac_func
17596
17597 /* System header to define __stub macros and hopefully few prototypes,
17598 which can conflict with char $ac_func (); below.
17599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17600 <limits.h> exists even on freestanding compilers. */
17601
17602 #ifdef __STDC__
17603 # include <limits.h>
17604 #else
17605 # include <assert.h>
17606 #endif
17607
17608 #undef $ac_func
17609
17610 /* Override any GCC internal prototype to avoid an error.
17611 Use char because int might match the return type of a GCC
17612 builtin and then its argument prototype would still apply. */
17613 #ifdef __cplusplus
17614 extern "C"
17615 #endif
17616 char $ac_func ();
17617 /* The GNU C library defines this for functions which it implements
17618 to always fail with ENOSYS. Some functions are actually named
17619 something starting with __ and the normal name is an alias. */
17620 #if defined __stub_$ac_func || defined __stub___$ac_func
17621 choke me
17622 #endif
17623
17624 int
17625 main ()
17626 {
17627 return $ac_func ();
17628 ;
17629 return 0;
17630 }
17631 _ACEOF
17632 rm -f conftest.$ac_objext conftest$ac_exeext
17633 if { (ac_try="$ac_link"
17634 case "(($ac_try" in
17635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636 *) ac_try_echo=$ac_try;;
17637 esac
17638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17639 $as_echo "$ac_try_echo") >&5
17640 (eval "$ac_link") 2>conftest.er1
17641 ac_status=$?
17642 grep -v '^ *+' conftest.er1 >conftest.err
17643 rm -f conftest.er1
17644 cat conftest.err >&5
17645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); } && {
17647 test -z "$ac_c_werror_flag" ||
17648 test ! -s conftest.err
17649 } && test -s conftest$ac_exeext && {
17650 test "$cross_compiling" = yes ||
17651 $as_test_x conftest$ac_exeext
17652 }; then
17653 eval "$as_ac_var=yes"
17654 else
17655 $as_echo "$as_me: failed program was:" >&5
17656 sed 's/^/| /' conftest.$ac_ext >&5
17657
17658 eval "$as_ac_var=no"
17659 fi
17660
17661 rm -rf conftest.dSYM
17662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17663 conftest$ac_exeext conftest.$ac_ext
17664 fi
17665 ac_res=`eval 'as_val=${'$as_ac_var'}
17666 $as_echo "$as_val"'`
17667 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17668 $as_echo "$ac_res" >&6; }
17669 as_val=`eval 'as_val=${'$as_ac_var'}
17670 $as_echo "$as_val"'`
17671 if test "x$as_val" = x""yes; then
17672 cat >>confdefs.h <<_ACEOF
17673 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17674 _ACEOF
17675
17676 fi
17677 done
17678
17679
17680 # Solaris has libkstat which does not require root.
17681
17682 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17683 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
17684 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17685 $as_echo_n "(cached) " >&6
17686 else
17687 ac_check_lib_save_LIBS=$LIBS
17688 LIBS="-lkstat $LIBS"
17689 cat >conftest.$ac_ext <<_ACEOF
17690 /* confdefs.h. */
17691 _ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h. */
17695
17696 /* Override any GCC internal prototype to avoid an error.
17697 Use char because int might match the return type of a GCC
17698 builtin and then its argument prototype would still apply. */
17699 #ifdef __cplusplus
17700 extern "C"
17701 #endif
17702 char kstat_open ();
17703 int
17704 main ()
17705 {
17706 return kstat_open ();
17707 ;
17708 return 0;
17709 }
17710 _ACEOF
17711 rm -f conftest.$ac_objext conftest$ac_exeext
17712 if { (ac_try="$ac_link"
17713 case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17716 esac
17717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17718 $as_echo "$ac_try_echo") >&5
17719 (eval "$ac_link") 2>conftest.er1
17720 ac_status=$?
17721 grep -v '^ *+' conftest.er1 >conftest.err
17722 rm -f conftest.er1
17723 cat conftest.err >&5
17724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } && {
17726 test -z "$ac_c_werror_flag" ||
17727 test ! -s conftest.err
17728 } && test -s conftest$ac_exeext && {
17729 test "$cross_compiling" = yes ||
17730 $as_test_x conftest$ac_exeext
17731 }; then
17732 ac_cv_lib_kstat_kstat_open=yes
17733 else
17734 $as_echo "$as_me: failed program was:" >&5
17735 sed 's/^/| /' conftest.$ac_ext >&5
17736
17737 ac_cv_lib_kstat_kstat_open=no
17738 fi
17739
17740 rm -rf conftest.dSYM
17741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17742 conftest$ac_exeext conftest.$ac_ext
17743 LIBS=$ac_check_lib_save_LIBS
17744 fi
17745 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17746 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
17747 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then
17748 cat >>confdefs.h <<_ACEOF
17749 #define HAVE_LIBKSTAT 1
17750 _ACEOF
17751
17752 LIBS="-lkstat $LIBS"
17753
17754 fi
17755
17756 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17757
17758 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17759 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17760 # to get the right answer into the cache.
17761 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17762 if test $ac_have_func = no; then
17763 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17764 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
17765 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17766 $as_echo_n "(cached) " >&6
17767 else
17768 ac_check_lib_save_LIBS=$LIBS
17769 LIBS="-lelf $LIBS"
17770 cat >conftest.$ac_ext <<_ACEOF
17771 /* confdefs.h. */
17772 _ACEOF
17773 cat confdefs.h >>conftest.$ac_ext
17774 cat >>conftest.$ac_ext <<_ACEOF
17775 /* end confdefs.h. */
17776
17777 /* Override any GCC internal prototype to avoid an error.
17778 Use char because int might match the return type of a GCC
17779 builtin and then its argument prototype would still apply. */
17780 #ifdef __cplusplus
17781 extern "C"
17782 #endif
17783 char elf_begin ();
17784 int
17785 main ()
17786 {
17787 return elf_begin ();
17788 ;
17789 return 0;
17790 }
17791 _ACEOF
17792 rm -f conftest.$ac_objext conftest$ac_exeext
17793 if { (ac_try="$ac_link"
17794 case "(($ac_try" in
17795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17796 *) ac_try_echo=$ac_try;;
17797 esac
17798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17799 $as_echo "$ac_try_echo") >&5
17800 (eval "$ac_link") 2>conftest.er1
17801 ac_status=$?
17802 grep -v '^ *+' conftest.er1 >conftest.err
17803 rm -f conftest.er1
17804 cat conftest.err >&5
17805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); } && {
17807 test -z "$ac_c_werror_flag" ||
17808 test ! -s conftest.err
17809 } && test -s conftest$ac_exeext && {
17810 test "$cross_compiling" = yes ||
17811 $as_test_x conftest$ac_exeext
17812 }; then
17813 ac_cv_lib_elf_elf_begin=yes
17814 else
17815 $as_echo "$as_me: failed program was:" >&5
17816 sed 's/^/| /' conftest.$ac_ext >&5
17817
17818 ac_cv_lib_elf_elf_begin=no
17819 fi
17820
17821 rm -rf conftest.dSYM
17822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17823 conftest$ac_exeext conftest.$ac_ext
17824 LIBS=$ac_check_lib_save_LIBS
17825 fi
17826 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17827 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
17828 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then
17829 LIBS="-lelf $LIBS"
17830 fi
17831
17832 fi
17833 if test $ac_have_func = no; then
17834 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17835 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
17836 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17837 $as_echo_n "(cached) " >&6
17838 else
17839 ac_check_lib_save_LIBS=$LIBS
17840 LIBS="-lkvm $LIBS"
17841 cat >conftest.$ac_ext <<_ACEOF
17842 /* confdefs.h. */
17843 _ACEOF
17844 cat confdefs.h >>conftest.$ac_ext
17845 cat >>conftest.$ac_ext <<_ACEOF
17846 /* end confdefs.h. */
17847
17848 /* Override any GCC internal prototype to avoid an error.
17849 Use char because int might match the return type of a GCC
17850 builtin and then its argument prototype would still apply. */
17851 #ifdef __cplusplus
17852 extern "C"
17853 #endif
17854 char kvm_open ();
17855 int
17856 main ()
17857 {
17858 return kvm_open ();
17859 ;
17860 return 0;
17861 }
17862 _ACEOF
17863 rm -f conftest.$ac_objext conftest$ac_exeext
17864 if { (ac_try="$ac_link"
17865 case "(($ac_try" in
17866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867 *) ac_try_echo=$ac_try;;
17868 esac
17869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17870 $as_echo "$ac_try_echo") >&5
17871 (eval "$ac_link") 2>conftest.er1
17872 ac_status=$?
17873 grep -v '^ *+' conftest.er1 >conftest.err
17874 rm -f conftest.er1
17875 cat conftest.err >&5
17876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877 (exit $ac_status); } && {
17878 test -z "$ac_c_werror_flag" ||
17879 test ! -s conftest.err
17880 } && test -s conftest$ac_exeext && {
17881 test "$cross_compiling" = yes ||
17882 $as_test_x conftest$ac_exeext
17883 }; then
17884 ac_cv_lib_kvm_kvm_open=yes
17885 else
17886 $as_echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.$ac_ext >&5
17888
17889 ac_cv_lib_kvm_kvm_open=no
17890 fi
17891
17892 rm -rf conftest.dSYM
17893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17894 conftest$ac_exeext conftest.$ac_ext
17895 LIBS=$ac_check_lib_save_LIBS
17896 fi
17897 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17898 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
17899 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then
17900 LIBS="-lkvm $LIBS"
17901 fi
17902
17903 # Check for the 4.4BSD definition of getloadavg.
17904 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17905 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
17906 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17907 $as_echo_n "(cached) " >&6
17908 else
17909 ac_check_lib_save_LIBS=$LIBS
17910 LIBS="-lutil $LIBS"
17911 cat >conftest.$ac_ext <<_ACEOF
17912 /* confdefs.h. */
17913 _ACEOF
17914 cat confdefs.h >>conftest.$ac_ext
17915 cat >>conftest.$ac_ext <<_ACEOF
17916 /* end confdefs.h. */
17917
17918 /* Override any GCC internal prototype to avoid an error.
17919 Use char because int might match the return type of a GCC
17920 builtin and then its argument prototype would still apply. */
17921 #ifdef __cplusplus
17922 extern "C"
17923 #endif
17924 char getloadavg ();
17925 int
17926 main ()
17927 {
17928 return getloadavg ();
17929 ;
17930 return 0;
17931 }
17932 _ACEOF
17933 rm -f conftest.$ac_objext conftest$ac_exeext
17934 if { (ac_try="$ac_link"
17935 case "(($ac_try" in
17936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937 *) ac_try_echo=$ac_try;;
17938 esac
17939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17940 $as_echo "$ac_try_echo") >&5
17941 (eval "$ac_link") 2>conftest.er1
17942 ac_status=$?
17943 grep -v '^ *+' conftest.er1 >conftest.err
17944 rm -f conftest.er1
17945 cat conftest.err >&5
17946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); } && {
17948 test -z "$ac_c_werror_flag" ||
17949 test ! -s conftest.err
17950 } && test -s conftest$ac_exeext && {
17951 test "$cross_compiling" = yes ||
17952 $as_test_x conftest$ac_exeext
17953 }; then
17954 ac_cv_lib_util_getloadavg=yes
17955 else
17956 $as_echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17958
17959 ac_cv_lib_util_getloadavg=no
17960 fi
17961
17962 rm -rf conftest.dSYM
17963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17964 conftest$ac_exeext conftest.$ac_ext
17965 LIBS=$ac_check_lib_save_LIBS
17966 fi
17967 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17968 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
17969 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then
17970 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17971 fi
17972
17973 fi
17974
17975 if test $ac_have_func = no; then
17976 # There is a commonly available library for RS/6000 AIX.
17977 # Since it is not a standard part of AIX, it might be installed locally.
17978 ac_getloadavg_LIBS=$LIBS
17979 LIBS="-L/usr/local/lib $LIBS"
17980 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17981 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
17982 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17983 $as_echo_n "(cached) " >&6
17984 else
17985 ac_check_lib_save_LIBS=$LIBS
17986 LIBS="-lgetloadavg $LIBS"
17987 cat >conftest.$ac_ext <<_ACEOF
17988 /* confdefs.h. */
17989 _ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h. */
17993
17994 /* Override any GCC internal prototype to avoid an error.
17995 Use char because int might match the return type of a GCC
17996 builtin and then its argument prototype would still apply. */
17997 #ifdef __cplusplus
17998 extern "C"
17999 #endif
18000 char getloadavg ();
18001 int
18002 main ()
18003 {
18004 return getloadavg ();
18005 ;
18006 return 0;
18007 }
18008 _ACEOF
18009 rm -f conftest.$ac_objext conftest$ac_exeext
18010 if { (ac_try="$ac_link"
18011 case "(($ac_try" in
18012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013 *) ac_try_echo=$ac_try;;
18014 esac
18015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18016 $as_echo "$ac_try_echo") >&5
18017 (eval "$ac_link") 2>conftest.er1
18018 ac_status=$?
18019 grep -v '^ *+' conftest.er1 >conftest.err
18020 rm -f conftest.er1
18021 cat conftest.err >&5
18022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); } && {
18024 test -z "$ac_c_werror_flag" ||
18025 test ! -s conftest.err
18026 } && test -s conftest$ac_exeext && {
18027 test "$cross_compiling" = yes ||
18028 $as_test_x conftest$ac_exeext
18029 }; then
18030 ac_cv_lib_getloadavg_getloadavg=yes
18031 else
18032 $as_echo "$as_me: failed program was:" >&5
18033 sed 's/^/| /' conftest.$ac_ext >&5
18034
18035 ac_cv_lib_getloadavg_getloadavg=no
18036 fi
18037
18038 rm -rf conftest.dSYM
18039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18040 conftest$ac_exeext conftest.$ac_ext
18041 LIBS=$ac_check_lib_save_LIBS
18042 fi
18043 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18044 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18045 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then
18046 LIBS="-lgetloadavg $LIBS"
18047 else
18048 LIBS=$ac_getloadavg_LIBS
18049 fi
18050
18051 fi
18052
18053 # Make sure it is really in the library, if we think we found it,
18054 # otherwise set up the replacement function.
18055
18056 for ac_func in getloadavg
18057 do
18058 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18059 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18060 $as_echo_n "checking for $ac_func... " >&6; }
18061 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18062 $as_echo_n "(cached) " >&6
18063 else
18064 cat >conftest.$ac_ext <<_ACEOF
18065 /* confdefs.h. */
18066 _ACEOF
18067 cat confdefs.h >>conftest.$ac_ext
18068 cat >>conftest.$ac_ext <<_ACEOF
18069 /* end confdefs.h. */
18070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18072 #define $ac_func innocuous_$ac_func
18073
18074 /* System header to define __stub macros and hopefully few prototypes,
18075 which can conflict with char $ac_func (); below.
18076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18077 <limits.h> exists even on freestanding compilers. */
18078
18079 #ifdef __STDC__
18080 # include <limits.h>
18081 #else
18082 # include <assert.h>
18083 #endif
18084
18085 #undef $ac_func
18086
18087 /* Override any GCC internal prototype to avoid an error.
18088 Use char because int might match the return type of a GCC
18089 builtin and then its argument prototype would still apply. */
18090 #ifdef __cplusplus
18091 extern "C"
18092 #endif
18093 char $ac_func ();
18094 /* The GNU C library defines this for functions which it implements
18095 to always fail with ENOSYS. Some functions are actually named
18096 something starting with __ and the normal name is an alias. */
18097 #if defined __stub_$ac_func || defined __stub___$ac_func
18098 choke me
18099 #endif
18100
18101 int
18102 main ()
18103 {
18104 return $ac_func ();
18105 ;
18106 return 0;
18107 }
18108 _ACEOF
18109 rm -f conftest.$ac_objext conftest$ac_exeext
18110 if { (ac_try="$ac_link"
18111 case "(($ac_try" in
18112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18113 *) ac_try_echo=$ac_try;;
18114 esac
18115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18116 $as_echo "$ac_try_echo") >&5
18117 (eval "$ac_link") 2>conftest.er1
18118 ac_status=$?
18119 grep -v '^ *+' conftest.er1 >conftest.err
18120 rm -f conftest.er1
18121 cat conftest.err >&5
18122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); } && {
18124 test -z "$ac_c_werror_flag" ||
18125 test ! -s conftest.err
18126 } && test -s conftest$ac_exeext && {
18127 test "$cross_compiling" = yes ||
18128 $as_test_x conftest$ac_exeext
18129 }; then
18130 eval "$as_ac_var=yes"
18131 else
18132 $as_echo "$as_me: failed program was:" >&5
18133 sed 's/^/| /' conftest.$ac_ext >&5
18134
18135 eval "$as_ac_var=no"
18136 fi
18137
18138 rm -rf conftest.dSYM
18139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18140 conftest$ac_exeext conftest.$ac_ext
18141 fi
18142 ac_res=`eval 'as_val=${'$as_ac_var'}
18143 $as_echo "$as_val"'`
18144 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18145 $as_echo "$ac_res" >&6; }
18146 as_val=`eval 'as_val=${'$as_ac_var'}
18147 $as_echo "$as_val"'`
18148 if test "x$as_val" = x""yes; then
18149 cat >>confdefs.h <<_ACEOF
18150 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18151 _ACEOF
18152
18153 else
18154 case " $LIBOBJS " in
18155 *" getloadavg.$ac_objext "* ) ;;
18156 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18157 ;;
18158 esac
18159
18160
18161 cat >>confdefs.h <<\_ACEOF
18162 #define C_GETLOADAVG 1
18163 _ACEOF
18164
18165 # Figure out what our getloadavg.c needs.
18166 ac_have_func=no
18167 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18168 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18169 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18170 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18171 $as_echo_n "(cached) " >&6
18172 fi
18173 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18174 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18175 else
18176 # Is the header compilable?
18177 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18178 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18179 cat >conftest.$ac_ext <<_ACEOF
18180 /* confdefs.h. */
18181 _ACEOF
18182 cat confdefs.h >>conftest.$ac_ext
18183 cat >>conftest.$ac_ext <<_ACEOF
18184 /* end confdefs.h. */
18185 $ac_includes_default
18186 #include <sys/dg_sys_info.h>
18187 _ACEOF
18188 rm -f conftest.$ac_objext
18189 if { (ac_try="$ac_compile"
18190 case "(($ac_try" in
18191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192 *) ac_try_echo=$ac_try;;
18193 esac
18194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18195 $as_echo "$ac_try_echo") >&5
18196 (eval "$ac_compile") 2>conftest.er1
18197 ac_status=$?
18198 grep -v '^ *+' conftest.er1 >conftest.err
18199 rm -f conftest.er1
18200 cat conftest.err >&5
18201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } && {
18203 test -z "$ac_c_werror_flag" ||
18204 test ! -s conftest.err
18205 } && test -s conftest.$ac_objext; then
18206 ac_header_compiler=yes
18207 else
18208 $as_echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.$ac_ext >&5
18210
18211 ac_header_compiler=no
18212 fi
18213
18214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18215 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18216 $as_echo "$ac_header_compiler" >&6; }
18217
18218 # Is the header present?
18219 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18220 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18221 cat >conftest.$ac_ext <<_ACEOF
18222 /* confdefs.h. */
18223 _ACEOF
18224 cat confdefs.h >>conftest.$ac_ext
18225 cat >>conftest.$ac_ext <<_ACEOF
18226 /* end confdefs.h. */
18227 #include <sys/dg_sys_info.h>
18228 _ACEOF
18229 if { (ac_try="$ac_cpp conftest.$ac_ext"
18230 case "(($ac_try" in
18231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18232 *) ac_try_echo=$ac_try;;
18233 esac
18234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18235 $as_echo "$ac_try_echo") >&5
18236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18237 ac_status=$?
18238 grep -v '^ *+' conftest.er1 >conftest.err
18239 rm -f conftest.er1
18240 cat conftest.err >&5
18241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); } >/dev/null && {
18243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18244 test ! -s conftest.err
18245 }; then
18246 ac_header_preproc=yes
18247 else
18248 $as_echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.$ac_ext >&5
18250
18251 ac_header_preproc=no
18252 fi
18253
18254 rm -f conftest.err conftest.$ac_ext
18255 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18256 $as_echo "$ac_header_preproc" >&6; }
18257
18258 # So? What about this header?
18259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18260 yes:no: )
18261 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18262 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18263 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18264 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18265 ac_header_preproc=yes
18266 ;;
18267 no:yes:* )
18268 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18269 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18270 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18271 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18272 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18273 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18274 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18275 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18276 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18277 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18278 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18279 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18280
18281 ;;
18282 esac
18283 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18284 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18285 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18286 $as_echo_n "(cached) " >&6
18287 else
18288 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18289 fi
18290 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18291 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18292
18293 fi
18294 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then
18295 ac_have_func=yes
18296
18297 cat >>confdefs.h <<\_ACEOF
18298 #define DGUX 1
18299 _ACEOF
18300
18301
18302 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18303 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18304 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18305 $as_echo_n "(cached) " >&6
18306 else
18307 ac_check_lib_save_LIBS=$LIBS
18308 LIBS="-ldgc $LIBS"
18309 cat >conftest.$ac_ext <<_ACEOF
18310 /* confdefs.h. */
18311 _ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h. */
18315
18316 /* Override any GCC internal prototype to avoid an error.
18317 Use char because int might match the return type of a GCC
18318 builtin and then its argument prototype would still apply. */
18319 #ifdef __cplusplus
18320 extern "C"
18321 #endif
18322 char dg_sys_info ();
18323 int
18324 main ()
18325 {
18326 return dg_sys_info ();
18327 ;
18328 return 0;
18329 }
18330 _ACEOF
18331 rm -f conftest.$ac_objext conftest$ac_exeext
18332 if { (ac_try="$ac_link"
18333 case "(($ac_try" in
18334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18335 *) ac_try_echo=$ac_try;;
18336 esac
18337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18338 $as_echo "$ac_try_echo") >&5
18339 (eval "$ac_link") 2>conftest.er1
18340 ac_status=$?
18341 grep -v '^ *+' conftest.er1 >conftest.err
18342 rm -f conftest.er1
18343 cat conftest.err >&5
18344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); } && {
18346 test -z "$ac_c_werror_flag" ||
18347 test ! -s conftest.err
18348 } && test -s conftest$ac_exeext && {
18349 test "$cross_compiling" = yes ||
18350 $as_test_x conftest$ac_exeext
18351 }; then
18352 ac_cv_lib_dgc_dg_sys_info=yes
18353 else
18354 $as_echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18356
18357 ac_cv_lib_dgc_dg_sys_info=no
18358 fi
18359
18360 rm -rf conftest.dSYM
18361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18362 conftest$ac_exeext conftest.$ac_ext
18363 LIBS=$ac_check_lib_save_LIBS
18364 fi
18365 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18366 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18367 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then
18368 cat >>confdefs.h <<_ACEOF
18369 #define HAVE_LIBDGC 1
18370 _ACEOF
18371
18372 LIBS="-ldgc $LIBS"
18373
18374 fi
18375
18376 fi
18377
18378
18379
18380 if test "${ac_cv_header_locale_h+set}" = set; then
18381 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18382 $as_echo_n "checking for locale.h... " >&6; }
18383 if test "${ac_cv_header_locale_h+set}" = set; then
18384 $as_echo_n "(cached) " >&6
18385 fi
18386 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18387 $as_echo "$ac_cv_header_locale_h" >&6; }
18388 else
18389 # Is the header compilable?
18390 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
18391 $as_echo_n "checking locale.h usability... " >&6; }
18392 cat >conftest.$ac_ext <<_ACEOF
18393 /* confdefs.h. */
18394 _ACEOF
18395 cat confdefs.h >>conftest.$ac_ext
18396 cat >>conftest.$ac_ext <<_ACEOF
18397 /* end confdefs.h. */
18398 $ac_includes_default
18399 #include <locale.h>
18400 _ACEOF
18401 rm -f conftest.$ac_objext
18402 if { (ac_try="$ac_compile"
18403 case "(($ac_try" in
18404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18405 *) ac_try_echo=$ac_try;;
18406 esac
18407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18408 $as_echo "$ac_try_echo") >&5
18409 (eval "$ac_compile") 2>conftest.er1
18410 ac_status=$?
18411 grep -v '^ *+' conftest.er1 >conftest.err
18412 rm -f conftest.er1
18413 cat conftest.err >&5
18414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); } && {
18416 test -z "$ac_c_werror_flag" ||
18417 test ! -s conftest.err
18418 } && test -s conftest.$ac_objext; then
18419 ac_header_compiler=yes
18420 else
18421 $as_echo "$as_me: failed program was:" >&5
18422 sed 's/^/| /' conftest.$ac_ext >&5
18423
18424 ac_header_compiler=no
18425 fi
18426
18427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18428 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18429 $as_echo "$ac_header_compiler" >&6; }
18430
18431 # Is the header present?
18432 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
18433 $as_echo_n "checking locale.h presence... " >&6; }
18434 cat >conftest.$ac_ext <<_ACEOF
18435 /* confdefs.h. */
18436 _ACEOF
18437 cat confdefs.h >>conftest.$ac_ext
18438 cat >>conftest.$ac_ext <<_ACEOF
18439 /* end confdefs.h. */
18440 #include <locale.h>
18441 _ACEOF
18442 if { (ac_try="$ac_cpp conftest.$ac_ext"
18443 case "(($ac_try" in
18444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18445 *) ac_try_echo=$ac_try;;
18446 esac
18447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18448 $as_echo "$ac_try_echo") >&5
18449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18450 ac_status=$?
18451 grep -v '^ *+' conftest.er1 >conftest.err
18452 rm -f conftest.er1
18453 cat conftest.err >&5
18454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); } >/dev/null && {
18456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18457 test ! -s conftest.err
18458 }; then
18459 ac_header_preproc=yes
18460 else
18461 $as_echo "$as_me: failed program was:" >&5
18462 sed 's/^/| /' conftest.$ac_ext >&5
18463
18464 ac_header_preproc=no
18465 fi
18466
18467 rm -f conftest.err conftest.$ac_ext
18468 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18469 $as_echo "$ac_header_preproc" >&6; }
18470
18471 # So? What about this header?
18472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18473 yes:no: )
18474 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18475 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18476 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18477 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18478 ac_header_preproc=yes
18479 ;;
18480 no:yes:* )
18481 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18482 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18483 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18484 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18485 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18486 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18487 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18488 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18489 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18490 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18491 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18492 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18493
18494 ;;
18495 esac
18496 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18497 $as_echo_n "checking for locale.h... " >&6; }
18498 if test "${ac_cv_header_locale_h+set}" = set; then
18499 $as_echo_n "(cached) " >&6
18500 else
18501 ac_cv_header_locale_h=$ac_header_preproc
18502 fi
18503 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18504 $as_echo "$ac_cv_header_locale_h" >&6; }
18505
18506 fi
18507
18508
18509
18510 for ac_func in setlocale
18511 do
18512 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18513 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18514 $as_echo_n "checking for $ac_func... " >&6; }
18515 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18516 $as_echo_n "(cached) " >&6
18517 else
18518 cat >conftest.$ac_ext <<_ACEOF
18519 /* confdefs.h. */
18520 _ACEOF
18521 cat confdefs.h >>conftest.$ac_ext
18522 cat >>conftest.$ac_ext <<_ACEOF
18523 /* end confdefs.h. */
18524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18526 #define $ac_func innocuous_$ac_func
18527
18528 /* System header to define __stub macros and hopefully few prototypes,
18529 which can conflict with char $ac_func (); below.
18530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18531 <limits.h> exists even on freestanding compilers. */
18532
18533 #ifdef __STDC__
18534 # include <limits.h>
18535 #else
18536 # include <assert.h>
18537 #endif
18538
18539 #undef $ac_func
18540
18541 /* Override any GCC internal prototype to avoid an error.
18542 Use char because int might match the return type of a GCC
18543 builtin and then its argument prototype would still apply. */
18544 #ifdef __cplusplus
18545 extern "C"
18546 #endif
18547 char $ac_func ();
18548 /* The GNU C library defines this for functions which it implements
18549 to always fail with ENOSYS. Some functions are actually named
18550 something starting with __ and the normal name is an alias. */
18551 #if defined __stub_$ac_func || defined __stub___$ac_func
18552 choke me
18553 #endif
18554
18555 int
18556 main ()
18557 {
18558 return $ac_func ();
18559 ;
18560 return 0;
18561 }
18562 _ACEOF
18563 rm -f conftest.$ac_objext conftest$ac_exeext
18564 if { (ac_try="$ac_link"
18565 case "(($ac_try" in
18566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18567 *) ac_try_echo=$ac_try;;
18568 esac
18569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18570 $as_echo "$ac_try_echo") >&5
18571 (eval "$ac_link") 2>conftest.er1
18572 ac_status=$?
18573 grep -v '^ *+' conftest.er1 >conftest.err
18574 rm -f conftest.er1
18575 cat conftest.err >&5
18576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577 (exit $ac_status); } && {
18578 test -z "$ac_c_werror_flag" ||
18579 test ! -s conftest.err
18580 } && test -s conftest$ac_exeext && {
18581 test "$cross_compiling" = yes ||
18582 $as_test_x conftest$ac_exeext
18583 }; then
18584 eval "$as_ac_var=yes"
18585 else
18586 $as_echo "$as_me: failed program was:" >&5
18587 sed 's/^/| /' conftest.$ac_ext >&5
18588
18589 eval "$as_ac_var=no"
18590 fi
18591
18592 rm -rf conftest.dSYM
18593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18594 conftest$ac_exeext conftest.$ac_ext
18595 fi
18596 ac_res=`eval 'as_val=${'$as_ac_var'}
18597 $as_echo "$as_val"'`
18598 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18599 $as_echo "$ac_res" >&6; }
18600 as_val=`eval 'as_val=${'$as_ac_var'}
18601 $as_echo "$as_val"'`
18602 if test "x$as_val" = x""yes; then
18603 cat >>confdefs.h <<_ACEOF
18604 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18605 _ACEOF
18606
18607 fi
18608 done
18609
18610
18611 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18612 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18613 # Irix 4.0.5F has the header but not the library.
18614 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18615 ac_have_func=yes
18616
18617 cat >>confdefs.h <<\_ACEOF
18618 #define SVR4 1
18619 _ACEOF
18620
18621 fi
18622
18623 if test $ac_have_func = no; then
18624 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18625 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18626 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18627 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18628 $as_echo_n "(cached) " >&6
18629 fi
18630 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18631 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18632 else
18633 # Is the header compilable?
18634 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18635 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
18636 cat >conftest.$ac_ext <<_ACEOF
18637 /* confdefs.h. */
18638 _ACEOF
18639 cat confdefs.h >>conftest.$ac_ext
18640 cat >>conftest.$ac_ext <<_ACEOF
18641 /* end confdefs.h. */
18642 $ac_includes_default
18643 #include <inq_stats/cpustats.h>
18644 _ACEOF
18645 rm -f conftest.$ac_objext
18646 if { (ac_try="$ac_compile"
18647 case "(($ac_try" in
18648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18649 *) ac_try_echo=$ac_try;;
18650 esac
18651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18652 $as_echo "$ac_try_echo") >&5
18653 (eval "$ac_compile") 2>conftest.er1
18654 ac_status=$?
18655 grep -v '^ *+' conftest.er1 >conftest.err
18656 rm -f conftest.er1
18657 cat conftest.err >&5
18658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); } && {
18660 test -z "$ac_c_werror_flag" ||
18661 test ! -s conftest.err
18662 } && test -s conftest.$ac_objext; then
18663 ac_header_compiler=yes
18664 else
18665 $as_echo "$as_me: failed program was:" >&5
18666 sed 's/^/| /' conftest.$ac_ext >&5
18667
18668 ac_header_compiler=no
18669 fi
18670
18671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18672 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18673 $as_echo "$ac_header_compiler" >&6; }
18674
18675 # Is the header present?
18676 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18677 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
18678 cat >conftest.$ac_ext <<_ACEOF
18679 /* confdefs.h. */
18680 _ACEOF
18681 cat confdefs.h >>conftest.$ac_ext
18682 cat >>conftest.$ac_ext <<_ACEOF
18683 /* end confdefs.h. */
18684 #include <inq_stats/cpustats.h>
18685 _ACEOF
18686 if { (ac_try="$ac_cpp conftest.$ac_ext"
18687 case "(($ac_try" in
18688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18689 *) ac_try_echo=$ac_try;;
18690 esac
18691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18692 $as_echo "$ac_try_echo") >&5
18693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18694 ac_status=$?
18695 grep -v '^ *+' conftest.er1 >conftest.err
18696 rm -f conftest.er1
18697 cat conftest.err >&5
18698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } >/dev/null && {
18700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18701 test ! -s conftest.err
18702 }; then
18703 ac_header_preproc=yes
18704 else
18705 $as_echo "$as_me: failed program was:" >&5
18706 sed 's/^/| /' conftest.$ac_ext >&5
18707
18708 ac_header_preproc=no
18709 fi
18710
18711 rm -f conftest.err conftest.$ac_ext
18712 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18713 $as_echo "$ac_header_preproc" >&6; }
18714
18715 # So? What about this header?
18716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18717 yes:no: )
18718 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18719 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18720 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18721 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18722 ac_header_preproc=yes
18723 ;;
18724 no:yes:* )
18725 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18726 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18727 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18728 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18729 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18730 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18731 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18732 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18733 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18734 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18735 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18736 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18737
18738 ;;
18739 esac
18740 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18741 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
18742 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18743 $as_echo_n "(cached) " >&6
18744 else
18745 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18746 fi
18747 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18748 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
18749
18750 fi
18751 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then
18752 ac_have_func=yes
18753
18754 cat >>confdefs.h <<\_ACEOF
18755 #define UMAX 1
18756 _ACEOF
18757
18758
18759 cat >>confdefs.h <<\_ACEOF
18760 #define UMAX4_3 1
18761 _ACEOF
18762
18763 fi
18764
18765
18766 fi
18767
18768 if test $ac_have_func = no; then
18769 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18770 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18771 $as_echo_n "checking for sys/cpustats.h... " >&6; }
18772 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18773 $as_echo_n "(cached) " >&6
18774 fi
18775 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18776 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
18777 else
18778 # Is the header compilable?
18779 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18780 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
18781 cat >conftest.$ac_ext <<_ACEOF
18782 /* confdefs.h. */
18783 _ACEOF
18784 cat confdefs.h >>conftest.$ac_ext
18785 cat >>conftest.$ac_ext <<_ACEOF
18786 /* end confdefs.h. */
18787 $ac_includes_default
18788 #include <sys/cpustats.h>
18789 _ACEOF
18790 rm -f conftest.$ac_objext
18791 if { (ac_try="$ac_compile"
18792 case "(($ac_try" in
18793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18794 *) ac_try_echo=$ac_try;;
18795 esac
18796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18797 $as_echo "$ac_try_echo") >&5
18798 (eval "$ac_compile") 2>conftest.er1
18799 ac_status=$?
18800 grep -v '^ *+' conftest.er1 >conftest.err
18801 rm -f conftest.er1
18802 cat conftest.err >&5
18803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); } && {
18805 test -z "$ac_c_werror_flag" ||
18806 test ! -s conftest.err
18807 } && test -s conftest.$ac_objext; then
18808 ac_header_compiler=yes
18809 else
18810 $as_echo "$as_me: failed program was:" >&5
18811 sed 's/^/| /' conftest.$ac_ext >&5
18812
18813 ac_header_compiler=no
18814 fi
18815
18816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18817 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18818 $as_echo "$ac_header_compiler" >&6; }
18819
18820 # Is the header present?
18821 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18822 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
18823 cat >conftest.$ac_ext <<_ACEOF
18824 /* confdefs.h. */
18825 _ACEOF
18826 cat confdefs.h >>conftest.$ac_ext
18827 cat >>conftest.$ac_ext <<_ACEOF
18828 /* end confdefs.h. */
18829 #include <sys/cpustats.h>
18830 _ACEOF
18831 if { (ac_try="$ac_cpp conftest.$ac_ext"
18832 case "(($ac_try" in
18833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834 *) ac_try_echo=$ac_try;;
18835 esac
18836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18837 $as_echo "$ac_try_echo") >&5
18838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18839 ac_status=$?
18840 grep -v '^ *+' conftest.er1 >conftest.err
18841 rm -f conftest.er1
18842 cat conftest.err >&5
18843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); } >/dev/null && {
18845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18846 test ! -s conftest.err
18847 }; then
18848 ac_header_preproc=yes
18849 else
18850 $as_echo "$as_me: failed program was:" >&5
18851 sed 's/^/| /' conftest.$ac_ext >&5
18852
18853 ac_header_preproc=no
18854 fi
18855
18856 rm -f conftest.err conftest.$ac_ext
18857 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18858 $as_echo "$ac_header_preproc" >&6; }
18859
18860 # So? What about this header?
18861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18862 yes:no: )
18863 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18864 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18865 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18866 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18867 ac_header_preproc=yes
18868 ;;
18869 no:yes:* )
18870 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18871 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18872 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18873 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18874 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18875 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18876 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18877 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18878 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18879 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18880 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18881 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18882
18883 ;;
18884 esac
18885 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18886 $as_echo_n "checking for sys/cpustats.h... " >&6; }
18887 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18888 $as_echo_n "(cached) " >&6
18889 else
18890 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18891 fi
18892 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18893 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
18894
18895 fi
18896 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then
18897 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18898 #define UMAX 1
18899 _ACEOF
18900
18901 fi
18902
18903
18904 fi
18905
18906 if test $ac_have_func = no; then
18907
18908 for ac_header in mach/mach.h
18909 do
18910 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18912 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18913 $as_echo_n "checking for $ac_header... " >&6; }
18914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18915 $as_echo_n "(cached) " >&6
18916 fi
18917 ac_res=`eval 'as_val=${'$as_ac_Header'}
18918 $as_echo "$as_val"'`
18919 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18920 $as_echo "$ac_res" >&6; }
18921 else
18922 # Is the header compilable?
18923 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18924 $as_echo_n "checking $ac_header usability... " >&6; }
18925 cat >conftest.$ac_ext <<_ACEOF
18926 /* confdefs.h. */
18927 _ACEOF
18928 cat confdefs.h >>conftest.$ac_ext
18929 cat >>conftest.$ac_ext <<_ACEOF
18930 /* end confdefs.h. */
18931 $ac_includes_default
18932 #include <$ac_header>
18933 _ACEOF
18934 rm -f conftest.$ac_objext
18935 if { (ac_try="$ac_compile"
18936 case "(($ac_try" in
18937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18938 *) ac_try_echo=$ac_try;;
18939 esac
18940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18941 $as_echo "$ac_try_echo") >&5
18942 (eval "$ac_compile") 2>conftest.er1
18943 ac_status=$?
18944 grep -v '^ *+' conftest.er1 >conftest.err
18945 rm -f conftest.er1
18946 cat conftest.err >&5
18947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); } && {
18949 test -z "$ac_c_werror_flag" ||
18950 test ! -s conftest.err
18951 } && test -s conftest.$ac_objext; then
18952 ac_header_compiler=yes
18953 else
18954 $as_echo "$as_me: failed program was:" >&5
18955 sed 's/^/| /' conftest.$ac_ext >&5
18956
18957 ac_header_compiler=no
18958 fi
18959
18960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18961 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18962 $as_echo "$ac_header_compiler" >&6; }
18963
18964 # Is the header present?
18965 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18966 $as_echo_n "checking $ac_header presence... " >&6; }
18967 cat >conftest.$ac_ext <<_ACEOF
18968 /* confdefs.h. */
18969 _ACEOF
18970 cat confdefs.h >>conftest.$ac_ext
18971 cat >>conftest.$ac_ext <<_ACEOF
18972 /* end confdefs.h. */
18973 #include <$ac_header>
18974 _ACEOF
18975 if { (ac_try="$ac_cpp conftest.$ac_ext"
18976 case "(($ac_try" in
18977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978 *) ac_try_echo=$ac_try;;
18979 esac
18980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18981 $as_echo "$ac_try_echo") >&5
18982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18983 ac_status=$?
18984 grep -v '^ *+' conftest.er1 >conftest.err
18985 rm -f conftest.er1
18986 cat conftest.err >&5
18987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); } >/dev/null && {
18989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18990 test ! -s conftest.err
18991 }; then
18992 ac_header_preproc=yes
18993 else
18994 $as_echo "$as_me: failed program was:" >&5
18995 sed 's/^/| /' conftest.$ac_ext >&5
18996
18997 ac_header_preproc=no
18998 fi
18999
19000 rm -f conftest.err conftest.$ac_ext
19001 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19002 $as_echo "$ac_header_preproc" >&6; }
19003
19004 # So? What about this header?
19005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19006 yes:no: )
19007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19008 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19010 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19011 ac_header_preproc=yes
19012 ;;
19013 no:yes:* )
19014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19015 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19017 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19019 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19021 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19023 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19025 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19026
19027 ;;
19028 esac
19029 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19030 $as_echo_n "checking for $ac_header... " >&6; }
19031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19032 $as_echo_n "(cached) " >&6
19033 else
19034 eval "$as_ac_Header=\$ac_header_preproc"
19035 fi
19036 ac_res=`eval 'as_val=${'$as_ac_Header'}
19037 $as_echo "$as_val"'`
19038 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19039 $as_echo "$ac_res" >&6; }
19040
19041 fi
19042 as_val=`eval 'as_val=${'$as_ac_Header'}
19043 $as_echo "$as_val"'`
19044 if test "x$as_val" = x""yes; then
19045 cat >>confdefs.h <<_ACEOF
19046 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19047 _ACEOF
19048
19049 fi
19050
19051 done
19052
19053 fi
19054
19055
19056 for ac_header in nlist.h
19057 do
19058 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19060 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19061 $as_echo_n "checking for $ac_header... " >&6; }
19062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19063 $as_echo_n "(cached) " >&6
19064 fi
19065 ac_res=`eval 'as_val=${'$as_ac_Header'}
19066 $as_echo "$as_val"'`
19067 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19068 $as_echo "$ac_res" >&6; }
19069 else
19070 # Is the header compilable?
19071 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19072 $as_echo_n "checking $ac_header usability... " >&6; }
19073 cat >conftest.$ac_ext <<_ACEOF
19074 /* confdefs.h. */
19075 _ACEOF
19076 cat confdefs.h >>conftest.$ac_ext
19077 cat >>conftest.$ac_ext <<_ACEOF
19078 /* end confdefs.h. */
19079 $ac_includes_default
19080 #include <$ac_header>
19081 _ACEOF
19082 rm -f conftest.$ac_objext
19083 if { (ac_try="$ac_compile"
19084 case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19087 esac
19088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19089 $as_echo "$ac_try_echo") >&5
19090 (eval "$ac_compile") 2>conftest.er1
19091 ac_status=$?
19092 grep -v '^ *+' conftest.er1 >conftest.err
19093 rm -f conftest.er1
19094 cat conftest.err >&5
19095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); } && {
19097 test -z "$ac_c_werror_flag" ||
19098 test ! -s conftest.err
19099 } && test -s conftest.$ac_objext; then
19100 ac_header_compiler=yes
19101 else
19102 $as_echo "$as_me: failed program was:" >&5
19103 sed 's/^/| /' conftest.$ac_ext >&5
19104
19105 ac_header_compiler=no
19106 fi
19107
19108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19109 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19110 $as_echo "$ac_header_compiler" >&6; }
19111
19112 # Is the header present?
19113 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19114 $as_echo_n "checking $ac_header presence... " >&6; }
19115 cat >conftest.$ac_ext <<_ACEOF
19116 /* confdefs.h. */
19117 _ACEOF
19118 cat confdefs.h >>conftest.$ac_ext
19119 cat >>conftest.$ac_ext <<_ACEOF
19120 /* end confdefs.h. */
19121 #include <$ac_header>
19122 _ACEOF
19123 if { (ac_try="$ac_cpp conftest.$ac_ext"
19124 case "(($ac_try" in
19125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126 *) ac_try_echo=$ac_try;;
19127 esac
19128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19129 $as_echo "$ac_try_echo") >&5
19130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19131 ac_status=$?
19132 grep -v '^ *+' conftest.er1 >conftest.err
19133 rm -f conftest.er1
19134 cat conftest.err >&5
19135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); } >/dev/null && {
19137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19138 test ! -s conftest.err
19139 }; then
19140 ac_header_preproc=yes
19141 else
19142 $as_echo "$as_me: failed program was:" >&5
19143 sed 's/^/| /' conftest.$ac_ext >&5
19144
19145 ac_header_preproc=no
19146 fi
19147
19148 rm -f conftest.err conftest.$ac_ext
19149 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19150 $as_echo "$ac_header_preproc" >&6; }
19151
19152 # So? What about this header?
19153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19154 yes:no: )
19155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19156 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19158 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19159 ac_header_preproc=yes
19160 ;;
19161 no:yes:* )
19162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19163 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19165 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19167 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19169 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19171 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19173 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19174
19175 ;;
19176 esac
19177 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19178 $as_echo_n "checking for $ac_header... " >&6; }
19179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19180 $as_echo_n "(cached) " >&6
19181 else
19182 eval "$as_ac_Header=\$ac_header_preproc"
19183 fi
19184 ac_res=`eval 'as_val=${'$as_ac_Header'}
19185 $as_echo "$as_val"'`
19186 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19187 $as_echo "$ac_res" >&6; }
19188
19189 fi
19190 as_val=`eval 'as_val=${'$as_ac_Header'}
19191 $as_echo "$as_val"'`
19192 if test "x$as_val" = x""yes; then
19193 cat >>confdefs.h <<_ACEOF
19194 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19195 _ACEOF
19196 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19197 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19198 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19199 $as_echo_n "(cached) " >&6
19200 else
19201 cat >conftest.$ac_ext <<_ACEOF
19202 /* confdefs.h. */
19203 _ACEOF
19204 cat confdefs.h >>conftest.$ac_ext
19205 cat >>conftest.$ac_ext <<_ACEOF
19206 /* end confdefs.h. */
19207 #include <nlist.h>
19208
19209 int
19210 main ()
19211 {
19212 static struct nlist ac_aggr;
19213 if (ac_aggr.n_un.n_name)
19214 return 0;
19215 ;
19216 return 0;
19217 }
19218 _ACEOF
19219 rm -f conftest.$ac_objext
19220 if { (ac_try="$ac_compile"
19221 case "(($ac_try" in
19222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19223 *) ac_try_echo=$ac_try;;
19224 esac
19225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19226 $as_echo "$ac_try_echo") >&5
19227 (eval "$ac_compile") 2>conftest.er1
19228 ac_status=$?
19229 grep -v '^ *+' conftest.er1 >conftest.err
19230 rm -f conftest.er1
19231 cat conftest.err >&5
19232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); } && {
19234 test -z "$ac_c_werror_flag" ||
19235 test ! -s conftest.err
19236 } && test -s conftest.$ac_objext; then
19237 ac_cv_member_struct_nlist_n_un_n_name=yes
19238 else
19239 $as_echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.$ac_ext >&5
19241
19242 cat >conftest.$ac_ext <<_ACEOF
19243 /* confdefs.h. */
19244 _ACEOF
19245 cat confdefs.h >>conftest.$ac_ext
19246 cat >>conftest.$ac_ext <<_ACEOF
19247 /* end confdefs.h. */
19248 #include <nlist.h>
19249
19250 int
19251 main ()
19252 {
19253 static struct nlist ac_aggr;
19254 if (sizeof ac_aggr.n_un.n_name)
19255 return 0;
19256 ;
19257 return 0;
19258 }
19259 _ACEOF
19260 rm -f conftest.$ac_objext
19261 if { (ac_try="$ac_compile"
19262 case "(($ac_try" in
19263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264 *) ac_try_echo=$ac_try;;
19265 esac
19266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19267 $as_echo "$ac_try_echo") >&5
19268 (eval "$ac_compile") 2>conftest.er1
19269 ac_status=$?
19270 grep -v '^ *+' conftest.er1 >conftest.err
19271 rm -f conftest.er1
19272 cat conftest.err >&5
19273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); } && {
19275 test -z "$ac_c_werror_flag" ||
19276 test ! -s conftest.err
19277 } && test -s conftest.$ac_objext; then
19278 ac_cv_member_struct_nlist_n_un_n_name=yes
19279 else
19280 $as_echo "$as_me: failed program was:" >&5
19281 sed 's/^/| /' conftest.$ac_ext >&5
19282
19283 ac_cv_member_struct_nlist_n_un_n_name=no
19284 fi
19285
19286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19287 fi
19288
19289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19290 fi
19291 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19292 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19293 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then
19294
19295 cat >>confdefs.h <<_ACEOF
19296 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19297 _ACEOF
19298
19299
19300 cat >>confdefs.h <<\_ACEOF
19301 #define NLIST_NAME_UNION 1
19302 _ACEOF
19303
19304 fi
19305
19306
19307 fi
19308
19309 done
19310
19311 fi
19312 done
19313
19314
19315 # Some definitions of getloadavg require that the program be installed setgid.
19316 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
19317 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
19318 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19319 $as_echo_n "(cached) " >&6
19320 else
19321 cat >conftest.$ac_ext <<_ACEOF
19322 /* confdefs.h. */
19323 _ACEOF
19324 cat confdefs.h >>conftest.$ac_ext
19325 cat >>conftest.$ac_ext <<_ACEOF
19326 /* end confdefs.h. */
19327 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
19328 #ifdef LDAV_PRIVILEGED
19329 Yowza Am I SETGID yet
19330 #endif
19331 _ACEOF
19332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19333 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
19334 ac_cv_func_getloadavg_setgid=yes
19335 else
19336 ac_cv_func_getloadavg_setgid=no
19337 fi
19338 rm -f conftest*
19339
19340 fi
19341 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
19342 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
19343 if test $ac_cv_func_getloadavg_setgid = yes; then
19344 NEED_SETGID=true
19345
19346 cat >>confdefs.h <<\_ACEOF
19347 #define GETLOADAVG_PRIVILEGED 1
19348 _ACEOF
19349
19350 else
19351 NEED_SETGID=false
19352 fi
19353
19354 if test $ac_cv_func_getloadavg_setgid = yes; then
19355 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
19356 $as_echo_n "checking group of /dev/kmem... " >&6; }
19357 if test "${ac_cv_group_kmem+set}" = set; then
19358 $as_echo_n "(cached) " >&6
19359 else
19360 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19361 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
19362 # If we got an error (system does not support symlinks), try without -L.
19363 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
19364 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
19365 | sed -ne 's/[ ][ ]*/ /g;
19366 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19367 / /s/.* //;p;'`
19368
19369 fi
19370 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
19371 $as_echo "$ac_cv_group_kmem" >&6; }
19372 KMEM_GROUP=$ac_cv_group_kmem
19373 fi
19374 if test "x$ac_save_LIBS" = x; then
19375 GETLOADAVG_LIBS=$LIBS
19376 else
19377 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
19378 fi
19379 LIBS=$ac_save_LIBS
19380
19381
19382
19383 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19384 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19385 if test "${ac_cv_sys_largefile_source+set}" = set; then
19386 $as_echo_n "(cached) " >&6
19387 else
19388 while :; do
19389 cat >conftest.$ac_ext <<_ACEOF
19390 /* confdefs.h. */
19391 _ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h. */
19395 #include <sys/types.h> /* for off_t */
19396 #include <stdio.h>
19397 int
19398 main ()
19399 {
19400 int (*fp) (FILE *, off_t, int) = fseeko;
19401 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19402 ;
19403 return 0;
19404 }
19405 _ACEOF
19406 rm -f conftest.$ac_objext conftest$ac_exeext
19407 if { (ac_try="$ac_link"
19408 case "(($ac_try" in
19409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410 *) ac_try_echo=$ac_try;;
19411 esac
19412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19413 $as_echo "$ac_try_echo") >&5
19414 (eval "$ac_link") 2>conftest.er1
19415 ac_status=$?
19416 grep -v '^ *+' conftest.er1 >conftest.err
19417 rm -f conftest.er1
19418 cat conftest.err >&5
19419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } && {
19421 test -z "$ac_c_werror_flag" ||
19422 test ! -s conftest.err
19423 } && test -s conftest$ac_exeext && {
19424 test "$cross_compiling" = yes ||
19425 $as_test_x conftest$ac_exeext
19426 }; then
19427 ac_cv_sys_largefile_source=no; break
19428 else
19429 $as_echo "$as_me: failed program was:" >&5
19430 sed 's/^/| /' conftest.$ac_ext >&5
19431
19432
19433 fi
19434
19435 rm -rf conftest.dSYM
19436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19437 conftest$ac_exeext conftest.$ac_ext
19438 cat >conftest.$ac_ext <<_ACEOF
19439 /* confdefs.h. */
19440 _ACEOF
19441 cat confdefs.h >>conftest.$ac_ext
19442 cat >>conftest.$ac_ext <<_ACEOF
19443 /* end confdefs.h. */
19444 #define _LARGEFILE_SOURCE 1
19445 #include <sys/types.h> /* for off_t */
19446 #include <stdio.h>
19447 int
19448 main ()
19449 {
19450 int (*fp) (FILE *, off_t, int) = fseeko;
19451 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19452 ;
19453 return 0;
19454 }
19455 _ACEOF
19456 rm -f conftest.$ac_objext conftest$ac_exeext
19457 if { (ac_try="$ac_link"
19458 case "(($ac_try" in
19459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19460 *) ac_try_echo=$ac_try;;
19461 esac
19462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19463 $as_echo "$ac_try_echo") >&5
19464 (eval "$ac_link") 2>conftest.er1
19465 ac_status=$?
19466 grep -v '^ *+' conftest.er1 >conftest.err
19467 rm -f conftest.er1
19468 cat conftest.err >&5
19469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); } && {
19471 test -z "$ac_c_werror_flag" ||
19472 test ! -s conftest.err
19473 } && test -s conftest$ac_exeext && {
19474 test "$cross_compiling" = yes ||
19475 $as_test_x conftest$ac_exeext
19476 }; then
19477 ac_cv_sys_largefile_source=1; break
19478 else
19479 $as_echo "$as_me: failed program was:" >&5
19480 sed 's/^/| /' conftest.$ac_ext >&5
19481
19482
19483 fi
19484
19485 rm -rf conftest.dSYM
19486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19487 conftest$ac_exeext conftest.$ac_ext
19488 ac_cv_sys_largefile_source=unknown
19489 break
19490 done
19491 fi
19492 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19493 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19494 case $ac_cv_sys_largefile_source in #(
19495 no | unknown) ;;
19496 *)
19497 cat >>confdefs.h <<_ACEOF
19498 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19499 _ACEOF
19500 ;;
19501 esac
19502 rm -rf conftest*
19503
19504 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19505 # in glibc 2.1.3, but that breaks too many other things.
19506 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19507 if test $ac_cv_sys_largefile_source != unknown; then
19508
19509 cat >>confdefs.h <<\_ACEOF
19510 #define HAVE_FSEEKO 1
19511 _ACEOF
19512
19513 fi
19514
19515
19516 # Configure getopt.
19517 # getopt.m4 serial 10
19518
19519 # The getopt module assume you want GNU getopt, with getopt_long etc,
19520 # rather than vanilla POSIX getopt. This means your your code should
19521 # always include <getopt.h> for the getopt prototypes.
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533 # Prerequisites of lib/getopt*.
19534
19535
19536
19537
19538 GETOPT_H=
19539
19540 for ac_header in getopt.h
19541 do
19542 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19544 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19545 $as_echo_n "checking for $ac_header... " >&6; }
19546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19547 $as_echo_n "(cached) " >&6
19548 fi
19549 ac_res=`eval 'as_val=${'$as_ac_Header'}
19550 $as_echo "$as_val"'`
19551 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19552 $as_echo "$ac_res" >&6; }
19553 else
19554 # Is the header compilable?
19555 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19556 $as_echo_n "checking $ac_header usability... " >&6; }
19557 cat >conftest.$ac_ext <<_ACEOF
19558 /* confdefs.h. */
19559 _ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h. */
19563 $ac_includes_default
19564 #include <$ac_header>
19565 _ACEOF
19566 rm -f conftest.$ac_objext
19567 if { (ac_try="$ac_compile"
19568 case "(($ac_try" in
19569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19570 *) ac_try_echo=$ac_try;;
19571 esac
19572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19573 $as_echo "$ac_try_echo") >&5
19574 (eval "$ac_compile") 2>conftest.er1
19575 ac_status=$?
19576 grep -v '^ *+' conftest.er1 >conftest.err
19577 rm -f conftest.er1
19578 cat conftest.err >&5
19579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); } && {
19581 test -z "$ac_c_werror_flag" ||
19582 test ! -s conftest.err
19583 } && test -s conftest.$ac_objext; then
19584 ac_header_compiler=yes
19585 else
19586 $as_echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19588
19589 ac_header_compiler=no
19590 fi
19591
19592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19593 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19594 $as_echo "$ac_header_compiler" >&6; }
19595
19596 # Is the header present?
19597 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19598 $as_echo_n "checking $ac_header presence... " >&6; }
19599 cat >conftest.$ac_ext <<_ACEOF
19600 /* confdefs.h. */
19601 _ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h. */
19605 #include <$ac_header>
19606 _ACEOF
19607 if { (ac_try="$ac_cpp conftest.$ac_ext"
19608 case "(($ac_try" in
19609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19610 *) ac_try_echo=$ac_try;;
19611 esac
19612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19613 $as_echo "$ac_try_echo") >&5
19614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19615 ac_status=$?
19616 grep -v '^ *+' conftest.er1 >conftest.err
19617 rm -f conftest.er1
19618 cat conftest.err >&5
19619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } >/dev/null && {
19621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19622 test ! -s conftest.err
19623 }; then
19624 ac_header_preproc=yes
19625 else
19626 $as_echo "$as_me: failed program was:" >&5
19627 sed 's/^/| /' conftest.$ac_ext >&5
19628
19629 ac_header_preproc=no
19630 fi
19631
19632 rm -f conftest.err conftest.$ac_ext
19633 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19634 $as_echo "$ac_header_preproc" >&6; }
19635
19636 # So? What about this header?
19637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19638 yes:no: )
19639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19640 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19642 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19643 ac_header_preproc=yes
19644 ;;
19645 no:yes:* )
19646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19647 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19649 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19651 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19653 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19655 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19657 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19658
19659 ;;
19660 esac
19661 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19662 $as_echo_n "checking for $ac_header... " >&6; }
19663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19664 $as_echo_n "(cached) " >&6
19665 else
19666 eval "$as_ac_Header=\$ac_header_preproc"
19667 fi
19668 ac_res=`eval 'as_val=${'$as_ac_Header'}
19669 $as_echo "$as_val"'`
19670 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19671 $as_echo "$ac_res" >&6; }
19672
19673 fi
19674 as_val=`eval 'as_val=${'$as_ac_Header'}
19675 $as_echo "$as_val"'`
19676 if test "x$as_val" = x""yes; then
19677 cat >>confdefs.h <<_ACEOF
19678 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19679 _ACEOF
19680
19681 else
19682 GETOPT_H=getopt.h
19683 fi
19684
19685 done
19686
19687 if test -z "$GETOPT_H"; then
19688
19689 for ac_func in getopt_long_only
19690 do
19691 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19692 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19693 $as_echo_n "checking for $ac_func... " >&6; }
19694 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19695 $as_echo_n "(cached) " >&6
19696 else
19697 cat >conftest.$ac_ext <<_ACEOF
19698 /* confdefs.h. */
19699 _ACEOF
19700 cat confdefs.h >>conftest.$ac_ext
19701 cat >>conftest.$ac_ext <<_ACEOF
19702 /* end confdefs.h. */
19703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19705 #define $ac_func innocuous_$ac_func
19706
19707 /* System header to define __stub macros and hopefully few prototypes,
19708 which can conflict with char $ac_func (); below.
19709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19710 <limits.h> exists even on freestanding compilers. */
19711
19712 #ifdef __STDC__
19713 # include <limits.h>
19714 #else
19715 # include <assert.h>
19716 #endif
19717
19718 #undef $ac_func
19719
19720 /* Override any GCC internal prototype to avoid an error.
19721 Use char because int might match the return type of a GCC
19722 builtin and then its argument prototype would still apply. */
19723 #ifdef __cplusplus
19724 extern "C"
19725 #endif
19726 char $ac_func ();
19727 /* The GNU C library defines this for functions which it implements
19728 to always fail with ENOSYS. Some functions are actually named
19729 something starting with __ and the normal name is an alias. */
19730 #if defined __stub_$ac_func || defined __stub___$ac_func
19731 choke me
19732 #endif
19733
19734 int
19735 main ()
19736 {
19737 return $ac_func ();
19738 ;
19739 return 0;
19740 }
19741 _ACEOF
19742 rm -f conftest.$ac_objext conftest$ac_exeext
19743 if { (ac_try="$ac_link"
19744 case "(($ac_try" in
19745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19746 *) ac_try_echo=$ac_try;;
19747 esac
19748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19749 $as_echo "$ac_try_echo") >&5
19750 (eval "$ac_link") 2>conftest.er1
19751 ac_status=$?
19752 grep -v '^ *+' conftest.er1 >conftest.err
19753 rm -f conftest.er1
19754 cat conftest.err >&5
19755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); } && {
19757 test -z "$ac_c_werror_flag" ||
19758 test ! -s conftest.err
19759 } && test -s conftest$ac_exeext && {
19760 test "$cross_compiling" = yes ||
19761 $as_test_x conftest$ac_exeext
19762 }; then
19763 eval "$as_ac_var=yes"
19764 else
19765 $as_echo "$as_me: failed program was:" >&5
19766 sed 's/^/| /' conftest.$ac_ext >&5
19767
19768 eval "$as_ac_var=no"
19769 fi
19770
19771 rm -rf conftest.dSYM
19772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19773 conftest$ac_exeext conftest.$ac_ext
19774 fi
19775 ac_res=`eval 'as_val=${'$as_ac_var'}
19776 $as_echo "$as_val"'`
19777 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19778 $as_echo "$ac_res" >&6; }
19779 as_val=`eval 'as_val=${'$as_ac_var'}
19780 $as_echo "$as_val"'`
19781 if test "x$as_val" = x""yes; then
19782 cat >>confdefs.h <<_ACEOF
19783 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19784 _ACEOF
19785
19786 else
19787 GETOPT_H=getopt.h
19788 fi
19789 done
19790
19791 fi
19792
19793 if test -z "$GETOPT_H"; then
19794 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19795 $as_echo_n "checking whether optreset is declared... " >&6; }
19796 if test "${ac_cv_have_decl_optreset+set}" = set; then
19797 $as_echo_n "(cached) " >&6
19798 else
19799 cat >conftest.$ac_ext <<_ACEOF
19800 /* confdefs.h. */
19801 _ACEOF
19802 cat confdefs.h >>conftest.$ac_ext
19803 cat >>conftest.$ac_ext <<_ACEOF
19804 /* end confdefs.h. */
19805 #include <getopt.h>
19806
19807 int
19808 main ()
19809 {
19810 #ifndef optreset
19811 (void) optreset;
19812 #endif
19813
19814 ;
19815 return 0;
19816 }
19817 _ACEOF
19818 rm -f conftest.$ac_objext
19819 if { (ac_try="$ac_compile"
19820 case "(($ac_try" in
19821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19822 *) ac_try_echo=$ac_try;;
19823 esac
19824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19825 $as_echo "$ac_try_echo") >&5
19826 (eval "$ac_compile") 2>conftest.er1
19827 ac_status=$?
19828 grep -v '^ *+' conftest.er1 >conftest.err
19829 rm -f conftest.er1
19830 cat conftest.err >&5
19831 $as_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_objext; then
19836 ac_cv_have_decl_optreset=yes
19837 else
19838 $as_echo "$as_me: failed program was:" >&5
19839 sed 's/^/| /' conftest.$ac_ext >&5
19840
19841 ac_cv_have_decl_optreset=no
19842 fi
19843
19844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19845 fi
19846 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19847 $as_echo "$ac_cv_have_decl_optreset" >&6; }
19848 if test "x$ac_cv_have_decl_optreset" = x""yes; then
19849 GETOPT_H=getopt.h
19850 fi
19851
19852 fi
19853
19854 if test -z "$GETOPT_H"; then
19855 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19856 $as_echo_n "checking for working GNU getopt function... " >&6; }
19857 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19858 $as_echo_n "(cached) " >&6
19859 else
19860 if test "$cross_compiling" = yes; then
19861 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19862 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
19863 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19864 $as_echo_n "(cached) " >&6
19865 else
19866 cat >conftest.$ac_ext <<_ACEOF
19867 /* confdefs.h. */
19868 _ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h. */
19872 #include <getopt.h>
19873
19874 int
19875 main ()
19876 {
19877 #ifndef getopt_clip
19878 (void) getopt_clip;
19879 #endif
19880
19881 ;
19882 return 0;
19883 }
19884 _ACEOF
19885 rm -f conftest.$ac_objext
19886 if { (ac_try="$ac_compile"
19887 case "(($ac_try" in
19888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19889 *) ac_try_echo=$ac_try;;
19890 esac
19891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19892 $as_echo "$ac_try_echo") >&5
19893 (eval "$ac_compile") 2>conftest.er1
19894 ac_status=$?
19895 grep -v '^ *+' conftest.er1 >conftest.err
19896 rm -f conftest.er1
19897 cat conftest.err >&5
19898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); } && {
19900 test -z "$ac_c_werror_flag" ||
19901 test ! -s conftest.err
19902 } && test -s conftest.$ac_objext; then
19903 ac_cv_have_decl_getopt_clip=yes
19904 else
19905 $as_echo "$as_me: failed program was:" >&5
19906 sed 's/^/| /' conftest.$ac_ext >&5
19907
19908 ac_cv_have_decl_getopt_clip=no
19909 fi
19910
19911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19912 fi
19913 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19914 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
19915 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then
19916 gl_cv_func_gnu_getopt=no
19917 else
19918 gl_cv_func_gnu_getopt=yes
19919 fi
19920
19921 else
19922 cat >conftest.$ac_ext <<_ACEOF
19923 /* confdefs.h. */
19924 _ACEOF
19925 cat confdefs.h >>conftest.$ac_ext
19926 cat >>conftest.$ac_ext <<_ACEOF
19927 /* end confdefs.h. */
19928 #include <getopt.h>
19929 int
19930 main ()
19931 {
19932
19933 char *myargv[3];
19934 myargv[0] = "conftest";
19935 myargv[1] = "-+";
19936 myargv[2] = 0;
19937 return getopt (2, myargv, "+a") != '?';
19938
19939 ;
19940 return 0;
19941 }
19942 _ACEOF
19943 rm -f conftest$ac_exeext
19944 if { (ac_try="$ac_link"
19945 case "(($ac_try" in
19946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19948 esac
19949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19950 $as_echo "$ac_try_echo") >&5
19951 (eval "$ac_link") 2>&5
19952 ac_status=$?
19953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19955 { (case "(($ac_try" in
19956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19957 *) ac_try_echo=$ac_try;;
19958 esac
19959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19960 $as_echo "$ac_try_echo") >&5
19961 (eval "$ac_try") 2>&5
19962 ac_status=$?
19963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); }; }; then
19965 gl_cv_func_gnu_getopt=yes
19966 else
19967 $as_echo "$as_me: program exited with status $ac_status" >&5
19968 $as_echo "$as_me: failed program was:" >&5
19969 sed 's/^/| /' conftest.$ac_ext >&5
19970
19971 ( exit $ac_status )
19972 gl_cv_func_gnu_getopt=no
19973 fi
19974 rm -rf conftest.dSYM
19975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19976 fi
19977
19978
19979 fi
19980 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19981 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
19982 if test "$gl_cv_func_gnu_getopt" = "no"; then
19983 GETOPT_H=getopt.h
19984 fi
19985 fi
19986
19987
19988
19989 if test -n "$GETOPT_H"; then
19990
19991
19992 GETOPT_H=getopt.h
19993
19994 cat >>confdefs.h <<\_ACEOF
19995 #define __GETOPT_PREFIX rpl_
19996 _ACEOF
19997
19998
19999
20000 :
20001 GETOPTOBJS='getopt.o getopt1.o'
20002
20003 fi
20004
20005
20006
20007
20008 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20009 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20010 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20011 $as_echo_n "(cached) " >&6
20012 else
20013 # Use it with a single arg.
20014 cat >conftest.$ac_ext <<_ACEOF
20015 /* confdefs.h. */
20016 _ACEOF
20017 cat confdefs.h >>conftest.$ac_ext
20018 cat >>conftest.$ac_ext <<_ACEOF
20019 /* end confdefs.h. */
20020 $ac_includes_default
20021 int
20022 main ()
20023 {
20024 getpgrp (0);
20025 ;
20026 return 0;
20027 }
20028 _ACEOF
20029 rm -f conftest.$ac_objext
20030 if { (ac_try="$ac_compile"
20031 case "(($ac_try" in
20032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20033 *) ac_try_echo=$ac_try;;
20034 esac
20035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20036 $as_echo "$ac_try_echo") >&5
20037 (eval "$ac_compile") 2>conftest.er1
20038 ac_status=$?
20039 grep -v '^ *+' conftest.er1 >conftest.err
20040 rm -f conftest.er1
20041 cat conftest.err >&5
20042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); } && {
20044 test -z "$ac_c_werror_flag" ||
20045 test ! -s conftest.err
20046 } && test -s conftest.$ac_objext; then
20047 ac_cv_func_getpgrp_void=no
20048 else
20049 $as_echo "$as_me: failed program was:" >&5
20050 sed 's/^/| /' conftest.$ac_ext >&5
20051
20052 ac_cv_func_getpgrp_void=yes
20053 fi
20054
20055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20056
20057 fi
20058 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20059 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20060 if test $ac_cv_func_getpgrp_void = yes; then
20061
20062 cat >>confdefs.h <<\_ACEOF
20063 #define GETPGRP_VOID 1
20064 _ACEOF
20065
20066 fi
20067
20068
20069
20070 for ac_func in strftime
20071 do
20072 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20073 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20074 $as_echo_n "checking for $ac_func... " >&6; }
20075 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20076 $as_echo_n "(cached) " >&6
20077 else
20078 cat >conftest.$ac_ext <<_ACEOF
20079 /* confdefs.h. */
20080 _ACEOF
20081 cat confdefs.h >>conftest.$ac_ext
20082 cat >>conftest.$ac_ext <<_ACEOF
20083 /* end confdefs.h. */
20084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20086 #define $ac_func innocuous_$ac_func
20087
20088 /* System header to define __stub macros and hopefully few prototypes,
20089 which can conflict with char $ac_func (); below.
20090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20091 <limits.h> exists even on freestanding compilers. */
20092
20093 #ifdef __STDC__
20094 # include <limits.h>
20095 #else
20096 # include <assert.h>
20097 #endif
20098
20099 #undef $ac_func
20100
20101 /* Override any GCC internal prototype to avoid an error.
20102 Use char because int might match the return type of a GCC
20103 builtin and then its argument prototype would still apply. */
20104 #ifdef __cplusplus
20105 extern "C"
20106 #endif
20107 char $ac_func ();
20108 /* The GNU C library defines this for functions which it implements
20109 to always fail with ENOSYS. Some functions are actually named
20110 something starting with __ and the normal name is an alias. */
20111 #if defined __stub_$ac_func || defined __stub___$ac_func
20112 choke me
20113 #endif
20114
20115 int
20116 main ()
20117 {
20118 return $ac_func ();
20119 ;
20120 return 0;
20121 }
20122 _ACEOF
20123 rm -f conftest.$ac_objext conftest$ac_exeext
20124 if { (ac_try="$ac_link"
20125 case "(($ac_try" in
20126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20127 *) ac_try_echo=$ac_try;;
20128 esac
20129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20130 $as_echo "$ac_try_echo") >&5
20131 (eval "$ac_link") 2>conftest.er1
20132 ac_status=$?
20133 grep -v '^ *+' conftest.er1 >conftest.err
20134 rm -f conftest.er1
20135 cat conftest.err >&5
20136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); } && {
20138 test -z "$ac_c_werror_flag" ||
20139 test ! -s conftest.err
20140 } && test -s conftest$ac_exeext && {
20141 test "$cross_compiling" = yes ||
20142 $as_test_x conftest$ac_exeext
20143 }; then
20144 eval "$as_ac_var=yes"
20145 else
20146 $as_echo "$as_me: failed program was:" >&5
20147 sed 's/^/| /' conftest.$ac_ext >&5
20148
20149 eval "$as_ac_var=no"
20150 fi
20151
20152 rm -rf conftest.dSYM
20153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20154 conftest$ac_exeext conftest.$ac_ext
20155 fi
20156 ac_res=`eval 'as_val=${'$as_ac_var'}
20157 $as_echo "$as_val"'`
20158 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20159 $as_echo "$ac_res" >&6; }
20160 as_val=`eval 'as_val=${'$as_ac_var'}
20161 $as_echo "$as_val"'`
20162 if test "x$as_val" = x""yes; then
20163 cat >>confdefs.h <<_ACEOF
20164 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20165 _ACEOF
20166
20167 else
20168 # strftime is in -lintl on SCO UNIX.
20169 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20170 $as_echo_n "checking for strftime in -lintl... " >&6; }
20171 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20172 $as_echo_n "(cached) " >&6
20173 else
20174 ac_check_lib_save_LIBS=$LIBS
20175 LIBS="-lintl $LIBS"
20176 cat >conftest.$ac_ext <<_ACEOF
20177 /* confdefs.h. */
20178 _ACEOF
20179 cat confdefs.h >>conftest.$ac_ext
20180 cat >>conftest.$ac_ext <<_ACEOF
20181 /* end confdefs.h. */
20182
20183 /* Override any GCC internal prototype to avoid an error.
20184 Use char because int might match the return type of a GCC
20185 builtin and then its argument prototype would still apply. */
20186 #ifdef __cplusplus
20187 extern "C"
20188 #endif
20189 char strftime ();
20190 int
20191 main ()
20192 {
20193 return strftime ();
20194 ;
20195 return 0;
20196 }
20197 _ACEOF
20198 rm -f conftest.$ac_objext conftest$ac_exeext
20199 if { (ac_try="$ac_link"
20200 case "(($ac_try" in
20201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202 *) ac_try_echo=$ac_try;;
20203 esac
20204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20205 $as_echo "$ac_try_echo") >&5
20206 (eval "$ac_link") 2>conftest.er1
20207 ac_status=$?
20208 grep -v '^ *+' conftest.er1 >conftest.err
20209 rm -f conftest.er1
20210 cat conftest.err >&5
20211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); } && {
20213 test -z "$ac_c_werror_flag" ||
20214 test ! -s conftest.err
20215 } && test -s conftest$ac_exeext && {
20216 test "$cross_compiling" = yes ||
20217 $as_test_x conftest$ac_exeext
20218 }; then
20219 ac_cv_lib_intl_strftime=yes
20220 else
20221 $as_echo "$as_me: failed program was:" >&5
20222 sed 's/^/| /' conftest.$ac_ext >&5
20223
20224 ac_cv_lib_intl_strftime=no
20225 fi
20226
20227 rm -rf conftest.dSYM
20228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20229 conftest$ac_exeext conftest.$ac_ext
20230 LIBS=$ac_check_lib_save_LIBS
20231 fi
20232 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20233 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20234 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
20235 cat >>confdefs.h <<\_ACEOF
20236 #define HAVE_STRFTIME 1
20237 _ACEOF
20238
20239 LIBS="-lintl $LIBS"
20240 fi
20241
20242 fi
20243 done
20244
20245
20246 # UNIX98 PTYs.
20247
20248 for ac_func in grantpt
20249 do
20250 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20251 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20252 $as_echo_n "checking for $ac_func... " >&6; }
20253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20254 $as_echo_n "(cached) " >&6
20255 else
20256 cat >conftest.$ac_ext <<_ACEOF
20257 /* confdefs.h. */
20258 _ACEOF
20259 cat confdefs.h >>conftest.$ac_ext
20260 cat >>conftest.$ac_ext <<_ACEOF
20261 /* end confdefs.h. */
20262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20264 #define $ac_func innocuous_$ac_func
20265
20266 /* System header to define __stub macros and hopefully few prototypes,
20267 which can conflict with char $ac_func (); below.
20268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20269 <limits.h> exists even on freestanding compilers. */
20270
20271 #ifdef __STDC__
20272 # include <limits.h>
20273 #else
20274 # include <assert.h>
20275 #endif
20276
20277 #undef $ac_func
20278
20279 /* Override any GCC internal prototype to avoid an error.
20280 Use char because int might match the return type of a GCC
20281 builtin and then its argument prototype would still apply. */
20282 #ifdef __cplusplus
20283 extern "C"
20284 #endif
20285 char $ac_func ();
20286 /* The GNU C library defines this for functions which it implements
20287 to always fail with ENOSYS. Some functions are actually named
20288 something starting with __ and the normal name is an alias. */
20289 #if defined __stub_$ac_func || defined __stub___$ac_func
20290 choke me
20291 #endif
20292
20293 int
20294 main ()
20295 {
20296 return $ac_func ();
20297 ;
20298 return 0;
20299 }
20300 _ACEOF
20301 rm -f conftest.$ac_objext conftest$ac_exeext
20302 if { (ac_try="$ac_link"
20303 case "(($ac_try" in
20304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305 *) ac_try_echo=$ac_try;;
20306 esac
20307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20308 $as_echo "$ac_try_echo") >&5
20309 (eval "$ac_link") 2>conftest.er1
20310 ac_status=$?
20311 grep -v '^ *+' conftest.er1 >conftest.err
20312 rm -f conftest.er1
20313 cat conftest.err >&5
20314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); } && {
20316 test -z "$ac_c_werror_flag" ||
20317 test ! -s conftest.err
20318 } && test -s conftest$ac_exeext && {
20319 test "$cross_compiling" = yes ||
20320 $as_test_x conftest$ac_exeext
20321 }; then
20322 eval "$as_ac_var=yes"
20323 else
20324 $as_echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.$ac_ext >&5
20326
20327 eval "$as_ac_var=no"
20328 fi
20329
20330 rm -rf conftest.dSYM
20331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20332 conftest$ac_exeext conftest.$ac_ext
20333 fi
20334 ac_res=`eval 'as_val=${'$as_ac_var'}
20335 $as_echo "$as_val"'`
20336 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20337 $as_echo "$ac_res" >&6; }
20338 as_val=`eval 'as_val=${'$as_ac_var'}
20339 $as_echo "$as_val"'`
20340 if test "x$as_val" = x""yes; then
20341 cat >>confdefs.h <<_ACEOF
20342 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20343 _ACEOF
20344
20345 fi
20346 done
20347
20348
20349 # PTY-related GNU extensions.
20350
20351 for ac_func in getpt
20352 do
20353 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20354 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20355 $as_echo_n "checking for $ac_func... " >&6; }
20356 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20357 $as_echo_n "(cached) " >&6
20358 else
20359 cat >conftest.$ac_ext <<_ACEOF
20360 /* confdefs.h. */
20361 _ACEOF
20362 cat confdefs.h >>conftest.$ac_ext
20363 cat >>conftest.$ac_ext <<_ACEOF
20364 /* end confdefs.h. */
20365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20367 #define $ac_func innocuous_$ac_func
20368
20369 /* System header to define __stub macros and hopefully few prototypes,
20370 which can conflict with char $ac_func (); below.
20371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20372 <limits.h> exists even on freestanding compilers. */
20373
20374 #ifdef __STDC__
20375 # include <limits.h>
20376 #else
20377 # include <assert.h>
20378 #endif
20379
20380 #undef $ac_func
20381
20382 /* Override any GCC internal prototype to avoid an error.
20383 Use char because int might match the return type of a GCC
20384 builtin and then its argument prototype would still apply. */
20385 #ifdef __cplusplus
20386 extern "C"
20387 #endif
20388 char $ac_func ();
20389 /* The GNU C library defines this for functions which it implements
20390 to always fail with ENOSYS. Some functions are actually named
20391 something starting with __ and the normal name is an alias. */
20392 #if defined __stub_$ac_func || defined __stub___$ac_func
20393 choke me
20394 #endif
20395
20396 int
20397 main ()
20398 {
20399 return $ac_func ();
20400 ;
20401 return 0;
20402 }
20403 _ACEOF
20404 rm -f conftest.$ac_objext conftest$ac_exeext
20405 if { (ac_try="$ac_link"
20406 case "(($ac_try" in
20407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20408 *) ac_try_echo=$ac_try;;
20409 esac
20410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20411 $as_echo "$ac_try_echo") >&5
20412 (eval "$ac_link") 2>conftest.er1
20413 ac_status=$?
20414 grep -v '^ *+' conftest.er1 >conftest.err
20415 rm -f conftest.er1
20416 cat conftest.err >&5
20417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); } && {
20419 test -z "$ac_c_werror_flag" ||
20420 test ! -s conftest.err
20421 } && test -s conftest$ac_exeext && {
20422 test "$cross_compiling" = yes ||
20423 $as_test_x conftest$ac_exeext
20424 }; then
20425 eval "$as_ac_var=yes"
20426 else
20427 $as_echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20429
20430 eval "$as_ac_var=no"
20431 fi
20432
20433 rm -rf conftest.dSYM
20434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20435 conftest$ac_exeext conftest.$ac_ext
20436 fi
20437 ac_res=`eval 'as_val=${'$as_ac_var'}
20438 $as_echo "$as_val"'`
20439 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20440 $as_echo "$ac_res" >&6; }
20441 as_val=`eval 'as_val=${'$as_ac_var'}
20442 $as_echo "$as_val"'`
20443 if test "x$as_val" = x""yes; then
20444 cat >>confdefs.h <<_ACEOF
20445 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20446 _ACEOF
20447
20448 fi
20449 done
20450
20451
20452 # Check this now, so that we will NOT find the above functions in ncurses.
20453 # That is because we have not set up to link ncurses in lib-src.
20454 # It's better to believe a function is not available
20455 # than to expect to find it in ncurses.
20456
20457 { $as_echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
20458 $as_echo_n "checking for tparm in -lncurses... " >&6; }
20459 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20460 $as_echo_n "(cached) " >&6
20461 else
20462 ac_check_lib_save_LIBS=$LIBS
20463 LIBS="-lncurses $LIBS"
20464 cat >conftest.$ac_ext <<_ACEOF
20465 /* confdefs.h. */
20466 _ACEOF
20467 cat confdefs.h >>conftest.$ac_ext
20468 cat >>conftest.$ac_ext <<_ACEOF
20469 /* end confdefs.h. */
20470
20471 /* Override any GCC internal prototype to avoid an error.
20472 Use char because int might match the return type of a GCC
20473 builtin and then its argument prototype would still apply. */
20474 #ifdef __cplusplus
20475 extern "C"
20476 #endif
20477 char tparm ();
20478 int
20479 main ()
20480 {
20481 return tparm ();
20482 ;
20483 return 0;
20484 }
20485 _ACEOF
20486 rm -f conftest.$ac_objext conftest$ac_exeext
20487 if { (ac_try="$ac_link"
20488 case "(($ac_try" in
20489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490 *) ac_try_echo=$ac_try;;
20491 esac
20492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20493 $as_echo "$ac_try_echo") >&5
20494 (eval "$ac_link") 2>conftest.er1
20495 ac_status=$?
20496 grep -v '^ *+' conftest.er1 >conftest.err
20497 rm -f conftest.er1
20498 cat conftest.err >&5
20499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); } && {
20501 test -z "$ac_c_werror_flag" ||
20502 test ! -s conftest.err
20503 } && test -s conftest$ac_exeext && {
20504 test "$cross_compiling" = yes ||
20505 $as_test_x conftest$ac_exeext
20506 }; then
20507 ac_cv_lib_ncurses_tparm=yes
20508 else
20509 $as_echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20511
20512 ac_cv_lib_ncurses_tparm=no
20513 fi
20514
20515 rm -rf conftest.dSYM
20516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20517 conftest$ac_exeext conftest.$ac_ext
20518 LIBS=$ac_check_lib_save_LIBS
20519 fi
20520 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20521 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
20522 if test "x$ac_cv_lib_ncurses_tparm" = x""yes; then
20523 cat >>confdefs.h <<_ACEOF
20524 #define HAVE_LIBNCURSES 1
20525 _ACEOF
20526
20527 LIBS="-lncurses $LIBS"
20528
20529 fi
20530
20531
20532 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20533
20534 resolv=no
20535 cat >conftest.$ac_ext <<_ACEOF
20536 /* confdefs.h. */
20537 _ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h. */
20541 #include <netinet/in.h>
20542 #include <arpa/nameser.h>
20543 #include <resolv.h>
20544 int
20545 main ()
20546 {
20547 return res_init();
20548 ;
20549 return 0;
20550 }
20551 _ACEOF
20552 rm -f conftest.$ac_objext conftest$ac_exeext
20553 if { (ac_try="$ac_link"
20554 case "(($ac_try" in
20555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556 *) ac_try_echo=$ac_try;;
20557 esac
20558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20559 $as_echo "$ac_try_echo") >&5
20560 (eval "$ac_link") 2>conftest.er1
20561 ac_status=$?
20562 grep -v '^ *+' conftest.er1 >conftest.err
20563 rm -f conftest.er1
20564 cat conftest.err >&5
20565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); } && {
20567 test -z "$ac_c_werror_flag" ||
20568 test ! -s conftest.err
20569 } && test -s conftest$ac_exeext && {
20570 test "$cross_compiling" = yes ||
20571 $as_test_x conftest$ac_exeext
20572 }; then
20573 have_res_init=yes
20574 else
20575 $as_echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20577
20578 have_res_init=no
20579 fi
20580
20581 rm -rf conftest.dSYM
20582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20583 conftest$ac_exeext conftest.$ac_ext
20584 if test "$have_res_init" = no; then
20585 OLIBS="$LIBS"
20586 LIBS="$LIBS -lresolv"
20587 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
20588 $as_echo_n "checking for res_init with -lresolv... " >&6; }
20589 cat >conftest.$ac_ext <<_ACEOF
20590 /* confdefs.h. */
20591 _ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h. */
20595 #include <netinet/in.h>
20596 #include <arpa/nameser.h>
20597 #include <resolv.h>
20598 int
20599 main ()
20600 {
20601 return res_init();
20602 ;
20603 return 0;
20604 }
20605 _ACEOF
20606 rm -f conftest.$ac_objext conftest$ac_exeext
20607 if { (ac_try="$ac_link"
20608 case "(($ac_try" in
20609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20610 *) ac_try_echo=$ac_try;;
20611 esac
20612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20613 $as_echo "$ac_try_echo") >&5
20614 (eval "$ac_link") 2>conftest.er1
20615 ac_status=$?
20616 grep -v '^ *+' conftest.er1 >conftest.err
20617 rm -f conftest.er1
20618 cat conftest.err >&5
20619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); } && {
20621 test -z "$ac_c_werror_flag" ||
20622 test ! -s conftest.err
20623 } && test -s conftest$ac_exeext && {
20624 test "$cross_compiling" = yes ||
20625 $as_test_x conftest$ac_exeext
20626 }; then
20627 have_res_init=yes
20628 else
20629 $as_echo "$as_me: failed program was:" >&5
20630 sed 's/^/| /' conftest.$ac_ext >&5
20631
20632 have_res_init=no
20633 fi
20634
20635 rm -rf conftest.dSYM
20636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20637 conftest$ac_exeext conftest.$ac_ext
20638 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
20639 $as_echo "$have_res_init" >&6; }
20640 if test "$have_res_init" = yes ; then
20641 resolv=yes
20642 fi
20643 LIBS="$OLIBS"
20644 fi
20645
20646 if test "$have_res_init" = yes; then
20647
20648 cat >>confdefs.h <<\_ACEOF
20649 #define HAVE_RES_INIT 1
20650 _ACEOF
20651
20652 fi
20653
20654 # Do we need the Hesiod library to provide the support routines?
20655 if test "$with_hesiod" != no ; then
20656 # Don't set $LIBS here -- see comments above.
20657 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
20658 $as_echo_n "checking for res_send... " >&6; }
20659 if test "${ac_cv_func_res_send+set}" = set; then
20660 $as_echo_n "(cached) " >&6
20661 else
20662 cat >conftest.$ac_ext <<_ACEOF
20663 /* confdefs.h. */
20664 _ACEOF
20665 cat confdefs.h >>conftest.$ac_ext
20666 cat >>conftest.$ac_ext <<_ACEOF
20667 /* end confdefs.h. */
20668 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20670 #define res_send innocuous_res_send
20671
20672 /* System header to define __stub macros and hopefully few prototypes,
20673 which can conflict with char res_send (); below.
20674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20675 <limits.h> exists even on freestanding compilers. */
20676
20677 #ifdef __STDC__
20678 # include <limits.h>
20679 #else
20680 # include <assert.h>
20681 #endif
20682
20683 #undef res_send
20684
20685 /* Override any GCC internal prototype to avoid an error.
20686 Use char because int might match the return type of a GCC
20687 builtin and then its argument prototype would still apply. */
20688 #ifdef __cplusplus
20689 extern "C"
20690 #endif
20691 char res_send ();
20692 /* The GNU C library defines this for functions which it implements
20693 to always fail with ENOSYS. Some functions are actually named
20694 something starting with __ and the normal name is an alias. */
20695 #if defined __stub_res_send || defined __stub___res_send
20696 choke me
20697 #endif
20698
20699 int
20700 main ()
20701 {
20702 return res_send ();
20703 ;
20704 return 0;
20705 }
20706 _ACEOF
20707 rm -f conftest.$ac_objext conftest$ac_exeext
20708 if { (ac_try="$ac_link"
20709 case "(($ac_try" in
20710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711 *) ac_try_echo=$ac_try;;
20712 esac
20713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20714 $as_echo "$ac_try_echo") >&5
20715 (eval "$ac_link") 2>conftest.er1
20716 ac_status=$?
20717 grep -v '^ *+' conftest.er1 >conftest.err
20718 rm -f conftest.er1
20719 cat conftest.err >&5
20720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); } && {
20722 test -z "$ac_c_werror_flag" ||
20723 test ! -s conftest.err
20724 } && test -s conftest$ac_exeext && {
20725 test "$cross_compiling" = yes ||
20726 $as_test_x conftest$ac_exeext
20727 }; then
20728 ac_cv_func_res_send=yes
20729 else
20730 $as_echo "$as_me: failed program was:" >&5
20731 sed 's/^/| /' conftest.$ac_ext >&5
20732
20733 ac_cv_func_res_send=no
20734 fi
20735
20736 rm -rf conftest.dSYM
20737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20738 conftest$ac_exeext conftest.$ac_ext
20739 fi
20740 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20741 $as_echo "$ac_cv_func_res_send" >&6; }
20742 if test "x$ac_cv_func_res_send" = x""yes; then
20743 :
20744 else
20745 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
20746 $as_echo_n "checking for __res_send... " >&6; }
20747 if test "${ac_cv_func___res_send+set}" = set; then
20748 $as_echo_n "(cached) " >&6
20749 else
20750 cat >conftest.$ac_ext <<_ACEOF
20751 /* confdefs.h. */
20752 _ACEOF
20753 cat confdefs.h >>conftest.$ac_ext
20754 cat >>conftest.$ac_ext <<_ACEOF
20755 /* end confdefs.h. */
20756 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20758 #define __res_send innocuous___res_send
20759
20760 /* System header to define __stub macros and hopefully few prototypes,
20761 which can conflict with char __res_send (); below.
20762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20763 <limits.h> exists even on freestanding compilers. */
20764
20765 #ifdef __STDC__
20766 # include <limits.h>
20767 #else
20768 # include <assert.h>
20769 #endif
20770
20771 #undef __res_send
20772
20773 /* Override any GCC internal prototype to avoid an error.
20774 Use char because int might match the return type of a GCC
20775 builtin and then its argument prototype would still apply. */
20776 #ifdef __cplusplus
20777 extern "C"
20778 #endif
20779 char __res_send ();
20780 /* The GNU C library defines this for functions which it implements
20781 to always fail with ENOSYS. Some functions are actually named
20782 something starting with __ and the normal name is an alias. */
20783 #if defined __stub___res_send || defined __stub_____res_send
20784 choke me
20785 #endif
20786
20787 int
20788 main ()
20789 {
20790 return __res_send ();
20791 ;
20792 return 0;
20793 }
20794 _ACEOF
20795 rm -f conftest.$ac_objext conftest$ac_exeext
20796 if { (ac_try="$ac_link"
20797 case "(($ac_try" in
20798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799 *) ac_try_echo=$ac_try;;
20800 esac
20801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20802 $as_echo "$ac_try_echo") >&5
20803 (eval "$ac_link") 2>conftest.er1
20804 ac_status=$?
20805 grep -v '^ *+' conftest.er1 >conftest.err
20806 rm -f conftest.er1
20807 cat conftest.err >&5
20808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); } && {
20810 test -z "$ac_c_werror_flag" ||
20811 test ! -s conftest.err
20812 } && test -s conftest$ac_exeext && {
20813 test "$cross_compiling" = yes ||
20814 $as_test_x conftest$ac_exeext
20815 }; then
20816 ac_cv_func___res_send=yes
20817 else
20818 $as_echo "$as_me: failed program was:" >&5
20819 sed 's/^/| /' conftest.$ac_ext >&5
20820
20821 ac_cv_func___res_send=no
20822 fi
20823
20824 rm -rf conftest.dSYM
20825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20826 conftest$ac_exeext conftest.$ac_ext
20827 fi
20828 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20829 $as_echo "$ac_cv_func___res_send" >&6; }
20830 if test "x$ac_cv_func___res_send" = x""yes; then
20831 :
20832 else
20833 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20834 $as_echo_n "checking for res_send in -lresolv... " >&6; }
20835 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20836 $as_echo_n "(cached) " >&6
20837 else
20838 ac_check_lib_save_LIBS=$LIBS
20839 LIBS="-lresolv $LIBS"
20840 cat >conftest.$ac_ext <<_ACEOF
20841 /* confdefs.h. */
20842 _ACEOF
20843 cat confdefs.h >>conftest.$ac_ext
20844 cat >>conftest.$ac_ext <<_ACEOF
20845 /* end confdefs.h. */
20846
20847 /* Override any GCC internal prototype to avoid an error.
20848 Use char because int might match the return type of a GCC
20849 builtin and then its argument prototype would still apply. */
20850 #ifdef __cplusplus
20851 extern "C"
20852 #endif
20853 char res_send ();
20854 int
20855 main ()
20856 {
20857 return res_send ();
20858 ;
20859 return 0;
20860 }
20861 _ACEOF
20862 rm -f conftest.$ac_objext conftest$ac_exeext
20863 if { (ac_try="$ac_link"
20864 case "(($ac_try" in
20865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20866 *) ac_try_echo=$ac_try;;
20867 esac
20868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20869 $as_echo "$ac_try_echo") >&5
20870 (eval "$ac_link") 2>conftest.er1
20871 ac_status=$?
20872 grep -v '^ *+' conftest.er1 >conftest.err
20873 rm -f conftest.er1
20874 cat conftest.err >&5
20875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } && {
20877 test -z "$ac_c_werror_flag" ||
20878 test ! -s conftest.err
20879 } && test -s conftest$ac_exeext && {
20880 test "$cross_compiling" = yes ||
20881 $as_test_x conftest$ac_exeext
20882 }; then
20883 ac_cv_lib_resolv_res_send=yes
20884 else
20885 $as_echo "$as_me: failed program was:" >&5
20886 sed 's/^/| /' conftest.$ac_ext >&5
20887
20888 ac_cv_lib_resolv_res_send=no
20889 fi
20890
20891 rm -rf conftest.dSYM
20892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20893 conftest$ac_exeext conftest.$ac_ext
20894 LIBS=$ac_check_lib_save_LIBS
20895 fi
20896 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20897 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
20898 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then
20899 resolv=yes
20900 else
20901 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20902 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
20903 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20904 $as_echo_n "(cached) " >&6
20905 else
20906 ac_check_lib_save_LIBS=$LIBS
20907 LIBS="-lresolv $LIBS"
20908 cat >conftest.$ac_ext <<_ACEOF
20909 /* confdefs.h. */
20910 _ACEOF
20911 cat confdefs.h >>conftest.$ac_ext
20912 cat >>conftest.$ac_ext <<_ACEOF
20913 /* end confdefs.h. */
20914
20915 /* Override any GCC internal prototype to avoid an error.
20916 Use char because int might match the return type of a GCC
20917 builtin and then its argument prototype would still apply. */
20918 #ifdef __cplusplus
20919 extern "C"
20920 #endif
20921 char __res_send ();
20922 int
20923 main ()
20924 {
20925 return __res_send ();
20926 ;
20927 return 0;
20928 }
20929 _ACEOF
20930 rm -f conftest.$ac_objext conftest$ac_exeext
20931 if { (ac_try="$ac_link"
20932 case "(($ac_try" in
20933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20934 *) ac_try_echo=$ac_try;;
20935 esac
20936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20937 $as_echo "$ac_try_echo") >&5
20938 (eval "$ac_link") 2>conftest.er1
20939 ac_status=$?
20940 grep -v '^ *+' conftest.er1 >conftest.err
20941 rm -f conftest.er1
20942 cat conftest.err >&5
20943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944 (exit $ac_status); } && {
20945 test -z "$ac_c_werror_flag" ||
20946 test ! -s conftest.err
20947 } && test -s conftest$ac_exeext && {
20948 test "$cross_compiling" = yes ||
20949 $as_test_x conftest$ac_exeext
20950 }; then
20951 ac_cv_lib_resolv___res_send=yes
20952 else
20953 $as_echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20955
20956 ac_cv_lib_resolv___res_send=no
20957 fi
20958
20959 rm -rf conftest.dSYM
20960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20961 conftest$ac_exeext conftest.$ac_ext
20962 LIBS=$ac_check_lib_save_LIBS
20963 fi
20964 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20965 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
20966 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then
20967 resolv=yes
20968 fi
20969
20970 fi
20971
20972 fi
20973
20974 fi
20975
20976 if test "$resolv" = yes ; then
20977 RESOLVLIB=-lresolv
20978 else
20979 RESOLVLIB=
20980 fi
20981 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20982 $as_echo_n "checking for hes_getmailhost... " >&6; }
20983 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20984 $as_echo_n "(cached) " >&6
20985 else
20986 cat >conftest.$ac_ext <<_ACEOF
20987 /* confdefs.h. */
20988 _ACEOF
20989 cat confdefs.h >>conftest.$ac_ext
20990 cat >>conftest.$ac_ext <<_ACEOF
20991 /* end confdefs.h. */
20992 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20994 #define hes_getmailhost innocuous_hes_getmailhost
20995
20996 /* System header to define __stub macros and hopefully few prototypes,
20997 which can conflict with char hes_getmailhost (); below.
20998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20999 <limits.h> exists even on freestanding compilers. */
21000
21001 #ifdef __STDC__
21002 # include <limits.h>
21003 #else
21004 # include <assert.h>
21005 #endif
21006
21007 #undef hes_getmailhost
21008
21009 /* Override any GCC internal prototype to avoid an error.
21010 Use char because int might match the return type of a GCC
21011 builtin and then its argument prototype would still apply. */
21012 #ifdef __cplusplus
21013 extern "C"
21014 #endif
21015 char hes_getmailhost ();
21016 /* The GNU C library defines this for functions which it implements
21017 to always fail with ENOSYS. Some functions are actually named
21018 something starting with __ and the normal name is an alias. */
21019 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21020 choke me
21021 #endif
21022
21023 int
21024 main ()
21025 {
21026 return hes_getmailhost ();
21027 ;
21028 return 0;
21029 }
21030 _ACEOF
21031 rm -f conftest.$ac_objext conftest$ac_exeext
21032 if { (ac_try="$ac_link"
21033 case "(($ac_try" in
21034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21035 *) ac_try_echo=$ac_try;;
21036 esac
21037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21038 $as_echo "$ac_try_echo") >&5
21039 (eval "$ac_link") 2>conftest.er1
21040 ac_status=$?
21041 grep -v '^ *+' conftest.er1 >conftest.err
21042 rm -f conftest.er1
21043 cat conftest.err >&5
21044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); } && {
21046 test -z "$ac_c_werror_flag" ||
21047 test ! -s conftest.err
21048 } && test -s conftest$ac_exeext && {
21049 test "$cross_compiling" = yes ||
21050 $as_test_x conftest$ac_exeext
21051 }; then
21052 ac_cv_func_hes_getmailhost=yes
21053 else
21054 $as_echo "$as_me: failed program was:" >&5
21055 sed 's/^/| /' conftest.$ac_ext >&5
21056
21057 ac_cv_func_hes_getmailhost=no
21058 fi
21059
21060 rm -rf conftest.dSYM
21061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21062 conftest$ac_exeext conftest.$ac_ext
21063 fi
21064 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21065 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21066 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then
21067 :
21068 else
21069 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21070 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21071 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21072 $as_echo_n "(cached) " >&6
21073 else
21074 ac_check_lib_save_LIBS=$LIBS
21075 LIBS="-lhesiod $RESOLVLIB $LIBS"
21076 cat >conftest.$ac_ext <<_ACEOF
21077 /* confdefs.h. */
21078 _ACEOF
21079 cat confdefs.h >>conftest.$ac_ext
21080 cat >>conftest.$ac_ext <<_ACEOF
21081 /* end confdefs.h. */
21082
21083 /* Override any GCC internal prototype to avoid an error.
21084 Use char because int might match the return type of a GCC
21085 builtin and then its argument prototype would still apply. */
21086 #ifdef __cplusplus
21087 extern "C"
21088 #endif
21089 char hes_getmailhost ();
21090 int
21091 main ()
21092 {
21093 return hes_getmailhost ();
21094 ;
21095 return 0;
21096 }
21097 _ACEOF
21098 rm -f conftest.$ac_objext conftest$ac_exeext
21099 if { (ac_try="$ac_link"
21100 case "(($ac_try" in
21101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21102 *) ac_try_echo=$ac_try;;
21103 esac
21104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21105 $as_echo "$ac_try_echo") >&5
21106 (eval "$ac_link") 2>conftest.er1
21107 ac_status=$?
21108 grep -v '^ *+' conftest.er1 >conftest.err
21109 rm -f conftest.er1
21110 cat conftest.err >&5
21111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); } && {
21113 test -z "$ac_c_werror_flag" ||
21114 test ! -s conftest.err
21115 } && test -s conftest$ac_exeext && {
21116 test "$cross_compiling" = yes ||
21117 $as_test_x conftest$ac_exeext
21118 }; then
21119 ac_cv_lib_hesiod_hes_getmailhost=yes
21120 else
21121 $as_echo "$as_me: failed program was:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21123
21124 ac_cv_lib_hesiod_hes_getmailhost=no
21125 fi
21126
21127 rm -rf conftest.dSYM
21128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21129 conftest$ac_exeext conftest.$ac_ext
21130 LIBS=$ac_check_lib_save_LIBS
21131 fi
21132 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21133 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21134 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then
21135
21136 cat >>confdefs.h <<\_ACEOF
21137 #define HAVE_LIBHESIOD 1
21138 _ACEOF
21139
21140 else
21141 :
21142 fi
21143
21144 fi
21145
21146 fi
21147
21148 # Do we need libresolv (due to res_init or Hesiod)?
21149 if test "$resolv" = yes ; then
21150
21151 cat >>confdefs.h <<\_ACEOF
21152 #define HAVE_LIBRESOLV 1
21153 _ACEOF
21154
21155 fi
21156
21157 # These tell us which Kerberos-related libraries to use.
21158 if test "${with_kerberos}" != no; then
21159
21160 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21161 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21162 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21163 $as_echo_n "(cached) " >&6
21164 else
21165 ac_check_lib_save_LIBS=$LIBS
21166 LIBS="-lcom_err $LIBS"
21167 cat >conftest.$ac_ext <<_ACEOF
21168 /* confdefs.h. */
21169 _ACEOF
21170 cat confdefs.h >>conftest.$ac_ext
21171 cat >>conftest.$ac_ext <<_ACEOF
21172 /* end confdefs.h. */
21173
21174 /* Override any GCC internal prototype to avoid an error.
21175 Use char because int might match the return type of a GCC
21176 builtin and then its argument prototype would still apply. */
21177 #ifdef __cplusplus
21178 extern "C"
21179 #endif
21180 char com_err ();
21181 int
21182 main ()
21183 {
21184 return com_err ();
21185 ;
21186 return 0;
21187 }
21188 _ACEOF
21189 rm -f conftest.$ac_objext conftest$ac_exeext
21190 if { (ac_try="$ac_link"
21191 case "(($ac_try" in
21192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21193 *) ac_try_echo=$ac_try;;
21194 esac
21195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21196 $as_echo "$ac_try_echo") >&5
21197 (eval "$ac_link") 2>conftest.er1
21198 ac_status=$?
21199 grep -v '^ *+' conftest.er1 >conftest.err
21200 rm -f conftest.er1
21201 cat conftest.err >&5
21202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); } && {
21204 test -z "$ac_c_werror_flag" ||
21205 test ! -s conftest.err
21206 } && test -s conftest$ac_exeext && {
21207 test "$cross_compiling" = yes ||
21208 $as_test_x conftest$ac_exeext
21209 }; then
21210 ac_cv_lib_com_err_com_err=yes
21211 else
21212 $as_echo "$as_me: failed program was:" >&5
21213 sed 's/^/| /' conftest.$ac_ext >&5
21214
21215 ac_cv_lib_com_err_com_err=no
21216 fi
21217
21218 rm -rf conftest.dSYM
21219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21220 conftest$ac_exeext conftest.$ac_ext
21221 LIBS=$ac_check_lib_save_LIBS
21222 fi
21223 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21224 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21225 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then
21226 cat >>confdefs.h <<_ACEOF
21227 #define HAVE_LIBCOM_ERR 1
21228 _ACEOF
21229
21230 LIBS="-lcom_err $LIBS"
21231
21232 fi
21233
21234
21235 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21236 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21237 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21238 $as_echo_n "(cached) " >&6
21239 else
21240 ac_check_lib_save_LIBS=$LIBS
21241 LIBS="-lk5crypto $LIBS"
21242 cat >conftest.$ac_ext <<_ACEOF
21243 /* confdefs.h. */
21244 _ACEOF
21245 cat confdefs.h >>conftest.$ac_ext
21246 cat >>conftest.$ac_ext <<_ACEOF
21247 /* end confdefs.h. */
21248
21249 /* Override any GCC internal prototype to avoid an error.
21250 Use char because int might match the return type of a GCC
21251 builtin and then its argument prototype would still apply. */
21252 #ifdef __cplusplus
21253 extern "C"
21254 #endif
21255 char mit_des_cbc_encrypt ();
21256 int
21257 main ()
21258 {
21259 return mit_des_cbc_encrypt ();
21260 ;
21261 return 0;
21262 }
21263 _ACEOF
21264 rm -f conftest.$ac_objext conftest$ac_exeext
21265 if { (ac_try="$ac_link"
21266 case "(($ac_try" in
21267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21268 *) ac_try_echo=$ac_try;;
21269 esac
21270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21271 $as_echo "$ac_try_echo") >&5
21272 (eval "$ac_link") 2>conftest.er1
21273 ac_status=$?
21274 grep -v '^ *+' conftest.er1 >conftest.err
21275 rm -f conftest.er1
21276 cat conftest.err >&5
21277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); } && {
21279 test -z "$ac_c_werror_flag" ||
21280 test ! -s conftest.err
21281 } && test -s conftest$ac_exeext && {
21282 test "$cross_compiling" = yes ||
21283 $as_test_x conftest$ac_exeext
21284 }; then
21285 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21286 else
21287 $as_echo "$as_me: failed program was:" >&5
21288 sed 's/^/| /' conftest.$ac_ext >&5
21289
21290 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21291 fi
21292
21293 rm -rf conftest.dSYM
21294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21295 conftest$ac_exeext conftest.$ac_ext
21296 LIBS=$ac_check_lib_save_LIBS
21297 fi
21298 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21299 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21300 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then
21301 cat >>confdefs.h <<_ACEOF
21302 #define HAVE_LIBK5CRYPTO 1
21303 _ACEOF
21304
21305 LIBS="-lk5crypto $LIBS"
21306
21307 fi
21308
21309
21310 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21311 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21312 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21313 $as_echo_n "(cached) " >&6
21314 else
21315 ac_check_lib_save_LIBS=$LIBS
21316 LIBS="-lcrypto $LIBS"
21317 cat >conftest.$ac_ext <<_ACEOF
21318 /* confdefs.h. */
21319 _ACEOF
21320 cat confdefs.h >>conftest.$ac_ext
21321 cat >>conftest.$ac_ext <<_ACEOF
21322 /* end confdefs.h. */
21323
21324 /* Override any GCC internal prototype to avoid an error.
21325 Use char because int might match the return type of a GCC
21326 builtin and then its argument prototype would still apply. */
21327 #ifdef __cplusplus
21328 extern "C"
21329 #endif
21330 char mit_des_cbc_encrypt ();
21331 int
21332 main ()
21333 {
21334 return mit_des_cbc_encrypt ();
21335 ;
21336 return 0;
21337 }
21338 _ACEOF
21339 rm -f conftest.$ac_objext conftest$ac_exeext
21340 if { (ac_try="$ac_link"
21341 case "(($ac_try" in
21342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21343 *) ac_try_echo=$ac_try;;
21344 esac
21345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21346 $as_echo "$ac_try_echo") >&5
21347 (eval "$ac_link") 2>conftest.er1
21348 ac_status=$?
21349 grep -v '^ *+' conftest.er1 >conftest.err
21350 rm -f conftest.er1
21351 cat conftest.err >&5
21352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); } && {
21354 test -z "$ac_c_werror_flag" ||
21355 test ! -s conftest.err
21356 } && test -s conftest$ac_exeext && {
21357 test "$cross_compiling" = yes ||
21358 $as_test_x conftest$ac_exeext
21359 }; then
21360 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21361 else
21362 $as_echo "$as_me: failed program was:" >&5
21363 sed 's/^/| /' conftest.$ac_ext >&5
21364
21365 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21366 fi
21367
21368 rm -rf conftest.dSYM
21369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21370 conftest$ac_exeext conftest.$ac_ext
21371 LIBS=$ac_check_lib_save_LIBS
21372 fi
21373 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21374 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21375 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then
21376 cat >>confdefs.h <<_ACEOF
21377 #define HAVE_LIBCRYPTO 1
21378 _ACEOF
21379
21380 LIBS="-lcrypto $LIBS"
21381
21382 fi
21383
21384
21385 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
21386 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21387 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
21388 $as_echo_n "(cached) " >&6
21389 else
21390 ac_check_lib_save_LIBS=$LIBS
21391 LIBS="-lkrb5 $LIBS"
21392 cat >conftest.$ac_ext <<_ACEOF
21393 /* confdefs.h. */
21394 _ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h. */
21398
21399 /* Override any GCC internal prototype to avoid an error.
21400 Use char because int might match the return type of a GCC
21401 builtin and then its argument prototype would still apply. */
21402 #ifdef __cplusplus
21403 extern "C"
21404 #endif
21405 char krb5_init_context ();
21406 int
21407 main ()
21408 {
21409 return krb5_init_context ();
21410 ;
21411 return 0;
21412 }
21413 _ACEOF
21414 rm -f conftest.$ac_objext conftest$ac_exeext
21415 if { (ac_try="$ac_link"
21416 case "(($ac_try" in
21417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21418 *) ac_try_echo=$ac_try;;
21419 esac
21420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21421 $as_echo "$ac_try_echo") >&5
21422 (eval "$ac_link") 2>conftest.er1
21423 ac_status=$?
21424 grep -v '^ *+' conftest.er1 >conftest.err
21425 rm -f conftest.er1
21426 cat conftest.err >&5
21427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } && {
21429 test -z "$ac_c_werror_flag" ||
21430 test ! -s conftest.err
21431 } && test -s conftest$ac_exeext && {
21432 test "$cross_compiling" = yes ||
21433 $as_test_x conftest$ac_exeext
21434 }; then
21435 ac_cv_lib_krb5_krb5_init_context=yes
21436 else
21437 $as_echo "$as_me: failed program was:" >&5
21438 sed 's/^/| /' conftest.$ac_ext >&5
21439
21440 ac_cv_lib_krb5_krb5_init_context=no
21441 fi
21442
21443 rm -rf conftest.dSYM
21444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21445 conftest$ac_exeext conftest.$ac_ext
21446 LIBS=$ac_check_lib_save_LIBS
21447 fi
21448 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21449 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21450 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then
21451 cat >>confdefs.h <<_ACEOF
21452 #define HAVE_LIBKRB5 1
21453 _ACEOF
21454
21455 LIBS="-lkrb5 $LIBS"
21456
21457 fi
21458
21459 if test "${with_kerberos5}" = no; then
21460
21461 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
21462 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21463 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21464 $as_echo_n "(cached) " >&6
21465 else
21466 ac_check_lib_save_LIBS=$LIBS
21467 LIBS="-ldes425 $LIBS"
21468 cat >conftest.$ac_ext <<_ACEOF
21469 /* confdefs.h. */
21470 _ACEOF
21471 cat confdefs.h >>conftest.$ac_ext
21472 cat >>conftest.$ac_ext <<_ACEOF
21473 /* end confdefs.h. */
21474
21475 /* Override any GCC internal prototype to avoid an error.
21476 Use char because int might match the return type of a GCC
21477 builtin and then its argument prototype would still apply. */
21478 #ifdef __cplusplus
21479 extern "C"
21480 #endif
21481 char des_cbc_encrypt ();
21482 int
21483 main ()
21484 {
21485 return des_cbc_encrypt ();
21486 ;
21487 return 0;
21488 }
21489 _ACEOF
21490 rm -f conftest.$ac_objext conftest$ac_exeext
21491 if { (ac_try="$ac_link"
21492 case "(($ac_try" in
21493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21494 *) ac_try_echo=$ac_try;;
21495 esac
21496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21497 $as_echo "$ac_try_echo") >&5
21498 (eval "$ac_link") 2>conftest.er1
21499 ac_status=$?
21500 grep -v '^ *+' conftest.er1 >conftest.err
21501 rm -f conftest.er1
21502 cat conftest.err >&5
21503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } && {
21505 test -z "$ac_c_werror_flag" ||
21506 test ! -s conftest.err
21507 } && test -s conftest$ac_exeext && {
21508 test "$cross_compiling" = yes ||
21509 $as_test_x conftest$ac_exeext
21510 }; then
21511 ac_cv_lib_des425_des_cbc_encrypt=yes
21512 else
21513 $as_echo "$as_me: failed program was:" >&5
21514 sed 's/^/| /' conftest.$ac_ext >&5
21515
21516 ac_cv_lib_des425_des_cbc_encrypt=no
21517 fi
21518
21519 rm -rf conftest.dSYM
21520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21521 conftest$ac_exeext conftest.$ac_ext
21522 LIBS=$ac_check_lib_save_LIBS
21523 fi
21524 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21525 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21526 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then
21527 cat >>confdefs.h <<_ACEOF
21528 #define HAVE_LIBDES425 1
21529 _ACEOF
21530
21531 LIBS="-ldes425 $LIBS"
21532
21533 else
21534
21535 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
21536 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21537 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21538 $as_echo_n "(cached) " >&6
21539 else
21540 ac_check_lib_save_LIBS=$LIBS
21541 LIBS="-ldes $LIBS"
21542 cat >conftest.$ac_ext <<_ACEOF
21543 /* confdefs.h. */
21544 _ACEOF
21545 cat confdefs.h >>conftest.$ac_ext
21546 cat >>conftest.$ac_ext <<_ACEOF
21547 /* end confdefs.h. */
21548
21549 /* Override any GCC internal prototype to avoid an error.
21550 Use char because int might match the return type of a GCC
21551 builtin and then its argument prototype would still apply. */
21552 #ifdef __cplusplus
21553 extern "C"
21554 #endif
21555 char des_cbc_encrypt ();
21556 int
21557 main ()
21558 {
21559 return des_cbc_encrypt ();
21560 ;
21561 return 0;
21562 }
21563 _ACEOF
21564 rm -f conftest.$ac_objext conftest$ac_exeext
21565 if { (ac_try="$ac_link"
21566 case "(($ac_try" in
21567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21568 *) ac_try_echo=$ac_try;;
21569 esac
21570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21571 $as_echo "$ac_try_echo") >&5
21572 (eval "$ac_link") 2>conftest.er1
21573 ac_status=$?
21574 grep -v '^ *+' conftest.er1 >conftest.err
21575 rm -f conftest.er1
21576 cat conftest.err >&5
21577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); } && {
21579 test -z "$ac_c_werror_flag" ||
21580 test ! -s conftest.err
21581 } && test -s conftest$ac_exeext && {
21582 test "$cross_compiling" = yes ||
21583 $as_test_x conftest$ac_exeext
21584 }; then
21585 ac_cv_lib_des_des_cbc_encrypt=yes
21586 else
21587 $as_echo "$as_me: failed program was:" >&5
21588 sed 's/^/| /' conftest.$ac_ext >&5
21589
21590 ac_cv_lib_des_des_cbc_encrypt=no
21591 fi
21592
21593 rm -rf conftest.dSYM
21594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21595 conftest$ac_exeext conftest.$ac_ext
21596 LIBS=$ac_check_lib_save_LIBS
21597 fi
21598 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
21599 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21600 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then
21601 cat >>confdefs.h <<_ACEOF
21602 #define HAVE_LIBDES 1
21603 _ACEOF
21604
21605 LIBS="-ldes $LIBS"
21606
21607 fi
21608
21609 fi
21610
21611
21612 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
21613 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
21614 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21615 $as_echo_n "(cached) " >&6
21616 else
21617 ac_check_lib_save_LIBS=$LIBS
21618 LIBS="-lkrb4 $LIBS"
21619 cat >conftest.$ac_ext <<_ACEOF
21620 /* confdefs.h. */
21621 _ACEOF
21622 cat confdefs.h >>conftest.$ac_ext
21623 cat >>conftest.$ac_ext <<_ACEOF
21624 /* end confdefs.h. */
21625
21626 /* Override any GCC internal prototype to avoid an error.
21627 Use char because int might match the return type of a GCC
21628 builtin and then its argument prototype would still apply. */
21629 #ifdef __cplusplus
21630 extern "C"
21631 #endif
21632 char krb_get_cred ();
21633 int
21634 main ()
21635 {
21636 return krb_get_cred ();
21637 ;
21638 return 0;
21639 }
21640 _ACEOF
21641 rm -f conftest.$ac_objext conftest$ac_exeext
21642 if { (ac_try="$ac_link"
21643 case "(($ac_try" in
21644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21645 *) ac_try_echo=$ac_try;;
21646 esac
21647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21648 $as_echo "$ac_try_echo") >&5
21649 (eval "$ac_link") 2>conftest.er1
21650 ac_status=$?
21651 grep -v '^ *+' conftest.er1 >conftest.err
21652 rm -f conftest.er1
21653 cat conftest.err >&5
21654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655 (exit $ac_status); } && {
21656 test -z "$ac_c_werror_flag" ||
21657 test ! -s conftest.err
21658 } && test -s conftest$ac_exeext && {
21659 test "$cross_compiling" = yes ||
21660 $as_test_x conftest$ac_exeext
21661 }; then
21662 ac_cv_lib_krb4_krb_get_cred=yes
21663 else
21664 $as_echo "$as_me: failed program was:" >&5
21665 sed 's/^/| /' conftest.$ac_ext >&5
21666
21667 ac_cv_lib_krb4_krb_get_cred=no
21668 fi
21669
21670 rm -rf conftest.dSYM
21671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21672 conftest$ac_exeext conftest.$ac_ext
21673 LIBS=$ac_check_lib_save_LIBS
21674 fi
21675 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
21676 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
21677 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then
21678 cat >>confdefs.h <<_ACEOF
21679 #define HAVE_LIBKRB4 1
21680 _ACEOF
21681
21682 LIBS="-lkrb4 $LIBS"
21683
21684 else
21685
21686 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
21687 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
21688 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21689 $as_echo_n "(cached) " >&6
21690 else
21691 ac_check_lib_save_LIBS=$LIBS
21692 LIBS="-lkrb $LIBS"
21693 cat >conftest.$ac_ext <<_ACEOF
21694 /* confdefs.h. */
21695 _ACEOF
21696 cat confdefs.h >>conftest.$ac_ext
21697 cat >>conftest.$ac_ext <<_ACEOF
21698 /* end confdefs.h. */
21699
21700 /* Override any GCC internal prototype to avoid an error.
21701 Use char because int might match the return type of a GCC
21702 builtin and then its argument prototype would still apply. */
21703 #ifdef __cplusplus
21704 extern "C"
21705 #endif
21706 char krb_get_cred ();
21707 int
21708 main ()
21709 {
21710 return krb_get_cred ();
21711 ;
21712 return 0;
21713 }
21714 _ACEOF
21715 rm -f conftest.$ac_objext conftest$ac_exeext
21716 if { (ac_try="$ac_link"
21717 case "(($ac_try" in
21718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21719 *) ac_try_echo=$ac_try;;
21720 esac
21721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21722 $as_echo "$ac_try_echo") >&5
21723 (eval "$ac_link") 2>conftest.er1
21724 ac_status=$?
21725 grep -v '^ *+' conftest.er1 >conftest.err
21726 rm -f conftest.er1
21727 cat conftest.err >&5
21728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); } && {
21730 test -z "$ac_c_werror_flag" ||
21731 test ! -s conftest.err
21732 } && test -s conftest$ac_exeext && {
21733 test "$cross_compiling" = yes ||
21734 $as_test_x conftest$ac_exeext
21735 }; then
21736 ac_cv_lib_krb_krb_get_cred=yes
21737 else
21738 $as_echo "$as_me: failed program was:" >&5
21739 sed 's/^/| /' conftest.$ac_ext >&5
21740
21741 ac_cv_lib_krb_krb_get_cred=no
21742 fi
21743
21744 rm -rf conftest.dSYM
21745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21746 conftest$ac_exeext conftest.$ac_ext
21747 LIBS=$ac_check_lib_save_LIBS
21748 fi
21749 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
21750 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
21751 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then
21752 cat >>confdefs.h <<_ACEOF
21753 #define HAVE_LIBKRB 1
21754 _ACEOF
21755
21756 LIBS="-lkrb $LIBS"
21757
21758 fi
21759
21760 fi
21761
21762 fi
21763
21764 if test "${with_kerberos5}" != no; then
21765
21766 for ac_header in krb5.h
21767 do
21768 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21770 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21771 $as_echo_n "checking for $ac_header... " >&6; }
21772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21773 $as_echo_n "(cached) " >&6
21774 fi
21775 ac_res=`eval 'as_val=${'$as_ac_Header'}
21776 $as_echo "$as_val"'`
21777 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21778 $as_echo "$ac_res" >&6; }
21779 else
21780 # Is the header compilable?
21781 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21782 $as_echo_n "checking $ac_header usability... " >&6; }
21783 cat >conftest.$ac_ext <<_ACEOF
21784 /* confdefs.h. */
21785 _ACEOF
21786 cat confdefs.h >>conftest.$ac_ext
21787 cat >>conftest.$ac_ext <<_ACEOF
21788 /* end confdefs.h. */
21789 $ac_includes_default
21790 #include <$ac_header>
21791 _ACEOF
21792 rm -f conftest.$ac_objext
21793 if { (ac_try="$ac_compile"
21794 case "(($ac_try" in
21795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21796 *) ac_try_echo=$ac_try;;
21797 esac
21798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21799 $as_echo "$ac_try_echo") >&5
21800 (eval "$ac_compile") 2>conftest.er1
21801 ac_status=$?
21802 grep -v '^ *+' conftest.er1 >conftest.err
21803 rm -f conftest.er1
21804 cat conftest.err >&5
21805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); } && {
21807 test -z "$ac_c_werror_flag" ||
21808 test ! -s conftest.err
21809 } && test -s conftest.$ac_objext; then
21810 ac_header_compiler=yes
21811 else
21812 $as_echo "$as_me: failed program was:" >&5
21813 sed 's/^/| /' conftest.$ac_ext >&5
21814
21815 ac_header_compiler=no
21816 fi
21817
21818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21819 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21820 $as_echo "$ac_header_compiler" >&6; }
21821
21822 # Is the header present?
21823 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21824 $as_echo_n "checking $ac_header presence... " >&6; }
21825 cat >conftest.$ac_ext <<_ACEOF
21826 /* confdefs.h. */
21827 _ACEOF
21828 cat confdefs.h >>conftest.$ac_ext
21829 cat >>conftest.$ac_ext <<_ACEOF
21830 /* end confdefs.h. */
21831 #include <$ac_header>
21832 _ACEOF
21833 if { (ac_try="$ac_cpp conftest.$ac_ext"
21834 case "(($ac_try" in
21835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21836 *) ac_try_echo=$ac_try;;
21837 esac
21838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21839 $as_echo "$ac_try_echo") >&5
21840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21841 ac_status=$?
21842 grep -v '^ *+' conftest.er1 >conftest.err
21843 rm -f conftest.er1
21844 cat conftest.err >&5
21845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); } >/dev/null && {
21847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21848 test ! -s conftest.err
21849 }; then
21850 ac_header_preproc=yes
21851 else
21852 $as_echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21854
21855 ac_header_preproc=no
21856 fi
21857
21858 rm -f conftest.err conftest.$ac_ext
21859 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21860 $as_echo "$ac_header_preproc" >&6; }
21861
21862 # So? What about this header?
21863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21864 yes:no: )
21865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21866 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21868 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21869 ac_header_preproc=yes
21870 ;;
21871 no:yes:* )
21872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21873 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21875 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21877 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21879 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21881 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21883 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21884
21885 ;;
21886 esac
21887 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21888 $as_echo_n "checking for $ac_header... " >&6; }
21889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21890 $as_echo_n "(cached) " >&6
21891 else
21892 eval "$as_ac_Header=\$ac_header_preproc"
21893 fi
21894 ac_res=`eval 'as_val=${'$as_ac_Header'}
21895 $as_echo "$as_val"'`
21896 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21897 $as_echo "$ac_res" >&6; }
21898
21899 fi
21900 as_val=`eval 'as_val=${'$as_ac_Header'}
21901 $as_echo "$as_val"'`
21902 if test "x$as_val" = x""yes; then
21903 cat >>confdefs.h <<_ACEOF
21904 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21905 _ACEOF
21906 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
21907 $as_echo_n "checking for krb5_error.text... " >&6; }
21908 if test "${ac_cv_member_krb5_error_text+set}" = set; then
21909 $as_echo_n "(cached) " >&6
21910 else
21911 cat >conftest.$ac_ext <<_ACEOF
21912 /* confdefs.h. */
21913 _ACEOF
21914 cat confdefs.h >>conftest.$ac_ext
21915 cat >>conftest.$ac_ext <<_ACEOF
21916 /* end confdefs.h. */
21917 #include <krb5.h>
21918
21919 int
21920 main ()
21921 {
21922 static krb5_error ac_aggr;
21923 if (ac_aggr.text)
21924 return 0;
21925 ;
21926 return 0;
21927 }
21928 _ACEOF
21929 rm -f conftest.$ac_objext
21930 if { (ac_try="$ac_compile"
21931 case "(($ac_try" in
21932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21933 *) ac_try_echo=$ac_try;;
21934 esac
21935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21936 $as_echo "$ac_try_echo") >&5
21937 (eval "$ac_compile") 2>conftest.er1
21938 ac_status=$?
21939 grep -v '^ *+' conftest.er1 >conftest.err
21940 rm -f conftest.er1
21941 cat conftest.err >&5
21942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); } && {
21944 test -z "$ac_c_werror_flag" ||
21945 test ! -s conftest.err
21946 } && test -s conftest.$ac_objext; then
21947 ac_cv_member_krb5_error_text=yes
21948 else
21949 $as_echo "$as_me: failed program was:" >&5
21950 sed 's/^/| /' conftest.$ac_ext >&5
21951
21952 cat >conftest.$ac_ext <<_ACEOF
21953 /* confdefs.h. */
21954 _ACEOF
21955 cat confdefs.h >>conftest.$ac_ext
21956 cat >>conftest.$ac_ext <<_ACEOF
21957 /* end confdefs.h. */
21958 #include <krb5.h>
21959
21960 int
21961 main ()
21962 {
21963 static krb5_error ac_aggr;
21964 if (sizeof ac_aggr.text)
21965 return 0;
21966 ;
21967 return 0;
21968 }
21969 _ACEOF
21970 rm -f conftest.$ac_objext
21971 if { (ac_try="$ac_compile"
21972 case "(($ac_try" in
21973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974 *) ac_try_echo=$ac_try;;
21975 esac
21976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21977 $as_echo "$ac_try_echo") >&5
21978 (eval "$ac_compile") 2>conftest.er1
21979 ac_status=$?
21980 grep -v '^ *+' conftest.er1 >conftest.err
21981 rm -f conftest.er1
21982 cat conftest.err >&5
21983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); } && {
21985 test -z "$ac_c_werror_flag" ||
21986 test ! -s conftest.err
21987 } && test -s conftest.$ac_objext; then
21988 ac_cv_member_krb5_error_text=yes
21989 else
21990 $as_echo "$as_me: failed program was:" >&5
21991 sed 's/^/| /' conftest.$ac_ext >&5
21992
21993 ac_cv_member_krb5_error_text=no
21994 fi
21995
21996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21997 fi
21998
21999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22000 fi
22001 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22002 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22003 if test "x$ac_cv_member_krb5_error_text" = x""yes; then
22004
22005 cat >>confdefs.h <<_ACEOF
22006 #define HAVE_KRB5_ERROR_TEXT 1
22007 _ACEOF
22008
22009
22010 fi
22011 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22012 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22013 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22014 $as_echo_n "(cached) " >&6
22015 else
22016 cat >conftest.$ac_ext <<_ACEOF
22017 /* confdefs.h. */
22018 _ACEOF
22019 cat confdefs.h >>conftest.$ac_ext
22020 cat >>conftest.$ac_ext <<_ACEOF
22021 /* end confdefs.h. */
22022 #include <krb5.h>
22023
22024 int
22025 main ()
22026 {
22027 static krb5_error ac_aggr;
22028 if (ac_aggr.e_text)
22029 return 0;
22030 ;
22031 return 0;
22032 }
22033 _ACEOF
22034 rm -f conftest.$ac_objext
22035 if { (ac_try="$ac_compile"
22036 case "(($ac_try" in
22037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22038 *) ac_try_echo=$ac_try;;
22039 esac
22040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22041 $as_echo "$ac_try_echo") >&5
22042 (eval "$ac_compile") 2>conftest.er1
22043 ac_status=$?
22044 grep -v '^ *+' conftest.er1 >conftest.err
22045 rm -f conftest.er1
22046 cat conftest.err >&5
22047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048 (exit $ac_status); } && {
22049 test -z "$ac_c_werror_flag" ||
22050 test ! -s conftest.err
22051 } && test -s conftest.$ac_objext; then
22052 ac_cv_member_krb5_error_e_text=yes
22053 else
22054 $as_echo "$as_me: failed program was:" >&5
22055 sed 's/^/| /' conftest.$ac_ext >&5
22056
22057 cat >conftest.$ac_ext <<_ACEOF
22058 /* confdefs.h. */
22059 _ACEOF
22060 cat confdefs.h >>conftest.$ac_ext
22061 cat >>conftest.$ac_ext <<_ACEOF
22062 /* end confdefs.h. */
22063 #include <krb5.h>
22064
22065 int
22066 main ()
22067 {
22068 static krb5_error ac_aggr;
22069 if (sizeof ac_aggr.e_text)
22070 return 0;
22071 ;
22072 return 0;
22073 }
22074 _ACEOF
22075 rm -f conftest.$ac_objext
22076 if { (ac_try="$ac_compile"
22077 case "(($ac_try" in
22078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22079 *) ac_try_echo=$ac_try;;
22080 esac
22081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22082 $as_echo "$ac_try_echo") >&5
22083 (eval "$ac_compile") 2>conftest.er1
22084 ac_status=$?
22085 grep -v '^ *+' conftest.er1 >conftest.err
22086 rm -f conftest.er1
22087 cat conftest.err >&5
22088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); } && {
22090 test -z "$ac_c_werror_flag" ||
22091 test ! -s conftest.err
22092 } && test -s conftest.$ac_objext; then
22093 ac_cv_member_krb5_error_e_text=yes
22094 else
22095 $as_echo "$as_me: failed program was:" >&5
22096 sed 's/^/| /' conftest.$ac_ext >&5
22097
22098 ac_cv_member_krb5_error_e_text=no
22099 fi
22100
22101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22102 fi
22103
22104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22105 fi
22106 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22107 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22108 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then
22109
22110 cat >>confdefs.h <<_ACEOF
22111 #define HAVE_KRB5_ERROR_E_TEXT 1
22112 _ACEOF
22113
22114
22115 fi
22116
22117 fi
22118
22119 done
22120
22121 else
22122
22123 for ac_header in des.h
22124 do
22125 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22127 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22128 $as_echo_n "checking for $ac_header... " >&6; }
22129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22130 $as_echo_n "(cached) " >&6
22131 fi
22132 ac_res=`eval 'as_val=${'$as_ac_Header'}
22133 $as_echo "$as_val"'`
22134 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22135 $as_echo "$ac_res" >&6; }
22136 else
22137 # Is the header compilable?
22138 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22139 $as_echo_n "checking $ac_header usability... " >&6; }
22140 cat >conftest.$ac_ext <<_ACEOF
22141 /* confdefs.h. */
22142 _ACEOF
22143 cat confdefs.h >>conftest.$ac_ext
22144 cat >>conftest.$ac_ext <<_ACEOF
22145 /* end confdefs.h. */
22146 $ac_includes_default
22147 #include <$ac_header>
22148 _ACEOF
22149 rm -f conftest.$ac_objext
22150 if { (ac_try="$ac_compile"
22151 case "(($ac_try" in
22152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22153 *) ac_try_echo=$ac_try;;
22154 esac
22155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22156 $as_echo "$ac_try_echo") >&5
22157 (eval "$ac_compile") 2>conftest.er1
22158 ac_status=$?
22159 grep -v '^ *+' conftest.er1 >conftest.err
22160 rm -f conftest.er1
22161 cat conftest.err >&5
22162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); } && {
22164 test -z "$ac_c_werror_flag" ||
22165 test ! -s conftest.err
22166 } && test -s conftest.$ac_objext; then
22167 ac_header_compiler=yes
22168 else
22169 $as_echo "$as_me: failed program was:" >&5
22170 sed 's/^/| /' conftest.$ac_ext >&5
22171
22172 ac_header_compiler=no
22173 fi
22174
22175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22176 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22177 $as_echo "$ac_header_compiler" >&6; }
22178
22179 # Is the header present?
22180 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22181 $as_echo_n "checking $ac_header presence... " >&6; }
22182 cat >conftest.$ac_ext <<_ACEOF
22183 /* confdefs.h. */
22184 _ACEOF
22185 cat confdefs.h >>conftest.$ac_ext
22186 cat >>conftest.$ac_ext <<_ACEOF
22187 /* end confdefs.h. */
22188 #include <$ac_header>
22189 _ACEOF
22190 if { (ac_try="$ac_cpp conftest.$ac_ext"
22191 case "(($ac_try" in
22192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22193 *) ac_try_echo=$ac_try;;
22194 esac
22195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22196 $as_echo "$ac_try_echo") >&5
22197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22198 ac_status=$?
22199 grep -v '^ *+' conftest.er1 >conftest.err
22200 rm -f conftest.er1
22201 cat conftest.err >&5
22202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); } >/dev/null && {
22204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22205 test ! -s conftest.err
22206 }; then
22207 ac_header_preproc=yes
22208 else
22209 $as_echo "$as_me: failed program was:" >&5
22210 sed 's/^/| /' conftest.$ac_ext >&5
22211
22212 ac_header_preproc=no
22213 fi
22214
22215 rm -f conftest.err conftest.$ac_ext
22216 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22217 $as_echo "$ac_header_preproc" >&6; }
22218
22219 # So? What about this header?
22220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22221 yes:no: )
22222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22223 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22225 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22226 ac_header_preproc=yes
22227 ;;
22228 no:yes:* )
22229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22230 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22232 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22234 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22236 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22238 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22240 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22241
22242 ;;
22243 esac
22244 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22245 $as_echo_n "checking for $ac_header... " >&6; }
22246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22247 $as_echo_n "(cached) " >&6
22248 else
22249 eval "$as_ac_Header=\$ac_header_preproc"
22250 fi
22251 ac_res=`eval 'as_val=${'$as_ac_Header'}
22252 $as_echo "$as_val"'`
22253 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22254 $as_echo "$ac_res" >&6; }
22255
22256 fi
22257 as_val=`eval 'as_val=${'$as_ac_Header'}
22258 $as_echo "$as_val"'`
22259 if test "x$as_val" = x""yes; then
22260 cat >>confdefs.h <<_ACEOF
22261 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22262 _ACEOF
22263
22264 else
22265
22266 for ac_header in kerberosIV/des.h
22267 do
22268 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22270 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22271 $as_echo_n "checking for $ac_header... " >&6; }
22272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22273 $as_echo_n "(cached) " >&6
22274 fi
22275 ac_res=`eval 'as_val=${'$as_ac_Header'}
22276 $as_echo "$as_val"'`
22277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22278 $as_echo "$ac_res" >&6; }
22279 else
22280 # Is the header compilable?
22281 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22282 $as_echo_n "checking $ac_header usability... " >&6; }
22283 cat >conftest.$ac_ext <<_ACEOF
22284 /* confdefs.h. */
22285 _ACEOF
22286 cat confdefs.h >>conftest.$ac_ext
22287 cat >>conftest.$ac_ext <<_ACEOF
22288 /* end confdefs.h. */
22289 $ac_includes_default
22290 #include <$ac_header>
22291 _ACEOF
22292 rm -f conftest.$ac_objext
22293 if { (ac_try="$ac_compile"
22294 case "(($ac_try" in
22295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22296 *) ac_try_echo=$ac_try;;
22297 esac
22298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22299 $as_echo "$ac_try_echo") >&5
22300 (eval "$ac_compile") 2>conftest.er1
22301 ac_status=$?
22302 grep -v '^ *+' conftest.er1 >conftest.err
22303 rm -f conftest.er1
22304 cat conftest.err >&5
22305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } && {
22307 test -z "$ac_c_werror_flag" ||
22308 test ! -s conftest.err
22309 } && test -s conftest.$ac_objext; then
22310 ac_header_compiler=yes
22311 else
22312 $as_echo "$as_me: failed program was:" >&5
22313 sed 's/^/| /' conftest.$ac_ext >&5
22314
22315 ac_header_compiler=no
22316 fi
22317
22318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22319 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22320 $as_echo "$ac_header_compiler" >&6; }
22321
22322 # Is the header present?
22323 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22324 $as_echo_n "checking $ac_header presence... " >&6; }
22325 cat >conftest.$ac_ext <<_ACEOF
22326 /* confdefs.h. */
22327 _ACEOF
22328 cat confdefs.h >>conftest.$ac_ext
22329 cat >>conftest.$ac_ext <<_ACEOF
22330 /* end confdefs.h. */
22331 #include <$ac_header>
22332 _ACEOF
22333 if { (ac_try="$ac_cpp conftest.$ac_ext"
22334 case "(($ac_try" in
22335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22336 *) ac_try_echo=$ac_try;;
22337 esac
22338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22339 $as_echo "$ac_try_echo") >&5
22340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22341 ac_status=$?
22342 grep -v '^ *+' conftest.er1 >conftest.err
22343 rm -f conftest.er1
22344 cat conftest.err >&5
22345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); } >/dev/null && {
22347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22348 test ! -s conftest.err
22349 }; then
22350 ac_header_preproc=yes
22351 else
22352 $as_echo "$as_me: failed program was:" >&5
22353 sed 's/^/| /' conftest.$ac_ext >&5
22354
22355 ac_header_preproc=no
22356 fi
22357
22358 rm -f conftest.err conftest.$ac_ext
22359 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22360 $as_echo "$ac_header_preproc" >&6; }
22361
22362 # So? What about this header?
22363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22364 yes:no: )
22365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22366 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22368 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22369 ac_header_preproc=yes
22370 ;;
22371 no:yes:* )
22372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22373 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22375 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22377 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22379 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22381 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22383 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22384
22385 ;;
22386 esac
22387 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22388 $as_echo_n "checking for $ac_header... " >&6; }
22389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22390 $as_echo_n "(cached) " >&6
22391 else
22392 eval "$as_ac_Header=\$ac_header_preproc"
22393 fi
22394 ac_res=`eval 'as_val=${'$as_ac_Header'}
22395 $as_echo "$as_val"'`
22396 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22397 $as_echo "$ac_res" >&6; }
22398
22399 fi
22400 as_val=`eval 'as_val=${'$as_ac_Header'}
22401 $as_echo "$as_val"'`
22402 if test "x$as_val" = x""yes; then
22403 cat >>confdefs.h <<_ACEOF
22404 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22405 _ACEOF
22406
22407 else
22408
22409 for ac_header in kerberos/des.h
22410 do
22411 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22413 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22414 $as_echo_n "checking for $ac_header... " >&6; }
22415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22416 $as_echo_n "(cached) " >&6
22417 fi
22418 ac_res=`eval 'as_val=${'$as_ac_Header'}
22419 $as_echo "$as_val"'`
22420 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22421 $as_echo "$ac_res" >&6; }
22422 else
22423 # Is the header compilable?
22424 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22425 $as_echo_n "checking $ac_header usability... " >&6; }
22426 cat >conftest.$ac_ext <<_ACEOF
22427 /* confdefs.h. */
22428 _ACEOF
22429 cat confdefs.h >>conftest.$ac_ext
22430 cat >>conftest.$ac_ext <<_ACEOF
22431 /* end confdefs.h. */
22432 $ac_includes_default
22433 #include <$ac_header>
22434 _ACEOF
22435 rm -f conftest.$ac_objext
22436 if { (ac_try="$ac_compile"
22437 case "(($ac_try" in
22438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22439 *) ac_try_echo=$ac_try;;
22440 esac
22441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22442 $as_echo "$ac_try_echo") >&5
22443 (eval "$ac_compile") 2>conftest.er1
22444 ac_status=$?
22445 grep -v '^ *+' conftest.er1 >conftest.err
22446 rm -f conftest.er1
22447 cat conftest.err >&5
22448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); } && {
22450 test -z "$ac_c_werror_flag" ||
22451 test ! -s conftest.err
22452 } && test -s conftest.$ac_objext; then
22453 ac_header_compiler=yes
22454 else
22455 $as_echo "$as_me: failed program was:" >&5
22456 sed 's/^/| /' conftest.$ac_ext >&5
22457
22458 ac_header_compiler=no
22459 fi
22460
22461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22462 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22463 $as_echo "$ac_header_compiler" >&6; }
22464
22465 # Is the header present?
22466 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22467 $as_echo_n "checking $ac_header presence... " >&6; }
22468 cat >conftest.$ac_ext <<_ACEOF
22469 /* confdefs.h. */
22470 _ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h. */
22474 #include <$ac_header>
22475 _ACEOF
22476 if { (ac_try="$ac_cpp conftest.$ac_ext"
22477 case "(($ac_try" in
22478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22479 *) ac_try_echo=$ac_try;;
22480 esac
22481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22482 $as_echo "$ac_try_echo") >&5
22483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22484 ac_status=$?
22485 grep -v '^ *+' conftest.er1 >conftest.err
22486 rm -f conftest.er1
22487 cat conftest.err >&5
22488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); } >/dev/null && {
22490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22491 test ! -s conftest.err
22492 }; then
22493 ac_header_preproc=yes
22494 else
22495 $as_echo "$as_me: failed program was:" >&5
22496 sed 's/^/| /' conftest.$ac_ext >&5
22497
22498 ac_header_preproc=no
22499 fi
22500
22501 rm -f conftest.err conftest.$ac_ext
22502 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22503 $as_echo "$ac_header_preproc" >&6; }
22504
22505 # So? What about this header?
22506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22507 yes:no: )
22508 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22509 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22510 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22511 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22512 ac_header_preproc=yes
22513 ;;
22514 no:yes:* )
22515 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22516 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22517 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22518 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22519 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22520 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22522 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22524 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22526 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22527
22528 ;;
22529 esac
22530 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22531 $as_echo_n "checking for $ac_header... " >&6; }
22532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22533 $as_echo_n "(cached) " >&6
22534 else
22535 eval "$as_ac_Header=\$ac_header_preproc"
22536 fi
22537 ac_res=`eval 'as_val=${'$as_ac_Header'}
22538 $as_echo "$as_val"'`
22539 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22540 $as_echo "$ac_res" >&6; }
22541
22542 fi
22543 as_val=`eval 'as_val=${'$as_ac_Header'}
22544 $as_echo "$as_val"'`
22545 if test "x$as_val" = x""yes; then
22546 cat >>confdefs.h <<_ACEOF
22547 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22548 _ACEOF
22549
22550 fi
22551
22552 done
22553
22554 fi
22555
22556 done
22557
22558 fi
22559
22560 done
22561
22562
22563 for ac_header in krb.h
22564 do
22565 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22567 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22568 $as_echo_n "checking for $ac_header... " >&6; }
22569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22570 $as_echo_n "(cached) " >&6
22571 fi
22572 ac_res=`eval 'as_val=${'$as_ac_Header'}
22573 $as_echo "$as_val"'`
22574 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22575 $as_echo "$ac_res" >&6; }
22576 else
22577 # Is the header compilable?
22578 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22579 $as_echo_n "checking $ac_header usability... " >&6; }
22580 cat >conftest.$ac_ext <<_ACEOF
22581 /* confdefs.h. */
22582 _ACEOF
22583 cat confdefs.h >>conftest.$ac_ext
22584 cat >>conftest.$ac_ext <<_ACEOF
22585 /* end confdefs.h. */
22586 $ac_includes_default
22587 #include <$ac_header>
22588 _ACEOF
22589 rm -f conftest.$ac_objext
22590 if { (ac_try="$ac_compile"
22591 case "(($ac_try" in
22592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22593 *) ac_try_echo=$ac_try;;
22594 esac
22595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22596 $as_echo "$ac_try_echo") >&5
22597 (eval "$ac_compile") 2>conftest.er1
22598 ac_status=$?
22599 grep -v '^ *+' conftest.er1 >conftest.err
22600 rm -f conftest.er1
22601 cat conftest.err >&5
22602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603 (exit $ac_status); } && {
22604 test -z "$ac_c_werror_flag" ||
22605 test ! -s conftest.err
22606 } && test -s conftest.$ac_objext; then
22607 ac_header_compiler=yes
22608 else
22609 $as_echo "$as_me: failed program was:" >&5
22610 sed 's/^/| /' conftest.$ac_ext >&5
22611
22612 ac_header_compiler=no
22613 fi
22614
22615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22616 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22617 $as_echo "$ac_header_compiler" >&6; }
22618
22619 # Is the header present?
22620 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22621 $as_echo_n "checking $ac_header presence... " >&6; }
22622 cat >conftest.$ac_ext <<_ACEOF
22623 /* confdefs.h. */
22624 _ACEOF
22625 cat confdefs.h >>conftest.$ac_ext
22626 cat >>conftest.$ac_ext <<_ACEOF
22627 /* end confdefs.h. */
22628 #include <$ac_header>
22629 _ACEOF
22630 if { (ac_try="$ac_cpp conftest.$ac_ext"
22631 case "(($ac_try" in
22632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22633 *) ac_try_echo=$ac_try;;
22634 esac
22635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22636 $as_echo "$ac_try_echo") >&5
22637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22638 ac_status=$?
22639 grep -v '^ *+' conftest.er1 >conftest.err
22640 rm -f conftest.er1
22641 cat conftest.err >&5
22642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); } >/dev/null && {
22644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22645 test ! -s conftest.err
22646 }; then
22647 ac_header_preproc=yes
22648 else
22649 $as_echo "$as_me: failed program was:" >&5
22650 sed 's/^/| /' conftest.$ac_ext >&5
22651
22652 ac_header_preproc=no
22653 fi
22654
22655 rm -f conftest.err conftest.$ac_ext
22656 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22657 $as_echo "$ac_header_preproc" >&6; }
22658
22659 # So? What about this header?
22660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22661 yes:no: )
22662 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22663 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22664 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22665 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22666 ac_header_preproc=yes
22667 ;;
22668 no:yes:* )
22669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22670 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22672 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22674 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22676 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22678 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22680 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22681
22682 ;;
22683 esac
22684 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22685 $as_echo_n "checking for $ac_header... " >&6; }
22686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22687 $as_echo_n "(cached) " >&6
22688 else
22689 eval "$as_ac_Header=\$ac_header_preproc"
22690 fi
22691 ac_res=`eval 'as_val=${'$as_ac_Header'}
22692 $as_echo "$as_val"'`
22693 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22694 $as_echo "$ac_res" >&6; }
22695
22696 fi
22697 as_val=`eval 'as_val=${'$as_ac_Header'}
22698 $as_echo "$as_val"'`
22699 if test "x$as_val" = x""yes; then
22700 cat >>confdefs.h <<_ACEOF
22701 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22702 _ACEOF
22703
22704 else
22705
22706 for ac_header in kerberosIV/krb.h
22707 do
22708 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22710 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22711 $as_echo_n "checking for $ac_header... " >&6; }
22712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22713 $as_echo_n "(cached) " >&6
22714 fi
22715 ac_res=`eval 'as_val=${'$as_ac_Header'}
22716 $as_echo "$as_val"'`
22717 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22718 $as_echo "$ac_res" >&6; }
22719 else
22720 # Is the header compilable?
22721 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22722 $as_echo_n "checking $ac_header usability... " >&6; }
22723 cat >conftest.$ac_ext <<_ACEOF
22724 /* confdefs.h. */
22725 _ACEOF
22726 cat confdefs.h >>conftest.$ac_ext
22727 cat >>conftest.$ac_ext <<_ACEOF
22728 /* end confdefs.h. */
22729 $ac_includes_default
22730 #include <$ac_header>
22731 _ACEOF
22732 rm -f conftest.$ac_objext
22733 if { (ac_try="$ac_compile"
22734 case "(($ac_try" in
22735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22736 *) ac_try_echo=$ac_try;;
22737 esac
22738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22739 $as_echo "$ac_try_echo") >&5
22740 (eval "$ac_compile") 2>conftest.er1
22741 ac_status=$?
22742 grep -v '^ *+' conftest.er1 >conftest.err
22743 rm -f conftest.er1
22744 cat conftest.err >&5
22745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746 (exit $ac_status); } && {
22747 test -z "$ac_c_werror_flag" ||
22748 test ! -s conftest.err
22749 } && test -s conftest.$ac_objext; then
22750 ac_header_compiler=yes
22751 else
22752 $as_echo "$as_me: failed program was:" >&5
22753 sed 's/^/| /' conftest.$ac_ext >&5
22754
22755 ac_header_compiler=no
22756 fi
22757
22758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22759 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22760 $as_echo "$ac_header_compiler" >&6; }
22761
22762 # Is the header present?
22763 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22764 $as_echo_n "checking $ac_header presence... " >&6; }
22765 cat >conftest.$ac_ext <<_ACEOF
22766 /* confdefs.h. */
22767 _ACEOF
22768 cat confdefs.h >>conftest.$ac_ext
22769 cat >>conftest.$ac_ext <<_ACEOF
22770 /* end confdefs.h. */
22771 #include <$ac_header>
22772 _ACEOF
22773 if { (ac_try="$ac_cpp conftest.$ac_ext"
22774 case "(($ac_try" in
22775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22776 *) ac_try_echo=$ac_try;;
22777 esac
22778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22779 $as_echo "$ac_try_echo") >&5
22780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22781 ac_status=$?
22782 grep -v '^ *+' conftest.er1 >conftest.err
22783 rm -f conftest.er1
22784 cat conftest.err >&5
22785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); } >/dev/null && {
22787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22788 test ! -s conftest.err
22789 }; then
22790 ac_header_preproc=yes
22791 else
22792 $as_echo "$as_me: failed program was:" >&5
22793 sed 's/^/| /' conftest.$ac_ext >&5
22794
22795 ac_header_preproc=no
22796 fi
22797
22798 rm -f conftest.err conftest.$ac_ext
22799 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22800 $as_echo "$ac_header_preproc" >&6; }
22801
22802 # So? What about this header?
22803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22804 yes:no: )
22805 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22806 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22807 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22808 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22809 ac_header_preproc=yes
22810 ;;
22811 no:yes:* )
22812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22813 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22815 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22817 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22819 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22821 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22823 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22824
22825 ;;
22826 esac
22827 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22828 $as_echo_n "checking for $ac_header... " >&6; }
22829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22830 $as_echo_n "(cached) " >&6
22831 else
22832 eval "$as_ac_Header=\$ac_header_preproc"
22833 fi
22834 ac_res=`eval 'as_val=${'$as_ac_Header'}
22835 $as_echo "$as_val"'`
22836 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22837 $as_echo "$ac_res" >&6; }
22838
22839 fi
22840 as_val=`eval 'as_val=${'$as_ac_Header'}
22841 $as_echo "$as_val"'`
22842 if test "x$as_val" = x""yes; then
22843 cat >>confdefs.h <<_ACEOF
22844 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22845 _ACEOF
22846
22847 else
22848
22849 for ac_header in kerberos/krb.h
22850 do
22851 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22853 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22854 $as_echo_n "checking for $ac_header... " >&6; }
22855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22856 $as_echo_n "(cached) " >&6
22857 fi
22858 ac_res=`eval 'as_val=${'$as_ac_Header'}
22859 $as_echo "$as_val"'`
22860 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22861 $as_echo "$ac_res" >&6; }
22862 else
22863 # Is the header compilable?
22864 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22865 $as_echo_n "checking $ac_header usability... " >&6; }
22866 cat >conftest.$ac_ext <<_ACEOF
22867 /* confdefs.h. */
22868 _ACEOF
22869 cat confdefs.h >>conftest.$ac_ext
22870 cat >>conftest.$ac_ext <<_ACEOF
22871 /* end confdefs.h. */
22872 $ac_includes_default
22873 #include <$ac_header>
22874 _ACEOF
22875 rm -f conftest.$ac_objext
22876 if { (ac_try="$ac_compile"
22877 case "(($ac_try" in
22878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22879 *) ac_try_echo=$ac_try;;
22880 esac
22881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22882 $as_echo "$ac_try_echo") >&5
22883 (eval "$ac_compile") 2>conftest.er1
22884 ac_status=$?
22885 grep -v '^ *+' conftest.er1 >conftest.err
22886 rm -f conftest.er1
22887 cat conftest.err >&5
22888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); } && {
22890 test -z "$ac_c_werror_flag" ||
22891 test ! -s conftest.err
22892 } && test -s conftest.$ac_objext; then
22893 ac_header_compiler=yes
22894 else
22895 $as_echo "$as_me: failed program was:" >&5
22896 sed 's/^/| /' conftest.$ac_ext >&5
22897
22898 ac_header_compiler=no
22899 fi
22900
22901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22902 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22903 $as_echo "$ac_header_compiler" >&6; }
22904
22905 # Is the header present?
22906 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22907 $as_echo_n "checking $ac_header presence... " >&6; }
22908 cat >conftest.$ac_ext <<_ACEOF
22909 /* confdefs.h. */
22910 _ACEOF
22911 cat confdefs.h >>conftest.$ac_ext
22912 cat >>conftest.$ac_ext <<_ACEOF
22913 /* end confdefs.h. */
22914 #include <$ac_header>
22915 _ACEOF
22916 if { (ac_try="$ac_cpp conftest.$ac_ext"
22917 case "(($ac_try" in
22918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22919 *) ac_try_echo=$ac_try;;
22920 esac
22921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22922 $as_echo "$ac_try_echo") >&5
22923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22924 ac_status=$?
22925 grep -v '^ *+' conftest.er1 >conftest.err
22926 rm -f conftest.er1
22927 cat conftest.err >&5
22928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); } >/dev/null && {
22930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22931 test ! -s conftest.err
22932 }; then
22933 ac_header_preproc=yes
22934 else
22935 $as_echo "$as_me: failed program was:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22937
22938 ac_header_preproc=no
22939 fi
22940
22941 rm -f conftest.err conftest.$ac_ext
22942 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22943 $as_echo "$ac_header_preproc" >&6; }
22944
22945 # So? What about this header?
22946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22947 yes:no: )
22948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22949 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22951 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22952 ac_header_preproc=yes
22953 ;;
22954 no:yes:* )
22955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22956 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22958 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22959 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22960 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22962 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22964 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22966 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22967
22968 ;;
22969 esac
22970 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22971 $as_echo_n "checking for $ac_header... " >&6; }
22972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22973 $as_echo_n "(cached) " >&6
22974 else
22975 eval "$as_ac_Header=\$ac_header_preproc"
22976 fi
22977 ac_res=`eval 'as_val=${'$as_ac_Header'}
22978 $as_echo "$as_val"'`
22979 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22980 $as_echo "$ac_res" >&6; }
22981
22982 fi
22983 as_val=`eval 'as_val=${'$as_ac_Header'}
22984 $as_echo "$as_val"'`
22985 if test "x$as_val" = x""yes; then
22986 cat >>confdefs.h <<_ACEOF
22987 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22988 _ACEOF
22989
22990 fi
22991
22992 done
22993
22994 fi
22995
22996 done
22997
22998 fi
22999
23000 done
23001
23002 fi
23003
23004 for ac_header in com_err.h
23005 do
23006 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23008 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23009 $as_echo_n "checking for $ac_header... " >&6; }
23010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23011 $as_echo_n "(cached) " >&6
23012 fi
23013 ac_res=`eval 'as_val=${'$as_ac_Header'}
23014 $as_echo "$as_val"'`
23015 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23016 $as_echo "$ac_res" >&6; }
23017 else
23018 # Is the header compilable?
23019 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23020 $as_echo_n "checking $ac_header usability... " >&6; }
23021 cat >conftest.$ac_ext <<_ACEOF
23022 /* confdefs.h. */
23023 _ACEOF
23024 cat confdefs.h >>conftest.$ac_ext
23025 cat >>conftest.$ac_ext <<_ACEOF
23026 /* end confdefs.h. */
23027 $ac_includes_default
23028 #include <$ac_header>
23029 _ACEOF
23030 rm -f conftest.$ac_objext
23031 if { (ac_try="$ac_compile"
23032 case "(($ac_try" in
23033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23034 *) ac_try_echo=$ac_try;;
23035 esac
23036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23037 $as_echo "$ac_try_echo") >&5
23038 (eval "$ac_compile") 2>conftest.er1
23039 ac_status=$?
23040 grep -v '^ *+' conftest.er1 >conftest.err
23041 rm -f conftest.er1
23042 cat conftest.err >&5
23043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); } && {
23045 test -z "$ac_c_werror_flag" ||
23046 test ! -s conftest.err
23047 } && test -s conftest.$ac_objext; then
23048 ac_header_compiler=yes
23049 else
23050 $as_echo "$as_me: failed program was:" >&5
23051 sed 's/^/| /' conftest.$ac_ext >&5
23052
23053 ac_header_compiler=no
23054 fi
23055
23056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23057 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23058 $as_echo "$ac_header_compiler" >&6; }
23059
23060 # Is the header present?
23061 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23062 $as_echo_n "checking $ac_header presence... " >&6; }
23063 cat >conftest.$ac_ext <<_ACEOF
23064 /* confdefs.h. */
23065 _ACEOF
23066 cat confdefs.h >>conftest.$ac_ext
23067 cat >>conftest.$ac_ext <<_ACEOF
23068 /* end confdefs.h. */
23069 #include <$ac_header>
23070 _ACEOF
23071 if { (ac_try="$ac_cpp conftest.$ac_ext"
23072 case "(($ac_try" in
23073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23074 *) ac_try_echo=$ac_try;;
23075 esac
23076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23077 $as_echo "$ac_try_echo") >&5
23078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23079 ac_status=$?
23080 grep -v '^ *+' conftest.er1 >conftest.err
23081 rm -f conftest.er1
23082 cat conftest.err >&5
23083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); } >/dev/null && {
23085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23086 test ! -s conftest.err
23087 }; then
23088 ac_header_preproc=yes
23089 else
23090 $as_echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23092
23093 ac_header_preproc=no
23094 fi
23095
23096 rm -f conftest.err conftest.$ac_ext
23097 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23098 $as_echo "$ac_header_preproc" >&6; }
23099
23100 # So? What about this header?
23101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23102 yes:no: )
23103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23104 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23106 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23107 ac_header_preproc=yes
23108 ;;
23109 no:yes:* )
23110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23111 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23113 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23115 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23116 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23117 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23119 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23121 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23122
23123 ;;
23124 esac
23125 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23126 $as_echo_n "checking for $ac_header... " >&6; }
23127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23128 $as_echo_n "(cached) " >&6
23129 else
23130 eval "$as_ac_Header=\$ac_header_preproc"
23131 fi
23132 ac_res=`eval 'as_val=${'$as_ac_Header'}
23133 $as_echo "$as_val"'`
23134 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23135 $as_echo "$ac_res" >&6; }
23136
23137 fi
23138 as_val=`eval 'as_val=${'$as_ac_Header'}
23139 $as_echo "$as_val"'`
23140 if test "x$as_val" = x""yes; then
23141 cat >>confdefs.h <<_ACEOF
23142 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23143 _ACEOF
23144
23145 fi
23146
23147 done
23148
23149 fi
23150
23151 # Solaris requires -lintl if you want strerror (which calls dgettext)
23152 # to return localized messages.
23153
23154 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23155 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23156 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23157 $as_echo_n "(cached) " >&6
23158 else
23159 ac_check_lib_save_LIBS=$LIBS
23160 LIBS="-lintl $LIBS"
23161 cat >conftest.$ac_ext <<_ACEOF
23162 /* confdefs.h. */
23163 _ACEOF
23164 cat confdefs.h >>conftest.$ac_ext
23165 cat >>conftest.$ac_ext <<_ACEOF
23166 /* end confdefs.h. */
23167
23168 /* Override any GCC internal prototype to avoid an error.
23169 Use char because int might match the return type of a GCC
23170 builtin and then its argument prototype would still apply. */
23171 #ifdef __cplusplus
23172 extern "C"
23173 #endif
23174 char dgettext ();
23175 int
23176 main ()
23177 {
23178 return dgettext ();
23179 ;
23180 return 0;
23181 }
23182 _ACEOF
23183 rm -f conftest.$ac_objext conftest$ac_exeext
23184 if { (ac_try="$ac_link"
23185 case "(($ac_try" in
23186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23187 *) ac_try_echo=$ac_try;;
23188 esac
23189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23190 $as_echo "$ac_try_echo") >&5
23191 (eval "$ac_link") 2>conftest.er1
23192 ac_status=$?
23193 grep -v '^ *+' conftest.er1 >conftest.err
23194 rm -f conftest.er1
23195 cat conftest.err >&5
23196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197 (exit $ac_status); } && {
23198 test -z "$ac_c_werror_flag" ||
23199 test ! -s conftest.err
23200 } && test -s conftest$ac_exeext && {
23201 test "$cross_compiling" = yes ||
23202 $as_test_x conftest$ac_exeext
23203 }; then
23204 ac_cv_lib_intl_dgettext=yes
23205 else
23206 $as_echo "$as_me: failed program was:" >&5
23207 sed 's/^/| /' conftest.$ac_ext >&5
23208
23209 ac_cv_lib_intl_dgettext=no
23210 fi
23211
23212 rm -rf conftest.dSYM
23213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23214 conftest$ac_exeext conftest.$ac_ext
23215 LIBS=$ac_check_lib_save_LIBS
23216 fi
23217 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23218 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23219 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
23220 cat >>confdefs.h <<_ACEOF
23221 #define HAVE_LIBINTL 1
23222 _ACEOF
23223
23224 LIBS="-lintl $LIBS"
23225
23226 fi
23227
23228
23229 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
23230 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23231 if test "${emacs_cv_localtime_cache+set}" = set; then
23232 $as_echo_n "(cached) " >&6
23233 else
23234 if test x$ac_cv_func_tzset = xyes; then
23235 if test "$cross_compiling" = yes; then
23236 # If we have tzset, assume the worst when cross-compiling.
23237 emacs_cv_localtime_cache=yes
23238 else
23239 cat >conftest.$ac_ext <<_ACEOF
23240 /* confdefs.h. */
23241 _ACEOF
23242 cat confdefs.h >>conftest.$ac_ext
23243 cat >>conftest.$ac_ext <<_ACEOF
23244 /* end confdefs.h. */
23245 #include <time.h>
23246 extern char **environ;
23247 unset_TZ ()
23248 {
23249 char **from, **to;
23250 for (to = from = environ; (*to = *from); from++)
23251 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23252 to++;
23253 }
23254 char TZ_GMT0[] = "TZ=GMT0";
23255 char TZ_PST8[] = "TZ=PST8";
23256 main()
23257 {
23258 time_t now = time ((time_t *) 0);
23259 int hour_GMT0, hour_unset;
23260 if (putenv (TZ_GMT0) != 0)
23261 exit (1);
23262 hour_GMT0 = localtime (&now)->tm_hour;
23263 unset_TZ ();
23264 hour_unset = localtime (&now)->tm_hour;
23265 if (putenv (TZ_PST8) != 0)
23266 exit (1);
23267 if (localtime (&now)->tm_hour == hour_GMT0)
23268 exit (1);
23269 unset_TZ ();
23270 if (localtime (&now)->tm_hour != hour_unset)
23271 exit (1);
23272 exit (0);
23273 }
23274 _ACEOF
23275 rm -f conftest$ac_exeext
23276 if { (ac_try="$ac_link"
23277 case "(($ac_try" in
23278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23279 *) ac_try_echo=$ac_try;;
23280 esac
23281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23282 $as_echo "$ac_try_echo") >&5
23283 (eval "$ac_link") 2>&5
23284 ac_status=$?
23285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23287 { (case "(($ac_try" in
23288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23289 *) ac_try_echo=$ac_try;;
23290 esac
23291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23292 $as_echo "$ac_try_echo") >&5
23293 (eval "$ac_try") 2>&5
23294 ac_status=$?
23295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); }; }; then
23297 emacs_cv_localtime_cache=no
23298 else
23299 $as_echo "$as_me: program exited with status $ac_status" >&5
23300 $as_echo "$as_me: failed program was:" >&5
23301 sed 's/^/| /' conftest.$ac_ext >&5
23302
23303 ( exit $ac_status )
23304 emacs_cv_localtime_cache=yes
23305 fi
23306 rm -rf conftest.dSYM
23307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23308 fi
23309
23310
23311 else
23312 # If we lack tzset, report that localtime does not cache TZ,
23313 # since we can't invalidate the cache if we don't have tzset.
23314 emacs_cv_localtime_cache=no
23315 fi
23316 fi
23317 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
23318 $as_echo "$emacs_cv_localtime_cache" >&6; }
23319 if test $emacs_cv_localtime_cache = yes; then
23320
23321 cat >>confdefs.h <<\_ACEOF
23322 #define LOCALTIME_CACHE 1
23323 _ACEOF
23324
23325 fi
23326
23327 if test "x$HAVE_TIMEVAL" = xyes; then
23328
23329 for ac_func in gettimeofday
23330 do
23331 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23332 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23333 $as_echo_n "checking for $ac_func... " >&6; }
23334 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23335 $as_echo_n "(cached) " >&6
23336 else
23337 cat >conftest.$ac_ext <<_ACEOF
23338 /* confdefs.h. */
23339 _ACEOF
23340 cat confdefs.h >>conftest.$ac_ext
23341 cat >>conftest.$ac_ext <<_ACEOF
23342 /* end confdefs.h. */
23343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23345 #define $ac_func innocuous_$ac_func
23346
23347 /* System header to define __stub macros and hopefully few prototypes,
23348 which can conflict with char $ac_func (); below.
23349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23350 <limits.h> exists even on freestanding compilers. */
23351
23352 #ifdef __STDC__
23353 # include <limits.h>
23354 #else
23355 # include <assert.h>
23356 #endif
23357
23358 #undef $ac_func
23359
23360 /* Override any GCC internal prototype to avoid an error.
23361 Use char because int might match the return type of a GCC
23362 builtin and then its argument prototype would still apply. */
23363 #ifdef __cplusplus
23364 extern "C"
23365 #endif
23366 char $ac_func ();
23367 /* The GNU C library defines this for functions which it implements
23368 to always fail with ENOSYS. Some functions are actually named
23369 something starting with __ and the normal name is an alias. */
23370 #if defined __stub_$ac_func || defined __stub___$ac_func
23371 choke me
23372 #endif
23373
23374 int
23375 main ()
23376 {
23377 return $ac_func ();
23378 ;
23379 return 0;
23380 }
23381 _ACEOF
23382 rm -f conftest.$ac_objext conftest$ac_exeext
23383 if { (ac_try="$ac_link"
23384 case "(($ac_try" in
23385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23386 *) ac_try_echo=$ac_try;;
23387 esac
23388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23389 $as_echo "$ac_try_echo") >&5
23390 (eval "$ac_link") 2>conftest.er1
23391 ac_status=$?
23392 grep -v '^ *+' conftest.er1 >conftest.err
23393 rm -f conftest.er1
23394 cat conftest.err >&5
23395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396 (exit $ac_status); } && {
23397 test -z "$ac_c_werror_flag" ||
23398 test ! -s conftest.err
23399 } && test -s conftest$ac_exeext && {
23400 test "$cross_compiling" = yes ||
23401 $as_test_x conftest$ac_exeext
23402 }; then
23403 eval "$as_ac_var=yes"
23404 else
23405 $as_echo "$as_me: failed program was:" >&5
23406 sed 's/^/| /' conftest.$ac_ext >&5
23407
23408 eval "$as_ac_var=no"
23409 fi
23410
23411 rm -rf conftest.dSYM
23412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23413 conftest$ac_exeext conftest.$ac_ext
23414 fi
23415 ac_res=`eval 'as_val=${'$as_ac_var'}
23416 $as_echo "$as_val"'`
23417 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23418 $as_echo "$ac_res" >&6; }
23419 as_val=`eval 'as_val=${'$as_ac_var'}
23420 $as_echo "$as_val"'`
23421 if test "x$as_val" = x""yes; then
23422 cat >>confdefs.h <<_ACEOF
23423 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23424 _ACEOF
23425
23426 fi
23427 done
23428
23429 if test $ac_cv_func_gettimeofday = yes; then
23430 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
23431 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
23432 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
23433 $as_echo_n "(cached) " >&6
23434 else
23435 cat >conftest.$ac_ext <<_ACEOF
23436 /* confdefs.h. */
23437 _ACEOF
23438 cat confdefs.h >>conftest.$ac_ext
23439 cat >>conftest.$ac_ext <<_ACEOF
23440 /* end confdefs.h. */
23441
23442 #ifdef TIME_WITH_SYS_TIME
23443 #include <sys/time.h>
23444 #include <time.h>
23445 #else
23446 #ifdef HAVE_SYS_TIME_H
23447 #include <sys/time.h>
23448 #else
23449 #include <time.h>
23450 #endif
23451 #endif
23452 int
23453 main ()
23454 {
23455 struct timeval time;
23456 gettimeofday (&time, 0);
23457 ;
23458 return 0;
23459 }
23460 _ACEOF
23461 rm -f conftest.$ac_objext
23462 if { (ac_try="$ac_compile"
23463 case "(($ac_try" in
23464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23465 *) ac_try_echo=$ac_try;;
23466 esac
23467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23468 $as_echo "$ac_try_echo") >&5
23469 (eval "$ac_compile") 2>conftest.er1
23470 ac_status=$?
23471 grep -v '^ *+' conftest.er1 >conftest.err
23472 rm -f conftest.er1
23473 cat conftest.err >&5
23474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); } && {
23476 test -z "$ac_c_werror_flag" ||
23477 test ! -s conftest.err
23478 } && test -s conftest.$ac_objext; then
23479 emacs_cv_gettimeofday_two_arguments=yes
23480 else
23481 $as_echo "$as_me: failed program was:" >&5
23482 sed 's/^/| /' conftest.$ac_ext >&5
23483
23484 emacs_cv_gettimeofday_two_arguments=no
23485 fi
23486
23487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23488 fi
23489 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
23490 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
23491 if test $emacs_cv_gettimeofday_two_arguments = no; then
23492
23493 cat >>confdefs.h <<\_ACEOF
23494 #define GETTIMEOFDAY_ONE_ARGUMENT 1
23495 _ACEOF
23496
23497 fi
23498 fi
23499 fi
23500
23501 ok_so_far=yes
23502 { $as_echo "$as_me:$LINENO: checking for socket" >&5
23503 $as_echo_n "checking for socket... " >&6; }
23504 if test "${ac_cv_func_socket+set}" = set; then
23505 $as_echo_n "(cached) " >&6
23506 else
23507 cat >conftest.$ac_ext <<_ACEOF
23508 /* confdefs.h. */
23509 _ACEOF
23510 cat confdefs.h >>conftest.$ac_ext
23511 cat >>conftest.$ac_ext <<_ACEOF
23512 /* end confdefs.h. */
23513 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23515 #define socket innocuous_socket
23516
23517 /* System header to define __stub macros and hopefully few prototypes,
23518 which can conflict with char socket (); below.
23519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23520 <limits.h> exists even on freestanding compilers. */
23521
23522 #ifdef __STDC__
23523 # include <limits.h>
23524 #else
23525 # include <assert.h>
23526 #endif
23527
23528 #undef socket
23529
23530 /* Override any GCC internal prototype to avoid an error.
23531 Use char because int might match the return type of a GCC
23532 builtin and then its argument prototype would still apply. */
23533 #ifdef __cplusplus
23534 extern "C"
23535 #endif
23536 char socket ();
23537 /* The GNU C library defines this for functions which it implements
23538 to always fail with ENOSYS. Some functions are actually named
23539 something starting with __ and the normal name is an alias. */
23540 #if defined __stub_socket || defined __stub___socket
23541 choke me
23542 #endif
23543
23544 int
23545 main ()
23546 {
23547 return socket ();
23548 ;
23549 return 0;
23550 }
23551 _ACEOF
23552 rm -f conftest.$ac_objext conftest$ac_exeext
23553 if { (ac_try="$ac_link"
23554 case "(($ac_try" in
23555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23556 *) ac_try_echo=$ac_try;;
23557 esac
23558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23559 $as_echo "$ac_try_echo") >&5
23560 (eval "$ac_link") 2>conftest.er1
23561 ac_status=$?
23562 grep -v '^ *+' conftest.er1 >conftest.err
23563 rm -f conftest.er1
23564 cat conftest.err >&5
23565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); } && {
23567 test -z "$ac_c_werror_flag" ||
23568 test ! -s conftest.err
23569 } && test -s conftest$ac_exeext && {
23570 test "$cross_compiling" = yes ||
23571 $as_test_x conftest$ac_exeext
23572 }; then
23573 ac_cv_func_socket=yes
23574 else
23575 $as_echo "$as_me: failed program was:" >&5
23576 sed 's/^/| /' conftest.$ac_ext >&5
23577
23578 ac_cv_func_socket=no
23579 fi
23580
23581 rm -rf conftest.dSYM
23582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23583 conftest$ac_exeext conftest.$ac_ext
23584 fi
23585 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
23586 $as_echo "$ac_cv_func_socket" >&6; }
23587 if test "x$ac_cv_func_socket" = x""yes; then
23588 :
23589 else
23590 ok_so_far=no
23591 fi
23592
23593 if test $ok_so_far = yes; then
23594 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23595 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23596 $as_echo_n "checking for netinet/in.h... " >&6; }
23597 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23598 $as_echo_n "(cached) " >&6
23599 fi
23600 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23601 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23602 else
23603 # Is the header compilable?
23604 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
23605 $as_echo_n "checking netinet/in.h usability... " >&6; }
23606 cat >conftest.$ac_ext <<_ACEOF
23607 /* confdefs.h. */
23608 _ACEOF
23609 cat confdefs.h >>conftest.$ac_ext
23610 cat >>conftest.$ac_ext <<_ACEOF
23611 /* end confdefs.h. */
23612 $ac_includes_default
23613 #include <netinet/in.h>
23614 _ACEOF
23615 rm -f conftest.$ac_objext
23616 if { (ac_try="$ac_compile"
23617 case "(($ac_try" in
23618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23619 *) ac_try_echo=$ac_try;;
23620 esac
23621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23622 $as_echo "$ac_try_echo") >&5
23623 (eval "$ac_compile") 2>conftest.er1
23624 ac_status=$?
23625 grep -v '^ *+' conftest.er1 >conftest.err
23626 rm -f conftest.er1
23627 cat conftest.err >&5
23628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629 (exit $ac_status); } && {
23630 test -z "$ac_c_werror_flag" ||
23631 test ! -s conftest.err
23632 } && test -s conftest.$ac_objext; then
23633 ac_header_compiler=yes
23634 else
23635 $as_echo "$as_me: failed program was:" >&5
23636 sed 's/^/| /' conftest.$ac_ext >&5
23637
23638 ac_header_compiler=no
23639 fi
23640
23641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23642 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23643 $as_echo "$ac_header_compiler" >&6; }
23644
23645 # Is the header present?
23646 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
23647 $as_echo_n "checking netinet/in.h presence... " >&6; }
23648 cat >conftest.$ac_ext <<_ACEOF
23649 /* confdefs.h. */
23650 _ACEOF
23651 cat confdefs.h >>conftest.$ac_ext
23652 cat >>conftest.$ac_ext <<_ACEOF
23653 /* end confdefs.h. */
23654 #include <netinet/in.h>
23655 _ACEOF
23656 if { (ac_try="$ac_cpp conftest.$ac_ext"
23657 case "(($ac_try" in
23658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23659 *) ac_try_echo=$ac_try;;
23660 esac
23661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23662 $as_echo "$ac_try_echo") >&5
23663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23664 ac_status=$?
23665 grep -v '^ *+' conftest.er1 >conftest.err
23666 rm -f conftest.er1
23667 cat conftest.err >&5
23668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669 (exit $ac_status); } >/dev/null && {
23670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23671 test ! -s conftest.err
23672 }; then
23673 ac_header_preproc=yes
23674 else
23675 $as_echo "$as_me: failed program was:" >&5
23676 sed 's/^/| /' conftest.$ac_ext >&5
23677
23678 ac_header_preproc=no
23679 fi
23680
23681 rm -f conftest.err conftest.$ac_ext
23682 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23683 $as_echo "$ac_header_preproc" >&6; }
23684
23685 # So? What about this header?
23686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23687 yes:no: )
23688 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
23689 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23690 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
23691 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
23692 ac_header_preproc=yes
23693 ;;
23694 no:yes:* )
23695 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
23696 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
23697 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
23698 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
23699 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
23700 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
23701 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
23702 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
23703 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
23704 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
23705 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
23706 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
23707
23708 ;;
23709 esac
23710 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
23711 $as_echo_n "checking for netinet/in.h... " >&6; }
23712 if test "${ac_cv_header_netinet_in_h+set}" = set; then
23713 $as_echo_n "(cached) " >&6
23714 else
23715 ac_cv_header_netinet_in_h=$ac_header_preproc
23716 fi
23717 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
23718 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
23719
23720 fi
23721 if test "x$ac_cv_header_netinet_in_h" = x""yes; then
23722 :
23723 else
23724 ok_so_far=no
23725 fi
23726
23727
23728 fi
23729 if test $ok_so_far = yes; then
23730 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23731 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23732 $as_echo_n "checking for arpa/inet.h... " >&6; }
23733 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23734 $as_echo_n "(cached) " >&6
23735 fi
23736 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23737 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
23738 else
23739 # Is the header compilable?
23740 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
23741 $as_echo_n "checking arpa/inet.h usability... " >&6; }
23742 cat >conftest.$ac_ext <<_ACEOF
23743 /* confdefs.h. */
23744 _ACEOF
23745 cat confdefs.h >>conftest.$ac_ext
23746 cat >>conftest.$ac_ext <<_ACEOF
23747 /* end confdefs.h. */
23748 $ac_includes_default
23749 #include <arpa/inet.h>
23750 _ACEOF
23751 rm -f conftest.$ac_objext
23752 if { (ac_try="$ac_compile"
23753 case "(($ac_try" in
23754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23755 *) ac_try_echo=$ac_try;;
23756 esac
23757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23758 $as_echo "$ac_try_echo") >&5
23759 (eval "$ac_compile") 2>conftest.er1
23760 ac_status=$?
23761 grep -v '^ *+' conftest.er1 >conftest.err
23762 rm -f conftest.er1
23763 cat conftest.err >&5
23764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765 (exit $ac_status); } && {
23766 test -z "$ac_c_werror_flag" ||
23767 test ! -s conftest.err
23768 } && test -s conftest.$ac_objext; then
23769 ac_header_compiler=yes
23770 else
23771 $as_echo "$as_me: failed program was:" >&5
23772 sed 's/^/| /' conftest.$ac_ext >&5
23773
23774 ac_header_compiler=no
23775 fi
23776
23777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23778 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23779 $as_echo "$ac_header_compiler" >&6; }
23780
23781 # Is the header present?
23782 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
23783 $as_echo_n "checking arpa/inet.h presence... " >&6; }
23784 cat >conftest.$ac_ext <<_ACEOF
23785 /* confdefs.h. */
23786 _ACEOF
23787 cat confdefs.h >>conftest.$ac_ext
23788 cat >>conftest.$ac_ext <<_ACEOF
23789 /* end confdefs.h. */
23790 #include <arpa/inet.h>
23791 _ACEOF
23792 if { (ac_try="$ac_cpp conftest.$ac_ext"
23793 case "(($ac_try" in
23794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23795 *) ac_try_echo=$ac_try;;
23796 esac
23797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23798 $as_echo "$ac_try_echo") >&5
23799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23800 ac_status=$?
23801 grep -v '^ *+' conftest.er1 >conftest.err
23802 rm -f conftest.er1
23803 cat conftest.err >&5
23804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805 (exit $ac_status); } >/dev/null && {
23806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23807 test ! -s conftest.err
23808 }; then
23809 ac_header_preproc=yes
23810 else
23811 $as_echo "$as_me: failed program was:" >&5
23812 sed 's/^/| /' conftest.$ac_ext >&5
23813
23814 ac_header_preproc=no
23815 fi
23816
23817 rm -f conftest.err conftest.$ac_ext
23818 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23819 $as_echo "$ac_header_preproc" >&6; }
23820
23821 # So? What about this header?
23822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23823 yes:no: )
23824 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
23825 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23826 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
23827 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
23828 ac_header_preproc=yes
23829 ;;
23830 no:yes:* )
23831 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
23832 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
23833 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
23834 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
23835 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
23836 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
23837 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
23838 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
23839 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
23840 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
23841 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
23842 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
23843
23844 ;;
23845 esac
23846 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
23847 $as_echo_n "checking for arpa/inet.h... " >&6; }
23848 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23849 $as_echo_n "(cached) " >&6
23850 else
23851 ac_cv_header_arpa_inet_h=$ac_header_preproc
23852 fi
23853 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23854 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
23855
23856 fi
23857 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then
23858 :
23859 else
23860 ok_so_far=no
23861 fi
23862
23863
23864 fi
23865 if test $ok_so_far = yes; then
23866
23867 cat >>confdefs.h <<\_ACEOF
23868 #define HAVE_INET_SOCKETS 1
23869 _ACEOF
23870
23871 fi
23872
23873
23874 for ac_header in sys/ioctl.h
23875 do
23876 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23878 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23879 $as_echo_n "checking for $ac_header... " >&6; }
23880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23881 $as_echo_n "(cached) " >&6
23882 fi
23883 ac_res=`eval 'as_val=${'$as_ac_Header'}
23884 $as_echo "$as_val"'`
23885 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23886 $as_echo "$ac_res" >&6; }
23887 else
23888 # Is the header compilable?
23889 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23890 $as_echo_n "checking $ac_header usability... " >&6; }
23891 cat >conftest.$ac_ext <<_ACEOF
23892 /* confdefs.h. */
23893 _ACEOF
23894 cat confdefs.h >>conftest.$ac_ext
23895 cat >>conftest.$ac_ext <<_ACEOF
23896 /* end confdefs.h. */
23897 $ac_includes_default
23898 #include <$ac_header>
23899 _ACEOF
23900 rm -f conftest.$ac_objext
23901 if { (ac_try="$ac_compile"
23902 case "(($ac_try" in
23903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23904 *) ac_try_echo=$ac_try;;
23905 esac
23906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23907 $as_echo "$ac_try_echo") >&5
23908 (eval "$ac_compile") 2>conftest.er1
23909 ac_status=$?
23910 grep -v '^ *+' conftest.er1 >conftest.err
23911 rm -f conftest.er1
23912 cat conftest.err >&5
23913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); } && {
23915 test -z "$ac_c_werror_flag" ||
23916 test ! -s conftest.err
23917 } && test -s conftest.$ac_objext; then
23918 ac_header_compiler=yes
23919 else
23920 $as_echo "$as_me: failed program was:" >&5
23921 sed 's/^/| /' conftest.$ac_ext >&5
23922
23923 ac_header_compiler=no
23924 fi
23925
23926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23927 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23928 $as_echo "$ac_header_compiler" >&6; }
23929
23930 # Is the header present?
23931 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23932 $as_echo_n "checking $ac_header presence... " >&6; }
23933 cat >conftest.$ac_ext <<_ACEOF
23934 /* confdefs.h. */
23935 _ACEOF
23936 cat confdefs.h >>conftest.$ac_ext
23937 cat >>conftest.$ac_ext <<_ACEOF
23938 /* end confdefs.h. */
23939 #include <$ac_header>
23940 _ACEOF
23941 if { (ac_try="$ac_cpp conftest.$ac_ext"
23942 case "(($ac_try" in
23943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23944 *) ac_try_echo=$ac_try;;
23945 esac
23946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23947 $as_echo "$ac_try_echo") >&5
23948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23949 ac_status=$?
23950 grep -v '^ *+' conftest.er1 >conftest.err
23951 rm -f conftest.er1
23952 cat conftest.err >&5
23953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954 (exit $ac_status); } >/dev/null && {
23955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23956 test ! -s conftest.err
23957 }; then
23958 ac_header_preproc=yes
23959 else
23960 $as_echo "$as_me: failed program was:" >&5
23961 sed 's/^/| /' conftest.$ac_ext >&5
23962
23963 ac_header_preproc=no
23964 fi
23965
23966 rm -f conftest.err conftest.$ac_ext
23967 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23968 $as_echo "$ac_header_preproc" >&6; }
23969
23970 # So? What about this header?
23971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23972 yes:no: )
23973 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23974 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23976 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23977 ac_header_preproc=yes
23978 ;;
23979 no:yes:* )
23980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23981 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23983 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23985 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23987 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23989 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23991 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23992
23993 ;;
23994 esac
23995 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23996 $as_echo_n "checking for $ac_header... " >&6; }
23997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23998 $as_echo_n "(cached) " >&6
23999 else
24000 eval "$as_ac_Header=\$ac_header_preproc"
24001 fi
24002 ac_res=`eval 'as_val=${'$as_ac_Header'}
24003 $as_echo "$as_val"'`
24004 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24005 $as_echo "$ac_res" >&6; }
24006
24007 fi
24008 as_val=`eval 'as_val=${'$as_ac_Header'}
24009 $as_echo "$as_val"'`
24010 if test "x$as_val" = x""yes; then
24011 cat >>confdefs.h <<_ACEOF
24012 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24013 _ACEOF
24014
24015 fi
24016
24017 done
24018
24019
24020 if test -f /usr/lpp/X11/bin/smt.exp; then
24021
24022 cat >>confdefs.h <<\_ACEOF
24023 #define HAVE_AIX_SMT_EXP 1
24024 _ACEOF
24025
24026 fi
24027
24028 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24029 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24030 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24031 { $as_echo "$as_me:$LINENO: result: yes" >&5
24032 $as_echo "yes" >&6; }
24033
24034 cat >>confdefs.h <<\_ACEOF
24035 #define HAVE_DEV_PTMX 1
24036 _ACEOF
24037
24038 else
24039 { $as_echo "$as_me:$LINENO: result: no" >&5
24040 $as_echo "no" >&6; }
24041 fi
24042
24043 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24044 $as_echo_n "checking for pid_t... " >&6; }
24045 if test "${ac_cv_type_pid_t+set}" = set; then
24046 $as_echo_n "(cached) " >&6
24047 else
24048 ac_cv_type_pid_t=no
24049 cat >conftest.$ac_ext <<_ACEOF
24050 /* confdefs.h. */
24051 _ACEOF
24052 cat confdefs.h >>conftest.$ac_ext
24053 cat >>conftest.$ac_ext <<_ACEOF
24054 /* end confdefs.h. */
24055 $ac_includes_default
24056 int
24057 main ()
24058 {
24059 if (sizeof (pid_t))
24060 return 0;
24061 ;
24062 return 0;
24063 }
24064 _ACEOF
24065 rm -f conftest.$ac_objext
24066 if { (ac_try="$ac_compile"
24067 case "(($ac_try" in
24068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24069 *) ac_try_echo=$ac_try;;
24070 esac
24071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24072 $as_echo "$ac_try_echo") >&5
24073 (eval "$ac_compile") 2>conftest.er1
24074 ac_status=$?
24075 grep -v '^ *+' conftest.er1 >conftest.err
24076 rm -f conftest.er1
24077 cat conftest.err >&5
24078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24079 (exit $ac_status); } && {
24080 test -z "$ac_c_werror_flag" ||
24081 test ! -s conftest.err
24082 } && test -s conftest.$ac_objext; then
24083 cat >conftest.$ac_ext <<_ACEOF
24084 /* confdefs.h. */
24085 _ACEOF
24086 cat confdefs.h >>conftest.$ac_ext
24087 cat >>conftest.$ac_ext <<_ACEOF
24088 /* end confdefs.h. */
24089 $ac_includes_default
24090 int
24091 main ()
24092 {
24093 if (sizeof ((pid_t)))
24094 return 0;
24095 ;
24096 return 0;
24097 }
24098 _ACEOF
24099 rm -f conftest.$ac_objext
24100 if { (ac_try="$ac_compile"
24101 case "(($ac_try" in
24102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24103 *) ac_try_echo=$ac_try;;
24104 esac
24105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24106 $as_echo "$ac_try_echo") >&5
24107 (eval "$ac_compile") 2>conftest.er1
24108 ac_status=$?
24109 grep -v '^ *+' conftest.er1 >conftest.err
24110 rm -f conftest.er1
24111 cat conftest.err >&5
24112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24113 (exit $ac_status); } && {
24114 test -z "$ac_c_werror_flag" ||
24115 test ! -s conftest.err
24116 } && test -s conftest.$ac_objext; then
24117 :
24118 else
24119 $as_echo "$as_me: failed program was:" >&5
24120 sed 's/^/| /' conftest.$ac_ext >&5
24121
24122 ac_cv_type_pid_t=yes
24123 fi
24124
24125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24126 else
24127 $as_echo "$as_me: failed program was:" >&5
24128 sed 's/^/| /' conftest.$ac_ext >&5
24129
24130
24131 fi
24132
24133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24134 fi
24135 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24136 $as_echo "$ac_cv_type_pid_t" >&6; }
24137 if test "x$ac_cv_type_pid_t" = x""yes; then
24138 :
24139 else
24140
24141 cat >>confdefs.h <<_ACEOF
24142 #define pid_t int
24143 _ACEOF
24144
24145 fi
24146
24147
24148 for ac_header in vfork.h
24149 do
24150 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24152 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24153 $as_echo_n "checking for $ac_header... " >&6; }
24154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24155 $as_echo_n "(cached) " >&6
24156 fi
24157 ac_res=`eval 'as_val=${'$as_ac_Header'}
24158 $as_echo "$as_val"'`
24159 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24160 $as_echo "$ac_res" >&6; }
24161 else
24162 # Is the header compilable?
24163 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24164 $as_echo_n "checking $ac_header usability... " >&6; }
24165 cat >conftest.$ac_ext <<_ACEOF
24166 /* confdefs.h. */
24167 _ACEOF
24168 cat confdefs.h >>conftest.$ac_ext
24169 cat >>conftest.$ac_ext <<_ACEOF
24170 /* end confdefs.h. */
24171 $ac_includes_default
24172 #include <$ac_header>
24173 _ACEOF
24174 rm -f conftest.$ac_objext
24175 if { (ac_try="$ac_compile"
24176 case "(($ac_try" in
24177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24178 *) ac_try_echo=$ac_try;;
24179 esac
24180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24181 $as_echo "$ac_try_echo") >&5
24182 (eval "$ac_compile") 2>conftest.er1
24183 ac_status=$?
24184 grep -v '^ *+' conftest.er1 >conftest.err
24185 rm -f conftest.er1
24186 cat conftest.err >&5
24187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188 (exit $ac_status); } && {
24189 test -z "$ac_c_werror_flag" ||
24190 test ! -s conftest.err
24191 } && test -s conftest.$ac_objext; then
24192 ac_header_compiler=yes
24193 else
24194 $as_echo "$as_me: failed program was:" >&5
24195 sed 's/^/| /' conftest.$ac_ext >&5
24196
24197 ac_header_compiler=no
24198 fi
24199
24200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24201 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24202 $as_echo "$ac_header_compiler" >&6; }
24203
24204 # Is the header present?
24205 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24206 $as_echo_n "checking $ac_header presence... " >&6; }
24207 cat >conftest.$ac_ext <<_ACEOF
24208 /* confdefs.h. */
24209 _ACEOF
24210 cat confdefs.h >>conftest.$ac_ext
24211 cat >>conftest.$ac_ext <<_ACEOF
24212 /* end confdefs.h. */
24213 #include <$ac_header>
24214 _ACEOF
24215 if { (ac_try="$ac_cpp conftest.$ac_ext"
24216 case "(($ac_try" in
24217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24218 *) ac_try_echo=$ac_try;;
24219 esac
24220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24221 $as_echo "$ac_try_echo") >&5
24222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24223 ac_status=$?
24224 grep -v '^ *+' conftest.er1 >conftest.err
24225 rm -f conftest.er1
24226 cat conftest.err >&5
24227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228 (exit $ac_status); } >/dev/null && {
24229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24230 test ! -s conftest.err
24231 }; then
24232 ac_header_preproc=yes
24233 else
24234 $as_echo "$as_me: failed program was:" >&5
24235 sed 's/^/| /' conftest.$ac_ext >&5
24236
24237 ac_header_preproc=no
24238 fi
24239
24240 rm -f conftest.err conftest.$ac_ext
24241 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24242 $as_echo "$ac_header_preproc" >&6; }
24243
24244 # So? What about this header?
24245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24246 yes:no: )
24247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24248 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24250 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24251 ac_header_preproc=yes
24252 ;;
24253 no:yes:* )
24254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24255 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24257 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24259 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24261 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24263 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24265 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24266
24267 ;;
24268 esac
24269 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24270 $as_echo_n "checking for $ac_header... " >&6; }
24271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24272 $as_echo_n "(cached) " >&6
24273 else
24274 eval "$as_ac_Header=\$ac_header_preproc"
24275 fi
24276 ac_res=`eval 'as_val=${'$as_ac_Header'}
24277 $as_echo "$as_val"'`
24278 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24279 $as_echo "$ac_res" >&6; }
24280
24281 fi
24282 as_val=`eval 'as_val=${'$as_ac_Header'}
24283 $as_echo "$as_val"'`
24284 if test "x$as_val" = x""yes; then
24285 cat >>confdefs.h <<_ACEOF
24286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24287 _ACEOF
24288
24289 fi
24290
24291 done
24292
24293
24294
24295 for ac_func in fork vfork
24296 do
24297 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24298 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24299 $as_echo_n "checking for $ac_func... " >&6; }
24300 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24301 $as_echo_n "(cached) " >&6
24302 else
24303 cat >conftest.$ac_ext <<_ACEOF
24304 /* confdefs.h. */
24305 _ACEOF
24306 cat confdefs.h >>conftest.$ac_ext
24307 cat >>conftest.$ac_ext <<_ACEOF
24308 /* end confdefs.h. */
24309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24311 #define $ac_func innocuous_$ac_func
24312
24313 /* System header to define __stub macros and hopefully few prototypes,
24314 which can conflict with char $ac_func (); below.
24315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24316 <limits.h> exists even on freestanding compilers. */
24317
24318 #ifdef __STDC__
24319 # include <limits.h>
24320 #else
24321 # include <assert.h>
24322 #endif
24323
24324 #undef $ac_func
24325
24326 /* Override any GCC internal prototype to avoid an error.
24327 Use char because int might match the return type of a GCC
24328 builtin and then its argument prototype would still apply. */
24329 #ifdef __cplusplus
24330 extern "C"
24331 #endif
24332 char $ac_func ();
24333 /* The GNU C library defines this for functions which it implements
24334 to always fail with ENOSYS. Some functions are actually named
24335 something starting with __ and the normal name is an alias. */
24336 #if defined __stub_$ac_func || defined __stub___$ac_func
24337 choke me
24338 #endif
24339
24340 int
24341 main ()
24342 {
24343 return $ac_func ();
24344 ;
24345 return 0;
24346 }
24347 _ACEOF
24348 rm -f conftest.$ac_objext conftest$ac_exeext
24349 if { (ac_try="$ac_link"
24350 case "(($ac_try" in
24351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24352 *) ac_try_echo=$ac_try;;
24353 esac
24354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24355 $as_echo "$ac_try_echo") >&5
24356 (eval "$ac_link") 2>conftest.er1
24357 ac_status=$?
24358 grep -v '^ *+' conftest.er1 >conftest.err
24359 rm -f conftest.er1
24360 cat conftest.err >&5
24361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362 (exit $ac_status); } && {
24363 test -z "$ac_c_werror_flag" ||
24364 test ! -s conftest.err
24365 } && test -s conftest$ac_exeext && {
24366 test "$cross_compiling" = yes ||
24367 $as_test_x conftest$ac_exeext
24368 }; then
24369 eval "$as_ac_var=yes"
24370 else
24371 $as_echo "$as_me: failed program was:" >&5
24372 sed 's/^/| /' conftest.$ac_ext >&5
24373
24374 eval "$as_ac_var=no"
24375 fi
24376
24377 rm -rf conftest.dSYM
24378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24379 conftest$ac_exeext conftest.$ac_ext
24380 fi
24381 ac_res=`eval 'as_val=${'$as_ac_var'}
24382 $as_echo "$as_val"'`
24383 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24384 $as_echo "$ac_res" >&6; }
24385 as_val=`eval 'as_val=${'$as_ac_var'}
24386 $as_echo "$as_val"'`
24387 if test "x$as_val" = x""yes; then
24388 cat >>confdefs.h <<_ACEOF
24389 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24390 _ACEOF
24391
24392 fi
24393 done
24394
24395 if test "x$ac_cv_func_fork" = xyes; then
24396 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
24397 $as_echo_n "checking for working fork... " >&6; }
24398 if test "${ac_cv_func_fork_works+set}" = set; then
24399 $as_echo_n "(cached) " >&6
24400 else
24401 if test "$cross_compiling" = yes; then
24402 ac_cv_func_fork_works=cross
24403 else
24404 cat >conftest.$ac_ext <<_ACEOF
24405 /* confdefs.h. */
24406 _ACEOF
24407 cat confdefs.h >>conftest.$ac_ext
24408 cat >>conftest.$ac_ext <<_ACEOF
24409 /* end confdefs.h. */
24410 $ac_includes_default
24411 int
24412 main ()
24413 {
24414
24415 /* By Ruediger Kuhlmann. */
24416 return fork () < 0;
24417
24418 ;
24419 return 0;
24420 }
24421 _ACEOF
24422 rm -f conftest$ac_exeext
24423 if { (ac_try="$ac_link"
24424 case "(($ac_try" in
24425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24426 *) ac_try_echo=$ac_try;;
24427 esac
24428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24429 $as_echo "$ac_try_echo") >&5
24430 (eval "$ac_link") 2>&5
24431 ac_status=$?
24432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24434 { (case "(($ac_try" in
24435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24436 *) ac_try_echo=$ac_try;;
24437 esac
24438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24439 $as_echo "$ac_try_echo") >&5
24440 (eval "$ac_try") 2>&5
24441 ac_status=$?
24442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443 (exit $ac_status); }; }; then
24444 ac_cv_func_fork_works=yes
24445 else
24446 $as_echo "$as_me: program exited with status $ac_status" >&5
24447 $as_echo "$as_me: failed program was:" >&5
24448 sed 's/^/| /' conftest.$ac_ext >&5
24449
24450 ( exit $ac_status )
24451 ac_cv_func_fork_works=no
24452 fi
24453 rm -rf conftest.dSYM
24454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24455 fi
24456
24457
24458 fi
24459 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24460 $as_echo "$ac_cv_func_fork_works" >&6; }
24461
24462 else
24463 ac_cv_func_fork_works=$ac_cv_func_fork
24464 fi
24465 if test "x$ac_cv_func_fork_works" = xcross; then
24466 case $host in
24467 *-*-amigaos* | *-*-msdosdjgpp*)
24468 # Override, as these systems have only a dummy fork() stub
24469 ac_cv_func_fork_works=no
24470 ;;
24471 *)
24472 ac_cv_func_fork_works=yes
24473 ;;
24474 esac
24475 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24476 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24477 fi
24478 ac_cv_func_vfork_works=$ac_cv_func_vfork
24479 if test "x$ac_cv_func_vfork" = xyes; then
24480 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
24481 $as_echo_n "checking for working vfork... " >&6; }
24482 if test "${ac_cv_func_vfork_works+set}" = set; then
24483 $as_echo_n "(cached) " >&6
24484 else
24485 if test "$cross_compiling" = yes; then
24486 ac_cv_func_vfork_works=cross
24487 else
24488 cat >conftest.$ac_ext <<_ACEOF
24489 /* confdefs.h. */
24490 _ACEOF
24491 cat confdefs.h >>conftest.$ac_ext
24492 cat >>conftest.$ac_ext <<_ACEOF
24493 /* end confdefs.h. */
24494 /* Thanks to Paul Eggert for this test. */
24495 $ac_includes_default
24496 #include <sys/wait.h>
24497 #ifdef HAVE_VFORK_H
24498 # include <vfork.h>
24499 #endif
24500 /* On some sparc systems, changes by the child to local and incoming
24501 argument registers are propagated back to the parent. The compiler
24502 is told about this with #include <vfork.h>, but some compilers
24503 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24504 static variable whose address is put into a register that is
24505 clobbered by the vfork. */
24506 static void
24507 #ifdef __cplusplus
24508 sparc_address_test (int arg)
24509 # else
24510 sparc_address_test (arg) int arg;
24511 #endif
24512 {
24513 static pid_t child;
24514 if (!child) {
24515 child = vfork ();
24516 if (child < 0) {
24517 perror ("vfork");
24518 _exit(2);
24519 }
24520 if (!child) {
24521 arg = getpid();
24522 write(-1, "", 0);
24523 _exit (arg);
24524 }
24525 }
24526 }
24527
24528 int
24529 main ()
24530 {
24531 pid_t parent = getpid ();
24532 pid_t child;
24533
24534 sparc_address_test (0);
24535
24536 child = vfork ();
24537
24538 if (child == 0) {
24539 /* Here is another test for sparc vfork register problems. This
24540 test uses lots of local variables, at least as many local
24541 variables as main has allocated so far including compiler
24542 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24543 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24544 reuse the register of parent for one of the local variables,
24545 since it will think that parent can't possibly be used any more
24546 in this routine. Assigning to the local variable will thus
24547 munge parent in the parent process. */
24548 pid_t
24549 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24550 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24551 /* Convince the compiler that p..p7 are live; otherwise, it might
24552 use the same hardware register for all 8 local variables. */
24553 if (p != p1 || p != p2 || p != p3 || p != p4
24554 || p != p5 || p != p6 || p != p7)
24555 _exit(1);
24556
24557 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24558 from child file descriptors. If the child closes a descriptor
24559 before it execs or exits, this munges the parent's descriptor
24560 as well. Test for this by closing stdout in the child. */
24561 _exit(close(fileno(stdout)) != 0);
24562 } else {
24563 int status;
24564 struct stat st;
24565
24566 while (wait(&status) != child)
24567 ;
24568 return (
24569 /* Was there some problem with vforking? */
24570 child < 0
24571
24572 /* Did the child fail? (This shouldn't happen.) */
24573 || status
24574
24575 /* Did the vfork/compiler bug occur? */
24576 || parent != getpid()
24577
24578 /* Did the file descriptor bug occur? */
24579 || fstat(fileno(stdout), &st) != 0
24580 );
24581 }
24582 }
24583 _ACEOF
24584 rm -f conftest$ac_exeext
24585 if { (ac_try="$ac_link"
24586 case "(($ac_try" in
24587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24588 *) ac_try_echo=$ac_try;;
24589 esac
24590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24591 $as_echo "$ac_try_echo") >&5
24592 (eval "$ac_link") 2>&5
24593 ac_status=$?
24594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24596 { (case "(($ac_try" in
24597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24598 *) ac_try_echo=$ac_try;;
24599 esac
24600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24601 $as_echo "$ac_try_echo") >&5
24602 (eval "$ac_try") 2>&5
24603 ac_status=$?
24604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605 (exit $ac_status); }; }; then
24606 ac_cv_func_vfork_works=yes
24607 else
24608 $as_echo "$as_me: program exited with status $ac_status" >&5
24609 $as_echo "$as_me: failed program was:" >&5
24610 sed 's/^/| /' conftest.$ac_ext >&5
24611
24612 ( exit $ac_status )
24613 ac_cv_func_vfork_works=no
24614 fi
24615 rm -rf conftest.dSYM
24616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24617 fi
24618
24619
24620 fi
24621 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
24622 $as_echo "$ac_cv_func_vfork_works" >&6; }
24623
24624 fi;
24625 if test "x$ac_cv_func_fork_works" = xcross; then
24626 ac_cv_func_vfork_works=$ac_cv_func_vfork
24627 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24628 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24629 fi
24630
24631 if test "x$ac_cv_func_vfork_works" = xyes; then
24632
24633 cat >>confdefs.h <<\_ACEOF
24634 #define HAVE_WORKING_VFORK 1
24635 _ACEOF
24636
24637 else
24638
24639 cat >>confdefs.h <<\_ACEOF
24640 #define vfork fork
24641 _ACEOF
24642
24643 fi
24644 if test "x$ac_cv_func_fork_works" = xyes; then
24645
24646 cat >>confdefs.h <<\_ACEOF
24647 #define HAVE_WORKING_FORK 1
24648 _ACEOF
24649
24650 fi
24651
24652
24653 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
24654 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
24655 if test "${emacs_cv_langinfo_codeset+set}" = set; then
24656 $as_echo_n "(cached) " >&6
24657 else
24658 cat >conftest.$ac_ext <<_ACEOF
24659 /* confdefs.h. */
24660 _ACEOF
24661 cat confdefs.h >>conftest.$ac_ext
24662 cat >>conftest.$ac_ext <<_ACEOF
24663 /* end confdefs.h. */
24664 #include <langinfo.h>
24665 int
24666 main ()
24667 {
24668 char* cs = nl_langinfo(CODESET);
24669 ;
24670 return 0;
24671 }
24672 _ACEOF
24673 rm -f conftest.$ac_objext conftest$ac_exeext
24674 if { (ac_try="$ac_link"
24675 case "(($ac_try" in
24676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24677 *) ac_try_echo=$ac_try;;
24678 esac
24679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24680 $as_echo "$ac_try_echo") >&5
24681 (eval "$ac_link") 2>conftest.er1
24682 ac_status=$?
24683 grep -v '^ *+' conftest.er1 >conftest.err
24684 rm -f conftest.er1
24685 cat conftest.err >&5
24686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687 (exit $ac_status); } && {
24688 test -z "$ac_c_werror_flag" ||
24689 test ! -s conftest.err
24690 } && test -s conftest$ac_exeext && {
24691 test "$cross_compiling" = yes ||
24692 $as_test_x conftest$ac_exeext
24693 }; then
24694 emacs_cv_langinfo_codeset=yes
24695 else
24696 $as_echo "$as_me: failed program was:" >&5
24697 sed 's/^/| /' conftest.$ac_ext >&5
24698
24699 emacs_cv_langinfo_codeset=no
24700 fi
24701
24702 rm -rf conftest.dSYM
24703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24704 conftest$ac_exeext conftest.$ac_ext
24705
24706 fi
24707 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
24708 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
24709 if test $emacs_cv_langinfo_codeset = yes; then
24710
24711 cat >>confdefs.h <<\_ACEOF
24712 #define HAVE_LANGINFO_CODESET 1
24713 _ACEOF
24714
24715 fi
24716
24717 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
24718 $as_echo_n "checking for size_t... " >&6; }
24719 if test "${ac_cv_type_size_t+set}" = set; then
24720 $as_echo_n "(cached) " >&6
24721 else
24722 ac_cv_type_size_t=no
24723 cat >conftest.$ac_ext <<_ACEOF
24724 /* confdefs.h. */
24725 _ACEOF
24726 cat confdefs.h >>conftest.$ac_ext
24727 cat >>conftest.$ac_ext <<_ACEOF
24728 /* end confdefs.h. */
24729 $ac_includes_default
24730 int
24731 main ()
24732 {
24733 if (sizeof (size_t))
24734 return 0;
24735 ;
24736 return 0;
24737 }
24738 _ACEOF
24739 rm -f conftest.$ac_objext
24740 if { (ac_try="$ac_compile"
24741 case "(($ac_try" in
24742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24743 *) ac_try_echo=$ac_try;;
24744 esac
24745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24746 $as_echo "$ac_try_echo") >&5
24747 (eval "$ac_compile") 2>conftest.er1
24748 ac_status=$?
24749 grep -v '^ *+' conftest.er1 >conftest.err
24750 rm -f conftest.er1
24751 cat conftest.err >&5
24752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753 (exit $ac_status); } && {
24754 test -z "$ac_c_werror_flag" ||
24755 test ! -s conftest.err
24756 } && test -s conftest.$ac_objext; then
24757 cat >conftest.$ac_ext <<_ACEOF
24758 /* confdefs.h. */
24759 _ACEOF
24760 cat confdefs.h >>conftest.$ac_ext
24761 cat >>conftest.$ac_ext <<_ACEOF
24762 /* end confdefs.h. */
24763 $ac_includes_default
24764 int
24765 main ()
24766 {
24767 if (sizeof ((size_t)))
24768 return 0;
24769 ;
24770 return 0;
24771 }
24772 _ACEOF
24773 rm -f conftest.$ac_objext
24774 if { (ac_try="$ac_compile"
24775 case "(($ac_try" in
24776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24777 *) ac_try_echo=$ac_try;;
24778 esac
24779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24780 $as_echo "$ac_try_echo") >&5
24781 (eval "$ac_compile") 2>conftest.er1
24782 ac_status=$?
24783 grep -v '^ *+' conftest.er1 >conftest.err
24784 rm -f conftest.er1
24785 cat conftest.err >&5
24786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787 (exit $ac_status); } && {
24788 test -z "$ac_c_werror_flag" ||
24789 test ! -s conftest.err
24790 } && test -s conftest.$ac_objext; then
24791 :
24792 else
24793 $as_echo "$as_me: failed program was:" >&5
24794 sed 's/^/| /' conftest.$ac_ext >&5
24795
24796 ac_cv_type_size_t=yes
24797 fi
24798
24799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24800 else
24801 $as_echo "$as_me: failed program was:" >&5
24802 sed 's/^/| /' conftest.$ac_ext >&5
24803
24804
24805 fi
24806
24807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24808 fi
24809 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24810 $as_echo "$ac_cv_type_size_t" >&6; }
24811 if test "x$ac_cv_type_size_t" = x""yes; then
24812
24813 cat >>confdefs.h <<_ACEOF
24814 #define HAVE_SIZE_T 1
24815 _ACEOF
24816
24817
24818 fi
24819
24820
24821 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
24822 $as_echo_n "checking for mbstate_t... " >&6; }
24823 if test "${ac_cv_type_mbstate_t+set}" = set; then
24824 $as_echo_n "(cached) " >&6
24825 else
24826 cat >conftest.$ac_ext <<_ACEOF
24827 /* confdefs.h. */
24828 _ACEOF
24829 cat confdefs.h >>conftest.$ac_ext
24830 cat >>conftest.$ac_ext <<_ACEOF
24831 /* end confdefs.h. */
24832 $ac_includes_default
24833 # include <wchar.h>
24834 int
24835 main ()
24836 {
24837 mbstate_t x; return sizeof x;
24838 ;
24839 return 0;
24840 }
24841 _ACEOF
24842 rm -f conftest.$ac_objext
24843 if { (ac_try="$ac_compile"
24844 case "(($ac_try" in
24845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24846 *) ac_try_echo=$ac_try;;
24847 esac
24848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24849 $as_echo "$ac_try_echo") >&5
24850 (eval "$ac_compile") 2>conftest.er1
24851 ac_status=$?
24852 grep -v '^ *+' conftest.er1 >conftest.err
24853 rm -f conftest.er1
24854 cat conftest.err >&5
24855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); } && {
24857 test -z "$ac_c_werror_flag" ||
24858 test ! -s conftest.err
24859 } && test -s conftest.$ac_objext; then
24860 ac_cv_type_mbstate_t=yes
24861 else
24862 $as_echo "$as_me: failed program was:" >&5
24863 sed 's/^/| /' conftest.$ac_ext >&5
24864
24865 ac_cv_type_mbstate_t=no
24866 fi
24867
24868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24869 fi
24870 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
24871 $as_echo "$ac_cv_type_mbstate_t" >&6; }
24872 if test $ac_cv_type_mbstate_t = yes; then
24873
24874 cat >>confdefs.h <<\_ACEOF
24875 #define HAVE_MBSTATE_T 1
24876 _ACEOF
24877
24878 else
24879
24880 cat >>confdefs.h <<\_ACEOF
24881 #define mbstate_t int
24882 _ACEOF
24883
24884 fi
24885
24886 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
24887 $as_echo_n "checking for C restrict keyword... " >&6; }
24888 if test "${emacs_cv_c_restrict+set}" = set; then
24889 $as_echo_n "(cached) " >&6
24890 else
24891 cat >conftest.$ac_ext <<_ACEOF
24892 /* confdefs.h. */
24893 _ACEOF
24894 cat confdefs.h >>conftest.$ac_ext
24895 cat >>conftest.$ac_ext <<_ACEOF
24896 /* end confdefs.h. */
24897 void fred (int *restrict x);
24898 int
24899 main ()
24900 {
24901
24902 ;
24903 return 0;
24904 }
24905 _ACEOF
24906 rm -f conftest.$ac_objext
24907 if { (ac_try="$ac_compile"
24908 case "(($ac_try" in
24909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24910 *) ac_try_echo=$ac_try;;
24911 esac
24912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24913 $as_echo "$ac_try_echo") >&5
24914 (eval "$ac_compile") 2>conftest.er1
24915 ac_status=$?
24916 grep -v '^ *+' conftest.er1 >conftest.err
24917 rm -f conftest.er1
24918 cat conftest.err >&5
24919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920 (exit $ac_status); } && {
24921 test -z "$ac_c_werror_flag" ||
24922 test ! -s conftest.err
24923 } && test -s conftest.$ac_objext; then
24924 emacs_cv_c_restrict=yes
24925 else
24926 $as_echo "$as_me: failed program was:" >&5
24927 sed 's/^/| /' conftest.$ac_ext >&5
24928
24929 cat >conftest.$ac_ext <<_ACEOF
24930 /* confdefs.h. */
24931 _ACEOF
24932 cat confdefs.h >>conftest.$ac_ext
24933 cat >>conftest.$ac_ext <<_ACEOF
24934 /* end confdefs.h. */
24935 void fred (int *__restrict x);
24936 int
24937 main ()
24938 {
24939
24940 ;
24941 return 0;
24942 }
24943 _ACEOF
24944 rm -f conftest.$ac_objext
24945 if { (ac_try="$ac_compile"
24946 case "(($ac_try" in
24947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24948 *) ac_try_echo=$ac_try;;
24949 esac
24950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24951 $as_echo "$ac_try_echo") >&5
24952 (eval "$ac_compile") 2>conftest.er1
24953 ac_status=$?
24954 grep -v '^ *+' conftest.er1 >conftest.err
24955 rm -f conftest.er1
24956 cat conftest.err >&5
24957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24958 (exit $ac_status); } && {
24959 test -z "$ac_c_werror_flag" ||
24960 test ! -s conftest.err
24961 } && test -s conftest.$ac_objext; then
24962 emacs_cv_c_restrict=__restrict
24963 else
24964 $as_echo "$as_me: failed program was:" >&5
24965 sed 's/^/| /' conftest.$ac_ext >&5
24966
24967 emacs_cv_c_restrict=no
24968 fi
24969
24970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24971 fi
24972
24973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24974 fi
24975 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24976 $as_echo "$emacs_cv_c_restrict" >&6; }
24977 case "$emacs_cv_c_restrict" in
24978 yes) emacs_restrict=restrict;;
24979 no) emacs_restrict="";;
24980 *) emacs_restrict="$emacs_cv_c_restrict";;
24981 esac
24982 if test "$emacs_restrict" != __restrict; then
24983
24984 cat >>confdefs.h <<_ACEOF
24985 #define __restrict $emacs_restrict
24986 _ACEOF
24987
24988 fi
24989
24990 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24991 $as_echo_n "checking for C restricted array declarations... " >&6; }
24992 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24993 $as_echo_n "(cached) " >&6
24994 else
24995 cat >conftest.$ac_ext <<_ACEOF
24996 /* confdefs.h. */
24997 _ACEOF
24998 cat confdefs.h >>conftest.$ac_ext
24999 cat >>conftest.$ac_ext <<_ACEOF
25000 /* end confdefs.h. */
25001 void fred (int x[__restrict]);
25002 int
25003 main ()
25004 {
25005
25006 ;
25007 return 0;
25008 }
25009 _ACEOF
25010 rm -f conftest.$ac_objext
25011 if { (ac_try="$ac_compile"
25012 case "(($ac_try" in
25013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25014 *) ac_try_echo=$ac_try;;
25015 esac
25016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25017 $as_echo "$ac_try_echo") >&5
25018 (eval "$ac_compile") 2>conftest.er1
25019 ac_status=$?
25020 grep -v '^ *+' conftest.er1 >conftest.err
25021 rm -f conftest.er1
25022 cat conftest.err >&5
25023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024 (exit $ac_status); } && {
25025 test -z "$ac_c_werror_flag" ||
25026 test ! -s conftest.err
25027 } && test -s conftest.$ac_objext; then
25028 emacs_cv_c_restrict_arr=yes
25029 else
25030 $as_echo "$as_me: failed program was:" >&5
25031 sed 's/^/| /' conftest.$ac_ext >&5
25032
25033 emacs_cv_c_restrict_arr=no
25034 fi
25035
25036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25037 fi
25038 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25039 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25040 if test "$emacs_cv_c_restrict_arr" = yes; then
25041
25042 cat >>confdefs.h <<\_ACEOF
25043 #define __restrict_arr __restrict
25044 _ACEOF
25045
25046 fi
25047
25048
25049
25050 # Set up the CFLAGS for real compilation, so we can substitute it.
25051 CFLAGS="$REAL_CFLAGS"
25052 CPPFLAGS="$REAL_CPPFLAGS"
25053
25054 #### Find out which version of Emacs this is.
25055 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25056 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25057 if test x"${version}" = x; then
25058 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25059 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25060 { (exit 1); exit 1; }; }
25061 fi
25062
25063 ### Specify what sort of things we'll be editing into Makefile and config.h.
25064 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25065
25066
25067
25068
25069
25070
25071
25072
25073
25074
25075
25076
25077
25078
25079
25080
25081
25082
25083
25084
25085
25086
25087
25088
25089
25090
25091
25092
25093
25094
25095
25096
25097
25098
25099
25100
25101
25102
25103
25104
25105
25106
25107
25108 cat >>confdefs.h <<_ACEOF
25109 #define EMACS_CONFIGURATION "${canonical}"
25110 _ACEOF
25111
25112
25113 cat >>confdefs.h <<_ACEOF
25114 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25115 _ACEOF
25116
25117
25118 cat >>confdefs.h <<_ACEOF
25119 #define config_machfile "${machfile}"
25120 _ACEOF
25121
25122
25123 cat >>confdefs.h <<_ACEOF
25124 #define config_opsysfile "${opsysfile}"
25125 _ACEOF
25126
25127
25128 cat >>confdefs.h <<_ACEOF
25129 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25130 _ACEOF
25131
25132
25133 cat >>confdefs.h <<_ACEOF
25134 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25135 _ACEOF
25136
25137
25138 cat >>confdefs.h <<_ACEOF
25139 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25140 _ACEOF
25141
25142
25143 cat >>confdefs.h <<_ACEOF
25144 #define UNEXEC_SRC ${UNEXEC_SRC}
25145 _ACEOF
25146
25147
25148 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25149
25150 cat >>confdefs.h <<\_ACEOF
25151 #define HAVE_X_WINDOWS 1
25152 _ACEOF
25153
25154 fi
25155 if test "${USE_X_TOOLKIT}" != "none" ; then
25156
25157 cat >>confdefs.h <<\_ACEOF
25158 #define USE_X_TOOLKIT 1
25159 _ACEOF
25160
25161 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25162
25163 cat >>confdefs.h <<\_ACEOF
25164 #define USE_LUCID 1
25165 _ACEOF
25166
25167 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25168
25169 cat >>confdefs.h <<\_ACEOF
25170 #define USE_MOTIF 1
25171 _ACEOF
25172
25173 fi
25174 fi
25175 if test "${HAVE_X11}" = "yes" ; then
25176
25177 cat >>confdefs.h <<\_ACEOF
25178 #define HAVE_X11 1
25179 _ACEOF
25180
25181 fi
25182 if test "${HAVE_MENUS}" = "yes" ; then
25183
25184 cat >>confdefs.h <<\_ACEOF
25185 #define HAVE_MENUS 1
25186 _ACEOF
25187
25188 fi
25189 if test "${GNU_MALLOC}" = "yes" ; then
25190
25191 cat >>confdefs.h <<\_ACEOF
25192 #define GNU_MALLOC 1
25193 _ACEOF
25194
25195 fi
25196 if test "${REL_ALLOC}" = "yes" ; then
25197
25198 cat >>confdefs.h <<\_ACEOF
25199 #define REL_ALLOC 1
25200 _ACEOF
25201
25202 fi
25203
25204
25205
25206
25207
25208
25209 #### Report on what we decided to do.
25210 #### Report GTK as a toolkit, even if it doesn't use Xt.
25211 #### It makes printing result more understandable as using GTK sets
25212 #### toolkit_scroll_bars to yes by default.
25213 if test "${HAVE_GTK}" = "yes"; then
25214 USE_X_TOOLKIT=GTK
25215 fi
25216
25217 echo "
25218 Configured for \`${canonical}'.
25219
25220 Where should the build process find the source code? ${srcdir}
25221 What operating system and machine description files should Emacs use?
25222 \`${opsysfile}' and \`${machfile}'
25223 What compiler should emacs be built with? ${CC} ${CFLAGS}
25224 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25225 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25226 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25227 What window system should Emacs use? ${window_system}
25228 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25229
25230 if test -n "${x_includes}"; then
25231 echo " Where do we find X Windows header files? ${x_includes}"
25232 else
25233 echo " Where do we find X Windows header files? Standard dirs"
25234 fi
25235 if test -n "${x_libraries}"; then
25236 echo " Where do we find X Windows libraries? ${x_libraries}"
25237 else
25238 echo " Where do we find X Windows libraries? Standard dirs"
25239 fi
25240
25241 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25242 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25243 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25244 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25245 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
25246 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25247 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25248 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25249 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25250
25251 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25252 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25253 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25254 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25255
25256 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25257 echo
25258
25259 if test $USE_XASSERTS = yes; then
25260 echo " Compiling with asserts turned on."
25261 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
25262 fi
25263
25264 echo
25265
25266 if test "$USE_X_TOOLKIT" = GTK; then
25267 case "$canonical" in
25268 *cygwin*)
25269 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
25270 will probably get a crash on startup. If this happens, please use another
25271 toolkit for Emacs. See etc/PROBLEMS for more information."
25272 ;;
25273 esac
25274 fi
25275
25276 if test "$HAVE_NS" = "yes"; then
25277 echo
25278 echo "You must run \"make install\" in order to test the built application.
25279 The installed application will go to nextstep/Emacs.app and can be
25280 run or moved from there."
25281 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25282 echo "The application will be fully self-contained."
25283 else
25284 echo "The lisp resources for the application will be installed under ${prefix}.
25285 You may need to run \"make install\" with sudo. The application will fail
25286 to run if these resources are not installed."
25287 fi
25288 echo
25289 fi
25290
25291 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
25292 echo "D-Bus integration has been tested for GNU/Linux only."
25293 echo
25294 fi
25295
25296
25297 # Remove any trailing slashes in these variables.
25298 test "${prefix}" != NONE &&
25299 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25300 test "${exec_prefix}" != NONE &&
25301 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25302
25303 # Now get this: Some word that is part of the ${srcdir} directory name
25304 # or the ${configuration} value might, just might, happen to be an
25305 # identifier like `sun4' or `i386' or something, and be predefined by
25306 # the C preprocessor to some helpful value like 1, or maybe the empty
25307 # string. Needless to say consequent macro substitutions are less
25308 # than conducive to the makefile finding the correct directory.
25309 cpp_undefs="`echo $srcdir $configuration $canonical |
25310 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25311 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
25312
25313 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25314 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25315 ## from Makefile.c can correctly provide the arg `-traditional' to the
25316 ## C preprocessor.
25317
25318 cat >conftest.$ac_ext <<_ACEOF
25319 /* confdefs.h. */
25320 _ACEOF
25321 cat confdefs.h >>conftest.$ac_ext
25322 cat >>conftest.$ac_ext <<_ACEOF
25323 /* end confdefs.h. */
25324 yes..yes
25325 _ACEOF
25326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25327 $EGREP "yes..yes" >/dev/null 2>&1; then
25328 CPP_NEED_TRADITIONAL=no
25329 else
25330 CPP_NEED_TRADITIONAL=yes
25331 fi
25332 rm -f conftest*
25333
25334
25335 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"
25336
25337 ac_config_commands="$ac_config_commands default"
25338
25339 cat >confcache <<\_ACEOF
25340 # This file is a shell script that caches the results of configure
25341 # tests run on this system so they can be shared between configure
25342 # scripts and configure runs, see configure's option --config-cache.
25343 # It is not useful on other systems. If it contains results you don't
25344 # want to keep, you may remove or edit it.
25345 #
25346 # config.status only pays attention to the cache file if you give it
25347 # the --recheck option to rerun configure.
25348 #
25349 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25350 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25351 # following values.
25352
25353 _ACEOF
25354
25355 # The following way of writing the cache mishandles newlines in values,
25356 # but we know of no workaround that is simple, portable, and efficient.
25357 # So, we kill variables containing newlines.
25358 # Ultrix sh set writes to stderr and can't be redirected directly,
25359 # and sets the high bit in the cache file unless we assign to the vars.
25360 (
25361 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25362 eval ac_val=\$$ac_var
25363 case $ac_val in #(
25364 *${as_nl}*)
25365 case $ac_var in #(
25366 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
25367 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25368 esac
25369 case $ac_var in #(
25370 _ | IFS | as_nl) ;; #(
25371 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25372 *) $as_unset $ac_var ;;
25373 esac ;;
25374 esac
25375 done
25376
25377 (set) 2>&1 |
25378 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25379 *${as_nl}ac_space=\ *)
25380 # `set' does not quote correctly, so add quotes (double-quote
25381 # substitution turns \\\\ into \\, and sed turns \\ into \).
25382 sed -n \
25383 "s/'/'\\\\''/g;
25384 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25385 ;; #(
25386 *)
25387 # `set' quotes correctly as required by POSIX, so do not add quotes.
25388 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25389 ;;
25390 esac |
25391 sort
25392 ) |
25393 sed '
25394 /^ac_cv_env_/b end
25395 t clear
25396 :clear
25397 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25398 t end
25399 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25400 :end' >>confcache
25401 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25402 if test -w "$cache_file"; then
25403 test "x$cache_file" != "x/dev/null" &&
25404 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
25405 $as_echo "$as_me: updating cache $cache_file" >&6;}
25406 cat confcache >$cache_file
25407 else
25408 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25409 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25410 fi
25411 fi
25412 rm -f confcache
25413
25414 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25415 # Let make expand exec_prefix.
25416 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25417
25418 DEFS=-DHAVE_CONFIG_H
25419
25420 ac_libobjs=
25421 ac_ltlibobjs=
25422 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25423 # 1. Remove the extension, and $U if already installed.
25424 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25425 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25426 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25427 # will be set to the directory where LIBOBJS objects are built.
25428 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25429 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25430 done
25431 LIBOBJS=$ac_libobjs
25432
25433 LTLIBOBJS=$ac_ltlibobjs
25434
25435
25436
25437 : ${CONFIG_STATUS=./config.status}
25438 ac_write_fail=0
25439 ac_clean_files_save=$ac_clean_files
25440 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25441 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25442 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25443 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25444 #! $SHELL
25445 # Generated by $as_me.
25446 # Run this file to recreate the current configuration.
25447 # Compiler output produced by configure, useful for debugging
25448 # configure, is in config.log if it exists.
25449
25450 debug=false
25451 ac_cs_recheck=false
25452 ac_cs_silent=false
25453 SHELL=\${CONFIG_SHELL-$SHELL}
25454 _ACEOF
25455
25456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25457 ## --------------------- ##
25458 ## M4sh Initialization. ##
25459 ## --------------------- ##
25460
25461 # Be more Bourne compatible
25462 DUALCASE=1; export DUALCASE # for MKS sh
25463 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25464 emulate sh
25465 NULLCMD=:
25466 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25467 # is contrary to our usage. Disable this feature.
25468 alias -g '${1+"$@"}'='"$@"'
25469 setopt NO_GLOB_SUBST
25470 else
25471 case `(set -o) 2>/dev/null` in
25472 *posix*) set -o posix ;;
25473 esac
25474
25475 fi
25476
25477
25478
25479
25480 # PATH needs CR
25481 # Avoid depending upon Character Ranges.
25482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25485 as_cr_digits='0123456789'
25486 as_cr_alnum=$as_cr_Letters$as_cr_digits
25487
25488 as_nl='
25489 '
25490 export as_nl
25491 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25492 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25493 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25494 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25495 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25496 as_echo='printf %s\n'
25497 as_echo_n='printf %s'
25498 else
25499 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25500 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25501 as_echo_n='/usr/ucb/echo -n'
25502 else
25503 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25504 as_echo_n_body='eval
25505 arg=$1;
25506 case $arg in
25507 *"$as_nl"*)
25508 expr "X$arg" : "X\\(.*\\)$as_nl";
25509 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25510 esac;
25511 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25512 '
25513 export as_echo_n_body
25514 as_echo_n='sh -c $as_echo_n_body as_echo'
25515 fi
25516 export as_echo_body
25517 as_echo='sh -c $as_echo_body as_echo'
25518 fi
25519
25520 # The user is always right.
25521 if test "${PATH_SEPARATOR+set}" != set; then
25522 PATH_SEPARATOR=:
25523 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25524 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25525 PATH_SEPARATOR=';'
25526 }
25527 fi
25528
25529 # Support unset when possible.
25530 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25531 as_unset=unset
25532 else
25533 as_unset=false
25534 fi
25535
25536
25537 # IFS
25538 # We need space, tab and new line, in precisely that order. Quoting is
25539 # there to prevent editors from complaining about space-tab.
25540 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25541 # splitting by setting IFS to empty value.)
25542 IFS=" "" $as_nl"
25543
25544 # Find who we are. Look in the path if we contain no directory separator.
25545 case $0 in
25546 *[\\/]* ) as_myself=$0 ;;
25547 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25548 for as_dir in $PATH
25549 do
25550 IFS=$as_save_IFS
25551 test -z "$as_dir" && as_dir=.
25552 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25553 done
25554 IFS=$as_save_IFS
25555
25556 ;;
25557 esac
25558 # We did not find ourselves, most probably we were run as `sh COMMAND'
25559 # in which case we are not to be found in the path.
25560 if test "x$as_myself" = x; then
25561 as_myself=$0
25562 fi
25563 if test ! -f "$as_myself"; then
25564 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25565 { (exit 1); exit 1; }
25566 fi
25567
25568 # Work around bugs in pre-3.0 UWIN ksh.
25569 for as_var in ENV MAIL MAILPATH
25570 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25571 done
25572 PS1='$ '
25573 PS2='> '
25574 PS4='+ '
25575
25576 # NLS nuisances.
25577 LC_ALL=C
25578 export LC_ALL
25579 LANGUAGE=C
25580 export LANGUAGE
25581
25582 # Required to use basename.
25583 if expr a : '\(a\)' >/dev/null 2>&1 &&
25584 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25585 as_expr=expr
25586 else
25587 as_expr=false
25588 fi
25589
25590 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25591 as_basename=basename
25592 else
25593 as_basename=false
25594 fi
25595
25596
25597 # Name of the executable.
25598 as_me=`$as_basename -- "$0" ||
25599 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25600 X"$0" : 'X\(//\)$' \| \
25601 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25602 $as_echo X/"$0" |
25603 sed '/^.*\/\([^/][^/]*\)\/*$/{
25604 s//\1/
25605 q
25606 }
25607 /^X\/\(\/\/\)$/{
25608 s//\1/
25609 q
25610 }
25611 /^X\/\(\/\).*/{
25612 s//\1/
25613 q
25614 }
25615 s/.*/./; q'`
25616
25617 # CDPATH.
25618 $as_unset CDPATH
25619
25620
25621
25622 as_lineno_1=$LINENO
25623 as_lineno_2=$LINENO
25624 test "x$as_lineno_1" != "x$as_lineno_2" &&
25625 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25626
25627 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25628 # uniformly replaced by the line number. The first 'sed' inserts a
25629 # line-number line after each line using $LINENO; the second 'sed'
25630 # does the real work. The second script uses 'N' to pair each
25631 # line-number line with the line containing $LINENO, and appends
25632 # trailing '-' during substitution so that $LINENO is not a special
25633 # case at line end.
25634 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25635 # scripts with optimization help from Paolo Bonzini. Blame Lee
25636 # E. McMahon (1931-1989) for sed's syntax. :-)
25637 sed -n '
25638 p
25639 /[$]LINENO/=
25640 ' <$as_myself |
25641 sed '
25642 s/[$]LINENO.*/&-/
25643 t lineno
25644 b
25645 :lineno
25646 N
25647 :loop
25648 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25649 t loop
25650 s/-\n.*//
25651 ' >$as_me.lineno &&
25652 chmod +x "$as_me.lineno" ||
25653 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25654 { (exit 1); exit 1; }; }
25655
25656 # Don't try to exec as it changes $[0], causing all sort of problems
25657 # (the dirname of $[0] is not the place where we might find the
25658 # original and so on. Autoconf is especially sensitive to this).
25659 . "./$as_me.lineno"
25660 # Exit status is that of the last command.
25661 exit
25662 }
25663
25664
25665 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25666 as_dirname=dirname
25667 else
25668 as_dirname=false
25669 fi
25670
25671 ECHO_C= ECHO_N= ECHO_T=
25672 case `echo -n x` in
25673 -n*)
25674 case `echo 'x\c'` in
25675 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25676 *) ECHO_C='\c';;
25677 esac;;
25678 *)
25679 ECHO_N='-n';;
25680 esac
25681 if expr a : '\(a\)' >/dev/null 2>&1 &&
25682 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25683 as_expr=expr
25684 else
25685 as_expr=false
25686 fi
25687
25688 rm -f conf$$ conf$$.exe conf$$.file
25689 if test -d conf$$.dir; then
25690 rm -f conf$$.dir/conf$$.file
25691 else
25692 rm -f conf$$.dir
25693 mkdir conf$$.dir 2>/dev/null
25694 fi
25695 if (echo >conf$$.file) 2>/dev/null; then
25696 if ln -s conf$$.file conf$$ 2>/dev/null; then
25697 as_ln_s='ln -s'
25698 # ... but there are two gotchas:
25699 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25700 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25701 # In both cases, we have to default to `cp -p'.
25702 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25703 as_ln_s='cp -p'
25704 elif ln conf$$.file conf$$ 2>/dev/null; then
25705 as_ln_s=ln
25706 else
25707 as_ln_s='cp -p'
25708 fi
25709 else
25710 as_ln_s='cp -p'
25711 fi
25712 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25713 rmdir conf$$.dir 2>/dev/null
25714
25715 if mkdir -p . 2>/dev/null; then
25716 as_mkdir_p=:
25717 else
25718 test -d ./-p && rmdir ./-p
25719 as_mkdir_p=false
25720 fi
25721
25722 if test -x / >/dev/null 2>&1; then
25723 as_test_x='test -x'
25724 else
25725 if ls -dL / >/dev/null 2>&1; then
25726 as_ls_L_option=L
25727 else
25728 as_ls_L_option=
25729 fi
25730 as_test_x='
25731 eval sh -c '\''
25732 if test -d "$1"; then
25733 test -d "$1/.";
25734 else
25735 case $1 in
25736 -*)set "./$1";;
25737 esac;
25738 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25739 ???[sx]*):;;*)false;;esac;fi
25740 '\'' sh
25741 '
25742 fi
25743 as_executable_p=$as_test_x
25744
25745 # Sed expression to map a string onto a valid CPP name.
25746 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25747
25748 # Sed expression to map a string onto a valid variable name.
25749 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25750
25751
25752 exec 6>&1
25753
25754 # Save the log message, to keep $[0] and so on meaningful, and to
25755 # report actual input values of CONFIG_FILES etc. instead of their
25756 # values after options handling.
25757 ac_log="
25758 This file was extended by emacs $as_me 23.0.91, which was
25759 generated by GNU Autoconf 2.63. Invocation command line was
25760
25761 CONFIG_FILES = $CONFIG_FILES
25762 CONFIG_HEADERS = $CONFIG_HEADERS
25763 CONFIG_LINKS = $CONFIG_LINKS
25764 CONFIG_COMMANDS = $CONFIG_COMMANDS
25765 $ $0 $@
25766
25767 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25768 "
25769
25770 _ACEOF
25771
25772 case $ac_config_files in *"
25773 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25774 esac
25775
25776 case $ac_config_headers in *"
25777 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25778 esac
25779
25780
25781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25782 # Files that config.status was made for.
25783 config_files="$ac_config_files"
25784 config_headers="$ac_config_headers"
25785 config_commands="$ac_config_commands"
25786
25787 _ACEOF
25788
25789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25790 ac_cs_usage="\
25791 \`$as_me' instantiates files from templates according to the
25792 current configuration.
25793
25794 Usage: $0 [OPTION]... [FILE]...
25795
25796 -h, --help print this help, then exit
25797 -V, --version print version number and configuration settings, then exit
25798 -q, --quiet, --silent
25799 do not print progress messages
25800 -d, --debug don't remove temporary files
25801 --recheck update $as_me by reconfiguring in the same conditions
25802 --file=FILE[:TEMPLATE]
25803 instantiate the configuration file FILE
25804 --header=FILE[:TEMPLATE]
25805 instantiate the configuration header FILE
25806
25807 Configuration files:
25808 $config_files
25809
25810 Configuration headers:
25811 $config_headers
25812
25813 Configuration commands:
25814 $config_commands
25815
25816 Report bugs to <bug-autoconf@gnu.org>."
25817
25818 _ACEOF
25819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25820 ac_cs_version="\\
25821 emacs config.status 23.0.91
25822 configured by $0, generated by GNU Autoconf 2.63,
25823 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25824
25825 Copyright (C) 2008 Free Software Foundation, Inc.
25826 This config.status script is free software; the Free Software Foundation
25827 gives unlimited permission to copy, distribute and modify it."
25828
25829 ac_pwd='$ac_pwd'
25830 srcdir='$srcdir'
25831 INSTALL='$INSTALL'
25832 test -n "\$AWK" || AWK=awk
25833 _ACEOF
25834
25835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25836 # The default lists apply if the user does not specify any file.
25837 ac_need_defaults=:
25838 while test $# != 0
25839 do
25840 case $1 in
25841 --*=*)
25842 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25843 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25844 ac_shift=:
25845 ;;
25846 *)
25847 ac_option=$1
25848 ac_optarg=$2
25849 ac_shift=shift
25850 ;;
25851 esac
25852
25853 case $ac_option in
25854 # Handling of the options.
25855 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25856 ac_cs_recheck=: ;;
25857 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25858 $as_echo "$ac_cs_version"; exit ;;
25859 --debug | --debu | --deb | --de | --d | -d )
25860 debug=: ;;
25861 --file | --fil | --fi | --f )
25862 $ac_shift
25863 case $ac_optarg in
25864 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25865 esac
25866 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
25867 ac_need_defaults=false;;
25868 --header | --heade | --head | --hea )
25869 $ac_shift
25870 case $ac_optarg in
25871 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25872 esac
25873 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
25874 ac_need_defaults=false;;
25875 --he | --h)
25876 # Conflict between --help and --header
25877 { $as_echo "$as_me: error: ambiguous option: $1
25878 Try \`$0 --help' for more information." >&2
25879 { (exit 1); exit 1; }; };;
25880 --help | --hel | -h )
25881 $as_echo "$ac_cs_usage"; exit ;;
25882 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25883 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25884 ac_cs_silent=: ;;
25885
25886 # This is an error.
25887 -*) { $as_echo "$as_me: error: unrecognized option: $1
25888 Try \`$0 --help' for more information." >&2
25889 { (exit 1); exit 1; }; } ;;
25890
25891 *) ac_config_targets="$ac_config_targets $1"
25892 ac_need_defaults=false ;;
25893
25894 esac
25895 shift
25896 done
25897
25898 ac_configure_extra_args=
25899
25900 if $ac_cs_silent; then
25901 exec 6>/dev/null
25902 ac_configure_extra_args="$ac_configure_extra_args --silent"
25903 fi
25904
25905 _ACEOF
25906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25907 if \$ac_cs_recheck; then
25908 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25909 shift
25910 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25911 CONFIG_SHELL='$SHELL'
25912 export CONFIG_SHELL
25913 exec "\$@"
25914 fi
25915
25916 _ACEOF
25917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25918 exec 5>>config.log
25919 {
25920 echo
25921 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25922 ## Running $as_me. ##
25923 _ASBOX
25924 $as_echo "$ac_log"
25925 } >&5
25926
25927 _ACEOF
25928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25929 #
25930 # INIT-COMMANDS
25931 #
25932 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
25933
25934 _ACEOF
25935
25936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25937
25938 # Handling of arguments.
25939 for ac_config_target in $ac_config_targets
25940 do
25941 case $ac_config_target in
25942 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
25943 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25944 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
25945 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
25946 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
25947 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
25948 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
25949 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
25950 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
25951 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
25952 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
25953 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
25954 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25955
25956 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25957 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25958 { (exit 1); exit 1; }; };;
25959 esac
25960 done
25961
25962
25963 # If the user did not use the arguments to specify the items to instantiate,
25964 # then the envvar interface is used. Set only those that are not.
25965 # We use the long form for the default assignment because of an extremely
25966 # bizarre bug on SunOS 4.1.3.
25967 if $ac_need_defaults; then
25968 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25969 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25970 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25971 fi
25972
25973 # Have a temporary directory for convenience. Make it in the build tree
25974 # simply because there is no reason against having it here, and in addition,
25975 # creating and moving files from /tmp can sometimes cause problems.
25976 # Hook for its removal unless debugging.
25977 # Note that there is a small window in which the directory will not be cleaned:
25978 # after its creation but before its name has been assigned to `$tmp'.
25979 $debug ||
25980 {
25981 tmp=
25982 trap 'exit_status=$?
25983 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25984 ' 0
25985 trap '{ (exit 1); exit 1; }' 1 2 13 15
25986 }
25987 # Create a (secure) tmp directory for tmp files.
25988
25989 {
25990 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25991 test -n "$tmp" && test -d "$tmp"
25992 } ||
25993 {
25994 tmp=./conf$$-$RANDOM
25995 (umask 077 && mkdir "$tmp")
25996 } ||
25997 {
25998 $as_echo "$as_me: cannot create a temporary directory in ." >&2
25999 { (exit 1); exit 1; }
26000 }
26001
26002 # Set up the scripts for CONFIG_FILES section.
26003 # No need to generate them if there are no CONFIG_FILES.
26004 # This happens for instance with `./config.status config.h'.
26005 if test -n "$CONFIG_FILES"; then
26006
26007
26008 ac_cr=' '
26009 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26010 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26011 ac_cs_awk_cr='\\r'
26012 else
26013 ac_cs_awk_cr=$ac_cr
26014 fi
26015
26016 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26017 _ACEOF
26018
26019
26020 {
26021 echo "cat >conf$$subs.awk <<_ACEOF" &&
26022 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26023 echo "_ACEOF"
26024 } >conf$$subs.sh ||
26025 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26026 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26027 { (exit 1); exit 1; }; }
26028 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26029 ac_delim='%!_!# '
26030 for ac_last_try in false false false false false :; do
26031 . ./conf$$subs.sh ||
26032 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26033 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26034 { (exit 1); exit 1; }; }
26035
26036 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26037 if test $ac_delim_n = $ac_delim_num; then
26038 break
26039 elif $ac_last_try; then
26040 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26041 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26042 { (exit 1); exit 1; }; }
26043 else
26044 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26045 fi
26046 done
26047 rm -f conf$$subs.sh
26048
26049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26050 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26051 _ACEOF
26052 sed -n '
26053 h
26054 s/^/S["/; s/!.*/"]=/
26055 p
26056 g
26057 s/^[^!]*!//
26058 :repl
26059 t repl
26060 s/'"$ac_delim"'$//
26061 t delim
26062 :nl
26063 h
26064 s/\(.\{148\}\).*/\1/
26065 t more1
26066 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26067 p
26068 n
26069 b repl
26070 :more1
26071 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26072 p
26073 g
26074 s/.\{148\}//
26075 t nl
26076 :delim
26077 h
26078 s/\(.\{148\}\).*/\1/
26079 t more2
26080 s/["\\]/\\&/g; s/^/"/; s/$/"/
26081 p
26082 b
26083 :more2
26084 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26085 p
26086 g
26087 s/.\{148\}//
26088 t delim
26089 ' <conf$$subs.awk | sed '
26090 /^[^""]/{
26091 N
26092 s/\n//
26093 }
26094 ' >>$CONFIG_STATUS || ac_write_fail=1
26095 rm -f conf$$subs.awk
26096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26097 _ACAWK
26098 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26099 for (key in S) S_is_set[key] = 1
26100 FS = "\a"
26101
26102 }
26103 {
26104 line = $ 0
26105 nfields = split(line, field, "@")
26106 substed = 0
26107 len = length(field[1])
26108 for (i = 2; i < nfields; i++) {
26109 key = field[i]
26110 keylen = length(key)
26111 if (S_is_set[key]) {
26112 value = S[key]
26113 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26114 len += length(value) + length(field[++i])
26115 substed = 1
26116 } else
26117 len += 1 + keylen
26118 }
26119
26120 print line
26121 }
26122
26123 _ACAWK
26124 _ACEOF
26125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26126 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26127 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26128 else
26129 cat
26130 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26131 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26132 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26133 { (exit 1); exit 1; }; }
26134 _ACEOF
26135
26136 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26137 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26138 # trailing colons and then remove the whole line if VPATH becomes empty
26139 # (actually we leave an empty line to preserve line numbers).
26140 if test "x$srcdir" = x.; then
26141 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26142 s/:*\$(srcdir):*/:/
26143 s/:*\${srcdir}:*/:/
26144 s/:*@srcdir@:*/:/
26145 s/^\([^=]*=[ ]*\):*/\1/
26146 s/:*$//
26147 s/^[^=]*=[ ]*$//
26148 }'
26149 fi
26150
26151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26152 fi # test -n "$CONFIG_FILES"
26153
26154 # Set up the scripts for CONFIG_HEADERS section.
26155 # No need to generate them if there are no CONFIG_HEADERS.
26156 # This happens for instance with `./config.status Makefile'.
26157 if test -n "$CONFIG_HEADERS"; then
26158 cat >"$tmp/defines.awk" <<\_ACAWK ||
26159 BEGIN {
26160 _ACEOF
26161
26162 # Transform confdefs.h into an awk script `defines.awk', embedded as
26163 # here-document in config.status, that substitutes the proper values into
26164 # config.h.in to produce config.h.
26165
26166 # Create a delimiter string that does not exist in confdefs.h, to ease
26167 # handling of long lines.
26168 ac_delim='%!_!# '
26169 for ac_last_try in false false :; do
26170 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26171 if test -z "$ac_t"; then
26172 break
26173 elif $ac_last_try; then
26174 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26175 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26176 { (exit 1); exit 1; }; }
26177 else
26178 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26179 fi
26180 done
26181
26182 # For the awk script, D is an array of macro values keyed by name,
26183 # likewise P contains macro parameters if any. Preserve backslash
26184 # newline sequences.
26185
26186 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26187 sed -n '
26188 s/.\{148\}/&'"$ac_delim"'/g
26189 t rset
26190 :rset
26191 s/^[ ]*#[ ]*define[ ][ ]*/ /
26192 t def
26193 d
26194 :def
26195 s/\\$//
26196 t bsnl
26197 s/["\\]/\\&/g
26198 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26199 D["\1"]=" \3"/p
26200 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26201 d
26202 :bsnl
26203 s/["\\]/\\&/g
26204 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26205 D["\1"]=" \3\\\\\\n"\\/p
26206 t cont
26207 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26208 t cont
26209 d
26210 :cont
26211 n
26212 s/.\{148\}/&'"$ac_delim"'/g
26213 t clear
26214 :clear
26215 s/\\$//
26216 t bsnlc
26217 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26218 d
26219 :bsnlc
26220 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26221 b cont
26222 ' <confdefs.h | sed '
26223 s/'"$ac_delim"'/"\\\
26224 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26225
26226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26227 for (key in D) D_is_set[key] = 1
26228 FS = "\a"
26229 }
26230 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26231 line = \$ 0
26232 split(line, arg, " ")
26233 if (arg[1] == "#") {
26234 defundef = arg[2]
26235 mac1 = arg[3]
26236 } else {
26237 defundef = substr(arg[1], 2)
26238 mac1 = arg[2]
26239 }
26240 split(mac1, mac2, "(") #)
26241 macro = mac2[1]
26242 prefix = substr(line, 1, index(line, defundef) - 1)
26243 if (D_is_set[macro]) {
26244 # Preserve the white space surrounding the "#".
26245 print prefix "define", macro P[macro] D[macro]
26246 next
26247 } else {
26248 # Replace #undef with comments. This is necessary, for example,
26249 # in the case of _POSIX_SOURCE, which is predefined and required
26250 # on some systems where configure will not decide to define it.
26251 if (defundef == "undef") {
26252 print "/*", prefix defundef, macro, "*/"
26253 next
26254 }
26255 }
26256 }
26257 { print }
26258 _ACAWK
26259 _ACEOF
26260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26261 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26262 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26263 { (exit 1); exit 1; }; }
26264 fi # test -n "$CONFIG_HEADERS"
26265
26266
26267 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26268 shift
26269 for ac_tag
26270 do
26271 case $ac_tag in
26272 :[FHLC]) ac_mode=$ac_tag; continue;;
26273 esac
26274 case $ac_mode$ac_tag in
26275 :[FHL]*:*);;
26276 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
26277 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
26278 { (exit 1); exit 1; }; };;
26279 :[FH]-) ac_tag=-:-;;
26280 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26281 esac
26282 ac_save_IFS=$IFS
26283 IFS=:
26284 set x $ac_tag
26285 IFS=$ac_save_IFS
26286 shift
26287 ac_file=$1
26288 shift
26289
26290 case $ac_mode in
26291 :L) ac_source=$1;;
26292 :[FH])
26293 ac_file_inputs=
26294 for ac_f
26295 do
26296 case $ac_f in
26297 -) ac_f="$tmp/stdin";;
26298 *) # Look for the file first in the build tree, then in the source tree
26299 # (if the path is not absolute). The absolute path cannot be DOS-style,
26300 # because $ac_f cannot contain `:'.
26301 test -f "$ac_f" ||
26302 case $ac_f in
26303 [\\/$]*) false;;
26304 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26305 esac ||
26306 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26307 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26308 { (exit 1); exit 1; }; };;
26309 esac
26310 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26311 ac_file_inputs="$ac_file_inputs '$ac_f'"
26312 done
26313
26314 # Let's still pretend it is `configure' which instantiates (i.e., don't
26315 # use $as_me), people would be surprised to read:
26316 # /* config.h. Generated by config.status. */
26317 configure_input='Generated from '`
26318 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26319 `' by configure.'
26320 if test x"$ac_file" != x-; then
26321 configure_input="$ac_file. $configure_input"
26322 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26323 $as_echo "$as_me: creating $ac_file" >&6;}
26324 fi
26325 # Neutralize special characters interpreted by sed in replacement strings.
26326 case $configure_input in #(
26327 *\&* | *\|* | *\\* )
26328 ac_sed_conf_input=`$as_echo "$configure_input" |
26329 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26330 *) ac_sed_conf_input=$configure_input;;
26331 esac
26332
26333 case $ac_tag in
26334 *:-:* | *:-) cat >"$tmp/stdin" \
26335 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26336 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26337 { (exit 1); exit 1; }; } ;;
26338 esac
26339 ;;
26340 esac
26341
26342 ac_dir=`$as_dirname -- "$ac_file" ||
26343 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26344 X"$ac_file" : 'X\(//\)[^/]' \| \
26345 X"$ac_file" : 'X\(//\)$' \| \
26346 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26347 $as_echo X"$ac_file" |
26348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26349 s//\1/
26350 q
26351 }
26352 /^X\(\/\/\)[^/].*/{
26353 s//\1/
26354 q
26355 }
26356 /^X\(\/\/\)$/{
26357 s//\1/
26358 q
26359 }
26360 /^X\(\/\).*/{
26361 s//\1/
26362 q
26363 }
26364 s/.*/./; q'`
26365 { as_dir="$ac_dir"
26366 case $as_dir in #(
26367 -*) as_dir=./$as_dir;;
26368 esac
26369 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26370 as_dirs=
26371 while :; do
26372 case $as_dir in #(
26373 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26374 *) as_qdir=$as_dir;;
26375 esac
26376 as_dirs="'$as_qdir' $as_dirs"
26377 as_dir=`$as_dirname -- "$as_dir" ||
26378 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26379 X"$as_dir" : 'X\(//\)[^/]' \| \
26380 X"$as_dir" : 'X\(//\)$' \| \
26381 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26382 $as_echo X"$as_dir" |
26383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26384 s//\1/
26385 q
26386 }
26387 /^X\(\/\/\)[^/].*/{
26388 s//\1/
26389 q
26390 }
26391 /^X\(\/\/\)$/{
26392 s//\1/
26393 q
26394 }
26395 /^X\(\/\).*/{
26396 s//\1/
26397 q
26398 }
26399 s/.*/./; q'`
26400 test -d "$as_dir" && break
26401 done
26402 test -z "$as_dirs" || eval "mkdir $as_dirs"
26403 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26404 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26405 { (exit 1); exit 1; }; }; }
26406 ac_builddir=.
26407
26408 case "$ac_dir" in
26409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26410 *)
26411 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26412 # A ".." for each directory in $ac_dir_suffix.
26413 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26414 case $ac_top_builddir_sub in
26415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26417 esac ;;
26418 esac
26419 ac_abs_top_builddir=$ac_pwd
26420 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26421 # for backward compatibility:
26422 ac_top_builddir=$ac_top_build_prefix
26423
26424 case $srcdir in
26425 .) # We are building in place.
26426 ac_srcdir=.
26427 ac_top_srcdir=$ac_top_builddir_sub
26428 ac_abs_top_srcdir=$ac_pwd ;;
26429 [\\/]* | ?:[\\/]* ) # Absolute name.
26430 ac_srcdir=$srcdir$ac_dir_suffix;
26431 ac_top_srcdir=$srcdir
26432 ac_abs_top_srcdir=$srcdir ;;
26433 *) # Relative name.
26434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26435 ac_top_srcdir=$ac_top_build_prefix$srcdir
26436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26437 esac
26438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26439
26440
26441 case $ac_mode in
26442 :F)
26443 #
26444 # CONFIG_FILE
26445 #
26446
26447 case $INSTALL in
26448 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26449 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26450 esac
26451 _ACEOF
26452
26453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26454 # If the template does not know about datarootdir, expand it.
26455 # FIXME: This hack should be removed a few years after 2.60.
26456 ac_datarootdir_hack=; ac_datarootdir_seen=
26457
26458 ac_sed_dataroot='
26459 /datarootdir/ {
26460 p
26461 q
26462 }
26463 /@datadir@/p
26464 /@docdir@/p
26465 /@infodir@/p
26466 /@localedir@/p
26467 /@mandir@/p
26468 '
26469 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26470 *datarootdir*) ac_datarootdir_seen=yes;;
26471 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26472 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26473 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26474 _ACEOF
26475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26476 ac_datarootdir_hack='
26477 s&@datadir@&$datadir&g
26478 s&@docdir@&$docdir&g
26479 s&@infodir@&$infodir&g
26480 s&@localedir@&$localedir&g
26481 s&@mandir@&$mandir&g
26482 s&\\\${datarootdir}&$datarootdir&g' ;;
26483 esac
26484 _ACEOF
26485
26486 # Neutralize VPATH when `$srcdir' = `.'.
26487 # Shell code in configure.ac might set extrasub.
26488 # FIXME: do we really want to maintain this feature?
26489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26490 ac_sed_extra="$ac_vpsub
26491 $extrasub
26492 _ACEOF
26493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26494 :t
26495 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26496 s|@configure_input@|$ac_sed_conf_input|;t t
26497 s&@top_builddir@&$ac_top_builddir_sub&;t t
26498 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26499 s&@srcdir@&$ac_srcdir&;t t
26500 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26501 s&@top_srcdir@&$ac_top_srcdir&;t t
26502 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26503 s&@builddir@&$ac_builddir&;t t
26504 s&@abs_builddir@&$ac_abs_builddir&;t t
26505 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26506 s&@INSTALL@&$ac_INSTALL&;t t
26507 $ac_datarootdir_hack
26508 "
26509 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26510 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26511 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26512 { (exit 1); exit 1; }; }
26513
26514 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26515 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26516 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26517 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26518 which seems to be undefined. Please make sure it is defined." >&5
26519 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26520 which seems to be undefined. Please make sure it is defined." >&2;}
26521
26522 rm -f "$tmp/stdin"
26523 case $ac_file in
26524 -) cat "$tmp/out" && rm -f "$tmp/out";;
26525 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26526 esac \
26527 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26528 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26529 { (exit 1); exit 1; }; }
26530 ;;
26531 :H)
26532 #
26533 # CONFIG_HEADER
26534 #
26535 if test x"$ac_file" != x-; then
26536 {
26537 $as_echo "/* $configure_input */" \
26538 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26539 } >"$tmp/config.h" \
26540 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26541 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26542 { (exit 1); exit 1; }; }
26543 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26544 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26545 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26546 else
26547 rm -f "$ac_file"
26548 mv "$tmp/config.h" "$ac_file" \
26549 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26550 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26551 { (exit 1); exit 1; }; }
26552 fi
26553 else
26554 $as_echo "/* $configure_input */" \
26555 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26556 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
26557 $as_echo "$as_me: error: could not create -" >&2;}
26558 { (exit 1); exit 1; }; }
26559 fi
26560 ;;
26561
26562 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
26563 $as_echo "$as_me: executing $ac_file commands" >&6;}
26564 ;;
26565 esac
26566
26567
26568 case $ac_file$ac_mode in
26569 "default":C)
26570
26571 ### Make the necessary directories, if they don't exist.
26572 for dir in etc lisp ; do
26573 test -d ${dir} || mkdir ${dir}
26574 done
26575
26576 # Build src/Makefile from ${srcdir}/src/Makefile.c
26577 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
26578 # This must be done after src/config.h is built, since we rely on that file.
26579
26580 echo creating src/epaths.h
26581 ${MAKE-make} epaths-force
26582
26583 # As of 2000-11-19, newest development versions of GNU cpp preprocess
26584 # `..' to `. .' unless invoked with -traditional
26585
26586 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
26587 CPPFLAGS="$CPPFLAGS -traditional"
26588 fi
26589
26590 echo creating lib-src/Makefile
26591 ( cd lib-src
26592 rm -f junk.c junk1.c junk2.c
26593 sed -e '/start of cpp stuff/q' \
26594 < Makefile.c > junk1.c
26595 sed -e '1,/start of cpp stuff/d'\
26596 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26597 < Makefile.c > junk.c
26598 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
26599 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26600 cat junk1.c junk2.c > Makefile.new
26601 rm -f junk.c junk1.c junk2.c
26602 chmod 444 Makefile.new
26603 mv -f Makefile.new Makefile
26604 )
26605
26606 echo creating src/Makefile
26607 ( cd src
26608 rm -f junk.c junk1.c junk2.c
26609 sed -e '/start of cpp stuff/q' \
26610 < Makefile.c > junk1.c
26611 sed -e '1,/start of cpp stuff/d'\
26612 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
26613 < Makefile.c > junk.c
26614 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
26615 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
26616 cat junk1.c junk2.c > Makefile.new
26617 rm -f junk.c junk1.c junk2.c
26618 chmod 444 Makefile.new
26619 mv -f Makefile.new Makefile
26620 )
26621
26622 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
26623 echo creating src/.gdbinit
26624 echo source $srcdir/src/.gdbinit > src/.gdbinit
26625 fi
26626
26627 ;;
26628
26629 esac
26630 done # for ac_tag
26631
26632
26633 { (exit 0); exit 0; }
26634 _ACEOF
26635 chmod +x $CONFIG_STATUS
26636 ac_clean_files=$ac_clean_files_save
26637
26638 test $ac_write_fail = 0 ||
26639 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
26640 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
26641 { (exit 1); exit 1; }; }
26642
26643
26644 # configure is writing to config.log, and then calls config.status.
26645 # config.status does its own redirection, appending to config.log.
26646 # Unfortunately, on DOS this fails, as config.log is still kept open
26647 # by configure, so config.status won't be able to write to it; its
26648 # output is simply discarded. So we exec the FD to /dev/null,
26649 # effectively closing config.log, so it can be properly (re)opened and
26650 # appended to by config.status. When coming back to configure, we
26651 # need to make the FD available again.
26652 if test "$no_create" != yes; then
26653 ac_cs_success=:
26654 ac_config_status_args=
26655 test "$silent" = yes &&
26656 ac_config_status_args="$ac_config_status_args --quiet"
26657 exec 5>/dev/null
26658 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26659 exec 5>>config.log
26660 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26661 # would make configure fail if this is the last instruction.
26662 $ac_cs_success || { (exit 1); exit 1; }
26663 fi
26664 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26665 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26666 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26667 fi
26668
26669