Use -Wdeclaration-after-statement if available.
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 23.1.50.
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.1.50'
598 PACKAGE_STRING='emacs 23.1.50'
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='SHELL
642 PATH_SEPARATOR
643 PACKAGE_NAME
644 PACKAGE_TARNAME
645 PACKAGE_VERSION
646 PACKAGE_STRING
647 PACKAGE_BUGREPORT
648 exec_prefix
649 prefix
650 program_transform_name
651 bindir
652 sbindir
653 libexecdir
654 datarootdir
655 datadir
656 sysconfdir
657 sharedstatedir
658 localstatedir
659 includedir
660 oldincludedir
661 docdir
662 infodir
663 htmldir
664 dvidir
665 pdfdir
666 psdir
667 libdir
668 localedir
669 mandir
670 DEFS
671 ECHO_C
672 ECHO_N
673 ECHO_T
674 LIBS
675 build_alias
676 host_alias
677 target_alias
678 MAINT
679 build
680 build_cpu
681 build_vendor
682 build_os
683 host
684 host_cpu
685 host_vendor
686 host_os
687 CC
688 CFLAGS
689 LDFLAGS
690 CPPFLAGS
691 ac_ct_CC
692 EXEEXT
693 OBJEXT
694 CPP
695 GREP
696 EGREP
697 LN_S
698 INSTALL_PROGRAM
699 INSTALL_SCRIPT
700 INSTALL_DATA
701 RANLIB
702 INSTALL_INFO
703 GZIP_PROG
704 MAKEINFO
705 LIBSOUND
706 PKG_CONFIG
707 ALSA_CFLAGS
708 ALSA_LIBS
709 CFLAGS_SOUND
710 SET_MAKE
711 XMKMF
712 HAVE_XSERVER
713 RSVG_CFLAGS
714 RSVG_LIBS
715 GTK_CFLAGS
716 GTK_LIBS
717 DBUS_CFLAGS
718 DBUS_LIBS
719 GCONF_CFLAGS
720 GCONF_LIBS
721 FONTCONFIG_CFLAGS
722 FONTCONFIG_LIBS
723 XFT_CFLAGS
724 XFT_LIBS
725 LIBOTF_CFLAGS
726 LIBOTF_LIBS
727 M17N_FLT_CFLAGS
728 M17N_FLT_LIBS
729 FREETYPE_CFLAGS
730 FREETYPE_LIBS
731 ALLOCA
732 liblockfile
733 LIBOBJS
734 NEED_SETGID
735 KMEM_GROUP
736 GETLOADAVG_LIBS
737 GETOPT_H
738 GETOPTOBJS
739 version
740 configuration
741 canonical
742 srcdir
743 lispdir
744 locallisppath
745 lisppath
746 x_default_search_path
747 etcdir
748 archlibdir
749 bitmapdir
750 gamedir
751 gameuser
752 c_switch_system
753 c_switch_machine
754 LD_SWITCH_X_SITE
755 LD_SWITCH_X_SITE_AUX
756 C_SWITCH_X_SITE
757 X_TOOLKIT_TYPE
758 machfile
759 opsysfile
760 ns_appdir
761 ns_appbindir
762 ns_appresdir
763 ns_appsrc
764 GNUSTEP_MAKEFILES
765 GNUSTEP_SYSTEM_HEADERS
766 GNUSTEP_SYSTEM_LIBRARIES
767 GNU_OBJC_CFLAGS
768 LIB_SRC_EXTRA_INSTALLABLES
769 OTHER_FILES
770 LTLIBOBJS'
771 ac_subst_files=''
772 ac_user_opts='
773 enable_option_checking
774 with_pop
775 with_kerberos
776 with_kerberos5
777 with_hesiod
778 with_sound
779 with_sync_input
780 with_x_toolkit
781 with_xpm
782 with_jpeg
783 with_tiff
784 with_gif
785 with_png
786 with_rsvg
787 with_xft
788 with_libotf
789 with_m17n_flt
790 with_toolkit_scroll_bars
791 with_xaw3d
792 with_xim
793 with_ns
794 with_gpm
795 with_dbus
796 with_gconf
797 with_makeinfo
798 with_gtk
799 with_gcc
800 with_pkg_config_prog
801 with_gnustep_conf
802 enable_ns_self_contained
803 enable_asserts
804 enable_maintainer_mode
805 enable_locallisppath
806 enable_checking
807 enable_profiling
808 enable_autodepend
809 enable_largefile
810 with_x
811 '
812 ac_precious_vars='build_alias
813 host_alias
814 target_alias
815 CC
816 CFLAGS
817 LDFLAGS
818 LIBS
819 CPPFLAGS
820 CPP
821 XMKMF'
822
823
824 # Initialize some variables set by options.
825 ac_init_help=
826 ac_init_version=false
827 ac_unrecognized_opts=
828 ac_unrecognized_sep=
829 # The variables have the same names as the options, with
830 # dashes changed to underlines.
831 cache_file=/dev/null
832 exec_prefix=NONE
833 no_create=
834 no_recursion=
835 prefix=NONE
836 program_prefix=NONE
837 program_suffix=NONE
838 program_transform_name=s,x,x,
839 silent=
840 site=
841 srcdir=
842 verbose=
843 x_includes=NONE
844 x_libraries=NONE
845
846 # Installation directory options.
847 # These are left unexpanded so users can "make install exec_prefix=/foo"
848 # and all the variables that are supposed to be based on exec_prefix
849 # by default will actually change.
850 # Use braces instead of parens because sh, perl, etc. also accept them.
851 # (The list follows the same order as the GNU Coding Standards.)
852 bindir='${exec_prefix}/bin'
853 sbindir='${exec_prefix}/sbin'
854 libexecdir='${exec_prefix}/libexec'
855 datarootdir='${prefix}/share'
856 datadir='${datarootdir}'
857 sysconfdir='${prefix}/etc'
858 sharedstatedir='${prefix}/com'
859 localstatedir='${prefix}/var'
860 includedir='${prefix}/include'
861 oldincludedir='/usr/include'
862 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
863 infodir='${datarootdir}/info'
864 htmldir='${docdir}'
865 dvidir='${docdir}'
866 pdfdir='${docdir}'
867 psdir='${docdir}'
868 libdir='${exec_prefix}/lib'
869 localedir='${datarootdir}/locale'
870 mandir='${datarootdir}/man'
871
872 ac_prev=
873 ac_dashdash=
874 for ac_option
875 do
876 # If the previous option needs an argument, assign it.
877 if test -n "$ac_prev"; then
878 eval $ac_prev=\$ac_option
879 ac_prev=
880 continue
881 fi
882
883 case $ac_option in
884 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
885 *) ac_optarg=yes ;;
886 esac
887
888 # Accept the important Cygnus configure options, so we can diagnose typos.
889
890 case $ac_dashdash$ac_option in
891 --)
892 ac_dashdash=yes ;;
893
894 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 ac_prev=bindir ;;
896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897 bindir=$ac_optarg ;;
898
899 -build | --build | --buil | --bui | --bu)
900 ac_prev=build_alias ;;
901 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902 build_alias=$ac_optarg ;;
903
904 -cache-file | --cache-file | --cache-fil | --cache-fi \
905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906 ac_prev=cache_file ;;
907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909 cache_file=$ac_optarg ;;
910
911 --config-cache | -C)
912 cache_file=config.cache ;;
913
914 -datadir | --datadir | --datadi | --datad)
915 ac_prev=datadir ;;
916 -datadir=* | --datadir=* | --datadi=* | --datad=*)
917 datadir=$ac_optarg ;;
918
919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920 | --dataroo | --dataro | --datar)
921 ac_prev=datarootdir ;;
922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924 datarootdir=$ac_optarg ;;
925
926 -disable-* | --disable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
931 { (exit 1); exit 1; }; }
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
935 *"
936 "enable_$ac_useropt"
937 "*) ;;
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
940 esac
941 eval enable_$ac_useropt=no ;;
942
943 -docdir | --docdir | --docdi | --doc | --do)
944 ac_prev=docdir ;;
945 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 docdir=$ac_optarg ;;
947
948 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949 ac_prev=dvidir ;;
950 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 dvidir=$ac_optarg ;;
952
953 -enable-* | --enable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
958 { (exit 1); exit 1; }; }
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
962 *"
963 "enable_$ac_useropt"
964 "*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
967 esac
968 eval enable_$ac_useropt=\$ac_optarg ;;
969
970 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972 | --exec | --exe | --ex)
973 ac_prev=exec_prefix ;;
974 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976 | --exec=* | --exe=* | --ex=*)
977 exec_prefix=$ac_optarg ;;
978
979 -gas | --gas | --ga | --g)
980 # Obsolete; use --with-gas.
981 with_gas=yes ;;
982
983 -help | --help | --hel | --he | -h)
984 ac_init_help=long ;;
985 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986 ac_init_help=recursive ;;
987 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988 ac_init_help=short ;;
989
990 -host | --host | --hos | --ho)
991 ac_prev=host_alias ;;
992 -host=* | --host=* | --hos=* | --ho=*)
993 host_alias=$ac_optarg ;;
994
995 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
996 ac_prev=htmldir ;;
997 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
998 | --ht=*)
999 htmldir=$ac_optarg ;;
1000
1001 -includedir | --includedir | --includedi | --included | --include \
1002 | --includ | --inclu | --incl | --inc)
1003 ac_prev=includedir ;;
1004 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005 | --includ=* | --inclu=* | --incl=* | --inc=*)
1006 includedir=$ac_optarg ;;
1007
1008 -infodir | --infodir | --infodi | --infod | --info | --inf)
1009 ac_prev=infodir ;;
1010 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1011 infodir=$ac_optarg ;;
1012
1013 -libdir | --libdir | --libdi | --libd)
1014 ac_prev=libdir ;;
1015 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1016 libdir=$ac_optarg ;;
1017
1018 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019 | --libexe | --libex | --libe)
1020 ac_prev=libexecdir ;;
1021 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022 | --libexe=* | --libex=* | --libe=*)
1023 libexecdir=$ac_optarg ;;
1024
1025 -localedir | --localedir | --localedi | --localed | --locale)
1026 ac_prev=localedir ;;
1027 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028 localedir=$ac_optarg ;;
1029
1030 -localstatedir | --localstatedir | --localstatedi | --localstated \
1031 | --localstate | --localstat | --localsta | --localst | --locals)
1032 ac_prev=localstatedir ;;
1033 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1034 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1035 localstatedir=$ac_optarg ;;
1036
1037 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1038 ac_prev=mandir ;;
1039 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1040 mandir=$ac_optarg ;;
1041
1042 -nfp | --nfp | --nf)
1043 # Obsolete; use --without-fp.
1044 with_fp=no ;;
1045
1046 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1047 | --no-cr | --no-c | -n)
1048 no_create=yes ;;
1049
1050 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052 no_recursion=yes ;;
1053
1054 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056 | --oldin | --oldi | --old | --ol | --o)
1057 ac_prev=oldincludedir ;;
1058 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1061 oldincludedir=$ac_optarg ;;
1062
1063 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1064 ac_prev=prefix ;;
1065 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1066 prefix=$ac_optarg ;;
1067
1068 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069 | --program-pre | --program-pr | --program-p)
1070 ac_prev=program_prefix ;;
1071 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1073 program_prefix=$ac_optarg ;;
1074
1075 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076 | --program-suf | --program-su | --program-s)
1077 ac_prev=program_suffix ;;
1078 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1080 program_suffix=$ac_optarg ;;
1081
1082 -program-transform-name | --program-transform-name \
1083 | --program-transform-nam | --program-transform-na \
1084 | --program-transform-n | --program-transform- \
1085 | --program-transform | --program-transfor \
1086 | --program-transfo | --program-transf \
1087 | --program-trans | --program-tran \
1088 | --progr-tra | --program-tr | --program-t)
1089 ac_prev=program_transform_name ;;
1090 -program-transform-name=* | --program-transform-name=* \
1091 | --program-transform-nam=* | --program-transform-na=* \
1092 | --program-transform-n=* | --program-transform-=* \
1093 | --program-transform=* | --program-transfor=* \
1094 | --program-transfo=* | --program-transf=* \
1095 | --program-trans=* | --program-tran=* \
1096 | --progr-tra=* | --program-tr=* | --program-t=*)
1097 program_transform_name=$ac_optarg ;;
1098
1099 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1100 ac_prev=pdfdir ;;
1101 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102 pdfdir=$ac_optarg ;;
1103
1104 -psdir | --psdir | --psdi | --psd | --ps)
1105 ac_prev=psdir ;;
1106 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1107 psdir=$ac_optarg ;;
1108
1109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110 | -silent | --silent | --silen | --sile | --sil)
1111 silent=yes ;;
1112
1113 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1114 ac_prev=sbindir ;;
1115 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1116 | --sbi=* | --sb=*)
1117 sbindir=$ac_optarg ;;
1118
1119 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1120 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1121 | --sharedst | --shareds | --shared | --share | --shar \
1122 | --sha | --sh)
1123 ac_prev=sharedstatedir ;;
1124 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1125 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1126 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1127 | --sha=* | --sh=*)
1128 sharedstatedir=$ac_optarg ;;
1129
1130 -site | --site | --sit)
1131 ac_prev=site ;;
1132 -site=* | --site=* | --sit=*)
1133 site=$ac_optarg ;;
1134
1135 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1136 ac_prev=srcdir ;;
1137 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1138 srcdir=$ac_optarg ;;
1139
1140 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1141 | --syscon | --sysco | --sysc | --sys | --sy)
1142 ac_prev=sysconfdir ;;
1143 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1144 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1145 sysconfdir=$ac_optarg ;;
1146
1147 -target | --target | --targe | --targ | --tar | --ta | --t)
1148 ac_prev=target_alias ;;
1149 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1150 target_alias=$ac_optarg ;;
1151
1152 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1153 verbose=yes ;;
1154
1155 -version | --version | --versio | --versi | --vers | -V)
1156 ac_init_version=: ;;
1157
1158 -with-* | --with-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1163 { (exit 1); exit 1; }; }
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1167 *"
1168 "with_$ac_useropt"
1169 "*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1172 esac
1173 eval with_$ac_useropt=\$ac_optarg ;;
1174
1175 -without-* | --without-*)
1176 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1180 { (exit 1); exit 1; }; }
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1184 *"
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=no ;;
1191
1192 --x)
1193 # Obsolete; use --with-x.
1194 with_x=yes ;;
1195
1196 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1197 | --x-incl | --x-inc | --x-in | --x-i)
1198 ac_prev=x_includes ;;
1199 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1200 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1201 x_includes=$ac_optarg ;;
1202
1203 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1204 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1205 ac_prev=x_libraries ;;
1206 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1207 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1208 x_libraries=$ac_optarg ;;
1209
1210 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1211 Try \`$0 --help' for more information." >&2
1212 { (exit 1); exit 1; }; }
1213 ;;
1214
1215 *=*)
1216 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1219 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1220 { (exit 1); exit 1; }; }
1221 eval $ac_envvar=\$ac_optarg
1222 export $ac_envvar ;;
1223
1224 *)
1225 # FIXME: should be removed in autoconf 3.0.
1226 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1227 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1229 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1230 ;;
1231
1232 esac
1233 done
1234
1235 if test -n "$ac_prev"; then
1236 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1237 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1238 { (exit 1); exit 1; }; }
1239 fi
1240
1241 if test -n "$ac_unrecognized_opts"; then
1242 case $enable_option_checking in
1243 no) ;;
1244 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1245 { (exit 1); exit 1; }; } ;;
1246 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247 esac
1248 fi
1249
1250 # Check all directory arguments for consistency.
1251 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252 datadir sysconfdir sharedstatedir localstatedir includedir \
1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254 libdir localedir mandir
1255 do
1256 eval ac_val=\$$ac_var
1257 # Remove trailing slashes.
1258 case $ac_val in
1259 */ )
1260 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261 eval $ac_var=\$ac_val;;
1262 esac
1263 # Be sure to have absolute directory names.
1264 case $ac_val in
1265 [\\/$]* | ?:[\\/]* ) continue;;
1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267 esac
1268 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1269 { (exit 1); exit 1; }; }
1270 done
1271
1272 # There might be people who depend on the old broken behavior: `$host'
1273 # used to hold the argument of --host etc.
1274 # FIXME: To remove some day.
1275 build=$build_alias
1276 host=$host_alias
1277 target=$target_alias
1278
1279 # FIXME: To remove some day.
1280 if test "x$host_alias" != x; then
1281 if test "x$build_alias" = x; then
1282 cross_compiling=maybe
1283 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1284 If a cross compiler is detected then cross compile mode will be used." >&2
1285 elif test "x$build_alias" != "x$host_alias"; then
1286 cross_compiling=yes
1287 fi
1288 fi
1289
1290 ac_tool_prefix=
1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293 test "$silent" = yes && exec 6>/dev/null
1294
1295
1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di=`ls -di .` &&
1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1300 { (exit 1); exit 1; }; }
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1303 { (exit 1); exit 1; }; }
1304
1305
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\).*/{
1329 s//\1/
1330 q
1331 }
1332 s/.*/./; q'`
1333 srcdir=$ac_confdir
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 srcdir=..
1336 fi
1337 else
1338 ac_srcdir_defaulted=no
1339 fi
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1343 { (exit 1); exit 1; }; }
1344 fi
1345 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1346 ac_abs_confdir=`(
1347 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1348 { (exit 1); exit 1; }; }
1349 pwd)`
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352 srcdir=.
1353 fi
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1357 case $srcdir in
1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359 esac
1360 for ac_var in $ac_precious_vars; do
1361 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_${ac_var}_value=\$${ac_var}
1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365 done
1366
1367 #
1368 # Report the --help message.
1369 #
1370 if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1373 cat <<_ACEOF
1374 \`configure' configures emacs 23.1.50 to adapt to many kinds of systems.
1375
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1377
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE. See below for descriptions of some of the useful variables.
1380
1381 Defaults for the options are specified in brackets.
1382
1383 Configuration:
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
1388 -q, --quiet, --silent do not print \`checking...' messages
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1393
1394 Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1398 [PREFIX]
1399
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1404
1405 For better control, use the options below.
1406
1407 Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1427 _ACEOF
1428
1429 cat <<\_ACEOF
1430
1431 Program names:
1432 --program-prefix=PREFIX prepend PREFIX to installed program names
1433 --program-suffix=SUFFIX append SUFFIX to installed program names
1434 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1435
1436 X features:
1437 --x-includes=DIR X include files are in DIR
1438 --x-libraries=DIR X library files are in DIR
1439
1440 System types:
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 _ACEOF
1444 fi
1445
1446 if test -n "$ac_init_help"; then
1447 case $ac_init_help in
1448 short | recursive ) echo "Configuration of emacs 23.1.50:";;
1449 esac
1450 cat <<\_ACEOF
1451
1452 Optional Features:
1453 --disable-option-checking ignore unrecognized --enable/--with options
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1456 --disable-ns-self-contained
1457 disable self contained build under NeXTstep
1458 --enable-asserts compile code with asserts enabled
1459 --enable-maintainer-mode
1460 enable make rules and dependencies not useful (and
1461 sometimes confusing) to the casual installer
1462 --enable-locallisppath=PATH
1463 directories Emacs should search for lisp files
1464 specific to this site
1465 --enable-checking[=LIST]
1466 enable expensive run-time checks. With LIST, enable
1467 only specific categories of checks. Categories are:
1468 all,yes,no. Flags are: stringbytes, stringoverrun,
1469 stringfreelist, xmallocoverrun, conslist
1470 --enable-profiling build emacs with profiling support. This might not
1471 work on all platforms
1472 --enable-autodepend automatically generate dependencies to .h-files.
1473 Requires GNU Make and Gcc. Enabled if GNU Make and
1474 Gcc is found
1475 --disable-largefile omit support for large files
1476
1477 Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --without-pop don't support POP mail retrieval with movemail
1481 --with-kerberos support Kerberos-authenticated POP
1482 --with-kerberos5 support Kerberos version 5 authenticated POP
1483 --with-hesiod support Hesiod to get the POP server host
1484 --without-sound don't compile with sound support
1485 --without-sync-input process async input synchronously
1486 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1487 motif, gtk, no)
1488 --without-xpm don't compile with XPM image support
1489 --without-jpeg don't compile with JPEG image support
1490 --without-tiff don't compile with TIFF image support
1491 --without-gif don't compile with GIF image support
1492 --without-png don't compile with PNG image support
1493 --without-rsvg don't compile with SVG image support
1494 --without-xft don't use XFT for anti aliased fonts
1495 --without-libotf don't use libotf for OpenType font support
1496 --without-m17n-flt don't use m17n-flt for text shaping
1497 --without-toolkit-scroll-bars
1498 don't use Motif or Xaw3d scroll bars
1499 --without-xaw3d don't use Xaw3d
1500 --without-xim don't use X11 XIM
1501 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1502 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1503 console
1504 --without-dbus don't compile with D-Bus support
1505 --without-gconf don't compile with GConf support
1506 --without-makeinfo don't require makeinfo for building manuals
1507
1508 --with-pkg-config-prog=PATH
1509 path to pkg-config for finding GTK and librsvg
1510 --with-gnustep-conf=PATH
1511 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1512 or /etc/GNUstep/GNUstep.conf
1513 --with-x use the X Window System
1514
1515 Some influential environment variables:
1516 CC C compiler command
1517 CFLAGS C compiler flags
1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1519 nonstandard directory <lib dir>
1520 LIBS libraries to pass to the linker, e.g. -l<library>
1521 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1522 you have headers in a nonstandard directory <include dir>
1523 CPP C preprocessor
1524 XMKMF Path to xmkmf, Makefile generator for X Window System
1525
1526 Use these variables to override the choices made by `configure' or to help
1527 it to find libraries and programs with nonstandard names/locations.
1528
1529 _ACEOF
1530 ac_status=$?
1531 fi
1532
1533 if test "$ac_init_help" = "recursive"; then
1534 # If there are subdirs, report their specific --help.
1535 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1536 test -d "$ac_dir" ||
1537 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1538 continue
1539 ac_builddir=.
1540
1541 case "$ac_dir" in
1542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 *)
1544 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1545 # A ".." for each directory in $ac_dir_suffix.
1546 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1547 case $ac_top_builddir_sub in
1548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550 esac ;;
1551 esac
1552 ac_abs_top_builddir=$ac_pwd
1553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554 # for backward compatibility:
1555 ac_top_builddir=$ac_top_build_prefix
1556
1557 case $srcdir in
1558 .) # We are building in place.
1559 ac_srcdir=.
1560 ac_top_srcdir=$ac_top_builddir_sub
1561 ac_abs_top_srcdir=$ac_pwd ;;
1562 [\\/]* | ?:[\\/]* ) # Absolute name.
1563 ac_srcdir=$srcdir$ac_dir_suffix;
1564 ac_top_srcdir=$srcdir
1565 ac_abs_top_srcdir=$srcdir ;;
1566 *) # Relative name.
1567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568 ac_top_srcdir=$ac_top_build_prefix$srcdir
1569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570 esac
1571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572
1573 cd "$ac_dir" || { ac_status=$?; continue; }
1574 # Check for guested configure.
1575 if test -f "$ac_srcdir/configure.gnu"; then
1576 echo &&
1577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578 elif test -f "$ac_srcdir/configure"; then
1579 echo &&
1580 $SHELL "$ac_srcdir/configure" --help=recursive
1581 else
1582 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583 fi || ac_status=$?
1584 cd "$ac_pwd" || { ac_status=$?; break; }
1585 done
1586 fi
1587
1588 test -n "$ac_init_help" && exit $ac_status
1589 if $ac_init_version; then
1590 cat <<\_ACEOF
1591 emacs configure 23.1.50
1592 generated by GNU Autoconf 2.62
1593
1594 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1595 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1596 This configure script is free software; the Free Software Foundation
1597 gives unlimited permission to copy, distribute and modify it.
1598 _ACEOF
1599 exit
1600 fi
1601 cat >config.log <<_ACEOF
1602 This file contains any messages produced by compilers while
1603 running configure, to aid debugging if configure makes a mistake.
1604
1605 It was created by emacs $as_me 23.1.50, which was
1606 generated by GNU Autoconf 2.62. Invocation command line was
1607
1608 $ $0 $@
1609
1610 _ACEOF
1611 exec 5>>config.log
1612 {
1613 cat <<_ASUNAME
1614 ## --------- ##
1615 ## Platform. ##
1616 ## --------- ##
1617
1618 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1619 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1620 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1621 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1622 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1623
1624 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1625 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1626
1627 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1628 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1629 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1630 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1631 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1632 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1633 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1634
1635 _ASUNAME
1636
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 for as_dir in $PATH
1639 do
1640 IFS=$as_save_IFS
1641 test -z "$as_dir" && as_dir=.
1642 $as_echo "PATH: $as_dir"
1643 done
1644 IFS=$as_save_IFS
1645
1646 } >&5
1647
1648 cat >&5 <<_ACEOF
1649
1650
1651 ## ----------- ##
1652 ## Core tests. ##
1653 ## ----------- ##
1654
1655 _ACEOF
1656
1657
1658 # Keep a trace of the command line.
1659 # Strip out --no-create and --no-recursion so they do not pile up.
1660 # Strip out --silent because we don't want to record it for future runs.
1661 # Also quote any args containing shell meta-characters.
1662 # Make two passes to allow for proper duplicate-argument suppression.
1663 ac_configure_args=
1664 ac_configure_args0=
1665 ac_configure_args1=
1666 ac_must_keep_next=false
1667 for ac_pass in 1 2
1668 do
1669 for ac_arg
1670 do
1671 case $ac_arg in
1672 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1673 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1674 | -silent | --silent | --silen | --sile | --sil)
1675 continue ;;
1676 *\'*)
1677 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1678 esac
1679 case $ac_pass in
1680 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1681 2)
1682 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1683 if test $ac_must_keep_next = true; then
1684 ac_must_keep_next=false # Got value, back to normal.
1685 else
1686 case $ac_arg in
1687 *=* | --config-cache | -C | -disable-* | --disable-* \
1688 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1689 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1690 | -with-* | --with-* | -without-* | --without-* | --x)
1691 case "$ac_configure_args0 " in
1692 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1693 esac
1694 ;;
1695 -* ) ac_must_keep_next=true ;;
1696 esac
1697 fi
1698 ac_configure_args="$ac_configure_args '$ac_arg'"
1699 ;;
1700 esac
1701 done
1702 done
1703 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1704 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1705
1706 # When interrupted or exit'd, cleanup temporary files, and complete
1707 # config.log. We remove comments because anyway the quotes in there
1708 # would cause problems or look ugly.
1709 # WARNING: Use '\'' to represent an apostrophe within the trap.
1710 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1711 trap 'exit_status=$?
1712 # Save into config.log some information that might help in debugging.
1713 {
1714 echo
1715
1716 cat <<\_ASBOX
1717 ## ---------------- ##
1718 ## Cache variables. ##
1719 ## ---------------- ##
1720 _ASBOX
1721 echo
1722 # The following way of writing the cache mishandles newlines in values,
1723 (
1724 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1725 eval ac_val=\$$ac_var
1726 case $ac_val in #(
1727 *${as_nl}*)
1728 case $ac_var in #(
1729 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1730 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1731 esac
1732 case $ac_var in #(
1733 _ | IFS | as_nl) ;; #(
1734 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1735 *) $as_unset $ac_var ;;
1736 esac ;;
1737 esac
1738 done
1739 (set) 2>&1 |
1740 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1741 *${as_nl}ac_space=\ *)
1742 sed -n \
1743 "s/'\''/'\''\\\\'\'''\''/g;
1744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1745 ;; #(
1746 *)
1747 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1748 ;;
1749 esac |
1750 sort
1751 )
1752 echo
1753
1754 cat <<\_ASBOX
1755 ## ----------------- ##
1756 ## Output variables. ##
1757 ## ----------------- ##
1758 _ASBOX
1759 echo
1760 for ac_var in $ac_subst_vars
1761 do
1762 eval ac_val=\$$ac_var
1763 case $ac_val in
1764 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765 esac
1766 $as_echo "$ac_var='\''$ac_val'\''"
1767 done | sort
1768 echo
1769
1770 if test -n "$ac_subst_files"; then
1771 cat <<\_ASBOX
1772 ## ------------------- ##
1773 ## File substitutions. ##
1774 ## ------------------- ##
1775 _ASBOX
1776 echo
1777 for ac_var in $ac_subst_files
1778 do
1779 eval ac_val=\$$ac_var
1780 case $ac_val in
1781 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1782 esac
1783 $as_echo "$ac_var='\''$ac_val'\''"
1784 done | sort
1785 echo
1786 fi
1787
1788 if test -s confdefs.h; then
1789 cat <<\_ASBOX
1790 ## ----------- ##
1791 ## confdefs.h. ##
1792 ## ----------- ##
1793 _ASBOX
1794 echo
1795 cat confdefs.h
1796 echo
1797 fi
1798 test "$ac_signal" != 0 &&
1799 $as_echo "$as_me: caught signal $ac_signal"
1800 $as_echo "$as_me: exit $exit_status"
1801 } >&5
1802 rm -f core *.core core.conftest.* &&
1803 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1804 exit $exit_status
1805 ' 0
1806 for ac_signal in 1 2 13 15; do
1807 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1808 done
1809 ac_signal=0
1810
1811 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1812 rm -f -r conftest* confdefs.h
1813
1814 # Predefined preprocessor variables.
1815
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_NAME "$PACKAGE_NAME"
1818 _ACEOF
1819
1820
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1823 _ACEOF
1824
1825
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1828 _ACEOF
1829
1830
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_STRING "$PACKAGE_STRING"
1833 _ACEOF
1834
1835
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1838 _ACEOF
1839
1840
1841 # Let the site file select an alternate cache file if it wants to.
1842 # Prefer an explicitly selected file to automatically selected ones.
1843 ac_site_file1=NONE
1844 ac_site_file2=NONE
1845 if test -n "$CONFIG_SITE"; then
1846 ac_site_file1=$CONFIG_SITE
1847 elif test "x$prefix" != xNONE; then
1848 ac_site_file1=$prefix/share/config.site
1849 ac_site_file2=$prefix/etc/config.site
1850 else
1851 ac_site_file1=$ac_default_prefix/share/config.site
1852 ac_site_file2=$ac_default_prefix/etc/config.site
1853 fi
1854 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1855 do
1856 test "x$ac_site_file" = xNONE && continue
1857 if test -r "$ac_site_file"; then
1858 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1859 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1860 sed 's/^/| /' "$ac_site_file" >&5
1861 . "$ac_site_file"
1862 fi
1863 done
1864
1865 if test -r "$cache_file"; then
1866 # Some versions of bash will fail to source /dev/null (special
1867 # files actually), so we avoid doing that.
1868 if test -f "$cache_file"; then
1869 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1870 $as_echo "$as_me: loading cache $cache_file" >&6;}
1871 case $cache_file in
1872 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1873 *) . "./$cache_file";;
1874 esac
1875 fi
1876 else
1877 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1878 $as_echo "$as_me: creating cache $cache_file" >&6;}
1879 >$cache_file
1880 fi
1881
1882 ac_header_list="$ac_header_list sys/time.h"
1883 ac_header_list="$ac_header_list unistd.h"
1884 ac_func_list="$ac_func_list alarm"
1885 # Check that the precious variables saved in the cache have kept the same
1886 # value.
1887 ac_cache_corrupted=false
1888 for ac_var in $ac_precious_vars; do
1889 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1890 eval ac_new_set=\$ac_env_${ac_var}_set
1891 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1892 eval ac_new_val=\$ac_env_${ac_var}_value
1893 case $ac_old_set,$ac_new_set in
1894 set,)
1895 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1896 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1897 ac_cache_corrupted=: ;;
1898 ,set)
1899 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1900 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1901 ac_cache_corrupted=: ;;
1902 ,);;
1903 *)
1904 if test "x$ac_old_val" != "x$ac_new_val"; then
1905 # differences in whitespace do not lead to failure.
1906 ac_old_val_w=`echo x $ac_old_val`
1907 ac_new_val_w=`echo x $ac_new_val`
1908 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1909 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1910 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1911 ac_cache_corrupted=:
1912 else
1913 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1914 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1915 eval $ac_var=\$ac_old_val
1916 fi
1917 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1918 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1919 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1920 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1921 fi;;
1922 esac
1923 # Pass precious variables to config.status.
1924 if test "$ac_new_set" = set; then
1925 case $ac_new_val in
1926 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1927 *) ac_arg=$ac_var=$ac_new_val ;;
1928 esac
1929 case " $ac_configure_args " in
1930 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1931 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1932 esac
1933 fi
1934 done
1935 if $ac_cache_corrupted; then
1936 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1937 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1938 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1939 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1940 { (exit 1); exit 1; }; }
1941 fi
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967 ac_ext=c
1968 ac_cpp='$CPP $CPPFLAGS'
1969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1972
1973
1974 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1975
1976
1977
1978 test "$program_prefix" != NONE &&
1979 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1980 # Use a double $ so make ignores it.
1981 test "$program_suffix" != NONE &&
1982 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1983 # Double any \ or $.
1984 # By default was `s,x,x', remove it if useless.
1985 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1986 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1987
1988
1989 lispdir='${datadir}/emacs/${version}/lisp'
1990 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1991 '${datadir}/emacs/site-lisp'
1992 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1993 etcdir='${datadir}/emacs/${version}/etc'
1994 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1995 docdir='${datadir}/emacs/${version}/etc'
1996 gamedir='${localstatedir}/games/emacs'
1997
1998 gameuser=games
1999
2000
2001
2002
2003 # Check whether --with-pop was given.
2004 if test "${with_pop+set}" = set; then
2005 withval=$with_pop;
2006 else
2007 with_pop=yes
2008 fi
2009
2010 if test "$with_pop" = yes; then
2011 cat >>confdefs.h <<\_ACEOF
2012 #define MAIL_USE_POP 1
2013 _ACEOF
2014
2015 fi
2016
2017
2018
2019 # Check whether --with-kerberos was given.
2020 if test "${with_kerberos+set}" = set; then
2021 withval=$with_kerberos;
2022 else
2023 with_kerberos=no
2024 fi
2025
2026 if test "$with_kerberos" != no; then
2027 cat >>confdefs.h <<\_ACEOF
2028 #define KERBEROS 1
2029 _ACEOF
2030
2031 fi
2032
2033
2034
2035 # Check whether --with-kerberos5 was given.
2036 if test "${with_kerberos5+set}" = set; then
2037 withval=$with_kerberos5;
2038 else
2039 with_kerberos5=no
2040 fi
2041
2042 if test "${with_kerberos5}" != no; then
2043 if test "${with_kerberos}" = no; then
2044 with_kerberos=yes
2045 cat >>confdefs.h <<\_ACEOF
2046 #define KERBEROS 1
2047 _ACEOF
2048
2049 fi
2050
2051 cat >>confdefs.h <<\_ACEOF
2052 #define KERBEROS5 1
2053 _ACEOF
2054
2055 fi
2056
2057
2058 # Check whether --with-hesiod was given.
2059 if test "${with_hesiod+set}" = set; then
2060 withval=$with_hesiod;
2061 else
2062 with_hesiod=no
2063 fi
2064
2065 if test "$with_hesiod" != no; then
2066
2067 cat >>confdefs.h <<\_ACEOF
2068 #define HESIOD 1
2069 _ACEOF
2070
2071 fi
2072
2073
2074 # Check whether --with-sound was given.
2075 if test "${with_sound+set}" = set; then
2076 withval=$with_sound;
2077 else
2078 with_sound=yes
2079 fi
2080
2081
2082
2083 # Check whether --with-sync-input was given.
2084 if test "${with_sync_input+set}" = set; then
2085 withval=$with_sync_input;
2086 else
2087 with_sync_input=yes
2088 fi
2089
2090 if test "$with_sync_input" = yes; then
2091
2092 cat >>confdefs.h <<\_ACEOF
2093 #define SYNC_INPUT 1
2094 _ACEOF
2095
2096 fi
2097
2098
2099 # Check whether --with-x-toolkit was given.
2100 if test "${with_x_toolkit+set}" = set; then
2101 withval=$with_x_toolkit; case "${withval}" in
2102 y | ye | yes ) val=gtk ;;
2103 n | no ) val=no ;;
2104 l | lu | luc | luci | lucid ) val=lucid ;;
2105 a | at | ath | athe | athen | athena ) val=athena ;;
2106 m | mo | mot | moti | motif ) val=motif ;;
2107 g | gt | gtk ) val=gtk ;;
2108 * )
2109 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2110 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2111 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2112 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2113 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2114 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2115 { (exit 1); exit 1; }; }
2116 ;;
2117 esac
2118 with_x_toolkit=$val
2119
2120 fi
2121
2122
2123
2124 # Check whether --with-xpm was given.
2125 if test "${with_xpm+set}" = set; then
2126 withval=$with_xpm;
2127 else
2128 with_xpm=yes
2129 fi
2130
2131
2132 # Check whether --with-jpeg was given.
2133 if test "${with_jpeg+set}" = set; then
2134 withval=$with_jpeg;
2135 else
2136 with_jpeg=yes
2137 fi
2138
2139
2140 # Check whether --with-tiff was given.
2141 if test "${with_tiff+set}" = set; then
2142 withval=$with_tiff;
2143 else
2144 with_tiff=yes
2145 fi
2146
2147
2148 # Check whether --with-gif was given.
2149 if test "${with_gif+set}" = set; then
2150 withval=$with_gif;
2151 else
2152 with_gif=yes
2153 fi
2154
2155
2156 # Check whether --with-png was given.
2157 if test "${with_png+set}" = set; then
2158 withval=$with_png;
2159 else
2160 with_png=yes
2161 fi
2162
2163
2164 # Check whether --with-rsvg was given.
2165 if test "${with_rsvg+set}" = set; then
2166 withval=$with_rsvg;
2167 else
2168 with_rsvg=yes
2169 fi
2170
2171
2172
2173 # Check whether --with-xft was given.
2174 if test "${with_xft+set}" = set; then
2175 withval=$with_xft;
2176 else
2177 with_xft=yes
2178 fi
2179
2180
2181 # Check whether --with-libotf was given.
2182 if test "${with_libotf+set}" = set; then
2183 withval=$with_libotf;
2184 else
2185 with_libotf=yes
2186 fi
2187
2188
2189 # Check whether --with-m17n-flt was given.
2190 if test "${with_m17n_flt+set}" = set; then
2191 withval=$with_m17n_flt;
2192 else
2193 with_m17n_flt=yes
2194 fi
2195
2196
2197
2198 # Check whether --with-toolkit-scroll-bars was given.
2199 if test "${with_toolkit_scroll_bars+set}" = set; then
2200 withval=$with_toolkit_scroll_bars;
2201 else
2202 with_toolkit_scroll_bars=yes
2203 fi
2204
2205
2206 # Check whether --with-xaw3d was given.
2207 if test "${with_xaw3d+set}" = set; then
2208 withval=$with_xaw3d;
2209 else
2210 with_xaw3d=yes
2211 fi
2212
2213
2214 # Check whether --with-xim was given.
2215 if test "${with_xim+set}" = set; then
2216 withval=$with_xim;
2217 else
2218 with_xim=yes
2219 fi
2220
2221
2222 # Check whether --with-ns was given.
2223 if test "${with_ns+set}" = set; then
2224 withval=$with_ns;
2225 else
2226 with_ns=no
2227 fi
2228
2229
2230
2231 # Check whether --with-gpm was given.
2232 if test "${with_gpm+set}" = set; then
2233 withval=$with_gpm;
2234 else
2235 with_gpm=yes
2236 fi
2237
2238
2239 # Check whether --with-dbus was given.
2240 if test "${with_dbus+set}" = set; then
2241 withval=$with_dbus;
2242 else
2243 with_dbus=yes
2244 fi
2245
2246
2247 # Check whether --with-gconf was given.
2248 if test "${with_gconf+set}" = set; then
2249 withval=$with_gconf;
2250 else
2251 with_gconf=yes
2252 fi
2253
2254
2255 ## For the times when you want to build Emacs but don't have
2256 ## a suitable makeinfo, and can live without the manuals.
2257
2258 # Check whether --with-makeinfo was given.
2259 if test "${with_makeinfo+set}" = set; then
2260 withval=$with_makeinfo;
2261 else
2262 with_makeinfo=yes
2263 fi
2264
2265
2266
2267 # Check whether --with-gtk was given.
2268 if test "${with_gtk+set}" = set; then
2269 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2270 specify a toolkit." >&5
2271 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2272 specify a toolkit." >&2;}
2273 { (exit 1); exit 1; }; }
2274 fi
2275
2276
2277
2278 # Check whether --with-gcc was given.
2279 if test "${with_gcc+set}" = set; then
2280 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2281 variable to specify a compiler." >&5
2282 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2283 variable to specify a compiler." >&2;}
2284 { (exit 1); exit 1; }; }
2285 fi
2286
2287
2288
2289 # Check whether --with-pkg-config-prog was given.
2290 if test "${with_pkg_config_prog+set}" = set; then
2291 withval=$with_pkg_config_prog;
2292 fi
2293
2294 if test "X${with_pkg_config_prog}" != X; then
2295 if test "${with_pkg_config_prog}" != yes; then
2296 PKG_CONFIG="${with_pkg_config_prog}"
2297 fi
2298 fi
2299
2300
2301 # Check whether --with-gnustep-conf was given.
2302 if test "${with_gnustep_conf+set}" = set; then
2303 withval=$with_gnustep_conf;
2304 fi
2305
2306 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2307 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2308 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2309 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2310
2311 # Check whether --enable-ns-self-contained was given.
2312 if test "${enable_ns_self_contained+set}" = set; then
2313 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2314 else
2315 EN_NS_SELF_CONTAINED=yes
2316 fi
2317
2318
2319 # Check whether --enable-asserts was given.
2320 if test "${enable_asserts+set}" = set; then
2321 enableval=$enable_asserts; USE_XASSERTS=$enableval
2322 else
2323 USE_XASSERTS=no
2324 fi
2325
2326
2327 # Check whether --enable-maintainer-mode was given.
2328 if test "${enable_maintainer_mode+set}" = set; then
2329 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2330 else
2331 USE_MAINTAINER_MODE=no
2332 fi
2333
2334 if test $USE_MAINTAINER_MODE = yes; then
2335 MAINT=
2336 else
2337 MAINT=#
2338 fi
2339
2340
2341 # Check whether --enable-locallisppath was given.
2342 if test "${enable_locallisppath+set}" = set; then
2343 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2344 locallisppath=
2345 elif test "${enableval}" != "yes"; then
2346 locallisppath=${enableval}
2347 fi
2348 fi
2349
2350
2351 # Check whether --enable-checking was given.
2352 if test "${enable_checking+set}" = set; then
2353 enableval=$enable_checking; ac_checking_flags="${enableval}"
2354 fi
2355
2356 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2357 for check in $ac_checking_flags
2358 do
2359 case $check in
2360 # these set all the flags to specific states
2361 yes) ac_enable_checking=1 ;;
2362 no) ac_enable_checking= ;
2363 ac_gc_check_stringbytes= ;
2364 ac_gc_check_string_overrun= ;
2365 ac_gc_check_string_free_list= ;
2366 ac_xmalloc_overrun= ;
2367 ac_gc_check_cons_list= ;;
2368 all) ac_enable_checking=1 ;
2369 ac_gc_check_stringbytes=1 ;
2370 ac_gc_check_string_overrun=1 ;
2371 ac_gc_check_string_free_list=1 ;
2372 ac_xmalloc_overrun=1 ;
2373 ac_gc_check_cons_list=1 ;;
2374 # these enable particular checks
2375 stringbytes) ac_gc_check_stringbytes=1 ;;
2376 stringoverrun) ac_gc_check_string_overrun=1 ;;
2377 stringfreelist) ac_gc_check_string_free_list=1 ;;
2378 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2379 conslist) ac_gc_check_cons_list=1 ;;
2380 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2381 $as_echo "$as_me: error: unknown check category $check" >&2;}
2382 { (exit 1); exit 1; }; } ;;
2383 esac
2384 done
2385 IFS="$ac_save_IFS"
2386
2387 if test x$ac_enable_checking != x ; then
2388
2389 cat >>confdefs.h <<\_ACEOF
2390 #define ENABLE_CHECKING 1
2391 _ACEOF
2392
2393 fi
2394 if test x$ac_gc_check_stringbytes != x ; then
2395
2396 cat >>confdefs.h <<\_ACEOF
2397 #define GC_CHECK_STRING_BYTES 1
2398 _ACEOF
2399
2400 fi
2401 if test x$ac_gc_check_stringoverrun != x ; then
2402
2403 cat >>confdefs.h <<\_ACEOF
2404 #define GC_CHECK_STRING_OVERRUN 1
2405 _ACEOF
2406
2407 fi
2408 if test x$ac_gc_check_string_free_list != x ; then
2409
2410 cat >>confdefs.h <<\_ACEOF
2411 #define GC_CHECK_STRING_FREE_LIST 1
2412 _ACEOF
2413
2414 fi
2415 if test x$ac_xmalloc_overrun != x ; then
2416
2417 cat >>confdefs.h <<\_ACEOF
2418 #define XMALLOC_OVERRUN_CHECK 1
2419 _ACEOF
2420
2421 fi
2422 if test x$ac_gc_check_cons_list != x ; then
2423
2424 cat >>confdefs.h <<\_ACEOF
2425 #define GC_CHECK_CONS_LIST 1
2426 _ACEOF
2427
2428 fi
2429
2430 # Check whether --enable-profiling was given.
2431 if test "${enable_profiling+set}" = set; then
2432 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2433 fi
2434
2435 if test x$ac_enable_profiling != x ; then
2436 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2437 PROFILING_LDFLAGS="-pg"
2438 else
2439 PROFILING_CFLAGS=
2440 PROFILING_LDFLAGS=
2441 fi
2442
2443 # Check whether --enable-autodepend was given.
2444 if test "${enable_autodepend+set}" = set; then
2445 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2446 else
2447 ac_enable_autodepend=yes
2448 fi
2449
2450
2451 #### Make srcdir absolute, if it isn't already. It's important to
2452 #### avoid running the path through pwd unnecessarily, since pwd can
2453 #### give you automounter prefixes, which can go away. We do all this
2454 #### so Emacs can find its files when run uninstalled.
2455 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2456 unset CDPATH
2457 case "${srcdir}" in
2458 /* ) ;;
2459 . )
2460 ## We may be able to use the $PWD environment variable to make this
2461 ## absolute. But sometimes PWD is inaccurate.
2462 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2463 ## but that tested only for a well-formed and valid PWD,
2464 ## it did not object when PWD was well-formed and valid but just wrong.
2465 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2466 then
2467 srcdir="$PWD"
2468 else
2469 srcdir="`(cd ${srcdir}; pwd)`"
2470 fi
2471 ;;
2472 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2473 esac
2474
2475 #### Check if the source directory already has a configured system in it.
2476 if test `pwd` != `(cd ${srcdir} && pwd)` \
2477 && test -f "${srcdir}/src/config.h" ; then
2478 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2479 as a build directory right now; it has been configured in its own
2480 right. To configure in another directory as well, you MUST
2481 use GNU make. If you do not have GNU make, then you must
2482 now do \`make distclean' in ${srcdir},
2483 and then run $0 again." >&5
2484 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2485 as a build directory right now; it has been configured in its own
2486 right. To configure in another directory as well, you MUST
2487 use GNU make. If you do not have GNU make, then you must
2488 now do \`make distclean' in ${srcdir},
2489 and then run $0 again." >&2;}
2490 fi
2491
2492 #### Given the configuration name, set machfile and opsysfile to the
2493 #### names of the m/*.h and s/*.h files we should use.
2494
2495 ### Canonicalize the configuration name.
2496
2497 ac_aux_dir=
2498 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2499 if test -f "$ac_dir/install-sh"; then
2500 ac_aux_dir=$ac_dir
2501 ac_install_sh="$ac_aux_dir/install-sh -c"
2502 break
2503 elif test -f "$ac_dir/install.sh"; then
2504 ac_aux_dir=$ac_dir
2505 ac_install_sh="$ac_aux_dir/install.sh -c"
2506 break
2507 elif test -f "$ac_dir/shtool"; then
2508 ac_aux_dir=$ac_dir
2509 ac_install_sh="$ac_aux_dir/shtool install -c"
2510 break
2511 fi
2512 done
2513 if test -z "$ac_aux_dir"; then
2514 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2515 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2516 { (exit 1); exit 1; }; }
2517 fi
2518
2519 # These three variables are undocumented and unsupported,
2520 # and are intended to be withdrawn in a future Autoconf release.
2521 # They can cause serious problems if a builder's source tree is in a directory
2522 # whose full name contains unusual characters.
2523 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2524 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2525 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2526
2527
2528 # Make sure we can run config.sub.
2529 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2530 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2531 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2532 { (exit 1); exit 1; }; }
2533
2534 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2535 $as_echo_n "checking build system type... " >&6; }
2536 if test "${ac_cv_build+set}" = set; then
2537 $as_echo_n "(cached) " >&6
2538 else
2539 ac_build_alias=$build_alias
2540 test "x$ac_build_alias" = x &&
2541 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2542 test "x$ac_build_alias" = x &&
2543 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2544 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2545 { (exit 1); exit 1; }; }
2546 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2547 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2548 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2549 { (exit 1); exit 1; }; }
2550
2551 fi
2552 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2553 $as_echo "$ac_cv_build" >&6; }
2554 case $ac_cv_build in
2555 *-*-*) ;;
2556 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2557 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2558 { (exit 1); exit 1; }; };;
2559 esac
2560 build=$ac_cv_build
2561 ac_save_IFS=$IFS; IFS='-'
2562 set x $ac_cv_build
2563 shift
2564 build_cpu=$1
2565 build_vendor=$2
2566 shift; shift
2567 # Remember, the first character of IFS is used to create $*,
2568 # except with old shells:
2569 build_os=$*
2570 IFS=$ac_save_IFS
2571 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2572
2573
2574 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2575 $as_echo_n "checking host system type... " >&6; }
2576 if test "${ac_cv_host+set}" = set; then
2577 $as_echo_n "(cached) " >&6
2578 else
2579 if test "x$host_alias" = x; then
2580 ac_cv_host=$ac_cv_build
2581 else
2582 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2583 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2584 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2585 { (exit 1); exit 1; }; }
2586 fi
2587
2588 fi
2589 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2590 $as_echo "$ac_cv_host" >&6; }
2591 case $ac_cv_host in
2592 *-*-*) ;;
2593 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2594 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2595 { (exit 1); exit 1; }; };;
2596 esac
2597 host=$ac_cv_host
2598 ac_save_IFS=$IFS; IFS='-'
2599 set x $ac_cv_host
2600 shift
2601 host_cpu=$1
2602 host_vendor=$2
2603 shift; shift
2604 # Remember, the first character of IFS is used to create $*,
2605 # except with old shells:
2606 host_os=$*
2607 IFS=$ac_save_IFS
2608 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2609
2610
2611 canonical=$host
2612 configuration=${host_alias-${build_alias-$host}}
2613
2614
2615
2616 ### If you add support for a new configuration, add code to this
2617 ### switch statement to recognize your configuration name and select
2618 ### the appropriate operating system and machine description files.
2619
2620 ### You would hope that you could choose an m/*.h file pretty much
2621 ### based on the machine portion of the configuration name, and an s-
2622 ### file based on the operating system portion. However, it turns out
2623 ### that each m/*.h file is pretty manufacturer-specific - for
2624 ### example mips.h is MIPS
2625 ### So we basically have to have a special case for each
2626 ### configuration name.
2627 ###
2628 ### As far as handling version numbers on operating systems is
2629 ### concerned, make sure things will fail in a fixable way. If
2630 ### /etc/MACHINES doesn't say anything about version numbers, be
2631 ### prepared to handle anything reasonably. If version numbers
2632 ### matter, be sure /etc/MACHINES says something about it.
2633 ###
2634 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2635 ### "System V Release 4"; he writes, "The old convention encouraged
2636 ### confusion between `system' and `release' levels'."
2637
2638 machine='' opsys='' unported=no
2639 case "${canonical}" in
2640
2641 ## FreeBSD ports
2642 *-*-freebsd* )
2643 opsys=freebsd
2644 case "${canonical}" in
2645 alpha*-*-freebsd*) machine=alpha ;;
2646 arm*-*-freebsd*) machine=arm ;;
2647 ia64-*-freebsd*) machine=ia64 ;;
2648 sparc-*-freebsd*) machine=sparc ;;
2649 sparc64-*-freebsd*) machine=sparc ;;
2650 powerpc-*-freebsd*) machine=macppc ;;
2651 i[3456]86-*-freebsd*) machine=intel386 ;;
2652 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2653 esac
2654 ;;
2655
2656 ## FreeBSD kernel + glibc based userland
2657 *-*-kfreebsd*gnu* )
2658 opsys=gnu-kfreebsd
2659 case "${canonical}" in
2660 alpha*-*-kfreebsd*) machine=alpha ;;
2661 ia64-*-kfreebsd*) machine=ia64 ;;
2662 sparc-*-kfreebsd*) machine=sparc ;;
2663 sparc64-*-kfreebsd*) machine=sparc ;;
2664 powerpc-*-kfreebsd*) machine=macppc ;;
2665 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2666 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2667 esac
2668 ;;
2669
2670 ## NetBSD ports
2671 *-*-netbsd* )
2672 opsys=netbsd
2673 if test -f /usr/lib/crti.o; then
2674
2675 cat >>confdefs.h <<\_ACEOF
2676 #define HAVE_CRTIN /**/
2677 _ACEOF
2678
2679 fi
2680
2681 case "${canonical}" in
2682 alpha*-*-netbsd*) machine=alpha ;;
2683 i[3456]86-*-netbsd*) machine=intel386 ;;
2684 mips-*-netbsd*) machine=mips ;;
2685 mipsel-*-netbsd*) machine=mips ;;
2686 mipseb-*-netbsd*) machine=mips ;;
2687 powerpc-*-netbsd*) machine=macppc ;;
2688 sparc*-*-netbsd*) machine=sparc ;;
2689 vax-*-netbsd*) machine=vax ;;
2690 arm-*-netbsd*) machine=arm ;;
2691 x86_64-*-netbsd*) machine=amdx86-64 ;;
2692 hppa-*-netbsd*) machine=hp800 ;;
2693 m68k-*-netbsd*) machine=m68k ;;
2694 esac
2695 ;;
2696
2697 ## OpenBSD ports
2698 *-*-openbsd* )
2699 opsys=openbsd
2700 case "${canonical}" in
2701 alpha*-*-openbsd*) machine=alpha ;;
2702 arm-*-openbsd*) machine=arm ;;
2703 i386-*-openbsd*) machine=intel386 ;;
2704 powerpc-*-openbsd*) machine=macppc ;;
2705 sparc*-*-openbsd*) machine=sparc ;;
2706 vax-*-openbsd*) machine=vax ;;
2707 x86_64-*-openbsd*) machine=amdx86-64 ;;
2708 hppa-*-openbsd*) machine=hp800 ;;
2709 esac
2710 ;;
2711
2712 ## LynxOS ports
2713 *-*-lynxos* )
2714 opsys=lynxos
2715 case "${canonical}" in
2716 i[3456]86-*-lynxos*) machine=intel386 ;;
2717 powerpc-*-lynxos*) machine=powerpc ;;
2718 esac
2719 ;;
2720
2721 alpha*-*-linux-gnu* )
2722 machine=alpha opsys=gnu-linux
2723 ;;
2724
2725 arm*-*-linux-gnu* )
2726 machine=arm opsys=gnu-linux
2727 ;;
2728
2729 ## Apple Darwin / Mac OS X
2730 *-apple-darwin* )
2731 case "${canonical}" in
2732 i[3456]86-* ) machine=intel386 ;;
2733 powerpc-* ) machine=macppc ;;
2734 x86_64-* ) machine=amdx86-64 ;;
2735 * ) unported=yes ;;
2736 esac
2737 opsys=darwin
2738 # Define CPP as follows to make autoconf work correctly.
2739 CPP="${CC-cc} -E -no-cpp-precomp"
2740 # Use fink packages if available.
2741 if test -d /sw/include && test -d /sw/lib; then
2742 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2743 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2744 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2745 fi
2746 ;;
2747
2748 ## HP 9000 series 700 and 800, running HP/UX
2749 hppa*-hp-hpux10.2* )
2750 machine=hp800 opsys=hpux10-20
2751 ;;
2752 hppa*-hp-hpux1[1-9]* )
2753 machine=hp800 opsys=hpux11
2754 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2755 ;;
2756
2757 hppa*-*-linux-gnu* )
2758 machine=hp800 opsys=gnu-linux
2759 ;;
2760
2761 ## IBM machines
2762 s390-*-linux-gnu* )
2763 machine=ibms390 opsys=gnu-linux
2764 ;;
2765 s390x-*-linux-gnu* )
2766 machine=ibms390x opsys=gnu-linux
2767 ;;
2768 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2769 machine=ibmrs6000 opsys=aix4-2
2770 ;;
2771 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2772 machine=ibmrs6000 opsys=aix4-2
2773 ;;
2774 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2775 machine=ibmrs6000 opsys=aix4-2
2776 ;;
2777 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2778 machine=ibmrs6000 opsys=aix4-2
2779 ;;
2780
2781 ## Macintosh PowerPC
2782 powerpc*-*-linux-gnu* )
2783 machine=macppc opsys=gnu-linux
2784 ;;
2785
2786 ## Silicon Graphics machines
2787 ## Iris 4D
2788 mips-sgi-irix6.5 )
2789 machine=iris4d opsys=irix6-5
2790 # Without defining _LANGUAGE_C, things get masked out in the headers
2791 # so that, for instance, grepping for `free' in stdlib.h fails and
2792 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2793 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2794 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2795 ;;
2796
2797 ## Suns
2798 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2799 machine=sparc opsys=gnu-linux
2800 ;;
2801
2802 *-sun-solaris* \
2803 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2804 | x86_64-*-solaris2* | x86_64-*-sunos5* \
2805 | powerpc*-*-solaris2* | rs6000-*-solaris2*)
2806 case "${canonical}" in
2807 i[3456]86-*-* ) machine=intel386 ;;
2808 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2809 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2810 sparc* ) machine=sparc ;;
2811 * ) unported=yes ;;
2812 esac
2813 case "${canonical}" in
2814 *-sunos5.3* | *-solaris2.3* )
2815 opsys=sol2-3
2816 NON_GNU_CPP=/usr/ccs/lib/cpp
2817 ;;
2818 *-sunos5.4* | *-solaris2.4* )
2819 opsys=sol2-4
2820 NON_GNU_CPP=/usr/ccs/lib/cpp
2821 RANLIB="ar -ts"
2822 ;;
2823 *-sunos5.5* | *-solaris2.5* )
2824 opsys=sol2-5
2825 NON_GNU_CPP=/usr/ccs/lib/cpp
2826 RANLIB="ar -ts"
2827 ;;
2828 *-sunos5.6* | *-solaris2.6* )
2829 opsys=sol2-6
2830 NON_GNU_CPP=/usr/ccs/lib/cpp
2831 RANLIB="ar -ts"
2832 ;;
2833 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2834 opsys=sol2-6
2835 emacs_check_sunpro_c=yes
2836 NON_GNU_CPP=/usr/ccs/lib/cpp
2837 ;;
2838 *-sunos5* | *-solaris* )
2839 opsys=sol2-10
2840 emacs_check_sunpro_c=yes
2841 NON_GNU_CPP=/usr/ccs/lib/cpp
2842 ;;
2843 esac
2844 ## Watch out for a compiler that we know will not work.
2845 case "${canonical}" in
2846 *-solaris* | *-sunos5* )
2847 if [ "x$CC" = x/usr/ucb/cc ]; then
2848 ## /usr/ucb/cc doesn't work;
2849 ## we should find some other compiler that does work.
2850 unset CC
2851 fi
2852 ;;
2853 *) ;;
2854 esac
2855 ;;
2856
2857 ## IA-64
2858 ia64*-*-linux* )
2859 machine=ia64 opsys=gnu-linux
2860 ;;
2861
2862 ## Intel 386 machines where we don't care about the manufacturer
2863 i[3456]86-*-* )
2864 machine=intel386
2865 case "${canonical}" in
2866 *-cygwin ) opsys=cygwin ;;
2867 *-darwin* ) opsys=darwin
2868 CPP="${CC-cc} -E -no-cpp-precomp"
2869 ;;
2870 *-linux-gnu* ) opsys=gnu-linux ;;
2871 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2872 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2873 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2874 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2875 esac
2876 ;;
2877
2878 ## m68k Linux-based GNU system
2879 m68k-*-linux-gnu* )
2880 machine=m68k opsys=gnu-linux
2881 ;;
2882
2883 ## Mips Linux-based GNU system
2884 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2885 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2886 machine=mips opsys=gnu-linux
2887 ;;
2888
2889 ## AMD x86-64 Linux-based GNU system
2890 x86_64-*-linux-gnu* )
2891 machine=amdx86-64 opsys=gnu-linux
2892 ;;
2893
2894 ## Tensilica Xtensa Linux-based GNU system
2895 xtensa*-*-linux-gnu* )
2896 machine=xtensa opsys=gnu-linux
2897 ;;
2898
2899 ## SuperH Linux-based GNU system
2900 sh[34]*-*-linux-gnu* )
2901 machine=sh3 opsys=gnu-linux
2902 ;;
2903
2904 * )
2905 unported=yes
2906 ;;
2907 esac
2908
2909 ### If the code above didn't choose an operating system, just choose
2910 ### an operating system based on the configuration name. You really
2911 ### only want to use this when you have no idea what the right
2912 ### operating system is; if you know what operating systems a machine
2913 ### runs, it's cleaner to make it explicit in the case statement
2914 ### above.
2915 if test x"${opsys}" = x; then
2916 case "${canonical}" in
2917 *-gnu* ) opsys=gnu ;;
2918 *-sysv4.2uw* ) opsys=unixware ;;
2919 *-sysv5uw* ) opsys=unixware ;;
2920 *-sysv5OpenUNIX* ) opsys=unixware ;;
2921 *-sysv4.1* | *-sysvr4.1* )
2922 NON_GNU_CPP=/usr/lib/cpp
2923 opsys=usg5-4 ;;
2924 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2925 if [ x$NON_GNU_CPP = x ]; then
2926 if [ -f /usr/ccs/lib/cpp ]; then
2927 NON_GNU_CPP=/usr/ccs/lib/cpp
2928 else
2929 NON_GNU_CPP=/lib/cpp
2930 fi
2931 fi
2932 opsys=usg5-4-2 ;;
2933 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2934 * )
2935 unported=yes
2936 ;;
2937 esac
2938 fi
2939
2940
2941
2942 if test $unported = yes; then
2943 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2944 Check \`etc/MACHINES' for recognized configuration names." >&5
2945 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2946 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2947 { (exit 1); exit 1; }; }
2948 fi
2949
2950 machfile="m/${machine}.h"
2951 opsysfile="s/${opsys}.h"
2952
2953
2954 #### Choose a compiler.
2955 test -n "$CC" && cc_specified=yes
2956
2957 # Save the value of CFLAGS that the user specified.
2958 SPECIFIED_CFLAGS="$CFLAGS"
2959
2960 ac_ext=c
2961 ac_cpp='$CPP $CPPFLAGS'
2962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965 if test -n "$ac_tool_prefix"; then
2966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2967 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2968 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if test "${ac_cv_prog_CC+set}" = set; then
2971 $as_echo_n "(cached) " >&6
2972 else
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC="$CC" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2978 do
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2984 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 break 2
2986 fi
2987 done
2988 done
2989 IFS=$as_save_IFS
2990
2991 fi
2992 fi
2993 CC=$ac_cv_prog_CC
2994 if test -n "$CC"; then
2995 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2996 $as_echo "$CC" >&6; }
2997 else
2998 { $as_echo "$as_me:$LINENO: result: no" >&5
2999 $as_echo "no" >&6; }
3000 fi
3001
3002
3003 fi
3004 if test -z "$ac_cv_prog_CC"; then
3005 ac_ct_CC=$CC
3006 # Extract the first word of "gcc", so it can be a program name with args.
3007 set dummy gcc; ac_word=$2
3008 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3011 $as_echo_n "(cached) " >&6
3012 else
3013 if test -n "$ac_ct_CC"; then
3014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3018 do
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023 ac_cv_prog_ac_ct_CC="gcc"
3024 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 break 2
3026 fi
3027 done
3028 done
3029 IFS=$as_save_IFS
3030
3031 fi
3032 fi
3033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3034 if test -n "$ac_ct_CC"; then
3035 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3036 $as_echo "$ac_ct_CC" >&6; }
3037 else
3038 { $as_echo "$as_me:$LINENO: result: no" >&5
3039 $as_echo "no" >&6; }
3040 fi
3041
3042 if test "x$ac_ct_CC" = x; then
3043 CC=""
3044 else
3045 case $cross_compiling:$ac_tool_warned in
3046 yes:)
3047 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3048 whose name does not start with the host triplet. If you think this
3049 configuration is useful to you, please write to autoconf@gnu.org." >&5
3050 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3051 whose name does not start with the host triplet. If you think this
3052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3053 ac_tool_warned=yes ;;
3054 esac
3055 CC=$ac_ct_CC
3056 fi
3057 else
3058 CC="$ac_cv_prog_CC"
3059 fi
3060
3061 if test -z "$CC"; then
3062 if test -n "$ac_tool_prefix"; then
3063 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3064 set dummy ${ac_tool_prefix}cc; ac_word=$2
3065 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3066 $as_echo_n "checking for $ac_word... " >&6; }
3067 if test "${ac_cv_prog_CC+set}" = set; then
3068 $as_echo_n "(cached) " >&6
3069 else
3070 if test -n "$CC"; then
3071 ac_cv_prog_CC="$CC" # Let the user override the test.
3072 else
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3075 do
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3080 ac_cv_prog_CC="${ac_tool_prefix}cc"
3081 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3083 fi
3084 done
3085 done
3086 IFS=$as_save_IFS
3087
3088 fi
3089 fi
3090 CC=$ac_cv_prog_CC
3091 if test -n "$CC"; then
3092 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3093 $as_echo "$CC" >&6; }
3094 else
3095 { $as_echo "$as_me:$LINENO: result: no" >&5
3096 $as_echo "no" >&6; }
3097 fi
3098
3099
3100 fi
3101 fi
3102 if test -z "$CC"; then
3103 # Extract the first word of "cc", so it can be a program name with args.
3104 set dummy cc; ac_word=$2
3105 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if test "${ac_cv_prog_CC+set}" = set; then
3108 $as_echo_n "(cached) " >&6
3109 else
3110 if test -n "$CC"; then
3111 ac_cv_prog_CC="$CC" # Let the user override the test.
3112 else
3113 ac_prog_rejected=no
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3116 do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3122 ac_prog_rejected=yes
3123 continue
3124 fi
3125 ac_cv_prog_CC="cc"
3126 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 break 2
3128 fi
3129 done
3130 done
3131 IFS=$as_save_IFS
3132
3133 if test $ac_prog_rejected = yes; then
3134 # We found a bogon in the path, so make sure we never use it.
3135 set dummy $ac_cv_prog_CC
3136 shift
3137 if test $# != 0; then
3138 # We chose a different compiler from the bogus one.
3139 # However, it has the same basename, so the bogon will be chosen
3140 # first if we set CC to just the basename; use the full file name.
3141 shift
3142 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3143 fi
3144 fi
3145 fi
3146 fi
3147 CC=$ac_cv_prog_CC
3148 if test -n "$CC"; then
3149 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3150 $as_echo "$CC" >&6; }
3151 else
3152 { $as_echo "$as_me:$LINENO: result: no" >&5
3153 $as_echo "no" >&6; }
3154 fi
3155
3156
3157 fi
3158 if test -z "$CC"; then
3159 if test -n "$ac_tool_prefix"; then
3160 for ac_prog in cl.exe
3161 do
3162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3163 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3164 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if test "${ac_cv_prog_CC+set}" = set; then
3167 $as_echo_n "(cached) " >&6
3168 else
3169 if test -n "$CC"; then
3170 ac_cv_prog_CC="$CC" # Let the user override the test.
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3174 do
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3180 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 break 2
3182 fi
3183 done
3184 done
3185 IFS=$as_save_IFS
3186
3187 fi
3188 fi
3189 CC=$ac_cv_prog_CC
3190 if test -n "$CC"; then
3191 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3192 $as_echo "$CC" >&6; }
3193 else
3194 { $as_echo "$as_me:$LINENO: result: no" >&5
3195 $as_echo "no" >&6; }
3196 fi
3197
3198
3199 test -n "$CC" && break
3200 done
3201 fi
3202 if test -z "$CC"; then
3203 ac_ct_CC=$CC
3204 for ac_prog in cl.exe
3205 do
3206 # Extract the first word of "$ac_prog", so it can be a program name with args.
3207 set dummy $ac_prog; ac_word=$2
3208 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3209 $as_echo_n "checking for $ac_word... " >&6; }
3210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3211 $as_echo_n "(cached) " >&6
3212 else
3213 if test -n "$ac_ct_CC"; then
3214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3215 else
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH
3218 do
3219 IFS=$as_save_IFS
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3223 ac_cv_prog_ac_ct_CC="$ac_prog"
3224 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3225 break 2
3226 fi
3227 done
3228 done
3229 IFS=$as_save_IFS
3230
3231 fi
3232 fi
3233 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3234 if test -n "$ac_ct_CC"; then
3235 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3236 $as_echo "$ac_ct_CC" >&6; }
3237 else
3238 { $as_echo "$as_me:$LINENO: result: no" >&5
3239 $as_echo "no" >&6; }
3240 fi
3241
3242
3243 test -n "$ac_ct_CC" && break
3244 done
3245
3246 if test "x$ac_ct_CC" = x; then
3247 CC=""
3248 else
3249 case $cross_compiling:$ac_tool_warned in
3250 yes:)
3251 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3252 whose name does not start with the host triplet. If you think this
3253 configuration is useful to you, please write to autoconf@gnu.org." >&5
3254 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3255 whose name does not start with the host triplet. If you think this
3256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3257 ac_tool_warned=yes ;;
3258 esac
3259 CC=$ac_ct_CC
3260 fi
3261 fi
3262
3263 fi
3264
3265
3266 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3267 See \`config.log' for more details." >&5
3268 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3269 See \`config.log' for more details." >&2;}
3270 { (exit 1); exit 1; }; }
3271
3272 # Provide some information about the compiler.
3273 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3274 set X $ac_compile
3275 ac_compiler=$2
3276 { (ac_try="$ac_compiler --version >&5"
3277 case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3282 $as_echo "$ac_try_echo") >&5
3283 (eval "$ac_compiler --version >&5") 2>&5
3284 ac_status=$?
3285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }
3287 { (ac_try="$ac_compiler -v >&5"
3288 case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291 esac
3292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3293 $as_echo "$ac_try_echo") >&5
3294 (eval "$ac_compiler -v >&5") 2>&5
3295 ac_status=$?
3296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }
3298 { (ac_try="$ac_compiler -V >&5"
3299 case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3302 esac
3303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3304 $as_echo "$ac_try_echo") >&5
3305 (eval "$ac_compiler -V >&5") 2>&5
3306 ac_status=$?
3307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }
3309
3310 cat >conftest.$ac_ext <<_ACEOF
3311 /* confdefs.h. */
3312 _ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3316
3317 int
3318 main ()
3319 {
3320
3321 ;
3322 return 0;
3323 }
3324 _ACEOF
3325 ac_clean_files_save=$ac_clean_files
3326 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3327 # Try to create an executable without -o first, disregard a.out.
3328 # It will help us diagnose broken compilers, and finding out an intuition
3329 # of exeext.
3330 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3331 $as_echo_n "checking for C compiler default output file name... " >&6; }
3332 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3333
3334 # The possible output files:
3335 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3336
3337 ac_rmfiles=
3338 for ac_file in $ac_files
3339 do
3340 case $ac_file in
3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3342 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3343 esac
3344 done
3345 rm -f $ac_rmfiles
3346
3347 if { (ac_try="$ac_link_default"
3348 case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3351 esac
3352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3353 $as_echo "$ac_try_echo") >&5
3354 (eval "$ac_link_default") 2>&5
3355 ac_status=$?
3356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; then
3358 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3359 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3360 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3361 # so that the user can short-circuit this test for compilers unknown to
3362 # Autoconf.
3363 for ac_file in $ac_files ''
3364 do
3365 test -f "$ac_file" || continue
3366 case $ac_file in
3367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3368 ;;
3369 [ab].out )
3370 # We found the default executable, but exeext='' is most
3371 # certainly right.
3372 break;;
3373 *.* )
3374 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3375 then :; else
3376 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3377 fi
3378 # We set ac_cv_exeext here because the later test for it is not
3379 # safe: cross compilers may not add the suffix if given an `-o'
3380 # argument, so we may need to know it at that point already.
3381 # Even if this section looks crufty: it has the advantage of
3382 # actually working.
3383 break;;
3384 * )
3385 break;;
3386 esac
3387 done
3388 test "$ac_cv_exeext" = no && ac_cv_exeext=
3389
3390 else
3391 ac_file=''
3392 fi
3393
3394 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3395 $as_echo "$ac_file" >&6; }
3396 if test -z "$ac_file"; then
3397 $as_echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3401 See \`config.log' for more details." >&5
3402 $as_echo "$as_me: error: C compiler cannot create executables
3403 See \`config.log' for more details." >&2;}
3404 { (exit 77); exit 77; }; }
3405 fi
3406
3407 ac_exeext=$ac_cv_exeext
3408
3409 # Check that the compiler produces executables we can run. If not, either
3410 # the compiler is broken, or we cross compile.
3411 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3412 $as_echo_n "checking whether the C compiler works... " >&6; }
3413 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3414 # If not cross compiling, check that we can run a simple program.
3415 if test "$cross_compiling" != yes; then
3416 if { ac_try='./$ac_file'
3417 { (case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3420 esac
3421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3422 $as_echo "$ac_try_echo") >&5
3423 (eval "$ac_try") 2>&5
3424 ac_status=$?
3425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; }; then
3427 cross_compiling=no
3428 else
3429 if test "$cross_compiling" = maybe; then
3430 cross_compiling=yes
3431 else
3432 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3433 If you meant to cross compile, use \`--host'.
3434 See \`config.log' for more details." >&5
3435 $as_echo "$as_me: error: cannot run C compiled programs.
3436 If you meant to cross compile, use \`--host'.
3437 See \`config.log' for more details." >&2;}
3438 { (exit 1); exit 1; }; }
3439 fi
3440 fi
3441 fi
3442 { $as_echo "$as_me:$LINENO: result: yes" >&5
3443 $as_echo "yes" >&6; }
3444
3445 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3446 ac_clean_files=$ac_clean_files_save
3447 # Check that the compiler produces executables we can run. If not, either
3448 # the compiler is broken, or we cross compile.
3449 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3450 $as_echo_n "checking whether we are cross compiling... " >&6; }
3451 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3452 $as_echo "$cross_compiling" >&6; }
3453
3454 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3455 $as_echo_n "checking for suffix of executables... " >&6; }
3456 if { (ac_try="$ac_link"
3457 case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3460 esac
3461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3462 $as_echo "$ac_try_echo") >&5
3463 (eval "$ac_link") 2>&5
3464 ac_status=$?
3465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; then
3467 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3468 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3469 # work properly (i.e., refer to `conftest.exe'), while it won't with
3470 # `rm'.
3471 for ac_file in conftest.exe conftest conftest.*; do
3472 test -f "$ac_file" || continue
3473 case $ac_file in
3474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3475 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3476 break;;
3477 * ) break;;
3478 esac
3479 done
3480 else
3481 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3482 See \`config.log' for more details." >&5
3483 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3484 See \`config.log' for more details." >&2;}
3485 { (exit 1); exit 1; }; }
3486 fi
3487
3488 rm -f conftest$ac_cv_exeext
3489 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3490 $as_echo "$ac_cv_exeext" >&6; }
3491
3492 rm -f conftest.$ac_ext
3493 EXEEXT=$ac_cv_exeext
3494 ac_exeext=$EXEEXT
3495 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3496 $as_echo_n "checking for suffix of object files... " >&6; }
3497 if test "${ac_cv_objext+set}" = set; then
3498 $as_echo_n "(cached) " >&6
3499 else
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h. */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506
3507 int
3508 main ()
3509 {
3510
3511 ;
3512 return 0;
3513 }
3514 _ACEOF
3515 rm -f conftest.o conftest.obj
3516 if { (ac_try="$ac_compile"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3522 $as_echo "$ac_try_echo") >&5
3523 (eval "$ac_compile") 2>&5
3524 ac_status=$?
3525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; then
3527 for ac_file in conftest.o conftest.obj conftest.*; do
3528 test -f "$ac_file" || continue;
3529 case $ac_file in
3530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3531 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3532 break;;
3533 esac
3534 done
3535 else
3536 $as_echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3538
3539 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3540 See \`config.log' for more details." >&5
3541 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3542 See \`config.log' for more details." >&2;}
3543 { (exit 1); exit 1; }; }
3544 fi
3545
3546 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3547 fi
3548 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3549 $as_echo "$ac_cv_objext" >&6; }
3550 OBJEXT=$ac_cv_objext
3551 ac_objext=$OBJEXT
3552 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3553 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3554 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3555 $as_echo_n "(cached) " >&6
3556 else
3557 cat >conftest.$ac_ext <<_ACEOF
3558 /* confdefs.h. */
3559 _ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h. */
3563
3564 int
3565 main ()
3566 {
3567 #ifndef __GNUC__
3568 choke me
3569 #endif
3570
3571 ;
3572 return 0;
3573 }
3574 _ACEOF
3575 rm -f conftest.$ac_objext
3576 if { (ac_try="$ac_compile"
3577 case "(($ac_try" in
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3580 esac
3581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3582 $as_echo "$ac_try_echo") >&5
3583 (eval "$ac_compile") 2>conftest.er1
3584 ac_status=$?
3585 grep -v '^ *+' conftest.er1 >conftest.err
3586 rm -f conftest.er1
3587 cat conftest.err >&5
3588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } && {
3590 test -z "$ac_c_werror_flag" ||
3591 test ! -s conftest.err
3592 } && test -s conftest.$ac_objext; then
3593 ac_compiler_gnu=yes
3594 else
3595 $as_echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3597
3598 ac_compiler_gnu=no
3599 fi
3600
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3603
3604 fi
3605 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3606 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3607 if test $ac_compiler_gnu = yes; then
3608 GCC=yes
3609 else
3610 GCC=
3611 fi
3612 ac_test_CFLAGS=${CFLAGS+set}
3613 ac_save_CFLAGS=$CFLAGS
3614 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3615 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3616 if test "${ac_cv_prog_cc_g+set}" = set; then
3617 $as_echo_n "(cached) " >&6
3618 else
3619 ac_save_c_werror_flag=$ac_c_werror_flag
3620 ac_c_werror_flag=yes
3621 ac_cv_prog_cc_g=no
3622 CFLAGS="-g"
3623 cat >conftest.$ac_ext <<_ACEOF
3624 /* confdefs.h. */
3625 _ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3629
3630 int
3631 main ()
3632 {
3633
3634 ;
3635 return 0;
3636 }
3637 _ACEOF
3638 rm -f conftest.$ac_objext
3639 if { (ac_try="$ac_compile"
3640 case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3643 esac
3644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3645 $as_echo "$ac_try_echo") >&5
3646 (eval "$ac_compile") 2>conftest.er1
3647 ac_status=$?
3648 grep -v '^ *+' conftest.er1 >conftest.err
3649 rm -f conftest.er1
3650 cat conftest.err >&5
3651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } && {
3653 test -z "$ac_c_werror_flag" ||
3654 test ! -s conftest.err
3655 } && test -s conftest.$ac_objext; then
3656 ac_cv_prog_cc_g=yes
3657 else
3658 $as_echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3660
3661 CFLAGS=""
3662 cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h. */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3668
3669 int
3670 main ()
3671 {
3672
3673 ;
3674 return 0;
3675 }
3676 _ACEOF
3677 rm -f conftest.$ac_objext
3678 if { (ac_try="$ac_compile"
3679 case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3682 esac
3683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3684 $as_echo "$ac_try_echo") >&5
3685 (eval "$ac_compile") 2>conftest.er1
3686 ac_status=$?
3687 grep -v '^ *+' conftest.er1 >conftest.err
3688 rm -f conftest.er1
3689 cat conftest.err >&5
3690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } && {
3692 test -z "$ac_c_werror_flag" ||
3693 test ! -s conftest.err
3694 } && test -s conftest.$ac_objext; then
3695 :
3696 else
3697 $as_echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3699
3700 ac_c_werror_flag=$ac_save_c_werror_flag
3701 CFLAGS="-g"
3702 cat >conftest.$ac_ext <<_ACEOF
3703 /* confdefs.h. */
3704 _ACEOF
3705 cat confdefs.h >>conftest.$ac_ext
3706 cat >>conftest.$ac_ext <<_ACEOF
3707 /* end confdefs.h. */
3708
3709 int
3710 main ()
3711 {
3712
3713 ;
3714 return 0;
3715 }
3716 _ACEOF
3717 rm -f conftest.$ac_objext
3718 if { (ac_try="$ac_compile"
3719 case "(($ac_try" in
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3722 esac
3723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3724 $as_echo "$ac_try_echo") >&5
3725 (eval "$ac_compile") 2>conftest.er1
3726 ac_status=$?
3727 grep -v '^ *+' conftest.er1 >conftest.err
3728 rm -f conftest.er1
3729 cat conftest.err >&5
3730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } && {
3732 test -z "$ac_c_werror_flag" ||
3733 test ! -s conftest.err
3734 } && test -s conftest.$ac_objext; then
3735 ac_cv_prog_cc_g=yes
3736 else
3737 $as_echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3739
3740
3741 fi
3742
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744 fi
3745
3746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747 fi
3748
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750 ac_c_werror_flag=$ac_save_c_werror_flag
3751 fi
3752 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3753 $as_echo "$ac_cv_prog_cc_g" >&6; }
3754 if test "$ac_test_CFLAGS" = set; then
3755 CFLAGS=$ac_save_CFLAGS
3756 elif test $ac_cv_prog_cc_g = yes; then
3757 if test "$GCC" = yes; then
3758 CFLAGS="-g -O2"
3759 else
3760 CFLAGS="-g"
3761 fi
3762 else
3763 if test "$GCC" = yes; then
3764 CFLAGS="-O2"
3765 else
3766 CFLAGS=
3767 fi
3768 fi
3769 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3770 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3771 if test "${ac_cv_prog_cc_c89+set}" = set; then
3772 $as_echo_n "(cached) " >&6
3773 else
3774 ac_cv_prog_cc_c89=no
3775 ac_save_CC=$CC
3776 cat >conftest.$ac_ext <<_ACEOF
3777 /* confdefs.h. */
3778 _ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3782 #include <stdarg.h>
3783 #include <stdio.h>
3784 #include <sys/types.h>
3785 #include <sys/stat.h>
3786 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3787 struct buf { int x; };
3788 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3789 static char *e (p, i)
3790 char **p;
3791 int i;
3792 {
3793 return p[i];
3794 }
3795 static char *f (char * (*g) (char **, int), char **p, ...)
3796 {
3797 char *s;
3798 va_list v;
3799 va_start (v,p);
3800 s = g (p, va_arg (v,int));
3801 va_end (v);
3802 return s;
3803 }
3804
3805 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3806 function prototypes and stuff, but not '\xHH' hex character constants.
3807 These don't provoke an error unfortunately, instead are silently treated
3808 as 'x'. The following induces an error, until -std is added to get
3809 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3810 array size at least. It's necessary to write '\x00'==0 to get something
3811 that's true only with -std. */
3812 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3813
3814 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3815 inside strings and character constants. */
3816 #define FOO(x) 'x'
3817 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3818
3819 int test (int i, double x);
3820 struct s1 {int (*f) (int a);};
3821 struct s2 {int (*f) (double a);};
3822 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3823 int argc;
3824 char **argv;
3825 int
3826 main ()
3827 {
3828 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3829 ;
3830 return 0;
3831 }
3832 _ACEOF
3833 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3834 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3835 do
3836 CC="$ac_save_CC $ac_arg"
3837 rm -f conftest.$ac_objext
3838 if { (ac_try="$ac_compile"
3839 case "(($ac_try" in
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3842 esac
3843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3844 $as_echo "$ac_try_echo") >&5
3845 (eval "$ac_compile") 2>conftest.er1
3846 ac_status=$?
3847 grep -v '^ *+' conftest.er1 >conftest.err
3848 rm -f conftest.er1
3849 cat conftest.err >&5
3850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } && {
3852 test -z "$ac_c_werror_flag" ||
3853 test ! -s conftest.err
3854 } && test -s conftest.$ac_objext; then
3855 ac_cv_prog_cc_c89=$ac_arg
3856 else
3857 $as_echo "$as_me: failed program was:" >&5
3858 sed 's/^/| /' conftest.$ac_ext >&5
3859
3860
3861 fi
3862
3863 rm -f core conftest.err conftest.$ac_objext
3864 test "x$ac_cv_prog_cc_c89" != "xno" && break
3865 done
3866 rm -f conftest.$ac_ext
3867 CC=$ac_save_CC
3868
3869 fi
3870 # AC_CACHE_VAL
3871 case "x$ac_cv_prog_cc_c89" in
3872 x)
3873 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3874 $as_echo "none needed" >&6; } ;;
3875 xno)
3876 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3877 $as_echo "unsupported" >&6; } ;;
3878 *)
3879 CC="$CC $ac_cv_prog_cc_c89"
3880 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3881 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3882 esac
3883
3884
3885 ac_ext=c
3886 ac_cpp='$CPP $CPPFLAGS'
3887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3890
3891
3892 # On Suns, sometimes $CPP names a directory.
3893 if test -n "$CPP" && test -d "$CPP"; then
3894 CPP=
3895 fi
3896
3897 ## If not using gcc, and on Solaris, and no CPP specified, see if
3898 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3899 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3900 test x"$CPP" = x; then
3901 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3902 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3903
3904 if test "${emacs_cv_sunpro_c+set}" = set; then
3905 $as_echo_n "(cached) " >&6
3906 else
3907 cat >conftest.$ac_ext <<_ACEOF
3908 /* confdefs.h. */
3909 _ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3913
3914 int
3915 main ()
3916 {
3917 #ifndef __SUNPRO_C
3918 fail;
3919 #endif
3920
3921 ;
3922 return 0;
3923 }
3924 _ACEOF
3925 rm -f conftest.$ac_objext conftest$ac_exeext
3926 if { (ac_try="$ac_link"
3927 case "(($ac_try" in
3928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3930 esac
3931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3932 $as_echo "$ac_try_echo") >&5
3933 (eval "$ac_link") 2>conftest.er1
3934 ac_status=$?
3935 grep -v '^ *+' conftest.er1 >conftest.err
3936 rm -f conftest.er1
3937 cat conftest.err >&5
3938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } && {
3940 test -z "$ac_c_werror_flag" ||
3941 test ! -s conftest.err
3942 } && test -s conftest$ac_exeext && {
3943 test "$cross_compiling" = yes ||
3944 $as_test_x conftest$ac_exeext
3945 }; then
3946 emacs_cv_sunpro_c=yes
3947 else
3948 $as_echo "$as_me: failed program was:" >&5
3949 sed 's/^/| /' conftest.$ac_ext >&5
3950
3951 emacs_cv_sunpro_c=no
3952 fi
3953
3954 rm -rf conftest.dSYM
3955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3956 conftest$ac_exeext conftest.$ac_ext
3957 fi
3958
3959 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3960 $as_echo "$emacs_cv_sunpro_c" >&6; }
3961
3962 if test x"$emacs_cv_sunpro_c" = xyes; then
3963 NON_GNU_CPP="$CC -E -Xs"
3964 fi
3965 fi
3966
3967 #### Some systems specify a CPP to use unless we are using GCC.
3968 #### Now that we know whether we are using GCC, we can decide whether
3969 #### to use that one.
3970 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3971 then
3972 CPP="$NON_GNU_CPP"
3973 fi
3974
3975 #### Some systems specify a CC to use unless we are using GCC.
3976 #### Now that we know whether we are using GCC, we can decide whether
3977 #### to use that one.
3978 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3979 test x$cc_specified != xyes
3980 then
3981 CC="$NON_GNU_CC"
3982 fi
3983
3984 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3985 then
3986 CC="$CC $GCC_TEST_OPTIONS"
3987 fi
3988
3989 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3990 then
3991 CC="$CC $NON_GCC_TEST_OPTIONS"
3992 fi
3993
3994 ac_ext=c
3995 ac_cpp='$CPP $CPPFLAGS'
3996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3999 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4000 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4001 # On Suns, sometimes $CPP names a directory.
4002 if test -n "$CPP" && test -d "$CPP"; then
4003 CPP=
4004 fi
4005 if test -z "$CPP"; then
4006 if test "${ac_cv_prog_CPP+set}" = set; then
4007 $as_echo_n "(cached) " >&6
4008 else
4009 # Double quotes because CPP needs to be expanded
4010 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4011 do
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 break
4107 fi
4108
4109 done
4110 ac_cv_prog_CPP=$CPP
4111
4112 fi
4113 CPP=$ac_cv_prog_CPP
4114 else
4115 ac_cv_prog_CPP=$CPP
4116 fi
4117 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4118 $as_echo "$CPP" >&6; }
4119 ac_preproc_ok=false
4120 for ac_c_preproc_warn_flag in '' yes
4121 do
4122 # Use a header file that comes with gcc, so configuring glibc
4123 # with a fresh cross-compiler works.
4124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4125 # <limits.h> exists even on freestanding compilers.
4126 # On the NeXT, cc -E runs the code through the compiler's parser,
4127 # not just through cpp. "Syntax error" is here to catch this case.
4128 cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h. */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 #ifdef __STDC__
4135 # include <limits.h>
4136 #else
4137 # include <assert.h>
4138 #endif
4139 Syntax error
4140 _ACEOF
4141 if { (ac_try="$ac_cpp conftest.$ac_ext"
4142 case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4145 esac
4146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4147 $as_echo "$ac_try_echo") >&5
4148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4149 ac_status=$?
4150 grep -v '^ *+' conftest.er1 >conftest.err
4151 rm -f conftest.er1
4152 cat conftest.err >&5
4153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } >/dev/null && {
4155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4156 test ! -s conftest.err
4157 }; then
4158 :
4159 else
4160 $as_echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4162
4163 # Broken: fails on valid input.
4164 continue
4165 fi
4166
4167 rm -f conftest.err conftest.$ac_ext
4168
4169 # OK, works on sane cases. Now check whether nonexistent headers
4170 # can be detected and how.
4171 cat >conftest.$ac_ext <<_ACEOF
4172 /* confdefs.h. */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4177 #include <ac_nonexistent.h>
4178 _ACEOF
4179 if { (ac_try="$ac_cpp conftest.$ac_ext"
4180 case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183 esac
4184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4185 $as_echo "$ac_try_echo") >&5
4186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4187 ac_status=$?
4188 grep -v '^ *+' conftest.er1 >conftest.err
4189 rm -f conftest.er1
4190 cat conftest.err >&5
4191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); } >/dev/null && {
4193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4194 test ! -s conftest.err
4195 }; then
4196 # Broken: success on invalid input.
4197 continue
4198 else
4199 $as_echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4201
4202 # Passes both tests.
4203 ac_preproc_ok=:
4204 break
4205 fi
4206
4207 rm -f conftest.err conftest.$ac_ext
4208
4209 done
4210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4211 rm -f conftest.err conftest.$ac_ext
4212 if $ac_preproc_ok; then
4213 :
4214 else
4215 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4216 See \`config.log' for more details." >&5
4217 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4218 See \`config.log' for more details." >&2;}
4219 { (exit 1); exit 1; }; }
4220 fi
4221
4222 ac_ext=c
4223 ac_cpp='$CPP $CPPFLAGS'
4224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4227
4228
4229 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4230 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4231 if test "${ac_cv_path_GREP+set}" = set; then
4232 $as_echo_n "(cached) " >&6
4233 else
4234 if test -z "$GREP"; then
4235 ac_path_GREP_found=false
4236 # Loop through the user's path and test for each of PROGNAME-LIST
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4239 do
4240 IFS=$as_save_IFS
4241 test -z "$as_dir" && as_dir=.
4242 for ac_prog in grep ggrep; do
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4245 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4246 # Check for GNU ac_path_GREP and select it if it is found.
4247 # Check for GNU $ac_path_GREP
4248 case `"$ac_path_GREP" --version 2>&1` in
4249 *GNU*)
4250 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4251 *)
4252 ac_count=0
4253 $as_echo_n 0123456789 >"conftest.in"
4254 while :
4255 do
4256 cat "conftest.in" "conftest.in" >"conftest.tmp"
4257 mv "conftest.tmp" "conftest.in"
4258 cp "conftest.in" "conftest.nl"
4259 $as_echo 'GREP' >> "conftest.nl"
4260 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4261 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4262 ac_count=`expr $ac_count + 1`
4263 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4264 # Best one so far, save it but keep looking for a better one
4265 ac_cv_path_GREP="$ac_path_GREP"
4266 ac_path_GREP_max=$ac_count
4267 fi
4268 # 10*(2^10) chars as input seems more than enough
4269 test $ac_count -gt 10 && break
4270 done
4271 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4272 esac
4273
4274 $ac_path_GREP_found && break 3
4275 done
4276 done
4277 done
4278 IFS=$as_save_IFS
4279 if test -z "$ac_cv_path_GREP"; then
4280 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4281 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4282 { (exit 1); exit 1; }; }
4283 fi
4284 else
4285 ac_cv_path_GREP=$GREP
4286 fi
4287
4288 fi
4289 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4290 $as_echo "$ac_cv_path_GREP" >&6; }
4291 GREP="$ac_cv_path_GREP"
4292
4293
4294 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4295 $as_echo_n "checking for egrep... " >&6; }
4296 if test "${ac_cv_path_EGREP+set}" = set; then
4297 $as_echo_n "(cached) " >&6
4298 else
4299 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4300 then ac_cv_path_EGREP="$GREP -E"
4301 else
4302 if test -z "$EGREP"; then
4303 ac_path_EGREP_found=false
4304 # Loop through the user's path and test for each of PROGNAME-LIST
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4307 do
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_prog in egrep; do
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4313 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4314 # Check for GNU ac_path_EGREP and select it if it is found.
4315 # Check for GNU $ac_path_EGREP
4316 case `"$ac_path_EGREP" --version 2>&1` in
4317 *GNU*)
4318 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4319 *)
4320 ac_count=0
4321 $as_echo_n 0123456789 >"conftest.in"
4322 while :
4323 do
4324 cat "conftest.in" "conftest.in" >"conftest.tmp"
4325 mv "conftest.tmp" "conftest.in"
4326 cp "conftest.in" "conftest.nl"
4327 $as_echo 'EGREP' >> "conftest.nl"
4328 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4330 ac_count=`expr $ac_count + 1`
4331 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4332 # Best one so far, save it but keep looking for a better one
4333 ac_cv_path_EGREP="$ac_path_EGREP"
4334 ac_path_EGREP_max=$ac_count
4335 fi
4336 # 10*(2^10) chars as input seems more than enough
4337 test $ac_count -gt 10 && break
4338 done
4339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4340 esac
4341
4342 $ac_path_EGREP_found && break 3
4343 done
4344 done
4345 done
4346 IFS=$as_save_IFS
4347 if test -z "$ac_cv_path_EGREP"; then
4348 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4349 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4350 { (exit 1); exit 1; }; }
4351 fi
4352 else
4353 ac_cv_path_EGREP=$EGREP
4354 fi
4355
4356 fi
4357 fi
4358 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4359 $as_echo "$ac_cv_path_EGREP" >&6; }
4360 EGREP="$ac_cv_path_EGREP"
4361
4362
4363 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4364 $as_echo_n "checking for ANSI C header files... " >&6; }
4365 if test "${ac_cv_header_stdc+set}" = set; then
4366 $as_echo_n "(cached) " >&6
4367 else
4368 cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h. */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4374 #include <stdlib.h>
4375 #include <stdarg.h>
4376 #include <string.h>
4377 #include <float.h>
4378
4379 int
4380 main ()
4381 {
4382
4383 ;
4384 return 0;
4385 }
4386 _ACEOF
4387 rm -f conftest.$ac_objext
4388 if { (ac_try="$ac_compile"
4389 case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4392 esac
4393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4394 $as_echo "$ac_try_echo") >&5
4395 (eval "$ac_compile") 2>conftest.er1
4396 ac_status=$?
4397 grep -v '^ *+' conftest.er1 >conftest.err
4398 rm -f conftest.er1
4399 cat conftest.err >&5
4400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } && {
4402 test -z "$ac_c_werror_flag" ||
4403 test ! -s conftest.err
4404 } && test -s conftest.$ac_objext; then
4405 ac_cv_header_stdc=yes
4406 else
4407 $as_echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4409
4410 ac_cv_header_stdc=no
4411 fi
4412
4413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4414
4415 if test $ac_cv_header_stdc = yes; then
4416 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4417 cat >conftest.$ac_ext <<_ACEOF
4418 /* confdefs.h. */
4419 _ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h. */
4423 #include <string.h>
4424
4425 _ACEOF
4426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4427 $EGREP "memchr" >/dev/null 2>&1; then
4428 :
4429 else
4430 ac_cv_header_stdc=no
4431 fi
4432 rm -f conftest*
4433
4434 fi
4435
4436 if test $ac_cv_header_stdc = yes; then
4437 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4438 cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h. */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 #include <stdlib.h>
4445
4446 _ACEOF
4447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4448 $EGREP "free" >/dev/null 2>&1; then
4449 :
4450 else
4451 ac_cv_header_stdc=no
4452 fi
4453 rm -f conftest*
4454
4455 fi
4456
4457 if test $ac_cv_header_stdc = yes; then
4458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4459 if test "$cross_compiling" = yes; then
4460 :
4461 else
4462 cat >conftest.$ac_ext <<_ACEOF
4463 /* confdefs.h. */
4464 _ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */
4468 #include <ctype.h>
4469 #include <stdlib.h>
4470 #if ((' ' & 0x0FF) == 0x020)
4471 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4472 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4473 #else
4474 # define ISLOWER(c) \
4475 (('a' <= (c) && (c) <= 'i') \
4476 || ('j' <= (c) && (c) <= 'r') \
4477 || ('s' <= (c) && (c) <= 'z'))
4478 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4479 #endif
4480
4481 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4482 int
4483 main ()
4484 {
4485 int i;
4486 for (i = 0; i < 256; i++)
4487 if (XOR (islower (i), ISLOWER (i))
4488 || toupper (i) != TOUPPER (i))
4489 return 2;
4490 return 0;
4491 }
4492 _ACEOF
4493 rm -f conftest$ac_exeext
4494 if { (ac_try="$ac_link"
4495 case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4498 esac
4499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4500 $as_echo "$ac_try_echo") >&5
4501 (eval "$ac_link") 2>&5
4502 ac_status=$?
4503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4505 { (case "(($ac_try" in
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4508 esac
4509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4510 $as_echo "$ac_try_echo") >&5
4511 (eval "$ac_try") 2>&5
4512 ac_status=$?
4513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4515 :
4516 else
4517 $as_echo "$as_me: program exited with status $ac_status" >&5
4518 $as_echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4520
4521 ( exit $ac_status )
4522 ac_cv_header_stdc=no
4523 fi
4524 rm -rf conftest.dSYM
4525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4526 fi
4527
4528
4529 fi
4530 fi
4531 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4532 $as_echo "$ac_cv_header_stdc" >&6; }
4533 if test $ac_cv_header_stdc = yes; then
4534
4535 cat >>confdefs.h <<\_ACEOF
4536 #define STDC_HEADERS 1
4537 _ACEOF
4538
4539 fi
4540
4541 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4552 inttypes.h stdint.h unistd.h
4553 do
4554 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4555 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4556 $as_echo_n "checking for $ac_header... " >&6; }
4557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4558 $as_echo_n "(cached) " >&6
4559 else
4560 cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h. */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4566 $ac_includes_default
4567
4568 #include <$ac_header>
4569 _ACEOF
4570 rm -f conftest.$ac_objext
4571 if { (ac_try="$ac_compile"
4572 case "(($ac_try" in
4573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574 *) ac_try_echo=$ac_try;;
4575 esac
4576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4577 $as_echo "$ac_try_echo") >&5
4578 (eval "$ac_compile") 2>conftest.er1
4579 ac_status=$?
4580 grep -v '^ *+' conftest.er1 >conftest.err
4581 rm -f conftest.er1
4582 cat conftest.err >&5
4583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); } && {
4585 test -z "$ac_c_werror_flag" ||
4586 test ! -s conftest.err
4587 } && test -s conftest.$ac_objext; then
4588 eval "$as_ac_Header=yes"
4589 else
4590 $as_echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4592
4593 eval "$as_ac_Header=no"
4594 fi
4595
4596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597 fi
4598 ac_res=`eval 'as_val=${'$as_ac_Header'}
4599 $as_echo "$as_val"'`
4600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4601 $as_echo "$ac_res" >&6; }
4602 if test `eval 'as_val=${'$as_ac_Header'}
4603 $as_echo "$as_val"'` = yes; then
4604 cat >>confdefs.h <<_ACEOF
4605 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4606 _ACEOF
4607
4608 fi
4609
4610 done
4611
4612
4613
4614 if test "${ac_cv_header_minix_config_h+set}" = set; then
4615 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4616 $as_echo_n "checking for minix/config.h... " >&6; }
4617 if test "${ac_cv_header_minix_config_h+set}" = set; then
4618 $as_echo_n "(cached) " >&6
4619 fi
4620 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4621 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4622 else
4623 # Is the header compilable?
4624 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4625 $as_echo_n "checking minix/config.h usability... " >&6; }
4626 cat >conftest.$ac_ext <<_ACEOF
4627 /* confdefs.h. */
4628 _ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h. */
4632 $ac_includes_default
4633 #include <minix/config.h>
4634 _ACEOF
4635 rm -f conftest.$ac_objext
4636 if { (ac_try="$ac_compile"
4637 case "(($ac_try" in
4638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4640 esac
4641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4642 $as_echo "$ac_try_echo") >&5
4643 (eval "$ac_compile") 2>conftest.er1
4644 ac_status=$?
4645 grep -v '^ *+' conftest.er1 >conftest.err
4646 rm -f conftest.er1
4647 cat conftest.err >&5
4648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } && {
4650 test -z "$ac_c_werror_flag" ||
4651 test ! -s conftest.err
4652 } && test -s conftest.$ac_objext; then
4653 ac_header_compiler=yes
4654 else
4655 $as_echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4657
4658 ac_header_compiler=no
4659 fi
4660
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4663 $as_echo "$ac_header_compiler" >&6; }
4664
4665 # Is the header present?
4666 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4667 $as_echo_n "checking minix/config.h presence... " >&6; }
4668 cat >conftest.$ac_ext <<_ACEOF
4669 /* confdefs.h. */
4670 _ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4674 #include <minix/config.h>
4675 _ACEOF
4676 if { (ac_try="$ac_cpp conftest.$ac_ext"
4677 case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4680 esac
4681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4682 $as_echo "$ac_try_echo") >&5
4683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4684 ac_status=$?
4685 grep -v '^ *+' conftest.er1 >conftest.err
4686 rm -f conftest.er1
4687 cat conftest.err >&5
4688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } >/dev/null && {
4690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4691 test ! -s conftest.err
4692 }; then
4693 ac_header_preproc=yes
4694 else
4695 $as_echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4697
4698 ac_header_preproc=no
4699 fi
4700
4701 rm -f conftest.err conftest.$ac_ext
4702 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4703 $as_echo "$ac_header_preproc" >&6; }
4704
4705 # So? What about this header?
4706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4707 yes:no: )
4708 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4709 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4710 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4711 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4712 ac_header_preproc=yes
4713 ;;
4714 no:yes:* )
4715 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4716 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4717 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4718 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4719 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4720 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4721 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4722 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4723 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4724 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4725 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4726 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4727
4728 ;;
4729 esac
4730 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4731 $as_echo_n "checking for minix/config.h... " >&6; }
4732 if test "${ac_cv_header_minix_config_h+set}" = set; then
4733 $as_echo_n "(cached) " >&6
4734 else
4735 ac_cv_header_minix_config_h=$ac_header_preproc
4736 fi
4737 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4738 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4739
4740 fi
4741 if test $ac_cv_header_minix_config_h = yes; then
4742 MINIX=yes
4743 else
4744 MINIX=
4745 fi
4746
4747
4748 if test "$MINIX" = yes; then
4749
4750 cat >>confdefs.h <<\_ACEOF
4751 #define _POSIX_SOURCE 1
4752 _ACEOF
4753
4754
4755 cat >>confdefs.h <<\_ACEOF
4756 #define _POSIX_1_SOURCE 2
4757 _ACEOF
4758
4759
4760 cat >>confdefs.h <<\_ACEOF
4761 #define _MINIX 1
4762 _ACEOF
4763
4764 fi
4765
4766
4767
4768 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4769 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4770 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4771 $as_echo_n "(cached) " >&6
4772 else
4773 cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h. */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4779
4780 # define __EXTENSIONS__ 1
4781 $ac_includes_default
4782 int
4783 main ()
4784 {
4785
4786 ;
4787 return 0;
4788 }
4789 _ACEOF
4790 rm -f conftest.$ac_objext
4791 if { (ac_try="$ac_compile"
4792 case "(($ac_try" in
4793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794 *) ac_try_echo=$ac_try;;
4795 esac
4796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4797 $as_echo "$ac_try_echo") >&5
4798 (eval "$ac_compile") 2>conftest.er1
4799 ac_status=$?
4800 grep -v '^ *+' conftest.er1 >conftest.err
4801 rm -f conftest.er1
4802 cat conftest.err >&5
4803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } && {
4805 test -z "$ac_c_werror_flag" ||
4806 test ! -s conftest.err
4807 } && test -s conftest.$ac_objext; then
4808 ac_cv_safe_to_define___extensions__=yes
4809 else
4810 $as_echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4812
4813 ac_cv_safe_to_define___extensions__=no
4814 fi
4815
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817 fi
4818 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4819 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4820 test $ac_cv_safe_to_define___extensions__ = yes &&
4821 cat >>confdefs.h <<\_ACEOF
4822 #define __EXTENSIONS__ 1
4823 _ACEOF
4824
4825 cat >>confdefs.h <<\_ACEOF
4826 #define _ALL_SOURCE 1
4827 _ACEOF
4828
4829 cat >>confdefs.h <<\_ACEOF
4830 #define _GNU_SOURCE 1
4831 _ACEOF
4832
4833 cat >>confdefs.h <<\_ACEOF
4834 #define _POSIX_PTHREAD_SEMANTICS 1
4835 _ACEOF
4836
4837 cat >>confdefs.h <<\_ACEOF
4838 #define _TANDEM_SOURCE 1
4839 _ACEOF
4840
4841
4842
4843 ### Use -Wno-pointer-sign if the compiler supports it
4844 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4845 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4846 SAVE_CFLAGS="$CFLAGS"
4847 CFLAGS="$CFLAGS -Wno-pointer-sign"
4848 cat >conftest.$ac_ext <<_ACEOF
4849 /* confdefs.h. */
4850 _ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854
4855 int
4856 main ()
4857 {
4858
4859 ;
4860 return 0;
4861 }
4862 _ACEOF
4863 rm -f conftest.$ac_objext
4864 if { (ac_try="$ac_compile"
4865 case "(($ac_try" in
4866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4867 *) ac_try_echo=$ac_try;;
4868 esac
4869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4870 $as_echo "$ac_try_echo") >&5
4871 (eval "$ac_compile") 2>conftest.er1
4872 ac_status=$?
4873 grep -v '^ *+' conftest.er1 >conftest.err
4874 rm -f conftest.er1
4875 cat conftest.err >&5
4876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } && {
4878 test -z "$ac_c_werror_flag" ||
4879 test ! -s conftest.err
4880 } && test -s conftest.$ac_objext; then
4881 has_option=yes
4882 else
4883 $as_echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4885
4886 has_option=no
4887 fi
4888
4889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4890 if test $has_option = yes; then
4891 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4892 fi
4893 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4894 $as_echo "$has_option" >&6; }
4895 CFLAGS="$SAVE_CFLAGS"
4896 unset has_option
4897 unset SAVE_CFLAGS
4898
4899 ### Use -Wdeclaration-after-statement if the compiler supports it
4900 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4901 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4902 SAVE_CFLAGS="$CFLAGS"
4903 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4904 cat >conftest.$ac_ext <<_ACEOF
4905 /* confdefs.h. */
4906 _ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4910
4911 int
4912 main ()
4913 {
4914
4915 ;
4916 return 0;
4917 }
4918 _ACEOF
4919 rm -f conftest.$ac_objext
4920 if { (ac_try="$ac_compile"
4921 case "(($ac_try" in
4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4924 esac
4925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4926 $as_echo "$ac_try_echo") >&5
4927 (eval "$ac_compile") 2>conftest.er1
4928 ac_status=$?
4929 grep -v '^ *+' conftest.er1 >conftest.err
4930 rm -f conftest.er1
4931 cat conftest.err >&5
4932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } && {
4934 test -z "$ac_c_werror_flag" ||
4935 test ! -s conftest.err
4936 } && test -s conftest.$ac_objext; then
4937 has_option=yes
4938 else
4939 $as_echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4941
4942 has_option=no
4943 fi
4944
4945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946 if test $has_option = yes; then
4947 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4948 fi
4949 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4950 $as_echo "$has_option" >&6; }
4951 CFLAGS="$SAVE_CFLAGS"
4952 unset has_option
4953 unset SAVE_CFLAGS
4954
4955 #### Some other nice autoconf tests.
4956
4957 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4958 $as_echo_n "checking whether ln -s works... " >&6; }
4959 LN_S=$as_ln_s
4960 if test "$LN_S" = "ln -s"; then
4961 { $as_echo "$as_me:$LINENO: result: yes" >&5
4962 $as_echo "yes" >&6; }
4963 else
4964 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4965 $as_echo "no, using $LN_S" >&6; }
4966 fi
4967
4968 ac_ext=c
4969 ac_cpp='$CPP $CPPFLAGS'
4970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4973 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4974 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4975 # On Suns, sometimes $CPP names a directory.
4976 if test -n "$CPP" && test -d "$CPP"; then
4977 CPP=
4978 fi
4979 if test -z "$CPP"; then
4980 if test "${ac_cv_prog_CPP+set}" = set; then
4981 $as_echo_n "(cached) " >&6
4982 else
4983 # Double quotes because CPP needs to be expanded
4984 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4985 do
4986 ac_preproc_ok=false
4987 for ac_c_preproc_warn_flag in '' yes
4988 do
4989 # Use a header file that comes with gcc, so configuring glibc
4990 # with a fresh cross-compiler works.
4991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4992 # <limits.h> exists even on freestanding compilers.
4993 # On the NeXT, cc -E runs the code through the compiler's parser,
4994 # not just through cpp. "Syntax error" is here to catch this case.
4995 cat >conftest.$ac_ext <<_ACEOF
4996 /* confdefs.h. */
4997 _ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5001 #ifdef __STDC__
5002 # include <limits.h>
5003 #else
5004 # include <assert.h>
5005 #endif
5006 Syntax error
5007 _ACEOF
5008 if { (ac_try="$ac_cpp conftest.$ac_ext"
5009 case "(($ac_try" in
5010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011 *) ac_try_echo=$ac_try;;
5012 esac
5013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5014 $as_echo "$ac_try_echo") >&5
5015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5016 ac_status=$?
5017 grep -v '^ *+' conftest.er1 >conftest.err
5018 rm -f conftest.er1
5019 cat conftest.err >&5
5020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } >/dev/null && {
5022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5023 test ! -s conftest.err
5024 }; then
5025 :
5026 else
5027 $as_echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5029
5030 # Broken: fails on valid input.
5031 continue
5032 fi
5033
5034 rm -f conftest.err conftest.$ac_ext
5035
5036 # OK, works on sane cases. Now check whether nonexistent headers
5037 # can be detected and how.
5038 cat >conftest.$ac_ext <<_ACEOF
5039 /* confdefs.h. */
5040 _ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5044 #include <ac_nonexistent.h>
5045 _ACEOF
5046 if { (ac_try="$ac_cpp conftest.$ac_ext"
5047 case "(($ac_try" in
5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5050 esac
5051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5052 $as_echo "$ac_try_echo") >&5
5053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5054 ac_status=$?
5055 grep -v '^ *+' conftest.er1 >conftest.err
5056 rm -f conftest.er1
5057 cat conftest.err >&5
5058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } >/dev/null && {
5060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5061 test ! -s conftest.err
5062 }; then
5063 # Broken: success on invalid input.
5064 continue
5065 else
5066 $as_echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5068
5069 # Passes both tests.
5070 ac_preproc_ok=:
5071 break
5072 fi
5073
5074 rm -f conftest.err conftest.$ac_ext
5075
5076 done
5077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5078 rm -f conftest.err conftest.$ac_ext
5079 if $ac_preproc_ok; then
5080 break
5081 fi
5082
5083 done
5084 ac_cv_prog_CPP=$CPP
5085
5086 fi
5087 CPP=$ac_cv_prog_CPP
5088 else
5089 ac_cv_prog_CPP=$CPP
5090 fi
5091 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5092 $as_echo "$CPP" >&6; }
5093 ac_preproc_ok=false
5094 for ac_c_preproc_warn_flag in '' yes
5095 do
5096 # Use a header file that comes with gcc, so configuring glibc
5097 # with a fresh cross-compiler works.
5098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5099 # <limits.h> exists even on freestanding compilers.
5100 # On the NeXT, cc -E runs the code through the compiler's parser,
5101 # not just through cpp. "Syntax error" is here to catch this case.
5102 cat >conftest.$ac_ext <<_ACEOF
5103 /* confdefs.h. */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5108 #ifdef __STDC__
5109 # include <limits.h>
5110 #else
5111 # include <assert.h>
5112 #endif
5113 Syntax error
5114 _ACEOF
5115 if { (ac_try="$ac_cpp conftest.$ac_ext"
5116 case "(($ac_try" in
5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5119 esac
5120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5121 $as_echo "$ac_try_echo") >&5
5122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5123 ac_status=$?
5124 grep -v '^ *+' conftest.er1 >conftest.err
5125 rm -f conftest.er1
5126 cat conftest.err >&5
5127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } >/dev/null && {
5129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5130 test ! -s conftest.err
5131 }; then
5132 :
5133 else
5134 $as_echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5136
5137 # Broken: fails on valid input.
5138 continue
5139 fi
5140
5141 rm -f conftest.err conftest.$ac_ext
5142
5143 # OK, works on sane cases. Now check whether nonexistent headers
5144 # can be detected and how.
5145 cat >conftest.$ac_ext <<_ACEOF
5146 /* confdefs.h. */
5147 _ACEOF
5148 cat confdefs.h >>conftest.$ac_ext
5149 cat >>conftest.$ac_ext <<_ACEOF
5150 /* end confdefs.h. */
5151 #include <ac_nonexistent.h>
5152 _ACEOF
5153 if { (ac_try="$ac_cpp conftest.$ac_ext"
5154 case "(($ac_try" in
5155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5156 *) ac_try_echo=$ac_try;;
5157 esac
5158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5159 $as_echo "$ac_try_echo") >&5
5160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5161 ac_status=$?
5162 grep -v '^ *+' conftest.er1 >conftest.err
5163 rm -f conftest.er1
5164 cat conftest.err >&5
5165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } >/dev/null && {
5167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5168 test ! -s conftest.err
5169 }; then
5170 # Broken: success on invalid input.
5171 continue
5172 else
5173 $as_echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.$ac_ext >&5
5175
5176 # Passes both tests.
5177 ac_preproc_ok=:
5178 break
5179 fi
5180
5181 rm -f conftest.err conftest.$ac_ext
5182
5183 done
5184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5185 rm -f conftest.err conftest.$ac_ext
5186 if $ac_preproc_ok; then
5187 :
5188 else
5189 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5190 See \`config.log' for more details." >&5
5191 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5192 See \`config.log' for more details." >&2;}
5193 { (exit 1); exit 1; }; }
5194 fi
5195
5196 ac_ext=c
5197 ac_cpp='$CPP $CPPFLAGS'
5198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5201
5202 # Find a good install program. We prefer a C program (faster),
5203 # so one script is as good as another. But avoid the broken or
5204 # incompatible versions:
5205 # SysV /etc/install, /usr/sbin/install
5206 # SunOS /usr/etc/install
5207 # IRIX /sbin/install
5208 # AIX /bin/install
5209 # AmigaOS /C/install, which installs bootblocks on floppy discs
5210 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5211 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5212 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5213 # OS/2's system install, which has a completely different semantic
5214 # ./install, which can be erroneously created by make from ./install.sh.
5215 # Reject install programs that cannot install multiple files.
5216 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5217 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5218 if test -z "$INSTALL"; then
5219 if test "${ac_cv_path_install+set}" = set; then
5220 $as_echo_n "(cached) " >&6
5221 else
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5224 do
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 # Account for people who put trailing slashes in PATH elements.
5228 case $as_dir/ in
5229 ./ | .// | /cC/* | \
5230 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5231 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5232 /usr/ucb/* ) ;;
5233 *)
5234 # OSF1 and SCO ODT 3.0 have their own names for install.
5235 # Don't use installbsd from OSF since it installs stuff as root
5236 # by default.
5237 for ac_prog in ginstall scoinst install; do
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5240 if test $ac_prog = install &&
5241 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5242 # AIX install. It has an incompatible calling convention.
5243 :
5244 elif test $ac_prog = install &&
5245 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5246 # program-specific install script used by HP pwplus--don't use.
5247 :
5248 else
5249 rm -rf conftest.one conftest.two conftest.dir
5250 echo one > conftest.one
5251 echo two > conftest.two
5252 mkdir conftest.dir
5253 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5254 test -s conftest.one && test -s conftest.two &&
5255 test -s conftest.dir/conftest.one &&
5256 test -s conftest.dir/conftest.two
5257 then
5258 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5259 break 3
5260 fi
5261 fi
5262 fi
5263 done
5264 done
5265 ;;
5266 esac
5267
5268 done
5269 IFS=$as_save_IFS
5270
5271 rm -rf conftest.one conftest.two conftest.dir
5272
5273 fi
5274 if test "${ac_cv_path_install+set}" = set; then
5275 INSTALL=$ac_cv_path_install
5276 else
5277 # As a last resort, use the slow shell script. Don't cache a
5278 # value for INSTALL within a source directory, because that will
5279 # break other packages using the cache if that directory is
5280 # removed, or if the value is a relative name.
5281 INSTALL=$ac_install_sh
5282 fi
5283 fi
5284 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5285 $as_echo "$INSTALL" >&6; }
5286
5287 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5288 # It thinks the first close brace ends the variable substitution.
5289 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5290
5291 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5292
5293 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5294
5295 if test "x$RANLIB" = x; then
5296 if test -n "$ac_tool_prefix"; then
5297 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5298 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5299 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5300 $as_echo_n "checking for $ac_word... " >&6; }
5301 if test "${ac_cv_prog_RANLIB+set}" = set; then
5302 $as_echo_n "(cached) " >&6
5303 else
5304 if test -n "$RANLIB"; then
5305 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5306 else
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5309 do
5310 IFS=$as_save_IFS
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5314 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5315 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 break 2
5317 fi
5318 done
5319 done
5320 IFS=$as_save_IFS
5321
5322 fi
5323 fi
5324 RANLIB=$ac_cv_prog_RANLIB
5325 if test -n "$RANLIB"; then
5326 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5327 $as_echo "$RANLIB" >&6; }
5328 else
5329 { $as_echo "$as_me:$LINENO: result: no" >&5
5330 $as_echo "no" >&6; }
5331 fi
5332
5333
5334 fi
5335 if test -z "$ac_cv_prog_RANLIB"; then
5336 ac_ct_RANLIB=$RANLIB
5337 # Extract the first word of "ranlib", so it can be a program name with args.
5338 set dummy ranlib; ac_word=$2
5339 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5340 $as_echo_n "checking for $ac_word... " >&6; }
5341 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5342 $as_echo_n "(cached) " >&6
5343 else
5344 if test -n "$ac_ct_RANLIB"; then
5345 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5346 else
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5349 do
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354 ac_cv_prog_ac_ct_RANLIB="ranlib"
5355 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 break 2
5357 fi
5358 done
5359 done
5360 IFS=$as_save_IFS
5361
5362 fi
5363 fi
5364 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5365 if test -n "$ac_ct_RANLIB"; then
5366 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5367 $as_echo "$ac_ct_RANLIB" >&6; }
5368 else
5369 { $as_echo "$as_me:$LINENO: result: no" >&5
5370 $as_echo "no" >&6; }
5371 fi
5372
5373 if test "x$ac_ct_RANLIB" = x; then
5374 RANLIB=":"
5375 else
5376 case $cross_compiling:$ac_tool_warned in
5377 yes:)
5378 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5379 whose name does not start with the host triplet. If you think this
5380 configuration is useful to you, please write to autoconf@gnu.org." >&5
5381 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5382 whose name does not start with the host triplet. If you think this
5383 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5384 ac_tool_warned=yes ;;
5385 esac
5386 RANLIB=$ac_ct_RANLIB
5387 fi
5388 else
5389 RANLIB="$ac_cv_prog_RANLIB"
5390 fi
5391
5392 fi
5393 # Extract the first word of "install-info", so it can be a program name with args.
5394 set dummy install-info; ac_word=$2
5395 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5398 $as_echo_n "(cached) " >&6
5399 else
5400 case $INSTALL_INFO in
5401 [\\/]* | ?:[\\/]*)
5402 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5403 ;;
5404 *)
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH
5407 do
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 break 2
5415 fi
5416 done
5417 done
5418 IFS=$as_save_IFS
5419
5420 ;;
5421 esac
5422 fi
5423 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5424 if test -n "$INSTALL_INFO"; then
5425 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5426 $as_echo "$INSTALL_INFO" >&6; }
5427 else
5428 { $as_echo "$as_me:$LINENO: result: no" >&5
5429 $as_echo "no" >&6; }
5430 fi
5431
5432
5433 # Extract the first word of "install-info", so it can be a program name with args.
5434 set dummy install-info; ac_word=$2
5435 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5438 $as_echo_n "(cached) " >&6
5439 else
5440 case $INSTALL_INFO in
5441 [\\/]* | ?:[\\/]*)
5442 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5443 ;;
5444 *)
5445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 for as_dir in /usr/sbin
5447 do
5448 IFS=$as_save_IFS
5449 test -z "$as_dir" && as_dir=.
5450 for ac_exec_ext in '' $ac_executable_extensions; do
5451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5452 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5453 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 break 2
5455 fi
5456 done
5457 done
5458 IFS=$as_save_IFS
5459
5460 ;;
5461 esac
5462 fi
5463 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5464 if test -n "$INSTALL_INFO"; then
5465 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5466 $as_echo "$INSTALL_INFO" >&6; }
5467 else
5468 { $as_echo "$as_me:$LINENO: result: no" >&5
5469 $as_echo "no" >&6; }
5470 fi
5471
5472
5473 # Extract the first word of "install-info", so it can be a program name with args.
5474 set dummy install-info; ac_word=$2
5475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5478 $as_echo_n "(cached) " >&6
5479 else
5480 case $INSTALL_INFO in
5481 [\\/]* | ?:[\\/]*)
5482 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5483 ;;
5484 *)
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 for as_dir in /sbin
5487 do
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 break 2
5495 fi
5496 done
5497 done
5498 IFS=$as_save_IFS
5499
5500 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5501 ;;
5502 esac
5503 fi
5504 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5505 if test -n "$INSTALL_INFO"; then
5506 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5507 $as_echo "$INSTALL_INFO" >&6; }
5508 else
5509 { $as_echo "$as_me:$LINENO: result: no" >&5
5510 $as_echo "no" >&6; }
5511 fi
5512
5513
5514 # Extract the first word of "gzip", so it can be a program name with args.
5515 set dummy gzip; ac_word=$2
5516 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5517 $as_echo_n "checking for $ac_word... " >&6; }
5518 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5519 $as_echo_n "(cached) " >&6
5520 else
5521 case $GZIP_PROG in
5522 [\\/]* | ?:[\\/]*)
5523 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5524 ;;
5525 *)
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 for as_dir in $PATH
5528 do
5529 IFS=$as_save_IFS
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5533 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5534 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5535 break 2
5536 fi
5537 done
5538 done
5539 IFS=$as_save_IFS
5540
5541 ;;
5542 esac
5543 fi
5544 GZIP_PROG=$ac_cv_path_GZIP_PROG
5545 if test -n "$GZIP_PROG"; then
5546 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5547 $as_echo "$GZIP_PROG" >&6; }
5548 else
5549 { $as_echo "$as_me:$LINENO: result: no" >&5
5550 $as_echo "no" >&6; }
5551 fi
5552
5553
5554
5555
5556 ## Need makeinfo >= 4.6 (?) to build the manuals.
5557 # Extract the first word of "makeinfo", so it can be a program name with args.
5558 set dummy makeinfo; ac_word=$2
5559 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5560 $as_echo_n "checking for $ac_word... " >&6; }
5561 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5562 $as_echo_n "(cached) " >&6
5563 else
5564 case $MAKEINFO in
5565 [\\/]* | ?:[\\/]*)
5566 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5567 ;;
5568 *)
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 for as_dir in $PATH
5571 do
5572 IFS=$as_save_IFS
5573 test -z "$as_dir" && as_dir=.
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5576 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5577 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5578 break 2
5579 fi
5580 done
5581 done
5582 IFS=$as_save_IFS
5583
5584 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5585 ;;
5586 esac
5587 fi
5588 MAKEINFO=$ac_cv_path_MAKEINFO
5589 if test -n "$MAKEINFO"; then
5590 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5591 $as_echo "$MAKEINFO" >&6; }
5592 else
5593 { $as_echo "$as_me:$LINENO: result: no" >&5
5594 $as_echo "no" >&6; }
5595 fi
5596
5597
5598 if test "$MAKEINFO" != "no" && \
5599 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
5600 MAKEINFO=no
5601 fi
5602
5603 ## Makeinfo is unusual. For a released Emacs, the manuals are
5604 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5605 ## therefore in the category of "special tools" not normally required, which
5606 ## configure does not have to check for (eg autoconf itself).
5607 ## In a CVS checkout on the other hand, the manuals are not included.
5608 ## So makeinfo is a requirement to build from CVS, and configure
5609 ## should test for it as it does for any other build requirement.
5610 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5611 ## with pre-built manuals, from a CVS checkout.
5612 if test "$MAKEINFO" = "no"; then
5613 if test "x${with_makeinfo}" = "xno"; then
5614 MAKEINFO=off
5615 elif ! test -e $srcdir/info/emacs; then
5616 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5617 source tree does not seem to have pre-built manuals in the \`info' directory.
5618 Either install a suitable version of makeinfo, or re-run configure
5619 with the \`--without-makeinfo' option to build without the manuals. " >&5
5620 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5621 source tree does not seem to have pre-built manuals in the \`info' directory.
5622 Either install a suitable version of makeinfo, or re-run configure
5623 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5624 { (exit 1); exit 1; }; }
5625 fi
5626 fi
5627
5628
5629 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5630 then
5631 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5632 fi
5633
5634 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5635 then
5636 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5637 fi
5638
5639
5640 late_LDFLAGS=$LDFLAGS
5641 if test "$GCC" = yes; then
5642 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5643 else
5644 LDFLAGS="$LDFLAGS -znocombreloc"
5645 fi
5646
5647 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5648 $as_echo_n "checking for -znocombreloc... " >&6; }
5649 cat >conftest.$ac_ext <<_ACEOF
5650 main(){return 0;}
5651 _ACEOF
5652 rm -f conftest.$ac_objext conftest$ac_exeext
5653 if { (ac_try="$ac_link"
5654 case "(($ac_try" in
5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5657 esac
5658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5659 $as_echo "$ac_try_echo") >&5
5660 (eval "$ac_link") 2>conftest.er1
5661 ac_status=$?
5662 grep -v '^ *+' conftest.er1 >conftest.err
5663 rm -f conftest.er1
5664 cat conftest.err >&5
5665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } && {
5667 test -z "$ac_c_werror_flag" ||
5668 test ! -s conftest.err
5669 } && test -s conftest$ac_exeext && {
5670 test "$cross_compiling" = yes ||
5671 $as_test_x conftest$ac_exeext
5672 }; then
5673 { $as_echo "$as_me:$LINENO: result: yes" >&5
5674 $as_echo "yes" >&6; }
5675 else
5676 $as_echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5678
5679 LDFLAGS=$late_LDFLAGS
5680 { $as_echo "$as_me:$LINENO: result: no" >&5
5681 $as_echo "no" >&6; }
5682 fi
5683
5684 rm -rf conftest.dSYM
5685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5686 conftest$ac_exeext conftest.$ac_ext
5687
5688 #### Extract some information from the operating system and machine files.
5689
5690 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5691 - which libraries the lib-src programs will want, and
5692 - whether the GNU malloc routines are usable..." >&5
5693 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5694 - which libraries the lib-src programs will want, and
5695 - whether the GNU malloc routines are usable..." >&6;}
5696
5697 ### First figure out CFLAGS (which we use for running the compiler here)
5698 ### and REAL_CFLAGS (which we use for real compilation).
5699 ### The two are the same except on a few systems, where they are made
5700 ### different to work around various lossages. For example,
5701 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5702 ### as implying static linking.
5703
5704 ### If the CFLAGS env var is specified, we use that value
5705 ### instead of the default.
5706
5707 ### It's not important that this name contain the PID; you can't run
5708 ### two configures in the same directory and have anything work
5709 ### anyway.
5710 tempcname="conftest.c"
5711
5712 echo '
5713 #include "'${srcdir}'/src/'${opsysfile}'"
5714 #include "'${srcdir}'/src/'${machfile}'"
5715 #ifndef LIBS_MACHINE
5716 #define LIBS_MACHINE
5717 #endif
5718 #ifndef LIBS_SYSTEM
5719 #define LIBS_SYSTEM
5720 #endif
5721 #ifndef C_SWITCH_SYSTEM
5722 #define C_SWITCH_SYSTEM
5723 #endif
5724 #ifndef C_SWITCH_MACHINE
5725 #define C_SWITCH_MACHINE
5726 #endif
5727 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5728 configure___ c_switch_system=C_SWITCH_SYSTEM
5729 configure___ c_switch_machine=C_SWITCH_MACHINE
5730
5731 #ifndef LIB_X11_LIB
5732 #define LIB_X11_LIB -lX11
5733 #endif
5734
5735 #ifndef LIBX11_SYSTEM
5736 #define LIBX11_SYSTEM
5737 #endif
5738 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5739
5740 #ifdef UNEXEC
5741 configure___ unexec=UNEXEC
5742 #else
5743 configure___ unexec=unexec.o
5744 #endif
5745
5746 #ifdef SYSTEM_MALLOC
5747 configure___ system_malloc=yes
5748 #else
5749 configure___ system_malloc=no
5750 #endif
5751
5752 #ifdef USE_MMAP_FOR_BUFFERS
5753 configure___ use_mmap_for_buffers=yes
5754 #else
5755 configure___ use_mmap_for_buffers=no
5756 #endif
5757
5758 #ifndef C_DEBUG_SWITCH
5759 #define C_DEBUG_SWITCH -g
5760 #endif
5761
5762 #ifndef C_OPTIMIZE_SWITCH
5763 #ifdef __GNUC__
5764 #define C_OPTIMIZE_SWITCH -O2
5765 #else
5766 #define C_OPTIMIZE_SWITCH -O
5767 #endif
5768 #endif
5769
5770 #ifndef C_WARNINGS_SWITCH
5771 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5772 #endif
5773
5774 #ifndef LD_SWITCH_MACHINE
5775 #define LD_SWITCH_MACHINE
5776 #endif
5777
5778 #ifndef LD_SWITCH_SYSTEM
5779 #define LD_SWITCH_SYSTEM
5780 #endif
5781
5782 #ifndef LD_SWITCH_X_SITE_AUX
5783 #define LD_SWITCH_X_SITE_AUX
5784 #endif
5785
5786 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5787 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5788
5789 #ifdef THIS_IS_CONFIGURE
5790
5791 /* Get the CFLAGS for tests in configure. */
5792 #ifdef __GNUC__
5793 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5794 #else
5795 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5796 #endif
5797
5798 #else /* not THIS_IS_CONFIGURE */
5799
5800 /* Get the CFLAGS for real compilation. */
5801 #ifdef __GNUC__
5802 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5803 #else
5804 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5805 #endif
5806
5807 #endif /* not THIS_IS_CONFIGURE */
5808 ' > ${tempcname}
5809
5810 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5811
5812 # The value of CPP is a quoted variable reference, so we need to do this
5813 # to get its actual value...
5814 CPP=`eval "echo $CPP"`
5815 eval `${CPP} -Isrc ${tempcname} \
5816 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5817 if test "x$SPECIFIED_CFLAGS" = x; then
5818 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5819 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5820 else
5821 REAL_CFLAGS="$CFLAGS"
5822 fi
5823 rm ${tempcname}
5824
5825 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5826
5827 ### Make sure subsequent tests use flags consistent with the build flags.
5828
5829 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5830 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5831 else
5832 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5833 fi
5834
5835
5836
5837 # Check whether --enable-largefile was given.
5838 if test "${enable_largefile+set}" = set; then
5839 enableval=$enable_largefile;
5840 fi
5841
5842 if test "$enable_largefile" != no; then
5843
5844 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5845 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5846 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5847 $as_echo_n "(cached) " >&6
5848 else
5849 ac_cv_sys_largefile_CC=no
5850 if test "$GCC" != yes; then
5851 ac_save_CC=$CC
5852 while :; do
5853 # IRIX 6.2 and later do not support large files by default,
5854 # so use the C compiler's -n32 option if that helps.
5855 cat >conftest.$ac_ext <<_ACEOF
5856 /* confdefs.h. */
5857 _ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h. */
5861 #include <sys/types.h>
5862 /* Check that off_t can represent 2**63 - 1 correctly.
5863 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5864 since some C++ compilers masquerading as C compilers
5865 incorrectly reject 9223372036854775807. */
5866 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5867 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5868 && LARGE_OFF_T % 2147483647 == 1)
5869 ? 1 : -1];
5870 int
5871 main ()
5872 {
5873
5874 ;
5875 return 0;
5876 }
5877 _ACEOF
5878 rm -f conftest.$ac_objext
5879 if { (ac_try="$ac_compile"
5880 case "(($ac_try" in
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5883 esac
5884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5885 $as_echo "$ac_try_echo") >&5
5886 (eval "$ac_compile") 2>conftest.er1
5887 ac_status=$?
5888 grep -v '^ *+' conftest.er1 >conftest.err
5889 rm -f conftest.er1
5890 cat conftest.err >&5
5891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } && {
5893 test -z "$ac_c_werror_flag" ||
5894 test ! -s conftest.err
5895 } && test -s conftest.$ac_objext; then
5896 break
5897 else
5898 $as_echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5900
5901
5902 fi
5903
5904 rm -f core conftest.err conftest.$ac_objext
5905 CC="$CC -n32"
5906 rm -f conftest.$ac_objext
5907 if { (ac_try="$ac_compile"
5908 case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5911 esac
5912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5913 $as_echo "$ac_try_echo") >&5
5914 (eval "$ac_compile") 2>conftest.er1
5915 ac_status=$?
5916 grep -v '^ *+' conftest.er1 >conftest.err
5917 rm -f conftest.er1
5918 cat conftest.err >&5
5919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } && {
5921 test -z "$ac_c_werror_flag" ||
5922 test ! -s conftest.err
5923 } && test -s conftest.$ac_objext; then
5924 ac_cv_sys_largefile_CC=' -n32'; break
5925 else
5926 $as_echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5928
5929
5930 fi
5931
5932 rm -f core conftest.err conftest.$ac_objext
5933 break
5934 done
5935 CC=$ac_save_CC
5936 rm -f conftest.$ac_ext
5937 fi
5938 fi
5939 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5940 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5941 if test "$ac_cv_sys_largefile_CC" != no; then
5942 CC=$CC$ac_cv_sys_largefile_CC
5943 fi
5944
5945 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5946 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5947 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5948 $as_echo_n "(cached) " >&6
5949 else
5950 while :; do
5951 cat >conftest.$ac_ext <<_ACEOF
5952 /* confdefs.h. */
5953 _ACEOF
5954 cat confdefs.h >>conftest.$ac_ext
5955 cat >>conftest.$ac_ext <<_ACEOF
5956 /* end confdefs.h. */
5957 #include <sys/types.h>
5958 /* Check that off_t can represent 2**63 - 1 correctly.
5959 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5960 since some C++ compilers masquerading as C compilers
5961 incorrectly reject 9223372036854775807. */
5962 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5963 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5964 && LARGE_OFF_T % 2147483647 == 1)
5965 ? 1 : -1];
5966 int
5967 main ()
5968 {
5969
5970 ;
5971 return 0;
5972 }
5973 _ACEOF
5974 rm -f conftest.$ac_objext
5975 if { (ac_try="$ac_compile"
5976 case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979 esac
5980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5981 $as_echo "$ac_try_echo") >&5
5982 (eval "$ac_compile") 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } && {
5989 test -z "$ac_c_werror_flag" ||
5990 test ! -s conftest.err
5991 } && test -s conftest.$ac_objext; then
5992 ac_cv_sys_file_offset_bits=no; break
5993 else
5994 $as_echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5996
5997
5998 fi
5999
6000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6001 cat >conftest.$ac_ext <<_ACEOF
6002 /* confdefs.h. */
6003 _ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h. */
6007 #define _FILE_OFFSET_BITS 64
6008 #include <sys/types.h>
6009 /* Check that off_t can represent 2**63 - 1 correctly.
6010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6011 since some C++ compilers masquerading as C compilers
6012 incorrectly reject 9223372036854775807. */
6013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6015 && LARGE_OFF_T % 2147483647 == 1)
6016 ? 1 : -1];
6017 int
6018 main ()
6019 {
6020
6021 ;
6022 return 0;
6023 }
6024 _ACEOF
6025 rm -f conftest.$ac_objext
6026 if { (ac_try="$ac_compile"
6027 case "(($ac_try" in
6028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029 *) ac_try_echo=$ac_try;;
6030 esac
6031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6032 $as_echo "$ac_try_echo") >&5
6033 (eval "$ac_compile") 2>conftest.er1
6034 ac_status=$?
6035 grep -v '^ *+' conftest.er1 >conftest.err
6036 rm -f conftest.er1
6037 cat conftest.err >&5
6038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } && {
6040 test -z "$ac_c_werror_flag" ||
6041 test ! -s conftest.err
6042 } && test -s conftest.$ac_objext; then
6043 ac_cv_sys_file_offset_bits=64; break
6044 else
6045 $as_echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6047
6048
6049 fi
6050
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052 ac_cv_sys_file_offset_bits=unknown
6053 break
6054 done
6055 fi
6056 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6057 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6058 case $ac_cv_sys_file_offset_bits in #(
6059 no | unknown) ;;
6060 *)
6061 cat >>confdefs.h <<_ACEOF
6062 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6063 _ACEOF
6064 ;;
6065 esac
6066 rm -rf conftest*
6067 if test $ac_cv_sys_file_offset_bits = unknown; then
6068 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6069 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6070 if test "${ac_cv_sys_large_files+set}" = set; then
6071 $as_echo_n "(cached) " >&6
6072 else
6073 while :; do
6074 cat >conftest.$ac_ext <<_ACEOF
6075 /* confdefs.h. */
6076 _ACEOF
6077 cat confdefs.h >>conftest.$ac_ext
6078 cat >>conftest.$ac_ext <<_ACEOF
6079 /* end confdefs.h. */
6080 #include <sys/types.h>
6081 /* Check that off_t can represent 2**63 - 1 correctly.
6082 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6083 since some C++ compilers masquerading as C compilers
6084 incorrectly reject 9223372036854775807. */
6085 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6086 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6087 && LARGE_OFF_T % 2147483647 == 1)
6088 ? 1 : -1];
6089 int
6090 main ()
6091 {
6092
6093 ;
6094 return 0;
6095 }
6096 _ACEOF
6097 rm -f conftest.$ac_objext
6098 if { (ac_try="$ac_compile"
6099 case "(($ac_try" in
6100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101 *) ac_try_echo=$ac_try;;
6102 esac
6103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6104 $as_echo "$ac_try_echo") >&5
6105 (eval "$ac_compile") 2>conftest.er1
6106 ac_status=$?
6107 grep -v '^ *+' conftest.er1 >conftest.err
6108 rm -f conftest.er1
6109 cat conftest.err >&5
6110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } && {
6112 test -z "$ac_c_werror_flag" ||
6113 test ! -s conftest.err
6114 } && test -s conftest.$ac_objext; then
6115 ac_cv_sys_large_files=no; break
6116 else
6117 $as_echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.$ac_ext >&5
6119
6120
6121 fi
6122
6123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124 cat >conftest.$ac_ext <<_ACEOF
6125 /* confdefs.h. */
6126 _ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6130 #define _LARGE_FILES 1
6131 #include <sys/types.h>
6132 /* Check that off_t can represent 2**63 - 1 correctly.
6133 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6134 since some C++ compilers masquerading as C compilers
6135 incorrectly reject 9223372036854775807. */
6136 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6137 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6138 && LARGE_OFF_T % 2147483647 == 1)
6139 ? 1 : -1];
6140 int
6141 main ()
6142 {
6143
6144 ;
6145 return 0;
6146 }
6147 _ACEOF
6148 rm -f conftest.$ac_objext
6149 if { (ac_try="$ac_compile"
6150 case "(($ac_try" in
6151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6152 *) ac_try_echo=$ac_try;;
6153 esac
6154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6155 $as_echo "$ac_try_echo") >&5
6156 (eval "$ac_compile") 2>conftest.er1
6157 ac_status=$?
6158 grep -v '^ *+' conftest.er1 >conftest.err
6159 rm -f conftest.er1
6160 cat conftest.err >&5
6161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } && {
6163 test -z "$ac_c_werror_flag" ||
6164 test ! -s conftest.err
6165 } && test -s conftest.$ac_objext; then
6166 ac_cv_sys_large_files=1; break
6167 else
6168 $as_echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6170
6171
6172 fi
6173
6174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175 ac_cv_sys_large_files=unknown
6176 break
6177 done
6178 fi
6179 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6180 $as_echo "$ac_cv_sys_large_files" >&6; }
6181 case $ac_cv_sys_large_files in #(
6182 no | unknown) ;;
6183 *)
6184 cat >>confdefs.h <<_ACEOF
6185 #define _LARGE_FILES $ac_cv_sys_large_files
6186 _ACEOF
6187 ;;
6188 esac
6189 rm -rf conftest*
6190 fi
6191 fi
6192
6193
6194
6195 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6196 ### be located in either /usr/lib64 or /usr/lib.
6197 ### In some rare cases, /usr/lib64 exists but does not contain the
6198 ### relevant files (bug#1287). Hence test for crtn.o.
6199 case "${canonical}" in
6200 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6201 if test -e /usr/lib64/crtn.o; then
6202
6203 cat >>confdefs.h <<\_ACEOF
6204 #define HAVE_LIB64_DIR 1
6205 _ACEOF
6206
6207 fi
6208 esac
6209
6210
6211
6212
6213 if test "${with_sound}" != "no"; then
6214 # Sound support for GNU/Linux and the free BSDs.
6215
6216
6217
6218 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6219 do
6220 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6222 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6223 $as_echo_n "checking for $ac_header... " >&6; }
6224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6225 $as_echo_n "(cached) " >&6
6226 fi
6227 ac_res=`eval 'as_val=${'$as_ac_Header'}
6228 $as_echo "$as_val"'`
6229 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6230 $as_echo "$ac_res" >&6; }
6231 else
6232 # Is the header compilable?
6233 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6234 $as_echo_n "checking $ac_header usability... " >&6; }
6235 cat >conftest.$ac_ext <<_ACEOF
6236 /* confdefs.h. */
6237 _ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6241 $ac_includes_default
6242 #include <$ac_header>
6243 _ACEOF
6244 rm -f conftest.$ac_objext
6245 if { (ac_try="$ac_compile"
6246 case "(($ac_try" in
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6249 esac
6250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6251 $as_echo "$ac_try_echo") >&5
6252 (eval "$ac_compile") 2>conftest.er1
6253 ac_status=$?
6254 grep -v '^ *+' conftest.er1 >conftest.err
6255 rm -f conftest.er1
6256 cat conftest.err >&5
6257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } && {
6259 test -z "$ac_c_werror_flag" ||
6260 test ! -s conftest.err
6261 } && test -s conftest.$ac_objext; then
6262 ac_header_compiler=yes
6263 else
6264 $as_echo "$as_me: failed program was:" >&5
6265 sed 's/^/| /' conftest.$ac_ext >&5
6266
6267 ac_header_compiler=no
6268 fi
6269
6270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6271 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6272 $as_echo "$ac_header_compiler" >&6; }
6273
6274 # Is the header present?
6275 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6276 $as_echo_n "checking $ac_header presence... " >&6; }
6277 cat >conftest.$ac_ext <<_ACEOF
6278 /* confdefs.h. */
6279 _ACEOF
6280 cat confdefs.h >>conftest.$ac_ext
6281 cat >>conftest.$ac_ext <<_ACEOF
6282 /* end confdefs.h. */
6283 #include <$ac_header>
6284 _ACEOF
6285 if { (ac_try="$ac_cpp conftest.$ac_ext"
6286 case "(($ac_try" in
6287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6288 *) ac_try_echo=$ac_try;;
6289 esac
6290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6291 $as_echo "$ac_try_echo") >&5
6292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6293 ac_status=$?
6294 grep -v '^ *+' conftest.er1 >conftest.err
6295 rm -f conftest.er1
6296 cat conftest.err >&5
6297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } >/dev/null && {
6299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6300 test ! -s conftest.err
6301 }; then
6302 ac_header_preproc=yes
6303 else
6304 $as_echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6306
6307 ac_header_preproc=no
6308 fi
6309
6310 rm -f conftest.err conftest.$ac_ext
6311 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6312 $as_echo "$ac_header_preproc" >&6; }
6313
6314 # So? What about this header?
6315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6316 yes:no: )
6317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6318 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6320 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6321 ac_header_preproc=yes
6322 ;;
6323 no:yes:* )
6324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6325 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6327 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6329 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6331 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6333 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6335 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6336
6337 ;;
6338 esac
6339 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6340 $as_echo_n "checking for $ac_header... " >&6; }
6341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6342 $as_echo_n "(cached) " >&6
6343 else
6344 eval "$as_ac_Header=\$ac_header_preproc"
6345 fi
6346 ac_res=`eval 'as_val=${'$as_ac_Header'}
6347 $as_echo "$as_val"'`
6348 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6349 $as_echo "$ac_res" >&6; }
6350
6351 fi
6352 if test `eval 'as_val=${'$as_ac_Header'}
6353 $as_echo "$as_val"'` = yes; then
6354 cat >>confdefs.h <<_ACEOF
6355 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6356 _ACEOF
6357
6358 fi
6359
6360 done
6361
6362 # Emulation library used on NetBSD.
6363 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6364 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6365 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6366 $as_echo_n "(cached) " >&6
6367 else
6368 ac_check_lib_save_LIBS=$LIBS
6369 LIBS="-lossaudio $LIBS"
6370 cat >conftest.$ac_ext <<_ACEOF
6371 /* confdefs.h. */
6372 _ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6376
6377 /* Override any GCC internal prototype to avoid an error.
6378 Use char because int might match the return type of a GCC
6379 builtin and then its argument prototype would still apply. */
6380 #ifdef __cplusplus
6381 extern "C"
6382 #endif
6383 char _oss_ioctl ();
6384 int
6385 main ()
6386 {
6387 return _oss_ioctl ();
6388 ;
6389 return 0;
6390 }
6391 _ACEOF
6392 rm -f conftest.$ac_objext conftest$ac_exeext
6393 if { (ac_try="$ac_link"
6394 case "(($ac_try" in
6395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6396 *) ac_try_echo=$ac_try;;
6397 esac
6398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6399 $as_echo "$ac_try_echo") >&5
6400 (eval "$ac_link") 2>conftest.er1
6401 ac_status=$?
6402 grep -v '^ *+' conftest.er1 >conftest.err
6403 rm -f conftest.er1
6404 cat conftest.err >&5
6405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } && {
6407 test -z "$ac_c_werror_flag" ||
6408 test ! -s conftest.err
6409 } && test -s conftest$ac_exeext && {
6410 test "$cross_compiling" = yes ||
6411 $as_test_x conftest$ac_exeext
6412 }; then
6413 ac_cv_lib_ossaudio__oss_ioctl=yes
6414 else
6415 $as_echo "$as_me: failed program was:" >&5
6416 sed 's/^/| /' conftest.$ac_ext >&5
6417
6418 ac_cv_lib_ossaudio__oss_ioctl=no
6419 fi
6420
6421 rm -rf conftest.dSYM
6422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6423 conftest$ac_exeext conftest.$ac_ext
6424 LIBS=$ac_check_lib_save_LIBS
6425 fi
6426 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6427 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6428 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6429 LIBSOUND=-lossaudio
6430 else
6431 LIBSOUND=
6432 fi
6433
6434
6435
6436 ALSA_REQUIRED=1.0.0
6437 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6438
6439 succeeded=no
6440
6441 # Extract the first word of "pkg-config", so it can be a program name with args.
6442 set dummy pkg-config; ac_word=$2
6443 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6446 $as_echo_n "(cached) " >&6
6447 else
6448 case $PKG_CONFIG in
6449 [\\/]* | ?:[\\/]*)
6450 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6451 ;;
6452 *)
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6455 do
6456 IFS=$as_save_IFS
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 break 2
6463 fi
6464 done
6465 done
6466 IFS=$as_save_IFS
6467
6468 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6469 ;;
6470 esac
6471 fi
6472 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6473 if test -n "$PKG_CONFIG"; then
6474 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6475 $as_echo "$PKG_CONFIG" >&6; }
6476 else
6477 { $as_echo "$as_me:$LINENO: result: no" >&5
6478 $as_echo "no" >&6; }
6479 fi
6480
6481
6482
6483 if test "$PKG_CONFIG" = "no" ; then
6484 HAVE_ALSA=no
6485 else
6486 PKG_CONFIG_MIN_VERSION=0.9.0
6487 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6488 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6489 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6490
6491 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6492 { $as_echo "$as_me:$LINENO: result: yes" >&5
6493 $as_echo "yes" >&6; }
6494 succeeded=yes
6495
6496 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6497 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6498 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6499 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6500 $as_echo "$ALSA_CFLAGS" >&6; }
6501
6502 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6503 $as_echo_n "checking ALSA_LIBS... " >&6; }
6504 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6505 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6506 $as_echo "$ALSA_LIBS" >&6; }
6507 else
6508 { $as_echo "$as_me:$LINENO: result: no" >&5
6509 $as_echo "no" >&6; }
6510 ALSA_CFLAGS=""
6511 ALSA_LIBS=""
6512 ## If we have a custom action on failure, don't print errors, but
6513 ## do set a variable so people can do so.
6514 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6515
6516 fi
6517
6518
6519
6520 else
6521 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6522 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6523 fi
6524 fi
6525
6526 if test $succeeded = yes; then
6527 HAVE_ALSA=yes
6528 else
6529 HAVE_ALSA=no
6530 fi
6531
6532 if test $HAVE_ALSA = yes; then
6533 SAVE_CFLAGS="$CFLAGS"
6534 SAVE_LDFLAGS="$LDFLAGS"
6535 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6536 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6537 cat >conftest.$ac_ext <<_ACEOF
6538 /* confdefs.h. */
6539 _ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h. */
6543 #include <asoundlib.h>
6544 int
6545 main ()
6546 {
6547 snd_lib_error_set_handler (0);
6548 ;
6549 return 0;
6550 }
6551 _ACEOF
6552 rm -f conftest.$ac_objext
6553 if { (ac_try="$ac_compile"
6554 case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6557 esac
6558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6559 $as_echo "$ac_try_echo") >&5
6560 (eval "$ac_compile") 2>conftest.er1
6561 ac_status=$?
6562 grep -v '^ *+' conftest.er1 >conftest.err
6563 rm -f conftest.er1
6564 cat conftest.err >&5
6565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } && {
6567 test -z "$ac_c_werror_flag" ||
6568 test ! -s conftest.err
6569 } && test -s conftest.$ac_objext; then
6570 emacs_alsa_normal=yes
6571 else
6572 $as_echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6574
6575 emacs_alsa_normal=no
6576 fi
6577
6578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579 if test "$emacs_alsa_normal" != yes; then
6580 cat >conftest.$ac_ext <<_ACEOF
6581 /* confdefs.h. */
6582 _ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 #include <alsa/asoundlib.h>
6587 int
6588 main ()
6589 {
6590 snd_lib_error_set_handler (0);
6591 ;
6592 return 0;
6593 }
6594 _ACEOF
6595 rm -f conftest.$ac_objext
6596 if { (ac_try="$ac_compile"
6597 case "(($ac_try" in
6598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6599 *) ac_try_echo=$ac_try;;
6600 esac
6601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6602 $as_echo "$ac_try_echo") >&5
6603 (eval "$ac_compile") 2>conftest.er1
6604 ac_status=$?
6605 grep -v '^ *+' conftest.er1 >conftest.err
6606 rm -f conftest.er1
6607 cat conftest.err >&5
6608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } && {
6610 test -z "$ac_c_werror_flag" ||
6611 test ! -s conftest.err
6612 } && test -s conftest.$ac_objext; then
6613 emacs_alsa_subdir=yes
6614 else
6615 $as_echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6617
6618 emacs_alsa_subdir=no
6619 fi
6620
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622 if test "$emacs_alsa_subdir" != yes; then
6623 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6624 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6625 { (exit 1); exit 1; }; }
6626 fi
6627 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6628 fi
6629
6630 CFLAGS="$SAVE_CFLAGS"
6631 LDFLAGS="$SAVE_LDFLAGS"
6632 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6633 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6634
6635 cat >>confdefs.h <<\_ACEOF
6636 #define HAVE_ALSA 1
6637 _ACEOF
6638
6639 fi
6640
6641 fi
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6669 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6670 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6671 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6672 sys/utsname.h pwd.h
6673 do
6674 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6676 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6677 $as_echo_n "checking for $ac_header... " >&6; }
6678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6679 $as_echo_n "(cached) " >&6
6680 fi
6681 ac_res=`eval 'as_val=${'$as_ac_Header'}
6682 $as_echo "$as_val"'`
6683 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6684 $as_echo "$ac_res" >&6; }
6685 else
6686 # Is the header compilable?
6687 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6688 $as_echo_n "checking $ac_header usability... " >&6; }
6689 cat >conftest.$ac_ext <<_ACEOF
6690 /* confdefs.h. */
6691 _ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6695 $ac_includes_default
6696 #include <$ac_header>
6697 _ACEOF
6698 rm -f conftest.$ac_objext
6699 if { (ac_try="$ac_compile"
6700 case "(($ac_try" in
6701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6703 esac
6704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6705 $as_echo "$ac_try_echo") >&5
6706 (eval "$ac_compile") 2>conftest.er1
6707 ac_status=$?
6708 grep -v '^ *+' conftest.er1 >conftest.err
6709 rm -f conftest.er1
6710 cat conftest.err >&5
6711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } && {
6713 test -z "$ac_c_werror_flag" ||
6714 test ! -s conftest.err
6715 } && test -s conftest.$ac_objext; then
6716 ac_header_compiler=yes
6717 else
6718 $as_echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.$ac_ext >&5
6720
6721 ac_header_compiler=no
6722 fi
6723
6724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6725 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6726 $as_echo "$ac_header_compiler" >&6; }
6727
6728 # Is the header present?
6729 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6730 $as_echo_n "checking $ac_header presence... " >&6; }
6731 cat >conftest.$ac_ext <<_ACEOF
6732 /* confdefs.h. */
6733 _ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6737 #include <$ac_header>
6738 _ACEOF
6739 if { (ac_try="$ac_cpp conftest.$ac_ext"
6740 case "(($ac_try" in
6741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6742 *) ac_try_echo=$ac_try;;
6743 esac
6744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6745 $as_echo "$ac_try_echo") >&5
6746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6747 ac_status=$?
6748 grep -v '^ *+' conftest.er1 >conftest.err
6749 rm -f conftest.er1
6750 cat conftest.err >&5
6751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } >/dev/null && {
6753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6754 test ! -s conftest.err
6755 }; then
6756 ac_header_preproc=yes
6757 else
6758 $as_echo "$as_me: failed program was:" >&5
6759 sed 's/^/| /' conftest.$ac_ext >&5
6760
6761 ac_header_preproc=no
6762 fi
6763
6764 rm -f conftest.err conftest.$ac_ext
6765 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6766 $as_echo "$ac_header_preproc" >&6; }
6767
6768 # So? What about this header?
6769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6770 yes:no: )
6771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6772 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6774 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6775 ac_header_preproc=yes
6776 ;;
6777 no:yes:* )
6778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6779 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6781 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6783 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6785 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6787 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6789 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6790
6791 ;;
6792 esac
6793 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6794 $as_echo_n "checking for $ac_header... " >&6; }
6795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6796 $as_echo_n "(cached) " >&6
6797 else
6798 eval "$as_ac_Header=\$ac_header_preproc"
6799 fi
6800 ac_res=`eval 'as_val=${'$as_ac_Header'}
6801 $as_echo "$as_val"'`
6802 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6803 $as_echo "$ac_res" >&6; }
6804
6805 fi
6806 if test `eval 'as_val=${'$as_ac_Header'}
6807 $as_echo "$as_val"'` = yes; then
6808 cat >>confdefs.h <<_ACEOF
6809 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6810 _ACEOF
6811
6812 fi
6813
6814 done
6815
6816
6817 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6818 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6819 cat >conftest.$ac_ext <<_ACEOF
6820 /* confdefs.h. */
6821 _ACEOF
6822 cat confdefs.h >>conftest.$ac_ext
6823 cat >>conftest.$ac_ext <<_ACEOF
6824 /* end confdefs.h. */
6825 #include <sys/personality.h>
6826 int
6827 main ()
6828 {
6829 personality (PER_LINUX32)
6830 ;
6831 return 0;
6832 }
6833 _ACEOF
6834 rm -f conftest.$ac_objext
6835 if { (ac_try="$ac_compile"
6836 case "(($ac_try" in
6837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6838 *) ac_try_echo=$ac_try;;
6839 esac
6840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6841 $as_echo "$ac_try_echo") >&5
6842 (eval "$ac_compile") 2>conftest.er1
6843 ac_status=$?
6844 grep -v '^ *+' conftest.er1 >conftest.err
6845 rm -f conftest.er1
6846 cat conftest.err >&5
6847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } && {
6849 test -z "$ac_c_werror_flag" ||
6850 test ! -s conftest.err
6851 } && test -s conftest.$ac_objext; then
6852 emacs_cv_personality_linux32=yes
6853 else
6854 $as_echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6856
6857 emacs_cv_personality_linux32=no
6858 fi
6859
6860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6861 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6862 $as_echo "$emacs_cv_personality_linux32" >&6; }
6863
6864 if test $emacs_cv_personality_linux32 = yes; then
6865
6866 cat >>confdefs.h <<\_ACEOF
6867 #define HAVE_PERSONALITY_LINUX32 1
6868 _ACEOF
6869
6870 fi
6871
6872
6873 for ac_header in term.h
6874 do
6875 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6876 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6877 $as_echo_n "checking for $ac_header... " >&6; }
6878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6879 $as_echo_n "(cached) " >&6
6880 else
6881 cat >conftest.$ac_ext <<_ACEOF
6882 /* confdefs.h. */
6883 _ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6887 #include <$ac_header>
6888 _ACEOF
6889 if { (ac_try="$ac_cpp conftest.$ac_ext"
6890 case "(($ac_try" in
6891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892 *) ac_try_echo=$ac_try;;
6893 esac
6894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6895 $as_echo "$ac_try_echo") >&5
6896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6897 ac_status=$?
6898 grep -v '^ *+' conftest.er1 >conftest.err
6899 rm -f conftest.er1
6900 cat conftest.err >&5
6901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } >/dev/null && {
6903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6904 test ! -s conftest.err
6905 }; then
6906 eval "$as_ac_Header=yes"
6907 else
6908 $as_echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6910
6911 eval "$as_ac_Header=no"
6912 fi
6913
6914 rm -f conftest.err conftest.$ac_ext
6915 fi
6916 ac_res=`eval 'as_val=${'$as_ac_Header'}
6917 $as_echo "$as_val"'`
6918 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6919 $as_echo "$ac_res" >&6; }
6920 if test `eval 'as_val=${'$as_ac_Header'}
6921 $as_echo "$as_val"'` = yes; then
6922 cat >>confdefs.h <<_ACEOF
6923 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6924 _ACEOF
6925
6926 fi
6927
6928 done
6929
6930 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6931 $as_echo_n "checking for ANSI C header files... " >&6; }
6932 if test "${ac_cv_header_stdc+set}" = set; then
6933 $as_echo_n "(cached) " >&6
6934 else
6935 cat >conftest.$ac_ext <<_ACEOF
6936 /* confdefs.h. */
6937 _ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h. */
6941 #include <stdlib.h>
6942 #include <stdarg.h>
6943 #include <string.h>
6944 #include <float.h>
6945
6946 int
6947 main ()
6948 {
6949
6950 ;
6951 return 0;
6952 }
6953 _ACEOF
6954 rm -f conftest.$ac_objext
6955 if { (ac_try="$ac_compile"
6956 case "(($ac_try" in
6957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6958 *) ac_try_echo=$ac_try;;
6959 esac
6960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6961 $as_echo "$ac_try_echo") >&5
6962 (eval "$ac_compile") 2>conftest.er1
6963 ac_status=$?
6964 grep -v '^ *+' conftest.er1 >conftest.err
6965 rm -f conftest.er1
6966 cat conftest.err >&5
6967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } && {
6969 test -z "$ac_c_werror_flag" ||
6970 test ! -s conftest.err
6971 } && test -s conftest.$ac_objext; then
6972 ac_cv_header_stdc=yes
6973 else
6974 $as_echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6976
6977 ac_cv_header_stdc=no
6978 fi
6979
6980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6981
6982 if test $ac_cv_header_stdc = yes; then
6983 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6984 cat >conftest.$ac_ext <<_ACEOF
6985 /* confdefs.h. */
6986 _ACEOF
6987 cat confdefs.h >>conftest.$ac_ext
6988 cat >>conftest.$ac_ext <<_ACEOF
6989 /* end confdefs.h. */
6990 #include <string.h>
6991
6992 _ACEOF
6993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6994 $EGREP "memchr" >/dev/null 2>&1; then
6995 :
6996 else
6997 ac_cv_header_stdc=no
6998 fi
6999 rm -f conftest*
7000
7001 fi
7002
7003 if test $ac_cv_header_stdc = yes; then
7004 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7005 cat >conftest.$ac_ext <<_ACEOF
7006 /* confdefs.h. */
7007 _ACEOF
7008 cat confdefs.h >>conftest.$ac_ext
7009 cat >>conftest.$ac_ext <<_ACEOF
7010 /* end confdefs.h. */
7011 #include <stdlib.h>
7012
7013 _ACEOF
7014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7015 $EGREP "free" >/dev/null 2>&1; then
7016 :
7017 else
7018 ac_cv_header_stdc=no
7019 fi
7020 rm -f conftest*
7021
7022 fi
7023
7024 if test $ac_cv_header_stdc = yes; then
7025 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7026 if test "$cross_compiling" = yes; then
7027 :
7028 else
7029 cat >conftest.$ac_ext <<_ACEOF
7030 /* confdefs.h. */
7031 _ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7035 #include <ctype.h>
7036 #include <stdlib.h>
7037 #if ((' ' & 0x0FF) == 0x020)
7038 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7039 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7040 #else
7041 # define ISLOWER(c) \
7042 (('a' <= (c) && (c) <= 'i') \
7043 || ('j' <= (c) && (c) <= 'r') \
7044 || ('s' <= (c) && (c) <= 'z'))
7045 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7046 #endif
7047
7048 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7049 int
7050 main ()
7051 {
7052 int i;
7053 for (i = 0; i < 256; i++)
7054 if (XOR (islower (i), ISLOWER (i))
7055 || toupper (i) != TOUPPER (i))
7056 return 2;
7057 return 0;
7058 }
7059 _ACEOF
7060 rm -f conftest$ac_exeext
7061 if { (ac_try="$ac_link"
7062 case "(($ac_try" in
7063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7064 *) ac_try_echo=$ac_try;;
7065 esac
7066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7067 $as_echo "$ac_try_echo") >&5
7068 (eval "$ac_link") 2>&5
7069 ac_status=$?
7070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7072 { (case "(($ac_try" in
7073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7074 *) ac_try_echo=$ac_try;;
7075 esac
7076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7077 $as_echo "$ac_try_echo") >&5
7078 (eval "$ac_try") 2>&5
7079 ac_status=$?
7080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; }; then
7082 :
7083 else
7084 $as_echo "$as_me: program exited with status $ac_status" >&5
7085 $as_echo "$as_me: failed program was:" >&5
7086 sed 's/^/| /' conftest.$ac_ext >&5
7087
7088 ( exit $ac_status )
7089 ac_cv_header_stdc=no
7090 fi
7091 rm -rf conftest.dSYM
7092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7093 fi
7094
7095
7096 fi
7097 fi
7098 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7099 $as_echo "$ac_cv_header_stdc" >&6; }
7100 if test $ac_cv_header_stdc = yes; then
7101
7102 cat >>confdefs.h <<\_ACEOF
7103 #define STDC_HEADERS 1
7104 _ACEOF
7105
7106 fi
7107
7108 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7109 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7110 if test "${ac_cv_header_time+set}" = set; then
7111 $as_echo_n "(cached) " >&6
7112 else
7113 cat >conftest.$ac_ext <<_ACEOF
7114 /* confdefs.h. */
7115 _ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7119 #include <sys/types.h>
7120 #include <sys/time.h>
7121 #include <time.h>
7122
7123 int
7124 main ()
7125 {
7126 if ((struct tm *) 0)
7127 return 0;
7128 ;
7129 return 0;
7130 }
7131 _ACEOF
7132 rm -f conftest.$ac_objext
7133 if { (ac_try="$ac_compile"
7134 case "(($ac_try" in
7135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7136 *) ac_try_echo=$ac_try;;
7137 esac
7138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7139 $as_echo "$ac_try_echo") >&5
7140 (eval "$ac_compile") 2>conftest.er1
7141 ac_status=$?
7142 grep -v '^ *+' conftest.er1 >conftest.err
7143 rm -f conftest.er1
7144 cat conftest.err >&5
7145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } && {
7147 test -z "$ac_c_werror_flag" ||
7148 test ! -s conftest.err
7149 } && test -s conftest.$ac_objext; then
7150 ac_cv_header_time=yes
7151 else
7152 $as_echo "$as_me: failed program was:" >&5
7153 sed 's/^/| /' conftest.$ac_ext >&5
7154
7155 ac_cv_header_time=no
7156 fi
7157
7158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7159 fi
7160 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7161 $as_echo "$ac_cv_header_time" >&6; }
7162 if test $ac_cv_header_time = yes; then
7163
7164 cat >>confdefs.h <<\_ACEOF
7165 #define TIME_WITH_SYS_TIME 1
7166 _ACEOF
7167
7168 fi
7169
7170 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7171 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7172 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7173 $as_echo_n "(cached) " >&6
7174 else
7175 cat >conftest.$ac_ext <<_ACEOF
7176 /* confdefs.h. */
7177 _ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7181 $ac_includes_default
7182 int
7183 main ()
7184 {
7185 #ifndef sys_siglist
7186 (void) sys_siglist;
7187 #endif
7188
7189 ;
7190 return 0;
7191 }
7192 _ACEOF
7193 rm -f conftest.$ac_objext
7194 if { (ac_try="$ac_compile"
7195 case "(($ac_try" in
7196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7197 *) ac_try_echo=$ac_try;;
7198 esac
7199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7200 $as_echo "$ac_try_echo") >&5
7201 (eval "$ac_compile") 2>conftest.er1
7202 ac_status=$?
7203 grep -v '^ *+' conftest.er1 >conftest.err
7204 rm -f conftest.er1
7205 cat conftest.err >&5
7206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); } && {
7208 test -z "$ac_c_werror_flag" ||
7209 test ! -s conftest.err
7210 } && test -s conftest.$ac_objext; then
7211 ac_cv_have_decl_sys_siglist=yes
7212 else
7213 $as_echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.$ac_ext >&5
7215
7216 ac_cv_have_decl_sys_siglist=no
7217 fi
7218
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7220 fi
7221 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7222 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7223 if test $ac_cv_have_decl_sys_siglist = yes; then
7224
7225 cat >>confdefs.h <<_ACEOF
7226 #define HAVE_DECL_SYS_SIGLIST 1
7227 _ACEOF
7228
7229
7230 else
7231 cat >>confdefs.h <<_ACEOF
7232 #define HAVE_DECL_SYS_SIGLIST 0
7233 _ACEOF
7234
7235
7236 fi
7237
7238
7239 if test $ac_cv_have_decl_sys_siglist != yes; then
7240 # For Tru64, at least:
7241 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7242 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7243 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7244 $as_echo_n "(cached) " >&6
7245 else
7246 cat >conftest.$ac_ext <<_ACEOF
7247 /* confdefs.h. */
7248 _ACEOF
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7252 $ac_includes_default
7253 int
7254 main ()
7255 {
7256 #ifndef __sys_siglist
7257 (void) __sys_siglist;
7258 #endif
7259
7260 ;
7261 return 0;
7262 }
7263 _ACEOF
7264 rm -f conftest.$ac_objext
7265 if { (ac_try="$ac_compile"
7266 case "(($ac_try" in
7267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7268 *) ac_try_echo=$ac_try;;
7269 esac
7270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7271 $as_echo "$ac_try_echo") >&5
7272 (eval "$ac_compile") 2>conftest.er1
7273 ac_status=$?
7274 grep -v '^ *+' conftest.er1 >conftest.err
7275 rm -f conftest.er1
7276 cat conftest.err >&5
7277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } && {
7279 test -z "$ac_c_werror_flag" ||
7280 test ! -s conftest.err
7281 } && test -s conftest.$ac_objext; then
7282 ac_cv_have_decl___sys_siglist=yes
7283 else
7284 $as_echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7286
7287 ac_cv_have_decl___sys_siglist=no
7288 fi
7289
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7291 fi
7292 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7293 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7294 if test $ac_cv_have_decl___sys_siglist = yes; then
7295
7296 cat >>confdefs.h <<_ACEOF
7297 #define HAVE_DECL___SYS_SIGLIST 1
7298 _ACEOF
7299
7300
7301 else
7302 cat >>confdefs.h <<_ACEOF
7303 #define HAVE_DECL___SYS_SIGLIST 0
7304 _ACEOF
7305
7306
7307 fi
7308
7309
7310 if test $ac_cv_have_decl___sys_siglist = yes; then
7311
7312 cat >>confdefs.h <<\_ACEOF
7313 #define sys_siglist __sys_siglist
7314 _ACEOF
7315
7316 fi
7317 fi
7318 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7319 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7320 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7321 $as_echo_n "(cached) " >&6
7322 else
7323 cat >conftest.$ac_ext <<_ACEOF
7324 /* confdefs.h. */
7325 _ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h. */
7329 #include <sys/types.h>
7330 #include <sys/wait.h>
7331 #ifndef WEXITSTATUS
7332 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7333 #endif
7334 #ifndef WIFEXITED
7335 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7336 #endif
7337
7338 int
7339 main ()
7340 {
7341 int s;
7342 wait (&s);
7343 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7344 ;
7345 return 0;
7346 }
7347 _ACEOF
7348 rm -f conftest.$ac_objext
7349 if { (ac_try="$ac_compile"
7350 case "(($ac_try" in
7351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7353 esac
7354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7355 $as_echo "$ac_try_echo") >&5
7356 (eval "$ac_compile") 2>conftest.er1
7357 ac_status=$?
7358 grep -v '^ *+' conftest.er1 >conftest.err
7359 rm -f conftest.er1
7360 cat conftest.err >&5
7361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } && {
7363 test -z "$ac_c_werror_flag" ||
7364 test ! -s conftest.err
7365 } && test -s conftest.$ac_objext; then
7366 ac_cv_header_sys_wait_h=yes
7367 else
7368 $as_echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7370
7371 ac_cv_header_sys_wait_h=no
7372 fi
7373
7374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375 fi
7376 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7377 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7378 if test $ac_cv_header_sys_wait_h = yes; then
7379
7380 cat >>confdefs.h <<\_ACEOF
7381 #define HAVE_SYS_WAIT_H 1
7382 _ACEOF
7383
7384 fi
7385
7386
7387 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7388 $as_echo_n "checking for struct utimbuf... " >&6; }
7389 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7390 $as_echo_n "(cached) " >&6
7391 else
7392 cat >conftest.$ac_ext <<_ACEOF
7393 /* confdefs.h. */
7394 _ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7398 #ifdef TIME_WITH_SYS_TIME
7399 #include <sys/time.h>
7400 #include <time.h>
7401 #else
7402 #ifdef HAVE_SYS_TIME_H
7403 #include <sys/time.h>
7404 #else
7405 #include <time.h>
7406 #endif
7407 #endif
7408 #ifdef HAVE_UTIME_H
7409 #include <utime.h>
7410 #endif
7411 int
7412 main ()
7413 {
7414 static struct utimbuf x; x.actime = x.modtime;
7415 ;
7416 return 0;
7417 }
7418 _ACEOF
7419 rm -f conftest.$ac_objext
7420 if { (ac_try="$ac_compile"
7421 case "(($ac_try" in
7422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7423 *) ac_try_echo=$ac_try;;
7424 esac
7425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7426 $as_echo "$ac_try_echo") >&5
7427 (eval "$ac_compile") 2>conftest.er1
7428 ac_status=$?
7429 grep -v '^ *+' conftest.er1 >conftest.err
7430 rm -f conftest.er1
7431 cat conftest.err >&5
7432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } && {
7434 test -z "$ac_c_werror_flag" ||
7435 test ! -s conftest.err
7436 } && test -s conftest.$ac_objext; then
7437 emacs_cv_struct_utimbuf=yes
7438 else
7439 $as_echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.$ac_ext >&5
7441
7442 emacs_cv_struct_utimbuf=no
7443 fi
7444
7445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7446 fi
7447 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7448 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7449 if test $emacs_cv_struct_utimbuf = yes; then
7450
7451 cat >>confdefs.h <<\_ACEOF
7452 #define HAVE_STRUCT_UTIMBUF 1
7453 _ACEOF
7454
7455 fi
7456
7457 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7458 $as_echo_n "checking return type of signal handlers... " >&6; }
7459 if test "${ac_cv_type_signal+set}" = set; then
7460 $as_echo_n "(cached) " >&6
7461 else
7462 cat >conftest.$ac_ext <<_ACEOF
7463 /* confdefs.h. */
7464 _ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7468 #include <sys/types.h>
7469 #include <signal.h>
7470
7471 int
7472 main ()
7473 {
7474 return *(signal (0, 0)) (0) == 1;
7475 ;
7476 return 0;
7477 }
7478 _ACEOF
7479 rm -f conftest.$ac_objext
7480 if { (ac_try="$ac_compile"
7481 case "(($ac_try" in
7482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7483 *) ac_try_echo=$ac_try;;
7484 esac
7485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7486 $as_echo "$ac_try_echo") >&5
7487 (eval "$ac_compile") 2>conftest.er1
7488 ac_status=$?
7489 grep -v '^ *+' conftest.er1 >conftest.err
7490 rm -f conftest.er1
7491 cat conftest.err >&5
7492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } && {
7494 test -z "$ac_c_werror_flag" ||
7495 test ! -s conftest.err
7496 } && test -s conftest.$ac_objext; then
7497 ac_cv_type_signal=int
7498 else
7499 $as_echo "$as_me: failed program was:" >&5
7500 sed 's/^/| /' conftest.$ac_ext >&5
7501
7502 ac_cv_type_signal=void
7503 fi
7504
7505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7506 fi
7507 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7508 $as_echo "$ac_cv_type_signal" >&6; }
7509
7510 cat >>confdefs.h <<_ACEOF
7511 #define RETSIGTYPE $ac_cv_type_signal
7512 _ACEOF
7513
7514
7515
7516 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7517 $as_echo_n "checking for speed_t... " >&6; }
7518 if test "${emacs_cv_speed_t+set}" = set; then
7519 $as_echo_n "(cached) " >&6
7520 else
7521 cat >conftest.$ac_ext <<_ACEOF
7522 /* confdefs.h. */
7523 _ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 #include <termios.h>
7528 int
7529 main ()
7530 {
7531 speed_t x = 1;
7532 ;
7533 return 0;
7534 }
7535 _ACEOF
7536 rm -f conftest.$ac_objext
7537 if { (ac_try="$ac_compile"
7538 case "(($ac_try" in
7539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540 *) ac_try_echo=$ac_try;;
7541 esac
7542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7543 $as_echo "$ac_try_echo") >&5
7544 (eval "$ac_compile") 2>conftest.er1
7545 ac_status=$?
7546 grep -v '^ *+' conftest.er1 >conftest.err
7547 rm -f conftest.er1
7548 cat conftest.err >&5
7549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } && {
7551 test -z "$ac_c_werror_flag" ||
7552 test ! -s conftest.err
7553 } && test -s conftest.$ac_objext; then
7554 emacs_cv_speed_t=yes
7555 else
7556 $as_echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7558
7559 emacs_cv_speed_t=no
7560 fi
7561
7562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563 fi
7564 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7565 $as_echo "$emacs_cv_speed_t" >&6; }
7566 if test $emacs_cv_speed_t = yes; then
7567
7568 cat >>confdefs.h <<\_ACEOF
7569 #define HAVE_SPEED_T 1
7570 _ACEOF
7571
7572 fi
7573
7574 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7575 $as_echo_n "checking for struct timeval... " >&6; }
7576 if test "${emacs_cv_struct_timeval+set}" = set; then
7577 $as_echo_n "(cached) " >&6
7578 else
7579 cat >conftest.$ac_ext <<_ACEOF
7580 /* confdefs.h. */
7581 _ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7585 #ifdef TIME_WITH_SYS_TIME
7586 #include <sys/time.h>
7587 #include <time.h>
7588 #else
7589 #ifdef HAVE_SYS_TIME_H
7590 #include <sys/time.h>
7591 #else
7592 #include <time.h>
7593 #endif
7594 #endif
7595 int
7596 main ()
7597 {
7598 static struct timeval x; x.tv_sec = x.tv_usec;
7599 ;
7600 return 0;
7601 }
7602 _ACEOF
7603 rm -f conftest.$ac_objext
7604 if { (ac_try="$ac_compile"
7605 case "(($ac_try" in
7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7608 esac
7609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7610 $as_echo "$ac_try_echo") >&5
7611 (eval "$ac_compile") 2>conftest.er1
7612 ac_status=$?
7613 grep -v '^ *+' conftest.er1 >conftest.err
7614 rm -f conftest.er1
7615 cat conftest.err >&5
7616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } && {
7618 test -z "$ac_c_werror_flag" ||
7619 test ! -s conftest.err
7620 } && test -s conftest.$ac_objext; then
7621 emacs_cv_struct_timeval=yes
7622 else
7623 $as_echo "$as_me: failed program was:" >&5
7624 sed 's/^/| /' conftest.$ac_ext >&5
7625
7626 emacs_cv_struct_timeval=no
7627 fi
7628
7629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7630 fi
7631 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7632 $as_echo "$emacs_cv_struct_timeval" >&6; }
7633 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7634 if test $emacs_cv_struct_timeval = yes; then
7635
7636 cat >>confdefs.h <<\_ACEOF
7637 #define HAVE_TIMEVAL 1
7638 _ACEOF
7639
7640 fi
7641
7642 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7643 $as_echo_n "checking for struct exception... " >&6; }
7644 if test "${emacs_cv_struct_exception+set}" = set; then
7645 $as_echo_n "(cached) " >&6
7646 else
7647 cat >conftest.$ac_ext <<_ACEOF
7648 /* confdefs.h. */
7649 _ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7653 #include <math.h>
7654 int
7655 main ()
7656 {
7657 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7658 ;
7659 return 0;
7660 }
7661 _ACEOF
7662 rm -f conftest.$ac_objext
7663 if { (ac_try="$ac_compile"
7664 case "(($ac_try" in
7665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666 *) ac_try_echo=$ac_try;;
7667 esac
7668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7669 $as_echo "$ac_try_echo") >&5
7670 (eval "$ac_compile") 2>conftest.er1
7671 ac_status=$?
7672 grep -v '^ *+' conftest.er1 >conftest.err
7673 rm -f conftest.er1
7674 cat conftest.err >&5
7675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } && {
7677 test -z "$ac_c_werror_flag" ||
7678 test ! -s conftest.err
7679 } && test -s conftest.$ac_objext; then
7680 emacs_cv_struct_exception=yes
7681 else
7682 $as_echo "$as_me: failed program was:" >&5
7683 sed 's/^/| /' conftest.$ac_ext >&5
7684
7685 emacs_cv_struct_exception=no
7686 fi
7687
7688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7689 fi
7690 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7691 $as_echo "$emacs_cv_struct_exception" >&6; }
7692 HAVE_EXCEPTION=$emacs_cv_struct_exception
7693 if test $emacs_cv_struct_exception != yes; then
7694
7695 cat >>confdefs.h <<\_ACEOF
7696 #define NO_MATHERR 1
7697 _ACEOF
7698
7699 fi
7700
7701
7702 for ac_header in sys/socket.h
7703 do
7704 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7706 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7707 $as_echo_n "checking for $ac_header... " >&6; }
7708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7709 $as_echo_n "(cached) " >&6
7710 fi
7711 ac_res=`eval 'as_val=${'$as_ac_Header'}
7712 $as_echo "$as_val"'`
7713 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7714 $as_echo "$ac_res" >&6; }
7715 else
7716 # Is the header compilable?
7717 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7718 $as_echo_n "checking $ac_header usability... " >&6; }
7719 cat >conftest.$ac_ext <<_ACEOF
7720 /* confdefs.h. */
7721 _ACEOF
7722 cat confdefs.h >>conftest.$ac_ext
7723 cat >>conftest.$ac_ext <<_ACEOF
7724 /* end confdefs.h. */
7725 $ac_includes_default
7726 #include <$ac_header>
7727 _ACEOF
7728 rm -f conftest.$ac_objext
7729 if { (ac_try="$ac_compile"
7730 case "(($ac_try" in
7731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7733 esac
7734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7735 $as_echo "$ac_try_echo") >&5
7736 (eval "$ac_compile") 2>conftest.er1
7737 ac_status=$?
7738 grep -v '^ *+' conftest.er1 >conftest.err
7739 rm -f conftest.er1
7740 cat conftest.err >&5
7741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } && {
7743 test -z "$ac_c_werror_flag" ||
7744 test ! -s conftest.err
7745 } && test -s conftest.$ac_objext; then
7746 ac_header_compiler=yes
7747 else
7748 $as_echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7750
7751 ac_header_compiler=no
7752 fi
7753
7754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7755 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7756 $as_echo "$ac_header_compiler" >&6; }
7757
7758 # Is the header present?
7759 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7760 $as_echo_n "checking $ac_header presence... " >&6; }
7761 cat >conftest.$ac_ext <<_ACEOF
7762 /* confdefs.h. */
7763 _ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h. */
7767 #include <$ac_header>
7768 _ACEOF
7769 if { (ac_try="$ac_cpp conftest.$ac_ext"
7770 case "(($ac_try" in
7771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7772 *) ac_try_echo=$ac_try;;
7773 esac
7774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7775 $as_echo "$ac_try_echo") >&5
7776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7777 ac_status=$?
7778 grep -v '^ *+' conftest.er1 >conftest.err
7779 rm -f conftest.er1
7780 cat conftest.err >&5
7781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } >/dev/null && {
7783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7784 test ! -s conftest.err
7785 }; then
7786 ac_header_preproc=yes
7787 else
7788 $as_echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7790
7791 ac_header_preproc=no
7792 fi
7793
7794 rm -f conftest.err conftest.$ac_ext
7795 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7796 $as_echo "$ac_header_preproc" >&6; }
7797
7798 # So? What about this header?
7799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7800 yes:no: )
7801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7802 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7804 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7805 ac_header_preproc=yes
7806 ;;
7807 no:yes:* )
7808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7809 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7811 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7813 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7815 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7817 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7819 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7820
7821 ;;
7822 esac
7823 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7824 $as_echo_n "checking for $ac_header... " >&6; }
7825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7826 $as_echo_n "(cached) " >&6
7827 else
7828 eval "$as_ac_Header=\$ac_header_preproc"
7829 fi
7830 ac_res=`eval 'as_val=${'$as_ac_Header'}
7831 $as_echo "$as_val"'`
7832 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7833 $as_echo "$ac_res" >&6; }
7834
7835 fi
7836 if test `eval 'as_val=${'$as_ac_Header'}
7837 $as_echo "$as_val"'` = yes; then
7838 cat >>confdefs.h <<_ACEOF
7839 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7840 _ACEOF
7841
7842 fi
7843
7844 done
7845
7846
7847 for ac_header in net/if.h
7848 do
7849 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7850 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7851 $as_echo_n "checking for $ac_header... " >&6; }
7852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7853 $as_echo_n "(cached) " >&6
7854 else
7855 cat >conftest.$ac_ext <<_ACEOF
7856 /* confdefs.h. */
7857 _ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7861 $ac_includes_default
7862 #if HAVE_SYS_SOCKET_H
7863 #include <sys/socket.h>
7864 #endif
7865
7866 #include <$ac_header>
7867 _ACEOF
7868 rm -f conftest.$ac_objext
7869 if { (ac_try="$ac_compile"
7870 case "(($ac_try" in
7871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872 *) ac_try_echo=$ac_try;;
7873 esac
7874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7875 $as_echo "$ac_try_echo") >&5
7876 (eval "$ac_compile") 2>conftest.er1
7877 ac_status=$?
7878 grep -v '^ *+' conftest.er1 >conftest.err
7879 rm -f conftest.er1
7880 cat conftest.err >&5
7881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } && {
7883 test -z "$ac_c_werror_flag" ||
7884 test ! -s conftest.err
7885 } && test -s conftest.$ac_objext; then
7886 eval "$as_ac_Header=yes"
7887 else
7888 $as_echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7890
7891 eval "$as_ac_Header=no"
7892 fi
7893
7894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7895 fi
7896 ac_res=`eval 'as_val=${'$as_ac_Header'}
7897 $as_echo "$as_val"'`
7898 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7899 $as_echo "$ac_res" >&6; }
7900 if test `eval 'as_val=${'$as_ac_Header'}
7901 $as_echo "$as_val"'` = yes; then
7902 cat >>confdefs.h <<_ACEOF
7903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7904 _ACEOF
7905
7906 fi
7907
7908 done
7909
7910
7911 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7912 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7913 if test "${ac_cv_struct_tm+set}" = set; then
7914 $as_echo_n "(cached) " >&6
7915 else
7916 cat >conftest.$ac_ext <<_ACEOF
7917 /* confdefs.h. */
7918 _ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7922 #include <sys/types.h>
7923 #include <time.h>
7924
7925 int
7926 main ()
7927 {
7928 struct tm tm;
7929 int *p = &tm.tm_sec;
7930 return !p;
7931 ;
7932 return 0;
7933 }
7934 _ACEOF
7935 rm -f conftest.$ac_objext
7936 if { (ac_try="$ac_compile"
7937 case "(($ac_try" in
7938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939 *) ac_try_echo=$ac_try;;
7940 esac
7941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7942 $as_echo "$ac_try_echo") >&5
7943 (eval "$ac_compile") 2>conftest.er1
7944 ac_status=$?
7945 grep -v '^ *+' conftest.er1 >conftest.err
7946 rm -f conftest.er1
7947 cat conftest.err >&5
7948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } && {
7950 test -z "$ac_c_werror_flag" ||
7951 test ! -s conftest.err
7952 } && test -s conftest.$ac_objext; then
7953 ac_cv_struct_tm=time.h
7954 else
7955 $as_echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7957
7958 ac_cv_struct_tm=sys/time.h
7959 fi
7960
7961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962 fi
7963 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7964 $as_echo "$ac_cv_struct_tm" >&6; }
7965 if test $ac_cv_struct_tm = sys/time.h; then
7966
7967 cat >>confdefs.h <<\_ACEOF
7968 #define TM_IN_SYS_TIME 1
7969 _ACEOF
7970
7971 fi
7972
7973 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7974 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
7975 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7976 $as_echo_n "(cached) " >&6
7977 else
7978 cat >conftest.$ac_ext <<_ACEOF
7979 /* confdefs.h. */
7980 _ACEOF
7981 cat confdefs.h >>conftest.$ac_ext
7982 cat >>conftest.$ac_ext <<_ACEOF
7983 /* end confdefs.h. */
7984 #include <sys/types.h>
7985 #include <$ac_cv_struct_tm>
7986
7987
7988 int
7989 main ()
7990 {
7991 static struct tm ac_aggr;
7992 if (ac_aggr.tm_zone)
7993 return 0;
7994 ;
7995 return 0;
7996 }
7997 _ACEOF
7998 rm -f conftest.$ac_objext
7999 if { (ac_try="$ac_compile"
8000 case "(($ac_try" in
8001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8002 *) ac_try_echo=$ac_try;;
8003 esac
8004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8005 $as_echo "$ac_try_echo") >&5
8006 (eval "$ac_compile") 2>conftest.er1
8007 ac_status=$?
8008 grep -v '^ *+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
8011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } && {
8013 test -z "$ac_c_werror_flag" ||
8014 test ! -s conftest.err
8015 } && test -s conftest.$ac_objext; then
8016 ac_cv_member_struct_tm_tm_zone=yes
8017 else
8018 $as_echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8020
8021 cat >conftest.$ac_ext <<_ACEOF
8022 /* confdefs.h. */
8023 _ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8027 #include <sys/types.h>
8028 #include <$ac_cv_struct_tm>
8029
8030
8031 int
8032 main ()
8033 {
8034 static struct tm ac_aggr;
8035 if (sizeof ac_aggr.tm_zone)
8036 return 0;
8037 ;
8038 return 0;
8039 }
8040 _ACEOF
8041 rm -f conftest.$ac_objext
8042 if { (ac_try="$ac_compile"
8043 case "(($ac_try" in
8044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8045 *) ac_try_echo=$ac_try;;
8046 esac
8047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8048 $as_echo "$ac_try_echo") >&5
8049 (eval "$ac_compile") 2>conftest.er1
8050 ac_status=$?
8051 grep -v '^ *+' conftest.er1 >conftest.err
8052 rm -f conftest.er1
8053 cat conftest.err >&5
8054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } && {
8056 test -z "$ac_c_werror_flag" ||
8057 test ! -s conftest.err
8058 } && test -s conftest.$ac_objext; then
8059 ac_cv_member_struct_tm_tm_zone=yes
8060 else
8061 $as_echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.$ac_ext >&5
8063
8064 ac_cv_member_struct_tm_tm_zone=no
8065 fi
8066
8067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8068 fi
8069
8070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8071 fi
8072 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8073 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8074 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8075
8076 cat >>confdefs.h <<_ACEOF
8077 #define HAVE_STRUCT_TM_TM_ZONE 1
8078 _ACEOF
8079
8080
8081 fi
8082
8083 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8084
8085 cat >>confdefs.h <<\_ACEOF
8086 #define HAVE_TM_ZONE 1
8087 _ACEOF
8088
8089 else
8090 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8091 $as_echo_n "checking whether tzname is declared... " >&6; }
8092 if test "${ac_cv_have_decl_tzname+set}" = set; then
8093 $as_echo_n "(cached) " >&6
8094 else
8095 cat >conftest.$ac_ext <<_ACEOF
8096 /* confdefs.h. */
8097 _ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8101 #include <time.h>
8102
8103 int
8104 main ()
8105 {
8106 #ifndef tzname
8107 (void) tzname;
8108 #endif
8109
8110 ;
8111 return 0;
8112 }
8113 _ACEOF
8114 rm -f conftest.$ac_objext
8115 if { (ac_try="$ac_compile"
8116 case "(($ac_try" in
8117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118 *) ac_try_echo=$ac_try;;
8119 esac
8120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8121 $as_echo "$ac_try_echo") >&5
8122 (eval "$ac_compile") 2>conftest.er1
8123 ac_status=$?
8124 grep -v '^ *+' conftest.er1 >conftest.err
8125 rm -f conftest.er1
8126 cat conftest.err >&5
8127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } && {
8129 test -z "$ac_c_werror_flag" ||
8130 test ! -s conftest.err
8131 } && test -s conftest.$ac_objext; then
8132 ac_cv_have_decl_tzname=yes
8133 else
8134 $as_echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8136
8137 ac_cv_have_decl_tzname=no
8138 fi
8139
8140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8141 fi
8142 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8143 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8144 if test $ac_cv_have_decl_tzname = yes; then
8145
8146 cat >>confdefs.h <<_ACEOF
8147 #define HAVE_DECL_TZNAME 1
8148 _ACEOF
8149
8150
8151 else
8152 cat >>confdefs.h <<_ACEOF
8153 #define HAVE_DECL_TZNAME 0
8154 _ACEOF
8155
8156
8157 fi
8158
8159
8160 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8161 $as_echo_n "checking for tzname... " >&6; }
8162 if test "${ac_cv_var_tzname+set}" = set; then
8163 $as_echo_n "(cached) " >&6
8164 else
8165 cat >conftest.$ac_ext <<_ACEOF
8166 /* confdefs.h. */
8167 _ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8171 #include <time.h>
8172 #if !HAVE_DECL_TZNAME
8173 extern char *tzname[];
8174 #endif
8175
8176 int
8177 main ()
8178 {
8179 return tzname[0][0];
8180 ;
8181 return 0;
8182 }
8183 _ACEOF
8184 rm -f conftest.$ac_objext conftest$ac_exeext
8185 if { (ac_try="$ac_link"
8186 case "(($ac_try" in
8187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188 *) ac_try_echo=$ac_try;;
8189 esac
8190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8191 $as_echo "$ac_try_echo") >&5
8192 (eval "$ac_link") 2>conftest.er1
8193 ac_status=$?
8194 grep -v '^ *+' conftest.er1 >conftest.err
8195 rm -f conftest.er1
8196 cat conftest.err >&5
8197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } && {
8199 test -z "$ac_c_werror_flag" ||
8200 test ! -s conftest.err
8201 } && test -s conftest$ac_exeext && {
8202 test "$cross_compiling" = yes ||
8203 $as_test_x conftest$ac_exeext
8204 }; then
8205 ac_cv_var_tzname=yes
8206 else
8207 $as_echo "$as_me: failed program was:" >&5
8208 sed 's/^/| /' conftest.$ac_ext >&5
8209
8210 ac_cv_var_tzname=no
8211 fi
8212
8213 rm -rf conftest.dSYM
8214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8215 conftest$ac_exeext conftest.$ac_ext
8216 fi
8217 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8218 $as_echo "$ac_cv_var_tzname" >&6; }
8219 if test $ac_cv_var_tzname = yes; then
8220
8221 cat >>confdefs.h <<\_ACEOF
8222 #define HAVE_TZNAME 1
8223 _ACEOF
8224
8225 fi
8226 fi
8227
8228 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8229 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8230 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8231 $as_echo_n "(cached) " >&6
8232 else
8233 cat >conftest.$ac_ext <<_ACEOF
8234 /* confdefs.h. */
8235 _ACEOF
8236 cat confdefs.h >>conftest.$ac_ext
8237 cat >>conftest.$ac_ext <<_ACEOF
8238 /* end confdefs.h. */
8239 #include <time.h>
8240
8241 int
8242 main ()
8243 {
8244 static struct tm ac_aggr;
8245 if (ac_aggr.tm_gmtoff)
8246 return 0;
8247 ;
8248 return 0;
8249 }
8250 _ACEOF
8251 rm -f conftest.$ac_objext
8252 if { (ac_try="$ac_compile"
8253 case "(($ac_try" in
8254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255 *) ac_try_echo=$ac_try;;
8256 esac
8257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8258 $as_echo "$ac_try_echo") >&5
8259 (eval "$ac_compile") 2>conftest.er1
8260 ac_status=$?
8261 grep -v '^ *+' conftest.er1 >conftest.err
8262 rm -f conftest.er1
8263 cat conftest.err >&5
8264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } && {
8266 test -z "$ac_c_werror_flag" ||
8267 test ! -s conftest.err
8268 } && test -s conftest.$ac_objext; then
8269 ac_cv_member_struct_tm_tm_gmtoff=yes
8270 else
8271 $as_echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8273
8274 cat >conftest.$ac_ext <<_ACEOF
8275 /* confdefs.h. */
8276 _ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h. */
8280 #include <time.h>
8281
8282 int
8283 main ()
8284 {
8285 static struct tm ac_aggr;
8286 if (sizeof ac_aggr.tm_gmtoff)
8287 return 0;
8288 ;
8289 return 0;
8290 }
8291 _ACEOF
8292 rm -f conftest.$ac_objext
8293 if { (ac_try="$ac_compile"
8294 case "(($ac_try" in
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8297 esac
8298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8299 $as_echo "$ac_try_echo") >&5
8300 (eval "$ac_compile") 2>conftest.er1
8301 ac_status=$?
8302 grep -v '^ *+' conftest.er1 >conftest.err
8303 rm -f conftest.er1
8304 cat conftest.err >&5
8305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } && {
8307 test -z "$ac_c_werror_flag" ||
8308 test ! -s conftest.err
8309 } && test -s conftest.$ac_objext; then
8310 ac_cv_member_struct_tm_tm_gmtoff=yes
8311 else
8312 $as_echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8314
8315 ac_cv_member_struct_tm_tm_gmtoff=no
8316 fi
8317
8318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319 fi
8320
8321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8322 fi
8323 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8324 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8325 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8326
8327 cat >>confdefs.h <<\_ACEOF
8328 #define HAVE_TM_GMTOFF 1
8329 _ACEOF
8330
8331 fi
8332
8333 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8334 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8335 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8336 $as_echo_n "(cached) " >&6
8337 else
8338 cat >conftest.$ac_ext <<_ACEOF
8339 /* confdefs.h. */
8340 _ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8344 $ac_includes_default
8345 #if HAVE_SYS_SOCKET_H
8346 #include <sys/socket.h>
8347 #endif
8348 #if HAVE_NET_IF_H
8349 #include <net/if.h>
8350 #endif
8351
8352 int
8353 main ()
8354 {
8355 static struct ifreq ac_aggr;
8356 if (ac_aggr.ifr_flags)
8357 return 0;
8358 ;
8359 return 0;
8360 }
8361 _ACEOF
8362 rm -f conftest.$ac_objext
8363 if { (ac_try="$ac_compile"
8364 case "(($ac_try" in
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8367 esac
8368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8369 $as_echo "$ac_try_echo") >&5
8370 (eval "$ac_compile") 2>conftest.er1
8371 ac_status=$?
8372 grep -v '^ *+' conftest.er1 >conftest.err
8373 rm -f conftest.er1
8374 cat conftest.err >&5
8375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } && {
8377 test -z "$ac_c_werror_flag" ||
8378 test ! -s conftest.err
8379 } && test -s conftest.$ac_objext; then
8380 ac_cv_member_struct_ifreq_ifr_flags=yes
8381 else
8382 $as_echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8384
8385 cat >conftest.$ac_ext <<_ACEOF
8386 /* confdefs.h. */
8387 _ACEOF
8388 cat confdefs.h >>conftest.$ac_ext
8389 cat >>conftest.$ac_ext <<_ACEOF
8390 /* end confdefs.h. */
8391 $ac_includes_default
8392 #if HAVE_SYS_SOCKET_H
8393 #include <sys/socket.h>
8394 #endif
8395 #if HAVE_NET_IF_H
8396 #include <net/if.h>
8397 #endif
8398
8399 int
8400 main ()
8401 {
8402 static struct ifreq ac_aggr;
8403 if (sizeof ac_aggr.ifr_flags)
8404 return 0;
8405 ;
8406 return 0;
8407 }
8408 _ACEOF
8409 rm -f conftest.$ac_objext
8410 if { (ac_try="$ac_compile"
8411 case "(($ac_try" in
8412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413 *) ac_try_echo=$ac_try;;
8414 esac
8415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8416 $as_echo "$ac_try_echo") >&5
8417 (eval "$ac_compile") 2>conftest.er1
8418 ac_status=$?
8419 grep -v '^ *+' conftest.er1 >conftest.err
8420 rm -f conftest.er1
8421 cat conftest.err >&5
8422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); } && {
8424 test -z "$ac_c_werror_flag" ||
8425 test ! -s conftest.err
8426 } && test -s conftest.$ac_objext; then
8427 ac_cv_member_struct_ifreq_ifr_flags=yes
8428 else
8429 $as_echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8431
8432 ac_cv_member_struct_ifreq_ifr_flags=no
8433 fi
8434
8435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8436 fi
8437
8438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8439 fi
8440 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8441 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8442 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8443
8444 cat >>confdefs.h <<_ACEOF
8445 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8446 _ACEOF
8447
8448
8449 fi
8450 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8451 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8452 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8453 $as_echo_n "(cached) " >&6
8454 else
8455 cat >conftest.$ac_ext <<_ACEOF
8456 /* confdefs.h. */
8457 _ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h. */
8461 $ac_includes_default
8462 #if HAVE_SYS_SOCKET_H
8463 #include <sys/socket.h>
8464 #endif
8465 #if HAVE_NET_IF_H
8466 #include <net/if.h>
8467 #endif
8468
8469 int
8470 main ()
8471 {
8472 static struct ifreq ac_aggr;
8473 if (ac_aggr.ifr_hwaddr)
8474 return 0;
8475 ;
8476 return 0;
8477 }
8478 _ACEOF
8479 rm -f conftest.$ac_objext
8480 if { (ac_try="$ac_compile"
8481 case "(($ac_try" in
8482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8483 *) ac_try_echo=$ac_try;;
8484 esac
8485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8486 $as_echo "$ac_try_echo") >&5
8487 (eval "$ac_compile") 2>conftest.er1
8488 ac_status=$?
8489 grep -v '^ *+' conftest.er1 >conftest.err
8490 rm -f conftest.er1
8491 cat conftest.err >&5
8492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } && {
8494 test -z "$ac_c_werror_flag" ||
8495 test ! -s conftest.err
8496 } && test -s conftest.$ac_objext; then
8497 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8498 else
8499 $as_echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8501
8502 cat >conftest.$ac_ext <<_ACEOF
8503 /* confdefs.h. */
8504 _ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8508 $ac_includes_default
8509 #if HAVE_SYS_SOCKET_H
8510 #include <sys/socket.h>
8511 #endif
8512 #if HAVE_NET_IF_H
8513 #include <net/if.h>
8514 #endif
8515
8516 int
8517 main ()
8518 {
8519 static struct ifreq ac_aggr;
8520 if (sizeof ac_aggr.ifr_hwaddr)
8521 return 0;
8522 ;
8523 return 0;
8524 }
8525 _ACEOF
8526 rm -f conftest.$ac_objext
8527 if { (ac_try="$ac_compile"
8528 case "(($ac_try" in
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8531 esac
8532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8533 $as_echo "$ac_try_echo") >&5
8534 (eval "$ac_compile") 2>conftest.er1
8535 ac_status=$?
8536 grep -v '^ *+' conftest.er1 >conftest.err
8537 rm -f conftest.er1
8538 cat conftest.err >&5
8539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } && {
8541 test -z "$ac_c_werror_flag" ||
8542 test ! -s conftest.err
8543 } && test -s conftest.$ac_objext; then
8544 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8545 else
8546 $as_echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8548
8549 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8550 fi
8551
8552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8553 fi
8554
8555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8556 fi
8557 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8558 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8559 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8560
8561 cat >>confdefs.h <<_ACEOF
8562 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8563 _ACEOF
8564
8565
8566 fi
8567 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8568 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8569 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8570 $as_echo_n "(cached) " >&6
8571 else
8572 cat >conftest.$ac_ext <<_ACEOF
8573 /* confdefs.h. */
8574 _ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8578 $ac_includes_default
8579 #if HAVE_SYS_SOCKET_H
8580 #include <sys/socket.h>
8581 #endif
8582 #if HAVE_NET_IF_H
8583 #include <net/if.h>
8584 #endif
8585
8586 int
8587 main ()
8588 {
8589 static struct ifreq ac_aggr;
8590 if (ac_aggr.ifr_netmask)
8591 return 0;
8592 ;
8593 return 0;
8594 }
8595 _ACEOF
8596 rm -f conftest.$ac_objext
8597 if { (ac_try="$ac_compile"
8598 case "(($ac_try" in
8599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600 *) ac_try_echo=$ac_try;;
8601 esac
8602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8603 $as_echo "$ac_try_echo") >&5
8604 (eval "$ac_compile") 2>conftest.er1
8605 ac_status=$?
8606 grep -v '^ *+' conftest.er1 >conftest.err
8607 rm -f conftest.er1
8608 cat conftest.err >&5
8609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } && {
8611 test -z "$ac_c_werror_flag" ||
8612 test ! -s conftest.err
8613 } && test -s conftest.$ac_objext; then
8614 ac_cv_member_struct_ifreq_ifr_netmask=yes
8615 else
8616 $as_echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.$ac_ext >&5
8618
8619 cat >conftest.$ac_ext <<_ACEOF
8620 /* confdefs.h. */
8621 _ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h. */
8625 $ac_includes_default
8626 #if HAVE_SYS_SOCKET_H
8627 #include <sys/socket.h>
8628 #endif
8629 #if HAVE_NET_IF_H
8630 #include <net/if.h>
8631 #endif
8632
8633 int
8634 main ()
8635 {
8636 static struct ifreq ac_aggr;
8637 if (sizeof ac_aggr.ifr_netmask)
8638 return 0;
8639 ;
8640 return 0;
8641 }
8642 _ACEOF
8643 rm -f conftest.$ac_objext
8644 if { (ac_try="$ac_compile"
8645 case "(($ac_try" in
8646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8647 *) ac_try_echo=$ac_try;;
8648 esac
8649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8650 $as_echo "$ac_try_echo") >&5
8651 (eval "$ac_compile") 2>conftest.er1
8652 ac_status=$?
8653 grep -v '^ *+' conftest.er1 >conftest.err
8654 rm -f conftest.er1
8655 cat conftest.err >&5
8656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } && {
8658 test -z "$ac_c_werror_flag" ||
8659 test ! -s conftest.err
8660 } && test -s conftest.$ac_objext; then
8661 ac_cv_member_struct_ifreq_ifr_netmask=yes
8662 else
8663 $as_echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8665
8666 ac_cv_member_struct_ifreq_ifr_netmask=no
8667 fi
8668
8669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8670 fi
8671
8672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8673 fi
8674 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8675 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8676 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8677
8678 cat >>confdefs.h <<_ACEOF
8679 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8680 _ACEOF
8681
8682
8683 fi
8684 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8685 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8686 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8687 $as_echo_n "(cached) " >&6
8688 else
8689 cat >conftest.$ac_ext <<_ACEOF
8690 /* confdefs.h. */
8691 _ACEOF
8692 cat confdefs.h >>conftest.$ac_ext
8693 cat >>conftest.$ac_ext <<_ACEOF
8694 /* end confdefs.h. */
8695 $ac_includes_default
8696 #if HAVE_SYS_SOCKET_H
8697 #include <sys/socket.h>
8698 #endif
8699 #if HAVE_NET_IF_H
8700 #include <net/if.h>
8701 #endif
8702
8703 int
8704 main ()
8705 {
8706 static struct ifreq ac_aggr;
8707 if (ac_aggr.ifr_broadaddr)
8708 return 0;
8709 ;
8710 return 0;
8711 }
8712 _ACEOF
8713 rm -f conftest.$ac_objext
8714 if { (ac_try="$ac_compile"
8715 case "(($ac_try" in
8716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8717 *) ac_try_echo=$ac_try;;
8718 esac
8719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8720 $as_echo "$ac_try_echo") >&5
8721 (eval "$ac_compile") 2>conftest.er1
8722 ac_status=$?
8723 grep -v '^ *+' conftest.er1 >conftest.err
8724 rm -f conftest.er1
8725 cat conftest.err >&5
8726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } && {
8728 test -z "$ac_c_werror_flag" ||
8729 test ! -s conftest.err
8730 } && test -s conftest.$ac_objext; then
8731 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8732 else
8733 $as_echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8735
8736 cat >conftest.$ac_ext <<_ACEOF
8737 /* confdefs.h. */
8738 _ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8742 $ac_includes_default
8743 #if HAVE_SYS_SOCKET_H
8744 #include <sys/socket.h>
8745 #endif
8746 #if HAVE_NET_IF_H
8747 #include <net/if.h>
8748 #endif
8749
8750 int
8751 main ()
8752 {
8753 static struct ifreq ac_aggr;
8754 if (sizeof ac_aggr.ifr_broadaddr)
8755 return 0;
8756 ;
8757 return 0;
8758 }
8759 _ACEOF
8760 rm -f conftest.$ac_objext
8761 if { (ac_try="$ac_compile"
8762 case "(($ac_try" in
8763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8764 *) ac_try_echo=$ac_try;;
8765 esac
8766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8767 $as_echo "$ac_try_echo") >&5
8768 (eval "$ac_compile") 2>conftest.er1
8769 ac_status=$?
8770 grep -v '^ *+' conftest.er1 >conftest.err
8771 rm -f conftest.er1
8772 cat conftest.err >&5
8773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } && {
8775 test -z "$ac_c_werror_flag" ||
8776 test ! -s conftest.err
8777 } && test -s conftest.$ac_objext; then
8778 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8779 else
8780 $as_echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8782
8783 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8784 fi
8785
8786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8787 fi
8788
8789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8790 fi
8791 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8792 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8793 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8794
8795 cat >>confdefs.h <<_ACEOF
8796 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8797 _ACEOF
8798
8799
8800 fi
8801 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8802 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8803 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8804 $as_echo_n "(cached) " >&6
8805 else
8806 cat >conftest.$ac_ext <<_ACEOF
8807 /* confdefs.h. */
8808 _ACEOF
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h. */
8812 $ac_includes_default
8813 #if HAVE_SYS_SOCKET_H
8814 #include <sys/socket.h>
8815 #endif
8816 #if HAVE_NET_IF_H
8817 #include <net/if.h>
8818 #endif
8819
8820 int
8821 main ()
8822 {
8823 static struct ifreq ac_aggr;
8824 if (ac_aggr.ifr_addr)
8825 return 0;
8826 ;
8827 return 0;
8828 }
8829 _ACEOF
8830 rm -f conftest.$ac_objext
8831 if { (ac_try="$ac_compile"
8832 case "(($ac_try" in
8833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8834 *) ac_try_echo=$ac_try;;
8835 esac
8836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8837 $as_echo "$ac_try_echo") >&5
8838 (eval "$ac_compile") 2>conftest.er1
8839 ac_status=$?
8840 grep -v '^ *+' conftest.er1 >conftest.err
8841 rm -f conftest.er1
8842 cat conftest.err >&5
8843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } && {
8845 test -z "$ac_c_werror_flag" ||
8846 test ! -s conftest.err
8847 } && test -s conftest.$ac_objext; then
8848 ac_cv_member_struct_ifreq_ifr_addr=yes
8849 else
8850 $as_echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8852
8853 cat >conftest.$ac_ext <<_ACEOF
8854 /* confdefs.h. */
8855 _ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8859 $ac_includes_default
8860 #if HAVE_SYS_SOCKET_H
8861 #include <sys/socket.h>
8862 #endif
8863 #if HAVE_NET_IF_H
8864 #include <net/if.h>
8865 #endif
8866
8867 int
8868 main ()
8869 {
8870 static struct ifreq ac_aggr;
8871 if (sizeof ac_aggr.ifr_addr)
8872 return 0;
8873 ;
8874 return 0;
8875 }
8876 _ACEOF
8877 rm -f conftest.$ac_objext
8878 if { (ac_try="$ac_compile"
8879 case "(($ac_try" in
8880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881 *) ac_try_echo=$ac_try;;
8882 esac
8883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8884 $as_echo "$ac_try_echo") >&5
8885 (eval "$ac_compile") 2>conftest.er1
8886 ac_status=$?
8887 grep -v '^ *+' conftest.er1 >conftest.err
8888 rm -f conftest.er1
8889 cat conftest.err >&5
8890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } && {
8892 test -z "$ac_c_werror_flag" ||
8893 test ! -s conftest.err
8894 } && test -s conftest.$ac_objext; then
8895 ac_cv_member_struct_ifreq_ifr_addr=yes
8896 else
8897 $as_echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8899
8900 ac_cv_member_struct_ifreq_ifr_addr=no
8901 fi
8902
8903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904 fi
8905
8906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8907 fi
8908 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8909 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8910 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8911
8912 cat >>confdefs.h <<_ACEOF
8913 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8914 _ACEOF
8915
8916
8917 fi
8918
8919
8920
8921 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8922 $as_echo_n "checking for function prototypes... " >&6; }
8923 if test "$ac_cv_prog_cc_c89" != no; then
8924 { $as_echo "$as_me:$LINENO: result: yes" >&5
8925 $as_echo "yes" >&6; }
8926
8927 cat >>confdefs.h <<\_ACEOF
8928 #define PROTOTYPES 1
8929 _ACEOF
8930
8931
8932 cat >>confdefs.h <<\_ACEOF
8933 #define __PROTOTYPES 1
8934 _ACEOF
8935
8936 else
8937 { $as_echo "$as_me:$LINENO: result: no" >&5
8938 $as_echo "no" >&6; }
8939 fi
8940
8941 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8942 $as_echo_n "checking for working volatile... " >&6; }
8943 if test "${ac_cv_c_volatile+set}" = set; then
8944 $as_echo_n "(cached) " >&6
8945 else
8946 cat >conftest.$ac_ext <<_ACEOF
8947 /* confdefs.h. */
8948 _ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8952
8953 int
8954 main ()
8955 {
8956
8957 volatile int x;
8958 int * volatile y = (int *) 0;
8959 return !x && !y;
8960 ;
8961 return 0;
8962 }
8963 _ACEOF
8964 rm -f conftest.$ac_objext
8965 if { (ac_try="$ac_compile"
8966 case "(($ac_try" in
8967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8968 *) ac_try_echo=$ac_try;;
8969 esac
8970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8971 $as_echo "$ac_try_echo") >&5
8972 (eval "$ac_compile") 2>conftest.er1
8973 ac_status=$?
8974 grep -v '^ *+' conftest.er1 >conftest.err
8975 rm -f conftest.er1
8976 cat conftest.err >&5
8977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); } && {
8979 test -z "$ac_c_werror_flag" ||
8980 test ! -s conftest.err
8981 } && test -s conftest.$ac_objext; then
8982 ac_cv_c_volatile=yes
8983 else
8984 $as_echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8986
8987 ac_cv_c_volatile=no
8988 fi
8989
8990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8991 fi
8992 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8993 $as_echo "$ac_cv_c_volatile" >&6; }
8994 if test $ac_cv_c_volatile = no; then
8995
8996 cat >>confdefs.h <<\_ACEOF
8997 #define volatile /**/
8998 _ACEOF
8999
9000 fi
9001
9002 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9003 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9004 if test "${ac_cv_c_const+set}" = set; then
9005 $as_echo_n "(cached) " >&6
9006 else
9007 cat >conftest.$ac_ext <<_ACEOF
9008 /* confdefs.h. */
9009 _ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h. */
9013
9014 int
9015 main ()
9016 {
9017 /* FIXME: Include the comments suggested by Paul. */
9018 #ifndef __cplusplus
9019 /* Ultrix mips cc rejects this. */
9020 typedef int charset[2];
9021 const charset cs;
9022 /* SunOS 4.1.1 cc rejects this. */
9023 char const *const *pcpcc;
9024 char **ppc;
9025 /* NEC SVR4.0.2 mips cc rejects this. */
9026 struct point {int x, y;};
9027 static struct point const zero = {0,0};
9028 /* AIX XL C 1.02.0.0 rejects this.
9029 It does not let you subtract one const X* pointer from another in
9030 an arm of an if-expression whose if-part is not a constant
9031 expression */
9032 const char *g = "string";
9033 pcpcc = &g + (g ? g-g : 0);
9034 /* HPUX 7.0 cc rejects these. */
9035 ++pcpcc;
9036 ppc = (char**) pcpcc;
9037 pcpcc = (char const *const *) ppc;
9038 { /* SCO 3.2v4 cc rejects this. */
9039 char *t;
9040 char const *s = 0 ? (char *) 0 : (char const *) 0;
9041
9042 *t++ = 0;
9043 if (s) return 0;
9044 }
9045 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9046 int x[] = {25, 17};
9047 const int *foo = &x[0];
9048 ++foo;
9049 }
9050 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9051 typedef const int *iptr;
9052 iptr p = 0;
9053 ++p;
9054 }
9055 { /* AIX XL C 1.02.0.0 rejects this saying
9056 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9057 struct s { int j; const int *ap[3]; };
9058 struct s *b; b->j = 5;
9059 }
9060 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9061 const int foo = 10;
9062 if (!foo) return 0;
9063 }
9064 return !cs[0] && !zero.x;
9065 #endif
9066
9067 ;
9068 return 0;
9069 }
9070 _ACEOF
9071 rm -f conftest.$ac_objext
9072 if { (ac_try="$ac_compile"
9073 case "(($ac_try" in
9074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9075 *) ac_try_echo=$ac_try;;
9076 esac
9077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9078 $as_echo "$ac_try_echo") >&5
9079 (eval "$ac_compile") 2>conftest.er1
9080 ac_status=$?
9081 grep -v '^ *+' conftest.er1 >conftest.err
9082 rm -f conftest.er1
9083 cat conftest.err >&5
9084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); } && {
9086 test -z "$ac_c_werror_flag" ||
9087 test ! -s conftest.err
9088 } && test -s conftest.$ac_objext; then
9089 ac_cv_c_const=yes
9090 else
9091 $as_echo "$as_me: failed program was:" >&5
9092 sed 's/^/| /' conftest.$ac_ext >&5
9093
9094 ac_cv_c_const=no
9095 fi
9096
9097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9098 fi
9099 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9100 $as_echo "$ac_cv_c_const" >&6; }
9101 if test $ac_cv_c_const = no; then
9102
9103 cat >>confdefs.h <<\_ACEOF
9104 #define const /**/
9105 _ACEOF
9106
9107 fi
9108
9109 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9110 $as_echo_n "checking for void * support... " >&6; }
9111 if test "${emacs_cv_void_star+set}" = set; then
9112 $as_echo_n "(cached) " >&6
9113 else
9114 cat >conftest.$ac_ext <<_ACEOF
9115 /* confdefs.h. */
9116 _ACEOF
9117 cat confdefs.h >>conftest.$ac_ext
9118 cat >>conftest.$ac_ext <<_ACEOF
9119 /* end confdefs.h. */
9120
9121 int
9122 main ()
9123 {
9124 void * foo;
9125 ;
9126 return 0;
9127 }
9128 _ACEOF
9129 rm -f conftest.$ac_objext
9130 if { (ac_try="$ac_compile"
9131 case "(($ac_try" in
9132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9133 *) ac_try_echo=$ac_try;;
9134 esac
9135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9136 $as_echo "$ac_try_echo") >&5
9137 (eval "$ac_compile") 2>conftest.er1
9138 ac_status=$?
9139 grep -v '^ *+' conftest.er1 >conftest.err
9140 rm -f conftest.er1
9141 cat conftest.err >&5
9142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } && {
9144 test -z "$ac_c_werror_flag" ||
9145 test ! -s conftest.err
9146 } && test -s conftest.$ac_objext; then
9147 emacs_cv_void_star=yes
9148 else
9149 $as_echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9151
9152 emacs_cv_void_star=no
9153 fi
9154
9155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9156 fi
9157 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9158 $as_echo "$emacs_cv_void_star" >&6; }
9159 if test $emacs_cv_void_star = yes; then
9160 cat >>confdefs.h <<\_ACEOF
9161 #define POINTER_TYPE void
9162 _ACEOF
9163
9164 else
9165 cat >>confdefs.h <<\_ACEOF
9166 #define POINTER_TYPE char
9167 _ACEOF
9168
9169 fi
9170
9171
9172
9173
9174
9175 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9176 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9177 set x ${MAKE-make}
9178 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9179 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9180 $as_echo_n "(cached) " >&6
9181 else
9182 cat >conftest.make <<\_ACEOF
9183 SHELL = /bin/sh
9184 all:
9185 @echo '@@@%%%=$(MAKE)=@@@%%%'
9186 _ACEOF
9187 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9188 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9189 *@@@%%%=?*=@@@%%%*)
9190 eval ac_cv_prog_make_${ac_make}_set=yes;;
9191 *)
9192 eval ac_cv_prog_make_${ac_make}_set=no;;
9193 esac
9194 rm -f conftest.make
9195 fi
9196 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9197 { $as_echo "$as_me:$LINENO: result: yes" >&5
9198 $as_echo "yes" >&6; }
9199 SET_MAKE=
9200 else
9201 { $as_echo "$as_me:$LINENO: result: no" >&5
9202 $as_echo "no" >&6; }
9203 SET_MAKE="MAKE=${MAKE-make}"
9204 fi
9205
9206
9207 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9208 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9209 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9210 HAVE_GNU_MAKE=no
9211 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9212 if test "x$testval" != x; then
9213 HAVE_GNU_MAKE=yes
9214 else
9215 ac_enable_autodepend=no
9216 fi
9217 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9218 $as_echo "$HAVE_GNU_MAKE" >&6; }
9219 if test $HAVE_GNU_MAKE = yes; then
9220 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9221 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9222 SAVE_CFLAGS="$CFLAGS"
9223 CFLAGS="$CFLAGS -MMD -MF deps.d"
9224 cat >conftest.$ac_ext <<_ACEOF
9225 /* confdefs.h. */
9226 _ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h. */
9230
9231 int
9232 main ()
9233 {
9234
9235 ;
9236 return 0;
9237 }
9238 _ACEOF
9239 rm -f conftest.$ac_objext
9240 if { (ac_try="$ac_compile"
9241 case "(($ac_try" in
9242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9243 *) ac_try_echo=$ac_try;;
9244 esac
9245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9246 $as_echo "$ac_try_echo") >&5
9247 (eval "$ac_compile") 2>conftest.er1
9248 ac_status=$?
9249 grep -v '^ *+' conftest.er1 >conftest.err
9250 rm -f conftest.er1
9251 cat conftest.err >&5
9252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } && {
9254 test -z "$ac_c_werror_flag" ||
9255 test ! -s conftest.err
9256 } && test -s conftest.$ac_objext; then
9257 :
9258 else
9259 $as_echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.$ac_ext >&5
9261
9262 ac_enable_autodepend=no
9263 fi
9264
9265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9266 CFLAGS="$SAVE_CFLAGS"
9267 test -f deps.d || ac_enable_autodepend=no
9268 rm -rf deps.d
9269 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9270 $as_echo "$ac_enable_autodepend" >&6; }
9271 fi
9272 if test $ac_enable_autodepend = yes; then
9273
9274 cat >>confdefs.h <<\_ACEOF
9275 #define AUTO_DEPEND 1
9276 _ACEOF
9277
9278 fi
9279 fi
9280
9281 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9282 $as_echo_n "checking for long file names... " >&6; }
9283 if test "${ac_cv_sys_long_file_names+set}" = set; then
9284 $as_echo_n "(cached) " >&6
9285 else
9286 ac_cv_sys_long_file_names=yes
9287 # Test for long file names in all the places we know might matter:
9288 # . the current directory, where building will happen
9289 # $prefix/lib where we will be installing things
9290 # $exec_prefix/lib likewise
9291 # $TMPDIR if set, where it might want to write temporary files
9292 # /tmp where it might want to write temporary files
9293 # /var/tmp likewise
9294 # /usr/tmp likewise
9295 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9296 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9297 # in the usual case where exec_prefix is '${prefix}'.
9298 case $ac_dir in #(
9299 . | /* | ?:[\\/]*) ;; #(
9300 *) continue;;
9301 esac
9302 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9303 ac_xdir=$ac_dir/cf$$
9304 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9305 ac_tf1=$ac_xdir/conftest9012345
9306 ac_tf2=$ac_xdir/conftest9012346
9307 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9308 ac_cv_sys_long_file_names=no
9309 rm -f -r "$ac_xdir" 2>/dev/null
9310 test $ac_cv_sys_long_file_names = no && break
9311 done
9312 fi
9313 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9314 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9315 if test $ac_cv_sys_long_file_names = yes; then
9316
9317 cat >>confdefs.h <<\_ACEOF
9318 #define HAVE_LONG_FILE_NAMES 1
9319 _ACEOF
9320
9321 fi
9322
9323
9324 #### Choose a window system.
9325
9326 { $as_echo "$as_me:$LINENO: checking for X" >&5
9327 $as_echo_n "checking for X... " >&6; }
9328
9329
9330 # Check whether --with-x was given.
9331 if test "${with_x+set}" = set; then
9332 withval=$with_x;
9333 fi
9334
9335 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9336 if test "x$with_x" = xno; then
9337 # The user explicitly disabled X.
9338 have_x=disabled
9339 else
9340 case $x_includes,$x_libraries in #(
9341 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9342 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9343 { (exit 1); exit 1; }; };; #(
9344 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9345 $as_echo_n "(cached) " >&6
9346 else
9347 # One or both of the vars are not set, and there is no cached value.
9348 ac_x_includes=no ac_x_libraries=no
9349 rm -f -r conftest.dir
9350 if mkdir conftest.dir; then
9351 cd conftest.dir
9352 cat >Imakefile <<'_ACEOF'
9353 incroot:
9354 @echo incroot='${INCROOT}'
9355 usrlibdir:
9356 @echo usrlibdir='${USRLIBDIR}'
9357 libdir:
9358 @echo libdir='${LIBDIR}'
9359 _ACEOF
9360 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9361 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9362 for ac_var in incroot usrlibdir libdir; do
9363 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9364 done
9365 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9366 for ac_extension in a so sl dylib la dll; do
9367 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9368 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9369 ac_im_usrlibdir=$ac_im_libdir; break
9370 fi
9371 done
9372 # Screen out bogus values from the imake configuration. They are
9373 # bogus both because they are the default anyway, and because
9374 # using them would break gcc on systems where it needs fixed includes.
9375 case $ac_im_incroot in
9376 /usr/include) ac_x_includes= ;;
9377 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9378 esac
9379 case $ac_im_usrlibdir in
9380 /usr/lib | /lib) ;;
9381 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9382 esac
9383 fi
9384 cd ..
9385 rm -f -r conftest.dir
9386 fi
9387
9388 # Standard set of common directories for X headers.
9389 # Check X11 before X11Rn because it is often a symlink to the current release.
9390 ac_x_header_dirs='
9391 /usr/X11/include
9392 /usr/X11R6/include
9393 /usr/X11R5/include
9394 /usr/X11R4/include
9395
9396 /usr/include/X11
9397 /usr/include/X11R6
9398 /usr/include/X11R5
9399 /usr/include/X11R4
9400
9401 /usr/local/X11/include
9402 /usr/local/X11R6/include
9403 /usr/local/X11R5/include
9404 /usr/local/X11R4/include
9405
9406 /usr/local/include/X11
9407 /usr/local/include/X11R6
9408 /usr/local/include/X11R5
9409 /usr/local/include/X11R4
9410
9411 /usr/X386/include
9412 /usr/x386/include
9413 /usr/XFree86/include/X11
9414
9415 /usr/include
9416 /usr/local/include
9417 /usr/unsupported/include
9418 /usr/athena/include
9419 /usr/local/x11r5/include
9420 /usr/lpp/Xamples/include
9421
9422 /usr/openwin/include
9423 /usr/openwin/share/include'
9424
9425 if test "$ac_x_includes" = no; then
9426 # Guess where to find include files, by looking for Xlib.h.
9427 # First, try using that file with no special directory specified.
9428 cat >conftest.$ac_ext <<_ACEOF
9429 /* confdefs.h. */
9430 _ACEOF
9431 cat confdefs.h >>conftest.$ac_ext
9432 cat >>conftest.$ac_ext <<_ACEOF
9433 /* end confdefs.h. */
9434 #include <X11/Xlib.h>
9435 _ACEOF
9436 if { (ac_try="$ac_cpp conftest.$ac_ext"
9437 case "(($ac_try" in
9438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9439 *) ac_try_echo=$ac_try;;
9440 esac
9441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9442 $as_echo "$ac_try_echo") >&5
9443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9444 ac_status=$?
9445 grep -v '^ *+' conftest.er1 >conftest.err
9446 rm -f conftest.er1
9447 cat conftest.err >&5
9448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } >/dev/null && {
9450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9451 test ! -s conftest.err
9452 }; then
9453 # We can compile using X headers with no special include directory.
9454 ac_x_includes=
9455 else
9456 $as_echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9458
9459 for ac_dir in $ac_x_header_dirs; do
9460 if test -r "$ac_dir/X11/Xlib.h"; then
9461 ac_x_includes=$ac_dir
9462 break
9463 fi
9464 done
9465 fi
9466
9467 rm -f conftest.err conftest.$ac_ext
9468 fi # $ac_x_includes = no
9469
9470 if test "$ac_x_libraries" = no; then
9471 # Check for the libraries.
9472 # See if we find them without any special options.
9473 # Don't add to $LIBS permanently.
9474 ac_save_LIBS=$LIBS
9475 LIBS="-lX11 $LIBS"
9476 cat >conftest.$ac_ext <<_ACEOF
9477 /* confdefs.h. */
9478 _ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9482 #include <X11/Xlib.h>
9483 int
9484 main ()
9485 {
9486 XrmInitialize ()
9487 ;
9488 return 0;
9489 }
9490 _ACEOF
9491 rm -f conftest.$ac_objext conftest$ac_exeext
9492 if { (ac_try="$ac_link"
9493 case "(($ac_try" in
9494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9495 *) ac_try_echo=$ac_try;;
9496 esac
9497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9498 $as_echo "$ac_try_echo") >&5
9499 (eval "$ac_link") 2>conftest.er1
9500 ac_status=$?
9501 grep -v '^ *+' conftest.er1 >conftest.err
9502 rm -f conftest.er1
9503 cat conftest.err >&5
9504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } && {
9506 test -z "$ac_c_werror_flag" ||
9507 test ! -s conftest.err
9508 } && test -s conftest$ac_exeext && {
9509 test "$cross_compiling" = yes ||
9510 $as_test_x conftest$ac_exeext
9511 }; then
9512 LIBS=$ac_save_LIBS
9513 # We can link X programs with no special library path.
9514 ac_x_libraries=
9515 else
9516 $as_echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9518
9519 LIBS=$ac_save_LIBS
9520 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9521 do
9522 # Don't even attempt the hair of trying to link an X program!
9523 for ac_extension in a so sl dylib la dll; do
9524 if test -r "$ac_dir/libX11.$ac_extension"; then
9525 ac_x_libraries=$ac_dir
9526 break 2
9527 fi
9528 done
9529 done
9530 fi
9531
9532 rm -rf conftest.dSYM
9533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9534 conftest$ac_exeext conftest.$ac_ext
9535 fi # $ac_x_libraries = no
9536
9537 case $ac_x_includes,$ac_x_libraries in #(
9538 no,* | *,no | *\'*)
9539 # Didn't find X, or a directory has "'" in its name.
9540 ac_cv_have_x="have_x=no";; #(
9541 *)
9542 # Record where we found X for the cache.
9543 ac_cv_have_x="have_x=yes\
9544 ac_x_includes='$ac_x_includes'\
9545 ac_x_libraries='$ac_x_libraries'"
9546 esac
9547 fi
9548 ;; #(
9549 *) have_x=yes;;
9550 esac
9551 eval "$ac_cv_have_x"
9552 fi # $with_x != no
9553
9554 if test "$have_x" != yes; then
9555 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9556 $as_echo "$have_x" >&6; }
9557 no_x=yes
9558 else
9559 # If each of the values was on the command line, it overrides each guess.
9560 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9561 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9562 # Update the cache value to reflect the command line values.
9563 ac_cv_have_x="have_x=yes\
9564 ac_x_includes='$x_includes'\
9565 ac_x_libraries='$x_libraries'"
9566 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9567 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9568 fi
9569
9570 if test "$no_x" = yes; then
9571 window_system=none
9572 else
9573 window_system=x11
9574 fi
9575
9576 ## Workaround for bug in autoconf <= 2.62.
9577 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9578 ## No need to do anything special for these standard directories.
9579 ## This is an experiment, take it out if it causes problems.
9580 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9581
9582 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9583
9584 fi
9585
9586 if test "${x_libraries}" != NONE; then
9587 if test -n "${x_libraries}"; then
9588 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9589 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9590 fi
9591 x_default_search_path=""
9592 x_search_path=${x_libraries}
9593 if test -z "${x_search_path}"; then
9594 x_search_path=/usr/lib
9595 fi
9596 for x_library in `echo ${x_search_path}: | \
9597 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9598 x_search_path="\
9599 ${x_library}/X11/%L/%T/%N%C%S:\
9600 ${x_library}/X11/%l/%T/%N%C%S:\
9601 ${x_library}/X11/%T/%N%C%S:\
9602 ${x_library}/X11/%L/%T/%N%S:\
9603 ${x_library}/X11/%l/%T/%N%S:\
9604 ${x_library}/X11/%T/%N%S"
9605 if test x"${x_default_search_path}" = x; then
9606 x_default_search_path=${x_search_path}
9607 else
9608 x_default_search_path="${x_search_path}:${x_default_search_path}"
9609 fi
9610 done
9611 fi
9612 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9613 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9614 fi
9615
9616 if test x"${x_includes}" = x; then
9617 bitmapdir=/usr/include/X11/bitmaps
9618 else
9619 # accumulate include directories that have X11 bitmap subdirectories
9620 bmd_acc="dummyval"
9621 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9622 if test -d "${bmd}/X11/bitmaps"; then
9623 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9624 fi
9625 if test -d "${bmd}/bitmaps"; then
9626 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9627 fi
9628 done
9629 if test ${bmd_acc} != "dummyval"; then
9630 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9631 fi
9632 fi
9633
9634 HAVE_NS=no
9635 NS_IMPL_COCOA=no
9636 NS_IMPL_GNUSTEP=no
9637 tmp_CPPFLAGS="$CPPFLAGS"
9638 tmp_CFLAGS="$CFLAGS"
9639 CPPFLAGS="$CPPFLAGS -x objective-c"
9640 CFLAGS="$CFLAGS -x objective-c"
9641 if test "${with_ns}" != no; then
9642 if test "${opsys}" = darwin; then
9643 NS_IMPL_COCOA=yes
9644 ns_appdir=`pwd`/nextstep/Emacs.app
9645 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9646 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9647 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9648 elif test -f $GNUSTEP_CONFIG_FILE; then
9649 NS_IMPL_GNUSTEP=yes
9650 ns_appdir=`pwd`/nextstep/Emacs.app
9651 ns_appbindir=`pwd`/nextstep/Emacs.app
9652 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9653 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9654 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9655 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9656 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9657 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9658 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9659 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9660 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9661 fi
9662 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9663 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9664 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9665 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9666 $as_echo_n "(cached) " >&6
9667 fi
9668 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9669 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9670 else
9671 # Is the header compilable?
9672 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9673 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9674 cat >conftest.$ac_ext <<_ACEOF
9675 /* confdefs.h. */
9676 _ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9680 $ac_includes_default
9681 #include <AppKit/AppKit.h>
9682 _ACEOF
9683 rm -f conftest.$ac_objext
9684 if { (ac_try="$ac_compile"
9685 case "(($ac_try" in
9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9688 esac
9689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9690 $as_echo "$ac_try_echo") >&5
9691 (eval "$ac_compile") 2>conftest.er1
9692 ac_status=$?
9693 grep -v '^ *+' conftest.er1 >conftest.err
9694 rm -f conftest.er1
9695 cat conftest.err >&5
9696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } && {
9698 test -z "$ac_c_werror_flag" ||
9699 test ! -s conftest.err
9700 } && test -s conftest.$ac_objext; then
9701 ac_header_compiler=yes
9702 else
9703 $as_echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9705
9706 ac_header_compiler=no
9707 fi
9708
9709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9710 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9711 $as_echo "$ac_header_compiler" >&6; }
9712
9713 # Is the header present?
9714 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9715 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9716 cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h. */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9722 #include <AppKit/AppKit.h>
9723 _ACEOF
9724 if { (ac_try="$ac_cpp conftest.$ac_ext"
9725 case "(($ac_try" in
9726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727 *) ac_try_echo=$ac_try;;
9728 esac
9729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9730 $as_echo "$ac_try_echo") >&5
9731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9732 ac_status=$?
9733 grep -v '^ *+' conftest.er1 >conftest.err
9734 rm -f conftest.er1
9735 cat conftest.err >&5
9736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } >/dev/null && {
9738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9739 test ! -s conftest.err
9740 }; then
9741 ac_header_preproc=yes
9742 else
9743 $as_echo "$as_me: failed program was:" >&5
9744 sed 's/^/| /' conftest.$ac_ext >&5
9745
9746 ac_header_preproc=no
9747 fi
9748
9749 rm -f conftest.err conftest.$ac_ext
9750 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9751 $as_echo "$ac_header_preproc" >&6; }
9752
9753 # So? What about this header?
9754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9755 yes:no: )
9756 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9757 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9758 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9759 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9760 ac_header_preproc=yes
9761 ;;
9762 no:yes:* )
9763 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9764 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9765 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9766 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9767 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9768 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9769 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9770 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9771 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9772 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9773 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9774 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9775
9776 ;;
9777 esac
9778 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9779 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9780 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9781 $as_echo_n "(cached) " >&6
9782 else
9783 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9784 fi
9785 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9786 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9787
9788 fi
9789 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9790 HAVE_NS=yes
9791 else
9792 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9793 files are missing or cannot be compiled." >&5
9794 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9795 files are missing or cannot be compiled." >&2;}
9796 { (exit 1); exit 1; }; }
9797 fi
9798
9799
9800 NS_HAVE_NSINTEGER=yes
9801 cat >conftest.$ac_ext <<_ACEOF
9802 /* confdefs.h. */
9803 _ACEOF
9804 cat confdefs.h >>conftest.$ac_ext
9805 cat >>conftest.$ac_ext <<_ACEOF
9806 /* end confdefs.h. */
9807 #include <Foundation/NSObjCRuntime.h>
9808 int
9809 main ()
9810 {
9811 NSInteger i;
9812 ;
9813 return 0;
9814 }
9815 _ACEOF
9816 rm -f conftest.$ac_objext
9817 if { (ac_try="$ac_compile"
9818 case "(($ac_try" in
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9821 esac
9822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9823 $as_echo "$ac_try_echo") >&5
9824 (eval "$ac_compile") 2>conftest.er1
9825 ac_status=$?
9826 grep -v '^ *+' conftest.er1 >conftest.err
9827 rm -f conftest.er1
9828 cat conftest.err >&5
9829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } && {
9831 test -z "$ac_c_werror_flag" ||
9832 test ! -s conftest.err
9833 } && test -s conftest.$ac_objext; then
9834 ns_have_nsinteger=yes
9835 else
9836 $as_echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9838
9839 ns_have_nsinteger=no
9840 fi
9841
9842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9843 if test $ns_have_nsinteger = no; then
9844 NS_HAVE_NSINTEGER=no
9845 fi
9846 fi
9847 if test "${HAVE_NS}" = yes; then
9848 window_system=nextstep
9849 with_xft=no
9850 # set up packaging dirs
9851 exec_prefix=${ns_appbindir}
9852 libexecdir=${ns_appbindir}/libexec
9853 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9854 prefix=${ns_appresdir}
9855 fi
9856 fi
9857 CFLAGS="$tmp_CFLAGS"
9858 CPPFLAGS="$tmp_CPPFLAGS"
9859
9860 case "${window_system}" in
9861 x11 )
9862 HAVE_X_WINDOWS=yes
9863 HAVE_X11=yes
9864 case "${with_x_toolkit}" in
9865 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9866 motif ) USE_X_TOOLKIT=MOTIF ;;
9867 gtk ) with_gtk=yes
9868 USE_X_TOOLKIT=none ;;
9869 no ) USE_X_TOOLKIT=none ;;
9870 * ) USE_X_TOOLKIT=maybe ;;
9871 esac
9872 ;;
9873 nextstep | none )
9874 HAVE_X_WINDOWS=no
9875 HAVE_X11=no
9876 USE_X_TOOLKIT=none
9877 ;;
9878 esac
9879
9880 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9881 # Extract the first word of "X", so it can be a program name with args.
9882 set dummy X; ac_word=$2
9883 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9884 $as_echo_n "checking for $ac_word... " >&6; }
9885 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9886 $as_echo_n "(cached) " >&6
9887 else
9888 if test -n "$HAVE_XSERVER"; then
9889 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9890 else
9891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9892 for as_dir in $PATH
9893 do
9894 IFS=$as_save_IFS
9895 test -z "$as_dir" && as_dir=.
9896 for ac_exec_ext in '' $ac_executable_extensions; do
9897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9898 ac_cv_prog_HAVE_XSERVER="true"
9899 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9900 break 2
9901 fi
9902 done
9903 done
9904 IFS=$as_save_IFS
9905
9906 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9907 fi
9908 fi
9909 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9910 if test -n "$HAVE_XSERVER"; then
9911 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9912 $as_echo "$HAVE_XSERVER" >&6; }
9913 else
9914 { $as_echo "$as_me:$LINENO: result: no" >&5
9915 $as_echo "no" >&6; }
9916 fi
9917
9918
9919 if test "$HAVE_XSERVER" = true ||
9920 test -n "$DISPLAY" ||
9921 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9922 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9923 were found. You should install the relevant development files for X
9924 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9925 sure you have development files for image handling, i.e.
9926 tiff, gif, jpeg, png and xpm.
9927 If you are sure you want Emacs compiled without X window support, pass
9928 --without-x
9929 to configure." >&5
9930 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9931 were found. You should install the relevant development files for X
9932 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9933 sure you have development files for image handling, i.e.
9934 tiff, gif, jpeg, png and xpm.
9935 If you are sure you want Emacs compiled without X window support, pass
9936 --without-x
9937 to configure." >&2;}
9938 { (exit 1); exit 1; }; }
9939 fi
9940 fi
9941
9942 ### If we're using X11, we should use the X menu package.
9943 HAVE_MENUS=no
9944 case ${HAVE_X11} in
9945 yes ) HAVE_MENUS=yes ;;
9946 esac
9947
9948 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9949 # Assume not, until told otherwise.
9950 GNU_MALLOC=yes
9951 doug_lea_malloc=yes
9952 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9953 $as_echo_n "checking for malloc_get_state... " >&6; }
9954 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9955 $as_echo_n "(cached) " >&6
9956 else
9957 cat >conftest.$ac_ext <<_ACEOF
9958 /* confdefs.h. */
9959 _ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9963 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9965 #define malloc_get_state innocuous_malloc_get_state
9966
9967 /* System header to define __stub macros and hopefully few prototypes,
9968 which can conflict with char malloc_get_state (); below.
9969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9970 <limits.h> exists even on freestanding compilers. */
9971
9972 #ifdef __STDC__
9973 # include <limits.h>
9974 #else
9975 # include <assert.h>
9976 #endif
9977
9978 #undef malloc_get_state
9979
9980 /* Override any GCC internal prototype to avoid an error.
9981 Use char because int might match the return type of a GCC
9982 builtin and then its argument prototype would still apply. */
9983 #ifdef __cplusplus
9984 extern "C"
9985 #endif
9986 char malloc_get_state ();
9987 /* The GNU C library defines this for functions which it implements
9988 to always fail with ENOSYS. Some functions are actually named
9989 something starting with __ and the normal name is an alias. */
9990 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9991 choke me
9992 #endif
9993
9994 int
9995 main ()
9996 {
9997 return malloc_get_state ();
9998 ;
9999 return 0;
10000 }
10001 _ACEOF
10002 rm -f conftest.$ac_objext conftest$ac_exeext
10003 if { (ac_try="$ac_link"
10004 case "(($ac_try" in
10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10007 esac
10008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10009 $as_echo "$ac_try_echo") >&5
10010 (eval "$ac_link") 2>conftest.er1
10011 ac_status=$?
10012 grep -v '^ *+' conftest.er1 >conftest.err
10013 rm -f conftest.er1
10014 cat conftest.err >&5
10015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } && {
10017 test -z "$ac_c_werror_flag" ||
10018 test ! -s conftest.err
10019 } && test -s conftest$ac_exeext && {
10020 test "$cross_compiling" = yes ||
10021 $as_test_x conftest$ac_exeext
10022 }; then
10023 ac_cv_func_malloc_get_state=yes
10024 else
10025 $as_echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.$ac_ext >&5
10027
10028 ac_cv_func_malloc_get_state=no
10029 fi
10030
10031 rm -rf conftest.dSYM
10032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10033 conftest$ac_exeext conftest.$ac_ext
10034 fi
10035 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10036 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10037 if test $ac_cv_func_malloc_get_state = yes; then
10038 :
10039 else
10040 doug_lea_malloc=no
10041 fi
10042
10043 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10044 $as_echo_n "checking for malloc_set_state... " >&6; }
10045 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10046 $as_echo_n "(cached) " >&6
10047 else
10048 cat >conftest.$ac_ext <<_ACEOF
10049 /* confdefs.h. */
10050 _ACEOF
10051 cat confdefs.h >>conftest.$ac_ext
10052 cat >>conftest.$ac_ext <<_ACEOF
10053 /* end confdefs.h. */
10054 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10056 #define malloc_set_state innocuous_malloc_set_state
10057
10058 /* System header to define __stub macros and hopefully few prototypes,
10059 which can conflict with char malloc_set_state (); below.
10060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10061 <limits.h> exists even on freestanding compilers. */
10062
10063 #ifdef __STDC__
10064 # include <limits.h>
10065 #else
10066 # include <assert.h>
10067 #endif
10068
10069 #undef malloc_set_state
10070
10071 /* Override any GCC internal prototype to avoid an error.
10072 Use char because int might match the return type of a GCC
10073 builtin and then its argument prototype would still apply. */
10074 #ifdef __cplusplus
10075 extern "C"
10076 #endif
10077 char malloc_set_state ();
10078 /* The GNU C library defines this for functions which it implements
10079 to always fail with ENOSYS. Some functions are actually named
10080 something starting with __ and the normal name is an alias. */
10081 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10082 choke me
10083 #endif
10084
10085 int
10086 main ()
10087 {
10088 return malloc_set_state ();
10089 ;
10090 return 0;
10091 }
10092 _ACEOF
10093 rm -f conftest.$ac_objext conftest$ac_exeext
10094 if { (ac_try="$ac_link"
10095 case "(($ac_try" in
10096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097 *) ac_try_echo=$ac_try;;
10098 esac
10099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10100 $as_echo "$ac_try_echo") >&5
10101 (eval "$ac_link") 2>conftest.er1
10102 ac_status=$?
10103 grep -v '^ *+' conftest.er1 >conftest.err
10104 rm -f conftest.er1
10105 cat conftest.err >&5
10106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } && {
10108 test -z "$ac_c_werror_flag" ||
10109 test ! -s conftest.err
10110 } && test -s conftest$ac_exeext && {
10111 test "$cross_compiling" = yes ||
10112 $as_test_x conftest$ac_exeext
10113 }; then
10114 ac_cv_func_malloc_set_state=yes
10115 else
10116 $as_echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.$ac_ext >&5
10118
10119 ac_cv_func_malloc_set_state=no
10120 fi
10121
10122 rm -rf conftest.dSYM
10123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10124 conftest$ac_exeext conftest.$ac_ext
10125 fi
10126 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10127 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10128 if test $ac_cv_func_malloc_set_state = yes; then
10129 :
10130 else
10131 doug_lea_malloc=no
10132 fi
10133
10134 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10135 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10136 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10137 $as_echo_n "(cached) " >&6
10138 else
10139 cat >conftest.$ac_ext <<_ACEOF
10140 /* confdefs.h. */
10141 _ACEOF
10142 cat confdefs.h >>conftest.$ac_ext
10143 cat >>conftest.$ac_ext <<_ACEOF
10144 /* end confdefs.h. */
10145 extern void (* __after_morecore_hook)();
10146 int
10147 main ()
10148 {
10149 __after_morecore_hook = 0
10150 ;
10151 return 0;
10152 }
10153 _ACEOF
10154 rm -f conftest.$ac_objext conftest$ac_exeext
10155 if { (ac_try="$ac_link"
10156 case "(($ac_try" in
10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158 *) ac_try_echo=$ac_try;;
10159 esac
10160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10161 $as_echo "$ac_try_echo") >&5
10162 (eval "$ac_link") 2>conftest.er1
10163 ac_status=$?
10164 grep -v '^ *+' conftest.er1 >conftest.err
10165 rm -f conftest.er1
10166 cat conftest.err >&5
10167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } && {
10169 test -z "$ac_c_werror_flag" ||
10170 test ! -s conftest.err
10171 } && test -s conftest$ac_exeext && {
10172 test "$cross_compiling" = yes ||
10173 $as_test_x conftest$ac_exeext
10174 }; then
10175 emacs_cv_var___after_morecore_hook=yes
10176 else
10177 $as_echo "$as_me: failed program was:" >&5
10178 sed 's/^/| /' conftest.$ac_ext >&5
10179
10180 emacs_cv_var___after_morecore_hook=no
10181 fi
10182
10183 rm -rf conftest.dSYM
10184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10185 conftest$ac_exeext conftest.$ac_ext
10186 fi
10187 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10188 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10189 if test $emacs_cv_var___after_morecore_hook = no; then
10190 doug_lea_malloc=no
10191 fi
10192 if test "${system_malloc}" = "yes"; then
10193 GNU_MALLOC=no
10194 GNU_MALLOC_reason="
10195 (The GNU allocators don't work with this system configuration.)"
10196 fi
10197 if test "$doug_lea_malloc" = "yes" ; then
10198 if test "$GNU_MALLOC" = yes ; then
10199 GNU_MALLOC_reason="
10200 (Using Doug Lea's new malloc from the GNU C Library.)"
10201 fi
10202
10203 cat >>confdefs.h <<\_ACEOF
10204 #define DOUG_LEA_MALLOC 1
10205 _ACEOF
10206
10207 fi
10208
10209 if test x"${REL_ALLOC}" = x; then
10210 REL_ALLOC=${GNU_MALLOC}
10211 fi
10212
10213
10214
10215
10216 for ac_header in stdlib.h unistd.h
10217 do
10218 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10220 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10221 $as_echo_n "checking for $ac_header... " >&6; }
10222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10223 $as_echo_n "(cached) " >&6
10224 fi
10225 ac_res=`eval 'as_val=${'$as_ac_Header'}
10226 $as_echo "$as_val"'`
10227 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10228 $as_echo "$ac_res" >&6; }
10229 else
10230 # Is the header compilable?
10231 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10232 $as_echo_n "checking $ac_header usability... " >&6; }
10233 cat >conftest.$ac_ext <<_ACEOF
10234 /* confdefs.h. */
10235 _ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h. */
10239 $ac_includes_default
10240 #include <$ac_header>
10241 _ACEOF
10242 rm -f conftest.$ac_objext
10243 if { (ac_try="$ac_compile"
10244 case "(($ac_try" in
10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10247 esac
10248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10249 $as_echo "$ac_try_echo") >&5
10250 (eval "$ac_compile") 2>conftest.er1
10251 ac_status=$?
10252 grep -v '^ *+' conftest.er1 >conftest.err
10253 rm -f conftest.er1
10254 cat conftest.err >&5
10255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } && {
10257 test -z "$ac_c_werror_flag" ||
10258 test ! -s conftest.err
10259 } && test -s conftest.$ac_objext; then
10260 ac_header_compiler=yes
10261 else
10262 $as_echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10264
10265 ac_header_compiler=no
10266 fi
10267
10268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10269 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10270 $as_echo "$ac_header_compiler" >&6; }
10271
10272 # Is the header present?
10273 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10274 $as_echo_n "checking $ac_header presence... " >&6; }
10275 cat >conftest.$ac_ext <<_ACEOF
10276 /* confdefs.h. */
10277 _ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h. */
10281 #include <$ac_header>
10282 _ACEOF
10283 if { (ac_try="$ac_cpp conftest.$ac_ext"
10284 case "(($ac_try" in
10285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286 *) ac_try_echo=$ac_try;;
10287 esac
10288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10289 $as_echo "$ac_try_echo") >&5
10290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10291 ac_status=$?
10292 grep -v '^ *+' conftest.er1 >conftest.err
10293 rm -f conftest.er1
10294 cat conftest.err >&5
10295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } >/dev/null && {
10297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10298 test ! -s conftest.err
10299 }; then
10300 ac_header_preproc=yes
10301 else
10302 $as_echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10304
10305 ac_header_preproc=no
10306 fi
10307
10308 rm -f conftest.err conftest.$ac_ext
10309 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10310 $as_echo "$ac_header_preproc" >&6; }
10311
10312 # So? What about this header?
10313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10314 yes:no: )
10315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10316 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10318 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10319 ac_header_preproc=yes
10320 ;;
10321 no:yes:* )
10322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10323 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10325 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10327 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10329 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10331 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10333 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10334
10335 ;;
10336 esac
10337 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10338 $as_echo_n "checking for $ac_header... " >&6; }
10339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10340 $as_echo_n "(cached) " >&6
10341 else
10342 eval "$as_ac_Header=\$ac_header_preproc"
10343 fi
10344 ac_res=`eval 'as_val=${'$as_ac_Header'}
10345 $as_echo "$as_val"'`
10346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10347 $as_echo "$ac_res" >&6; }
10348
10349 fi
10350 if test `eval 'as_val=${'$as_ac_Header'}
10351 $as_echo "$as_val"'` = yes; then
10352 cat >>confdefs.h <<_ACEOF
10353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10354 _ACEOF
10355
10356 fi
10357
10358 done
10359
10360
10361 for ac_func in getpagesize
10362 do
10363 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10364 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10365 $as_echo_n "checking for $ac_func... " >&6; }
10366 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10367 $as_echo_n "(cached) " >&6
10368 else
10369 cat >conftest.$ac_ext <<_ACEOF
10370 /* confdefs.h. */
10371 _ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10377 #define $ac_func innocuous_$ac_func
10378
10379 /* System header to define __stub macros and hopefully few prototypes,
10380 which can conflict with char $ac_func (); below.
10381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10382 <limits.h> exists even on freestanding compilers. */
10383
10384 #ifdef __STDC__
10385 # include <limits.h>
10386 #else
10387 # include <assert.h>
10388 #endif
10389
10390 #undef $ac_func
10391
10392 /* Override any GCC internal prototype to avoid an error.
10393 Use char because int might match the return type of a GCC
10394 builtin and then its argument prototype would still apply. */
10395 #ifdef __cplusplus
10396 extern "C"
10397 #endif
10398 char $ac_func ();
10399 /* The GNU C library defines this for functions which it implements
10400 to always fail with ENOSYS. Some functions are actually named
10401 something starting with __ and the normal name is an alias. */
10402 #if defined __stub_$ac_func || defined __stub___$ac_func
10403 choke me
10404 #endif
10405
10406 int
10407 main ()
10408 {
10409 return $ac_func ();
10410 ;
10411 return 0;
10412 }
10413 _ACEOF
10414 rm -f conftest.$ac_objext conftest$ac_exeext
10415 if { (ac_try="$ac_link"
10416 case "(($ac_try" in
10417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418 *) ac_try_echo=$ac_try;;
10419 esac
10420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10421 $as_echo "$ac_try_echo") >&5
10422 (eval "$ac_link") 2>conftest.er1
10423 ac_status=$?
10424 grep -v '^ *+' conftest.er1 >conftest.err
10425 rm -f conftest.er1
10426 cat conftest.err >&5
10427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } && {
10429 test -z "$ac_c_werror_flag" ||
10430 test ! -s conftest.err
10431 } && test -s conftest$ac_exeext && {
10432 test "$cross_compiling" = yes ||
10433 $as_test_x conftest$ac_exeext
10434 }; then
10435 eval "$as_ac_var=yes"
10436 else
10437 $as_echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10439
10440 eval "$as_ac_var=no"
10441 fi
10442
10443 rm -rf conftest.dSYM
10444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10445 conftest$ac_exeext conftest.$ac_ext
10446 fi
10447 ac_res=`eval 'as_val=${'$as_ac_var'}
10448 $as_echo "$as_val"'`
10449 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10450 $as_echo "$ac_res" >&6; }
10451 if test `eval 'as_val=${'$as_ac_var'}
10452 $as_echo "$as_val"'` = yes; then
10453 cat >>confdefs.h <<_ACEOF
10454 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10455 _ACEOF
10456
10457 fi
10458 done
10459
10460 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10461 $as_echo_n "checking for working mmap... " >&6; }
10462 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10463 $as_echo_n "(cached) " >&6
10464 else
10465 if test "$cross_compiling" = yes; then
10466 ac_cv_func_mmap_fixed_mapped=no
10467 else
10468 cat >conftest.$ac_ext <<_ACEOF
10469 /* confdefs.h. */
10470 _ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h. */
10474 $ac_includes_default
10475 /* malloc might have been renamed as rpl_malloc. */
10476 #undef malloc
10477
10478 /* Thanks to Mike Haertel and Jim Avera for this test.
10479 Here is a matrix of mmap possibilities:
10480 mmap private not fixed
10481 mmap private fixed at somewhere currently unmapped
10482 mmap private fixed at somewhere already mapped
10483 mmap shared not fixed
10484 mmap shared fixed at somewhere currently unmapped
10485 mmap shared fixed at somewhere already mapped
10486 For private mappings, we should verify that changes cannot be read()
10487 back from the file, nor mmap's back from the file at a different
10488 address. (There have been systems where private was not correctly
10489 implemented like the infamous i386 svr4.0, and systems where the
10490 VM page cache was not coherent with the file system buffer cache
10491 like early versions of FreeBSD and possibly contemporary NetBSD.)
10492 For shared mappings, we should conversely verify that changes get
10493 propagated back to all the places they're supposed to be.
10494
10495 Grep wants private fixed already mapped.
10496 The main things grep needs to know about mmap are:
10497 * does it exist and is it safe to write into the mmap'd area
10498 * how to use it (BSD variants) */
10499
10500 #include <fcntl.h>
10501 #include <sys/mman.h>
10502
10503 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10504 char *malloc ();
10505 #endif
10506
10507 /* This mess was copied from the GNU getpagesize.h. */
10508 #ifndef HAVE_GETPAGESIZE
10509 /* Assume that all systems that can run configure have sys/param.h. */
10510 # ifndef HAVE_SYS_PARAM_H
10511 # define HAVE_SYS_PARAM_H 1
10512 # endif
10513
10514 # ifdef _SC_PAGESIZE
10515 # define getpagesize() sysconf(_SC_PAGESIZE)
10516 # else /* no _SC_PAGESIZE */
10517 # ifdef HAVE_SYS_PARAM_H
10518 # include <sys/param.h>
10519 # ifdef EXEC_PAGESIZE
10520 # define getpagesize() EXEC_PAGESIZE
10521 # else /* no EXEC_PAGESIZE */
10522 # ifdef NBPG
10523 # define getpagesize() NBPG * CLSIZE
10524 # ifndef CLSIZE
10525 # define CLSIZE 1
10526 # endif /* no CLSIZE */
10527 # else /* no NBPG */
10528 # ifdef NBPC
10529 # define getpagesize() NBPC
10530 # else /* no NBPC */
10531 # ifdef PAGESIZE
10532 # define getpagesize() PAGESIZE
10533 # endif /* PAGESIZE */
10534 # endif /* no NBPC */
10535 # endif /* no NBPG */
10536 # endif /* no EXEC_PAGESIZE */
10537 # else /* no HAVE_SYS_PARAM_H */
10538 # define getpagesize() 8192 /* punt totally */
10539 # endif /* no HAVE_SYS_PARAM_H */
10540 # endif /* no _SC_PAGESIZE */
10541
10542 #endif /* no HAVE_GETPAGESIZE */
10543
10544 int
10545 main ()
10546 {
10547 char *data, *data2, *data3;
10548 int i, pagesize;
10549 int fd;
10550
10551 pagesize = getpagesize ();
10552
10553 /* First, make a file with some known garbage in it. */
10554 data = (char *) malloc (pagesize);
10555 if (!data)
10556 return 1;
10557 for (i = 0; i < pagesize; ++i)
10558 *(data + i) = rand ();
10559 umask (0);
10560 fd = creat ("conftest.mmap", 0600);
10561 if (fd < 0)
10562 return 1;
10563 if (write (fd, data, pagesize) != pagesize)
10564 return 1;
10565 close (fd);
10566
10567 /* Next, try to mmap the file at a fixed address which already has
10568 something else allocated at it. If we can, also make sure that
10569 we see the same garbage. */
10570 fd = open ("conftest.mmap", O_RDWR);
10571 if (fd < 0)
10572 return 1;
10573 data2 = (char *) malloc (2 * pagesize);
10574 if (!data2)
10575 return 1;
10576 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10577 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10578 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10579 return 1;
10580 for (i = 0; i < pagesize; ++i)
10581 if (*(data + i) != *(data2 + i))
10582 return 1;
10583
10584 /* Finally, make sure that changes to the mapped area do not
10585 percolate back to the file as seen by read(). (This is a bug on
10586 some variants of i386 svr4.0.) */
10587 for (i = 0; i < pagesize; ++i)
10588 *(data2 + i) = *(data2 + i) + 1;
10589 data3 = (char *) malloc (pagesize);
10590 if (!data3)
10591 return 1;
10592 if (read (fd, data3, pagesize) != pagesize)
10593 return 1;
10594 for (i = 0; i < pagesize; ++i)
10595 if (*(data + i) != *(data3 + i))
10596 return 1;
10597 close (fd);
10598 return 0;
10599 }
10600 _ACEOF
10601 rm -f conftest$ac_exeext
10602 if { (ac_try="$ac_link"
10603 case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10606 esac
10607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10608 $as_echo "$ac_try_echo") >&5
10609 (eval "$ac_link") 2>&5
10610 ac_status=$?
10611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10613 { (case "(($ac_try" in
10614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10615 *) ac_try_echo=$ac_try;;
10616 esac
10617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10618 $as_echo "$ac_try_echo") >&5
10619 (eval "$ac_try") 2>&5
10620 ac_status=$?
10621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }; }; then
10623 ac_cv_func_mmap_fixed_mapped=yes
10624 else
10625 $as_echo "$as_me: program exited with status $ac_status" >&5
10626 $as_echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10628
10629 ( exit $ac_status )
10630 ac_cv_func_mmap_fixed_mapped=no
10631 fi
10632 rm -rf conftest.dSYM
10633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10634 fi
10635
10636
10637 fi
10638 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10639 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10640 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10641
10642 cat >>confdefs.h <<\_ACEOF
10643 #define HAVE_MMAP 1
10644 _ACEOF
10645
10646 fi
10647 rm -f conftest.mmap
10648
10649 if test $use_mmap_for_buffers = yes; then
10650 REL_ALLOC=no
10651 fi
10652
10653 LIBS="$libsrc_libs $LIBS"
10654
10655
10656 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10657 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10658 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10659 $as_echo_n "(cached) " >&6
10660 else
10661 ac_check_lib_save_LIBS=$LIBS
10662 LIBS="-ldnet $LIBS"
10663 cat >conftest.$ac_ext <<_ACEOF
10664 /* confdefs.h. */
10665 _ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10669
10670 /* Override any GCC internal prototype to avoid an error.
10671 Use char because int might match the return type of a GCC
10672 builtin and then its argument prototype would still apply. */
10673 #ifdef __cplusplus
10674 extern "C"
10675 #endif
10676 char dnet_ntoa ();
10677 int
10678 main ()
10679 {
10680 return dnet_ntoa ();
10681 ;
10682 return 0;
10683 }
10684 _ACEOF
10685 rm -f conftest.$ac_objext conftest$ac_exeext
10686 if { (ac_try="$ac_link"
10687 case "(($ac_try" in
10688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689 *) ac_try_echo=$ac_try;;
10690 esac
10691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10692 $as_echo "$ac_try_echo") >&5
10693 (eval "$ac_link") 2>conftest.er1
10694 ac_status=$?
10695 grep -v '^ *+' conftest.er1 >conftest.err
10696 rm -f conftest.er1
10697 cat conftest.err >&5
10698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); } && {
10700 test -z "$ac_c_werror_flag" ||
10701 test ! -s conftest.err
10702 } && test -s conftest$ac_exeext && {
10703 test "$cross_compiling" = yes ||
10704 $as_test_x conftest$ac_exeext
10705 }; then
10706 ac_cv_lib_dnet_dnet_ntoa=yes
10707 else
10708 $as_echo "$as_me: failed program was:" >&5
10709 sed 's/^/| /' conftest.$ac_ext >&5
10710
10711 ac_cv_lib_dnet_dnet_ntoa=no
10712 fi
10713
10714 rm -rf conftest.dSYM
10715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10716 conftest$ac_exeext conftest.$ac_ext
10717 LIBS=$ac_check_lib_save_LIBS
10718 fi
10719 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10720 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10721 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10722 cat >>confdefs.h <<_ACEOF
10723 #define HAVE_LIBDNET 1
10724 _ACEOF
10725
10726 LIBS="-ldnet $LIBS"
10727
10728 fi
10729
10730
10731 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10732 $as_echo_n "checking for main in -lXbsd... " >&6; }
10733 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10734 $as_echo_n "(cached) " >&6
10735 else
10736 ac_check_lib_save_LIBS=$LIBS
10737 LIBS="-lXbsd $LIBS"
10738 cat >conftest.$ac_ext <<_ACEOF
10739 /* confdefs.h. */
10740 _ACEOF
10741 cat confdefs.h >>conftest.$ac_ext
10742 cat >>conftest.$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10744
10745
10746 int
10747 main ()
10748 {
10749 return main ();
10750 ;
10751 return 0;
10752 }
10753 _ACEOF
10754 rm -f conftest.$ac_objext conftest$ac_exeext
10755 if { (ac_try="$ac_link"
10756 case "(($ac_try" in
10757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10759 esac
10760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10761 $as_echo "$ac_try_echo") >&5
10762 (eval "$ac_link") 2>conftest.er1
10763 ac_status=$?
10764 grep -v '^ *+' conftest.er1 >conftest.err
10765 rm -f conftest.er1
10766 cat conftest.err >&5
10767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } && {
10769 test -z "$ac_c_werror_flag" ||
10770 test ! -s conftest.err
10771 } && test -s conftest$ac_exeext && {
10772 test "$cross_compiling" = yes ||
10773 $as_test_x conftest$ac_exeext
10774 }; then
10775 ac_cv_lib_Xbsd_main=yes
10776 else
10777 $as_echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10779
10780 ac_cv_lib_Xbsd_main=no
10781 fi
10782
10783 rm -rf conftest.dSYM
10784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10785 conftest$ac_exeext conftest.$ac_ext
10786 LIBS=$ac_check_lib_save_LIBS
10787 fi
10788 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10789 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10790 if test $ac_cv_lib_Xbsd_main = yes; then
10791 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10792 fi
10793
10794
10795
10796 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10797 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10798 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10799 $as_echo_n "(cached) " >&6
10800 else
10801 ac_check_lib_save_LIBS=$LIBS
10802 LIBS="-lpthreads $LIBS"
10803 cat >conftest.$ac_ext <<_ACEOF
10804 /* confdefs.h. */
10805 _ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10809
10810 /* Override any GCC internal prototype to avoid an error.
10811 Use char because int might match the return type of a GCC
10812 builtin and then its argument prototype would still apply. */
10813 #ifdef __cplusplus
10814 extern "C"
10815 #endif
10816 char cma_open ();
10817 int
10818 main ()
10819 {
10820 return cma_open ();
10821 ;
10822 return 0;
10823 }
10824 _ACEOF
10825 rm -f conftest.$ac_objext conftest$ac_exeext
10826 if { (ac_try="$ac_link"
10827 case "(($ac_try" in
10828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10830 esac
10831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10832 $as_echo "$ac_try_echo") >&5
10833 (eval "$ac_link") 2>conftest.er1
10834 ac_status=$?
10835 grep -v '^ *+' conftest.er1 >conftest.err
10836 rm -f conftest.er1
10837 cat conftest.err >&5
10838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } && {
10840 test -z "$ac_c_werror_flag" ||
10841 test ! -s conftest.err
10842 } && test -s conftest$ac_exeext && {
10843 test "$cross_compiling" = yes ||
10844 $as_test_x conftest$ac_exeext
10845 }; then
10846 ac_cv_lib_pthreads_cma_open=yes
10847 else
10848 $as_echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10850
10851 ac_cv_lib_pthreads_cma_open=no
10852 fi
10853
10854 rm -rf conftest.dSYM
10855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10856 conftest$ac_exeext conftest.$ac_ext
10857 LIBS=$ac_check_lib_save_LIBS
10858 fi
10859 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10860 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10861 if test $ac_cv_lib_pthreads_cma_open = yes; then
10862 cat >>confdefs.h <<_ACEOF
10863 #define HAVE_LIBPTHREADS 1
10864 _ACEOF
10865
10866 LIBS="-lpthreads $LIBS"
10867
10868 fi
10869
10870
10871
10872 case ${host_os} in
10873 aix*)
10874 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10875 $as_echo_n "checking for -bbigtoc option... " >&6; }
10876 if test "${gdb_cv_bigtoc+set}" = set; then
10877 $as_echo_n "(cached) " >&6
10878 else
10879
10880 case $GCC in
10881 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10882 *) gdb_cv_bigtoc=-bbigtoc ;;
10883 esac
10884
10885 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10886 cat >conftest.$ac_ext <<_ACEOF
10887 /* confdefs.h. */
10888 _ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h. */
10892
10893 int
10894 main ()
10895 {
10896 int i;
10897 ;
10898 return 0;
10899 }
10900 _ACEOF
10901 rm -f conftest.$ac_objext conftest$ac_exeext
10902 if { (ac_try="$ac_link"
10903 case "(($ac_try" in
10904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10905 *) ac_try_echo=$ac_try;;
10906 esac
10907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10908 $as_echo "$ac_try_echo") >&5
10909 (eval "$ac_link") 2>conftest.er1
10910 ac_status=$?
10911 grep -v '^ *+' conftest.er1 >conftest.err
10912 rm -f conftest.er1
10913 cat conftest.err >&5
10914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } && {
10916 test -z "$ac_c_werror_flag" ||
10917 test ! -s conftest.err
10918 } && test -s conftest$ac_exeext && {
10919 test "$cross_compiling" = yes ||
10920 $as_test_x conftest$ac_exeext
10921 }; then
10922 :
10923 else
10924 $as_echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10926
10927 gdb_cv_bigtoc=
10928 fi
10929
10930 rm -rf conftest.dSYM
10931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10932 conftest$ac_exeext conftest.$ac_ext
10933
10934 fi
10935 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10936 $as_echo "$gdb_cv_bigtoc" >&6; }
10937 ;;
10938 esac
10939
10940 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10941 # used for the tests that follow. We set them back to REAL_CFLAGS and
10942 # REAL_CPPFLAGS later on.
10943
10944 REAL_CPPFLAGS="$CPPFLAGS"
10945
10946 if test "${HAVE_X11}" = "yes"; then
10947 DEFS="$C_SWITCH_X_SITE $DEFS"
10948 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10949 LIBS="$LIBX $LIBS"
10950 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10951 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10952
10953 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10954 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10955 # but it's more convenient here to set LD_RUN_PATH
10956 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10957 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10958 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10959 export LD_RUN_PATH
10960 fi
10961
10962 if test "${opsys}" = "gnu-linux"; then
10963 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10964 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10965 cat >conftest.$ac_ext <<_ACEOF
10966 /* confdefs.h. */
10967 _ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h. */
10971
10972 int
10973 main ()
10974 {
10975 XOpenDisplay ("foo");
10976 ;
10977 return 0;
10978 }
10979 _ACEOF
10980 rm -f conftest.$ac_objext conftest$ac_exeext
10981 if { (ac_try="$ac_link"
10982 case "(($ac_try" in
10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984 *) ac_try_echo=$ac_try;;
10985 esac
10986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10987 $as_echo "$ac_try_echo") >&5
10988 (eval "$ac_link") 2>conftest.er1
10989 ac_status=$?
10990 grep -v '^ *+' conftest.er1 >conftest.err
10991 rm -f conftest.er1
10992 cat conftest.err >&5
10993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } && {
10995 test -z "$ac_c_werror_flag" ||
10996 test ! -s conftest.err
10997 } && test -s conftest$ac_exeext && {
10998 test "$cross_compiling" = yes ||
10999 $as_test_x conftest$ac_exeext
11000 }; then
11001 xlinux_first_failure=no
11002 else
11003 $as_echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.$ac_ext >&5
11005
11006 xlinux_first_failure=yes
11007 fi
11008
11009 rm -rf conftest.dSYM
11010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11011 conftest$ac_exeext conftest.$ac_ext
11012 if test "${xlinux_first_failure}" = "yes"; then
11013 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11014 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11015 OLD_CPPFLAGS="$CPPFLAGS"
11016 OLD_LIBS="$LIBS"
11017 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11018 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11019 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11020 LIBS="$LIBS -b i486-linuxaout"
11021 cat >conftest.$ac_ext <<_ACEOF
11022 /* confdefs.h. */
11023 _ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11027
11028 int
11029 main ()
11030 {
11031 XOpenDisplay ("foo");
11032 ;
11033 return 0;
11034 }
11035 _ACEOF
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (ac_try="$ac_link"
11038 case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11041 esac
11042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11043 $as_echo "$ac_try_echo") >&5
11044 (eval "$ac_link") 2>conftest.er1
11045 ac_status=$?
11046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
11049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && {
11051 test -z "$ac_c_werror_flag" ||
11052 test ! -s conftest.err
11053 } && test -s conftest$ac_exeext && {
11054 test "$cross_compiling" = yes ||
11055 $as_test_x conftest$ac_exeext
11056 }; then
11057 xlinux_second_failure=no
11058 else
11059 $as_echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.$ac_ext >&5
11061
11062 xlinux_second_failure=yes
11063 fi
11064
11065 rm -rf conftest.dSYM
11066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11067 conftest$ac_exeext conftest.$ac_ext
11068 if test "${xlinux_second_failure}" = "yes"; then
11069 # If we get the same failure with -b, there is no use adding -b.
11070 # So take it out. This plays safe.
11071 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11072 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11073 CPPFLAGS="$OLD_CPPFLAGS"
11074 LIBS="$OLD_LIBS"
11075 { $as_echo "$as_me:$LINENO: result: no" >&5
11076 $as_echo "no" >&6; }
11077 else
11078 { $as_echo "$as_me:$LINENO: result: yes" >&5
11079 $as_echo "yes" >&6; }
11080 fi
11081 else
11082 { $as_echo "$as_me:$LINENO: result: no" >&5
11083 $as_echo "no" >&6; }
11084 fi
11085 fi
11086
11087 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11088 # header files included from there.
11089 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11090 $as_echo_n "checking for Xkb... " >&6; }
11091 cat >conftest.$ac_ext <<_ACEOF
11092 /* confdefs.h. */
11093 _ACEOF
11094 cat confdefs.h >>conftest.$ac_ext
11095 cat >>conftest.$ac_ext <<_ACEOF
11096 /* end confdefs.h. */
11097 #include <X11/Xlib.h>
11098 #include <X11/XKBlib.h>
11099 int
11100 main ()
11101 {
11102 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11103 ;
11104 return 0;
11105 }
11106 _ACEOF
11107 rm -f conftest.$ac_objext conftest$ac_exeext
11108 if { (ac_try="$ac_link"
11109 case "(($ac_try" in
11110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111 *) ac_try_echo=$ac_try;;
11112 esac
11113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11114 $as_echo "$ac_try_echo") >&5
11115 (eval "$ac_link") 2>conftest.er1
11116 ac_status=$?
11117 grep -v '^ *+' conftest.er1 >conftest.err
11118 rm -f conftest.er1
11119 cat conftest.err >&5
11120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } && {
11122 test -z "$ac_c_werror_flag" ||
11123 test ! -s conftest.err
11124 } && test -s conftest$ac_exeext && {
11125 test "$cross_compiling" = yes ||
11126 $as_test_x conftest$ac_exeext
11127 }; then
11128 emacs_xkb=yes
11129 else
11130 $as_echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.$ac_ext >&5
11132
11133 emacs_xkb=no
11134 fi
11135
11136 rm -rf conftest.dSYM
11137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11138 conftest$ac_exeext conftest.$ac_ext
11139 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11140 $as_echo "$emacs_xkb" >&6; }
11141 if test $emacs_xkb = yes; then
11142
11143 cat >>confdefs.h <<\_ACEOF
11144 #define HAVE_XKBGETKEYBOARD 1
11145 _ACEOF
11146
11147 fi
11148
11149
11150
11151
11152
11153 for ac_func in XrmSetDatabase XScreenResourceString \
11154 XScreenNumberOfScreen XSetWMProtocols
11155 do
11156 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11157 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11158 $as_echo_n "checking for $ac_func... " >&6; }
11159 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11160 $as_echo_n "(cached) " >&6
11161 else
11162 cat >conftest.$ac_ext <<_ACEOF
11163 /* confdefs.h. */
11164 _ACEOF
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h. */
11168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11170 #define $ac_func innocuous_$ac_func
11171
11172 /* System header to define __stub macros and hopefully few prototypes,
11173 which can conflict with char $ac_func (); below.
11174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11175 <limits.h> exists even on freestanding compilers. */
11176
11177 #ifdef __STDC__
11178 # include <limits.h>
11179 #else
11180 # include <assert.h>
11181 #endif
11182
11183 #undef $ac_func
11184
11185 /* Override any GCC internal prototype to avoid an error.
11186 Use char because int might match the return type of a GCC
11187 builtin and then its argument prototype would still apply. */
11188 #ifdef __cplusplus
11189 extern "C"
11190 #endif
11191 char $ac_func ();
11192 /* The GNU C library defines this for functions which it implements
11193 to always fail with ENOSYS. Some functions are actually named
11194 something starting with __ and the normal name is an alias. */
11195 #if defined __stub_$ac_func || defined __stub___$ac_func
11196 choke me
11197 #endif
11198
11199 int
11200 main ()
11201 {
11202 return $ac_func ();
11203 ;
11204 return 0;
11205 }
11206 _ACEOF
11207 rm -f conftest.$ac_objext conftest$ac_exeext
11208 if { (ac_try="$ac_link"
11209 case "(($ac_try" in
11210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11211 *) ac_try_echo=$ac_try;;
11212 esac
11213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11214 $as_echo "$ac_try_echo") >&5
11215 (eval "$ac_link") 2>conftest.er1
11216 ac_status=$?
11217 grep -v '^ *+' conftest.er1 >conftest.err
11218 rm -f conftest.er1
11219 cat conftest.err >&5
11220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); } && {
11222 test -z "$ac_c_werror_flag" ||
11223 test ! -s conftest.err
11224 } && test -s conftest$ac_exeext && {
11225 test "$cross_compiling" = yes ||
11226 $as_test_x conftest$ac_exeext
11227 }; then
11228 eval "$as_ac_var=yes"
11229 else
11230 $as_echo "$as_me: failed program was:" >&5
11231 sed 's/^/| /' conftest.$ac_ext >&5
11232
11233 eval "$as_ac_var=no"
11234 fi
11235
11236 rm -rf conftest.dSYM
11237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11238 conftest$ac_exeext conftest.$ac_ext
11239 fi
11240 ac_res=`eval 'as_val=${'$as_ac_var'}
11241 $as_echo "$as_val"'`
11242 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11243 $as_echo "$ac_res" >&6; }
11244 if test `eval 'as_val=${'$as_ac_var'}
11245 $as_echo "$as_val"'` = yes; then
11246 cat >>confdefs.h <<_ACEOF
11247 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11248 _ACEOF
11249
11250 fi
11251 done
11252
11253 fi
11254
11255 if test "${window_system}" = "x11"; then
11256 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11257 $as_echo_n "checking X11 version 6... " >&6; }
11258 if test "${emacs_cv_x11_version_6+set}" = set; then
11259 $as_echo_n "(cached) " >&6
11260 else
11261 cat >conftest.$ac_ext <<_ACEOF
11262 /* confdefs.h. */
11263 _ACEOF
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h. */
11267 #include <X11/Xlib.h>
11268 int
11269 main ()
11270 {
11271 #if XlibSpecificationRelease < 6
11272 fail;
11273 #endif
11274
11275 ;
11276 return 0;
11277 }
11278 _ACEOF
11279 rm -f conftest.$ac_objext conftest$ac_exeext
11280 if { (ac_try="$ac_link"
11281 case "(($ac_try" in
11282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283 *) ac_try_echo=$ac_try;;
11284 esac
11285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11286 $as_echo "$ac_try_echo") >&5
11287 (eval "$ac_link") 2>conftest.er1
11288 ac_status=$?
11289 grep -v '^ *+' conftest.er1 >conftest.err
11290 rm -f conftest.er1
11291 cat conftest.err >&5
11292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } && {
11294 test -z "$ac_c_werror_flag" ||
11295 test ! -s conftest.err
11296 } && test -s conftest$ac_exeext && {
11297 test "$cross_compiling" = yes ||
11298 $as_test_x conftest$ac_exeext
11299 }; then
11300 emacs_cv_x11_version_6=yes
11301 else
11302 $as_echo "$as_me: failed program was:" >&5
11303 sed 's/^/| /' conftest.$ac_ext >&5
11304
11305 emacs_cv_x11_version_6=no
11306 fi
11307
11308 rm -rf conftest.dSYM
11309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11310 conftest$ac_exeext conftest.$ac_ext
11311 fi
11312
11313 if test $emacs_cv_x11_version_6 = yes; then
11314 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11315 $as_echo "6 or newer" >&6; }
11316
11317 cat >>confdefs.h <<\_ACEOF
11318 #define HAVE_X11R6 1
11319 _ACEOF
11320
11321 else
11322 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11323 $as_echo "before 6" >&6; }
11324 fi
11325 fi
11326
11327
11328 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11329 HAVE_RSVG=no
11330 if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then
11331 if test "${with_rsvg}" != "no"; then
11332 RSVG_REQUIRED=2.11.0
11333 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11334
11335
11336 succeeded=no
11337
11338 # Extract the first word of "pkg-config", so it can be a program name with args.
11339 set dummy pkg-config; ac_word=$2
11340 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11341 $as_echo_n "checking for $ac_word... " >&6; }
11342 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11343 $as_echo_n "(cached) " >&6
11344 else
11345 case $PKG_CONFIG in
11346 [\\/]* | ?:[\\/]*)
11347 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11348 ;;
11349 *)
11350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11351 for as_dir in $PATH
11352 do
11353 IFS=$as_save_IFS
11354 test -z "$as_dir" && as_dir=.
11355 for ac_exec_ext in '' $ac_executable_extensions; do
11356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11357 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11358 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11359 break 2
11360 fi
11361 done
11362 done
11363 IFS=$as_save_IFS
11364
11365 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11366 ;;
11367 esac
11368 fi
11369 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11370 if test -n "$PKG_CONFIG"; then
11371 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11372 $as_echo "$PKG_CONFIG" >&6; }
11373 else
11374 { $as_echo "$as_me:$LINENO: result: no" >&5
11375 $as_echo "no" >&6; }
11376 fi
11377
11378
11379
11380 if test "$PKG_CONFIG" = "no" ; then
11381 :
11382 else
11383 PKG_CONFIG_MIN_VERSION=0.9.0
11384 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11385 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11386 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11387
11388 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11389 { $as_echo "$as_me:$LINENO: result: yes" >&5
11390 $as_echo "yes" >&6; }
11391 succeeded=yes
11392
11393 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11394 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11395 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11396 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11397 $as_echo "$RSVG_CFLAGS" >&6; }
11398
11399 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11400 $as_echo_n "checking RSVG_LIBS... " >&6; }
11401 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11402 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11403 $as_echo "$RSVG_LIBS" >&6; }
11404 else
11405 { $as_echo "$as_me:$LINENO: result: no" >&5
11406 $as_echo "no" >&6; }
11407 RSVG_CFLAGS=""
11408 RSVG_LIBS=""
11409 ## If we have a custom action on failure, don't print errors, but
11410 ## do set a variable so people can do so.
11411 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11412
11413 fi
11414
11415
11416
11417 else
11418 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11419 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11420 fi
11421 fi
11422
11423 if test $succeeded = yes; then
11424 :
11425 else
11426 :
11427 fi
11428
11429
11430
11431
11432 if test ".${RSVG_CFLAGS}" != "."; then
11433 HAVE_RSVG=yes
11434
11435 cat >>confdefs.h <<\_ACEOF
11436 #define HAVE_RSVG 1
11437 _ACEOF
11438
11439 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11440 LIBS="$RSVG_LIBS $LIBS"
11441 fi
11442 fi
11443 fi
11444
11445
11446 HAVE_GTK=no
11447 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11448 GLIB_REQUIRED=2.6
11449 GTK_REQUIRED=2.6
11450 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11451
11452
11453 succeeded=no
11454
11455 # Extract the first word of "pkg-config", so it can be a program name with args.
11456 set dummy pkg-config; ac_word=$2
11457 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11458 $as_echo_n "checking for $ac_word... " >&6; }
11459 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11460 $as_echo_n "(cached) " >&6
11461 else
11462 case $PKG_CONFIG in
11463 [\\/]* | ?:[\\/]*)
11464 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11465 ;;
11466 *)
11467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11468 for as_dir in $PATH
11469 do
11470 IFS=$as_save_IFS
11471 test -z "$as_dir" && as_dir=.
11472 for ac_exec_ext in '' $ac_executable_extensions; do
11473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11474 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11475 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11476 break 2
11477 fi
11478 done
11479 done
11480 IFS=$as_save_IFS
11481
11482 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11483 ;;
11484 esac
11485 fi
11486 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11487 if test -n "$PKG_CONFIG"; then
11488 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11489 $as_echo "$PKG_CONFIG" >&6; }
11490 else
11491 { $as_echo "$as_me:$LINENO: result: no" >&5
11492 $as_echo "no" >&6; }
11493 fi
11494
11495
11496
11497 if test "$PKG_CONFIG" = "no" ; then
11498 pkg_check_gtk=no
11499 else
11500 PKG_CONFIG_MIN_VERSION=0.9.0
11501 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11502 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11503 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11504
11505 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11506 { $as_echo "$as_me:$LINENO: result: yes" >&5
11507 $as_echo "yes" >&6; }
11508 succeeded=yes
11509
11510 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11511 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11512 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11513 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11514 $as_echo "$GTK_CFLAGS" >&6; }
11515
11516 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11517 $as_echo_n "checking GTK_LIBS... " >&6; }
11518 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11519 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11520 $as_echo "$GTK_LIBS" >&6; }
11521 else
11522 { $as_echo "$as_me:$LINENO: result: no" >&5
11523 $as_echo "no" >&6; }
11524 GTK_CFLAGS=""
11525 GTK_LIBS=""
11526 ## If we have a custom action on failure, don't print errors, but
11527 ## do set a variable so people can do so.
11528 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11529
11530 fi
11531
11532
11533
11534 else
11535 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11536 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11537 fi
11538 fi
11539
11540 if test $succeeded = yes; then
11541 pkg_check_gtk=yes
11542 else
11543 pkg_check_gtk=no
11544 fi
11545
11546 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11547 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11548 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11549 { (exit 1); exit 1; }; }
11550 fi
11551 fi
11552
11553
11554 if test x"$pkg_check_gtk" = xyes; then
11555
11556
11557
11558 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11559 CFLAGS="$CFLAGS $GTK_CFLAGS"
11560 LIBS="$GTK_LIBS $LIBS"
11561 GTK_COMPILES=no
11562
11563 for ac_func in gtk_main
11564 do
11565 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11566 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11567 $as_echo_n "checking for $ac_func... " >&6; }
11568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11569 $as_echo_n "(cached) " >&6
11570 else
11571 cat >conftest.$ac_ext <<_ACEOF
11572 /* confdefs.h. */
11573 _ACEOF
11574 cat confdefs.h >>conftest.$ac_ext
11575 cat >>conftest.$ac_ext <<_ACEOF
11576 /* end confdefs.h. */
11577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11579 #define $ac_func innocuous_$ac_func
11580
11581 /* System header to define __stub macros and hopefully few prototypes,
11582 which can conflict with char $ac_func (); below.
11583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11584 <limits.h> exists even on freestanding compilers. */
11585
11586 #ifdef __STDC__
11587 # include <limits.h>
11588 #else
11589 # include <assert.h>
11590 #endif
11591
11592 #undef $ac_func
11593
11594 /* Override any GCC internal prototype to avoid an error.
11595 Use char because int might match the return type of a GCC
11596 builtin and then its argument prototype would still apply. */
11597 #ifdef __cplusplus
11598 extern "C"
11599 #endif
11600 char $ac_func ();
11601 /* The GNU C library defines this for functions which it implements
11602 to always fail with ENOSYS. Some functions are actually named
11603 something starting with __ and the normal name is an alias. */
11604 #if defined __stub_$ac_func || defined __stub___$ac_func
11605 choke me
11606 #endif
11607
11608 int
11609 main ()
11610 {
11611 return $ac_func ();
11612 ;
11613 return 0;
11614 }
11615 _ACEOF
11616 rm -f conftest.$ac_objext conftest$ac_exeext
11617 if { (ac_try="$ac_link"
11618 case "(($ac_try" in
11619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620 *) ac_try_echo=$ac_try;;
11621 esac
11622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11623 $as_echo "$ac_try_echo") >&5
11624 (eval "$ac_link") 2>conftest.er1
11625 ac_status=$?
11626 grep -v '^ *+' conftest.er1 >conftest.err
11627 rm -f conftest.er1
11628 cat conftest.err >&5
11629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); } && {
11631 test -z "$ac_c_werror_flag" ||
11632 test ! -s conftest.err
11633 } && test -s conftest$ac_exeext && {
11634 test "$cross_compiling" = yes ||
11635 $as_test_x conftest$ac_exeext
11636 }; then
11637 eval "$as_ac_var=yes"
11638 else
11639 $as_echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11641
11642 eval "$as_ac_var=no"
11643 fi
11644
11645 rm -rf conftest.dSYM
11646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11647 conftest$ac_exeext conftest.$ac_ext
11648 fi
11649 ac_res=`eval 'as_val=${'$as_ac_var'}
11650 $as_echo "$as_val"'`
11651 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11652 $as_echo "$ac_res" >&6; }
11653 if test `eval 'as_val=${'$as_ac_var'}
11654 $as_echo "$as_val"'` = yes; then
11655 cat >>confdefs.h <<_ACEOF
11656 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11657 _ACEOF
11658 GTK_COMPILES=yes
11659 fi
11660 done
11661
11662 if test "${GTK_COMPILES}" != "yes"; then
11663 if test "$USE_X_TOOLKIT" != "maybe"; then
11664 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11665 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11666 { (exit 1); exit 1; }; };
11667 fi
11668 else
11669 HAVE_GTK=yes
11670
11671 cat >>confdefs.h <<\_ACEOF
11672 #define USE_GTK 1
11673 _ACEOF
11674
11675 USE_X_TOOLKIT=none
11676 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11677 :
11678 else
11679 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11680 closing open displays. This is no problem if you just use
11681 one display, but if you use more than one and close one of them
11682 Emacs may crash." >&5
11683 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11684 closing open displays. This is no problem if you just use
11685 one display, but if you use more than one and close one of them
11686 Emacs may crash." >&2;}
11687 sleep 3
11688 fi
11689 fi
11690
11691 fi
11692
11693
11694 if test "${HAVE_GTK}" = "yes"; then
11695
11696 if test "$with_toolkit_scroll_bars" != no; then
11697 with_toolkit_scroll_bars=yes
11698 fi
11699
11700 HAVE_GTK_MULTIDISPLAY=no
11701
11702 for ac_func in gdk_display_open
11703 do
11704 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11705 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11706 $as_echo_n "checking for $ac_func... " >&6; }
11707 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11708 $as_echo_n "(cached) " >&6
11709 else
11710 cat >conftest.$ac_ext <<_ACEOF
11711 /* confdefs.h. */
11712 _ACEOF
11713 cat confdefs.h >>conftest.$ac_ext
11714 cat >>conftest.$ac_ext <<_ACEOF
11715 /* end confdefs.h. */
11716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11718 #define $ac_func innocuous_$ac_func
11719
11720 /* System header to define __stub macros and hopefully few prototypes,
11721 which can conflict with char $ac_func (); below.
11722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11723 <limits.h> exists even on freestanding compilers. */
11724
11725 #ifdef __STDC__
11726 # include <limits.h>
11727 #else
11728 # include <assert.h>
11729 #endif
11730
11731 #undef $ac_func
11732
11733 /* Override any GCC internal prototype to avoid an error.
11734 Use char because int might match the return type of a GCC
11735 builtin and then its argument prototype would still apply. */
11736 #ifdef __cplusplus
11737 extern "C"
11738 #endif
11739 char $ac_func ();
11740 /* The GNU C library defines this for functions which it implements
11741 to always fail with ENOSYS. Some functions are actually named
11742 something starting with __ and the normal name is an alias. */
11743 #if defined __stub_$ac_func || defined __stub___$ac_func
11744 choke me
11745 #endif
11746
11747 int
11748 main ()
11749 {
11750 return $ac_func ();
11751 ;
11752 return 0;
11753 }
11754 _ACEOF
11755 rm -f conftest.$ac_objext conftest$ac_exeext
11756 if { (ac_try="$ac_link"
11757 case "(($ac_try" in
11758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759 *) ac_try_echo=$ac_try;;
11760 esac
11761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11762 $as_echo "$ac_try_echo") >&5
11763 (eval "$ac_link") 2>conftest.er1
11764 ac_status=$?
11765 grep -v '^ *+' conftest.er1 >conftest.err
11766 rm -f conftest.er1
11767 cat conftest.err >&5
11768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } && {
11770 test -z "$ac_c_werror_flag" ||
11771 test ! -s conftest.err
11772 } && test -s conftest$ac_exeext && {
11773 test "$cross_compiling" = yes ||
11774 $as_test_x conftest$ac_exeext
11775 }; then
11776 eval "$as_ac_var=yes"
11777 else
11778 $as_echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.$ac_ext >&5
11780
11781 eval "$as_ac_var=no"
11782 fi
11783
11784 rm -rf conftest.dSYM
11785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11786 conftest$ac_exeext conftest.$ac_ext
11787 fi
11788 ac_res=`eval 'as_val=${'$as_ac_var'}
11789 $as_echo "$as_val"'`
11790 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11791 $as_echo "$ac_res" >&6; }
11792 if test `eval 'as_val=${'$as_ac_var'}
11793 $as_echo "$as_val"'` = yes; then
11794 cat >>confdefs.h <<_ACEOF
11795 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11796 _ACEOF
11797 HAVE_GTK_MULTIDISPLAY=yes
11798 fi
11799 done
11800
11801 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11802
11803 cat >>confdefs.h <<\_ACEOF
11804 #define HAVE_GTK_MULTIDISPLAY 1
11805 _ACEOF
11806
11807 fi
11808
11809 HAVE_GTK_FILE_SELECTION=no
11810 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11811 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11812 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11813 $as_echo_n "(cached) " >&6
11814 else
11815 cat >conftest.$ac_ext <<_ACEOF
11816 /* confdefs.h. */
11817 _ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h. */
11821 $ac_includes_default
11822 #include <gtk/gtk.h>
11823
11824 int
11825 main ()
11826 {
11827 #ifndef GTK_TYPE_FILE_SELECTION
11828 (void) GTK_TYPE_FILE_SELECTION;
11829 #endif
11830
11831 ;
11832 return 0;
11833 }
11834 _ACEOF
11835 rm -f conftest.$ac_objext
11836 if { (ac_try="$ac_compile"
11837 case "(($ac_try" in
11838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839 *) ac_try_echo=$ac_try;;
11840 esac
11841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11842 $as_echo "$ac_try_echo") >&5
11843 (eval "$ac_compile") 2>conftest.er1
11844 ac_status=$?
11845 grep -v '^ *+' conftest.er1 >conftest.err
11846 rm -f conftest.er1
11847 cat conftest.err >&5
11848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } && {
11850 test -z "$ac_c_werror_flag" ||
11851 test ! -s conftest.err
11852 } && test -s conftest.$ac_objext; then
11853 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11854 else
11855 $as_echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11857
11858 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11859 fi
11860
11861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11862 fi
11863 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11864 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11865 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11866 HAVE_GTK_FILE_SELECTION=yes
11867 else
11868 HAVE_GTK_FILE_SELECTION=no
11869 fi
11870
11871 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11872
11873 for ac_func in gtk_file_selection_new
11874 do
11875 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11876 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11877 $as_echo_n "checking for $ac_func... " >&6; }
11878 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11879 $as_echo_n "(cached) " >&6
11880 else
11881 cat >conftest.$ac_ext <<_ACEOF
11882 /* confdefs.h. */
11883 _ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11889 #define $ac_func innocuous_$ac_func
11890
11891 /* System header to define __stub macros and hopefully few prototypes,
11892 which can conflict with char $ac_func (); below.
11893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11894 <limits.h> exists even on freestanding compilers. */
11895
11896 #ifdef __STDC__
11897 # include <limits.h>
11898 #else
11899 # include <assert.h>
11900 #endif
11901
11902 #undef $ac_func
11903
11904 /* Override any GCC internal prototype to avoid an error.
11905 Use char because int might match the return type of a GCC
11906 builtin and then its argument prototype would still apply. */
11907 #ifdef __cplusplus
11908 extern "C"
11909 #endif
11910 char $ac_func ();
11911 /* The GNU C library defines this for functions which it implements
11912 to always fail with ENOSYS. Some functions are actually named
11913 something starting with __ and the normal name is an alias. */
11914 #if defined __stub_$ac_func || defined __stub___$ac_func
11915 choke me
11916 #endif
11917
11918 int
11919 main ()
11920 {
11921 return $ac_func ();
11922 ;
11923 return 0;
11924 }
11925 _ACEOF
11926 rm -f conftest.$ac_objext conftest$ac_exeext
11927 if { (ac_try="$ac_link"
11928 case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11931 esac
11932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11933 $as_echo "$ac_try_echo") >&5
11934 (eval "$ac_link") 2>conftest.er1
11935 ac_status=$?
11936 grep -v '^ *+' conftest.er1 >conftest.err
11937 rm -f conftest.er1
11938 cat conftest.err >&5
11939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } && {
11941 test -z "$ac_c_werror_flag" ||
11942 test ! -s conftest.err
11943 } && test -s conftest$ac_exeext && {
11944 test "$cross_compiling" = yes ||
11945 $as_test_x conftest$ac_exeext
11946 }; then
11947 eval "$as_ac_var=yes"
11948 else
11949 $as_echo "$as_me: failed program was:" >&5
11950 sed 's/^/| /' conftest.$ac_ext >&5
11951
11952 eval "$as_ac_var=no"
11953 fi
11954
11955 rm -rf conftest.dSYM
11956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11957 conftest$ac_exeext conftest.$ac_ext
11958 fi
11959 ac_res=`eval 'as_val=${'$as_ac_var'}
11960 $as_echo "$as_val"'`
11961 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11962 $as_echo "$ac_res" >&6; }
11963 if test `eval 'as_val=${'$as_ac_var'}
11964 $as_echo "$as_val"'` = yes; then
11965 cat >>confdefs.h <<_ACEOF
11966 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11967 _ACEOF
11968 HAVE_GTK_FILE_SELECTION=yes
11969 else
11970 HAVE_GTK_FILE_SELECTION=no
11971 fi
11972 done
11973
11974 fi
11975
11976 HAVE_GTK_FILE_CHOOSER=no
11977 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
11978 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
11979 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
11980 $as_echo_n "(cached) " >&6
11981 else
11982 cat >conftest.$ac_ext <<_ACEOF
11983 /* confdefs.h. */
11984 _ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11988 $ac_includes_default
11989 #include <gtk/gtk.h>
11990
11991 int
11992 main ()
11993 {
11994 #ifndef GTK_TYPE_FILE_CHOOSER
11995 (void) GTK_TYPE_FILE_CHOOSER;
11996 #endif
11997
11998 ;
11999 return 0;
12000 }
12001 _ACEOF
12002 rm -f conftest.$ac_objext
12003 if { (ac_try="$ac_compile"
12004 case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12007 esac
12008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12009 $as_echo "$ac_try_echo") >&5
12010 (eval "$ac_compile") 2>conftest.er1
12011 ac_status=$?
12012 grep -v '^ *+' conftest.er1 >conftest.err
12013 rm -f conftest.er1
12014 cat conftest.err >&5
12015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } && {
12017 test -z "$ac_c_werror_flag" ||
12018 test ! -s conftest.err
12019 } && test -s conftest.$ac_objext; then
12020 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12021 else
12022 $as_echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12024
12025 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12026 fi
12027
12028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12029 fi
12030 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12031 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12032 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12033 HAVE_GTK_FILE_CHOOSER=yes
12034 else
12035 HAVE_GTK_FILE_CHOOSER=no
12036 fi
12037
12038 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12039
12040 for ac_func in gtk_file_chooser_dialog_new
12041 do
12042 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12043 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12044 $as_echo_n "checking for $ac_func... " >&6; }
12045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12046 $as_echo_n "(cached) " >&6
12047 else
12048 cat >conftest.$ac_ext <<_ACEOF
12049 /* confdefs.h. */
12050 _ACEOF
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h. */
12054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12056 #define $ac_func innocuous_$ac_func
12057
12058 /* System header to define __stub macros and hopefully few prototypes,
12059 which can conflict with char $ac_func (); below.
12060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12061 <limits.h> exists even on freestanding compilers. */
12062
12063 #ifdef __STDC__
12064 # include <limits.h>
12065 #else
12066 # include <assert.h>
12067 #endif
12068
12069 #undef $ac_func
12070
12071 /* Override any GCC internal prototype to avoid an error.
12072 Use char because int might match the return type of a GCC
12073 builtin and then its argument prototype would still apply. */
12074 #ifdef __cplusplus
12075 extern "C"
12076 #endif
12077 char $ac_func ();
12078 /* The GNU C library defines this for functions which it implements
12079 to always fail with ENOSYS. Some functions are actually named
12080 something starting with __ and the normal name is an alias. */
12081 #if defined __stub_$ac_func || defined __stub___$ac_func
12082 choke me
12083 #endif
12084
12085 int
12086 main ()
12087 {
12088 return $ac_func ();
12089 ;
12090 return 0;
12091 }
12092 _ACEOF
12093 rm -f conftest.$ac_objext conftest$ac_exeext
12094 if { (ac_try="$ac_link"
12095 case "(($ac_try" in
12096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097 *) ac_try_echo=$ac_try;;
12098 esac
12099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12100 $as_echo "$ac_try_echo") >&5
12101 (eval "$ac_link") 2>conftest.er1
12102 ac_status=$?
12103 grep -v '^ *+' conftest.er1 >conftest.err
12104 rm -f conftest.er1
12105 cat conftest.err >&5
12106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } && {
12108 test -z "$ac_c_werror_flag" ||
12109 test ! -s conftest.err
12110 } && test -s conftest$ac_exeext && {
12111 test "$cross_compiling" = yes ||
12112 $as_test_x conftest$ac_exeext
12113 }; then
12114 eval "$as_ac_var=yes"
12115 else
12116 $as_echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.$ac_ext >&5
12118
12119 eval "$as_ac_var=no"
12120 fi
12121
12122 rm -rf conftest.dSYM
12123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12124 conftest$ac_exeext conftest.$ac_ext
12125 fi
12126 ac_res=`eval 'as_val=${'$as_ac_var'}
12127 $as_echo "$as_val"'`
12128 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12129 $as_echo "$ac_res" >&6; }
12130 if test `eval 'as_val=${'$as_ac_var'}
12131 $as_echo "$as_val"'` = yes; then
12132 cat >>confdefs.h <<_ACEOF
12133 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12134 _ACEOF
12135 HAVE_GTK_FILE_CHOOSER=yes
12136 else
12137 HAVE_GTK_FILE_CHOOSER=no
12138 fi
12139 done
12140
12141 fi
12142
12143 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12144 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12145
12146 cat >>confdefs.h <<\_ACEOF
12147 #define HAVE_GTK_FILE_BOTH 1
12148 _ACEOF
12149
12150 fi
12151
12152 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12153 HAVE_GTK_AND_PTHREAD=no
12154
12155 for ac_header in pthread.h
12156 do
12157 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12159 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12160 $as_echo_n "checking for $ac_header... " >&6; }
12161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12162 $as_echo_n "(cached) " >&6
12163 fi
12164 ac_res=`eval 'as_val=${'$as_ac_Header'}
12165 $as_echo "$as_val"'`
12166 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12167 $as_echo "$ac_res" >&6; }
12168 else
12169 # Is the header compilable?
12170 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12171 $as_echo_n "checking $ac_header usability... " >&6; }
12172 cat >conftest.$ac_ext <<_ACEOF
12173 /* confdefs.h. */
12174 _ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12178 $ac_includes_default
12179 #include <$ac_header>
12180 _ACEOF
12181 rm -f conftest.$ac_objext
12182 if { (ac_try="$ac_compile"
12183 case "(($ac_try" in
12184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185 *) ac_try_echo=$ac_try;;
12186 esac
12187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12188 $as_echo "$ac_try_echo") >&5
12189 (eval "$ac_compile") 2>conftest.er1
12190 ac_status=$?
12191 grep -v '^ *+' conftest.er1 >conftest.err
12192 rm -f conftest.er1
12193 cat conftest.err >&5
12194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } && {
12196 test -z "$ac_c_werror_flag" ||
12197 test ! -s conftest.err
12198 } && test -s conftest.$ac_objext; then
12199 ac_header_compiler=yes
12200 else
12201 $as_echo "$as_me: failed program was:" >&5
12202 sed 's/^/| /' conftest.$ac_ext >&5
12203
12204 ac_header_compiler=no
12205 fi
12206
12207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12208 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12209 $as_echo "$ac_header_compiler" >&6; }
12210
12211 # Is the header present?
12212 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12213 $as_echo_n "checking $ac_header presence... " >&6; }
12214 cat >conftest.$ac_ext <<_ACEOF
12215 /* confdefs.h. */
12216 _ACEOF
12217 cat confdefs.h >>conftest.$ac_ext
12218 cat >>conftest.$ac_ext <<_ACEOF
12219 /* end confdefs.h. */
12220 #include <$ac_header>
12221 _ACEOF
12222 if { (ac_try="$ac_cpp conftest.$ac_ext"
12223 case "(($ac_try" in
12224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12225 *) ac_try_echo=$ac_try;;
12226 esac
12227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12228 $as_echo "$ac_try_echo") >&5
12229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12230 ac_status=$?
12231 grep -v '^ *+' conftest.er1 >conftest.err
12232 rm -f conftest.er1
12233 cat conftest.err >&5
12234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); } >/dev/null && {
12236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12237 test ! -s conftest.err
12238 }; then
12239 ac_header_preproc=yes
12240 else
12241 $as_echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12243
12244 ac_header_preproc=no
12245 fi
12246
12247 rm -f conftest.err conftest.$ac_ext
12248 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12249 $as_echo "$ac_header_preproc" >&6; }
12250
12251 # So? What about this header?
12252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12253 yes:no: )
12254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12255 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12257 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12258 ac_header_preproc=yes
12259 ;;
12260 no:yes:* )
12261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12262 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12264 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12265 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12266 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12268 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12270 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12272 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12273
12274 ;;
12275 esac
12276 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12277 $as_echo_n "checking for $ac_header... " >&6; }
12278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12279 $as_echo_n "(cached) " >&6
12280 else
12281 eval "$as_ac_Header=\$ac_header_preproc"
12282 fi
12283 ac_res=`eval 'as_val=${'$as_ac_Header'}
12284 $as_echo "$as_val"'`
12285 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12286 $as_echo "$ac_res" >&6; }
12287
12288 fi
12289 if test `eval 'as_val=${'$as_ac_Header'}
12290 $as_echo "$as_val"'` = yes; then
12291 cat >>confdefs.h <<_ACEOF
12292 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12293 _ACEOF
12294
12295 fi
12296
12297 done
12298
12299 if test "$ac_cv_header_pthread_h"; then
12300 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12301 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12302 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12303 $as_echo_n "(cached) " >&6
12304 else
12305 ac_check_lib_save_LIBS=$LIBS
12306 LIBS="-lpthread $LIBS"
12307 cat >conftest.$ac_ext <<_ACEOF
12308 /* confdefs.h. */
12309 _ACEOF
12310 cat confdefs.h >>conftest.$ac_ext
12311 cat >>conftest.$ac_ext <<_ACEOF
12312 /* end confdefs.h. */
12313
12314 /* Override any GCC internal prototype to avoid an error.
12315 Use char because int might match the return type of a GCC
12316 builtin and then its argument prototype would still apply. */
12317 #ifdef __cplusplus
12318 extern "C"
12319 #endif
12320 char pthread_self ();
12321 int
12322 main ()
12323 {
12324 return pthread_self ();
12325 ;
12326 return 0;
12327 }
12328 _ACEOF
12329 rm -f conftest.$ac_objext conftest$ac_exeext
12330 if { (ac_try="$ac_link"
12331 case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12334 esac
12335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12336 $as_echo "$ac_try_echo") >&5
12337 (eval "$ac_link") 2>conftest.er1
12338 ac_status=$?
12339 grep -v '^ *+' conftest.er1 >conftest.err
12340 rm -f conftest.er1
12341 cat conftest.err >&5
12342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } && {
12344 test -z "$ac_c_werror_flag" ||
12345 test ! -s conftest.err
12346 } && test -s conftest$ac_exeext && {
12347 test "$cross_compiling" = yes ||
12348 $as_test_x conftest$ac_exeext
12349 }; then
12350 ac_cv_lib_pthread_pthread_self=yes
12351 else
12352 $as_echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12354
12355 ac_cv_lib_pthread_pthread_self=no
12356 fi
12357
12358 rm -rf conftest.dSYM
12359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12360 conftest$ac_exeext conftest.$ac_ext
12361 LIBS=$ac_check_lib_save_LIBS
12362 fi
12363 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12364 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12365 if test $ac_cv_lib_pthread_pthread_self = yes; then
12366 HAVE_GTK_AND_PTHREAD=yes
12367 fi
12368
12369 fi
12370 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12371 case "${canonical}" in
12372 *-hpux*) ;;
12373 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12374 esac
12375
12376 cat >>confdefs.h <<\_ACEOF
12377 #define HAVE_GTK_AND_PTHREAD 1
12378 _ACEOF
12379
12380 fi
12381 fi
12382 fi
12383
12384 HAVE_DBUS=no
12385 if test "${with_dbus}" = "yes"; then
12386
12387 succeeded=no
12388
12389 # Extract the first word of "pkg-config", so it can be a program name with args.
12390 set dummy pkg-config; ac_word=$2
12391 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12392 $as_echo_n "checking for $ac_word... " >&6; }
12393 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12394 $as_echo_n "(cached) " >&6
12395 else
12396 case $PKG_CONFIG in
12397 [\\/]* | ?:[\\/]*)
12398 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12399 ;;
12400 *)
12401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12402 for as_dir in $PATH
12403 do
12404 IFS=$as_save_IFS
12405 test -z "$as_dir" && as_dir=.
12406 for ac_exec_ext in '' $ac_executable_extensions; do
12407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12408 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12409 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12410 break 2
12411 fi
12412 done
12413 done
12414 IFS=$as_save_IFS
12415
12416 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12417 ;;
12418 esac
12419 fi
12420 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12421 if test -n "$PKG_CONFIG"; then
12422 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12423 $as_echo "$PKG_CONFIG" >&6; }
12424 else
12425 { $as_echo "$as_me:$LINENO: result: no" >&5
12426 $as_echo "no" >&6; }
12427 fi
12428
12429
12430
12431 if test "$PKG_CONFIG" = "no" ; then
12432 HAVE_DBUS=no
12433 else
12434 PKG_CONFIG_MIN_VERSION=0.9.0
12435 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12436 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12437 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12438
12439 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12440 { $as_echo "$as_me:$LINENO: result: yes" >&5
12441 $as_echo "yes" >&6; }
12442 succeeded=yes
12443
12444 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12445 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12446 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12447 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12448 $as_echo "$DBUS_CFLAGS" >&6; }
12449
12450 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12451 $as_echo_n "checking DBUS_LIBS... " >&6; }
12452 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12453 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12454 $as_echo "$DBUS_LIBS" >&6; }
12455 else
12456 { $as_echo "$as_me:$LINENO: result: no" >&5
12457 $as_echo "no" >&6; }
12458 DBUS_CFLAGS=""
12459 DBUS_LIBS=""
12460 ## If we have a custom action on failure, don't print errors, but
12461 ## do set a variable so people can do so.
12462 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12463
12464 fi
12465
12466
12467
12468 else
12469 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12470 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12471 fi
12472 fi
12473
12474 if test $succeeded = yes; then
12475 HAVE_DBUS=yes
12476 else
12477 HAVE_DBUS=no
12478 fi
12479
12480 if test "$HAVE_DBUS" = yes; then
12481 LIBS="$LIBS $DBUS_LIBS"
12482
12483 cat >>confdefs.h <<\_ACEOF
12484 #define HAVE_DBUS 1
12485 _ACEOF
12486
12487
12488 for ac_func in dbus_watch_get_unix_fd
12489 do
12490 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12491 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12492 $as_echo_n "checking for $ac_func... " >&6; }
12493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12494 $as_echo_n "(cached) " >&6
12495 else
12496 cat >conftest.$ac_ext <<_ACEOF
12497 /* confdefs.h. */
12498 _ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h. */
12502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12504 #define $ac_func innocuous_$ac_func
12505
12506 /* System header to define __stub macros and hopefully few prototypes,
12507 which can conflict with char $ac_func (); below.
12508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12509 <limits.h> exists even on freestanding compilers. */
12510
12511 #ifdef __STDC__
12512 # include <limits.h>
12513 #else
12514 # include <assert.h>
12515 #endif
12516
12517 #undef $ac_func
12518
12519 /* Override any GCC internal prototype to avoid an error.
12520 Use char because int might match the return type of a GCC
12521 builtin and then its argument prototype would still apply. */
12522 #ifdef __cplusplus
12523 extern "C"
12524 #endif
12525 char $ac_func ();
12526 /* The GNU C library defines this for functions which it implements
12527 to always fail with ENOSYS. Some functions are actually named
12528 something starting with __ and the normal name is an alias. */
12529 #if defined __stub_$ac_func || defined __stub___$ac_func
12530 choke me
12531 #endif
12532
12533 int
12534 main ()
12535 {
12536 return $ac_func ();
12537 ;
12538 return 0;
12539 }
12540 _ACEOF
12541 rm -f conftest.$ac_objext conftest$ac_exeext
12542 if { (ac_try="$ac_link"
12543 case "(($ac_try" in
12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545 *) ac_try_echo=$ac_try;;
12546 esac
12547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12548 $as_echo "$ac_try_echo") >&5
12549 (eval "$ac_link") 2>conftest.er1
12550 ac_status=$?
12551 grep -v '^ *+' conftest.er1 >conftest.err
12552 rm -f conftest.er1
12553 cat conftest.err >&5
12554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } && {
12556 test -z "$ac_c_werror_flag" ||
12557 test ! -s conftest.err
12558 } && test -s conftest$ac_exeext && {
12559 test "$cross_compiling" = yes ||
12560 $as_test_x conftest$ac_exeext
12561 }; then
12562 eval "$as_ac_var=yes"
12563 else
12564 $as_echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12566
12567 eval "$as_ac_var=no"
12568 fi
12569
12570 rm -rf conftest.dSYM
12571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12572 conftest$ac_exeext conftest.$ac_ext
12573 fi
12574 ac_res=`eval 'as_val=${'$as_ac_var'}
12575 $as_echo "$as_val"'`
12576 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12577 $as_echo "$ac_res" >&6; }
12578 if test `eval 'as_val=${'$as_ac_var'}
12579 $as_echo "$as_val"'` = yes; then
12580 cat >>confdefs.h <<_ACEOF
12581 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12582 _ACEOF
12583
12584 fi
12585 done
12586
12587 fi
12588 fi
12589
12590 HAVE_GCONF=no
12591 if test "${with_gconf}" = "yes"; then
12592
12593 succeeded=no
12594
12595 # Extract the first word of "pkg-config", so it can be a program name with args.
12596 set dummy pkg-config; ac_word=$2
12597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12598 $as_echo_n "checking for $ac_word... " >&6; }
12599 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12600 $as_echo_n "(cached) " >&6
12601 else
12602 case $PKG_CONFIG in
12603 [\\/]* | ?:[\\/]*)
12604 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12605 ;;
12606 *)
12607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12608 for as_dir in $PATH
12609 do
12610 IFS=$as_save_IFS
12611 test -z "$as_dir" && as_dir=.
12612 for ac_exec_ext in '' $ac_executable_extensions; do
12613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12614 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12615 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12616 break 2
12617 fi
12618 done
12619 done
12620 IFS=$as_save_IFS
12621
12622 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12623 ;;
12624 esac
12625 fi
12626 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12627 if test -n "$PKG_CONFIG"; then
12628 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12629 $as_echo "$PKG_CONFIG" >&6; }
12630 else
12631 { $as_echo "$as_me:$LINENO: result: no" >&5
12632 $as_echo "no" >&6; }
12633 fi
12634
12635
12636
12637 if test "$PKG_CONFIG" = "no" ; then
12638 HAVE_GCONF=no
12639 else
12640 PKG_CONFIG_MIN_VERSION=0.9.0
12641 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12642 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12643 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12644
12645 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12646 { $as_echo "$as_me:$LINENO: result: yes" >&5
12647 $as_echo "yes" >&6; }
12648 succeeded=yes
12649
12650 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12651 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12652 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12653 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12654 $as_echo "$GCONF_CFLAGS" >&6; }
12655
12656 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12657 $as_echo_n "checking GCONF_LIBS... " >&6; }
12658 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12659 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12660 $as_echo "$GCONF_LIBS" >&6; }
12661 else
12662 { $as_echo "$as_me:$LINENO: result: no" >&5
12663 $as_echo "no" >&6; }
12664 GCONF_CFLAGS=""
12665 GCONF_LIBS=""
12666 ## If we have a custom action on failure, don't print errors, but
12667 ## do set a variable so people can do so.
12668 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12669
12670 fi
12671
12672
12673
12674 else
12675 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12676 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12677 fi
12678 fi
12679
12680 if test $succeeded = yes; then
12681 HAVE_GCONF=yes
12682 else
12683 HAVE_GCONF=no
12684 fi
12685
12686 if test "$HAVE_GCONF" = yes; then
12687
12688 cat >>confdefs.h <<\_ACEOF
12689 #define HAVE_GCONF 1
12690 _ACEOF
12691
12692 fi
12693 fi
12694
12695 HAVE_XAW3D=no
12696 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12697 if test "$with_xaw3d" != no; then
12698 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12699 $as_echo_n "checking for xaw3d... " >&6; }
12700 if test "${emacs_cv_xaw3d+set}" = set; then
12701 $as_echo_n "(cached) " >&6
12702 else
12703 cat >conftest.$ac_ext <<_ACEOF
12704 /* confdefs.h. */
12705 _ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12709
12710 #include <X11/Intrinsic.h>
12711 #include <X11/Xaw3d/Simple.h>
12712 int
12713 main ()
12714 {
12715
12716 ;
12717 return 0;
12718 }
12719 _ACEOF
12720 rm -f conftest.$ac_objext conftest$ac_exeext
12721 if { (ac_try="$ac_link"
12722 case "(($ac_try" in
12723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12724 *) ac_try_echo=$ac_try;;
12725 esac
12726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12727 $as_echo "$ac_try_echo") >&5
12728 (eval "$ac_link") 2>conftest.er1
12729 ac_status=$?
12730 grep -v '^ *+' conftest.er1 >conftest.err
12731 rm -f conftest.er1
12732 cat conftest.err >&5
12733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); } && {
12735 test -z "$ac_c_werror_flag" ||
12736 test ! -s conftest.err
12737 } && test -s conftest$ac_exeext && {
12738 test "$cross_compiling" = yes ||
12739 $as_test_x conftest$ac_exeext
12740 }; then
12741 emacs_cv_xaw3d=yes
12742 else
12743 $as_echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12745
12746 emacs_cv_xaw3d=no
12747 fi
12748
12749 rm -rf conftest.dSYM
12750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12751 conftest$ac_exeext conftest.$ac_ext
12752 fi
12753
12754 else
12755 emacs_cv_xaw3d=no
12756 fi
12757 if test $emacs_cv_xaw3d = yes; then
12758 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12759 $as_echo "yes; using Lucid toolkit" >&6; }
12760 USE_X_TOOLKIT=LUCID
12761 HAVE_XAW3D=yes
12762
12763 cat >>confdefs.h <<\_ACEOF
12764 #define HAVE_XAW3D 1
12765 _ACEOF
12766
12767 else
12768 { $as_echo "$as_me:$LINENO: result: no" >&5
12769 $as_echo "no" >&6; }
12770 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12771 $as_echo_n "checking for libXaw... " >&6; }
12772 if test "${emacs_cv_xaw+set}" = set; then
12773 $as_echo_n "(cached) " >&6
12774 else
12775 cat >conftest.$ac_ext <<_ACEOF
12776 /* confdefs.h. */
12777 _ACEOF
12778 cat confdefs.h >>conftest.$ac_ext
12779 cat >>conftest.$ac_ext <<_ACEOF
12780 /* end confdefs.h. */
12781
12782 #include <X11/Intrinsic.h>
12783 #include <X11/Xaw/Simple.h>
12784 int
12785 main ()
12786 {
12787
12788 ;
12789 return 0;
12790 }
12791 _ACEOF
12792 rm -f conftest.$ac_objext conftest$ac_exeext
12793 if { (ac_try="$ac_link"
12794 case "(($ac_try" in
12795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12797 esac
12798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12799 $as_echo "$ac_try_echo") >&5
12800 (eval "$ac_link") 2>conftest.er1
12801 ac_status=$?
12802 grep -v '^ *+' conftest.er1 >conftest.err
12803 rm -f conftest.er1
12804 cat conftest.err >&5
12805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } && {
12807 test -z "$ac_c_werror_flag" ||
12808 test ! -s conftest.err
12809 } && test -s conftest$ac_exeext && {
12810 test "$cross_compiling" = yes ||
12811 $as_test_x conftest$ac_exeext
12812 }; then
12813 emacs_cv_xaw=yes
12814 else
12815 $as_echo "$as_me: failed program was:" >&5
12816 sed 's/^/| /' conftest.$ac_ext >&5
12817
12818 emacs_cv_xaw=no
12819 fi
12820
12821 rm -rf conftest.dSYM
12822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12823 conftest$ac_exeext conftest.$ac_ext
12824 fi
12825
12826 if test $emacs_cv_xaw = yes; then
12827 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12828 $as_echo "yes; using Lucid toolkit" >&6; }
12829 USE_X_TOOLKIT=LUCID
12830 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12831 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12832 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12833 { (exit 1); exit 1; }; }
12834 else
12835 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12836 $as_echo "no; do not use toolkit by default" >&6; }
12837 USE_X_TOOLKIT=none
12838 fi
12839 fi
12840 fi
12841
12842 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12843
12844 if test "${USE_X_TOOLKIT}" != "none"; then
12845 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12846 $as_echo_n "checking X11 toolkit version... " >&6; }
12847 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12848 $as_echo_n "(cached) " >&6
12849 else
12850 cat >conftest.$ac_ext <<_ACEOF
12851 /* confdefs.h. */
12852 _ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h. */
12856 #include <X11/Intrinsic.h>
12857 int
12858 main ()
12859 {
12860 #if XtSpecificationRelease < 6
12861 fail;
12862 #endif
12863
12864 ;
12865 return 0;
12866 }
12867 _ACEOF
12868 rm -f conftest.$ac_objext conftest$ac_exeext
12869 if { (ac_try="$ac_link"
12870 case "(($ac_try" in
12871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12872 *) ac_try_echo=$ac_try;;
12873 esac
12874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12875 $as_echo "$ac_try_echo") >&5
12876 (eval "$ac_link") 2>conftest.er1
12877 ac_status=$?
12878 grep -v '^ *+' conftest.er1 >conftest.err
12879 rm -f conftest.er1
12880 cat conftest.err >&5
12881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } && {
12883 test -z "$ac_c_werror_flag" ||
12884 test ! -s conftest.err
12885 } && test -s conftest$ac_exeext && {
12886 test "$cross_compiling" = yes ||
12887 $as_test_x conftest$ac_exeext
12888 }; then
12889 emacs_cv_x11_toolkit_version_6=yes
12890 else
12891 $as_echo "$as_me: failed program was:" >&5
12892 sed 's/^/| /' conftest.$ac_ext >&5
12893
12894 emacs_cv_x11_toolkit_version_6=no
12895 fi
12896
12897 rm -rf conftest.dSYM
12898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12899 conftest$ac_exeext conftest.$ac_ext
12900 fi
12901
12902 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12903 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12904 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
12905 $as_echo "6 or newer" >&6; }
12906
12907 cat >>confdefs.h <<\_ACEOF
12908 #define HAVE_X11XTR6 1
12909 _ACEOF
12910
12911 else
12912 { $as_echo "$as_me:$LINENO: result: before 6" >&5
12913 $as_echo "before 6" >&6; }
12914 fi
12915
12916 OLDLIBS="$LIBS"
12917 if test x$HAVE_X11XTR6 = xyes; then
12918 LIBS="-lXt -lSM -lICE $LIBS"
12919 else
12920 LIBS="-lXt $LIBS"
12921 fi
12922
12923 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12924 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12925 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12926 $as_echo_n "(cached) " >&6
12927 else
12928 ac_check_lib_save_LIBS=$LIBS
12929 LIBS="-lXmu $LIBS"
12930 cat >conftest.$ac_ext <<_ACEOF
12931 /* confdefs.h. */
12932 _ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12936
12937 /* Override any GCC internal prototype to avoid an error.
12938 Use char because int might match the return type of a GCC
12939 builtin and then its argument prototype would still apply. */
12940 #ifdef __cplusplus
12941 extern "C"
12942 #endif
12943 char XmuConvertStandardSelection ();
12944 int
12945 main ()
12946 {
12947 return XmuConvertStandardSelection ();
12948 ;
12949 return 0;
12950 }
12951 _ACEOF
12952 rm -f conftest.$ac_objext conftest$ac_exeext
12953 if { (ac_try="$ac_link"
12954 case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12957 esac
12958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12959 $as_echo "$ac_try_echo") >&5
12960 (eval "$ac_link") 2>conftest.er1
12961 ac_status=$?
12962 grep -v '^ *+' conftest.er1 >conftest.err
12963 rm -f conftest.er1
12964 cat conftest.err >&5
12965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); } && {
12967 test -z "$ac_c_werror_flag" ||
12968 test ! -s conftest.err
12969 } && test -s conftest$ac_exeext && {
12970 test "$cross_compiling" = yes ||
12971 $as_test_x conftest$ac_exeext
12972 }; then
12973 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12974 else
12975 $as_echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.$ac_ext >&5
12977
12978 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12979 fi
12980
12981 rm -rf conftest.dSYM
12982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12983 conftest$ac_exeext conftest.$ac_ext
12984 LIBS=$ac_check_lib_save_LIBS
12985 fi
12986 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12987 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12988 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12989 cat >>confdefs.h <<_ACEOF
12990 #define HAVE_LIBXMU 1
12991 _ACEOF
12992
12993 LIBS="-lXmu $LIBS"
12994
12995 fi
12996
12997 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12998 fi
12999
13000 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13001 if test "${HAVE_X11}" = "yes"; then
13002 if test "${USE_X_TOOLKIT}" != "none"; then
13003
13004 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13005 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13006 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13007 $as_echo_n "(cached) " >&6
13008 else
13009 ac_check_lib_save_LIBS=$LIBS
13010 LIBS="-lXext $LIBS"
13011 cat >conftest.$ac_ext <<_ACEOF
13012 /* confdefs.h. */
13013 _ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h. */
13017
13018 /* Override any GCC internal prototype to avoid an error.
13019 Use char because int might match the return type of a GCC
13020 builtin and then its argument prototype would still apply. */
13021 #ifdef __cplusplus
13022 extern "C"
13023 #endif
13024 char XShapeQueryExtension ();
13025 int
13026 main ()
13027 {
13028 return XShapeQueryExtension ();
13029 ;
13030 return 0;
13031 }
13032 _ACEOF
13033 rm -f conftest.$ac_objext conftest$ac_exeext
13034 if { (ac_try="$ac_link"
13035 case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13038 esac
13039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13040 $as_echo "$ac_try_echo") >&5
13041 (eval "$ac_link") 2>conftest.er1
13042 ac_status=$?
13043 grep -v '^ *+' conftest.er1 >conftest.err
13044 rm -f conftest.er1
13045 cat conftest.err >&5
13046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); } && {
13048 test -z "$ac_c_werror_flag" ||
13049 test ! -s conftest.err
13050 } && test -s conftest$ac_exeext && {
13051 test "$cross_compiling" = yes ||
13052 $as_test_x conftest$ac_exeext
13053 }; then
13054 ac_cv_lib_Xext_XShapeQueryExtension=yes
13055 else
13056 $as_echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.$ac_ext >&5
13058
13059 ac_cv_lib_Xext_XShapeQueryExtension=no
13060 fi
13061
13062 rm -rf conftest.dSYM
13063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13064 conftest$ac_exeext conftest.$ac_ext
13065 LIBS=$ac_check_lib_save_LIBS
13066 fi
13067 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13068 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13069 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13070 cat >>confdefs.h <<_ACEOF
13071 #define HAVE_LIBXEXT 1
13072 _ACEOF
13073
13074 LIBS="-lXext $LIBS"
13075
13076 fi
13077
13078 fi
13079 fi
13080
13081 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13082 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13083 $as_echo_n "checking for Motif version 2.1... " >&6; }
13084 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13085 $as_echo_n "(cached) " >&6
13086 else
13087 cat >conftest.$ac_ext <<_ACEOF
13088 /* confdefs.h. */
13089 _ACEOF
13090 cat confdefs.h >>conftest.$ac_ext
13091 cat >>conftest.$ac_ext <<_ACEOF
13092 /* end confdefs.h. */
13093 #include <Xm/Xm.h>
13094 int
13095 main ()
13096 {
13097 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13098 int x = 5;
13099 #else
13100 Motif version prior to 2.1.
13101 #endif
13102 ;
13103 return 0;
13104 }
13105 _ACEOF
13106 rm -f conftest.$ac_objext
13107 if { (ac_try="$ac_compile"
13108 case "(($ac_try" in
13109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110 *) ac_try_echo=$ac_try;;
13111 esac
13112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13113 $as_echo "$ac_try_echo") >&5
13114 (eval "$ac_compile") 2>conftest.er1
13115 ac_status=$?
13116 grep -v '^ *+' conftest.er1 >conftest.err
13117 rm -f conftest.er1
13118 cat conftest.err >&5
13119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); } && {
13121 test -z "$ac_c_werror_flag" ||
13122 test ! -s conftest.err
13123 } && test -s conftest.$ac_objext; then
13124 emacs_cv_motif_version_2_1=yes
13125 else
13126 $as_echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13128
13129 emacs_cv_motif_version_2_1=no
13130 fi
13131
13132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13133 fi
13134 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13135 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13136 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
13137 if test $emacs_cv_motif_version_2_1 = yes; then
13138 HAVE_LIBXP=no
13139
13140 cat >>confdefs.h <<\_ACEOF
13141 #define HAVE_MOTIF_2_1 1
13142 _ACEOF
13143
13144 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13145 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13146 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13147 $as_echo_n "(cached) " >&6
13148 else
13149 ac_check_lib_save_LIBS=$LIBS
13150 LIBS="-lXp $LIBS"
13151 cat >conftest.$ac_ext <<_ACEOF
13152 /* confdefs.h. */
13153 _ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13157
13158 /* Override any GCC internal prototype to avoid an error.
13159 Use char because int might match the return type of a GCC
13160 builtin and then its argument prototype would still apply. */
13161 #ifdef __cplusplus
13162 extern "C"
13163 #endif
13164 char XpCreateContext ();
13165 int
13166 main ()
13167 {
13168 return XpCreateContext ();
13169 ;
13170 return 0;
13171 }
13172 _ACEOF
13173 rm -f conftest.$ac_objext conftest$ac_exeext
13174 if { (ac_try="$ac_link"
13175 case "(($ac_try" in
13176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13178 esac
13179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13180 $as_echo "$ac_try_echo") >&5
13181 (eval "$ac_link") 2>conftest.er1
13182 ac_status=$?
13183 grep -v '^ *+' conftest.er1 >conftest.err
13184 rm -f conftest.er1
13185 cat conftest.err >&5
13186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } && {
13188 test -z "$ac_c_werror_flag" ||
13189 test ! -s conftest.err
13190 } && test -s conftest$ac_exeext && {
13191 test "$cross_compiling" = yes ||
13192 $as_test_x conftest$ac_exeext
13193 }; then
13194 ac_cv_lib_Xp_XpCreateContext=yes
13195 else
13196 $as_echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13198
13199 ac_cv_lib_Xp_XpCreateContext=no
13200 fi
13201
13202 rm -rf conftest.dSYM
13203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13204 conftest$ac_exeext conftest.$ac_ext
13205 LIBS=$ac_check_lib_save_LIBS
13206 fi
13207 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13208 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13209 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13210 HAVE_LIBXP=yes
13211 fi
13212
13213 if test ${HAVE_LIBXP} = yes; then
13214
13215 cat >>confdefs.h <<\_ACEOF
13216 #define HAVE_LIBXP 1
13217 _ACEOF
13218
13219 fi
13220 else
13221 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13222 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13223 if test "${emacs_cv_lesstif+set}" = set; then
13224 $as_echo_n "(cached) " >&6
13225 else
13226 # We put this in CFLAGS temporarily to precede other -I options
13227 # that might be in CFLAGS temporarily.
13228 # We put this in CPPFLAGS where it precedes the other -I options.
13229 OLD_CPPFLAGS=$CPPFLAGS
13230 OLD_CFLAGS=$CFLAGS
13231 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13232 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13233 cat >conftest.$ac_ext <<_ACEOF
13234 /* confdefs.h. */
13235 _ACEOF
13236 cat confdefs.h >>conftest.$ac_ext
13237 cat >>conftest.$ac_ext <<_ACEOF
13238 /* end confdefs.h. */
13239 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13240 int
13241 main ()
13242 {
13243 int x = 5;
13244 ;
13245 return 0;
13246 }
13247 _ACEOF
13248 rm -f conftest.$ac_objext
13249 if { (ac_try="$ac_compile"
13250 case "(($ac_try" in
13251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252 *) ac_try_echo=$ac_try;;
13253 esac
13254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13255 $as_echo "$ac_try_echo") >&5
13256 (eval "$ac_compile") 2>conftest.er1
13257 ac_status=$?
13258 grep -v '^ *+' conftest.er1 >conftest.err
13259 rm -f conftest.er1
13260 cat conftest.err >&5
13261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } && {
13263 test -z "$ac_c_werror_flag" ||
13264 test ! -s conftest.err
13265 } && test -s conftest.$ac_objext; then
13266 emacs_cv_lesstif=yes
13267 else
13268 $as_echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.$ac_ext >&5
13270
13271 emacs_cv_lesstif=no
13272 fi
13273
13274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13275 fi
13276 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13277 $as_echo "$emacs_cv_lesstif" >&6; }
13278 if test $emacs_cv_lesstif = yes; then
13279 # Make sure this -I option remains in CPPFLAGS after it is set
13280 # back to REAL_CPPFLAGS.
13281 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13282 # have those other -I options anyway. Ultimately, having this
13283 # directory ultimately in CPPFLAGS will be enough.
13284 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13285 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13286 else
13287 CFLAGS=$OLD_CFLAGS
13288 CPPFLAGS=$OLD_CPPFLAGS
13289 fi
13290 fi
13291 fi
13292
13293
13294
13295 USE_TOOLKIT_SCROLL_BARS=no
13296 if test "${with_toolkit_scroll_bars}" != "no"; then
13297 if test "${USE_X_TOOLKIT}" != "none"; then
13298 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13299 cat >>confdefs.h <<\_ACEOF
13300 #define USE_TOOLKIT_SCROLL_BARS 1
13301 _ACEOF
13302
13303 HAVE_XAW3D=no
13304 USE_TOOLKIT_SCROLL_BARS=yes
13305 elif test "${HAVE_XAW3D}" = "yes"; then
13306 cat >>confdefs.h <<\_ACEOF
13307 #define USE_TOOLKIT_SCROLL_BARS 1
13308 _ACEOF
13309
13310 USE_TOOLKIT_SCROLL_BARS=yes
13311 fi
13312 elif test "${HAVE_GTK}" = "yes"; then
13313 cat >>confdefs.h <<\_ACEOF
13314 #define USE_TOOLKIT_SCROLL_BARS 1
13315 _ACEOF
13316
13317 USE_TOOLKIT_SCROLL_BARS=yes
13318 elif test "${HAVE_NS}" = "yes"; then
13319 cat >>confdefs.h <<\_ACEOF
13320 #define USE_TOOLKIT_SCROLL_BARS 1
13321 _ACEOF
13322
13323 USE_TOOLKIT_SCROLL_BARS=yes
13324 fi
13325 fi
13326
13327 cat >conftest.$ac_ext <<_ACEOF
13328 /* confdefs.h. */
13329 _ACEOF
13330 cat confdefs.h >>conftest.$ac_ext
13331 cat >>conftest.$ac_ext <<_ACEOF
13332 /* end confdefs.h. */
13333
13334 #include <X11/Xlib.h>
13335 #include <X11/Xresource.h>
13336 int
13337 main ()
13338 {
13339 XIMProc callback;
13340 ;
13341 return 0;
13342 }
13343 _ACEOF
13344 rm -f conftest.$ac_objext
13345 if { (ac_try="$ac_compile"
13346 case "(($ac_try" in
13347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13348 *) ac_try_echo=$ac_try;;
13349 esac
13350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13351 $as_echo "$ac_try_echo") >&5
13352 (eval "$ac_compile") 2>conftest.er1
13353 ac_status=$?
13354 grep -v '^ *+' conftest.er1 >conftest.err
13355 rm -f conftest.er1
13356 cat conftest.err >&5
13357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); } && {
13359 test -z "$ac_c_werror_flag" ||
13360 test ! -s conftest.err
13361 } && test -s conftest.$ac_objext; then
13362 HAVE_XIM=yes
13363
13364 cat >>confdefs.h <<\_ACEOF
13365 #define HAVE_XIM 1
13366 _ACEOF
13367
13368 else
13369 $as_echo "$as_me: failed program was:" >&5
13370 sed 's/^/| /' conftest.$ac_ext >&5
13371
13372 HAVE_XIM=no
13373 fi
13374
13375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13376
13377
13378 if test "${with_xim}" != "no"; then
13379
13380 cat >>confdefs.h <<\_ACEOF
13381 #define USE_XIM 1
13382 _ACEOF
13383
13384 fi
13385
13386
13387 if test "${HAVE_XIM}" != "no"; then
13388 late_CFLAGS=$CFLAGS
13389 if test "$GCC" = yes; then
13390 CFLAGS="$CFLAGS --pedantic-errors"
13391 fi
13392 cat >conftest.$ac_ext <<_ACEOF
13393 /* confdefs.h. */
13394 _ACEOF
13395 cat confdefs.h >>conftest.$ac_ext
13396 cat >>conftest.$ac_ext <<_ACEOF
13397 /* end confdefs.h. */
13398
13399 #include <X11/Xlib.h>
13400 #include <X11/Xresource.h>
13401 int
13402 main ()
13403 {
13404 Display *display;
13405 XrmDatabase db;
13406 char *res_name;
13407 char *res_class;
13408 XIMProc callback;
13409 XPointer *client_data;
13410 #ifndef __GNUC__
13411 /* If we're not using GCC, it's probably not XFree86, and this is
13412 probably right, but we can't use something like --pedantic-errors. */
13413 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13414 char*, XIMProc, XPointer*);
13415 #endif
13416 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13417 client_data);
13418 ;
13419 return 0;
13420 }
13421 _ACEOF
13422 rm -f conftest.$ac_objext
13423 if { (ac_try="$ac_compile"
13424 case "(($ac_try" in
13425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426 *) ac_try_echo=$ac_try;;
13427 esac
13428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13429 $as_echo "$ac_try_echo") >&5
13430 (eval "$ac_compile") 2>conftest.er1
13431 ac_status=$?
13432 grep -v '^ *+' conftest.er1 >conftest.err
13433 rm -f conftest.er1
13434 cat conftest.err >&5
13435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); } && {
13437 test -z "$ac_c_werror_flag" ||
13438 test ! -s conftest.err
13439 } && test -s conftest.$ac_objext; then
13440 emacs_cv_arg6_star=yes
13441 else
13442 $as_echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.$ac_ext >&5
13444
13445
13446 fi
13447
13448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13449
13450 if test "$emacs_cv_arg6_star" = yes; then
13451 cat >>confdefs.h <<\_ACEOF
13452 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13453 _ACEOF
13454
13455 else
13456 cat >>confdefs.h <<\_ACEOF
13457 #define XRegisterIMInstantiateCallback_arg6 XPointer
13458 _ACEOF
13459
13460 fi
13461 CFLAGS=$late_CFLAGS
13462 fi
13463
13464 ### Start of font-backend (under any platform) section.
13465 # (nothing here yet -- this is a placeholder)
13466 ### End of font-backend (under any platform) section.
13467
13468 ### Start of font-backend (under X11) section.
13469 if test "${HAVE_X11}" = "yes"; then
13470
13471 succeeded=no
13472
13473 # Extract the first word of "pkg-config", so it can be a program name with args.
13474 set dummy pkg-config; ac_word=$2
13475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13476 $as_echo_n "checking for $ac_word... " >&6; }
13477 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13478 $as_echo_n "(cached) " >&6
13479 else
13480 case $PKG_CONFIG in
13481 [\\/]* | ?:[\\/]*)
13482 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13483 ;;
13484 *)
13485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13486 for as_dir in $PATH
13487 do
13488 IFS=$as_save_IFS
13489 test -z "$as_dir" && as_dir=.
13490 for ac_exec_ext in '' $ac_executable_extensions; do
13491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13492 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13494 break 2
13495 fi
13496 done
13497 done
13498 IFS=$as_save_IFS
13499
13500 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13501 ;;
13502 esac
13503 fi
13504 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13505 if test -n "$PKG_CONFIG"; then
13506 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13507 $as_echo "$PKG_CONFIG" >&6; }
13508 else
13509 { $as_echo "$as_me:$LINENO: result: no" >&5
13510 $as_echo "no" >&6; }
13511 fi
13512
13513
13514
13515 if test "$PKG_CONFIG" = "no" ; then
13516 HAVE_FC=no
13517 else
13518 PKG_CONFIG_MIN_VERSION=0.9.0
13519 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13520 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13521 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13522
13523 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13524 { $as_echo "$as_me:$LINENO: result: yes" >&5
13525 $as_echo "yes" >&6; }
13526 succeeded=yes
13527
13528 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13529 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13530 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13531 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13532 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13533
13534 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13535 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13536 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13537 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13538 $as_echo "$FONTCONFIG_LIBS" >&6; }
13539 else
13540 { $as_echo "$as_me:$LINENO: result: no" >&5
13541 $as_echo "no" >&6; }
13542 FONTCONFIG_CFLAGS=""
13543 FONTCONFIG_LIBS=""
13544 ## If we have a custom action on failure, don't print errors, but
13545 ## do set a variable so people can do so.
13546 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13547
13548 fi
13549
13550
13551
13552 else
13553 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13554 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13555 fi
13556 fi
13557
13558 if test $succeeded = yes; then
13559 HAVE_FC=yes
13560 else
13561 HAVE_FC=no
13562 fi
13563
13564
13565 ## Use -lXft if available, unless `--with-xft=no'.
13566 HAVE_XFT=maybe
13567 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13568 with_xft="no";
13569 fi
13570 if test "x${with_xft}" != "xno"; then
13571
13572
13573 succeeded=no
13574
13575 # Extract the first word of "pkg-config", so it can be a program name with args.
13576 set dummy pkg-config; ac_word=$2
13577 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13578 $as_echo_n "checking for $ac_word... " >&6; }
13579 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13580 $as_echo_n "(cached) " >&6
13581 else
13582 case $PKG_CONFIG in
13583 [\\/]* | ?:[\\/]*)
13584 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13585 ;;
13586 *)
13587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13588 for as_dir in $PATH
13589 do
13590 IFS=$as_save_IFS
13591 test -z "$as_dir" && as_dir=.
13592 for ac_exec_ext in '' $ac_executable_extensions; do
13593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13594 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13595 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13596 break 2
13597 fi
13598 done
13599 done
13600 IFS=$as_save_IFS
13601
13602 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13603 ;;
13604 esac
13605 fi
13606 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13607 if test -n "$PKG_CONFIG"; then
13608 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13609 $as_echo "$PKG_CONFIG" >&6; }
13610 else
13611 { $as_echo "$as_me:$LINENO: result: no" >&5
13612 $as_echo "no" >&6; }
13613 fi
13614
13615
13616
13617 if test "$PKG_CONFIG" = "no" ; then
13618 HAVE_XFT=no
13619 else
13620 PKG_CONFIG_MIN_VERSION=0.9.0
13621 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13622 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13623 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13624
13625 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13626 { $as_echo "$as_me:$LINENO: result: yes" >&5
13627 $as_echo "yes" >&6; }
13628 succeeded=yes
13629
13630 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13631 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13632 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13633 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13634 $as_echo "$XFT_CFLAGS" >&6; }
13635
13636 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13637 $as_echo_n "checking XFT_LIBS... " >&6; }
13638 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13639 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13640 $as_echo "$XFT_LIBS" >&6; }
13641 else
13642 { $as_echo "$as_me:$LINENO: result: no" >&5
13643 $as_echo "no" >&6; }
13644 XFT_CFLAGS=""
13645 XFT_LIBS=""
13646 ## If we have a custom action on failure, don't print errors, but
13647 ## do set a variable so people can do so.
13648 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13649
13650 fi
13651
13652
13653
13654 else
13655 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13656 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13657 fi
13658 fi
13659
13660 if test $succeeded = yes; then
13661 :
13662 else
13663 HAVE_XFT=no
13664 fi
13665
13666 if test "$HAVE_XFT" != no; then
13667 OLD_CPPFLAGS="$CPPFLAGS"
13668 OLD_CFLAGS="$CFLAGS"
13669 OLD_LIBS="$LIBS"
13670 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13671 CFLAGS="$CFLAGS $XFT_CFLAGS"
13672 LIBS="$XFT_LIBS $LIBS"
13673 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13674 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13675 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13676 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13677 $as_echo_n "(cached) " >&6
13678 fi
13679 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13680 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13681 else
13682 # Is the header compilable?
13683 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13684 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13685 cat >conftest.$ac_ext <<_ACEOF
13686 /* confdefs.h. */
13687 _ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h. */
13691 $ac_includes_default
13692 #include <X11/Xft/Xft.h>
13693 _ACEOF
13694 rm -f conftest.$ac_objext
13695 if { (ac_try="$ac_compile"
13696 case "(($ac_try" in
13697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13698 *) ac_try_echo=$ac_try;;
13699 esac
13700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13701 $as_echo "$ac_try_echo") >&5
13702 (eval "$ac_compile") 2>conftest.er1
13703 ac_status=$?
13704 grep -v '^ *+' conftest.er1 >conftest.err
13705 rm -f conftest.er1
13706 cat conftest.err >&5
13707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } && {
13709 test -z "$ac_c_werror_flag" ||
13710 test ! -s conftest.err
13711 } && test -s conftest.$ac_objext; then
13712 ac_header_compiler=yes
13713 else
13714 $as_echo "$as_me: failed program was:" >&5
13715 sed 's/^/| /' conftest.$ac_ext >&5
13716
13717 ac_header_compiler=no
13718 fi
13719
13720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13721 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13722 $as_echo "$ac_header_compiler" >&6; }
13723
13724 # Is the header present?
13725 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13726 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13727 cat >conftest.$ac_ext <<_ACEOF
13728 /* confdefs.h. */
13729 _ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h. */
13733 #include <X11/Xft/Xft.h>
13734 _ACEOF
13735 if { (ac_try="$ac_cpp conftest.$ac_ext"
13736 case "(($ac_try" in
13737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738 *) ac_try_echo=$ac_try;;
13739 esac
13740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13741 $as_echo "$ac_try_echo") >&5
13742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13743 ac_status=$?
13744 grep -v '^ *+' conftest.er1 >conftest.err
13745 rm -f conftest.er1
13746 cat conftest.err >&5
13747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); } >/dev/null && {
13749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13750 test ! -s conftest.err
13751 }; then
13752 ac_header_preproc=yes
13753 else
13754 $as_echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.$ac_ext >&5
13756
13757 ac_header_preproc=no
13758 fi
13759
13760 rm -f conftest.err conftest.$ac_ext
13761 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13762 $as_echo "$ac_header_preproc" >&6; }
13763
13764 # So? What about this header?
13765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13766 yes:no: )
13767 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13768 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13769 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13770 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13771 ac_header_preproc=yes
13772 ;;
13773 no:yes:* )
13774 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13775 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13776 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13777 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13778 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13779 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13780 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13781 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13782 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13783 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13784 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13785 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13786
13787 ;;
13788 esac
13789 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13790 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13791 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13792 $as_echo_n "(cached) " >&6
13793 else
13794 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13795 fi
13796 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13797 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13798
13799 fi
13800 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13801 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13802 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13803 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13804 $as_echo_n "(cached) " >&6
13805 else
13806 ac_check_lib_save_LIBS=$LIBS
13807 LIBS="-lXft $XFT_LIBS $LIBS"
13808 cat >conftest.$ac_ext <<_ACEOF
13809 /* confdefs.h. */
13810 _ACEOF
13811 cat confdefs.h >>conftest.$ac_ext
13812 cat >>conftest.$ac_ext <<_ACEOF
13813 /* end confdefs.h. */
13814
13815 /* Override any GCC internal prototype to avoid an error.
13816 Use char because int might match the return type of a GCC
13817 builtin and then its argument prototype would still apply. */
13818 #ifdef __cplusplus
13819 extern "C"
13820 #endif
13821 char XftFontOpen ();
13822 int
13823 main ()
13824 {
13825 return XftFontOpen ();
13826 ;
13827 return 0;
13828 }
13829 _ACEOF
13830 rm -f conftest.$ac_objext conftest$ac_exeext
13831 if { (ac_try="$ac_link"
13832 case "(($ac_try" in
13833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834 *) ac_try_echo=$ac_try;;
13835 esac
13836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13837 $as_echo "$ac_try_echo") >&5
13838 (eval "$ac_link") 2>conftest.er1
13839 ac_status=$?
13840 grep -v '^ *+' conftest.er1 >conftest.err
13841 rm -f conftest.er1
13842 cat conftest.err >&5
13843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } && {
13845 test -z "$ac_c_werror_flag" ||
13846 test ! -s conftest.err
13847 } && test -s conftest$ac_exeext && {
13848 test "$cross_compiling" = yes ||
13849 $as_test_x conftest$ac_exeext
13850 }; then
13851 ac_cv_lib_Xft_XftFontOpen=yes
13852 else
13853 $as_echo "$as_me: failed program was:" >&5
13854 sed 's/^/| /' conftest.$ac_ext >&5
13855
13856 ac_cv_lib_Xft_XftFontOpen=no
13857 fi
13858
13859 rm -rf conftest.dSYM
13860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13861 conftest$ac_exeext conftest.$ac_ext
13862 LIBS=$ac_check_lib_save_LIBS
13863 fi
13864 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13865 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13866 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13867 HAVE_XFT=yes
13868 fi
13869
13870 fi
13871
13872
13873
13874 if test "${HAVE_XFT}" = "yes"; then
13875
13876 cat >>confdefs.h <<\_ACEOF
13877 #define HAVE_XFT 1
13878 _ACEOF
13879
13880
13881 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13882 else
13883 CPPFLAGS="$OLD_CPPFLAGS"
13884 CFLAGS="$OLD_CFLAGS"
13885 LIBS="$OLD_LIBS"
13886 fi # "${HAVE_XFT}" = "yes"
13887 fi # "$HAVE_XFT" != no
13888 fi # "x${with_xft}" != "xno"
13889
13890 if test "$HAVE_XFT" != "yes"; then
13891 HAVE_XFT=no
13892 fi
13893
13894
13895 HAVE_FREETYPE=no
13896 ## We used to allow building with FreeType and without Xft.
13897 ## However, the ftx font backend driver is not in good shape.
13898 if test "${HAVE_XFT}" = "yes"; then
13899 HAVE_FREETYPE=yes
13900 FONTCONFIG_CFLAGS=
13901 FONTCONFIG_LIBS=
13902 fi
13903
13904 HAVE_LIBOTF=no
13905 if test "${HAVE_FREETYPE}" = "yes"; then
13906
13907 cat >>confdefs.h <<\_ACEOF
13908 #define HAVE_FREETYPE 1
13909 _ACEOF
13910
13911 if test "${with_libotf}" != "no"; then
13912
13913 succeeded=no
13914
13915 # Extract the first word of "pkg-config", so it can be a program name with args.
13916 set dummy pkg-config; ac_word=$2
13917 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13918 $as_echo_n "checking for $ac_word... " >&6; }
13919 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13920 $as_echo_n "(cached) " >&6
13921 else
13922 case $PKG_CONFIG in
13923 [\\/]* | ?:[\\/]*)
13924 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13925 ;;
13926 *)
13927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928 for as_dir in $PATH
13929 do
13930 IFS=$as_save_IFS
13931 test -z "$as_dir" && as_dir=.
13932 for ac_exec_ext in '' $ac_executable_extensions; do
13933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13934 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13935 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13936 break 2
13937 fi
13938 done
13939 done
13940 IFS=$as_save_IFS
13941
13942 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13943 ;;
13944 esac
13945 fi
13946 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13947 if test -n "$PKG_CONFIG"; then
13948 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13949 $as_echo "$PKG_CONFIG" >&6; }
13950 else
13951 { $as_echo "$as_me:$LINENO: result: no" >&5
13952 $as_echo "no" >&6; }
13953 fi
13954
13955
13956
13957 if test "$PKG_CONFIG" = "no" ; then
13958 HAVE_LIBOTF=no
13959 else
13960 PKG_CONFIG_MIN_VERSION=0.9.0
13961 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13962 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
13963 $as_echo_n "checking for libotf... " >&6; }
13964
13965 if $PKG_CONFIG --exists "libotf" 2>&5; then
13966 { $as_echo "$as_me:$LINENO: result: yes" >&5
13967 $as_echo "yes" >&6; }
13968 succeeded=yes
13969
13970 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13971 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
13972 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13973 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13974 $as_echo "$LIBOTF_CFLAGS" >&6; }
13975
13976 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13977 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
13978 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13979 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13980 $as_echo "$LIBOTF_LIBS" >&6; }
13981 else
13982 { $as_echo "$as_me:$LINENO: result: no" >&5
13983 $as_echo "no" >&6; }
13984 LIBOTF_CFLAGS=""
13985 LIBOTF_LIBS=""
13986 ## If we have a custom action on failure, don't print errors, but
13987 ## do set a variable so people can do so.
13988 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13989
13990 fi
13991
13992
13993
13994 else
13995 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13996 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13997 fi
13998 fi
13999
14000 if test $succeeded = yes; then
14001 HAVE_LIBOTF=yes
14002 else
14003 HAVE_LIBOTF=no
14004 fi
14005
14006 if test "$HAVE_LIBOTF" = "yes"; then
14007
14008 cat >>confdefs.h <<\_ACEOF
14009 #define HAVE_LIBOTF 1
14010 _ACEOF
14011
14012 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14013 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14014 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14015 $as_echo_n "(cached) " >&6
14016 else
14017 ac_check_lib_save_LIBS=$LIBS
14018 LIBS="-lotf $LIBS"
14019 cat >conftest.$ac_ext <<_ACEOF
14020 /* confdefs.h. */
14021 _ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14025
14026 /* Override any GCC internal prototype to avoid an error.
14027 Use char because int might match the return type of a GCC
14028 builtin and then its argument prototype would still apply. */
14029 #ifdef __cplusplus
14030 extern "C"
14031 #endif
14032 char OTF_get_variation_glyphs ();
14033 int
14034 main ()
14035 {
14036 return OTF_get_variation_glyphs ();
14037 ;
14038 return 0;
14039 }
14040 _ACEOF
14041 rm -f conftest.$ac_objext conftest$ac_exeext
14042 if { (ac_try="$ac_link"
14043 case "(($ac_try" in
14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045 *) ac_try_echo=$ac_try;;
14046 esac
14047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14048 $as_echo "$ac_try_echo") >&5
14049 (eval "$ac_link") 2>conftest.er1
14050 ac_status=$?
14051 grep -v '^ *+' conftest.er1 >conftest.err
14052 rm -f conftest.er1
14053 cat conftest.err >&5
14054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); } && {
14056 test -z "$ac_c_werror_flag" ||
14057 test ! -s conftest.err
14058 } && test -s conftest$ac_exeext && {
14059 test "$cross_compiling" = yes ||
14060 $as_test_x conftest$ac_exeext
14061 }; then
14062 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14063 else
14064 $as_echo "$as_me: failed program was:" >&5
14065 sed 's/^/| /' conftest.$ac_ext >&5
14066
14067 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14068 fi
14069
14070 rm -rf conftest.dSYM
14071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14072 conftest$ac_exeext conftest.$ac_ext
14073 LIBS=$ac_check_lib_save_LIBS
14074 fi
14075 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14076 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14077 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14078 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14079 else
14080 HAVE_OTF_GET_VARIATION_GLYPHS=no
14081 fi
14082
14083 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14084
14085 cat >>confdefs.h <<\_ACEOF
14086 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14087 _ACEOF
14088
14089 fi
14090 fi
14091 fi
14092 fi
14093
14094 HAVE_M17N_FLT=no
14095 if test "${HAVE_LIBOTF}" = yes; then
14096 if test "${with_m17n_flt}" != "no"; then
14097
14098 succeeded=no
14099
14100 # Extract the first word of "pkg-config", so it can be a program name with args.
14101 set dummy pkg-config; ac_word=$2
14102 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14103 $as_echo_n "checking for $ac_word... " >&6; }
14104 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14105 $as_echo_n "(cached) " >&6
14106 else
14107 case $PKG_CONFIG in
14108 [\\/]* | ?:[\\/]*)
14109 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14110 ;;
14111 *)
14112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14113 for as_dir in $PATH
14114 do
14115 IFS=$as_save_IFS
14116 test -z "$as_dir" && as_dir=.
14117 for ac_exec_ext in '' $ac_executable_extensions; do
14118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14119 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14120 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14121 break 2
14122 fi
14123 done
14124 done
14125 IFS=$as_save_IFS
14126
14127 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14128 ;;
14129 esac
14130 fi
14131 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14132 if test -n "$PKG_CONFIG"; then
14133 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14134 $as_echo "$PKG_CONFIG" >&6; }
14135 else
14136 { $as_echo "$as_me:$LINENO: result: no" >&5
14137 $as_echo "no" >&6; }
14138 fi
14139
14140
14141
14142 if test "$PKG_CONFIG" = "no" ; then
14143 HAVE_M17N_FLT=no
14144 else
14145 PKG_CONFIG_MIN_VERSION=0.9.0
14146 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14147 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14148 $as_echo_n "checking for m17n-flt... " >&6; }
14149
14150 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14151 { $as_echo "$as_me:$LINENO: result: yes" >&5
14152 $as_echo "yes" >&6; }
14153 succeeded=yes
14154
14155 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14156 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14157 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14158 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14159 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14160
14161 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14162 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14163 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14164 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14165 $as_echo "$M17N_FLT_LIBS" >&6; }
14166 else
14167 { $as_echo "$as_me:$LINENO: result: no" >&5
14168 $as_echo "no" >&6; }
14169 M17N_FLT_CFLAGS=""
14170 M17N_FLT_LIBS=""
14171 ## If we have a custom action on failure, don't print errors, but
14172 ## do set a variable so people can do so.
14173 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14174
14175 fi
14176
14177
14178
14179 else
14180 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14181 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14182 fi
14183 fi
14184
14185 if test $succeeded = yes; then
14186 HAVE_M17N_FLT=yes
14187 else
14188 HAVE_M17N_FLT=no
14189 fi
14190
14191 if test "$HAVE_M17N_FLT" = "yes"; then
14192
14193 cat >>confdefs.h <<\_ACEOF
14194 #define HAVE_M17N_FLT 1
14195 _ACEOF
14196
14197 fi
14198 fi
14199 fi
14200 else
14201 HAVE_XFT=no
14202 HAVE_FREETYPE=no
14203 HAVE_LIBOTF=no
14204 HAVE_M17N_FLT=no
14205 fi
14206 ### End of font-backend (under X11) section.
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217 ### Use -lXpm if available, unless `--with-xpm=no'.
14218 HAVE_XPM=no
14219 if test "${HAVE_X11}" = "yes"; then
14220 if test "${with_xpm}" != "no"; then
14221 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14222 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14223 $as_echo_n "checking for X11/xpm.h... " >&6; }
14224 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14225 $as_echo_n "(cached) " >&6
14226 fi
14227 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14228 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14229 else
14230 # Is the header compilable?
14231 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14232 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14233 cat >conftest.$ac_ext <<_ACEOF
14234 /* confdefs.h. */
14235 _ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14239 $ac_includes_default
14240 #include <X11/xpm.h>
14241 _ACEOF
14242 rm -f conftest.$ac_objext
14243 if { (ac_try="$ac_compile"
14244 case "(($ac_try" in
14245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14246 *) ac_try_echo=$ac_try;;
14247 esac
14248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14249 $as_echo "$ac_try_echo") >&5
14250 (eval "$ac_compile") 2>conftest.er1
14251 ac_status=$?
14252 grep -v '^ *+' conftest.er1 >conftest.err
14253 rm -f conftest.er1
14254 cat conftest.err >&5
14255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); } && {
14257 test -z "$ac_c_werror_flag" ||
14258 test ! -s conftest.err
14259 } && test -s conftest.$ac_objext; then
14260 ac_header_compiler=yes
14261 else
14262 $as_echo "$as_me: failed program was:" >&5
14263 sed 's/^/| /' conftest.$ac_ext >&5
14264
14265 ac_header_compiler=no
14266 fi
14267
14268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14269 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14270 $as_echo "$ac_header_compiler" >&6; }
14271
14272 # Is the header present?
14273 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14274 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14275 cat >conftest.$ac_ext <<_ACEOF
14276 /* confdefs.h. */
14277 _ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14281 #include <X11/xpm.h>
14282 _ACEOF
14283 if { (ac_try="$ac_cpp conftest.$ac_ext"
14284 case "(($ac_try" in
14285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14287 esac
14288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14289 $as_echo "$ac_try_echo") >&5
14290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14291 ac_status=$?
14292 grep -v '^ *+' conftest.er1 >conftest.err
14293 rm -f conftest.er1
14294 cat conftest.err >&5
14295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } >/dev/null && {
14297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14298 test ! -s conftest.err
14299 }; then
14300 ac_header_preproc=yes
14301 else
14302 $as_echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.$ac_ext >&5
14304
14305 ac_header_preproc=no
14306 fi
14307
14308 rm -f conftest.err conftest.$ac_ext
14309 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14310 $as_echo "$ac_header_preproc" >&6; }
14311
14312 # So? What about this header?
14313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14314 yes:no: )
14315 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14316 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14317 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14318 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14319 ac_header_preproc=yes
14320 ;;
14321 no:yes:* )
14322 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14323 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14324 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14325 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14326 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14327 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14328 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14329 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14330 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14331 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14332 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14333 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14334
14335 ;;
14336 esac
14337 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14338 $as_echo_n "checking for X11/xpm.h... " >&6; }
14339 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14340 $as_echo_n "(cached) " >&6
14341 else
14342 ac_cv_header_X11_xpm_h=$ac_header_preproc
14343 fi
14344 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14345 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14346
14347 fi
14348 if test $ac_cv_header_X11_xpm_h = yes; then
14349 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14350 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14351 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14352 $as_echo_n "(cached) " >&6
14353 else
14354 ac_check_lib_save_LIBS=$LIBS
14355 LIBS="-lXpm -lX11 $LIBS"
14356 cat >conftest.$ac_ext <<_ACEOF
14357 /* confdefs.h. */
14358 _ACEOF
14359 cat confdefs.h >>conftest.$ac_ext
14360 cat >>conftest.$ac_ext <<_ACEOF
14361 /* end confdefs.h. */
14362
14363 /* Override any GCC internal prototype to avoid an error.
14364 Use char because int might match the return type of a GCC
14365 builtin and then its argument prototype would still apply. */
14366 #ifdef __cplusplus
14367 extern "C"
14368 #endif
14369 char XpmReadFileToPixmap ();
14370 int
14371 main ()
14372 {
14373 return XpmReadFileToPixmap ();
14374 ;
14375 return 0;
14376 }
14377 _ACEOF
14378 rm -f conftest.$ac_objext conftest$ac_exeext
14379 if { (ac_try="$ac_link"
14380 case "(($ac_try" in
14381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382 *) ac_try_echo=$ac_try;;
14383 esac
14384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14385 $as_echo "$ac_try_echo") >&5
14386 (eval "$ac_link") 2>conftest.er1
14387 ac_status=$?
14388 grep -v '^ *+' conftest.er1 >conftest.err
14389 rm -f conftest.er1
14390 cat conftest.err >&5
14391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } && {
14393 test -z "$ac_c_werror_flag" ||
14394 test ! -s conftest.err
14395 } && test -s conftest$ac_exeext && {
14396 test "$cross_compiling" = yes ||
14397 $as_test_x conftest$ac_exeext
14398 }; then
14399 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14400 else
14401 $as_echo "$as_me: failed program was:" >&5
14402 sed 's/^/| /' conftest.$ac_ext >&5
14403
14404 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14405 fi
14406
14407 rm -rf conftest.dSYM
14408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14409 conftest$ac_exeext conftest.$ac_ext
14410 LIBS=$ac_check_lib_save_LIBS
14411 fi
14412 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14413 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14414 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14415 HAVE_XPM=yes
14416 fi
14417
14418 fi
14419
14420
14421 if test "${HAVE_XPM}" = "yes"; then
14422 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14423 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14424 cat >conftest.$ac_ext <<_ACEOF
14425 /* confdefs.h. */
14426 _ACEOF
14427 cat confdefs.h >>conftest.$ac_ext
14428 cat >>conftest.$ac_ext <<_ACEOF
14429 /* end confdefs.h. */
14430 #include "X11/xpm.h"
14431 #ifndef XpmReturnAllocPixels
14432 no_return_alloc_pixels
14433 #endif
14434
14435 _ACEOF
14436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14437 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14438 HAVE_XPM=no
14439 else
14440 HAVE_XPM=yes
14441 fi
14442 rm -f conftest*
14443
14444
14445 if test "${HAVE_XPM}" = "yes"; then
14446 { $as_echo "$as_me:$LINENO: result: yes" >&5
14447 $as_echo "yes" >&6; }
14448 else
14449 { $as_echo "$as_me:$LINENO: result: no" >&5
14450 $as_echo "no" >&6; }
14451 fi
14452 fi
14453 fi
14454
14455 if test "${HAVE_XPM}" = "yes"; then
14456
14457 cat >>confdefs.h <<\_ACEOF
14458 #define HAVE_XPM 1
14459 _ACEOF
14460
14461 fi
14462 fi
14463
14464 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14465 HAVE_JPEG=no
14466 if test "${HAVE_X11}" = "yes"; then
14467 if test "${with_jpeg}" != "no"; then
14468 if test "${ac_cv_header_jerror_h+set}" = set; then
14469 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14470 $as_echo_n "checking for jerror.h... " >&6; }
14471 if test "${ac_cv_header_jerror_h+set}" = set; then
14472 $as_echo_n "(cached) " >&6
14473 fi
14474 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14475 $as_echo "$ac_cv_header_jerror_h" >&6; }
14476 else
14477 # Is the header compilable?
14478 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14479 $as_echo_n "checking jerror.h usability... " >&6; }
14480 cat >conftest.$ac_ext <<_ACEOF
14481 /* confdefs.h. */
14482 _ACEOF
14483 cat confdefs.h >>conftest.$ac_ext
14484 cat >>conftest.$ac_ext <<_ACEOF
14485 /* end confdefs.h. */
14486 $ac_includes_default
14487 #include <jerror.h>
14488 _ACEOF
14489 rm -f conftest.$ac_objext
14490 if { (ac_try="$ac_compile"
14491 case "(($ac_try" in
14492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493 *) ac_try_echo=$ac_try;;
14494 esac
14495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14496 $as_echo "$ac_try_echo") >&5
14497 (eval "$ac_compile") 2>conftest.er1
14498 ac_status=$?
14499 grep -v '^ *+' conftest.er1 >conftest.err
14500 rm -f conftest.er1
14501 cat conftest.err >&5
14502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); } && {
14504 test -z "$ac_c_werror_flag" ||
14505 test ! -s conftest.err
14506 } && test -s conftest.$ac_objext; then
14507 ac_header_compiler=yes
14508 else
14509 $as_echo "$as_me: failed program was:" >&5
14510 sed 's/^/| /' conftest.$ac_ext >&5
14511
14512 ac_header_compiler=no
14513 fi
14514
14515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14516 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14517 $as_echo "$ac_header_compiler" >&6; }
14518
14519 # Is the header present?
14520 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14521 $as_echo_n "checking jerror.h presence... " >&6; }
14522 cat >conftest.$ac_ext <<_ACEOF
14523 /* confdefs.h. */
14524 _ACEOF
14525 cat confdefs.h >>conftest.$ac_ext
14526 cat >>conftest.$ac_ext <<_ACEOF
14527 /* end confdefs.h. */
14528 #include <jerror.h>
14529 _ACEOF
14530 if { (ac_try="$ac_cpp conftest.$ac_ext"
14531 case "(($ac_try" in
14532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14533 *) ac_try_echo=$ac_try;;
14534 esac
14535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14536 $as_echo "$ac_try_echo") >&5
14537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14538 ac_status=$?
14539 grep -v '^ *+' conftest.er1 >conftest.err
14540 rm -f conftest.er1
14541 cat conftest.err >&5
14542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); } >/dev/null && {
14544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14545 test ! -s conftest.err
14546 }; then
14547 ac_header_preproc=yes
14548 else
14549 $as_echo "$as_me: failed program was:" >&5
14550 sed 's/^/| /' conftest.$ac_ext >&5
14551
14552 ac_header_preproc=no
14553 fi
14554
14555 rm -f conftest.err conftest.$ac_ext
14556 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14557 $as_echo "$ac_header_preproc" >&6; }
14558
14559 # So? What about this header?
14560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14561 yes:no: )
14562 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14563 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14564 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14565 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14566 ac_header_preproc=yes
14567 ;;
14568 no:yes:* )
14569 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14570 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14571 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14572 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14573 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14574 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14575 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14576 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14577 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14578 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14579 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14580 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14581
14582 ;;
14583 esac
14584 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14585 $as_echo_n "checking for jerror.h... " >&6; }
14586 if test "${ac_cv_header_jerror_h+set}" = set; then
14587 $as_echo_n "(cached) " >&6
14588 else
14589 ac_cv_header_jerror_h=$ac_header_preproc
14590 fi
14591 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14592 $as_echo "$ac_cv_header_jerror_h" >&6; }
14593
14594 fi
14595 if test $ac_cv_header_jerror_h = yes; then
14596 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14597 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14598 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14599 $as_echo_n "(cached) " >&6
14600 else
14601 ac_check_lib_save_LIBS=$LIBS
14602 LIBS="-ljpeg $LIBS"
14603 cat >conftest.$ac_ext <<_ACEOF
14604 /* confdefs.h. */
14605 _ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h. */
14609
14610 /* Override any GCC internal prototype to avoid an error.
14611 Use char because int might match the return type of a GCC
14612 builtin and then its argument prototype would still apply. */
14613 #ifdef __cplusplus
14614 extern "C"
14615 #endif
14616 char jpeg_destroy_compress ();
14617 int
14618 main ()
14619 {
14620 return jpeg_destroy_compress ();
14621 ;
14622 return 0;
14623 }
14624 _ACEOF
14625 rm -f conftest.$ac_objext conftest$ac_exeext
14626 if { (ac_try="$ac_link"
14627 case "(($ac_try" in
14628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629 *) ac_try_echo=$ac_try;;
14630 esac
14631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14632 $as_echo "$ac_try_echo") >&5
14633 (eval "$ac_link") 2>conftest.er1
14634 ac_status=$?
14635 grep -v '^ *+' conftest.er1 >conftest.err
14636 rm -f conftest.er1
14637 cat conftest.err >&5
14638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } && {
14640 test -z "$ac_c_werror_flag" ||
14641 test ! -s conftest.err
14642 } && test -s conftest$ac_exeext && {
14643 test "$cross_compiling" = yes ||
14644 $as_test_x conftest$ac_exeext
14645 }; then
14646 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14647 else
14648 $as_echo "$as_me: failed program was:" >&5
14649 sed 's/^/| /' conftest.$ac_ext >&5
14650
14651 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14652 fi
14653
14654 rm -rf conftest.dSYM
14655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14656 conftest$ac_exeext conftest.$ac_ext
14657 LIBS=$ac_check_lib_save_LIBS
14658 fi
14659 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14660 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14661 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14662 HAVE_JPEG=yes
14663 fi
14664
14665 fi
14666
14667
14668 fi
14669
14670
14671 if test "${HAVE_JPEG}" = "yes"; then
14672 cat >>confdefs.h <<\_ACEOF
14673 #define HAVE_JPEG 1
14674 _ACEOF
14675
14676 cat >conftest.$ac_ext <<_ACEOF
14677 /* confdefs.h. */
14678 _ACEOF
14679 cat confdefs.h >>conftest.$ac_ext
14680 cat >>conftest.$ac_ext <<_ACEOF
14681 /* end confdefs.h. */
14682 #include <jpeglib.h>
14683 version=JPEG_LIB_VERSION
14684
14685 _ACEOF
14686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14687 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14688 cat >>confdefs.h <<\_ACEOF
14689 #define HAVE_JPEG 1
14690 _ACEOF
14691
14692 else
14693 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14694 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14695 HAVE_JPEG=no
14696 fi
14697 rm -f conftest*
14698
14699 fi
14700 fi
14701
14702 ### Use -lpng if available, unless `--with-png=no'.
14703 HAVE_PNG=no
14704 if test "${HAVE_X11}" = "yes"; then
14705 if test "${with_png}" != "no"; then
14706 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14707 # in /usr/include/libpng.
14708
14709
14710 for ac_header in png.h libpng/png.h
14711 do
14712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14714 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14715 $as_echo_n "checking for $ac_header... " >&6; }
14716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14717 $as_echo_n "(cached) " >&6
14718 fi
14719 ac_res=`eval 'as_val=${'$as_ac_Header'}
14720 $as_echo "$as_val"'`
14721 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14722 $as_echo "$ac_res" >&6; }
14723 else
14724 # Is the header compilable?
14725 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14726 $as_echo_n "checking $ac_header usability... " >&6; }
14727 cat >conftest.$ac_ext <<_ACEOF
14728 /* confdefs.h. */
14729 _ACEOF
14730 cat confdefs.h >>conftest.$ac_ext
14731 cat >>conftest.$ac_ext <<_ACEOF
14732 /* end confdefs.h. */
14733 $ac_includes_default
14734 #include <$ac_header>
14735 _ACEOF
14736 rm -f conftest.$ac_objext
14737 if { (ac_try="$ac_compile"
14738 case "(($ac_try" in
14739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740 *) ac_try_echo=$ac_try;;
14741 esac
14742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14743 $as_echo "$ac_try_echo") >&5
14744 (eval "$ac_compile") 2>conftest.er1
14745 ac_status=$?
14746 grep -v '^ *+' conftest.er1 >conftest.err
14747 rm -f conftest.er1
14748 cat conftest.err >&5
14749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } && {
14751 test -z "$ac_c_werror_flag" ||
14752 test ! -s conftest.err
14753 } && test -s conftest.$ac_objext; then
14754 ac_header_compiler=yes
14755 else
14756 $as_echo "$as_me: failed program was:" >&5
14757 sed 's/^/| /' conftest.$ac_ext >&5
14758
14759 ac_header_compiler=no
14760 fi
14761
14762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14763 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14764 $as_echo "$ac_header_compiler" >&6; }
14765
14766 # Is the header present?
14767 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14768 $as_echo_n "checking $ac_header presence... " >&6; }
14769 cat >conftest.$ac_ext <<_ACEOF
14770 /* confdefs.h. */
14771 _ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14775 #include <$ac_header>
14776 _ACEOF
14777 if { (ac_try="$ac_cpp conftest.$ac_ext"
14778 case "(($ac_try" in
14779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14780 *) ac_try_echo=$ac_try;;
14781 esac
14782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14783 $as_echo "$ac_try_echo") >&5
14784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14785 ac_status=$?
14786 grep -v '^ *+' conftest.er1 >conftest.err
14787 rm -f conftest.er1
14788 cat conftest.err >&5
14789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); } >/dev/null && {
14791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14792 test ! -s conftest.err
14793 }; then
14794 ac_header_preproc=yes
14795 else
14796 $as_echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14798
14799 ac_header_preproc=no
14800 fi
14801
14802 rm -f conftest.err conftest.$ac_ext
14803 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14804 $as_echo "$ac_header_preproc" >&6; }
14805
14806 # So? What about this header?
14807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14808 yes:no: )
14809 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14810 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14811 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14812 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14813 ac_header_preproc=yes
14814 ;;
14815 no:yes:* )
14816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14817 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14819 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14821 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14823 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14824 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14825 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14827 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14828
14829 ;;
14830 esac
14831 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14832 $as_echo_n "checking for $ac_header... " >&6; }
14833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14834 $as_echo_n "(cached) " >&6
14835 else
14836 eval "$as_ac_Header=\$ac_header_preproc"
14837 fi
14838 ac_res=`eval 'as_val=${'$as_ac_Header'}
14839 $as_echo "$as_val"'`
14840 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14841 $as_echo "$ac_res" >&6; }
14842
14843 fi
14844 if test `eval 'as_val=${'$as_ac_Header'}
14845 $as_echo "$as_val"'` = yes; then
14846 cat >>confdefs.h <<_ACEOF
14847 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14848 _ACEOF
14849
14850 fi
14851
14852 done
14853
14854 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14855 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14856 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
14857 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14858 $as_echo_n "(cached) " >&6
14859 else
14860 ac_check_lib_save_LIBS=$LIBS
14861 LIBS="-lpng -lz -lm $LIBS"
14862 cat >conftest.$ac_ext <<_ACEOF
14863 /* confdefs.h. */
14864 _ACEOF
14865 cat confdefs.h >>conftest.$ac_ext
14866 cat >>conftest.$ac_ext <<_ACEOF
14867 /* end confdefs.h. */
14868
14869 /* Override any GCC internal prototype to avoid an error.
14870 Use char because int might match the return type of a GCC
14871 builtin and then its argument prototype would still apply. */
14872 #ifdef __cplusplus
14873 extern "C"
14874 #endif
14875 char png_get_channels ();
14876 int
14877 main ()
14878 {
14879 return png_get_channels ();
14880 ;
14881 return 0;
14882 }
14883 _ACEOF
14884 rm -f conftest.$ac_objext conftest$ac_exeext
14885 if { (ac_try="$ac_link"
14886 case "(($ac_try" in
14887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14888 *) ac_try_echo=$ac_try;;
14889 esac
14890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14891 $as_echo "$ac_try_echo") >&5
14892 (eval "$ac_link") 2>conftest.er1
14893 ac_status=$?
14894 grep -v '^ *+' conftest.er1 >conftest.err
14895 rm -f conftest.er1
14896 cat conftest.err >&5
14897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); } && {
14899 test -z "$ac_c_werror_flag" ||
14900 test ! -s conftest.err
14901 } && test -s conftest$ac_exeext && {
14902 test "$cross_compiling" = yes ||
14903 $as_test_x conftest$ac_exeext
14904 }; then
14905 ac_cv_lib_png_png_get_channels=yes
14906 else
14907 $as_echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.$ac_ext >&5
14909
14910 ac_cv_lib_png_png_get_channels=no
14911 fi
14912
14913 rm -rf conftest.dSYM
14914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14915 conftest$ac_exeext conftest.$ac_ext
14916 LIBS=$ac_check_lib_save_LIBS
14917 fi
14918 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14919 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
14920 if test $ac_cv_lib_png_png_get_channels = yes; then
14921 HAVE_PNG=yes
14922 fi
14923
14924 fi
14925 fi
14926
14927 if test "${HAVE_PNG}" = "yes"; then
14928
14929 cat >>confdefs.h <<\_ACEOF
14930 #define HAVE_PNG 1
14931 _ACEOF
14932
14933 fi
14934 fi
14935
14936 ### Use -ltiff if available, unless `--with-tiff=no'.
14937 HAVE_TIFF=no
14938 if test "${HAVE_X11}" = "yes"; then
14939 if test "${with_tiff}" != "no"; then
14940 if test "${ac_cv_header_tiffio_h+set}" = set; then
14941 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
14942 $as_echo_n "checking for tiffio.h... " >&6; }
14943 if test "${ac_cv_header_tiffio_h+set}" = set; then
14944 $as_echo_n "(cached) " >&6
14945 fi
14946 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14947 $as_echo "$ac_cv_header_tiffio_h" >&6; }
14948 else
14949 # Is the header compilable?
14950 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14951 $as_echo_n "checking tiffio.h usability... " >&6; }
14952 cat >conftest.$ac_ext <<_ACEOF
14953 /* confdefs.h. */
14954 _ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14958 $ac_includes_default
14959 #include <tiffio.h>
14960 _ACEOF
14961 rm -f conftest.$ac_objext
14962 if { (ac_try="$ac_compile"
14963 case "(($ac_try" in
14964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965 *) ac_try_echo=$ac_try;;
14966 esac
14967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14968 $as_echo "$ac_try_echo") >&5
14969 (eval "$ac_compile") 2>conftest.er1
14970 ac_status=$?
14971 grep -v '^ *+' conftest.er1 >conftest.err
14972 rm -f conftest.er1
14973 cat conftest.err >&5
14974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } && {
14976 test -z "$ac_c_werror_flag" ||
14977 test ! -s conftest.err
14978 } && test -s conftest.$ac_objext; then
14979 ac_header_compiler=yes
14980 else
14981 $as_echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14983
14984 ac_header_compiler=no
14985 fi
14986
14987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14988 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14989 $as_echo "$ac_header_compiler" >&6; }
14990
14991 # Is the header present?
14992 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14993 $as_echo_n "checking tiffio.h presence... " >&6; }
14994 cat >conftest.$ac_ext <<_ACEOF
14995 /* confdefs.h. */
14996 _ACEOF
14997 cat confdefs.h >>conftest.$ac_ext
14998 cat >>conftest.$ac_ext <<_ACEOF
14999 /* end confdefs.h. */
15000 #include <tiffio.h>
15001 _ACEOF
15002 if { (ac_try="$ac_cpp conftest.$ac_ext"
15003 case "(($ac_try" in
15004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005 *) ac_try_echo=$ac_try;;
15006 esac
15007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15008 $as_echo "$ac_try_echo") >&5
15009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15010 ac_status=$?
15011 grep -v '^ *+' conftest.er1 >conftest.err
15012 rm -f conftest.er1
15013 cat conftest.err >&5
15014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); } >/dev/null && {
15016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15017 test ! -s conftest.err
15018 }; then
15019 ac_header_preproc=yes
15020 else
15021 $as_echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.$ac_ext >&5
15023
15024 ac_header_preproc=no
15025 fi
15026
15027 rm -f conftest.err conftest.$ac_ext
15028 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15029 $as_echo "$ac_header_preproc" >&6; }
15030
15031 # So? What about this header?
15032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15033 yes:no: )
15034 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15035 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15036 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15037 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15038 ac_header_preproc=yes
15039 ;;
15040 no:yes:* )
15041 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15042 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15043 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15044 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15045 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15046 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15047 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15048 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15049 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15050 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15051 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15052 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15053
15054 ;;
15055 esac
15056 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15057 $as_echo_n "checking for tiffio.h... " >&6; }
15058 if test "${ac_cv_header_tiffio_h+set}" = set; then
15059 $as_echo_n "(cached) " >&6
15060 else
15061 ac_cv_header_tiffio_h=$ac_header_preproc
15062 fi
15063 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15064 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15065
15066 fi
15067 if test $ac_cv_header_tiffio_h = yes; then
15068 tifflibs="-lz -lm"
15069 # At least one tiff package requires the jpeg library.
15070 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15071 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15072 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15073 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15074 $as_echo_n "(cached) " >&6
15075 else
15076 ac_check_lib_save_LIBS=$LIBS
15077 LIBS="-ltiff $tifflibs $LIBS"
15078 cat >conftest.$ac_ext <<_ACEOF
15079 /* confdefs.h. */
15080 _ACEOF
15081 cat confdefs.h >>conftest.$ac_ext
15082 cat >>conftest.$ac_ext <<_ACEOF
15083 /* end confdefs.h. */
15084
15085 /* Override any GCC internal prototype to avoid an error.
15086 Use char because int might match the return type of a GCC
15087 builtin and then its argument prototype would still apply. */
15088 #ifdef __cplusplus
15089 extern "C"
15090 #endif
15091 char TIFFGetVersion ();
15092 int
15093 main ()
15094 {
15095 return TIFFGetVersion ();
15096 ;
15097 return 0;
15098 }
15099 _ACEOF
15100 rm -f conftest.$ac_objext conftest$ac_exeext
15101 if { (ac_try="$ac_link"
15102 case "(($ac_try" in
15103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15104 *) ac_try_echo=$ac_try;;
15105 esac
15106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15107 $as_echo "$ac_try_echo") >&5
15108 (eval "$ac_link") 2>conftest.er1
15109 ac_status=$?
15110 grep -v '^ *+' conftest.er1 >conftest.err
15111 rm -f conftest.er1
15112 cat conftest.err >&5
15113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); } && {
15115 test -z "$ac_c_werror_flag" ||
15116 test ! -s conftest.err
15117 } && test -s conftest$ac_exeext && {
15118 test "$cross_compiling" = yes ||
15119 $as_test_x conftest$ac_exeext
15120 }; then
15121 ac_cv_lib_tiff_TIFFGetVersion=yes
15122 else
15123 $as_echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15125
15126 ac_cv_lib_tiff_TIFFGetVersion=no
15127 fi
15128
15129 rm -rf conftest.dSYM
15130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15131 conftest$ac_exeext conftest.$ac_ext
15132 LIBS=$ac_check_lib_save_LIBS
15133 fi
15134 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15135 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15136 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15137 HAVE_TIFF=yes
15138 fi
15139
15140 fi
15141
15142
15143 fi
15144
15145 if test "${HAVE_TIFF}" = "yes"; then
15146
15147 cat >>confdefs.h <<\_ACEOF
15148 #define HAVE_TIFF 1
15149 _ACEOF
15150
15151 fi
15152 fi
15153
15154 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15155 HAVE_GIF=no
15156 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15157 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15158 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15159 $as_echo_n "checking for gif_lib.h... " >&6; }
15160 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15161 $as_echo_n "(cached) " >&6
15162 fi
15163 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15164 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15165 else
15166 # Is the header compilable?
15167 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15168 $as_echo_n "checking gif_lib.h usability... " >&6; }
15169 cat >conftest.$ac_ext <<_ACEOF
15170 /* confdefs.h. */
15171 _ACEOF
15172 cat confdefs.h >>conftest.$ac_ext
15173 cat >>conftest.$ac_ext <<_ACEOF
15174 /* end confdefs.h. */
15175 $ac_includes_default
15176 #include <gif_lib.h>
15177 _ACEOF
15178 rm -f conftest.$ac_objext
15179 if { (ac_try="$ac_compile"
15180 case "(($ac_try" in
15181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15182 *) ac_try_echo=$ac_try;;
15183 esac
15184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15185 $as_echo "$ac_try_echo") >&5
15186 (eval "$ac_compile") 2>conftest.er1
15187 ac_status=$?
15188 grep -v '^ *+' conftest.er1 >conftest.err
15189 rm -f conftest.er1
15190 cat conftest.err >&5
15191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); } && {
15193 test -z "$ac_c_werror_flag" ||
15194 test ! -s conftest.err
15195 } && test -s conftest.$ac_objext; then
15196 ac_header_compiler=yes
15197 else
15198 $as_echo "$as_me: failed program was:" >&5
15199 sed 's/^/| /' conftest.$ac_ext >&5
15200
15201 ac_header_compiler=no
15202 fi
15203
15204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15205 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15206 $as_echo "$ac_header_compiler" >&6; }
15207
15208 # Is the header present?
15209 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15210 $as_echo_n "checking gif_lib.h presence... " >&6; }
15211 cat >conftest.$ac_ext <<_ACEOF
15212 /* confdefs.h. */
15213 _ACEOF
15214 cat confdefs.h >>conftest.$ac_ext
15215 cat >>conftest.$ac_ext <<_ACEOF
15216 /* end confdefs.h. */
15217 #include <gif_lib.h>
15218 _ACEOF
15219 if { (ac_try="$ac_cpp conftest.$ac_ext"
15220 case "(($ac_try" in
15221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15222 *) ac_try_echo=$ac_try;;
15223 esac
15224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15225 $as_echo "$ac_try_echo") >&5
15226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15227 ac_status=$?
15228 grep -v '^ *+' conftest.er1 >conftest.err
15229 rm -f conftest.er1
15230 cat conftest.err >&5
15231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); } >/dev/null && {
15233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15234 test ! -s conftest.err
15235 }; then
15236 ac_header_preproc=yes
15237 else
15238 $as_echo "$as_me: failed program was:" >&5
15239 sed 's/^/| /' conftest.$ac_ext >&5
15240
15241 ac_header_preproc=no
15242 fi
15243
15244 rm -f conftest.err conftest.$ac_ext
15245 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15246 $as_echo "$ac_header_preproc" >&6; }
15247
15248 # So? What about this header?
15249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15250 yes:no: )
15251 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15252 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15253 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15254 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15255 ac_header_preproc=yes
15256 ;;
15257 no:yes:* )
15258 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15259 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15260 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15261 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15262 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15263 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15264 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15265 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15266 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15267 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15268 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15269 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15270
15271 ;;
15272 esac
15273 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15274 $as_echo_n "checking for gif_lib.h... " >&6; }
15275 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15276 $as_echo_n "(cached) " >&6
15277 else
15278 ac_cv_header_gif_lib_h=$ac_header_preproc
15279 fi
15280 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15281 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15282
15283 fi
15284 if test $ac_cv_header_gif_lib_h = yes; then
15285 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15286 # Earlier versions can crash Emacs.
15287 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15288 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15289 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15290 $as_echo_n "(cached) " >&6
15291 else
15292 ac_check_lib_save_LIBS=$LIBS
15293 LIBS="-lgif $LIBS"
15294 cat >conftest.$ac_ext <<_ACEOF
15295 /* confdefs.h. */
15296 _ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h. */
15300
15301 /* Override any GCC internal prototype to avoid an error.
15302 Use char because int might match the return type of a GCC
15303 builtin and then its argument prototype would still apply. */
15304 #ifdef __cplusplus
15305 extern "C"
15306 #endif
15307 char EGifPutExtensionLast ();
15308 int
15309 main ()
15310 {
15311 return EGifPutExtensionLast ();
15312 ;
15313 return 0;
15314 }
15315 _ACEOF
15316 rm -f conftest.$ac_objext conftest$ac_exeext
15317 if { (ac_try="$ac_link"
15318 case "(($ac_try" in
15319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15320 *) ac_try_echo=$ac_try;;
15321 esac
15322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15323 $as_echo "$ac_try_echo") >&5
15324 (eval "$ac_link") 2>conftest.er1
15325 ac_status=$?
15326 grep -v '^ *+' conftest.er1 >conftest.err
15327 rm -f conftest.er1
15328 cat conftest.err >&5
15329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); } && {
15331 test -z "$ac_c_werror_flag" ||
15332 test ! -s conftest.err
15333 } && test -s conftest$ac_exeext && {
15334 test "$cross_compiling" = yes ||
15335 $as_test_x conftest$ac_exeext
15336 }; then
15337 ac_cv_lib_gif_EGifPutExtensionLast=yes
15338 else
15339 $as_echo "$as_me: failed program was:" >&5
15340 sed 's/^/| /' conftest.$ac_ext >&5
15341
15342 ac_cv_lib_gif_EGifPutExtensionLast=no
15343 fi
15344
15345 rm -rf conftest.dSYM
15346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15347 conftest$ac_exeext conftest.$ac_ext
15348 LIBS=$ac_check_lib_save_LIBS
15349 fi
15350 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15351 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15352 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15353 HAVE_GIF=yes
15354 else
15355 try_libungif=yes
15356 fi
15357
15358 fi
15359
15360
15361
15362 if test "$HAVE_GIF" = yes; then
15363 ac_gif_lib_name="-lgif"
15364 fi
15365
15366 # If gif_lib.h but no libgif, try libungif.
15367 if test x"$try_libungif" = xyes; then
15368 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15369 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15370 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15371 $as_echo_n "(cached) " >&6
15372 else
15373 ac_check_lib_save_LIBS=$LIBS
15374 LIBS="-lungif $LIBS"
15375 cat >conftest.$ac_ext <<_ACEOF
15376 /* confdefs.h. */
15377 _ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15381
15382 /* Override any GCC internal prototype to avoid an error.
15383 Use char because int might match the return type of a GCC
15384 builtin and then its argument prototype would still apply. */
15385 #ifdef __cplusplus
15386 extern "C"
15387 #endif
15388 char EGifPutExtensionLast ();
15389 int
15390 main ()
15391 {
15392 return EGifPutExtensionLast ();
15393 ;
15394 return 0;
15395 }
15396 _ACEOF
15397 rm -f conftest.$ac_objext conftest$ac_exeext
15398 if { (ac_try="$ac_link"
15399 case "(($ac_try" in
15400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15401 *) ac_try_echo=$ac_try;;
15402 esac
15403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15404 $as_echo "$ac_try_echo") >&5
15405 (eval "$ac_link") 2>conftest.er1
15406 ac_status=$?
15407 grep -v '^ *+' conftest.er1 >conftest.err
15408 rm -f conftest.er1
15409 cat conftest.err >&5
15410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); } && {
15412 test -z "$ac_c_werror_flag" ||
15413 test ! -s conftest.err
15414 } && test -s conftest$ac_exeext && {
15415 test "$cross_compiling" = yes ||
15416 $as_test_x conftest$ac_exeext
15417 }; then
15418 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15419 else
15420 $as_echo "$as_me: failed program was:" >&5
15421 sed 's/^/| /' conftest.$ac_ext >&5
15422
15423 ac_cv_lib_ungif_EGifPutExtensionLast=no
15424 fi
15425
15426 rm -rf conftest.dSYM
15427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15428 conftest$ac_exeext conftest.$ac_ext
15429 LIBS=$ac_check_lib_save_LIBS
15430 fi
15431 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15432 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15433 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15434 HAVE_GIF=yes
15435 fi
15436
15437
15438 if test "$HAVE_GIF" = yes; then
15439
15440 cat >>confdefs.h <<\_ACEOF
15441 #define LIBGIF -lungif
15442 _ACEOF
15443
15444 ac_gif_lib_name="-lungif"
15445 fi
15446 fi
15447
15448 if test "${HAVE_GIF}" = "yes"; then
15449
15450 cat >>confdefs.h <<\_ACEOF
15451 #define HAVE_GIF 1
15452 _ACEOF
15453
15454 fi
15455 fi
15456
15457 if test "${HAVE_X11}" = "yes"; then
15458 MISSING=""
15459 WITH_NO=""
15460 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15461 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15462 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15463 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15464 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15465 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15466 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15467 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15468 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15469 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15470
15471 if test "X${MISSING}" != X; then
15472 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15473 $MISSING
15474 Maybe some development libraries/packages are missing?
15475 If you don't want to link with them give
15476 $WITH_NO
15477 as options to configure" >&5
15478 $as_echo "$as_me: error: The following required libraries were not found:
15479 $MISSING
15480 Maybe some development libraries/packages are missing?
15481 If you don't want to link with them give
15482 $WITH_NO
15483 as options to configure" >&2;}
15484 { (exit 1); exit 1; }; }
15485 fi
15486 fi
15487
15488 ### Use -lgpm if available, unless `--with-gpm=no'.
15489 HAVE_GPM=no
15490 if test "${with_gpm}" != "no"; then
15491 if test "${ac_cv_header_gpm_h+set}" = set; then
15492 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15493 $as_echo_n "checking for gpm.h... " >&6; }
15494 if test "${ac_cv_header_gpm_h+set}" = set; then
15495 $as_echo_n "(cached) " >&6
15496 fi
15497 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15498 $as_echo "$ac_cv_header_gpm_h" >&6; }
15499 else
15500 # Is the header compilable?
15501 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15502 $as_echo_n "checking gpm.h usability... " >&6; }
15503 cat >conftest.$ac_ext <<_ACEOF
15504 /* confdefs.h. */
15505 _ACEOF
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h. */
15509 $ac_includes_default
15510 #include <gpm.h>
15511 _ACEOF
15512 rm -f conftest.$ac_objext
15513 if { (ac_try="$ac_compile"
15514 case "(($ac_try" in
15515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516 *) ac_try_echo=$ac_try;;
15517 esac
15518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15519 $as_echo "$ac_try_echo") >&5
15520 (eval "$ac_compile") 2>conftest.er1
15521 ac_status=$?
15522 grep -v '^ *+' conftest.er1 >conftest.err
15523 rm -f conftest.er1
15524 cat conftest.err >&5
15525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); } && {
15527 test -z "$ac_c_werror_flag" ||
15528 test ! -s conftest.err
15529 } && test -s conftest.$ac_objext; then
15530 ac_header_compiler=yes
15531 else
15532 $as_echo "$as_me: failed program was:" >&5
15533 sed 's/^/| /' conftest.$ac_ext >&5
15534
15535 ac_header_compiler=no
15536 fi
15537
15538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15539 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15540 $as_echo "$ac_header_compiler" >&6; }
15541
15542 # Is the header present?
15543 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15544 $as_echo_n "checking gpm.h presence... " >&6; }
15545 cat >conftest.$ac_ext <<_ACEOF
15546 /* confdefs.h. */
15547 _ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h. */
15551 #include <gpm.h>
15552 _ACEOF
15553 if { (ac_try="$ac_cpp conftest.$ac_ext"
15554 case "(($ac_try" in
15555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15556 *) ac_try_echo=$ac_try;;
15557 esac
15558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15559 $as_echo "$ac_try_echo") >&5
15560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15561 ac_status=$?
15562 grep -v '^ *+' conftest.er1 >conftest.err
15563 rm -f conftest.er1
15564 cat conftest.err >&5
15565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); } >/dev/null && {
15567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15568 test ! -s conftest.err
15569 }; then
15570 ac_header_preproc=yes
15571 else
15572 $as_echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.$ac_ext >&5
15574
15575 ac_header_preproc=no
15576 fi
15577
15578 rm -f conftest.err conftest.$ac_ext
15579 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15580 $as_echo "$ac_header_preproc" >&6; }
15581
15582 # So? What about this header?
15583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15584 yes:no: )
15585 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15586 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15587 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15588 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15589 ac_header_preproc=yes
15590 ;;
15591 no:yes:* )
15592 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15593 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15594 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15595 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15596 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15597 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15598 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15599 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15600 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15601 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15602 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15603 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15604
15605 ;;
15606 esac
15607 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15608 $as_echo_n "checking for gpm.h... " >&6; }
15609 if test "${ac_cv_header_gpm_h+set}" = set; then
15610 $as_echo_n "(cached) " >&6
15611 else
15612 ac_cv_header_gpm_h=$ac_header_preproc
15613 fi
15614 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15615 $as_echo "$ac_cv_header_gpm_h" >&6; }
15616
15617 fi
15618 if test $ac_cv_header_gpm_h = yes; then
15619 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15620 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15621 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15622 $as_echo_n "(cached) " >&6
15623 else
15624 ac_check_lib_save_LIBS=$LIBS
15625 LIBS="-lgpm $LIBS"
15626 cat >conftest.$ac_ext <<_ACEOF
15627 /* confdefs.h. */
15628 _ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h. */
15632
15633 /* Override any GCC internal prototype to avoid an error.
15634 Use char because int might match the return type of a GCC
15635 builtin and then its argument prototype would still apply. */
15636 #ifdef __cplusplus
15637 extern "C"
15638 #endif
15639 char Gpm_Open ();
15640 int
15641 main ()
15642 {
15643 return Gpm_Open ();
15644 ;
15645 return 0;
15646 }
15647 _ACEOF
15648 rm -f conftest.$ac_objext conftest$ac_exeext
15649 if { (ac_try="$ac_link"
15650 case "(($ac_try" in
15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652 *) ac_try_echo=$ac_try;;
15653 esac
15654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15655 $as_echo "$ac_try_echo") >&5
15656 (eval "$ac_link") 2>conftest.er1
15657 ac_status=$?
15658 grep -v '^ *+' conftest.er1 >conftest.err
15659 rm -f conftest.er1
15660 cat conftest.err >&5
15661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); } && {
15663 test -z "$ac_c_werror_flag" ||
15664 test ! -s conftest.err
15665 } && test -s conftest$ac_exeext && {
15666 test "$cross_compiling" = yes ||
15667 $as_test_x conftest$ac_exeext
15668 }; then
15669 ac_cv_lib_gpm_Gpm_Open=yes
15670 else
15671 $as_echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15673
15674 ac_cv_lib_gpm_Gpm_Open=no
15675 fi
15676
15677 rm -rf conftest.dSYM
15678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15679 conftest$ac_exeext conftest.$ac_ext
15680 LIBS=$ac_check_lib_save_LIBS
15681 fi
15682 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15683 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15684 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15685 HAVE_GPM=yes
15686 fi
15687
15688 fi
15689
15690
15691 fi
15692
15693 if test "${HAVE_GPM}" = "yes"; then
15694
15695 cat >>confdefs.h <<\_ACEOF
15696 #define HAVE_GPM 1
15697 _ACEOF
15698
15699 fi
15700
15701 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15702 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15703 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15704 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15705 $as_echo_n "(cached) " >&6
15706 fi
15707 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15708 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15709 else
15710 # Is the header compilable?
15711 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15712 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15713 cat >conftest.$ac_ext <<_ACEOF
15714 /* confdefs.h. */
15715 _ACEOF
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h. */
15719 $ac_includes_default
15720 #include <malloc/malloc.h>
15721 _ACEOF
15722 rm -f conftest.$ac_objext
15723 if { (ac_try="$ac_compile"
15724 case "(($ac_try" in
15725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15726 *) ac_try_echo=$ac_try;;
15727 esac
15728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15729 $as_echo "$ac_try_echo") >&5
15730 (eval "$ac_compile") 2>conftest.er1
15731 ac_status=$?
15732 grep -v '^ *+' conftest.er1 >conftest.err
15733 rm -f conftest.er1
15734 cat conftest.err >&5
15735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } && {
15737 test -z "$ac_c_werror_flag" ||
15738 test ! -s conftest.err
15739 } && test -s conftest.$ac_objext; then
15740 ac_header_compiler=yes
15741 else
15742 $as_echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.$ac_ext >&5
15744
15745 ac_header_compiler=no
15746 fi
15747
15748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15749 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15750 $as_echo "$ac_header_compiler" >&6; }
15751
15752 # Is the header present?
15753 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15754 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15755 cat >conftest.$ac_ext <<_ACEOF
15756 /* confdefs.h. */
15757 _ACEOF
15758 cat confdefs.h >>conftest.$ac_ext
15759 cat >>conftest.$ac_ext <<_ACEOF
15760 /* end confdefs.h. */
15761 #include <malloc/malloc.h>
15762 _ACEOF
15763 if { (ac_try="$ac_cpp conftest.$ac_ext"
15764 case "(($ac_try" in
15765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766 *) ac_try_echo=$ac_try;;
15767 esac
15768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15769 $as_echo "$ac_try_echo") >&5
15770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15771 ac_status=$?
15772 grep -v '^ *+' conftest.er1 >conftest.err
15773 rm -f conftest.er1
15774 cat conftest.err >&5
15775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); } >/dev/null && {
15777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15778 test ! -s conftest.err
15779 }; then
15780 ac_header_preproc=yes
15781 else
15782 $as_echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15784
15785 ac_header_preproc=no
15786 fi
15787
15788 rm -f conftest.err conftest.$ac_ext
15789 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15790 $as_echo "$ac_header_preproc" >&6; }
15791
15792 # So? What about this header?
15793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15794 yes:no: )
15795 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15796 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15797 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15798 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15799 ac_header_preproc=yes
15800 ;;
15801 no:yes:* )
15802 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15803 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15804 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15805 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15806 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15807 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15808 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15809 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15810 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15811 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15812 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15813 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15814
15815 ;;
15816 esac
15817 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15818 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15819 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15820 $as_echo_n "(cached) " >&6
15821 else
15822 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15823 fi
15824 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15825 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15826
15827 fi
15828 if test $ac_cv_header_malloc_malloc_h = yes; then
15829
15830 cat >>confdefs.h <<\_ACEOF
15831 #define HAVE_MALLOC_MALLOC_H 1
15832 _ACEOF
15833
15834 fi
15835
15836
15837
15838 ### Use NeXTstep API to implement GUI.
15839 if test "${HAVE_NS}" = "yes"; then
15840
15841 cat >>confdefs.h <<\_ACEOF
15842 #define HAVE_NS 1
15843 _ACEOF
15844
15845 if test "${NS_IMPL_COCOA}" = "yes"; then
15846
15847 cat >>confdefs.h <<\_ACEOF
15848 #define NS_IMPL_COCOA 1
15849 _ACEOF
15850
15851 GNU_OBJC_CFLAGS=
15852 fi
15853 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15854
15855 cat >>confdefs.h <<\_ACEOF
15856 #define NS_IMPL_GNUSTEP 1
15857 _ACEOF
15858
15859 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15860 fi
15861 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15862
15863 cat >>confdefs.h <<\_ACEOF
15864 #define NS_HAVE_NSINTEGER 1
15865 _ACEOF
15866
15867 fi
15868 # We also have mouse menus.
15869 HAVE_MENUS=yes
15870 OTHER_FILES=ns-app
15871 fi
15872
15873
15874 ### Use session management (-lSM -lICE) if available
15875 HAVE_X_SM=no
15876 if test "${HAVE_X11}" = "yes"; then
15877 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15878 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15879 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15880 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15881 $as_echo_n "(cached) " >&6
15882 fi
15883 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15884 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15885 else
15886 # Is the header compilable?
15887 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15888 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
15889 cat >conftest.$ac_ext <<_ACEOF
15890 /* confdefs.h. */
15891 _ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895 $ac_includes_default
15896 #include <X11/SM/SMlib.h>
15897 _ACEOF
15898 rm -f conftest.$ac_objext
15899 if { (ac_try="$ac_compile"
15900 case "(($ac_try" in
15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902 *) ac_try_echo=$ac_try;;
15903 esac
15904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15905 $as_echo "$ac_try_echo") >&5
15906 (eval "$ac_compile") 2>conftest.er1
15907 ac_status=$?
15908 grep -v '^ *+' conftest.er1 >conftest.err
15909 rm -f conftest.er1
15910 cat conftest.err >&5
15911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } && {
15913 test -z "$ac_c_werror_flag" ||
15914 test ! -s conftest.err
15915 } && test -s conftest.$ac_objext; then
15916 ac_header_compiler=yes
15917 else
15918 $as_echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15920
15921 ac_header_compiler=no
15922 fi
15923
15924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15925 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15926 $as_echo "$ac_header_compiler" >&6; }
15927
15928 # Is the header present?
15929 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15930 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
15931 cat >conftest.$ac_ext <<_ACEOF
15932 /* confdefs.h. */
15933 _ACEOF
15934 cat confdefs.h >>conftest.$ac_ext
15935 cat >>conftest.$ac_ext <<_ACEOF
15936 /* end confdefs.h. */
15937 #include <X11/SM/SMlib.h>
15938 _ACEOF
15939 if { (ac_try="$ac_cpp conftest.$ac_ext"
15940 case "(($ac_try" in
15941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15942 *) ac_try_echo=$ac_try;;
15943 esac
15944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15945 $as_echo "$ac_try_echo") >&5
15946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15947 ac_status=$?
15948 grep -v '^ *+' conftest.er1 >conftest.err
15949 rm -f conftest.er1
15950 cat conftest.err >&5
15951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); } >/dev/null && {
15953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15954 test ! -s conftest.err
15955 }; then
15956 ac_header_preproc=yes
15957 else
15958 $as_echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.$ac_ext >&5
15960
15961 ac_header_preproc=no
15962 fi
15963
15964 rm -f conftest.err conftest.$ac_ext
15965 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15966 $as_echo "$ac_header_preproc" >&6; }
15967
15968 # So? What about this header?
15969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15970 yes:no: )
15971 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15972 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15973 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15974 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15975 ac_header_preproc=yes
15976 ;;
15977 no:yes:* )
15978 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15979 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15980 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15981 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15982 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15983 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15984 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15985 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15986 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15987 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15988 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15989 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15990
15991 ;;
15992 esac
15993 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15994 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15995 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15996 $as_echo_n "(cached) " >&6
15997 else
15998 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15999 fi
16000 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16001 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16002
16003 fi
16004 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16005 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16006 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16007 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16008 $as_echo_n "(cached) " >&6
16009 else
16010 ac_check_lib_save_LIBS=$LIBS
16011 LIBS="-lSM -lICE $LIBS"
16012 cat >conftest.$ac_ext <<_ACEOF
16013 /* confdefs.h. */
16014 _ACEOF
16015 cat confdefs.h >>conftest.$ac_ext
16016 cat >>conftest.$ac_ext <<_ACEOF
16017 /* end confdefs.h. */
16018
16019 /* Override any GCC internal prototype to avoid an error.
16020 Use char because int might match the return type of a GCC
16021 builtin and then its argument prototype would still apply. */
16022 #ifdef __cplusplus
16023 extern "C"
16024 #endif
16025 char SmcOpenConnection ();
16026 int
16027 main ()
16028 {
16029 return SmcOpenConnection ();
16030 ;
16031 return 0;
16032 }
16033 _ACEOF
16034 rm -f conftest.$ac_objext conftest$ac_exeext
16035 if { (ac_try="$ac_link"
16036 case "(($ac_try" in
16037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16038 *) ac_try_echo=$ac_try;;
16039 esac
16040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16041 $as_echo "$ac_try_echo") >&5
16042 (eval "$ac_link") 2>conftest.er1
16043 ac_status=$?
16044 grep -v '^ *+' conftest.er1 >conftest.err
16045 rm -f conftest.er1
16046 cat conftest.err >&5
16047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); } && {
16049 test -z "$ac_c_werror_flag" ||
16050 test ! -s conftest.err
16051 } && test -s conftest$ac_exeext && {
16052 test "$cross_compiling" = yes ||
16053 $as_test_x conftest$ac_exeext
16054 }; then
16055 ac_cv_lib_SM_SmcOpenConnection=yes
16056 else
16057 $as_echo "$as_me: failed program was:" >&5
16058 sed 's/^/| /' conftest.$ac_ext >&5
16059
16060 ac_cv_lib_SM_SmcOpenConnection=no
16061 fi
16062
16063 rm -rf conftest.dSYM
16064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16065 conftest$ac_exeext conftest.$ac_ext
16066 LIBS=$ac_check_lib_save_LIBS
16067 fi
16068 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16069 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16070 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16071 HAVE_X_SM=yes
16072 fi
16073
16074 fi
16075
16076
16077
16078 if test "${HAVE_X_SM}" = "yes"; then
16079
16080 cat >>confdefs.h <<\_ACEOF
16081 #define HAVE_X_SM 1
16082 _ACEOF
16083
16084 case "$LIBS" in
16085 *-lSM*) ;;
16086 *) LIBS="-lSM -lICE $LIBS" ;;
16087 esac
16088 fi
16089 fi
16090
16091 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16092 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16093 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16094 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16095 $as_echo_n "(cached) " >&6
16096 else
16097 cat >conftest.$ac_ext <<_ACEOF
16098 /* confdefs.h. */
16099 _ACEOF
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h. */
16103 #include <netdb.h>
16104 int
16105 main ()
16106 {
16107 return h_errno;
16108 ;
16109 return 0;
16110 }
16111 _ACEOF
16112 rm -f conftest.$ac_objext conftest$ac_exeext
16113 if { (ac_try="$ac_link"
16114 case "(($ac_try" in
16115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16116 *) ac_try_echo=$ac_try;;
16117 esac
16118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16119 $as_echo "$ac_try_echo") >&5
16120 (eval "$ac_link") 2>conftest.er1
16121 ac_status=$?
16122 grep -v '^ *+' conftest.er1 >conftest.err
16123 rm -f conftest.er1
16124 cat conftest.err >&5
16125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); } && {
16127 test -z "$ac_c_werror_flag" ||
16128 test ! -s conftest.err
16129 } && test -s conftest$ac_exeext && {
16130 test "$cross_compiling" = yes ||
16131 $as_test_x conftest$ac_exeext
16132 }; then
16133 emacs_cv_netdb_declares_h_errno=yes
16134 else
16135 $as_echo "$as_me: failed program was:" >&5
16136 sed 's/^/| /' conftest.$ac_ext >&5
16137
16138 emacs_cv_netdb_declares_h_errno=no
16139 fi
16140
16141 rm -rf conftest.dSYM
16142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16143 conftest$ac_exeext conftest.$ac_ext
16144 fi
16145 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16146 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16147 if test $emacs_cv_netdb_declares_h_errno = yes; then
16148
16149 cat >>confdefs.h <<\_ACEOF
16150 #define HAVE_H_ERRNO 1
16151 _ACEOF
16152
16153 fi
16154
16155 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16156 # for constant arguments. Useless!
16157 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16158 $as_echo_n "checking for working alloca.h... " >&6; }
16159 if test "${ac_cv_working_alloca_h+set}" = set; then
16160 $as_echo_n "(cached) " >&6
16161 else
16162 cat >conftest.$ac_ext <<_ACEOF
16163 /* confdefs.h. */
16164 _ACEOF
16165 cat confdefs.h >>conftest.$ac_ext
16166 cat >>conftest.$ac_ext <<_ACEOF
16167 /* end confdefs.h. */
16168 #include <alloca.h>
16169 int
16170 main ()
16171 {
16172 char *p = (char *) alloca (2 * sizeof (int));
16173 if (p) return 0;
16174 ;
16175 return 0;
16176 }
16177 _ACEOF
16178 rm -f conftest.$ac_objext conftest$ac_exeext
16179 if { (ac_try="$ac_link"
16180 case "(($ac_try" in
16181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16182 *) ac_try_echo=$ac_try;;
16183 esac
16184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16185 $as_echo "$ac_try_echo") >&5
16186 (eval "$ac_link") 2>conftest.er1
16187 ac_status=$?
16188 grep -v '^ *+' conftest.er1 >conftest.err
16189 rm -f conftest.er1
16190 cat conftest.err >&5
16191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); } && {
16193 test -z "$ac_c_werror_flag" ||
16194 test ! -s conftest.err
16195 } && test -s conftest$ac_exeext && {
16196 test "$cross_compiling" = yes ||
16197 $as_test_x conftest$ac_exeext
16198 }; then
16199 ac_cv_working_alloca_h=yes
16200 else
16201 $as_echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.$ac_ext >&5
16203
16204 ac_cv_working_alloca_h=no
16205 fi
16206
16207 rm -rf conftest.dSYM
16208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16209 conftest$ac_exeext conftest.$ac_ext
16210 fi
16211 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16212 $as_echo "$ac_cv_working_alloca_h" >&6; }
16213 if test $ac_cv_working_alloca_h = yes; then
16214
16215 cat >>confdefs.h <<\_ACEOF
16216 #define HAVE_ALLOCA_H 1
16217 _ACEOF
16218
16219 fi
16220
16221 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16222 $as_echo_n "checking for alloca... " >&6; }
16223 if test "${ac_cv_func_alloca_works+set}" = set; then
16224 $as_echo_n "(cached) " >&6
16225 else
16226 cat >conftest.$ac_ext <<_ACEOF
16227 /* confdefs.h. */
16228 _ACEOF
16229 cat confdefs.h >>conftest.$ac_ext
16230 cat >>conftest.$ac_ext <<_ACEOF
16231 /* end confdefs.h. */
16232 #ifdef __GNUC__
16233 # define alloca __builtin_alloca
16234 #else
16235 # ifdef _MSC_VER
16236 # include <malloc.h>
16237 # define alloca _alloca
16238 # else
16239 # ifdef HAVE_ALLOCA_H
16240 # include <alloca.h>
16241 # else
16242 # ifdef _AIX
16243 #pragma alloca
16244 # else
16245 # ifndef alloca /* predefined by HP cc +Olibcalls */
16246 char *alloca ();
16247 # endif
16248 # endif
16249 # endif
16250 # endif
16251 #endif
16252
16253 int
16254 main ()
16255 {
16256 char *p = (char *) alloca (1);
16257 if (p) return 0;
16258 ;
16259 return 0;
16260 }
16261 _ACEOF
16262 rm -f conftest.$ac_objext conftest$ac_exeext
16263 if { (ac_try="$ac_link"
16264 case "(($ac_try" in
16265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16266 *) ac_try_echo=$ac_try;;
16267 esac
16268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16269 $as_echo "$ac_try_echo") >&5
16270 (eval "$ac_link") 2>conftest.er1
16271 ac_status=$?
16272 grep -v '^ *+' conftest.er1 >conftest.err
16273 rm -f conftest.er1
16274 cat conftest.err >&5
16275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } && {
16277 test -z "$ac_c_werror_flag" ||
16278 test ! -s conftest.err
16279 } && test -s conftest$ac_exeext && {
16280 test "$cross_compiling" = yes ||
16281 $as_test_x conftest$ac_exeext
16282 }; then
16283 ac_cv_func_alloca_works=yes
16284 else
16285 $as_echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16287
16288 ac_cv_func_alloca_works=no
16289 fi
16290
16291 rm -rf conftest.dSYM
16292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16293 conftest$ac_exeext conftest.$ac_ext
16294 fi
16295 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16296 $as_echo "$ac_cv_func_alloca_works" >&6; }
16297
16298 if test $ac_cv_func_alloca_works = yes; then
16299
16300 cat >>confdefs.h <<\_ACEOF
16301 #define HAVE_ALLOCA 1
16302 _ACEOF
16303
16304 else
16305 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16306 # that cause trouble. Some versions do not even contain alloca or
16307 # contain a buggy version. If you still want to use their alloca,
16308 # use ar to extract alloca.o from them instead of compiling alloca.c.
16309
16310 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16311
16312 cat >>confdefs.h <<\_ACEOF
16313 #define C_ALLOCA 1
16314 _ACEOF
16315
16316
16317 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16318 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16319 if test "${ac_cv_os_cray+set}" = set; then
16320 $as_echo_n "(cached) " >&6
16321 else
16322 cat >conftest.$ac_ext <<_ACEOF
16323 /* confdefs.h. */
16324 _ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h. */
16328 #if defined CRAY && ! defined CRAY2
16329 webecray
16330 #else
16331 wenotbecray
16332 #endif
16333
16334 _ACEOF
16335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16336 $EGREP "webecray" >/dev/null 2>&1; then
16337 ac_cv_os_cray=yes
16338 else
16339 ac_cv_os_cray=no
16340 fi
16341 rm -f conftest*
16342
16343 fi
16344 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16345 $as_echo "$ac_cv_os_cray" >&6; }
16346 if test $ac_cv_os_cray = yes; then
16347 for ac_func in _getb67 GETB67 getb67; do
16348 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16349 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16350 $as_echo_n "checking for $ac_func... " >&6; }
16351 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16352 $as_echo_n "(cached) " >&6
16353 else
16354 cat >conftest.$ac_ext <<_ACEOF
16355 /* confdefs.h. */
16356 _ACEOF
16357 cat confdefs.h >>conftest.$ac_ext
16358 cat >>conftest.$ac_ext <<_ACEOF
16359 /* end confdefs.h. */
16360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16362 #define $ac_func innocuous_$ac_func
16363
16364 /* System header to define __stub macros and hopefully few prototypes,
16365 which can conflict with char $ac_func (); below.
16366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16367 <limits.h> exists even on freestanding compilers. */
16368
16369 #ifdef __STDC__
16370 # include <limits.h>
16371 #else
16372 # include <assert.h>
16373 #endif
16374
16375 #undef $ac_func
16376
16377 /* Override any GCC internal prototype to avoid an error.
16378 Use char because int might match the return type of a GCC
16379 builtin and then its argument prototype would still apply. */
16380 #ifdef __cplusplus
16381 extern "C"
16382 #endif
16383 char $ac_func ();
16384 /* The GNU C library defines this for functions which it implements
16385 to always fail with ENOSYS. Some functions are actually named
16386 something starting with __ and the normal name is an alias. */
16387 #if defined __stub_$ac_func || defined __stub___$ac_func
16388 choke me
16389 #endif
16390
16391 int
16392 main ()
16393 {
16394 return $ac_func ();
16395 ;
16396 return 0;
16397 }
16398 _ACEOF
16399 rm -f conftest.$ac_objext conftest$ac_exeext
16400 if { (ac_try="$ac_link"
16401 case "(($ac_try" in
16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16404 esac
16405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16406 $as_echo "$ac_try_echo") >&5
16407 (eval "$ac_link") 2>conftest.er1
16408 ac_status=$?
16409 grep -v '^ *+' conftest.er1 >conftest.err
16410 rm -f conftest.er1
16411 cat conftest.err >&5
16412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } && {
16414 test -z "$ac_c_werror_flag" ||
16415 test ! -s conftest.err
16416 } && test -s conftest$ac_exeext && {
16417 test "$cross_compiling" = yes ||
16418 $as_test_x conftest$ac_exeext
16419 }; then
16420 eval "$as_ac_var=yes"
16421 else
16422 $as_echo "$as_me: failed program was:" >&5
16423 sed 's/^/| /' conftest.$ac_ext >&5
16424
16425 eval "$as_ac_var=no"
16426 fi
16427
16428 rm -rf conftest.dSYM
16429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16430 conftest$ac_exeext conftest.$ac_ext
16431 fi
16432 ac_res=`eval 'as_val=${'$as_ac_var'}
16433 $as_echo "$as_val"'`
16434 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16435 $as_echo "$ac_res" >&6; }
16436 if test `eval 'as_val=${'$as_ac_var'}
16437 $as_echo "$as_val"'` = yes; then
16438
16439 cat >>confdefs.h <<_ACEOF
16440 #define CRAY_STACKSEG_END $ac_func
16441 _ACEOF
16442
16443 break
16444 fi
16445
16446 done
16447 fi
16448
16449 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16450 $as_echo_n "checking stack direction for C alloca... " >&6; }
16451 if test "${ac_cv_c_stack_direction+set}" = set; then
16452 $as_echo_n "(cached) " >&6
16453 else
16454 if test "$cross_compiling" = yes; then
16455 ac_cv_c_stack_direction=0
16456 else
16457 cat >conftest.$ac_ext <<_ACEOF
16458 /* confdefs.h. */
16459 _ACEOF
16460 cat confdefs.h >>conftest.$ac_ext
16461 cat >>conftest.$ac_ext <<_ACEOF
16462 /* end confdefs.h. */
16463 $ac_includes_default
16464 int
16465 find_stack_direction ()
16466 {
16467 static char *addr = 0;
16468 auto char dummy;
16469 if (addr == 0)
16470 {
16471 addr = &dummy;
16472 return find_stack_direction ();
16473 }
16474 else
16475 return (&dummy > addr) ? 1 : -1;
16476 }
16477
16478 int
16479 main ()
16480 {
16481 return find_stack_direction () < 0;
16482 }
16483 _ACEOF
16484 rm -f conftest$ac_exeext
16485 if { (ac_try="$ac_link"
16486 case "(($ac_try" in
16487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488 *) ac_try_echo=$ac_try;;
16489 esac
16490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16491 $as_echo "$ac_try_echo") >&5
16492 (eval "$ac_link") 2>&5
16493 ac_status=$?
16494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16496 { (case "(($ac_try" in
16497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16498 *) ac_try_echo=$ac_try;;
16499 esac
16500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16501 $as_echo "$ac_try_echo") >&5
16502 (eval "$ac_try") 2>&5
16503 ac_status=$?
16504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; }; then
16506 ac_cv_c_stack_direction=1
16507 else
16508 $as_echo "$as_me: program exited with status $ac_status" >&5
16509 $as_echo "$as_me: failed program was:" >&5
16510 sed 's/^/| /' conftest.$ac_ext >&5
16511
16512 ( exit $ac_status )
16513 ac_cv_c_stack_direction=-1
16514 fi
16515 rm -rf conftest.dSYM
16516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16517 fi
16518
16519
16520 fi
16521 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16522 $as_echo "$ac_cv_c_stack_direction" >&6; }
16523
16524 cat >>confdefs.h <<_ACEOF
16525 #define STACK_DIRECTION $ac_cv_c_stack_direction
16526 _ACEOF
16527
16528
16529 fi
16530
16531
16532 if test x"$ac_cv_func_alloca_works" != xyes; then
16533 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16534 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16535 { (exit 1); exit 1; }; }
16536 fi
16537
16538 # fmod, logb, and frexp are found in -lm on most systems.
16539 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16540
16541 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16542 $as_echo_n "checking for sqrt in -lm... " >&6; }
16543 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16544 $as_echo_n "(cached) " >&6
16545 else
16546 ac_check_lib_save_LIBS=$LIBS
16547 LIBS="-lm $LIBS"
16548 cat >conftest.$ac_ext <<_ACEOF
16549 /* confdefs.h. */
16550 _ACEOF
16551 cat confdefs.h >>conftest.$ac_ext
16552 cat >>conftest.$ac_ext <<_ACEOF
16553 /* end confdefs.h. */
16554
16555 /* Override any GCC internal prototype to avoid an error.
16556 Use char because int might match the return type of a GCC
16557 builtin and then its argument prototype would still apply. */
16558 #ifdef __cplusplus
16559 extern "C"
16560 #endif
16561 char sqrt ();
16562 int
16563 main ()
16564 {
16565 return sqrt ();
16566 ;
16567 return 0;
16568 }
16569 _ACEOF
16570 rm -f conftest.$ac_objext conftest$ac_exeext
16571 if { (ac_try="$ac_link"
16572 case "(($ac_try" in
16573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574 *) ac_try_echo=$ac_try;;
16575 esac
16576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16577 $as_echo "$ac_try_echo") >&5
16578 (eval "$ac_link") 2>conftest.er1
16579 ac_status=$?
16580 grep -v '^ *+' conftest.er1 >conftest.err
16581 rm -f conftest.er1
16582 cat conftest.err >&5
16583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } && {
16585 test -z "$ac_c_werror_flag" ||
16586 test ! -s conftest.err
16587 } && test -s conftest$ac_exeext && {
16588 test "$cross_compiling" = yes ||
16589 $as_test_x conftest$ac_exeext
16590 }; then
16591 ac_cv_lib_m_sqrt=yes
16592 else
16593 $as_echo "$as_me: failed program was:" >&5
16594 sed 's/^/| /' conftest.$ac_ext >&5
16595
16596 ac_cv_lib_m_sqrt=no
16597 fi
16598
16599 rm -rf conftest.dSYM
16600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16601 conftest$ac_exeext conftest.$ac_ext
16602 LIBS=$ac_check_lib_save_LIBS
16603 fi
16604 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16605 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16606 if test $ac_cv_lib_m_sqrt = yes; then
16607 cat >>confdefs.h <<_ACEOF
16608 #define HAVE_LIBM 1
16609 _ACEOF
16610
16611 LIBS="-lm $LIBS"
16612
16613 fi
16614
16615
16616 # Check for mail-locking functions in a "mail" library. Probably this should
16617 # have the same check as for liblockfile below.
16618
16619 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16620 $as_echo_n "checking for maillock in -lmail... " >&6; }
16621 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16622 $as_echo_n "(cached) " >&6
16623 else
16624 ac_check_lib_save_LIBS=$LIBS
16625 LIBS="-lmail $LIBS"
16626 cat >conftest.$ac_ext <<_ACEOF
16627 /* confdefs.h. */
16628 _ACEOF
16629 cat confdefs.h >>conftest.$ac_ext
16630 cat >>conftest.$ac_ext <<_ACEOF
16631 /* end confdefs.h. */
16632
16633 /* Override any GCC internal prototype to avoid an error.
16634 Use char because int might match the return type of a GCC
16635 builtin and then its argument prototype would still apply. */
16636 #ifdef __cplusplus
16637 extern "C"
16638 #endif
16639 char maillock ();
16640 int
16641 main ()
16642 {
16643 return maillock ();
16644 ;
16645 return 0;
16646 }
16647 _ACEOF
16648 rm -f conftest.$ac_objext conftest$ac_exeext
16649 if { (ac_try="$ac_link"
16650 case "(($ac_try" in
16651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16652 *) ac_try_echo=$ac_try;;
16653 esac
16654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16655 $as_echo "$ac_try_echo") >&5
16656 (eval "$ac_link") 2>conftest.er1
16657 ac_status=$?
16658 grep -v '^ *+' conftest.er1 >conftest.err
16659 rm -f conftest.er1
16660 cat conftest.err >&5
16661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); } && {
16663 test -z "$ac_c_werror_flag" ||
16664 test ! -s conftest.err
16665 } && test -s conftest$ac_exeext && {
16666 test "$cross_compiling" = yes ||
16667 $as_test_x conftest$ac_exeext
16668 }; then
16669 ac_cv_lib_mail_maillock=yes
16670 else
16671 $as_echo "$as_me: failed program was:" >&5
16672 sed 's/^/| /' conftest.$ac_ext >&5
16673
16674 ac_cv_lib_mail_maillock=no
16675 fi
16676
16677 rm -rf conftest.dSYM
16678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16679 conftest$ac_exeext conftest.$ac_ext
16680 LIBS=$ac_check_lib_save_LIBS
16681 fi
16682 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16683 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16684 if test $ac_cv_lib_mail_maillock = yes; then
16685 cat >>confdefs.h <<_ACEOF
16686 #define HAVE_LIBMAIL 1
16687 _ACEOF
16688
16689 LIBS="-lmail $LIBS"
16690
16691 fi
16692
16693
16694 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16695 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16696 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16697 $as_echo_n "(cached) " >&6
16698 else
16699 ac_check_lib_save_LIBS=$LIBS
16700 LIBS="-llockfile $LIBS"
16701 cat >conftest.$ac_ext <<_ACEOF
16702 /* confdefs.h. */
16703 _ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707
16708 /* Override any GCC internal prototype to avoid an error.
16709 Use char because int might match the return type of a GCC
16710 builtin and then its argument prototype would still apply. */
16711 #ifdef __cplusplus
16712 extern "C"
16713 #endif
16714 char maillock ();
16715 int
16716 main ()
16717 {
16718 return maillock ();
16719 ;
16720 return 0;
16721 }
16722 _ACEOF
16723 rm -f conftest.$ac_objext conftest$ac_exeext
16724 if { (ac_try="$ac_link"
16725 case "(($ac_try" in
16726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727 *) ac_try_echo=$ac_try;;
16728 esac
16729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16730 $as_echo "$ac_try_echo") >&5
16731 (eval "$ac_link") 2>conftest.er1
16732 ac_status=$?
16733 grep -v '^ *+' conftest.er1 >conftest.err
16734 rm -f conftest.er1
16735 cat conftest.err >&5
16736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } && {
16738 test -z "$ac_c_werror_flag" ||
16739 test ! -s conftest.err
16740 } && test -s conftest$ac_exeext && {
16741 test "$cross_compiling" = yes ||
16742 $as_test_x conftest$ac_exeext
16743 }; then
16744 ac_cv_lib_lockfile_maillock=yes
16745 else
16746 $as_echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16748
16749 ac_cv_lib_lockfile_maillock=no
16750 fi
16751
16752 rm -rf conftest.dSYM
16753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16754 conftest$ac_exeext conftest.$ac_ext
16755 LIBS=$ac_check_lib_save_LIBS
16756 fi
16757 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16758 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16759 if test $ac_cv_lib_lockfile_maillock = yes; then
16760 cat >>confdefs.h <<_ACEOF
16761 #define HAVE_LIBLOCKFILE 1
16762 _ACEOF
16763
16764 LIBS="-llockfile $LIBS"
16765
16766 fi
16767
16768 # If we have the shared liblockfile, assume we must use it for mail
16769 # locking (e.g. Debian). If we couldn't link against liblockfile
16770 # (no liblockfile.a installed), ensure that we don't need to.
16771 if test "$ac_cv_lib_lockfile_maillock" = no; then
16772 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16773 set dummy liblockfile.so; ac_word=$2
16774 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16775 $as_echo_n "checking for $ac_word... " >&6; }
16776 if test "${ac_cv_prog_liblockfile+set}" = set; then
16777 $as_echo_n "(cached) " >&6
16778 else
16779 if test -n "$liblockfile"; then
16780 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16781 else
16782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16783 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16784 for as_dir in $as_dummy
16785 do
16786 IFS=$as_save_IFS
16787 test -z "$as_dir" && as_dir=.
16788 for ac_exec_ext in '' $ac_executable_extensions; do
16789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16790 ac_cv_prog_liblockfile="yes"
16791 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16792 break 2
16793 fi
16794 done
16795 done
16796 IFS=$as_save_IFS
16797
16798 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16799 fi
16800 fi
16801 liblockfile=$ac_cv_prog_liblockfile
16802 if test -n "$liblockfile"; then
16803 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
16804 $as_echo "$liblockfile" >&6; }
16805 else
16806 { $as_echo "$as_me:$LINENO: result: no" >&5
16807 $as_echo "no" >&6; }
16808 fi
16809
16810
16811 if test $ac_cv_prog_liblockfile = yes; then
16812 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16813 This probably means that movemail could lose mail.
16814 There may be a \`development' package to install containing liblockfile." >&5
16815 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
16816 This probably means that movemail could lose mail.
16817 There may be a \`development' package to install containing liblockfile." >&2;}
16818 { (exit 1); exit 1; }; }
16819 else :
16820 fi
16821 fi
16822
16823 for ac_func in touchlock
16824 do
16825 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16826 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16827 $as_echo_n "checking for $ac_func... " >&6; }
16828 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16829 $as_echo_n "(cached) " >&6
16830 else
16831 cat >conftest.$ac_ext <<_ACEOF
16832 /* confdefs.h. */
16833 _ACEOF
16834 cat confdefs.h >>conftest.$ac_ext
16835 cat >>conftest.$ac_ext <<_ACEOF
16836 /* end confdefs.h. */
16837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16839 #define $ac_func innocuous_$ac_func
16840
16841 /* System header to define __stub macros and hopefully few prototypes,
16842 which can conflict with char $ac_func (); below.
16843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16844 <limits.h> exists even on freestanding compilers. */
16845
16846 #ifdef __STDC__
16847 # include <limits.h>
16848 #else
16849 # include <assert.h>
16850 #endif
16851
16852 #undef $ac_func
16853
16854 /* Override any GCC internal prototype to avoid an error.
16855 Use char because int might match the return type of a GCC
16856 builtin and then its argument prototype would still apply. */
16857 #ifdef __cplusplus
16858 extern "C"
16859 #endif
16860 char $ac_func ();
16861 /* The GNU C library defines this for functions which it implements
16862 to always fail with ENOSYS. Some functions are actually named
16863 something starting with __ and the normal name is an alias. */
16864 #if defined __stub_$ac_func || defined __stub___$ac_func
16865 choke me
16866 #endif
16867
16868 int
16869 main ()
16870 {
16871 return $ac_func ();
16872 ;
16873 return 0;
16874 }
16875 _ACEOF
16876 rm -f conftest.$ac_objext conftest$ac_exeext
16877 if { (ac_try="$ac_link"
16878 case "(($ac_try" in
16879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16880 *) ac_try_echo=$ac_try;;
16881 esac
16882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16883 $as_echo "$ac_try_echo") >&5
16884 (eval "$ac_link") 2>conftest.er1
16885 ac_status=$?
16886 grep -v '^ *+' conftest.er1 >conftest.err
16887 rm -f conftest.er1
16888 cat conftest.err >&5
16889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); } && {
16891 test -z "$ac_c_werror_flag" ||
16892 test ! -s conftest.err
16893 } && test -s conftest$ac_exeext && {
16894 test "$cross_compiling" = yes ||
16895 $as_test_x conftest$ac_exeext
16896 }; then
16897 eval "$as_ac_var=yes"
16898 else
16899 $as_echo "$as_me: failed program was:" >&5
16900 sed 's/^/| /' conftest.$ac_ext >&5
16901
16902 eval "$as_ac_var=no"
16903 fi
16904
16905 rm -rf conftest.dSYM
16906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16907 conftest$ac_exeext conftest.$ac_ext
16908 fi
16909 ac_res=`eval 'as_val=${'$as_ac_var'}
16910 $as_echo "$as_val"'`
16911 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16912 $as_echo "$ac_res" >&6; }
16913 if test `eval 'as_val=${'$as_ac_var'}
16914 $as_echo "$as_val"'` = yes; then
16915 cat >>confdefs.h <<_ACEOF
16916 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16917 _ACEOF
16918
16919 fi
16920 done
16921
16922
16923 for ac_header in maillock.h
16924 do
16925 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16927 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16928 $as_echo_n "checking for $ac_header... " >&6; }
16929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16930 $as_echo_n "(cached) " >&6
16931 fi
16932 ac_res=`eval 'as_val=${'$as_ac_Header'}
16933 $as_echo "$as_val"'`
16934 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16935 $as_echo "$ac_res" >&6; }
16936 else
16937 # Is the header compilable?
16938 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16939 $as_echo_n "checking $ac_header usability... " >&6; }
16940 cat >conftest.$ac_ext <<_ACEOF
16941 /* confdefs.h. */
16942 _ACEOF
16943 cat confdefs.h >>conftest.$ac_ext
16944 cat >>conftest.$ac_ext <<_ACEOF
16945 /* end confdefs.h. */
16946 $ac_includes_default
16947 #include <$ac_header>
16948 _ACEOF
16949 rm -f conftest.$ac_objext
16950 if { (ac_try="$ac_compile"
16951 case "(($ac_try" in
16952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953 *) ac_try_echo=$ac_try;;
16954 esac
16955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16956 $as_echo "$ac_try_echo") >&5
16957 (eval "$ac_compile") 2>conftest.er1
16958 ac_status=$?
16959 grep -v '^ *+' conftest.er1 >conftest.err
16960 rm -f conftest.er1
16961 cat conftest.err >&5
16962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); } && {
16964 test -z "$ac_c_werror_flag" ||
16965 test ! -s conftest.err
16966 } && test -s conftest.$ac_objext; then
16967 ac_header_compiler=yes
16968 else
16969 $as_echo "$as_me: failed program was:" >&5
16970 sed 's/^/| /' conftest.$ac_ext >&5
16971
16972 ac_header_compiler=no
16973 fi
16974
16975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16976 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16977 $as_echo "$ac_header_compiler" >&6; }
16978
16979 # Is the header present?
16980 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16981 $as_echo_n "checking $ac_header presence... " >&6; }
16982 cat >conftest.$ac_ext <<_ACEOF
16983 /* confdefs.h. */
16984 _ACEOF
16985 cat confdefs.h >>conftest.$ac_ext
16986 cat >>conftest.$ac_ext <<_ACEOF
16987 /* end confdefs.h. */
16988 #include <$ac_header>
16989 _ACEOF
16990 if { (ac_try="$ac_cpp conftest.$ac_ext"
16991 case "(($ac_try" in
16992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993 *) ac_try_echo=$ac_try;;
16994 esac
16995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16996 $as_echo "$ac_try_echo") >&5
16997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16998 ac_status=$?
16999 grep -v '^ *+' conftest.er1 >conftest.err
17000 rm -f conftest.er1
17001 cat conftest.err >&5
17002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); } >/dev/null && {
17004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17005 test ! -s conftest.err
17006 }; then
17007 ac_header_preproc=yes
17008 else
17009 $as_echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17011
17012 ac_header_preproc=no
17013 fi
17014
17015 rm -f conftest.err conftest.$ac_ext
17016 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17017 $as_echo "$ac_header_preproc" >&6; }
17018
17019 # So? What about this header?
17020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17021 yes:no: )
17022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17023 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17025 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17026 ac_header_preproc=yes
17027 ;;
17028 no:yes:* )
17029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17030 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17032 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17034 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17036 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17037 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17038 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17039 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17040 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17041
17042 ;;
17043 esac
17044 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17045 $as_echo_n "checking for $ac_header... " >&6; }
17046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17047 $as_echo_n "(cached) " >&6
17048 else
17049 eval "$as_ac_Header=\$ac_header_preproc"
17050 fi
17051 ac_res=`eval 'as_val=${'$as_ac_Header'}
17052 $as_echo "$as_val"'`
17053 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17054 $as_echo "$ac_res" >&6; }
17055
17056 fi
17057 if test `eval 'as_val=${'$as_ac_Header'}
17058 $as_echo "$as_val"'` = yes; then
17059 cat >>confdefs.h <<_ACEOF
17060 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17061 _ACEOF
17062
17063 fi
17064
17065 done
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139 for ac_func in gethostname getdomainname dup2 \
17140 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17141 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17142 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17143 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17144 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17145 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17146 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17147 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17148 cfmakeraw cfsetspeed
17149 do
17150 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17151 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17152 $as_echo_n "checking for $ac_func... " >&6; }
17153 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17154 $as_echo_n "(cached) " >&6
17155 else
17156 cat >conftest.$ac_ext <<_ACEOF
17157 /* confdefs.h. */
17158 _ACEOF
17159 cat confdefs.h >>conftest.$ac_ext
17160 cat >>conftest.$ac_ext <<_ACEOF
17161 /* end confdefs.h. */
17162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17164 #define $ac_func innocuous_$ac_func
17165
17166 /* System header to define __stub macros and hopefully few prototypes,
17167 which can conflict with char $ac_func (); below.
17168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17169 <limits.h> exists even on freestanding compilers. */
17170
17171 #ifdef __STDC__
17172 # include <limits.h>
17173 #else
17174 # include <assert.h>
17175 #endif
17176
17177 #undef $ac_func
17178
17179 /* Override any GCC internal prototype to avoid an error.
17180 Use char because int might match the return type of a GCC
17181 builtin and then its argument prototype would still apply. */
17182 #ifdef __cplusplus
17183 extern "C"
17184 #endif
17185 char $ac_func ();
17186 /* The GNU C library defines this for functions which it implements
17187 to always fail with ENOSYS. Some functions are actually named
17188 something starting with __ and the normal name is an alias. */
17189 #if defined __stub_$ac_func || defined __stub___$ac_func
17190 choke me
17191 #endif
17192
17193 int
17194 main ()
17195 {
17196 return $ac_func ();
17197 ;
17198 return 0;
17199 }
17200 _ACEOF
17201 rm -f conftest.$ac_objext conftest$ac_exeext
17202 if { (ac_try="$ac_link"
17203 case "(($ac_try" in
17204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17205 *) ac_try_echo=$ac_try;;
17206 esac
17207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17208 $as_echo "$ac_try_echo") >&5
17209 (eval "$ac_link") 2>conftest.er1
17210 ac_status=$?
17211 grep -v '^ *+' conftest.er1 >conftest.err
17212 rm -f conftest.er1
17213 cat conftest.err >&5
17214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } && {
17216 test -z "$ac_c_werror_flag" ||
17217 test ! -s conftest.err
17218 } && test -s conftest$ac_exeext && {
17219 test "$cross_compiling" = yes ||
17220 $as_test_x conftest$ac_exeext
17221 }; then
17222 eval "$as_ac_var=yes"
17223 else
17224 $as_echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17226
17227 eval "$as_ac_var=no"
17228 fi
17229
17230 rm -rf conftest.dSYM
17231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17232 conftest$ac_exeext conftest.$ac_ext
17233 fi
17234 ac_res=`eval 'as_val=${'$as_ac_var'}
17235 $as_echo "$as_val"'`
17236 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17237 $as_echo "$ac_res" >&6; }
17238 if test `eval 'as_val=${'$as_ac_var'}
17239 $as_echo "$as_val"'` = yes; then
17240 cat >>confdefs.h <<_ACEOF
17241 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17242 _ACEOF
17243
17244 fi
17245 done
17246
17247
17248
17249 for ac_header in sys/un.h
17250 do
17251 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17253 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17254 $as_echo_n "checking for $ac_header... " >&6; }
17255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17256 $as_echo_n "(cached) " >&6
17257 fi
17258 ac_res=`eval 'as_val=${'$as_ac_Header'}
17259 $as_echo "$as_val"'`
17260 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17261 $as_echo "$ac_res" >&6; }
17262 else
17263 # Is the header compilable?
17264 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17265 $as_echo_n "checking $ac_header usability... " >&6; }
17266 cat >conftest.$ac_ext <<_ACEOF
17267 /* confdefs.h. */
17268 _ACEOF
17269 cat confdefs.h >>conftest.$ac_ext
17270 cat >>conftest.$ac_ext <<_ACEOF
17271 /* end confdefs.h. */
17272 $ac_includes_default
17273 #include <$ac_header>
17274 _ACEOF
17275 rm -f conftest.$ac_objext
17276 if { (ac_try="$ac_compile"
17277 case "(($ac_try" in
17278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279 *) ac_try_echo=$ac_try;;
17280 esac
17281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17282 $as_echo "$ac_try_echo") >&5
17283 (eval "$ac_compile") 2>conftest.er1
17284 ac_status=$?
17285 grep -v '^ *+' conftest.er1 >conftest.err
17286 rm -f conftest.er1
17287 cat conftest.err >&5
17288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); } && {
17290 test -z "$ac_c_werror_flag" ||
17291 test ! -s conftest.err
17292 } && test -s conftest.$ac_objext; then
17293 ac_header_compiler=yes
17294 else
17295 $as_echo "$as_me: failed program was:" >&5
17296 sed 's/^/| /' conftest.$ac_ext >&5
17297
17298 ac_header_compiler=no
17299 fi
17300
17301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17302 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17303 $as_echo "$ac_header_compiler" >&6; }
17304
17305 # Is the header present?
17306 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17307 $as_echo_n "checking $ac_header presence... " >&6; }
17308 cat >conftest.$ac_ext <<_ACEOF
17309 /* confdefs.h. */
17310 _ACEOF
17311 cat confdefs.h >>conftest.$ac_ext
17312 cat >>conftest.$ac_ext <<_ACEOF
17313 /* end confdefs.h. */
17314 #include <$ac_header>
17315 _ACEOF
17316 if { (ac_try="$ac_cpp conftest.$ac_ext"
17317 case "(($ac_try" in
17318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319 *) ac_try_echo=$ac_try;;
17320 esac
17321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17322 $as_echo "$ac_try_echo") >&5
17323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17324 ac_status=$?
17325 grep -v '^ *+' conftest.er1 >conftest.err
17326 rm -f conftest.er1
17327 cat conftest.err >&5
17328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329 (exit $ac_status); } >/dev/null && {
17330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17331 test ! -s conftest.err
17332 }; then
17333 ac_header_preproc=yes
17334 else
17335 $as_echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17337
17338 ac_header_preproc=no
17339 fi
17340
17341 rm -f conftest.err conftest.$ac_ext
17342 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17343 $as_echo "$ac_header_preproc" >&6; }
17344
17345 # So? What about this header?
17346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17347 yes:no: )
17348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17349 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17351 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17352 ac_header_preproc=yes
17353 ;;
17354 no:yes:* )
17355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17356 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17358 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17360 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17362 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17364 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17366 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17367
17368 ;;
17369 esac
17370 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17371 $as_echo_n "checking for $ac_header... " >&6; }
17372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17373 $as_echo_n "(cached) " >&6
17374 else
17375 eval "$as_ac_Header=\$ac_header_preproc"
17376 fi
17377 ac_res=`eval 'as_val=${'$as_ac_Header'}
17378 $as_echo "$as_val"'`
17379 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17380 $as_echo "$ac_res" >&6; }
17381
17382 fi
17383 if test `eval 'as_val=${'$as_ac_Header'}
17384 $as_echo "$as_val"'` = yes; then
17385 cat >>confdefs.h <<_ACEOF
17386 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17387 _ACEOF
17388
17389 fi
17390
17391 done
17392
17393
17394
17395
17396
17397
17398 for ac_header in $ac_header_list
17399 do
17400 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17402 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17403 $as_echo_n "checking for $ac_header... " >&6; }
17404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17405 $as_echo_n "(cached) " >&6
17406 fi
17407 ac_res=`eval 'as_val=${'$as_ac_Header'}
17408 $as_echo "$as_val"'`
17409 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17410 $as_echo "$ac_res" >&6; }
17411 else
17412 # Is the header compilable?
17413 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17414 $as_echo_n "checking $ac_header usability... " >&6; }
17415 cat >conftest.$ac_ext <<_ACEOF
17416 /* confdefs.h. */
17417 _ACEOF
17418 cat confdefs.h >>conftest.$ac_ext
17419 cat >>conftest.$ac_ext <<_ACEOF
17420 /* end confdefs.h. */
17421 $ac_includes_default
17422 #include <$ac_header>
17423 _ACEOF
17424 rm -f conftest.$ac_objext
17425 if { (ac_try="$ac_compile"
17426 case "(($ac_try" in
17427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17428 *) ac_try_echo=$ac_try;;
17429 esac
17430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17431 $as_echo "$ac_try_echo") >&5
17432 (eval "$ac_compile") 2>conftest.er1
17433 ac_status=$?
17434 grep -v '^ *+' conftest.er1 >conftest.err
17435 rm -f conftest.er1
17436 cat conftest.err >&5
17437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); } && {
17439 test -z "$ac_c_werror_flag" ||
17440 test ! -s conftest.err
17441 } && test -s conftest.$ac_objext; then
17442 ac_header_compiler=yes
17443 else
17444 $as_echo "$as_me: failed program was:" >&5
17445 sed 's/^/| /' conftest.$ac_ext >&5
17446
17447 ac_header_compiler=no
17448 fi
17449
17450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17451 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17452 $as_echo "$ac_header_compiler" >&6; }
17453
17454 # Is the header present?
17455 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17456 $as_echo_n "checking $ac_header presence... " >&6; }
17457 cat >conftest.$ac_ext <<_ACEOF
17458 /* confdefs.h. */
17459 _ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h. */
17463 #include <$ac_header>
17464 _ACEOF
17465 if { (ac_try="$ac_cpp conftest.$ac_ext"
17466 case "(($ac_try" in
17467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17468 *) ac_try_echo=$ac_try;;
17469 esac
17470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17471 $as_echo "$ac_try_echo") >&5
17472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17473 ac_status=$?
17474 grep -v '^ *+' conftest.er1 >conftest.err
17475 rm -f conftest.er1
17476 cat conftest.err >&5
17477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); } >/dev/null && {
17479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17480 test ! -s conftest.err
17481 }; then
17482 ac_header_preproc=yes
17483 else
17484 $as_echo "$as_me: failed program was:" >&5
17485 sed 's/^/| /' conftest.$ac_ext >&5
17486
17487 ac_header_preproc=no
17488 fi
17489
17490 rm -f conftest.err conftest.$ac_ext
17491 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17492 $as_echo "$ac_header_preproc" >&6; }
17493
17494 # So? What about this header?
17495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17496 yes:no: )
17497 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17498 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17500 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17501 ac_header_preproc=yes
17502 ;;
17503 no:yes:* )
17504 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17505 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17506 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17507 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17508 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17509 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17510 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17511 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17512 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17513 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17514 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17515 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17516
17517 ;;
17518 esac
17519 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17520 $as_echo_n "checking for $ac_header... " >&6; }
17521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17522 $as_echo_n "(cached) " >&6
17523 else
17524 eval "$as_ac_Header=\$ac_header_preproc"
17525 fi
17526 ac_res=`eval 'as_val=${'$as_ac_Header'}
17527 $as_echo "$as_val"'`
17528 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17529 $as_echo "$ac_res" >&6; }
17530
17531 fi
17532 if test `eval 'as_val=${'$as_ac_Header'}
17533 $as_echo "$as_val"'` = yes; then
17534 cat >>confdefs.h <<_ACEOF
17535 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17536 _ACEOF
17537
17538 fi
17539
17540 done
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550 for ac_func in $ac_func_list
17551 do
17552 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17553 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17554 $as_echo_n "checking for $ac_func... " >&6; }
17555 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17556 $as_echo_n "(cached) " >&6
17557 else
17558 cat >conftest.$ac_ext <<_ACEOF
17559 /* confdefs.h. */
17560 _ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h. */
17564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17566 #define $ac_func innocuous_$ac_func
17567
17568 /* System header to define __stub macros and hopefully few prototypes,
17569 which can conflict with char $ac_func (); below.
17570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17571 <limits.h> exists even on freestanding compilers. */
17572
17573 #ifdef __STDC__
17574 # include <limits.h>
17575 #else
17576 # include <assert.h>
17577 #endif
17578
17579 #undef $ac_func
17580
17581 /* Override any GCC internal prototype to avoid an error.
17582 Use char because int might match the return type of a GCC
17583 builtin and then its argument prototype would still apply. */
17584 #ifdef __cplusplus
17585 extern "C"
17586 #endif
17587 char $ac_func ();
17588 /* The GNU C library defines this for functions which it implements
17589 to always fail with ENOSYS. Some functions are actually named
17590 something starting with __ and the normal name is an alias. */
17591 #if defined __stub_$ac_func || defined __stub___$ac_func
17592 choke me
17593 #endif
17594
17595 int
17596 main ()
17597 {
17598 return $ac_func ();
17599 ;
17600 return 0;
17601 }
17602 _ACEOF
17603 rm -f conftest.$ac_objext conftest$ac_exeext
17604 if { (ac_try="$ac_link"
17605 case "(($ac_try" in
17606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17607 *) ac_try_echo=$ac_try;;
17608 esac
17609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17610 $as_echo "$ac_try_echo") >&5
17611 (eval "$ac_link") 2>conftest.er1
17612 ac_status=$?
17613 grep -v '^ *+' conftest.er1 >conftest.err
17614 rm -f conftest.er1
17615 cat conftest.err >&5
17616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } && {
17618 test -z "$ac_c_werror_flag" ||
17619 test ! -s conftest.err
17620 } && test -s conftest$ac_exeext && {
17621 test "$cross_compiling" = yes ||
17622 $as_test_x conftest$ac_exeext
17623 }; then
17624 eval "$as_ac_var=yes"
17625 else
17626 $as_echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17628
17629 eval "$as_ac_var=no"
17630 fi
17631
17632 rm -rf conftest.dSYM
17633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17634 conftest$ac_exeext conftest.$ac_ext
17635 fi
17636 ac_res=`eval 'as_val=${'$as_ac_var'}
17637 $as_echo "$as_val"'`
17638 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17639 $as_echo "$ac_res" >&6; }
17640 if test `eval 'as_val=${'$as_ac_var'}
17641 $as_echo "$as_val"'` = yes; then
17642 cat >>confdefs.h <<_ACEOF
17643 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17644 _ACEOF
17645
17646 fi
17647 done
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17666 $as_echo_n "checking for working mktime... " >&6; }
17667 if test "${ac_cv_func_working_mktime+set}" = set; then
17668 $as_echo_n "(cached) " >&6
17669 else
17670 if test "$cross_compiling" = yes; then
17671 ac_cv_func_working_mktime=no
17672 else
17673 cat >conftest.$ac_ext <<_ACEOF
17674 /* confdefs.h. */
17675 _ACEOF
17676 cat confdefs.h >>conftest.$ac_ext
17677 cat >>conftest.$ac_ext <<_ACEOF
17678 /* end confdefs.h. */
17679 /* Test program from Paul Eggert and Tony Leneis. */
17680 #ifdef TIME_WITH_SYS_TIME
17681 # include <sys/time.h>
17682 # include <time.h>
17683 #else
17684 # ifdef HAVE_SYS_TIME_H
17685 # include <sys/time.h>
17686 # else
17687 # include <time.h>
17688 # endif
17689 #endif
17690
17691 #include <limits.h>
17692 #include <stdlib.h>
17693
17694 #ifdef HAVE_UNISTD_H
17695 # include <unistd.h>
17696 #endif
17697
17698 #ifndef HAVE_ALARM
17699 # define alarm(X) /* empty */
17700 #endif
17701
17702 /* Work around redefinition to rpl_putenv by other config tests. */
17703 #undef putenv
17704
17705 static time_t time_t_max;
17706 static time_t time_t_min;
17707
17708 /* Values we'll use to set the TZ environment variable. */
17709 static char *tz_strings[] = {
17710 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17711 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17712 };
17713 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17714
17715 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17716 Based on a problem report from Andreas Jaeger. */
17717 static int
17718 spring_forward_gap ()
17719 {
17720 /* glibc (up to about 1998-10-07) failed this test. */
17721 struct tm tm;
17722
17723 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17724 instead of "TZ=America/Vancouver" in order to detect the bug even
17725 on systems that don't support the Olson extension, or don't have the
17726 full zoneinfo tables installed. */
17727 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17728
17729 tm.tm_year = 98;
17730 tm.tm_mon = 3;
17731 tm.tm_mday = 5;
17732 tm.tm_hour = 2;
17733 tm.tm_min = 0;
17734 tm.tm_sec = 0;
17735 tm.tm_isdst = -1;
17736 return mktime (&tm) != (time_t) -1;
17737 }
17738
17739 static int
17740 mktime_test1 (now)
17741 time_t now;
17742 {
17743 struct tm *lt;
17744 return ! (lt = localtime (&now)) || mktime (lt) == now;
17745 }
17746
17747 static int
17748 mktime_test (now)
17749 time_t now;
17750 {
17751 return (mktime_test1 (now)
17752 && mktime_test1 ((time_t) (time_t_max - now))
17753 && mktime_test1 ((time_t) (time_t_min + now)));
17754 }
17755
17756 static int
17757 irix_6_4_bug ()
17758 {
17759 /* Based on code from Ariel Faigon. */
17760 struct tm tm;
17761 tm.tm_year = 96;
17762 tm.tm_mon = 3;
17763 tm.tm_mday = 0;
17764 tm.tm_hour = 0;
17765 tm.tm_min = 0;
17766 tm.tm_sec = 0;
17767 tm.tm_isdst = -1;
17768 mktime (&tm);
17769 return tm.tm_mon == 2 && tm.tm_mday == 31;
17770 }
17771
17772 static int
17773 bigtime_test (j)
17774 int j;
17775 {
17776 struct tm tm;
17777 time_t now;
17778 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17779 now = mktime (&tm);
17780 if (now != (time_t) -1)
17781 {
17782 struct tm *lt = localtime (&now);
17783 if (! (lt
17784 && lt->tm_year == tm.tm_year
17785 && lt->tm_mon == tm.tm_mon
17786 && lt->tm_mday == tm.tm_mday
17787 && lt->tm_hour == tm.tm_hour
17788 && lt->tm_min == tm.tm_min
17789 && lt->tm_sec == tm.tm_sec
17790 && lt->tm_yday == tm.tm_yday
17791 && lt->tm_wday == tm.tm_wday
17792 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17793 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17794 return 0;
17795 }
17796 return 1;
17797 }
17798
17799 static int
17800 year_2050_test ()
17801 {
17802 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17803 ignoring leap seconds. */
17804 unsigned long int answer = 2527315200UL;
17805
17806 struct tm tm;
17807 time_t t;
17808 tm.tm_year = 2050 - 1900;
17809 tm.tm_mon = 2 - 1;
17810 tm.tm_mday = 1;
17811 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17812 tm.tm_isdst = -1;
17813
17814 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17815 instead of "TZ=America/Vancouver" in order to detect the bug even
17816 on systems that don't support the Olson extension, or don't have the
17817 full zoneinfo tables installed. */
17818 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17819
17820 t = mktime (&tm);
17821
17822 /* Check that the result is either a failure, or close enough
17823 to the correct answer that we can assume the discrepancy is
17824 due to leap seconds. */
17825 return (t == (time_t) -1
17826 || (0 < t && answer - 120 <= t && t <= answer + 120));
17827 }
17828
17829 int
17830 main ()
17831 {
17832 time_t t, delta;
17833 int i, j;
17834
17835 /* This test makes some buggy mktime implementations loop.
17836 Give up after 60 seconds; a mktime slower than that
17837 isn't worth using anyway. */
17838 alarm (60);
17839
17840 for (;;)
17841 {
17842 t = (time_t_max << 1) + 1;
17843 if (t <= time_t_max)
17844 break;
17845 time_t_max = t;
17846 }
17847 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17848
17849 delta = time_t_max / 997; /* a suitable prime number */
17850 for (i = 0; i < N_STRINGS; i++)
17851 {
17852 if (tz_strings[i])
17853 putenv (tz_strings[i]);
17854
17855 for (t = 0; t <= time_t_max - delta; t += delta)
17856 if (! mktime_test (t))
17857 return 1;
17858 if (! (mktime_test ((time_t) 1)
17859 && mktime_test ((time_t) (60 * 60))
17860 && mktime_test ((time_t) (60 * 60 * 24))))
17861 return 1;
17862
17863 for (j = 1; ; j <<= 1)
17864 if (! bigtime_test (j))
17865 return 1;
17866 else if (INT_MAX / 2 < j)
17867 break;
17868 if (! bigtime_test (INT_MAX))
17869 return 1;
17870 }
17871 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17872 }
17873 _ACEOF
17874 rm -f conftest$ac_exeext
17875 if { (ac_try="$ac_link"
17876 case "(($ac_try" in
17877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17878 *) ac_try_echo=$ac_try;;
17879 esac
17880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17881 $as_echo "$ac_try_echo") >&5
17882 (eval "$ac_link") 2>&5
17883 ac_status=$?
17884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17886 { (case "(($ac_try" in
17887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888 *) ac_try_echo=$ac_try;;
17889 esac
17890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17891 $as_echo "$ac_try_echo") >&5
17892 (eval "$ac_try") 2>&5
17893 ac_status=$?
17894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896 ac_cv_func_working_mktime=yes
17897 else
17898 $as_echo "$as_me: program exited with status $ac_status" >&5
17899 $as_echo "$as_me: failed program was:" >&5
17900 sed 's/^/| /' conftest.$ac_ext >&5
17901
17902 ( exit $ac_status )
17903 ac_cv_func_working_mktime=no
17904 fi
17905 rm -rf conftest.dSYM
17906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17907 fi
17908
17909
17910 fi
17911 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17912 $as_echo "$ac_cv_func_working_mktime" >&6; }
17913 if test $ac_cv_func_working_mktime = no; then
17914 case " $LIBOBJS " in
17915 *" mktime.$ac_objext "* ) ;;
17916 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17917 ;;
17918 esac
17919
17920 fi
17921
17922 if test "$ac_cv_func_working_mktime" = no; then
17923
17924 cat >>confdefs.h <<\_ACEOF
17925 #define BROKEN_MKTIME 1
17926 _ACEOF
17927
17928 fi
17929
17930 ac_have_func=no # yes means we've found a way to get the load average.
17931
17932 # Make sure getloadavg.c is where it belongs, at configure-time.
17933 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17934 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17935 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17936 { (exit 1); exit 1; }; }
17937
17938 ac_save_LIBS=$LIBS
17939
17940 # Check for getloadavg, but be sure not to touch the cache variable.
17941 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
17942 $as_echo_n "checking for getloadavg... " >&6; }
17943 if test "${ac_cv_func_getloadavg+set}" = set; then
17944 $as_echo_n "(cached) " >&6
17945 else
17946 cat >conftest.$ac_ext <<_ACEOF
17947 /* confdefs.h. */
17948 _ACEOF
17949 cat confdefs.h >>conftest.$ac_ext
17950 cat >>conftest.$ac_ext <<_ACEOF
17951 /* end confdefs.h. */
17952 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17954 #define getloadavg innocuous_getloadavg
17955
17956 /* System header to define __stub macros and hopefully few prototypes,
17957 which can conflict with char getloadavg (); below.
17958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17959 <limits.h> exists even on freestanding compilers. */
17960
17961 #ifdef __STDC__
17962 # include <limits.h>
17963 #else
17964 # include <assert.h>
17965 #endif
17966
17967 #undef getloadavg
17968
17969 /* Override any GCC internal prototype to avoid an error.
17970 Use char because int might match the return type of a GCC
17971 builtin and then its argument prototype would still apply. */
17972 #ifdef __cplusplus
17973 extern "C"
17974 #endif
17975 char getloadavg ();
17976 /* The GNU C library defines this for functions which it implements
17977 to always fail with ENOSYS. Some functions are actually named
17978 something starting with __ and the normal name is an alias. */
17979 #if defined __stub_getloadavg || defined __stub___getloadavg
17980 choke me
17981 #endif
17982
17983 int
17984 main ()
17985 {
17986 return getloadavg ();
17987 ;
17988 return 0;
17989 }
17990 _ACEOF
17991 rm -f conftest.$ac_objext conftest$ac_exeext
17992 if { (ac_try="$ac_link"
17993 case "(($ac_try" in
17994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17995 *) ac_try_echo=$ac_try;;
17996 esac
17997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17998 $as_echo "$ac_try_echo") >&5
17999 (eval "$ac_link") 2>conftest.er1
18000 ac_status=$?
18001 grep -v '^ *+' conftest.er1 >conftest.err
18002 rm -f conftest.er1
18003 cat conftest.err >&5
18004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); } && {
18006 test -z "$ac_c_werror_flag" ||
18007 test ! -s conftest.err
18008 } && test -s conftest$ac_exeext && {
18009 test "$cross_compiling" = yes ||
18010 $as_test_x conftest$ac_exeext
18011 }; then
18012 ac_cv_func_getloadavg=yes
18013 else
18014 $as_echo "$as_me: failed program was:" >&5
18015 sed 's/^/| /' conftest.$ac_ext >&5
18016
18017 ac_cv_func_getloadavg=no
18018 fi
18019
18020 rm -rf conftest.dSYM
18021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18022 conftest$ac_exeext conftest.$ac_ext
18023 fi
18024 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18025 $as_echo "$ac_cv_func_getloadavg" >&6; }
18026 if test $ac_cv_func_getloadavg = yes; then
18027 exit 0
18028 else
18029 exit 1
18030 fi
18031 ) && ac_have_func=yes
18032
18033 # On HPUX9, an unprivileged user can get load averages through this function.
18034
18035 for ac_func in pstat_getdynamic
18036 do
18037 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18038 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18039 $as_echo_n "checking for $ac_func... " >&6; }
18040 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18041 $as_echo_n "(cached) " >&6
18042 else
18043 cat >conftest.$ac_ext <<_ACEOF
18044 /* confdefs.h. */
18045 _ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h. */
18049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18051 #define $ac_func innocuous_$ac_func
18052
18053 /* System header to define __stub macros and hopefully few prototypes,
18054 which can conflict with char $ac_func (); below.
18055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18056 <limits.h> exists even on freestanding compilers. */
18057
18058 #ifdef __STDC__
18059 # include <limits.h>
18060 #else
18061 # include <assert.h>
18062 #endif
18063
18064 #undef $ac_func
18065
18066 /* Override any GCC internal prototype to avoid an error.
18067 Use char because int might match the return type of a GCC
18068 builtin and then its argument prototype would still apply. */
18069 #ifdef __cplusplus
18070 extern "C"
18071 #endif
18072 char $ac_func ();
18073 /* The GNU C library defines this for functions which it implements
18074 to always fail with ENOSYS. Some functions are actually named
18075 something starting with __ and the normal name is an alias. */
18076 #if defined __stub_$ac_func || defined __stub___$ac_func
18077 choke me
18078 #endif
18079
18080 int
18081 main ()
18082 {
18083 return $ac_func ();
18084 ;
18085 return 0;
18086 }
18087 _ACEOF
18088 rm -f conftest.$ac_objext conftest$ac_exeext
18089 if { (ac_try="$ac_link"
18090 case "(($ac_try" in
18091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092 *) ac_try_echo=$ac_try;;
18093 esac
18094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18095 $as_echo "$ac_try_echo") >&5
18096 (eval "$ac_link") 2>conftest.er1
18097 ac_status=$?
18098 grep -v '^ *+' conftest.er1 >conftest.err
18099 rm -f conftest.er1
18100 cat conftest.err >&5
18101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); } && {
18103 test -z "$ac_c_werror_flag" ||
18104 test ! -s conftest.err
18105 } && test -s conftest$ac_exeext && {
18106 test "$cross_compiling" = yes ||
18107 $as_test_x conftest$ac_exeext
18108 }; then
18109 eval "$as_ac_var=yes"
18110 else
18111 $as_echo "$as_me: failed program was:" >&5
18112 sed 's/^/| /' conftest.$ac_ext >&5
18113
18114 eval "$as_ac_var=no"
18115 fi
18116
18117 rm -rf conftest.dSYM
18118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18119 conftest$ac_exeext conftest.$ac_ext
18120 fi
18121 ac_res=`eval 'as_val=${'$as_ac_var'}
18122 $as_echo "$as_val"'`
18123 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18124 $as_echo "$ac_res" >&6; }
18125 if test `eval 'as_val=${'$as_ac_var'}
18126 $as_echo "$as_val"'` = yes; then
18127 cat >>confdefs.h <<_ACEOF
18128 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18129 _ACEOF
18130
18131 fi
18132 done
18133
18134
18135 # Solaris has libkstat which does not require root.
18136
18137 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18138 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18139 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18140 $as_echo_n "(cached) " >&6
18141 else
18142 ac_check_lib_save_LIBS=$LIBS
18143 LIBS="-lkstat $LIBS"
18144 cat >conftest.$ac_ext <<_ACEOF
18145 /* confdefs.h. */
18146 _ACEOF
18147 cat confdefs.h >>conftest.$ac_ext
18148 cat >>conftest.$ac_ext <<_ACEOF
18149 /* end confdefs.h. */
18150
18151 /* Override any GCC internal prototype to avoid an error.
18152 Use char because int might match the return type of a GCC
18153 builtin and then its argument prototype would still apply. */
18154 #ifdef __cplusplus
18155 extern "C"
18156 #endif
18157 char kstat_open ();
18158 int
18159 main ()
18160 {
18161 return kstat_open ();
18162 ;
18163 return 0;
18164 }
18165 _ACEOF
18166 rm -f conftest.$ac_objext conftest$ac_exeext
18167 if { (ac_try="$ac_link"
18168 case "(($ac_try" in
18169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18170 *) ac_try_echo=$ac_try;;
18171 esac
18172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18173 $as_echo "$ac_try_echo") >&5
18174 (eval "$ac_link") 2>conftest.er1
18175 ac_status=$?
18176 grep -v '^ *+' conftest.er1 >conftest.err
18177 rm -f conftest.er1
18178 cat conftest.err >&5
18179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); } && {
18181 test -z "$ac_c_werror_flag" ||
18182 test ! -s conftest.err
18183 } && test -s conftest$ac_exeext && {
18184 test "$cross_compiling" = yes ||
18185 $as_test_x conftest$ac_exeext
18186 }; then
18187 ac_cv_lib_kstat_kstat_open=yes
18188 else
18189 $as_echo "$as_me: failed program was:" >&5
18190 sed 's/^/| /' conftest.$ac_ext >&5
18191
18192 ac_cv_lib_kstat_kstat_open=no
18193 fi
18194
18195 rm -rf conftest.dSYM
18196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18197 conftest$ac_exeext conftest.$ac_ext
18198 LIBS=$ac_check_lib_save_LIBS
18199 fi
18200 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18201 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18202 if test $ac_cv_lib_kstat_kstat_open = yes; then
18203 cat >>confdefs.h <<_ACEOF
18204 #define HAVE_LIBKSTAT 1
18205 _ACEOF
18206
18207 LIBS="-lkstat $LIBS"
18208
18209 fi
18210
18211 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18212
18213 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18214 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18215 # to get the right answer into the cache.
18216 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18217 if test $ac_have_func = no; then
18218 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18219 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18220 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18221 $as_echo_n "(cached) " >&6
18222 else
18223 ac_check_lib_save_LIBS=$LIBS
18224 LIBS="-lelf $LIBS"
18225 cat >conftest.$ac_ext <<_ACEOF
18226 /* confdefs.h. */
18227 _ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h. */
18231
18232 /* Override any GCC internal prototype to avoid an error.
18233 Use char because int might match the return type of a GCC
18234 builtin and then its argument prototype would still apply. */
18235 #ifdef __cplusplus
18236 extern "C"
18237 #endif
18238 char elf_begin ();
18239 int
18240 main ()
18241 {
18242 return elf_begin ();
18243 ;
18244 return 0;
18245 }
18246 _ACEOF
18247 rm -f conftest.$ac_objext conftest$ac_exeext
18248 if { (ac_try="$ac_link"
18249 case "(($ac_try" in
18250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18251 *) ac_try_echo=$ac_try;;
18252 esac
18253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18254 $as_echo "$ac_try_echo") >&5
18255 (eval "$ac_link") 2>conftest.er1
18256 ac_status=$?
18257 grep -v '^ *+' conftest.er1 >conftest.err
18258 rm -f conftest.er1
18259 cat conftest.err >&5
18260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); } && {
18262 test -z "$ac_c_werror_flag" ||
18263 test ! -s conftest.err
18264 } && test -s conftest$ac_exeext && {
18265 test "$cross_compiling" = yes ||
18266 $as_test_x conftest$ac_exeext
18267 }; then
18268 ac_cv_lib_elf_elf_begin=yes
18269 else
18270 $as_echo "$as_me: failed program was:" >&5
18271 sed 's/^/| /' conftest.$ac_ext >&5
18272
18273 ac_cv_lib_elf_elf_begin=no
18274 fi
18275
18276 rm -rf conftest.dSYM
18277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18278 conftest$ac_exeext conftest.$ac_ext
18279 LIBS=$ac_check_lib_save_LIBS
18280 fi
18281 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18282 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18283 if test $ac_cv_lib_elf_elf_begin = yes; then
18284 LIBS="-lelf $LIBS"
18285 fi
18286
18287 fi
18288 if test $ac_have_func = no; then
18289 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18290 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18291 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18292 $as_echo_n "(cached) " >&6
18293 else
18294 ac_check_lib_save_LIBS=$LIBS
18295 LIBS="-lkvm $LIBS"
18296 cat >conftest.$ac_ext <<_ACEOF
18297 /* confdefs.h. */
18298 _ACEOF
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h. */
18302
18303 /* Override any GCC internal prototype to avoid an error.
18304 Use char because int might match the return type of a GCC
18305 builtin and then its argument prototype would still apply. */
18306 #ifdef __cplusplus
18307 extern "C"
18308 #endif
18309 char kvm_open ();
18310 int
18311 main ()
18312 {
18313 return kvm_open ();
18314 ;
18315 return 0;
18316 }
18317 _ACEOF
18318 rm -f conftest.$ac_objext conftest$ac_exeext
18319 if { (ac_try="$ac_link"
18320 case "(($ac_try" in
18321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322 *) ac_try_echo=$ac_try;;
18323 esac
18324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18325 $as_echo "$ac_try_echo") >&5
18326 (eval "$ac_link") 2>conftest.er1
18327 ac_status=$?
18328 grep -v '^ *+' conftest.er1 >conftest.err
18329 rm -f conftest.er1
18330 cat conftest.err >&5
18331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); } && {
18333 test -z "$ac_c_werror_flag" ||
18334 test ! -s conftest.err
18335 } && test -s conftest$ac_exeext && {
18336 test "$cross_compiling" = yes ||
18337 $as_test_x conftest$ac_exeext
18338 }; then
18339 ac_cv_lib_kvm_kvm_open=yes
18340 else
18341 $as_echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18343
18344 ac_cv_lib_kvm_kvm_open=no
18345 fi
18346
18347 rm -rf conftest.dSYM
18348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18349 conftest$ac_exeext conftest.$ac_ext
18350 LIBS=$ac_check_lib_save_LIBS
18351 fi
18352 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18353 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18354 if test $ac_cv_lib_kvm_kvm_open = yes; then
18355 LIBS="-lkvm $LIBS"
18356 fi
18357
18358 # Check for the 4.4BSD definition of getloadavg.
18359 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18360 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18361 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18362 $as_echo_n "(cached) " >&6
18363 else
18364 ac_check_lib_save_LIBS=$LIBS
18365 LIBS="-lutil $LIBS"
18366 cat >conftest.$ac_ext <<_ACEOF
18367 /* confdefs.h. */
18368 _ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18372
18373 /* Override any GCC internal prototype to avoid an error.
18374 Use char because int might match the return type of a GCC
18375 builtin and then its argument prototype would still apply. */
18376 #ifdef __cplusplus
18377 extern "C"
18378 #endif
18379 char getloadavg ();
18380 int
18381 main ()
18382 {
18383 return getloadavg ();
18384 ;
18385 return 0;
18386 }
18387 _ACEOF
18388 rm -f conftest.$ac_objext conftest$ac_exeext
18389 if { (ac_try="$ac_link"
18390 case "(($ac_try" in
18391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18392 *) ac_try_echo=$ac_try;;
18393 esac
18394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18395 $as_echo "$ac_try_echo") >&5
18396 (eval "$ac_link") 2>conftest.er1
18397 ac_status=$?
18398 grep -v '^ *+' conftest.er1 >conftest.err
18399 rm -f conftest.er1
18400 cat conftest.err >&5
18401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); } && {
18403 test -z "$ac_c_werror_flag" ||
18404 test ! -s conftest.err
18405 } && test -s conftest$ac_exeext && {
18406 test "$cross_compiling" = yes ||
18407 $as_test_x conftest$ac_exeext
18408 }; then
18409 ac_cv_lib_util_getloadavg=yes
18410 else
18411 $as_echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18413
18414 ac_cv_lib_util_getloadavg=no
18415 fi
18416
18417 rm -rf conftest.dSYM
18418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18419 conftest$ac_exeext conftest.$ac_ext
18420 LIBS=$ac_check_lib_save_LIBS
18421 fi
18422 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18423 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18424 if test $ac_cv_lib_util_getloadavg = yes; then
18425 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18426 fi
18427
18428 fi
18429
18430 if test $ac_have_func = no; then
18431 # There is a commonly available library for RS/6000 AIX.
18432 # Since it is not a standard part of AIX, it might be installed locally.
18433 ac_getloadavg_LIBS=$LIBS
18434 LIBS="-L/usr/local/lib $LIBS"
18435 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18436 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18437 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18438 $as_echo_n "(cached) " >&6
18439 else
18440 ac_check_lib_save_LIBS=$LIBS
18441 LIBS="-lgetloadavg $LIBS"
18442 cat >conftest.$ac_ext <<_ACEOF
18443 /* confdefs.h. */
18444 _ACEOF
18445 cat confdefs.h >>conftest.$ac_ext
18446 cat >>conftest.$ac_ext <<_ACEOF
18447 /* end confdefs.h. */
18448
18449 /* Override any GCC internal prototype to avoid an error.
18450 Use char because int might match the return type of a GCC
18451 builtin and then its argument prototype would still apply. */
18452 #ifdef __cplusplus
18453 extern "C"
18454 #endif
18455 char getloadavg ();
18456 int
18457 main ()
18458 {
18459 return getloadavg ();
18460 ;
18461 return 0;
18462 }
18463 _ACEOF
18464 rm -f conftest.$ac_objext conftest$ac_exeext
18465 if { (ac_try="$ac_link"
18466 case "(($ac_try" in
18467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18468 *) ac_try_echo=$ac_try;;
18469 esac
18470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18471 $as_echo "$ac_try_echo") >&5
18472 (eval "$ac_link") 2>conftest.er1
18473 ac_status=$?
18474 grep -v '^ *+' conftest.er1 >conftest.err
18475 rm -f conftest.er1
18476 cat conftest.err >&5
18477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } && {
18479 test -z "$ac_c_werror_flag" ||
18480 test ! -s conftest.err
18481 } && test -s conftest$ac_exeext && {
18482 test "$cross_compiling" = yes ||
18483 $as_test_x conftest$ac_exeext
18484 }; then
18485 ac_cv_lib_getloadavg_getloadavg=yes
18486 else
18487 $as_echo "$as_me: failed program was:" >&5
18488 sed 's/^/| /' conftest.$ac_ext >&5
18489
18490 ac_cv_lib_getloadavg_getloadavg=no
18491 fi
18492
18493 rm -rf conftest.dSYM
18494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18495 conftest$ac_exeext conftest.$ac_ext
18496 LIBS=$ac_check_lib_save_LIBS
18497 fi
18498 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18499 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18500 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18501 LIBS="-lgetloadavg $LIBS"
18502 else
18503 LIBS=$ac_getloadavg_LIBS
18504 fi
18505
18506 fi
18507
18508 # Make sure it is really in the library, if we think we found it,
18509 # otherwise set up the replacement function.
18510
18511 for ac_func in getloadavg
18512 do
18513 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18514 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18515 $as_echo_n "checking for $ac_func... " >&6; }
18516 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18517 $as_echo_n "(cached) " >&6
18518 else
18519 cat >conftest.$ac_ext <<_ACEOF
18520 /* confdefs.h. */
18521 _ACEOF
18522 cat confdefs.h >>conftest.$ac_ext
18523 cat >>conftest.$ac_ext <<_ACEOF
18524 /* end confdefs.h. */
18525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18527 #define $ac_func innocuous_$ac_func
18528
18529 /* System header to define __stub macros and hopefully few prototypes,
18530 which can conflict with char $ac_func (); below.
18531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18532 <limits.h> exists even on freestanding compilers. */
18533
18534 #ifdef __STDC__
18535 # include <limits.h>
18536 #else
18537 # include <assert.h>
18538 #endif
18539
18540 #undef $ac_func
18541
18542 /* Override any GCC internal prototype to avoid an error.
18543 Use char because int might match the return type of a GCC
18544 builtin and then its argument prototype would still apply. */
18545 #ifdef __cplusplus
18546 extern "C"
18547 #endif
18548 char $ac_func ();
18549 /* The GNU C library defines this for functions which it implements
18550 to always fail with ENOSYS. Some functions are actually named
18551 something starting with __ and the normal name is an alias. */
18552 #if defined __stub_$ac_func || defined __stub___$ac_func
18553 choke me
18554 #endif
18555
18556 int
18557 main ()
18558 {
18559 return $ac_func ();
18560 ;
18561 return 0;
18562 }
18563 _ACEOF
18564 rm -f conftest.$ac_objext conftest$ac_exeext
18565 if { (ac_try="$ac_link"
18566 case "(($ac_try" in
18567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18568 *) ac_try_echo=$ac_try;;
18569 esac
18570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18571 $as_echo "$ac_try_echo") >&5
18572 (eval "$ac_link") 2>conftest.er1
18573 ac_status=$?
18574 grep -v '^ *+' conftest.er1 >conftest.err
18575 rm -f conftest.er1
18576 cat conftest.err >&5
18577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); } && {
18579 test -z "$ac_c_werror_flag" ||
18580 test ! -s conftest.err
18581 } && test -s conftest$ac_exeext && {
18582 test "$cross_compiling" = yes ||
18583 $as_test_x conftest$ac_exeext
18584 }; then
18585 eval "$as_ac_var=yes"
18586 else
18587 $as_echo "$as_me: failed program was:" >&5
18588 sed 's/^/| /' conftest.$ac_ext >&5
18589
18590 eval "$as_ac_var=no"
18591 fi
18592
18593 rm -rf conftest.dSYM
18594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18595 conftest$ac_exeext conftest.$ac_ext
18596 fi
18597 ac_res=`eval 'as_val=${'$as_ac_var'}
18598 $as_echo "$as_val"'`
18599 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18600 $as_echo "$ac_res" >&6; }
18601 if test `eval 'as_val=${'$as_ac_var'}
18602 $as_echo "$as_val"'` = yes; then
18603 cat >>confdefs.h <<_ACEOF
18604 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18605 _ACEOF
18606
18607 else
18608 case " $LIBOBJS " in
18609 *" getloadavg.$ac_objext "* ) ;;
18610 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18611 ;;
18612 esac
18613
18614
18615 cat >>confdefs.h <<\_ACEOF
18616 #define C_GETLOADAVG 1
18617 _ACEOF
18618
18619 # Figure out what our getloadavg.c needs.
18620 ac_have_func=no
18621 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18622 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18623 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18624 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18625 $as_echo_n "(cached) " >&6
18626 fi
18627 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18628 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18629 else
18630 # Is the header compilable?
18631 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18632 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18633 cat >conftest.$ac_ext <<_ACEOF
18634 /* confdefs.h. */
18635 _ACEOF
18636 cat confdefs.h >>conftest.$ac_ext
18637 cat >>conftest.$ac_ext <<_ACEOF
18638 /* end confdefs.h. */
18639 $ac_includes_default
18640 #include <sys/dg_sys_info.h>
18641 _ACEOF
18642 rm -f conftest.$ac_objext
18643 if { (ac_try="$ac_compile"
18644 case "(($ac_try" in
18645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18646 *) ac_try_echo=$ac_try;;
18647 esac
18648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18649 $as_echo "$ac_try_echo") >&5
18650 (eval "$ac_compile") 2>conftest.er1
18651 ac_status=$?
18652 grep -v '^ *+' conftest.er1 >conftest.err
18653 rm -f conftest.er1
18654 cat conftest.err >&5
18655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } && {
18657 test -z "$ac_c_werror_flag" ||
18658 test ! -s conftest.err
18659 } && test -s conftest.$ac_objext; then
18660 ac_header_compiler=yes
18661 else
18662 $as_echo "$as_me: failed program was:" >&5
18663 sed 's/^/| /' conftest.$ac_ext >&5
18664
18665 ac_header_compiler=no
18666 fi
18667
18668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18669 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18670 $as_echo "$ac_header_compiler" >&6; }
18671
18672 # Is the header present?
18673 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18674 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18675 cat >conftest.$ac_ext <<_ACEOF
18676 /* confdefs.h. */
18677 _ACEOF
18678 cat confdefs.h >>conftest.$ac_ext
18679 cat >>conftest.$ac_ext <<_ACEOF
18680 /* end confdefs.h. */
18681 #include <sys/dg_sys_info.h>
18682 _ACEOF
18683 if { (ac_try="$ac_cpp conftest.$ac_ext"
18684 case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18687 esac
18688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18689 $as_echo "$ac_try_echo") >&5
18690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18691 ac_status=$?
18692 grep -v '^ *+' conftest.er1 >conftest.err
18693 rm -f conftest.er1
18694 cat conftest.err >&5
18695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); } >/dev/null && {
18697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18698 test ! -s conftest.err
18699 }; then
18700 ac_header_preproc=yes
18701 else
18702 $as_echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18704
18705 ac_header_preproc=no
18706 fi
18707
18708 rm -f conftest.err conftest.$ac_ext
18709 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18710 $as_echo "$ac_header_preproc" >&6; }
18711
18712 # So? What about this header?
18713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18714 yes:no: )
18715 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18716 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18717 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18718 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18719 ac_header_preproc=yes
18720 ;;
18721 no:yes:* )
18722 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18723 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18724 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18725 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18726 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18727 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18728 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18729 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18730 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18731 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18732 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18733 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18734
18735 ;;
18736 esac
18737 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18738 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18739 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18740 $as_echo_n "(cached) " >&6
18741 else
18742 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18743 fi
18744 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18745 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18746
18747 fi
18748 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18749 ac_have_func=yes
18750
18751 cat >>confdefs.h <<\_ACEOF
18752 #define DGUX 1
18753 _ACEOF
18754
18755
18756 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18757 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18758 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18759 $as_echo_n "(cached) " >&6
18760 else
18761 ac_check_lib_save_LIBS=$LIBS
18762 LIBS="-ldgc $LIBS"
18763 cat >conftest.$ac_ext <<_ACEOF
18764 /* confdefs.h. */
18765 _ACEOF
18766 cat confdefs.h >>conftest.$ac_ext
18767 cat >>conftest.$ac_ext <<_ACEOF
18768 /* end confdefs.h. */
18769
18770 /* Override any GCC internal prototype to avoid an error.
18771 Use char because int might match the return type of a GCC
18772 builtin and then its argument prototype would still apply. */
18773 #ifdef __cplusplus
18774 extern "C"
18775 #endif
18776 char dg_sys_info ();
18777 int
18778 main ()
18779 {
18780 return dg_sys_info ();
18781 ;
18782 return 0;
18783 }
18784 _ACEOF
18785 rm -f conftest.$ac_objext conftest$ac_exeext
18786 if { (ac_try="$ac_link"
18787 case "(($ac_try" in
18788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18790 esac
18791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18792 $as_echo "$ac_try_echo") >&5
18793 (eval "$ac_link") 2>conftest.er1
18794 ac_status=$?
18795 grep -v '^ *+' conftest.er1 >conftest.err
18796 rm -f conftest.er1
18797 cat conftest.err >&5
18798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } && {
18800 test -z "$ac_c_werror_flag" ||
18801 test ! -s conftest.err
18802 } && test -s conftest$ac_exeext && {
18803 test "$cross_compiling" = yes ||
18804 $as_test_x conftest$ac_exeext
18805 }; then
18806 ac_cv_lib_dgc_dg_sys_info=yes
18807 else
18808 $as_echo "$as_me: failed program was:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18810
18811 ac_cv_lib_dgc_dg_sys_info=no
18812 fi
18813
18814 rm -rf conftest.dSYM
18815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18816 conftest$ac_exeext conftest.$ac_ext
18817 LIBS=$ac_check_lib_save_LIBS
18818 fi
18819 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18820 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18821 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18822 cat >>confdefs.h <<_ACEOF
18823 #define HAVE_LIBDGC 1
18824 _ACEOF
18825
18826 LIBS="-ldgc $LIBS"
18827
18828 fi
18829
18830 fi
18831
18832
18833
18834 if test "${ac_cv_header_locale_h+set}" = set; then
18835 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18836 $as_echo_n "checking for locale.h... " >&6; }
18837 if test "${ac_cv_header_locale_h+set}" = set; then
18838 $as_echo_n "(cached) " >&6
18839 fi
18840 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18841 $as_echo "$ac_cv_header_locale_h" >&6; }
18842 else
18843 # Is the header compilable?
18844 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
18845 $as_echo_n "checking locale.h usability... " >&6; }
18846 cat >conftest.$ac_ext <<_ACEOF
18847 /* confdefs.h. */
18848 _ACEOF
18849 cat confdefs.h >>conftest.$ac_ext
18850 cat >>conftest.$ac_ext <<_ACEOF
18851 /* end confdefs.h. */
18852 $ac_includes_default
18853 #include <locale.h>
18854 _ACEOF
18855 rm -f conftest.$ac_objext
18856 if { (ac_try="$ac_compile"
18857 case "(($ac_try" in
18858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18859 *) ac_try_echo=$ac_try;;
18860 esac
18861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18862 $as_echo "$ac_try_echo") >&5
18863 (eval "$ac_compile") 2>conftest.er1
18864 ac_status=$?
18865 grep -v '^ *+' conftest.er1 >conftest.err
18866 rm -f conftest.er1
18867 cat conftest.err >&5
18868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); } && {
18870 test -z "$ac_c_werror_flag" ||
18871 test ! -s conftest.err
18872 } && test -s conftest.$ac_objext; then
18873 ac_header_compiler=yes
18874 else
18875 $as_echo "$as_me: failed program was:" >&5
18876 sed 's/^/| /' conftest.$ac_ext >&5
18877
18878 ac_header_compiler=no
18879 fi
18880
18881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18882 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18883 $as_echo "$ac_header_compiler" >&6; }
18884
18885 # Is the header present?
18886 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
18887 $as_echo_n "checking locale.h presence... " >&6; }
18888 cat >conftest.$ac_ext <<_ACEOF
18889 /* confdefs.h. */
18890 _ACEOF
18891 cat confdefs.h >>conftest.$ac_ext
18892 cat >>conftest.$ac_ext <<_ACEOF
18893 /* end confdefs.h. */
18894 #include <locale.h>
18895 _ACEOF
18896 if { (ac_try="$ac_cpp conftest.$ac_ext"
18897 case "(($ac_try" in
18898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899 *) ac_try_echo=$ac_try;;
18900 esac
18901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18902 $as_echo "$ac_try_echo") >&5
18903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18904 ac_status=$?
18905 grep -v '^ *+' conftest.er1 >conftest.err
18906 rm -f conftest.er1
18907 cat conftest.err >&5
18908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); } >/dev/null && {
18910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18911 test ! -s conftest.err
18912 }; then
18913 ac_header_preproc=yes
18914 else
18915 $as_echo "$as_me: failed program was:" >&5
18916 sed 's/^/| /' conftest.$ac_ext >&5
18917
18918 ac_header_preproc=no
18919 fi
18920
18921 rm -f conftest.err conftest.$ac_ext
18922 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18923 $as_echo "$ac_header_preproc" >&6; }
18924
18925 # So? What about this header?
18926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18927 yes:no: )
18928 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18929 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18930 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18931 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18932 ac_header_preproc=yes
18933 ;;
18934 no:yes:* )
18935 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18936 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18937 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18938 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18939 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18940 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18941 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18942 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18943 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18944 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18945 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18946 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18947
18948 ;;
18949 esac
18950 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18951 $as_echo_n "checking for locale.h... " >&6; }
18952 if test "${ac_cv_header_locale_h+set}" = set; then
18953 $as_echo_n "(cached) " >&6
18954 else
18955 ac_cv_header_locale_h=$ac_header_preproc
18956 fi
18957 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18958 $as_echo "$ac_cv_header_locale_h" >&6; }
18959
18960 fi
18961
18962
18963
18964 for ac_func in setlocale
18965 do
18966 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18967 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18968 $as_echo_n "checking for $ac_func... " >&6; }
18969 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18970 $as_echo_n "(cached) " >&6
18971 else
18972 cat >conftest.$ac_ext <<_ACEOF
18973 /* confdefs.h. */
18974 _ACEOF
18975 cat confdefs.h >>conftest.$ac_ext
18976 cat >>conftest.$ac_ext <<_ACEOF
18977 /* end confdefs.h. */
18978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18980 #define $ac_func innocuous_$ac_func
18981
18982 /* System header to define __stub macros and hopefully few prototypes,
18983 which can conflict with char $ac_func (); below.
18984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18985 <limits.h> exists even on freestanding compilers. */
18986
18987 #ifdef __STDC__
18988 # include <limits.h>
18989 #else
18990 # include <assert.h>
18991 #endif
18992
18993 #undef $ac_func
18994
18995 /* Override any GCC internal prototype to avoid an error.
18996 Use char because int might match the return type of a GCC
18997 builtin and then its argument prototype would still apply. */
18998 #ifdef __cplusplus
18999 extern "C"
19000 #endif
19001 char $ac_func ();
19002 /* The GNU C library defines this for functions which it implements
19003 to always fail with ENOSYS. Some functions are actually named
19004 something starting with __ and the normal name is an alias. */
19005 #if defined __stub_$ac_func || defined __stub___$ac_func
19006 choke me
19007 #endif
19008
19009 int
19010 main ()
19011 {
19012 return $ac_func ();
19013 ;
19014 return 0;
19015 }
19016 _ACEOF
19017 rm -f conftest.$ac_objext conftest$ac_exeext
19018 if { (ac_try="$ac_link"
19019 case "(($ac_try" in
19020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021 *) ac_try_echo=$ac_try;;
19022 esac
19023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19024 $as_echo "$ac_try_echo") >&5
19025 (eval "$ac_link") 2>conftest.er1
19026 ac_status=$?
19027 grep -v '^ *+' conftest.er1 >conftest.err
19028 rm -f conftest.er1
19029 cat conftest.err >&5
19030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); } && {
19032 test -z "$ac_c_werror_flag" ||
19033 test ! -s conftest.err
19034 } && test -s conftest$ac_exeext && {
19035 test "$cross_compiling" = yes ||
19036 $as_test_x conftest$ac_exeext
19037 }; then
19038 eval "$as_ac_var=yes"
19039 else
19040 $as_echo "$as_me: failed program was:" >&5
19041 sed 's/^/| /' conftest.$ac_ext >&5
19042
19043 eval "$as_ac_var=no"
19044 fi
19045
19046 rm -rf conftest.dSYM
19047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19048 conftest$ac_exeext conftest.$ac_ext
19049 fi
19050 ac_res=`eval 'as_val=${'$as_ac_var'}
19051 $as_echo "$as_val"'`
19052 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19053 $as_echo "$ac_res" >&6; }
19054 if test `eval 'as_val=${'$as_ac_var'}
19055 $as_echo "$as_val"'` = yes; then
19056 cat >>confdefs.h <<_ACEOF
19057 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19058 _ACEOF
19059
19060 fi
19061 done
19062
19063
19064 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19065 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19066 # Irix 4.0.5F has the header but not the library.
19067 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19068 ac_have_func=yes
19069
19070 cat >>confdefs.h <<\_ACEOF
19071 #define SVR4 1
19072 _ACEOF
19073
19074 fi
19075
19076 if test $ac_have_func = no; then
19077 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19078 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19079 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19080 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19081 $as_echo_n "(cached) " >&6
19082 fi
19083 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19084 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19085 else
19086 # Is the header compilable?
19087 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19088 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19089 cat >conftest.$ac_ext <<_ACEOF
19090 /* confdefs.h. */
19091 _ACEOF
19092 cat confdefs.h >>conftest.$ac_ext
19093 cat >>conftest.$ac_ext <<_ACEOF
19094 /* end confdefs.h. */
19095 $ac_includes_default
19096 #include <inq_stats/cpustats.h>
19097 _ACEOF
19098 rm -f conftest.$ac_objext
19099 if { (ac_try="$ac_compile"
19100 case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19103 esac
19104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19105 $as_echo "$ac_try_echo") >&5
19106 (eval "$ac_compile") 2>conftest.er1
19107 ac_status=$?
19108 grep -v '^ *+' conftest.er1 >conftest.err
19109 rm -f conftest.er1
19110 cat conftest.err >&5
19111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); } && {
19113 test -z "$ac_c_werror_flag" ||
19114 test ! -s conftest.err
19115 } && test -s conftest.$ac_objext; then
19116 ac_header_compiler=yes
19117 else
19118 $as_echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19120
19121 ac_header_compiler=no
19122 fi
19123
19124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19125 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19126 $as_echo "$ac_header_compiler" >&6; }
19127
19128 # Is the header present?
19129 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19130 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19131 cat >conftest.$ac_ext <<_ACEOF
19132 /* confdefs.h. */
19133 _ACEOF
19134 cat confdefs.h >>conftest.$ac_ext
19135 cat >>conftest.$ac_ext <<_ACEOF
19136 /* end confdefs.h. */
19137 #include <inq_stats/cpustats.h>
19138 _ACEOF
19139 if { (ac_try="$ac_cpp conftest.$ac_ext"
19140 case "(($ac_try" in
19141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142 *) ac_try_echo=$ac_try;;
19143 esac
19144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19145 $as_echo "$ac_try_echo") >&5
19146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19147 ac_status=$?
19148 grep -v '^ *+' conftest.er1 >conftest.err
19149 rm -f conftest.er1
19150 cat conftest.err >&5
19151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); } >/dev/null && {
19153 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19154 test ! -s conftest.err
19155 }; then
19156 ac_header_preproc=yes
19157 else
19158 $as_echo "$as_me: failed program was:" >&5
19159 sed 's/^/| /' conftest.$ac_ext >&5
19160
19161 ac_header_preproc=no
19162 fi
19163
19164 rm -f conftest.err conftest.$ac_ext
19165 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19166 $as_echo "$ac_header_preproc" >&6; }
19167
19168 # So? What about this header?
19169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19170 yes:no: )
19171 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19172 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19173 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19174 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19175 ac_header_preproc=yes
19176 ;;
19177 no:yes:* )
19178 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19179 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19180 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19181 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19182 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19183 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19184 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19185 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19186 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19187 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19188 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19189 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19190
19191 ;;
19192 esac
19193 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19194 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19195 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19196 $as_echo_n "(cached) " >&6
19197 else
19198 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19199 fi
19200 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19201 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19202
19203 fi
19204 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19205 ac_have_func=yes
19206
19207 cat >>confdefs.h <<\_ACEOF
19208 #define UMAX 1
19209 _ACEOF
19210
19211
19212 cat >>confdefs.h <<\_ACEOF
19213 #define UMAX4_3 1
19214 _ACEOF
19215
19216 fi
19217
19218
19219 fi
19220
19221 if test $ac_have_func = no; then
19222 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19223 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19224 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19225 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19226 $as_echo_n "(cached) " >&6
19227 fi
19228 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19229 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19230 else
19231 # Is the header compilable?
19232 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19233 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19234 cat >conftest.$ac_ext <<_ACEOF
19235 /* confdefs.h. */
19236 _ACEOF
19237 cat confdefs.h >>conftest.$ac_ext
19238 cat >>conftest.$ac_ext <<_ACEOF
19239 /* end confdefs.h. */
19240 $ac_includes_default
19241 #include <sys/cpustats.h>
19242 _ACEOF
19243 rm -f conftest.$ac_objext
19244 if { (ac_try="$ac_compile"
19245 case "(($ac_try" in
19246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247 *) ac_try_echo=$ac_try;;
19248 esac
19249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19250 $as_echo "$ac_try_echo") >&5
19251 (eval "$ac_compile") 2>conftest.er1
19252 ac_status=$?
19253 grep -v '^ *+' conftest.er1 >conftest.err
19254 rm -f conftest.er1
19255 cat conftest.err >&5
19256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); } && {
19258 test -z "$ac_c_werror_flag" ||
19259 test ! -s conftest.err
19260 } && test -s conftest.$ac_objext; then
19261 ac_header_compiler=yes
19262 else
19263 $as_echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19265
19266 ac_header_compiler=no
19267 fi
19268
19269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19270 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19271 $as_echo "$ac_header_compiler" >&6; }
19272
19273 # Is the header present?
19274 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19275 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19276 cat >conftest.$ac_ext <<_ACEOF
19277 /* confdefs.h. */
19278 _ACEOF
19279 cat confdefs.h >>conftest.$ac_ext
19280 cat >>conftest.$ac_ext <<_ACEOF
19281 /* end confdefs.h. */
19282 #include <sys/cpustats.h>
19283 _ACEOF
19284 if { (ac_try="$ac_cpp conftest.$ac_ext"
19285 case "(($ac_try" in
19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287 *) ac_try_echo=$ac_try;;
19288 esac
19289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19290 $as_echo "$ac_try_echo") >&5
19291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19292 ac_status=$?
19293 grep -v '^ *+' conftest.er1 >conftest.err
19294 rm -f conftest.er1
19295 cat conftest.err >&5
19296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); } >/dev/null && {
19298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19299 test ! -s conftest.err
19300 }; then
19301 ac_header_preproc=yes
19302 else
19303 $as_echo "$as_me: failed program was:" >&5
19304 sed 's/^/| /' conftest.$ac_ext >&5
19305
19306 ac_header_preproc=no
19307 fi
19308
19309 rm -f conftest.err conftest.$ac_ext
19310 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19311 $as_echo "$ac_header_preproc" >&6; }
19312
19313 # So? What about this header?
19314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19315 yes:no: )
19316 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19317 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19318 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19319 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19320 ac_header_preproc=yes
19321 ;;
19322 no:yes:* )
19323 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19324 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19325 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19326 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19327 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19328 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19329 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19330 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19331 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19332 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19333 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19334 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19335
19336 ;;
19337 esac
19338 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19339 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19340 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19341 $as_echo_n "(cached) " >&6
19342 else
19343 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19344 fi
19345 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19346 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19347
19348 fi
19349 if test $ac_cv_header_sys_cpustats_h = yes; then
19350 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19351 #define UMAX 1
19352 _ACEOF
19353
19354 fi
19355
19356
19357 fi
19358
19359 if test $ac_have_func = no; then
19360
19361 for ac_header in mach/mach.h
19362 do
19363 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19365 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19366 $as_echo_n "checking for $ac_header... " >&6; }
19367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19368 $as_echo_n "(cached) " >&6
19369 fi
19370 ac_res=`eval 'as_val=${'$as_ac_Header'}
19371 $as_echo "$as_val"'`
19372 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19373 $as_echo "$ac_res" >&6; }
19374 else
19375 # Is the header compilable?
19376 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19377 $as_echo_n "checking $ac_header usability... " >&6; }
19378 cat >conftest.$ac_ext <<_ACEOF
19379 /* confdefs.h. */
19380 _ACEOF
19381 cat confdefs.h >>conftest.$ac_ext
19382 cat >>conftest.$ac_ext <<_ACEOF
19383 /* end confdefs.h. */
19384 $ac_includes_default
19385 #include <$ac_header>
19386 _ACEOF
19387 rm -f conftest.$ac_objext
19388 if { (ac_try="$ac_compile"
19389 case "(($ac_try" in
19390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391 *) ac_try_echo=$ac_try;;
19392 esac
19393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19394 $as_echo "$ac_try_echo") >&5
19395 (eval "$ac_compile") 2>conftest.er1
19396 ac_status=$?
19397 grep -v '^ *+' conftest.er1 >conftest.err
19398 rm -f conftest.er1
19399 cat conftest.err >&5
19400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); } && {
19402 test -z "$ac_c_werror_flag" ||
19403 test ! -s conftest.err
19404 } && test -s conftest.$ac_objext; then
19405 ac_header_compiler=yes
19406 else
19407 $as_echo "$as_me: failed program was:" >&5
19408 sed 's/^/| /' conftest.$ac_ext >&5
19409
19410 ac_header_compiler=no
19411 fi
19412
19413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19414 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19415 $as_echo "$ac_header_compiler" >&6; }
19416
19417 # Is the header present?
19418 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19419 $as_echo_n "checking $ac_header presence... " >&6; }
19420 cat >conftest.$ac_ext <<_ACEOF
19421 /* confdefs.h. */
19422 _ACEOF
19423 cat confdefs.h >>conftest.$ac_ext
19424 cat >>conftest.$ac_ext <<_ACEOF
19425 /* end confdefs.h. */
19426 #include <$ac_header>
19427 _ACEOF
19428 if { (ac_try="$ac_cpp conftest.$ac_ext"
19429 case "(($ac_try" in
19430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431 *) ac_try_echo=$ac_try;;
19432 esac
19433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19434 $as_echo "$ac_try_echo") >&5
19435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19436 ac_status=$?
19437 grep -v '^ *+' conftest.er1 >conftest.err
19438 rm -f conftest.er1
19439 cat conftest.err >&5
19440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } >/dev/null && {
19442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19443 test ! -s conftest.err
19444 }; then
19445 ac_header_preproc=yes
19446 else
19447 $as_echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.$ac_ext >&5
19449
19450 ac_header_preproc=no
19451 fi
19452
19453 rm -f conftest.err conftest.$ac_ext
19454 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19455 $as_echo "$ac_header_preproc" >&6; }
19456
19457 # So? What about this header?
19458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19459 yes:no: )
19460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19461 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19463 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19464 ac_header_preproc=yes
19465 ;;
19466 no:yes:* )
19467 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19468 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19470 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19472 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19474 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19476 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19477 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19478 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19479
19480 ;;
19481 esac
19482 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19483 $as_echo_n "checking for $ac_header... " >&6; }
19484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19485 $as_echo_n "(cached) " >&6
19486 else
19487 eval "$as_ac_Header=\$ac_header_preproc"
19488 fi
19489 ac_res=`eval 'as_val=${'$as_ac_Header'}
19490 $as_echo "$as_val"'`
19491 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19492 $as_echo "$ac_res" >&6; }
19493
19494 fi
19495 if test `eval 'as_val=${'$as_ac_Header'}
19496 $as_echo "$as_val"'` = yes; then
19497 cat >>confdefs.h <<_ACEOF
19498 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19499 _ACEOF
19500
19501 fi
19502
19503 done
19504
19505 fi
19506
19507
19508 for ac_header in nlist.h
19509 do
19510 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19512 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19513 $as_echo_n "checking for $ac_header... " >&6; }
19514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19515 $as_echo_n "(cached) " >&6
19516 fi
19517 ac_res=`eval 'as_val=${'$as_ac_Header'}
19518 $as_echo "$as_val"'`
19519 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19520 $as_echo "$ac_res" >&6; }
19521 else
19522 # Is the header compilable?
19523 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19524 $as_echo_n "checking $ac_header usability... " >&6; }
19525 cat >conftest.$ac_ext <<_ACEOF
19526 /* confdefs.h. */
19527 _ACEOF
19528 cat confdefs.h >>conftest.$ac_ext
19529 cat >>conftest.$ac_ext <<_ACEOF
19530 /* end confdefs.h. */
19531 $ac_includes_default
19532 #include <$ac_header>
19533 _ACEOF
19534 rm -f conftest.$ac_objext
19535 if { (ac_try="$ac_compile"
19536 case "(($ac_try" in
19537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538 *) ac_try_echo=$ac_try;;
19539 esac
19540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19541 $as_echo "$ac_try_echo") >&5
19542 (eval "$ac_compile") 2>conftest.er1
19543 ac_status=$?
19544 grep -v '^ *+' conftest.er1 >conftest.err
19545 rm -f conftest.er1
19546 cat conftest.err >&5
19547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); } && {
19549 test -z "$ac_c_werror_flag" ||
19550 test ! -s conftest.err
19551 } && test -s conftest.$ac_objext; then
19552 ac_header_compiler=yes
19553 else
19554 $as_echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19556
19557 ac_header_compiler=no
19558 fi
19559
19560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19561 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19562 $as_echo "$ac_header_compiler" >&6; }
19563
19564 # Is the header present?
19565 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19566 $as_echo_n "checking $ac_header presence... " >&6; }
19567 cat >conftest.$ac_ext <<_ACEOF
19568 /* confdefs.h. */
19569 _ACEOF
19570 cat confdefs.h >>conftest.$ac_ext
19571 cat >>conftest.$ac_ext <<_ACEOF
19572 /* end confdefs.h. */
19573 #include <$ac_header>
19574 _ACEOF
19575 if { (ac_try="$ac_cpp conftest.$ac_ext"
19576 case "(($ac_try" in
19577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19578 *) ac_try_echo=$ac_try;;
19579 esac
19580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19581 $as_echo "$ac_try_echo") >&5
19582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19583 ac_status=$?
19584 grep -v '^ *+' conftest.er1 >conftest.err
19585 rm -f conftest.er1
19586 cat conftest.err >&5
19587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); } >/dev/null && {
19589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19590 test ! -s conftest.err
19591 }; then
19592 ac_header_preproc=yes
19593 else
19594 $as_echo "$as_me: failed program was:" >&5
19595 sed 's/^/| /' conftest.$ac_ext >&5
19596
19597 ac_header_preproc=no
19598 fi
19599
19600 rm -f conftest.err conftest.$ac_ext
19601 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19602 $as_echo "$ac_header_preproc" >&6; }
19603
19604 # So? What about this header?
19605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19606 yes:no: )
19607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19608 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19610 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19611 ac_header_preproc=yes
19612 ;;
19613 no:yes:* )
19614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19615 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19617 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19619 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19621 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19623 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19625 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19626
19627 ;;
19628 esac
19629 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19630 $as_echo_n "checking for $ac_header... " >&6; }
19631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19632 $as_echo_n "(cached) " >&6
19633 else
19634 eval "$as_ac_Header=\$ac_header_preproc"
19635 fi
19636 ac_res=`eval 'as_val=${'$as_ac_Header'}
19637 $as_echo "$as_val"'`
19638 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19639 $as_echo "$ac_res" >&6; }
19640
19641 fi
19642 if test `eval 'as_val=${'$as_ac_Header'}
19643 $as_echo "$as_val"'` = yes; then
19644 cat >>confdefs.h <<_ACEOF
19645 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19646 _ACEOF
19647 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19648 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19649 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19650 $as_echo_n "(cached) " >&6
19651 else
19652 cat >conftest.$ac_ext <<_ACEOF
19653 /* confdefs.h. */
19654 _ACEOF
19655 cat confdefs.h >>conftest.$ac_ext
19656 cat >>conftest.$ac_ext <<_ACEOF
19657 /* end confdefs.h. */
19658 #include <nlist.h>
19659
19660 int
19661 main ()
19662 {
19663 static struct nlist ac_aggr;
19664 if (ac_aggr.n_un.n_name)
19665 return 0;
19666 ;
19667 return 0;
19668 }
19669 _ACEOF
19670 rm -f conftest.$ac_objext
19671 if { (ac_try="$ac_compile"
19672 case "(($ac_try" in
19673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19674 *) ac_try_echo=$ac_try;;
19675 esac
19676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19677 $as_echo "$ac_try_echo") >&5
19678 (eval "$ac_compile") 2>conftest.er1
19679 ac_status=$?
19680 grep -v '^ *+' conftest.er1 >conftest.err
19681 rm -f conftest.er1
19682 cat conftest.err >&5
19683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } && {
19685 test -z "$ac_c_werror_flag" ||
19686 test ! -s conftest.err
19687 } && test -s conftest.$ac_objext; then
19688 ac_cv_member_struct_nlist_n_un_n_name=yes
19689 else
19690 $as_echo "$as_me: failed program was:" >&5
19691 sed 's/^/| /' conftest.$ac_ext >&5
19692
19693 cat >conftest.$ac_ext <<_ACEOF
19694 /* confdefs.h. */
19695 _ACEOF
19696 cat confdefs.h >>conftest.$ac_ext
19697 cat >>conftest.$ac_ext <<_ACEOF
19698 /* end confdefs.h. */
19699 #include <nlist.h>
19700
19701 int
19702 main ()
19703 {
19704 static struct nlist ac_aggr;
19705 if (sizeof ac_aggr.n_un.n_name)
19706 return 0;
19707 ;
19708 return 0;
19709 }
19710 _ACEOF
19711 rm -f conftest.$ac_objext
19712 if { (ac_try="$ac_compile"
19713 case "(($ac_try" in
19714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19715 *) ac_try_echo=$ac_try;;
19716 esac
19717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19718 $as_echo "$ac_try_echo") >&5
19719 (eval "$ac_compile") 2>conftest.er1
19720 ac_status=$?
19721 grep -v '^ *+' conftest.er1 >conftest.err
19722 rm -f conftest.er1
19723 cat conftest.err >&5
19724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); } && {
19726 test -z "$ac_c_werror_flag" ||
19727 test ! -s conftest.err
19728 } && test -s conftest.$ac_objext; then
19729 ac_cv_member_struct_nlist_n_un_n_name=yes
19730 else
19731 $as_echo "$as_me: failed program was:" >&5
19732 sed 's/^/| /' conftest.$ac_ext >&5
19733
19734 ac_cv_member_struct_nlist_n_un_n_name=no
19735 fi
19736
19737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19738 fi
19739
19740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19741 fi
19742 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19743 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19744 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19745
19746 cat >>confdefs.h <<_ACEOF
19747 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19748 _ACEOF
19749
19750
19751 cat >>confdefs.h <<\_ACEOF
19752 #define NLIST_NAME_UNION 1
19753 _ACEOF
19754
19755 fi
19756
19757
19758 fi
19759
19760 done
19761
19762 fi
19763 done
19764
19765
19766 # Some definitions of getloadavg require that the program be installed setgid.
19767 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
19768 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
19769 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19770 $as_echo_n "(cached) " >&6
19771 else
19772 cat >conftest.$ac_ext <<_ACEOF
19773 /* confdefs.h. */
19774 _ACEOF
19775 cat confdefs.h >>conftest.$ac_ext
19776 cat >>conftest.$ac_ext <<_ACEOF
19777 /* end confdefs.h. */
19778 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
19779 #ifdef LDAV_PRIVILEGED
19780 Yowza Am I SETGID yet
19781 #endif
19782 _ACEOF
19783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19784 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
19785 ac_cv_func_getloadavg_setgid=yes
19786 else
19787 ac_cv_func_getloadavg_setgid=no
19788 fi
19789 rm -f conftest*
19790
19791 fi
19792 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
19793 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
19794 if test $ac_cv_func_getloadavg_setgid = yes; then
19795 NEED_SETGID=true
19796
19797 cat >>confdefs.h <<\_ACEOF
19798 #define GETLOADAVG_PRIVILEGED 1
19799 _ACEOF
19800
19801 else
19802 NEED_SETGID=false
19803 fi
19804
19805 if test $ac_cv_func_getloadavg_setgid = yes; then
19806 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
19807 $as_echo_n "checking group of /dev/kmem... " >&6; }
19808 if test "${ac_cv_group_kmem+set}" = set; then
19809 $as_echo_n "(cached) " >&6
19810 else
19811 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19812 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
19813 # If we got an error (system does not support symlinks), try without -L.
19814 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
19815 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
19816 | sed -ne 's/[ ][ ]*/ /g;
19817 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19818 / /s/.* //;p;'`
19819
19820 fi
19821 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
19822 $as_echo "$ac_cv_group_kmem" >&6; }
19823 KMEM_GROUP=$ac_cv_group_kmem
19824 fi
19825 if test "x$ac_save_LIBS" = x; then
19826 GETLOADAVG_LIBS=$LIBS
19827 else
19828 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
19829 fi
19830 LIBS=$ac_save_LIBS
19831
19832
19833
19834 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19835 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19836 if test "${ac_cv_sys_largefile_source+set}" = set; then
19837 $as_echo_n "(cached) " >&6
19838 else
19839 while :; do
19840 cat >conftest.$ac_ext <<_ACEOF
19841 /* confdefs.h. */
19842 _ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h. */
19846 #include <sys/types.h> /* for off_t */
19847 #include <stdio.h>
19848 int
19849 main ()
19850 {
19851 int (*fp) (FILE *, off_t, int) = fseeko;
19852 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19853 ;
19854 return 0;
19855 }
19856 _ACEOF
19857 rm -f conftest.$ac_objext conftest$ac_exeext
19858 if { (ac_try="$ac_link"
19859 case "(($ac_try" in
19860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19861 *) ac_try_echo=$ac_try;;
19862 esac
19863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19864 $as_echo "$ac_try_echo") >&5
19865 (eval "$ac_link") 2>conftest.er1
19866 ac_status=$?
19867 grep -v '^ *+' conftest.er1 >conftest.err
19868 rm -f conftest.er1
19869 cat conftest.err >&5
19870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); } && {
19872 test -z "$ac_c_werror_flag" ||
19873 test ! -s conftest.err
19874 } && test -s conftest$ac_exeext && {
19875 test "$cross_compiling" = yes ||
19876 $as_test_x conftest$ac_exeext
19877 }; then
19878 ac_cv_sys_largefile_source=no; break
19879 else
19880 $as_echo "$as_me: failed program was:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19882
19883
19884 fi
19885
19886 rm -rf conftest.dSYM
19887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19888 conftest$ac_exeext conftest.$ac_ext
19889 cat >conftest.$ac_ext <<_ACEOF
19890 /* confdefs.h. */
19891 _ACEOF
19892 cat confdefs.h >>conftest.$ac_ext
19893 cat >>conftest.$ac_ext <<_ACEOF
19894 /* end confdefs.h. */
19895 #define _LARGEFILE_SOURCE 1
19896 #include <sys/types.h> /* for off_t */
19897 #include <stdio.h>
19898 int
19899 main ()
19900 {
19901 int (*fp) (FILE *, off_t, int) = fseeko;
19902 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19903 ;
19904 return 0;
19905 }
19906 _ACEOF
19907 rm -f conftest.$ac_objext conftest$ac_exeext
19908 if { (ac_try="$ac_link"
19909 case "(($ac_try" in
19910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911 *) ac_try_echo=$ac_try;;
19912 esac
19913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19914 $as_echo "$ac_try_echo") >&5
19915 (eval "$ac_link") 2>conftest.er1
19916 ac_status=$?
19917 grep -v '^ *+' conftest.er1 >conftest.err
19918 rm -f conftest.er1
19919 cat conftest.err >&5
19920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); } && {
19922 test -z "$ac_c_werror_flag" ||
19923 test ! -s conftest.err
19924 } && test -s conftest$ac_exeext && {
19925 test "$cross_compiling" = yes ||
19926 $as_test_x conftest$ac_exeext
19927 }; then
19928 ac_cv_sys_largefile_source=1; break
19929 else
19930 $as_echo "$as_me: failed program was:" >&5
19931 sed 's/^/| /' conftest.$ac_ext >&5
19932
19933
19934 fi
19935
19936 rm -rf conftest.dSYM
19937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19938 conftest$ac_exeext conftest.$ac_ext
19939 ac_cv_sys_largefile_source=unknown
19940 break
19941 done
19942 fi
19943 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19944 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19945 case $ac_cv_sys_largefile_source in #(
19946 no | unknown) ;;
19947 *)
19948 cat >>confdefs.h <<_ACEOF
19949 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19950 _ACEOF
19951 ;;
19952 esac
19953 rm -rf conftest*
19954
19955 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19956 # in glibc 2.1.3, but that breaks too many other things.
19957 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19958 if test $ac_cv_sys_largefile_source != unknown; then
19959
19960 cat >>confdefs.h <<\_ACEOF
19961 #define HAVE_FSEEKO 1
19962 _ACEOF
19963
19964 fi
19965
19966
19967 # Configure getopt.
19968 # getopt.m4 serial 10
19969
19970 # The getopt module assume you want GNU getopt, with getopt_long etc,
19971 # rather than vanilla POSIX getopt. This means your your code should
19972 # always include <getopt.h> for the getopt prototypes.
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984 # Prerequisites of lib/getopt*.
19985
19986
19987
19988
19989 GETOPT_H=
19990
19991 for ac_header in getopt.h
19992 do
19993 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19995 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19996 $as_echo_n "checking for $ac_header... " >&6; }
19997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19998 $as_echo_n "(cached) " >&6
19999 fi
20000 ac_res=`eval 'as_val=${'$as_ac_Header'}
20001 $as_echo "$as_val"'`
20002 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20003 $as_echo "$ac_res" >&6; }
20004 else
20005 # Is the header compilable?
20006 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20007 $as_echo_n "checking $ac_header usability... " >&6; }
20008 cat >conftest.$ac_ext <<_ACEOF
20009 /* confdefs.h. */
20010 _ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h. */
20014 $ac_includes_default
20015 #include <$ac_header>
20016 _ACEOF
20017 rm -f conftest.$ac_objext
20018 if { (ac_try="$ac_compile"
20019 case "(($ac_try" in
20020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021 *) ac_try_echo=$ac_try;;
20022 esac
20023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20024 $as_echo "$ac_try_echo") >&5
20025 (eval "$ac_compile") 2>conftest.er1
20026 ac_status=$?
20027 grep -v '^ *+' conftest.er1 >conftest.err
20028 rm -f conftest.er1
20029 cat conftest.err >&5
20030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } && {
20032 test -z "$ac_c_werror_flag" ||
20033 test ! -s conftest.err
20034 } && test -s conftest.$ac_objext; then
20035 ac_header_compiler=yes
20036 else
20037 $as_echo "$as_me: failed program was:" >&5
20038 sed 's/^/| /' conftest.$ac_ext >&5
20039
20040 ac_header_compiler=no
20041 fi
20042
20043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20044 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20045 $as_echo "$ac_header_compiler" >&6; }
20046
20047 # Is the header present?
20048 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20049 $as_echo_n "checking $ac_header presence... " >&6; }
20050 cat >conftest.$ac_ext <<_ACEOF
20051 /* confdefs.h. */
20052 _ACEOF
20053 cat confdefs.h >>conftest.$ac_ext
20054 cat >>conftest.$ac_ext <<_ACEOF
20055 /* end confdefs.h. */
20056 #include <$ac_header>
20057 _ACEOF
20058 if { (ac_try="$ac_cpp conftest.$ac_ext"
20059 case "(($ac_try" in
20060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061 *) ac_try_echo=$ac_try;;
20062 esac
20063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20064 $as_echo "$ac_try_echo") >&5
20065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20066 ac_status=$?
20067 grep -v '^ *+' conftest.er1 >conftest.err
20068 rm -f conftest.er1
20069 cat conftest.err >&5
20070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } >/dev/null && {
20072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20073 test ! -s conftest.err
20074 }; then
20075 ac_header_preproc=yes
20076 else
20077 $as_echo "$as_me: failed program was:" >&5
20078 sed 's/^/| /' conftest.$ac_ext >&5
20079
20080 ac_header_preproc=no
20081 fi
20082
20083 rm -f conftest.err conftest.$ac_ext
20084 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20085 $as_echo "$ac_header_preproc" >&6; }
20086
20087 # So? What about this header?
20088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20089 yes:no: )
20090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20091 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20093 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20094 ac_header_preproc=yes
20095 ;;
20096 no:yes:* )
20097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20098 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20100 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20102 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20104 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20106 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20108 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20109
20110 ;;
20111 esac
20112 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20113 $as_echo_n "checking for $ac_header... " >&6; }
20114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20115 $as_echo_n "(cached) " >&6
20116 else
20117 eval "$as_ac_Header=\$ac_header_preproc"
20118 fi
20119 ac_res=`eval 'as_val=${'$as_ac_Header'}
20120 $as_echo "$as_val"'`
20121 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20122 $as_echo "$ac_res" >&6; }
20123
20124 fi
20125 if test `eval 'as_val=${'$as_ac_Header'}
20126 $as_echo "$as_val"'` = yes; then
20127 cat >>confdefs.h <<_ACEOF
20128 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20129 _ACEOF
20130
20131 else
20132 GETOPT_H=getopt.h
20133 fi
20134
20135 done
20136
20137 if test -z "$GETOPT_H"; then
20138
20139 for ac_func in getopt_long_only
20140 do
20141 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20142 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20143 $as_echo_n "checking for $ac_func... " >&6; }
20144 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20145 $as_echo_n "(cached) " >&6
20146 else
20147 cat >conftest.$ac_ext <<_ACEOF
20148 /* confdefs.h. */
20149 _ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h. */
20153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20155 #define $ac_func innocuous_$ac_func
20156
20157 /* System header to define __stub macros and hopefully few prototypes,
20158 which can conflict with char $ac_func (); below.
20159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20160 <limits.h> exists even on freestanding compilers. */
20161
20162 #ifdef __STDC__
20163 # include <limits.h>
20164 #else
20165 # include <assert.h>
20166 #endif
20167
20168 #undef $ac_func
20169
20170 /* Override any GCC internal prototype to avoid an error.
20171 Use char because int might match the return type of a GCC
20172 builtin and then its argument prototype would still apply. */
20173 #ifdef __cplusplus
20174 extern "C"
20175 #endif
20176 char $ac_func ();
20177 /* The GNU C library defines this for functions which it implements
20178 to always fail with ENOSYS. Some functions are actually named
20179 something starting with __ and the normal name is an alias. */
20180 #if defined __stub_$ac_func || defined __stub___$ac_func
20181 choke me
20182 #endif
20183
20184 int
20185 main ()
20186 {
20187 return $ac_func ();
20188 ;
20189 return 0;
20190 }
20191 _ACEOF
20192 rm -f conftest.$ac_objext conftest$ac_exeext
20193 if { (ac_try="$ac_link"
20194 case "(($ac_try" in
20195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20196 *) ac_try_echo=$ac_try;;
20197 esac
20198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20199 $as_echo "$ac_try_echo") >&5
20200 (eval "$ac_link") 2>conftest.er1
20201 ac_status=$?
20202 grep -v '^ *+' conftest.er1 >conftest.err
20203 rm -f conftest.er1
20204 cat conftest.err >&5
20205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); } && {
20207 test -z "$ac_c_werror_flag" ||
20208 test ! -s conftest.err
20209 } && test -s conftest$ac_exeext && {
20210 test "$cross_compiling" = yes ||
20211 $as_test_x conftest$ac_exeext
20212 }; then
20213 eval "$as_ac_var=yes"
20214 else
20215 $as_echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20217
20218 eval "$as_ac_var=no"
20219 fi
20220
20221 rm -rf conftest.dSYM
20222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20223 conftest$ac_exeext conftest.$ac_ext
20224 fi
20225 ac_res=`eval 'as_val=${'$as_ac_var'}
20226 $as_echo "$as_val"'`
20227 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20228 $as_echo "$ac_res" >&6; }
20229 if test `eval 'as_val=${'$as_ac_var'}
20230 $as_echo "$as_val"'` = yes; then
20231 cat >>confdefs.h <<_ACEOF
20232 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20233 _ACEOF
20234
20235 else
20236 GETOPT_H=getopt.h
20237 fi
20238 done
20239
20240 fi
20241
20242 if test -z "$GETOPT_H"; then
20243 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20244 $as_echo_n "checking whether optreset is declared... " >&6; }
20245 if test "${ac_cv_have_decl_optreset+set}" = set; then
20246 $as_echo_n "(cached) " >&6
20247 else
20248 cat >conftest.$ac_ext <<_ACEOF
20249 /* confdefs.h. */
20250 _ACEOF
20251 cat confdefs.h >>conftest.$ac_ext
20252 cat >>conftest.$ac_ext <<_ACEOF
20253 /* end confdefs.h. */
20254 #include <getopt.h>
20255
20256 int
20257 main ()
20258 {
20259 #ifndef optreset
20260 (void) optreset;
20261 #endif
20262
20263 ;
20264 return 0;
20265 }
20266 _ACEOF
20267 rm -f conftest.$ac_objext
20268 if { (ac_try="$ac_compile"
20269 case "(($ac_try" in
20270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20271 *) ac_try_echo=$ac_try;;
20272 esac
20273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20274 $as_echo "$ac_try_echo") >&5
20275 (eval "$ac_compile") 2>conftest.er1
20276 ac_status=$?
20277 grep -v '^ *+' conftest.er1 >conftest.err
20278 rm -f conftest.er1
20279 cat conftest.err >&5
20280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); } && {
20282 test -z "$ac_c_werror_flag" ||
20283 test ! -s conftest.err
20284 } && test -s conftest.$ac_objext; then
20285 ac_cv_have_decl_optreset=yes
20286 else
20287 $as_echo "$as_me: failed program was:" >&5
20288 sed 's/^/| /' conftest.$ac_ext >&5
20289
20290 ac_cv_have_decl_optreset=no
20291 fi
20292
20293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20294 fi
20295 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20296 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20297 if test $ac_cv_have_decl_optreset = yes; then
20298 GETOPT_H=getopt.h
20299 fi
20300
20301 fi
20302
20303 if test -z "$GETOPT_H"; then
20304 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20305 $as_echo_n "checking for working GNU getopt function... " >&6; }
20306 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20307 $as_echo_n "(cached) " >&6
20308 else
20309 if test "$cross_compiling" = yes; then
20310 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20311 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20312 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20313 $as_echo_n "(cached) " >&6
20314 else
20315 cat >conftest.$ac_ext <<_ACEOF
20316 /* confdefs.h. */
20317 _ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20321 #include <getopt.h>
20322
20323 int
20324 main ()
20325 {
20326 #ifndef getopt_clip
20327 (void) getopt_clip;
20328 #endif
20329
20330 ;
20331 return 0;
20332 }
20333 _ACEOF
20334 rm -f conftest.$ac_objext
20335 if { (ac_try="$ac_compile"
20336 case "(($ac_try" in
20337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338 *) ac_try_echo=$ac_try;;
20339 esac
20340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20341 $as_echo "$ac_try_echo") >&5
20342 (eval "$ac_compile") 2>conftest.er1
20343 ac_status=$?
20344 grep -v '^ *+' conftest.er1 >conftest.err
20345 rm -f conftest.er1
20346 cat conftest.err >&5
20347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); } && {
20349 test -z "$ac_c_werror_flag" ||
20350 test ! -s conftest.err
20351 } && test -s conftest.$ac_objext; then
20352 ac_cv_have_decl_getopt_clip=yes
20353 else
20354 $as_echo "$as_me: failed program was:" >&5
20355 sed 's/^/| /' conftest.$ac_ext >&5
20356
20357 ac_cv_have_decl_getopt_clip=no
20358 fi
20359
20360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20361 fi
20362 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20363 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20364 if test $ac_cv_have_decl_getopt_clip = yes; then
20365 gl_cv_func_gnu_getopt=no
20366 else
20367 gl_cv_func_gnu_getopt=yes
20368 fi
20369
20370 else
20371 cat >conftest.$ac_ext <<_ACEOF
20372 /* confdefs.h. */
20373 _ACEOF
20374 cat confdefs.h >>conftest.$ac_ext
20375 cat >>conftest.$ac_ext <<_ACEOF
20376 /* end confdefs.h. */
20377 #include <getopt.h>
20378 int
20379 main ()
20380 {
20381
20382 char *myargv[3];
20383 myargv[0] = "conftest";
20384 myargv[1] = "-+";
20385 myargv[2] = 0;
20386 return getopt (2, myargv, "+a") != '?';
20387
20388 ;
20389 return 0;
20390 }
20391 _ACEOF
20392 rm -f conftest$ac_exeext
20393 if { (ac_try="$ac_link"
20394 case "(($ac_try" in
20395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20396 *) ac_try_echo=$ac_try;;
20397 esac
20398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20399 $as_echo "$ac_try_echo") >&5
20400 (eval "$ac_link") 2>&5
20401 ac_status=$?
20402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20404 { (case "(($ac_try" in
20405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20406 *) ac_try_echo=$ac_try;;
20407 esac
20408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20409 $as_echo "$ac_try_echo") >&5
20410 (eval "$ac_try") 2>&5
20411 ac_status=$?
20412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }; }; then
20414 gl_cv_func_gnu_getopt=yes
20415 else
20416 $as_echo "$as_me: program exited with status $ac_status" >&5
20417 $as_echo "$as_me: failed program was:" >&5
20418 sed 's/^/| /' conftest.$ac_ext >&5
20419
20420 ( exit $ac_status )
20421 gl_cv_func_gnu_getopt=no
20422 fi
20423 rm -rf conftest.dSYM
20424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20425 fi
20426
20427
20428 fi
20429 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20430 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20431 if test "$gl_cv_func_gnu_getopt" = "no"; then
20432 GETOPT_H=getopt.h
20433 fi
20434 fi
20435
20436
20437
20438 if test -n "$GETOPT_H"; then
20439
20440
20441 GETOPT_H=getopt.h
20442
20443 cat >>confdefs.h <<\_ACEOF
20444 #define __GETOPT_PREFIX rpl_
20445 _ACEOF
20446
20447
20448
20449 :
20450 GETOPTOBJS='getopt.o getopt1.o'
20451
20452 fi
20453
20454
20455
20456
20457 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20458 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20459 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20460 $as_echo_n "(cached) " >&6
20461 else
20462 # Use it with a single arg.
20463 cat >conftest.$ac_ext <<_ACEOF
20464 /* confdefs.h. */
20465 _ACEOF
20466 cat confdefs.h >>conftest.$ac_ext
20467 cat >>conftest.$ac_ext <<_ACEOF
20468 /* end confdefs.h. */
20469 $ac_includes_default
20470 int
20471 main ()
20472 {
20473 getpgrp (0);
20474 ;
20475 return 0;
20476 }
20477 _ACEOF
20478 rm -f conftest.$ac_objext
20479 if { (ac_try="$ac_compile"
20480 case "(($ac_try" in
20481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20482 *) ac_try_echo=$ac_try;;
20483 esac
20484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20485 $as_echo "$ac_try_echo") >&5
20486 (eval "$ac_compile") 2>conftest.er1
20487 ac_status=$?
20488 grep -v '^ *+' conftest.er1 >conftest.err
20489 rm -f conftest.er1
20490 cat conftest.err >&5
20491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); } && {
20493 test -z "$ac_c_werror_flag" ||
20494 test ! -s conftest.err
20495 } && test -s conftest.$ac_objext; then
20496 ac_cv_func_getpgrp_void=no
20497 else
20498 $as_echo "$as_me: failed program was:" >&5
20499 sed 's/^/| /' conftest.$ac_ext >&5
20500
20501 ac_cv_func_getpgrp_void=yes
20502 fi
20503
20504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20505
20506 fi
20507 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20508 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20509 if test $ac_cv_func_getpgrp_void = yes; then
20510
20511 cat >>confdefs.h <<\_ACEOF
20512 #define GETPGRP_VOID 1
20513 _ACEOF
20514
20515 fi
20516
20517
20518
20519 for ac_func in strftime
20520 do
20521 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20522 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20523 $as_echo_n "checking for $ac_func... " >&6; }
20524 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20525 $as_echo_n "(cached) " >&6
20526 else
20527 cat >conftest.$ac_ext <<_ACEOF
20528 /* confdefs.h. */
20529 _ACEOF
20530 cat confdefs.h >>conftest.$ac_ext
20531 cat >>conftest.$ac_ext <<_ACEOF
20532 /* end confdefs.h. */
20533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20535 #define $ac_func innocuous_$ac_func
20536
20537 /* System header to define __stub macros and hopefully few prototypes,
20538 which can conflict with char $ac_func (); below.
20539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20540 <limits.h> exists even on freestanding compilers. */
20541
20542 #ifdef __STDC__
20543 # include <limits.h>
20544 #else
20545 # include <assert.h>
20546 #endif
20547
20548 #undef $ac_func
20549
20550 /* Override any GCC internal prototype to avoid an error.
20551 Use char because int might match the return type of a GCC
20552 builtin and then its argument prototype would still apply. */
20553 #ifdef __cplusplus
20554 extern "C"
20555 #endif
20556 char $ac_func ();
20557 /* The GNU C library defines this for functions which it implements
20558 to always fail with ENOSYS. Some functions are actually named
20559 something starting with __ and the normal name is an alias. */
20560 #if defined __stub_$ac_func || defined __stub___$ac_func
20561 choke me
20562 #endif
20563
20564 int
20565 main ()
20566 {
20567 return $ac_func ();
20568 ;
20569 return 0;
20570 }
20571 _ACEOF
20572 rm -f conftest.$ac_objext conftest$ac_exeext
20573 if { (ac_try="$ac_link"
20574 case "(($ac_try" in
20575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576 *) ac_try_echo=$ac_try;;
20577 esac
20578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20579 $as_echo "$ac_try_echo") >&5
20580 (eval "$ac_link") 2>conftest.er1
20581 ac_status=$?
20582 grep -v '^ *+' conftest.er1 >conftest.err
20583 rm -f conftest.er1
20584 cat conftest.err >&5
20585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); } && {
20587 test -z "$ac_c_werror_flag" ||
20588 test ! -s conftest.err
20589 } && test -s conftest$ac_exeext && {
20590 test "$cross_compiling" = yes ||
20591 $as_test_x conftest$ac_exeext
20592 }; then
20593 eval "$as_ac_var=yes"
20594 else
20595 $as_echo "$as_me: failed program was:" >&5
20596 sed 's/^/| /' conftest.$ac_ext >&5
20597
20598 eval "$as_ac_var=no"
20599 fi
20600
20601 rm -rf conftest.dSYM
20602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20603 conftest$ac_exeext conftest.$ac_ext
20604 fi
20605 ac_res=`eval 'as_val=${'$as_ac_var'}
20606 $as_echo "$as_val"'`
20607 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20608 $as_echo "$ac_res" >&6; }
20609 if test `eval 'as_val=${'$as_ac_var'}
20610 $as_echo "$as_val"'` = yes; then
20611 cat >>confdefs.h <<_ACEOF
20612 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20613 _ACEOF
20614
20615 else
20616 # strftime is in -lintl on SCO UNIX.
20617 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20618 $as_echo_n "checking for strftime in -lintl... " >&6; }
20619 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20620 $as_echo_n "(cached) " >&6
20621 else
20622 ac_check_lib_save_LIBS=$LIBS
20623 LIBS="-lintl $LIBS"
20624 cat >conftest.$ac_ext <<_ACEOF
20625 /* confdefs.h. */
20626 _ACEOF
20627 cat confdefs.h >>conftest.$ac_ext
20628 cat >>conftest.$ac_ext <<_ACEOF
20629 /* end confdefs.h. */
20630
20631 /* Override any GCC internal prototype to avoid an error.
20632 Use char because int might match the return type of a GCC
20633 builtin and then its argument prototype would still apply. */
20634 #ifdef __cplusplus
20635 extern "C"
20636 #endif
20637 char strftime ();
20638 int
20639 main ()
20640 {
20641 return strftime ();
20642 ;
20643 return 0;
20644 }
20645 _ACEOF
20646 rm -f conftest.$ac_objext conftest$ac_exeext
20647 if { (ac_try="$ac_link"
20648 case "(($ac_try" in
20649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650 *) ac_try_echo=$ac_try;;
20651 esac
20652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20653 $as_echo "$ac_try_echo") >&5
20654 (eval "$ac_link") 2>conftest.er1
20655 ac_status=$?
20656 grep -v '^ *+' conftest.er1 >conftest.err
20657 rm -f conftest.er1
20658 cat conftest.err >&5
20659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); } && {
20661 test -z "$ac_c_werror_flag" ||
20662 test ! -s conftest.err
20663 } && test -s conftest$ac_exeext && {
20664 test "$cross_compiling" = yes ||
20665 $as_test_x conftest$ac_exeext
20666 }; then
20667 ac_cv_lib_intl_strftime=yes
20668 else
20669 $as_echo "$as_me: failed program was:" >&5
20670 sed 's/^/| /' conftest.$ac_ext >&5
20671
20672 ac_cv_lib_intl_strftime=no
20673 fi
20674
20675 rm -rf conftest.dSYM
20676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20677 conftest$ac_exeext conftest.$ac_ext
20678 LIBS=$ac_check_lib_save_LIBS
20679 fi
20680 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20681 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20682 if test $ac_cv_lib_intl_strftime = yes; then
20683 cat >>confdefs.h <<\_ACEOF
20684 #define HAVE_STRFTIME 1
20685 _ACEOF
20686
20687 LIBS="-lintl $LIBS"
20688 fi
20689
20690 fi
20691 done
20692
20693
20694 # UNIX98 PTYs.
20695
20696 for ac_func in grantpt
20697 do
20698 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20699 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20700 $as_echo_n "checking for $ac_func... " >&6; }
20701 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20702 $as_echo_n "(cached) " >&6
20703 else
20704 cat >conftest.$ac_ext <<_ACEOF
20705 /* confdefs.h. */
20706 _ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h. */
20710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20712 #define $ac_func innocuous_$ac_func
20713
20714 /* System header to define __stub macros and hopefully few prototypes,
20715 which can conflict with char $ac_func (); below.
20716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20717 <limits.h> exists even on freestanding compilers. */
20718
20719 #ifdef __STDC__
20720 # include <limits.h>
20721 #else
20722 # include <assert.h>
20723 #endif
20724
20725 #undef $ac_func
20726
20727 /* Override any GCC internal prototype to avoid an error.
20728 Use char because int might match the return type of a GCC
20729 builtin and then its argument prototype would still apply. */
20730 #ifdef __cplusplus
20731 extern "C"
20732 #endif
20733 char $ac_func ();
20734 /* The GNU C library defines this for functions which it implements
20735 to always fail with ENOSYS. Some functions are actually named
20736 something starting with __ and the normal name is an alias. */
20737 #if defined __stub_$ac_func || defined __stub___$ac_func
20738 choke me
20739 #endif
20740
20741 int
20742 main ()
20743 {
20744 return $ac_func ();
20745 ;
20746 return 0;
20747 }
20748 _ACEOF
20749 rm -f conftest.$ac_objext conftest$ac_exeext
20750 if { (ac_try="$ac_link"
20751 case "(($ac_try" in
20752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20753 *) ac_try_echo=$ac_try;;
20754 esac
20755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20756 $as_echo "$ac_try_echo") >&5
20757 (eval "$ac_link") 2>conftest.er1
20758 ac_status=$?
20759 grep -v '^ *+' conftest.er1 >conftest.err
20760 rm -f conftest.er1
20761 cat conftest.err >&5
20762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); } && {
20764 test -z "$ac_c_werror_flag" ||
20765 test ! -s conftest.err
20766 } && test -s conftest$ac_exeext && {
20767 test "$cross_compiling" = yes ||
20768 $as_test_x conftest$ac_exeext
20769 }; then
20770 eval "$as_ac_var=yes"
20771 else
20772 $as_echo "$as_me: failed program was:" >&5
20773 sed 's/^/| /' conftest.$ac_ext >&5
20774
20775 eval "$as_ac_var=no"
20776 fi
20777
20778 rm -rf conftest.dSYM
20779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20780 conftest$ac_exeext conftest.$ac_ext
20781 fi
20782 ac_res=`eval 'as_val=${'$as_ac_var'}
20783 $as_echo "$as_val"'`
20784 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20785 $as_echo "$ac_res" >&6; }
20786 if test `eval 'as_val=${'$as_ac_var'}
20787 $as_echo "$as_val"'` = yes; then
20788 cat >>confdefs.h <<_ACEOF
20789 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20790 _ACEOF
20791
20792 fi
20793 done
20794
20795
20796 # PTY-related GNU extensions.
20797
20798 for ac_func in getpt
20799 do
20800 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20801 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20802 $as_echo_n "checking for $ac_func... " >&6; }
20803 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20804 $as_echo_n "(cached) " >&6
20805 else
20806 cat >conftest.$ac_ext <<_ACEOF
20807 /* confdefs.h. */
20808 _ACEOF
20809 cat confdefs.h >>conftest.$ac_ext
20810 cat >>conftest.$ac_ext <<_ACEOF
20811 /* end confdefs.h. */
20812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20814 #define $ac_func innocuous_$ac_func
20815
20816 /* System header to define __stub macros and hopefully few prototypes,
20817 which can conflict with char $ac_func (); below.
20818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20819 <limits.h> exists even on freestanding compilers. */
20820
20821 #ifdef __STDC__
20822 # include <limits.h>
20823 #else
20824 # include <assert.h>
20825 #endif
20826
20827 #undef $ac_func
20828
20829 /* Override any GCC internal prototype to avoid an error.
20830 Use char because int might match the return type of a GCC
20831 builtin and then its argument prototype would still apply. */
20832 #ifdef __cplusplus
20833 extern "C"
20834 #endif
20835 char $ac_func ();
20836 /* The GNU C library defines this for functions which it implements
20837 to always fail with ENOSYS. Some functions are actually named
20838 something starting with __ and the normal name is an alias. */
20839 #if defined __stub_$ac_func || defined __stub___$ac_func
20840 choke me
20841 #endif
20842
20843 int
20844 main ()
20845 {
20846 return $ac_func ();
20847 ;
20848 return 0;
20849 }
20850 _ACEOF
20851 rm -f conftest.$ac_objext conftest$ac_exeext
20852 if { (ac_try="$ac_link"
20853 case "(($ac_try" in
20854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20855 *) ac_try_echo=$ac_try;;
20856 esac
20857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20858 $as_echo "$ac_try_echo") >&5
20859 (eval "$ac_link") 2>conftest.er1
20860 ac_status=$?
20861 grep -v '^ *+' conftest.er1 >conftest.err
20862 rm -f conftest.er1
20863 cat conftest.err >&5
20864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); } && {
20866 test -z "$ac_c_werror_flag" ||
20867 test ! -s conftest.err
20868 } && test -s conftest$ac_exeext && {
20869 test "$cross_compiling" = yes ||
20870 $as_test_x conftest$ac_exeext
20871 }; then
20872 eval "$as_ac_var=yes"
20873 else
20874 $as_echo "$as_me: failed program was:" >&5
20875 sed 's/^/| /' conftest.$ac_ext >&5
20876
20877 eval "$as_ac_var=no"
20878 fi
20879
20880 rm -rf conftest.dSYM
20881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20882 conftest$ac_exeext conftest.$ac_ext
20883 fi
20884 ac_res=`eval 'as_val=${'$as_ac_var'}
20885 $as_echo "$as_val"'`
20886 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20887 $as_echo "$ac_res" >&6; }
20888 if test `eval 'as_val=${'$as_ac_var'}
20889 $as_echo "$as_val"'` = yes; then
20890 cat >>confdefs.h <<_ACEOF
20891 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20892 _ACEOF
20893
20894 fi
20895 done
20896
20897
20898 # Check this now, so that we will NOT find the above functions in ncurses.
20899 # That is because we have not set up to link ncurses in lib-src.
20900 # It's better to believe a function is not available
20901 # than to expect to find it in ncurses.
20902
20903 { $as_echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
20904 $as_echo_n "checking for tparm in -lncurses... " >&6; }
20905 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20906 $as_echo_n "(cached) " >&6
20907 else
20908 ac_check_lib_save_LIBS=$LIBS
20909 LIBS="-lncurses $LIBS"
20910 cat >conftest.$ac_ext <<_ACEOF
20911 /* confdefs.h. */
20912 _ACEOF
20913 cat confdefs.h >>conftest.$ac_ext
20914 cat >>conftest.$ac_ext <<_ACEOF
20915 /* end confdefs.h. */
20916
20917 /* Override any GCC internal prototype to avoid an error.
20918 Use char because int might match the return type of a GCC
20919 builtin and then its argument prototype would still apply. */
20920 #ifdef __cplusplus
20921 extern "C"
20922 #endif
20923 char tparm ();
20924 int
20925 main ()
20926 {
20927 return tparm ();
20928 ;
20929 return 0;
20930 }
20931 _ACEOF
20932 rm -f conftest.$ac_objext conftest$ac_exeext
20933 if { (ac_try="$ac_link"
20934 case "(($ac_try" in
20935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20937 esac
20938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20939 $as_echo "$ac_try_echo") >&5
20940 (eval "$ac_link") 2>conftest.er1
20941 ac_status=$?
20942 grep -v '^ *+' conftest.er1 >conftest.err
20943 rm -f conftest.er1
20944 cat conftest.err >&5
20945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); } && {
20947 test -z "$ac_c_werror_flag" ||
20948 test ! -s conftest.err
20949 } && test -s conftest$ac_exeext && {
20950 test "$cross_compiling" = yes ||
20951 $as_test_x conftest$ac_exeext
20952 }; then
20953 ac_cv_lib_ncurses_tparm=yes
20954 else
20955 $as_echo "$as_me: failed program was:" >&5
20956 sed 's/^/| /' conftest.$ac_ext >&5
20957
20958 ac_cv_lib_ncurses_tparm=no
20959 fi
20960
20961 rm -rf conftest.dSYM
20962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20963 conftest$ac_exeext conftest.$ac_ext
20964 LIBS=$ac_check_lib_save_LIBS
20965 fi
20966 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
20967 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
20968 if test $ac_cv_lib_ncurses_tparm = yes; then
20969 cat >>confdefs.h <<_ACEOF
20970 #define HAVE_LIBNCURSES 1
20971 _ACEOF
20972
20973 LIBS="-lncurses $LIBS"
20974
20975 fi
20976
20977
20978 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20979
20980 resolv=no
20981 cat >conftest.$ac_ext <<_ACEOF
20982 /* confdefs.h. */
20983 _ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h. */
20987 #include <netinet/in.h>
20988 #include <arpa/nameser.h>
20989 #include <resolv.h>
20990 int
20991 main ()
20992 {
20993 return res_init();
20994 ;
20995 return 0;
20996 }
20997 _ACEOF
20998 rm -f conftest.$ac_objext conftest$ac_exeext
20999 if { (ac_try="$ac_link"
21000 case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21003 esac
21004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21005 $as_echo "$ac_try_echo") >&5
21006 (eval "$ac_link") 2>conftest.er1
21007 ac_status=$?
21008 grep -v '^ *+' conftest.er1 >conftest.err
21009 rm -f conftest.er1
21010 cat conftest.err >&5
21011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); } && {
21013 test -z "$ac_c_werror_flag" ||
21014 test ! -s conftest.err
21015 } && test -s conftest$ac_exeext && {
21016 test "$cross_compiling" = yes ||
21017 $as_test_x conftest$ac_exeext
21018 }; then
21019 have_res_init=yes
21020 else
21021 $as_echo "$as_me: failed program was:" >&5
21022 sed 's/^/| /' conftest.$ac_ext >&5
21023
21024 have_res_init=no
21025 fi
21026
21027 rm -rf conftest.dSYM
21028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21029 conftest$ac_exeext conftest.$ac_ext
21030 if test "$have_res_init" = no; then
21031 OLIBS="$LIBS"
21032 LIBS="$LIBS -lresolv"
21033 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21034 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21035 cat >conftest.$ac_ext <<_ACEOF
21036 /* confdefs.h. */
21037 _ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h. */
21041 #include <netinet/in.h>
21042 #include <arpa/nameser.h>
21043 #include <resolv.h>
21044 int
21045 main ()
21046 {
21047 return res_init();
21048 ;
21049 return 0;
21050 }
21051 _ACEOF
21052 rm -f conftest.$ac_objext conftest$ac_exeext
21053 if { (ac_try="$ac_link"
21054 case "(($ac_try" in
21055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056 *) ac_try_echo=$ac_try;;
21057 esac
21058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21059 $as_echo "$ac_try_echo") >&5
21060 (eval "$ac_link") 2>conftest.er1
21061 ac_status=$?
21062 grep -v '^ *+' conftest.er1 >conftest.err
21063 rm -f conftest.er1
21064 cat conftest.err >&5
21065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); } && {
21067 test -z "$ac_c_werror_flag" ||
21068 test ! -s conftest.err
21069 } && test -s conftest$ac_exeext && {
21070 test "$cross_compiling" = yes ||
21071 $as_test_x conftest$ac_exeext
21072 }; then
21073 have_res_init=yes
21074 else
21075 $as_echo "$as_me: failed program was:" >&5
21076 sed 's/^/| /' conftest.$ac_ext >&5
21077
21078 have_res_init=no
21079 fi
21080
21081 rm -rf conftest.dSYM
21082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21083 conftest$ac_exeext conftest.$ac_ext
21084 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21085 $as_echo "$have_res_init" >&6; }
21086 if test "$have_res_init" = yes ; then
21087 resolv=yes
21088 fi
21089 LIBS="$OLIBS"
21090 fi
21091
21092 if test "$have_res_init" = yes; then
21093
21094 cat >>confdefs.h <<\_ACEOF
21095 #define HAVE_RES_INIT 1
21096 _ACEOF
21097
21098 fi
21099
21100 # Do we need the Hesiod library to provide the support routines?
21101 if test "$with_hesiod" != no ; then
21102 # Don't set $LIBS here -- see comments above.
21103 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21104 $as_echo_n "checking for res_send... " >&6; }
21105 if test "${ac_cv_func_res_send+set}" = set; then
21106 $as_echo_n "(cached) " >&6
21107 else
21108 cat >conftest.$ac_ext <<_ACEOF
21109 /* confdefs.h. */
21110 _ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h. */
21114 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21116 #define res_send innocuous_res_send
21117
21118 /* System header to define __stub macros and hopefully few prototypes,
21119 which can conflict with char res_send (); below.
21120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21121 <limits.h> exists even on freestanding compilers. */
21122
21123 #ifdef __STDC__
21124 # include <limits.h>
21125 #else
21126 # include <assert.h>
21127 #endif
21128
21129 #undef res_send
21130
21131 /* Override any GCC internal prototype to avoid an error.
21132 Use char because int might match the return type of a GCC
21133 builtin and then its argument prototype would still apply. */
21134 #ifdef __cplusplus
21135 extern "C"
21136 #endif
21137 char res_send ();
21138 /* The GNU C library defines this for functions which it implements
21139 to always fail with ENOSYS. Some functions are actually named
21140 something starting with __ and the normal name is an alias. */
21141 #if defined __stub_res_send || defined __stub___res_send
21142 choke me
21143 #endif
21144
21145 int
21146 main ()
21147 {
21148 return res_send ();
21149 ;
21150 return 0;
21151 }
21152 _ACEOF
21153 rm -f conftest.$ac_objext conftest$ac_exeext
21154 if { (ac_try="$ac_link"
21155 case "(($ac_try" in
21156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21157 *) ac_try_echo=$ac_try;;
21158 esac
21159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21160 $as_echo "$ac_try_echo") >&5
21161 (eval "$ac_link") 2>conftest.er1
21162 ac_status=$?
21163 grep -v '^ *+' conftest.er1 >conftest.err
21164 rm -f conftest.er1
21165 cat conftest.err >&5
21166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167 (exit $ac_status); } && {
21168 test -z "$ac_c_werror_flag" ||
21169 test ! -s conftest.err
21170 } && test -s conftest$ac_exeext && {
21171 test "$cross_compiling" = yes ||
21172 $as_test_x conftest$ac_exeext
21173 }; then
21174 ac_cv_func_res_send=yes
21175 else
21176 $as_echo "$as_me: failed program was:" >&5
21177 sed 's/^/| /' conftest.$ac_ext >&5
21178
21179 ac_cv_func_res_send=no
21180 fi
21181
21182 rm -rf conftest.dSYM
21183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21184 conftest$ac_exeext conftest.$ac_ext
21185 fi
21186 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21187 $as_echo "$ac_cv_func_res_send" >&6; }
21188 if test $ac_cv_func_res_send = yes; then
21189 :
21190 else
21191 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21192 $as_echo_n "checking for __res_send... " >&6; }
21193 if test "${ac_cv_func___res_send+set}" = set; then
21194 $as_echo_n "(cached) " >&6
21195 else
21196 cat >conftest.$ac_ext <<_ACEOF
21197 /* confdefs.h. */
21198 _ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h. */
21202 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21204 #define __res_send innocuous___res_send
21205
21206 /* System header to define __stub macros and hopefully few prototypes,
21207 which can conflict with char __res_send (); below.
21208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21209 <limits.h> exists even on freestanding compilers. */
21210
21211 #ifdef __STDC__
21212 # include <limits.h>
21213 #else
21214 # include <assert.h>
21215 #endif
21216
21217 #undef __res_send
21218
21219 /* Override any GCC internal prototype to avoid an error.
21220 Use char because int might match the return type of a GCC
21221 builtin and then its argument prototype would still apply. */
21222 #ifdef __cplusplus
21223 extern "C"
21224 #endif
21225 char __res_send ();
21226 /* The GNU C library defines this for functions which it implements
21227 to always fail with ENOSYS. Some functions are actually named
21228 something starting with __ and the normal name is an alias. */
21229 #if defined __stub___res_send || defined __stub_____res_send
21230 choke me
21231 #endif
21232
21233 int
21234 main ()
21235 {
21236 return __res_send ();
21237 ;
21238 return 0;
21239 }
21240 _ACEOF
21241 rm -f conftest.$ac_objext conftest$ac_exeext
21242 if { (ac_try="$ac_link"
21243 case "(($ac_try" in
21244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21245 *) ac_try_echo=$ac_try;;
21246 esac
21247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21248 $as_echo "$ac_try_echo") >&5
21249 (eval "$ac_link") 2>conftest.er1
21250 ac_status=$?
21251 grep -v '^ *+' conftest.er1 >conftest.err
21252 rm -f conftest.er1
21253 cat conftest.err >&5
21254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); } && {
21256 test -z "$ac_c_werror_flag" ||
21257 test ! -s conftest.err
21258 } && test -s conftest$ac_exeext && {
21259 test "$cross_compiling" = yes ||
21260 $as_test_x conftest$ac_exeext
21261 }; then
21262 ac_cv_func___res_send=yes
21263 else
21264 $as_echo "$as_me: failed program was:" >&5
21265 sed 's/^/| /' conftest.$ac_ext >&5
21266
21267 ac_cv_func___res_send=no
21268 fi
21269
21270 rm -rf conftest.dSYM
21271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21272 conftest$ac_exeext conftest.$ac_ext
21273 fi
21274 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21275 $as_echo "$ac_cv_func___res_send" >&6; }
21276 if test $ac_cv_func___res_send = yes; then
21277 :
21278 else
21279 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21280 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21281 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21282 $as_echo_n "(cached) " >&6
21283 else
21284 ac_check_lib_save_LIBS=$LIBS
21285 LIBS="-lresolv $LIBS"
21286 cat >conftest.$ac_ext <<_ACEOF
21287 /* confdefs.h. */
21288 _ACEOF
21289 cat confdefs.h >>conftest.$ac_ext
21290 cat >>conftest.$ac_ext <<_ACEOF
21291 /* end confdefs.h. */
21292
21293 /* Override any GCC internal prototype to avoid an error.
21294 Use char because int might match the return type of a GCC
21295 builtin and then its argument prototype would still apply. */
21296 #ifdef __cplusplus
21297 extern "C"
21298 #endif
21299 char res_send ();
21300 int
21301 main ()
21302 {
21303 return res_send ();
21304 ;
21305 return 0;
21306 }
21307 _ACEOF
21308 rm -f conftest.$ac_objext conftest$ac_exeext
21309 if { (ac_try="$ac_link"
21310 case "(($ac_try" in
21311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21312 *) ac_try_echo=$ac_try;;
21313 esac
21314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21315 $as_echo "$ac_try_echo") >&5
21316 (eval "$ac_link") 2>conftest.er1
21317 ac_status=$?
21318 grep -v '^ *+' conftest.er1 >conftest.err
21319 rm -f conftest.er1
21320 cat conftest.err >&5
21321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); } && {
21323 test -z "$ac_c_werror_flag" ||
21324 test ! -s conftest.err
21325 } && test -s conftest$ac_exeext && {
21326 test "$cross_compiling" = yes ||
21327 $as_test_x conftest$ac_exeext
21328 }; then
21329 ac_cv_lib_resolv_res_send=yes
21330 else
21331 $as_echo "$as_me: failed program was:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21333
21334 ac_cv_lib_resolv_res_send=no
21335 fi
21336
21337 rm -rf conftest.dSYM
21338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21339 conftest$ac_exeext conftest.$ac_ext
21340 LIBS=$ac_check_lib_save_LIBS
21341 fi
21342 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21343 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21344 if test $ac_cv_lib_resolv_res_send = yes; then
21345 resolv=yes
21346 else
21347 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21348 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21349 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21350 $as_echo_n "(cached) " >&6
21351 else
21352 ac_check_lib_save_LIBS=$LIBS
21353 LIBS="-lresolv $LIBS"
21354 cat >conftest.$ac_ext <<_ACEOF
21355 /* confdefs.h. */
21356 _ACEOF
21357 cat confdefs.h >>conftest.$ac_ext
21358 cat >>conftest.$ac_ext <<_ACEOF
21359 /* end confdefs.h. */
21360
21361 /* Override any GCC internal prototype to avoid an error.
21362 Use char because int might match the return type of a GCC
21363 builtin and then its argument prototype would still apply. */
21364 #ifdef __cplusplus
21365 extern "C"
21366 #endif
21367 char __res_send ();
21368 int
21369 main ()
21370 {
21371 return __res_send ();
21372 ;
21373 return 0;
21374 }
21375 _ACEOF
21376 rm -f conftest.$ac_objext conftest$ac_exeext
21377 if { (ac_try="$ac_link"
21378 case "(($ac_try" in
21379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380 *) ac_try_echo=$ac_try;;
21381 esac
21382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21383 $as_echo "$ac_try_echo") >&5
21384 (eval "$ac_link") 2>conftest.er1
21385 ac_status=$?
21386 grep -v '^ *+' conftest.er1 >conftest.err
21387 rm -f conftest.er1
21388 cat conftest.err >&5
21389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); } && {
21391 test -z "$ac_c_werror_flag" ||
21392 test ! -s conftest.err
21393 } && test -s conftest$ac_exeext && {
21394 test "$cross_compiling" = yes ||
21395 $as_test_x conftest$ac_exeext
21396 }; then
21397 ac_cv_lib_resolv___res_send=yes
21398 else
21399 $as_echo "$as_me: failed program was:" >&5
21400 sed 's/^/| /' conftest.$ac_ext >&5
21401
21402 ac_cv_lib_resolv___res_send=no
21403 fi
21404
21405 rm -rf conftest.dSYM
21406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21407 conftest$ac_exeext conftest.$ac_ext
21408 LIBS=$ac_check_lib_save_LIBS
21409 fi
21410 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21411 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21412 if test $ac_cv_lib_resolv___res_send = yes; then
21413 resolv=yes
21414 fi
21415
21416 fi
21417
21418 fi
21419
21420 fi
21421
21422 if test "$resolv" = yes ; then
21423 RESOLVLIB=-lresolv
21424 else
21425 RESOLVLIB=
21426 fi
21427 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21428 $as_echo_n "checking for hes_getmailhost... " >&6; }
21429 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21430 $as_echo_n "(cached) " >&6
21431 else
21432 cat >conftest.$ac_ext <<_ACEOF
21433 /* confdefs.h. */
21434 _ACEOF
21435 cat confdefs.h >>conftest.$ac_ext
21436 cat >>conftest.$ac_ext <<_ACEOF
21437 /* end confdefs.h. */
21438 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21440 #define hes_getmailhost innocuous_hes_getmailhost
21441
21442 /* System header to define __stub macros and hopefully few prototypes,
21443 which can conflict with char hes_getmailhost (); below.
21444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21445 <limits.h> exists even on freestanding compilers. */
21446
21447 #ifdef __STDC__
21448 # include <limits.h>
21449 #else
21450 # include <assert.h>
21451 #endif
21452
21453 #undef hes_getmailhost
21454
21455 /* Override any GCC internal prototype to avoid an error.
21456 Use char because int might match the return type of a GCC
21457 builtin and then its argument prototype would still apply. */
21458 #ifdef __cplusplus
21459 extern "C"
21460 #endif
21461 char hes_getmailhost ();
21462 /* The GNU C library defines this for functions which it implements
21463 to always fail with ENOSYS. Some functions are actually named
21464 something starting with __ and the normal name is an alias. */
21465 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21466 choke me
21467 #endif
21468
21469 int
21470 main ()
21471 {
21472 return hes_getmailhost ();
21473 ;
21474 return 0;
21475 }
21476 _ACEOF
21477 rm -f conftest.$ac_objext conftest$ac_exeext
21478 if { (ac_try="$ac_link"
21479 case "(($ac_try" in
21480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21481 *) ac_try_echo=$ac_try;;
21482 esac
21483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21484 $as_echo "$ac_try_echo") >&5
21485 (eval "$ac_link") 2>conftest.er1
21486 ac_status=$?
21487 grep -v '^ *+' conftest.er1 >conftest.err
21488 rm -f conftest.er1
21489 cat conftest.err >&5
21490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); } && {
21492 test -z "$ac_c_werror_flag" ||
21493 test ! -s conftest.err
21494 } && test -s conftest$ac_exeext && {
21495 test "$cross_compiling" = yes ||
21496 $as_test_x conftest$ac_exeext
21497 }; then
21498 ac_cv_func_hes_getmailhost=yes
21499 else
21500 $as_echo "$as_me: failed program was:" >&5
21501 sed 's/^/| /' conftest.$ac_ext >&5
21502
21503 ac_cv_func_hes_getmailhost=no
21504 fi
21505
21506 rm -rf conftest.dSYM
21507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21508 conftest$ac_exeext conftest.$ac_ext
21509 fi
21510 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21511 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21512 if test $ac_cv_func_hes_getmailhost = yes; then
21513 :
21514 else
21515 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21516 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21517 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21518 $as_echo_n "(cached) " >&6
21519 else
21520 ac_check_lib_save_LIBS=$LIBS
21521 LIBS="-lhesiod $RESOLVLIB $LIBS"
21522 cat >conftest.$ac_ext <<_ACEOF
21523 /* confdefs.h. */
21524 _ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h. */
21528
21529 /* Override any GCC internal prototype to avoid an error.
21530 Use char because int might match the return type of a GCC
21531 builtin and then its argument prototype would still apply. */
21532 #ifdef __cplusplus
21533 extern "C"
21534 #endif
21535 char hes_getmailhost ();
21536 int
21537 main ()
21538 {
21539 return hes_getmailhost ();
21540 ;
21541 return 0;
21542 }
21543 _ACEOF
21544 rm -f conftest.$ac_objext conftest$ac_exeext
21545 if { (ac_try="$ac_link"
21546 case "(($ac_try" in
21547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21548 *) ac_try_echo=$ac_try;;
21549 esac
21550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21551 $as_echo "$ac_try_echo") >&5
21552 (eval "$ac_link") 2>conftest.er1
21553 ac_status=$?
21554 grep -v '^ *+' conftest.er1 >conftest.err
21555 rm -f conftest.er1
21556 cat conftest.err >&5
21557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); } && {
21559 test -z "$ac_c_werror_flag" ||
21560 test ! -s conftest.err
21561 } && test -s conftest$ac_exeext && {
21562 test "$cross_compiling" = yes ||
21563 $as_test_x conftest$ac_exeext
21564 }; then
21565 ac_cv_lib_hesiod_hes_getmailhost=yes
21566 else
21567 $as_echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21569
21570 ac_cv_lib_hesiod_hes_getmailhost=no
21571 fi
21572
21573 rm -rf conftest.dSYM
21574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21575 conftest$ac_exeext conftest.$ac_ext
21576 LIBS=$ac_check_lib_save_LIBS
21577 fi
21578 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21579 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21580 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21581
21582 cat >>confdefs.h <<\_ACEOF
21583 #define HAVE_LIBHESIOD 1
21584 _ACEOF
21585
21586 else
21587 :
21588 fi
21589
21590 fi
21591
21592 fi
21593
21594 # Do we need libresolv (due to res_init or Hesiod)?
21595 if test "$resolv" = yes ; then
21596
21597 cat >>confdefs.h <<\_ACEOF
21598 #define HAVE_LIBRESOLV 1
21599 _ACEOF
21600
21601 fi
21602
21603 # These tell us which Kerberos-related libraries to use.
21604 if test "${with_kerberos}" != no; then
21605
21606 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21607 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21608 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21609 $as_echo_n "(cached) " >&6
21610 else
21611 ac_check_lib_save_LIBS=$LIBS
21612 LIBS="-lcom_err $LIBS"
21613 cat >conftest.$ac_ext <<_ACEOF
21614 /* confdefs.h. */
21615 _ACEOF
21616 cat confdefs.h >>conftest.$ac_ext
21617 cat >>conftest.$ac_ext <<_ACEOF
21618 /* end confdefs.h. */
21619
21620 /* Override any GCC internal prototype to avoid an error.
21621 Use char because int might match the return type of a GCC
21622 builtin and then its argument prototype would still apply. */
21623 #ifdef __cplusplus
21624 extern "C"
21625 #endif
21626 char com_err ();
21627 int
21628 main ()
21629 {
21630 return com_err ();
21631 ;
21632 return 0;
21633 }
21634 _ACEOF
21635 rm -f conftest.$ac_objext conftest$ac_exeext
21636 if { (ac_try="$ac_link"
21637 case "(($ac_try" in
21638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639 *) ac_try_echo=$ac_try;;
21640 esac
21641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21642 $as_echo "$ac_try_echo") >&5
21643 (eval "$ac_link") 2>conftest.er1
21644 ac_status=$?
21645 grep -v '^ *+' conftest.er1 >conftest.err
21646 rm -f conftest.er1
21647 cat conftest.err >&5
21648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); } && {
21650 test -z "$ac_c_werror_flag" ||
21651 test ! -s conftest.err
21652 } && test -s conftest$ac_exeext && {
21653 test "$cross_compiling" = yes ||
21654 $as_test_x conftest$ac_exeext
21655 }; then
21656 ac_cv_lib_com_err_com_err=yes
21657 else
21658 $as_echo "$as_me: failed program was:" >&5
21659 sed 's/^/| /' conftest.$ac_ext >&5
21660
21661 ac_cv_lib_com_err_com_err=no
21662 fi
21663
21664 rm -rf conftest.dSYM
21665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21666 conftest$ac_exeext conftest.$ac_ext
21667 LIBS=$ac_check_lib_save_LIBS
21668 fi
21669 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21670 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21671 if test $ac_cv_lib_com_err_com_err = yes; then
21672 cat >>confdefs.h <<_ACEOF
21673 #define HAVE_LIBCOM_ERR 1
21674 _ACEOF
21675
21676 LIBS="-lcom_err $LIBS"
21677
21678 fi
21679
21680
21681 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21682 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21683 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21684 $as_echo_n "(cached) " >&6
21685 else
21686 ac_check_lib_save_LIBS=$LIBS
21687 LIBS="-lk5crypto $LIBS"
21688 cat >conftest.$ac_ext <<_ACEOF
21689 /* confdefs.h. */
21690 _ACEOF
21691 cat confdefs.h >>conftest.$ac_ext
21692 cat >>conftest.$ac_ext <<_ACEOF
21693 /* end confdefs.h. */
21694
21695 /* Override any GCC internal prototype to avoid an error.
21696 Use char because int might match the return type of a GCC
21697 builtin and then its argument prototype would still apply. */
21698 #ifdef __cplusplus
21699 extern "C"
21700 #endif
21701 char mit_des_cbc_encrypt ();
21702 int
21703 main ()
21704 {
21705 return mit_des_cbc_encrypt ();
21706 ;
21707 return 0;
21708 }
21709 _ACEOF
21710 rm -f conftest.$ac_objext conftest$ac_exeext
21711 if { (ac_try="$ac_link"
21712 case "(($ac_try" in
21713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21714 *) ac_try_echo=$ac_try;;
21715 esac
21716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21717 $as_echo "$ac_try_echo") >&5
21718 (eval "$ac_link") 2>conftest.er1
21719 ac_status=$?
21720 grep -v '^ *+' conftest.er1 >conftest.err
21721 rm -f conftest.er1
21722 cat conftest.err >&5
21723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); } && {
21725 test -z "$ac_c_werror_flag" ||
21726 test ! -s conftest.err
21727 } && test -s conftest$ac_exeext && {
21728 test "$cross_compiling" = yes ||
21729 $as_test_x conftest$ac_exeext
21730 }; then
21731 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21732 else
21733 $as_echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.$ac_ext >&5
21735
21736 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21737 fi
21738
21739 rm -rf conftest.dSYM
21740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21741 conftest$ac_exeext conftest.$ac_ext
21742 LIBS=$ac_check_lib_save_LIBS
21743 fi
21744 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21745 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21746 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
21747 cat >>confdefs.h <<_ACEOF
21748 #define HAVE_LIBK5CRYPTO 1
21749 _ACEOF
21750
21751 LIBS="-lk5crypto $LIBS"
21752
21753 fi
21754
21755
21756 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21757 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21758 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21759 $as_echo_n "(cached) " >&6
21760 else
21761 ac_check_lib_save_LIBS=$LIBS
21762 LIBS="-lcrypto $LIBS"
21763 cat >conftest.$ac_ext <<_ACEOF
21764 /* confdefs.h. */
21765 _ACEOF
21766 cat confdefs.h >>conftest.$ac_ext
21767 cat >>conftest.$ac_ext <<_ACEOF
21768 /* end confdefs.h. */
21769
21770 /* Override any GCC internal prototype to avoid an error.
21771 Use char because int might match the return type of a GCC
21772 builtin and then its argument prototype would still apply. */
21773 #ifdef __cplusplus
21774 extern "C"
21775 #endif
21776 char mit_des_cbc_encrypt ();
21777 int
21778 main ()
21779 {
21780 return mit_des_cbc_encrypt ();
21781 ;
21782 return 0;
21783 }
21784 _ACEOF
21785 rm -f conftest.$ac_objext conftest$ac_exeext
21786 if { (ac_try="$ac_link"
21787 case "(($ac_try" in
21788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21789 *) ac_try_echo=$ac_try;;
21790 esac
21791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21792 $as_echo "$ac_try_echo") >&5
21793 (eval "$ac_link") 2>conftest.er1
21794 ac_status=$?
21795 grep -v '^ *+' conftest.er1 >conftest.err
21796 rm -f conftest.er1
21797 cat conftest.err >&5
21798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); } && {
21800 test -z "$ac_c_werror_flag" ||
21801 test ! -s conftest.err
21802 } && test -s conftest$ac_exeext && {
21803 test "$cross_compiling" = yes ||
21804 $as_test_x conftest$ac_exeext
21805 }; then
21806 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21807 else
21808 $as_echo "$as_me: failed program was:" >&5
21809 sed 's/^/| /' conftest.$ac_ext >&5
21810
21811 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21812 fi
21813
21814 rm -rf conftest.dSYM
21815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21816 conftest$ac_exeext conftest.$ac_ext
21817 LIBS=$ac_check_lib_save_LIBS
21818 fi
21819 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21820 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21821 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
21822 cat >>confdefs.h <<_ACEOF
21823 #define HAVE_LIBCRYPTO 1
21824 _ACEOF
21825
21826 LIBS="-lcrypto $LIBS"
21827
21828 fi
21829
21830
21831 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
21832 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21833 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
21834 $as_echo_n "(cached) " >&6
21835 else
21836 ac_check_lib_save_LIBS=$LIBS
21837 LIBS="-lkrb5 $LIBS"
21838 cat >conftest.$ac_ext <<_ACEOF
21839 /* confdefs.h. */
21840 _ACEOF
21841 cat confdefs.h >>conftest.$ac_ext
21842 cat >>conftest.$ac_ext <<_ACEOF
21843 /* end confdefs.h. */
21844
21845 /* Override any GCC internal prototype to avoid an error.
21846 Use char because int might match the return type of a GCC
21847 builtin and then its argument prototype would still apply. */
21848 #ifdef __cplusplus
21849 extern "C"
21850 #endif
21851 char krb5_init_context ();
21852 int
21853 main ()
21854 {
21855 return krb5_init_context ();
21856 ;
21857 return 0;
21858 }
21859 _ACEOF
21860 rm -f conftest.$ac_objext conftest$ac_exeext
21861 if { (ac_try="$ac_link"
21862 case "(($ac_try" in
21863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21864 *) ac_try_echo=$ac_try;;
21865 esac
21866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21867 $as_echo "$ac_try_echo") >&5
21868 (eval "$ac_link") 2>conftest.er1
21869 ac_status=$?
21870 grep -v '^ *+' conftest.er1 >conftest.err
21871 rm -f conftest.er1
21872 cat conftest.err >&5
21873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874 (exit $ac_status); } && {
21875 test -z "$ac_c_werror_flag" ||
21876 test ! -s conftest.err
21877 } && test -s conftest$ac_exeext && {
21878 test "$cross_compiling" = yes ||
21879 $as_test_x conftest$ac_exeext
21880 }; then
21881 ac_cv_lib_krb5_krb5_init_context=yes
21882 else
21883 $as_echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21885
21886 ac_cv_lib_krb5_krb5_init_context=no
21887 fi
21888
21889 rm -rf conftest.dSYM
21890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21891 conftest$ac_exeext conftest.$ac_ext
21892 LIBS=$ac_check_lib_save_LIBS
21893 fi
21894 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21895 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21896 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
21897 cat >>confdefs.h <<_ACEOF
21898 #define HAVE_LIBKRB5 1
21899 _ACEOF
21900
21901 LIBS="-lkrb5 $LIBS"
21902
21903 fi
21904
21905 if test "${with_kerberos5}" = no; then
21906
21907 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
21908 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21909 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21910 $as_echo_n "(cached) " >&6
21911 else
21912 ac_check_lib_save_LIBS=$LIBS
21913 LIBS="-ldes425 $LIBS"
21914 cat >conftest.$ac_ext <<_ACEOF
21915 /* confdefs.h. */
21916 _ACEOF
21917 cat confdefs.h >>conftest.$ac_ext
21918 cat >>conftest.$ac_ext <<_ACEOF
21919 /* end confdefs.h. */
21920
21921 /* Override any GCC internal prototype to avoid an error.
21922 Use char because int might match the return type of a GCC
21923 builtin and then its argument prototype would still apply. */
21924 #ifdef __cplusplus
21925 extern "C"
21926 #endif
21927 char des_cbc_encrypt ();
21928 int
21929 main ()
21930 {
21931 return des_cbc_encrypt ();
21932 ;
21933 return 0;
21934 }
21935 _ACEOF
21936 rm -f conftest.$ac_objext conftest$ac_exeext
21937 if { (ac_try="$ac_link"
21938 case "(($ac_try" in
21939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21940 *) ac_try_echo=$ac_try;;
21941 esac
21942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21943 $as_echo "$ac_try_echo") >&5
21944 (eval "$ac_link") 2>conftest.er1
21945 ac_status=$?
21946 grep -v '^ *+' conftest.er1 >conftest.err
21947 rm -f conftest.er1
21948 cat conftest.err >&5
21949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); } && {
21951 test -z "$ac_c_werror_flag" ||
21952 test ! -s conftest.err
21953 } && test -s conftest$ac_exeext && {
21954 test "$cross_compiling" = yes ||
21955 $as_test_x conftest$ac_exeext
21956 }; then
21957 ac_cv_lib_des425_des_cbc_encrypt=yes
21958 else
21959 $as_echo "$as_me: failed program was:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21961
21962 ac_cv_lib_des425_des_cbc_encrypt=no
21963 fi
21964
21965 rm -rf conftest.dSYM
21966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21967 conftest$ac_exeext conftest.$ac_ext
21968 LIBS=$ac_check_lib_save_LIBS
21969 fi
21970 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21971 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21972 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21973 cat >>confdefs.h <<_ACEOF
21974 #define HAVE_LIBDES425 1
21975 _ACEOF
21976
21977 LIBS="-ldes425 $LIBS"
21978
21979 else
21980
21981 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
21982 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
21983 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21984 $as_echo_n "(cached) " >&6
21985 else
21986 ac_check_lib_save_LIBS=$LIBS
21987 LIBS="-ldes $LIBS"
21988 cat >conftest.$ac_ext <<_ACEOF
21989 /* confdefs.h. */
21990 _ACEOF
21991 cat confdefs.h >>conftest.$ac_ext
21992 cat >>conftest.$ac_ext <<_ACEOF
21993 /* end confdefs.h. */
21994
21995 /* Override any GCC internal prototype to avoid an error.
21996 Use char because int might match the return type of a GCC
21997 builtin and then its argument prototype would still apply. */
21998 #ifdef __cplusplus
21999 extern "C"
22000 #endif
22001 char des_cbc_encrypt ();
22002 int
22003 main ()
22004 {
22005 return des_cbc_encrypt ();
22006 ;
22007 return 0;
22008 }
22009 _ACEOF
22010 rm -f conftest.$ac_objext conftest$ac_exeext
22011 if { (ac_try="$ac_link"
22012 case "(($ac_try" in
22013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22014 *) ac_try_echo=$ac_try;;
22015 esac
22016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22017 $as_echo "$ac_try_echo") >&5
22018 (eval "$ac_link") 2>conftest.er1
22019 ac_status=$?
22020 grep -v '^ *+' conftest.er1 >conftest.err
22021 rm -f conftest.er1
22022 cat conftest.err >&5
22023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024 (exit $ac_status); } && {
22025 test -z "$ac_c_werror_flag" ||
22026 test ! -s conftest.err
22027 } && test -s conftest$ac_exeext && {
22028 test "$cross_compiling" = yes ||
22029 $as_test_x conftest$ac_exeext
22030 }; then
22031 ac_cv_lib_des_des_cbc_encrypt=yes
22032 else
22033 $as_echo "$as_me: failed program was:" >&5
22034 sed 's/^/| /' conftest.$ac_ext >&5
22035
22036 ac_cv_lib_des_des_cbc_encrypt=no
22037 fi
22038
22039 rm -rf conftest.dSYM
22040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22041 conftest$ac_exeext conftest.$ac_ext
22042 LIBS=$ac_check_lib_save_LIBS
22043 fi
22044 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22045 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22046 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22047 cat >>confdefs.h <<_ACEOF
22048 #define HAVE_LIBDES 1
22049 _ACEOF
22050
22051 LIBS="-ldes $LIBS"
22052
22053 fi
22054
22055 fi
22056
22057
22058 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22059 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22060 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22061 $as_echo_n "(cached) " >&6
22062 else
22063 ac_check_lib_save_LIBS=$LIBS
22064 LIBS="-lkrb4 $LIBS"
22065 cat >conftest.$ac_ext <<_ACEOF
22066 /* confdefs.h. */
22067 _ACEOF
22068 cat confdefs.h >>conftest.$ac_ext
22069 cat >>conftest.$ac_ext <<_ACEOF
22070 /* end confdefs.h. */
22071
22072 /* Override any GCC internal prototype to avoid an error.
22073 Use char because int might match the return type of a GCC
22074 builtin and then its argument prototype would still apply. */
22075 #ifdef __cplusplus
22076 extern "C"
22077 #endif
22078 char krb_get_cred ();
22079 int
22080 main ()
22081 {
22082 return krb_get_cred ();
22083 ;
22084 return 0;
22085 }
22086 _ACEOF
22087 rm -f conftest.$ac_objext conftest$ac_exeext
22088 if { (ac_try="$ac_link"
22089 case "(($ac_try" in
22090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091 *) ac_try_echo=$ac_try;;
22092 esac
22093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22094 $as_echo "$ac_try_echo") >&5
22095 (eval "$ac_link") 2>conftest.er1
22096 ac_status=$?
22097 grep -v '^ *+' conftest.er1 >conftest.err
22098 rm -f conftest.er1
22099 cat conftest.err >&5
22100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); } && {
22102 test -z "$ac_c_werror_flag" ||
22103 test ! -s conftest.err
22104 } && test -s conftest$ac_exeext && {
22105 test "$cross_compiling" = yes ||
22106 $as_test_x conftest$ac_exeext
22107 }; then
22108 ac_cv_lib_krb4_krb_get_cred=yes
22109 else
22110 $as_echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22112
22113 ac_cv_lib_krb4_krb_get_cred=no
22114 fi
22115
22116 rm -rf conftest.dSYM
22117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22118 conftest$ac_exeext conftest.$ac_ext
22119 LIBS=$ac_check_lib_save_LIBS
22120 fi
22121 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22122 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22123 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22124 cat >>confdefs.h <<_ACEOF
22125 #define HAVE_LIBKRB4 1
22126 _ACEOF
22127
22128 LIBS="-lkrb4 $LIBS"
22129
22130 else
22131
22132 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22133 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22134 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22135 $as_echo_n "(cached) " >&6
22136 else
22137 ac_check_lib_save_LIBS=$LIBS
22138 LIBS="-lkrb $LIBS"
22139 cat >conftest.$ac_ext <<_ACEOF
22140 /* confdefs.h. */
22141 _ACEOF
22142 cat confdefs.h >>conftest.$ac_ext
22143 cat >>conftest.$ac_ext <<_ACEOF
22144 /* end confdefs.h. */
22145
22146 /* Override any GCC internal prototype to avoid an error.
22147 Use char because int might match the return type of a GCC
22148 builtin and then its argument prototype would still apply. */
22149 #ifdef __cplusplus
22150 extern "C"
22151 #endif
22152 char krb_get_cred ();
22153 int
22154 main ()
22155 {
22156 return krb_get_cred ();
22157 ;
22158 return 0;
22159 }
22160 _ACEOF
22161 rm -f conftest.$ac_objext conftest$ac_exeext
22162 if { (ac_try="$ac_link"
22163 case "(($ac_try" in
22164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22165 *) ac_try_echo=$ac_try;;
22166 esac
22167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22168 $as_echo "$ac_try_echo") >&5
22169 (eval "$ac_link") 2>conftest.er1
22170 ac_status=$?
22171 grep -v '^ *+' conftest.er1 >conftest.err
22172 rm -f conftest.er1
22173 cat conftest.err >&5
22174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); } && {
22176 test -z "$ac_c_werror_flag" ||
22177 test ! -s conftest.err
22178 } && test -s conftest$ac_exeext && {
22179 test "$cross_compiling" = yes ||
22180 $as_test_x conftest$ac_exeext
22181 }; then
22182 ac_cv_lib_krb_krb_get_cred=yes
22183 else
22184 $as_echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22186
22187 ac_cv_lib_krb_krb_get_cred=no
22188 fi
22189
22190 rm -rf conftest.dSYM
22191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22192 conftest$ac_exeext conftest.$ac_ext
22193 LIBS=$ac_check_lib_save_LIBS
22194 fi
22195 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22196 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22197 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22198 cat >>confdefs.h <<_ACEOF
22199 #define HAVE_LIBKRB 1
22200 _ACEOF
22201
22202 LIBS="-lkrb $LIBS"
22203
22204 fi
22205
22206 fi
22207
22208 fi
22209
22210 if test "${with_kerberos5}" != no; then
22211
22212 for ac_header in krb5.h
22213 do
22214 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22216 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22217 $as_echo_n "checking for $ac_header... " >&6; }
22218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22219 $as_echo_n "(cached) " >&6
22220 fi
22221 ac_res=`eval 'as_val=${'$as_ac_Header'}
22222 $as_echo "$as_val"'`
22223 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22224 $as_echo "$ac_res" >&6; }
22225 else
22226 # Is the header compilable?
22227 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22228 $as_echo_n "checking $ac_header usability... " >&6; }
22229 cat >conftest.$ac_ext <<_ACEOF
22230 /* confdefs.h. */
22231 _ACEOF
22232 cat confdefs.h >>conftest.$ac_ext
22233 cat >>conftest.$ac_ext <<_ACEOF
22234 /* end confdefs.h. */
22235 $ac_includes_default
22236 #include <$ac_header>
22237 _ACEOF
22238 rm -f conftest.$ac_objext
22239 if { (ac_try="$ac_compile"
22240 case "(($ac_try" in
22241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22242 *) ac_try_echo=$ac_try;;
22243 esac
22244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22245 $as_echo "$ac_try_echo") >&5
22246 (eval "$ac_compile") 2>conftest.er1
22247 ac_status=$?
22248 grep -v '^ *+' conftest.er1 >conftest.err
22249 rm -f conftest.er1
22250 cat conftest.err >&5
22251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); } && {
22253 test -z "$ac_c_werror_flag" ||
22254 test ! -s conftest.err
22255 } && test -s conftest.$ac_objext; then
22256 ac_header_compiler=yes
22257 else
22258 $as_echo "$as_me: failed program was:" >&5
22259 sed 's/^/| /' conftest.$ac_ext >&5
22260
22261 ac_header_compiler=no
22262 fi
22263
22264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22265 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22266 $as_echo "$ac_header_compiler" >&6; }
22267
22268 # Is the header present?
22269 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22270 $as_echo_n "checking $ac_header presence... " >&6; }
22271 cat >conftest.$ac_ext <<_ACEOF
22272 /* confdefs.h. */
22273 _ACEOF
22274 cat confdefs.h >>conftest.$ac_ext
22275 cat >>conftest.$ac_ext <<_ACEOF
22276 /* end confdefs.h. */
22277 #include <$ac_header>
22278 _ACEOF
22279 if { (ac_try="$ac_cpp conftest.$ac_ext"
22280 case "(($ac_try" in
22281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22282 *) ac_try_echo=$ac_try;;
22283 esac
22284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22285 $as_echo "$ac_try_echo") >&5
22286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22287 ac_status=$?
22288 grep -v '^ *+' conftest.er1 >conftest.err
22289 rm -f conftest.er1
22290 cat conftest.err >&5
22291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); } >/dev/null && {
22293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22294 test ! -s conftest.err
22295 }; then
22296 ac_header_preproc=yes
22297 else
22298 $as_echo "$as_me: failed program was:" >&5
22299 sed 's/^/| /' conftest.$ac_ext >&5
22300
22301 ac_header_preproc=no
22302 fi
22303
22304 rm -f conftest.err conftest.$ac_ext
22305 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22306 $as_echo "$ac_header_preproc" >&6; }
22307
22308 # So? What about this header?
22309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22310 yes:no: )
22311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22312 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22314 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22315 ac_header_preproc=yes
22316 ;;
22317 no:yes:* )
22318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22319 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22321 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22323 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22325 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22327 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22329 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22330
22331 ;;
22332 esac
22333 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22334 $as_echo_n "checking for $ac_header... " >&6; }
22335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22336 $as_echo_n "(cached) " >&6
22337 else
22338 eval "$as_ac_Header=\$ac_header_preproc"
22339 fi
22340 ac_res=`eval 'as_val=${'$as_ac_Header'}
22341 $as_echo "$as_val"'`
22342 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22343 $as_echo "$ac_res" >&6; }
22344
22345 fi
22346 if test `eval 'as_val=${'$as_ac_Header'}
22347 $as_echo "$as_val"'` = yes; then
22348 cat >>confdefs.h <<_ACEOF
22349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22350 _ACEOF
22351 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22352 $as_echo_n "checking for krb5_error.text... " >&6; }
22353 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22354 $as_echo_n "(cached) " >&6
22355 else
22356 cat >conftest.$ac_ext <<_ACEOF
22357 /* confdefs.h. */
22358 _ACEOF
22359 cat confdefs.h >>conftest.$ac_ext
22360 cat >>conftest.$ac_ext <<_ACEOF
22361 /* end confdefs.h. */
22362 #include <krb5.h>
22363
22364 int
22365 main ()
22366 {
22367 static krb5_error ac_aggr;
22368 if (ac_aggr.text)
22369 return 0;
22370 ;
22371 return 0;
22372 }
22373 _ACEOF
22374 rm -f conftest.$ac_objext
22375 if { (ac_try="$ac_compile"
22376 case "(($ac_try" in
22377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22378 *) ac_try_echo=$ac_try;;
22379 esac
22380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22381 $as_echo "$ac_try_echo") >&5
22382 (eval "$ac_compile") 2>conftest.er1
22383 ac_status=$?
22384 grep -v '^ *+' conftest.er1 >conftest.err
22385 rm -f conftest.er1
22386 cat conftest.err >&5
22387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388 (exit $ac_status); } && {
22389 test -z "$ac_c_werror_flag" ||
22390 test ! -s conftest.err
22391 } && test -s conftest.$ac_objext; then
22392 ac_cv_member_krb5_error_text=yes
22393 else
22394 $as_echo "$as_me: failed program was:" >&5
22395 sed 's/^/| /' conftest.$ac_ext >&5
22396
22397 cat >conftest.$ac_ext <<_ACEOF
22398 /* confdefs.h. */
22399 _ACEOF
22400 cat confdefs.h >>conftest.$ac_ext
22401 cat >>conftest.$ac_ext <<_ACEOF
22402 /* end confdefs.h. */
22403 #include <krb5.h>
22404
22405 int
22406 main ()
22407 {
22408 static krb5_error ac_aggr;
22409 if (sizeof ac_aggr.text)
22410 return 0;
22411 ;
22412 return 0;
22413 }
22414 _ACEOF
22415 rm -f conftest.$ac_objext
22416 if { (ac_try="$ac_compile"
22417 case "(($ac_try" in
22418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22419 *) ac_try_echo=$ac_try;;
22420 esac
22421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22422 $as_echo "$ac_try_echo") >&5
22423 (eval "$ac_compile") 2>conftest.er1
22424 ac_status=$?
22425 grep -v '^ *+' conftest.er1 >conftest.err
22426 rm -f conftest.er1
22427 cat conftest.err >&5
22428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); } && {
22430 test -z "$ac_c_werror_flag" ||
22431 test ! -s conftest.err
22432 } && test -s conftest.$ac_objext; then
22433 ac_cv_member_krb5_error_text=yes
22434 else
22435 $as_echo "$as_me: failed program was:" >&5
22436 sed 's/^/| /' conftest.$ac_ext >&5
22437
22438 ac_cv_member_krb5_error_text=no
22439 fi
22440
22441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22442 fi
22443
22444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22445 fi
22446 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22447 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22448 if test $ac_cv_member_krb5_error_text = yes; then
22449
22450 cat >>confdefs.h <<_ACEOF
22451 #define HAVE_KRB5_ERROR_TEXT 1
22452 _ACEOF
22453
22454
22455 fi
22456 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22457 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22458 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22459 $as_echo_n "(cached) " >&6
22460 else
22461 cat >conftest.$ac_ext <<_ACEOF
22462 /* confdefs.h. */
22463 _ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h. */
22467 #include <krb5.h>
22468
22469 int
22470 main ()
22471 {
22472 static krb5_error ac_aggr;
22473 if (ac_aggr.e_text)
22474 return 0;
22475 ;
22476 return 0;
22477 }
22478 _ACEOF
22479 rm -f conftest.$ac_objext
22480 if { (ac_try="$ac_compile"
22481 case "(($ac_try" in
22482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22483 *) ac_try_echo=$ac_try;;
22484 esac
22485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22486 $as_echo "$ac_try_echo") >&5
22487 (eval "$ac_compile") 2>conftest.er1
22488 ac_status=$?
22489 grep -v '^ *+' conftest.er1 >conftest.err
22490 rm -f conftest.er1
22491 cat conftest.err >&5
22492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); } && {
22494 test -z "$ac_c_werror_flag" ||
22495 test ! -s conftest.err
22496 } && test -s conftest.$ac_objext; then
22497 ac_cv_member_krb5_error_e_text=yes
22498 else
22499 $as_echo "$as_me: failed program was:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22501
22502 cat >conftest.$ac_ext <<_ACEOF
22503 /* confdefs.h. */
22504 _ACEOF
22505 cat confdefs.h >>conftest.$ac_ext
22506 cat >>conftest.$ac_ext <<_ACEOF
22507 /* end confdefs.h. */
22508 #include <krb5.h>
22509
22510 int
22511 main ()
22512 {
22513 static krb5_error ac_aggr;
22514 if (sizeof ac_aggr.e_text)
22515 return 0;
22516 ;
22517 return 0;
22518 }
22519 _ACEOF
22520 rm -f conftest.$ac_objext
22521 if { (ac_try="$ac_compile"
22522 case "(($ac_try" in
22523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22524 *) ac_try_echo=$ac_try;;
22525 esac
22526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22527 $as_echo "$ac_try_echo") >&5
22528 (eval "$ac_compile") 2>conftest.er1
22529 ac_status=$?
22530 grep -v '^ *+' conftest.er1 >conftest.err
22531 rm -f conftest.er1
22532 cat conftest.err >&5
22533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534 (exit $ac_status); } && {
22535 test -z "$ac_c_werror_flag" ||
22536 test ! -s conftest.err
22537 } && test -s conftest.$ac_objext; then
22538 ac_cv_member_krb5_error_e_text=yes
22539 else
22540 $as_echo "$as_me: failed program was:" >&5
22541 sed 's/^/| /' conftest.$ac_ext >&5
22542
22543 ac_cv_member_krb5_error_e_text=no
22544 fi
22545
22546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22547 fi
22548
22549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22550 fi
22551 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22552 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22553 if test $ac_cv_member_krb5_error_e_text = yes; then
22554
22555 cat >>confdefs.h <<_ACEOF
22556 #define HAVE_KRB5_ERROR_E_TEXT 1
22557 _ACEOF
22558
22559
22560 fi
22561
22562 fi
22563
22564 done
22565
22566 else
22567
22568 for ac_header in des.h
22569 do
22570 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22572 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22573 $as_echo_n "checking for $ac_header... " >&6; }
22574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22575 $as_echo_n "(cached) " >&6
22576 fi
22577 ac_res=`eval 'as_val=${'$as_ac_Header'}
22578 $as_echo "$as_val"'`
22579 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22580 $as_echo "$ac_res" >&6; }
22581 else
22582 # Is the header compilable?
22583 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22584 $as_echo_n "checking $ac_header usability... " >&6; }
22585 cat >conftest.$ac_ext <<_ACEOF
22586 /* confdefs.h. */
22587 _ACEOF
22588 cat confdefs.h >>conftest.$ac_ext
22589 cat >>conftest.$ac_ext <<_ACEOF
22590 /* end confdefs.h. */
22591 $ac_includes_default
22592 #include <$ac_header>
22593 _ACEOF
22594 rm -f conftest.$ac_objext
22595 if { (ac_try="$ac_compile"
22596 case "(($ac_try" in
22597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22598 *) ac_try_echo=$ac_try;;
22599 esac
22600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22601 $as_echo "$ac_try_echo") >&5
22602 (eval "$ac_compile") 2>conftest.er1
22603 ac_status=$?
22604 grep -v '^ *+' conftest.er1 >conftest.err
22605 rm -f conftest.er1
22606 cat conftest.err >&5
22607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); } && {
22609 test -z "$ac_c_werror_flag" ||
22610 test ! -s conftest.err
22611 } && test -s conftest.$ac_objext; then
22612 ac_header_compiler=yes
22613 else
22614 $as_echo "$as_me: failed program was:" >&5
22615 sed 's/^/| /' conftest.$ac_ext >&5
22616
22617 ac_header_compiler=no
22618 fi
22619
22620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22621 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22622 $as_echo "$ac_header_compiler" >&6; }
22623
22624 # Is the header present?
22625 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22626 $as_echo_n "checking $ac_header presence... " >&6; }
22627 cat >conftest.$ac_ext <<_ACEOF
22628 /* confdefs.h. */
22629 _ACEOF
22630 cat confdefs.h >>conftest.$ac_ext
22631 cat >>conftest.$ac_ext <<_ACEOF
22632 /* end confdefs.h. */
22633 #include <$ac_header>
22634 _ACEOF
22635 if { (ac_try="$ac_cpp conftest.$ac_ext"
22636 case "(($ac_try" in
22637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22638 *) ac_try_echo=$ac_try;;
22639 esac
22640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22641 $as_echo "$ac_try_echo") >&5
22642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22643 ac_status=$?
22644 grep -v '^ *+' conftest.er1 >conftest.err
22645 rm -f conftest.er1
22646 cat conftest.err >&5
22647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 (exit $ac_status); } >/dev/null && {
22649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22650 test ! -s conftest.err
22651 }; then
22652 ac_header_preproc=yes
22653 else
22654 $as_echo "$as_me: failed program was:" >&5
22655 sed 's/^/| /' conftest.$ac_ext >&5
22656
22657 ac_header_preproc=no
22658 fi
22659
22660 rm -f conftest.err conftest.$ac_ext
22661 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22662 $as_echo "$ac_header_preproc" >&6; }
22663
22664 # So? What about this header?
22665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22666 yes:no: )
22667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22668 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22670 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22671 ac_header_preproc=yes
22672 ;;
22673 no:yes:* )
22674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22675 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22677 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22679 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22681 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22683 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22685 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22686
22687 ;;
22688 esac
22689 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22690 $as_echo_n "checking for $ac_header... " >&6; }
22691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22692 $as_echo_n "(cached) " >&6
22693 else
22694 eval "$as_ac_Header=\$ac_header_preproc"
22695 fi
22696 ac_res=`eval 'as_val=${'$as_ac_Header'}
22697 $as_echo "$as_val"'`
22698 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22699 $as_echo "$ac_res" >&6; }
22700
22701 fi
22702 if test `eval 'as_val=${'$as_ac_Header'}
22703 $as_echo "$as_val"'` = yes; then
22704 cat >>confdefs.h <<_ACEOF
22705 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22706 _ACEOF
22707
22708 else
22709
22710 for ac_header in kerberosIV/des.h
22711 do
22712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22714 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22715 $as_echo_n "checking for $ac_header... " >&6; }
22716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22717 $as_echo_n "(cached) " >&6
22718 fi
22719 ac_res=`eval 'as_val=${'$as_ac_Header'}
22720 $as_echo "$as_val"'`
22721 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22722 $as_echo "$ac_res" >&6; }
22723 else
22724 # Is the header compilable?
22725 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22726 $as_echo_n "checking $ac_header usability... " >&6; }
22727 cat >conftest.$ac_ext <<_ACEOF
22728 /* confdefs.h. */
22729 _ACEOF
22730 cat confdefs.h >>conftest.$ac_ext
22731 cat >>conftest.$ac_ext <<_ACEOF
22732 /* end confdefs.h. */
22733 $ac_includes_default
22734 #include <$ac_header>
22735 _ACEOF
22736 rm -f conftest.$ac_objext
22737 if { (ac_try="$ac_compile"
22738 case "(($ac_try" in
22739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22740 *) ac_try_echo=$ac_try;;
22741 esac
22742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22743 $as_echo "$ac_try_echo") >&5
22744 (eval "$ac_compile") 2>conftest.er1
22745 ac_status=$?
22746 grep -v '^ *+' conftest.er1 >conftest.err
22747 rm -f conftest.er1
22748 cat conftest.err >&5
22749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); } && {
22751 test -z "$ac_c_werror_flag" ||
22752 test ! -s conftest.err
22753 } && test -s conftest.$ac_objext; then
22754 ac_header_compiler=yes
22755 else
22756 $as_echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22758
22759 ac_header_compiler=no
22760 fi
22761
22762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22763 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22764 $as_echo "$ac_header_compiler" >&6; }
22765
22766 # Is the header present?
22767 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22768 $as_echo_n "checking $ac_header presence... " >&6; }
22769 cat >conftest.$ac_ext <<_ACEOF
22770 /* confdefs.h. */
22771 _ACEOF
22772 cat confdefs.h >>conftest.$ac_ext
22773 cat >>conftest.$ac_ext <<_ACEOF
22774 /* end confdefs.h. */
22775 #include <$ac_header>
22776 _ACEOF
22777 if { (ac_try="$ac_cpp conftest.$ac_ext"
22778 case "(($ac_try" in
22779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22780 *) ac_try_echo=$ac_try;;
22781 esac
22782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22783 $as_echo "$ac_try_echo") >&5
22784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22785 ac_status=$?
22786 grep -v '^ *+' conftest.er1 >conftest.err
22787 rm -f conftest.er1
22788 cat conftest.err >&5
22789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 (exit $ac_status); } >/dev/null && {
22791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22792 test ! -s conftest.err
22793 }; then
22794 ac_header_preproc=yes
22795 else
22796 $as_echo "$as_me: failed program was:" >&5
22797 sed 's/^/| /' conftest.$ac_ext >&5
22798
22799 ac_header_preproc=no
22800 fi
22801
22802 rm -f conftest.err conftest.$ac_ext
22803 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22804 $as_echo "$ac_header_preproc" >&6; }
22805
22806 # So? What about this header?
22807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22808 yes:no: )
22809 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22810 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22811 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22812 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22813 ac_header_preproc=yes
22814 ;;
22815 no:yes:* )
22816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22817 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22819 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22821 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22823 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22824 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22825 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22827 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22828
22829 ;;
22830 esac
22831 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22832 $as_echo_n "checking for $ac_header... " >&6; }
22833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22834 $as_echo_n "(cached) " >&6
22835 else
22836 eval "$as_ac_Header=\$ac_header_preproc"
22837 fi
22838 ac_res=`eval 'as_val=${'$as_ac_Header'}
22839 $as_echo "$as_val"'`
22840 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22841 $as_echo "$ac_res" >&6; }
22842
22843 fi
22844 if test `eval 'as_val=${'$as_ac_Header'}
22845 $as_echo "$as_val"'` = yes; then
22846 cat >>confdefs.h <<_ACEOF
22847 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22848 _ACEOF
22849
22850 else
22851
22852 for ac_header in kerberos/des.h
22853 do
22854 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22856 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22857 $as_echo_n "checking for $ac_header... " >&6; }
22858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22859 $as_echo_n "(cached) " >&6
22860 fi
22861 ac_res=`eval 'as_val=${'$as_ac_Header'}
22862 $as_echo "$as_val"'`
22863 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22864 $as_echo "$ac_res" >&6; }
22865 else
22866 # Is the header compilable?
22867 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22868 $as_echo_n "checking $ac_header usability... " >&6; }
22869 cat >conftest.$ac_ext <<_ACEOF
22870 /* confdefs.h. */
22871 _ACEOF
22872 cat confdefs.h >>conftest.$ac_ext
22873 cat >>conftest.$ac_ext <<_ACEOF
22874 /* end confdefs.h. */
22875 $ac_includes_default
22876 #include <$ac_header>
22877 _ACEOF
22878 rm -f conftest.$ac_objext
22879 if { (ac_try="$ac_compile"
22880 case "(($ac_try" in
22881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22882 *) ac_try_echo=$ac_try;;
22883 esac
22884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22885 $as_echo "$ac_try_echo") >&5
22886 (eval "$ac_compile") 2>conftest.er1
22887 ac_status=$?
22888 grep -v '^ *+' conftest.er1 >conftest.err
22889 rm -f conftest.er1
22890 cat conftest.err >&5
22891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 (exit $ac_status); } && {
22893 test -z "$ac_c_werror_flag" ||
22894 test ! -s conftest.err
22895 } && test -s conftest.$ac_objext; then
22896 ac_header_compiler=yes
22897 else
22898 $as_echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22900
22901 ac_header_compiler=no
22902 fi
22903
22904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22905 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22906 $as_echo "$ac_header_compiler" >&6; }
22907
22908 # Is the header present?
22909 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22910 $as_echo_n "checking $ac_header presence... " >&6; }
22911 cat >conftest.$ac_ext <<_ACEOF
22912 /* confdefs.h. */
22913 _ACEOF
22914 cat confdefs.h >>conftest.$ac_ext
22915 cat >>conftest.$ac_ext <<_ACEOF
22916 /* end confdefs.h. */
22917 #include <$ac_header>
22918 _ACEOF
22919 if { (ac_try="$ac_cpp conftest.$ac_ext"
22920 case "(($ac_try" in
22921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22922 *) ac_try_echo=$ac_try;;
22923 esac
22924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22925 $as_echo "$ac_try_echo") >&5
22926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22927 ac_status=$?
22928 grep -v '^ *+' conftest.er1 >conftest.err
22929 rm -f conftest.er1
22930 cat conftest.err >&5
22931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); } >/dev/null && {
22933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22934 test ! -s conftest.err
22935 }; then
22936 ac_header_preproc=yes
22937 else
22938 $as_echo "$as_me: failed program was:" >&5
22939 sed 's/^/| /' conftest.$ac_ext >&5
22940
22941 ac_header_preproc=no
22942 fi
22943
22944 rm -f conftest.err conftest.$ac_ext
22945 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22946 $as_echo "$ac_header_preproc" >&6; }
22947
22948 # So? What about this header?
22949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22950 yes:no: )
22951 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22952 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22953 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22954 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22955 ac_header_preproc=yes
22956 ;;
22957 no:yes:* )
22958 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22959 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22960 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22961 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22962 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22963 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22965 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22967 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22969 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22970
22971 ;;
22972 esac
22973 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22974 $as_echo_n "checking for $ac_header... " >&6; }
22975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22976 $as_echo_n "(cached) " >&6
22977 else
22978 eval "$as_ac_Header=\$ac_header_preproc"
22979 fi
22980 ac_res=`eval 'as_val=${'$as_ac_Header'}
22981 $as_echo "$as_val"'`
22982 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22983 $as_echo "$ac_res" >&6; }
22984
22985 fi
22986 if test `eval 'as_val=${'$as_ac_Header'}
22987 $as_echo "$as_val"'` = yes; then
22988 cat >>confdefs.h <<_ACEOF
22989 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22990 _ACEOF
22991
22992 fi
22993
22994 done
22995
22996 fi
22997
22998 done
22999
23000 fi
23001
23002 done
23003
23004
23005 for ac_header in krb.h
23006 do
23007 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23009 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23010 $as_echo_n "checking for $ac_header... " >&6; }
23011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23012 $as_echo_n "(cached) " >&6
23013 fi
23014 ac_res=`eval 'as_val=${'$as_ac_Header'}
23015 $as_echo "$as_val"'`
23016 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23017 $as_echo "$ac_res" >&6; }
23018 else
23019 # Is the header compilable?
23020 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23021 $as_echo_n "checking $ac_header usability... " >&6; }
23022 cat >conftest.$ac_ext <<_ACEOF
23023 /* confdefs.h. */
23024 _ACEOF
23025 cat confdefs.h >>conftest.$ac_ext
23026 cat >>conftest.$ac_ext <<_ACEOF
23027 /* end confdefs.h. */
23028 $ac_includes_default
23029 #include <$ac_header>
23030 _ACEOF
23031 rm -f conftest.$ac_objext
23032 if { (ac_try="$ac_compile"
23033 case "(($ac_try" in
23034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23035 *) ac_try_echo=$ac_try;;
23036 esac
23037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23038 $as_echo "$ac_try_echo") >&5
23039 (eval "$ac_compile") 2>conftest.er1
23040 ac_status=$?
23041 grep -v '^ *+' conftest.er1 >conftest.err
23042 rm -f conftest.er1
23043 cat conftest.err >&5
23044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); } && {
23046 test -z "$ac_c_werror_flag" ||
23047 test ! -s conftest.err
23048 } && test -s conftest.$ac_objext; then
23049 ac_header_compiler=yes
23050 else
23051 $as_echo "$as_me: failed program was:" >&5
23052 sed 's/^/| /' conftest.$ac_ext >&5
23053
23054 ac_header_compiler=no
23055 fi
23056
23057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23058 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23059 $as_echo "$ac_header_compiler" >&6; }
23060
23061 # Is the header present?
23062 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23063 $as_echo_n "checking $ac_header presence... " >&6; }
23064 cat >conftest.$ac_ext <<_ACEOF
23065 /* confdefs.h. */
23066 _ACEOF
23067 cat confdefs.h >>conftest.$ac_ext
23068 cat >>conftest.$ac_ext <<_ACEOF
23069 /* end confdefs.h. */
23070 #include <$ac_header>
23071 _ACEOF
23072 if { (ac_try="$ac_cpp conftest.$ac_ext"
23073 case "(($ac_try" in
23074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23075 *) ac_try_echo=$ac_try;;
23076 esac
23077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23078 $as_echo "$ac_try_echo") >&5
23079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23080 ac_status=$?
23081 grep -v '^ *+' conftest.er1 >conftest.err
23082 rm -f conftest.er1
23083 cat conftest.err >&5
23084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); } >/dev/null && {
23086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23087 test ! -s conftest.err
23088 }; then
23089 ac_header_preproc=yes
23090 else
23091 $as_echo "$as_me: failed program was:" >&5
23092 sed 's/^/| /' conftest.$ac_ext >&5
23093
23094 ac_header_preproc=no
23095 fi
23096
23097 rm -f conftest.err conftest.$ac_ext
23098 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23099 $as_echo "$ac_header_preproc" >&6; }
23100
23101 # So? What about this header?
23102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23103 yes:no: )
23104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23105 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23107 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23108 ac_header_preproc=yes
23109 ;;
23110 no:yes:* )
23111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23112 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23114 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23116 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23118 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23120 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23122 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23123
23124 ;;
23125 esac
23126 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23127 $as_echo_n "checking for $ac_header... " >&6; }
23128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23129 $as_echo_n "(cached) " >&6
23130 else
23131 eval "$as_ac_Header=\$ac_header_preproc"
23132 fi
23133 ac_res=`eval 'as_val=${'$as_ac_Header'}
23134 $as_echo "$as_val"'`
23135 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23136 $as_echo "$ac_res" >&6; }
23137
23138 fi
23139 if test `eval 'as_val=${'$as_ac_Header'}
23140 $as_echo "$as_val"'` = yes; then
23141 cat >>confdefs.h <<_ACEOF
23142 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23143 _ACEOF
23144
23145 else
23146
23147 for ac_header in kerberosIV/krb.h
23148 do
23149 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23151 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23152 $as_echo_n "checking for $ac_header... " >&6; }
23153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23154 $as_echo_n "(cached) " >&6
23155 fi
23156 ac_res=`eval 'as_val=${'$as_ac_Header'}
23157 $as_echo "$as_val"'`
23158 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23159 $as_echo "$ac_res" >&6; }
23160 else
23161 # Is the header compilable?
23162 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23163 $as_echo_n "checking $ac_header usability... " >&6; }
23164 cat >conftest.$ac_ext <<_ACEOF
23165 /* confdefs.h. */
23166 _ACEOF
23167 cat confdefs.h >>conftest.$ac_ext
23168 cat >>conftest.$ac_ext <<_ACEOF
23169 /* end confdefs.h. */
23170 $ac_includes_default
23171 #include <$ac_header>
23172 _ACEOF
23173 rm -f conftest.$ac_objext
23174 if { (ac_try="$ac_compile"
23175 case "(($ac_try" in
23176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23177 *) ac_try_echo=$ac_try;;
23178 esac
23179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23180 $as_echo "$ac_try_echo") >&5
23181 (eval "$ac_compile") 2>conftest.er1
23182 ac_status=$?
23183 grep -v '^ *+' conftest.er1 >conftest.err
23184 rm -f conftest.er1
23185 cat conftest.err >&5
23186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187 (exit $ac_status); } && {
23188 test -z "$ac_c_werror_flag" ||
23189 test ! -s conftest.err
23190 } && test -s conftest.$ac_objext; then
23191 ac_header_compiler=yes
23192 else
23193 $as_echo "$as_me: failed program was:" >&5
23194 sed 's/^/| /' conftest.$ac_ext >&5
23195
23196 ac_header_compiler=no
23197 fi
23198
23199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23200 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23201 $as_echo "$ac_header_compiler" >&6; }
23202
23203 # Is the header present?
23204 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23205 $as_echo_n "checking $ac_header presence... " >&6; }
23206 cat >conftest.$ac_ext <<_ACEOF
23207 /* confdefs.h. */
23208 _ACEOF
23209 cat confdefs.h >>conftest.$ac_ext
23210 cat >>conftest.$ac_ext <<_ACEOF
23211 /* end confdefs.h. */
23212 #include <$ac_header>
23213 _ACEOF
23214 if { (ac_try="$ac_cpp conftest.$ac_ext"
23215 case "(($ac_try" in
23216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23217 *) ac_try_echo=$ac_try;;
23218 esac
23219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23220 $as_echo "$ac_try_echo") >&5
23221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23222 ac_status=$?
23223 grep -v '^ *+' conftest.er1 >conftest.err
23224 rm -f conftest.er1
23225 cat conftest.err >&5
23226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); } >/dev/null && {
23228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23229 test ! -s conftest.err
23230 }; then
23231 ac_header_preproc=yes
23232 else
23233 $as_echo "$as_me: failed program was:" >&5
23234 sed 's/^/| /' conftest.$ac_ext >&5
23235
23236 ac_header_preproc=no
23237 fi
23238
23239 rm -f conftest.err conftest.$ac_ext
23240 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23241 $as_echo "$ac_header_preproc" >&6; }
23242
23243 # So? What about this header?
23244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23245 yes:no: )
23246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23247 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23249 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23250 ac_header_preproc=yes
23251 ;;
23252 no:yes:* )
23253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23254 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23256 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23258 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23260 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23262 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23264 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23265
23266 ;;
23267 esac
23268 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23269 $as_echo_n "checking for $ac_header... " >&6; }
23270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23271 $as_echo_n "(cached) " >&6
23272 else
23273 eval "$as_ac_Header=\$ac_header_preproc"
23274 fi
23275 ac_res=`eval 'as_val=${'$as_ac_Header'}
23276 $as_echo "$as_val"'`
23277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23278 $as_echo "$ac_res" >&6; }
23279
23280 fi
23281 if test `eval 'as_val=${'$as_ac_Header'}
23282 $as_echo "$as_val"'` = yes; then
23283 cat >>confdefs.h <<_ACEOF
23284 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23285 _ACEOF
23286
23287 else
23288
23289 for ac_header in kerberos/krb.h
23290 do
23291 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23293 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23294 $as_echo_n "checking for $ac_header... " >&6; }
23295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23296 $as_echo_n "(cached) " >&6
23297 fi
23298 ac_res=`eval 'as_val=${'$as_ac_Header'}
23299 $as_echo "$as_val"'`
23300 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23301 $as_echo "$ac_res" >&6; }
23302 else
23303 # Is the header compilable?
23304 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23305 $as_echo_n "checking $ac_header usability... " >&6; }
23306 cat >conftest.$ac_ext <<_ACEOF
23307 /* confdefs.h. */
23308 _ACEOF
23309 cat confdefs.h >>conftest.$ac_ext
23310 cat >>conftest.$ac_ext <<_ACEOF
23311 /* end confdefs.h. */
23312 $ac_includes_default
23313 #include <$ac_header>
23314 _ACEOF
23315 rm -f conftest.$ac_objext
23316 if { (ac_try="$ac_compile"
23317 case "(($ac_try" in
23318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23319 *) ac_try_echo=$ac_try;;
23320 esac
23321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23322 $as_echo "$ac_try_echo") >&5
23323 (eval "$ac_compile") 2>conftest.er1
23324 ac_status=$?
23325 grep -v '^ *+' conftest.er1 >conftest.err
23326 rm -f conftest.er1
23327 cat conftest.err >&5
23328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329 (exit $ac_status); } && {
23330 test -z "$ac_c_werror_flag" ||
23331 test ! -s conftest.err
23332 } && test -s conftest.$ac_objext; then
23333 ac_header_compiler=yes
23334 else
23335 $as_echo "$as_me: failed program was:" >&5
23336 sed 's/^/| /' conftest.$ac_ext >&5
23337
23338 ac_header_compiler=no
23339 fi
23340
23341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23342 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23343 $as_echo "$ac_header_compiler" >&6; }
23344
23345 # Is the header present?
23346 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23347 $as_echo_n "checking $ac_header presence... " >&6; }
23348 cat >conftest.$ac_ext <<_ACEOF
23349 /* confdefs.h. */
23350 _ACEOF
23351 cat confdefs.h >>conftest.$ac_ext
23352 cat >>conftest.$ac_ext <<_ACEOF
23353 /* end confdefs.h. */
23354 #include <$ac_header>
23355 _ACEOF
23356 if { (ac_try="$ac_cpp conftest.$ac_ext"
23357 case "(($ac_try" in
23358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23359 *) ac_try_echo=$ac_try;;
23360 esac
23361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23362 $as_echo "$ac_try_echo") >&5
23363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23364 ac_status=$?
23365 grep -v '^ *+' conftest.er1 >conftest.err
23366 rm -f conftest.er1
23367 cat conftest.err >&5
23368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23369 (exit $ac_status); } >/dev/null && {
23370 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23371 test ! -s conftest.err
23372 }; then
23373 ac_header_preproc=yes
23374 else
23375 $as_echo "$as_me: failed program was:" >&5
23376 sed 's/^/| /' conftest.$ac_ext >&5
23377
23378 ac_header_preproc=no
23379 fi
23380
23381 rm -f conftest.err conftest.$ac_ext
23382 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23383 $as_echo "$ac_header_preproc" >&6; }
23384
23385 # So? What about this header?
23386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23387 yes:no: )
23388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23389 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23391 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23392 ac_header_preproc=yes
23393 ;;
23394 no:yes:* )
23395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23396 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23398 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23400 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23402 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23404 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23406 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23407
23408 ;;
23409 esac
23410 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23411 $as_echo_n "checking for $ac_header... " >&6; }
23412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23413 $as_echo_n "(cached) " >&6
23414 else
23415 eval "$as_ac_Header=\$ac_header_preproc"
23416 fi
23417 ac_res=`eval 'as_val=${'$as_ac_Header'}
23418 $as_echo "$as_val"'`
23419 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23420 $as_echo "$ac_res" >&6; }
23421
23422 fi
23423 if test `eval 'as_val=${'$as_ac_Header'}
23424 $as_echo "$as_val"'` = yes; then
23425 cat >>confdefs.h <<_ACEOF
23426 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23427 _ACEOF
23428
23429 fi
23430
23431 done
23432
23433 fi
23434
23435 done
23436
23437 fi
23438
23439 done
23440
23441 fi
23442
23443 for ac_header in com_err.h
23444 do
23445 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23447 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23448 $as_echo_n "checking for $ac_header... " >&6; }
23449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23450 $as_echo_n "(cached) " >&6
23451 fi
23452 ac_res=`eval 'as_val=${'$as_ac_Header'}
23453 $as_echo "$as_val"'`
23454 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23455 $as_echo "$ac_res" >&6; }
23456 else
23457 # Is the header compilable?
23458 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23459 $as_echo_n "checking $ac_header usability... " >&6; }
23460 cat >conftest.$ac_ext <<_ACEOF
23461 /* confdefs.h. */
23462 _ACEOF
23463 cat confdefs.h >>conftest.$ac_ext
23464 cat >>conftest.$ac_ext <<_ACEOF
23465 /* end confdefs.h. */
23466 $ac_includes_default
23467 #include <$ac_header>
23468 _ACEOF
23469 rm -f conftest.$ac_objext
23470 if { (ac_try="$ac_compile"
23471 case "(($ac_try" in
23472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23473 *) ac_try_echo=$ac_try;;
23474 esac
23475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23476 $as_echo "$ac_try_echo") >&5
23477 (eval "$ac_compile") 2>conftest.er1
23478 ac_status=$?
23479 grep -v '^ *+' conftest.er1 >conftest.err
23480 rm -f conftest.er1
23481 cat conftest.err >&5
23482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23483 (exit $ac_status); } && {
23484 test -z "$ac_c_werror_flag" ||
23485 test ! -s conftest.err
23486 } && test -s conftest.$ac_objext; then
23487 ac_header_compiler=yes
23488 else
23489 $as_echo "$as_me: failed program was:" >&5
23490 sed 's/^/| /' conftest.$ac_ext >&5
23491
23492 ac_header_compiler=no
23493 fi
23494
23495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23496 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23497 $as_echo "$ac_header_compiler" >&6; }
23498
23499 # Is the header present?
23500 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23501 $as_echo_n "checking $ac_header presence... " >&6; }
23502 cat >conftest.$ac_ext <<_ACEOF
23503 /* confdefs.h. */
23504 _ACEOF
23505 cat confdefs.h >>conftest.$ac_ext
23506 cat >>conftest.$ac_ext <<_ACEOF
23507 /* end confdefs.h. */
23508 #include <$ac_header>
23509 _ACEOF
23510 if { (ac_try="$ac_cpp conftest.$ac_ext"
23511 case "(($ac_try" in
23512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23513 *) ac_try_echo=$ac_try;;
23514 esac
23515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23516 $as_echo "$ac_try_echo") >&5
23517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23518 ac_status=$?
23519 grep -v '^ *+' conftest.er1 >conftest.err
23520 rm -f conftest.er1
23521 cat conftest.err >&5
23522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523 (exit $ac_status); } >/dev/null && {
23524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23525 test ! -s conftest.err
23526 }; then
23527 ac_header_preproc=yes
23528 else
23529 $as_echo "$as_me: failed program was:" >&5
23530 sed 's/^/| /' conftest.$ac_ext >&5
23531
23532 ac_header_preproc=no
23533 fi
23534
23535 rm -f conftest.err conftest.$ac_ext
23536 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23537 $as_echo "$ac_header_preproc" >&6; }
23538
23539 # So? What about this header?
23540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23541 yes:no: )
23542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23543 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23545 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23546 ac_header_preproc=yes
23547 ;;
23548 no:yes:* )
23549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23550 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23552 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23554 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23556 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23558 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23560 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23561
23562 ;;
23563 esac
23564 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23565 $as_echo_n "checking for $ac_header... " >&6; }
23566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23567 $as_echo_n "(cached) " >&6
23568 else
23569 eval "$as_ac_Header=\$ac_header_preproc"
23570 fi
23571 ac_res=`eval 'as_val=${'$as_ac_Header'}
23572 $as_echo "$as_val"'`
23573 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23574 $as_echo "$ac_res" >&6; }
23575
23576 fi
23577 if test `eval 'as_val=${'$as_ac_Header'}
23578 $as_echo "$as_val"'` = yes; then
23579 cat >>confdefs.h <<_ACEOF
23580 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23581 _ACEOF
23582
23583 fi
23584
23585 done
23586
23587 fi
23588
23589 # Solaris requires -lintl if you want strerror (which calls dgettext)
23590 # to return localized messages.
23591
23592 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23593 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23594 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23595 $as_echo_n "(cached) " >&6
23596 else
23597 ac_check_lib_save_LIBS=$LIBS
23598 LIBS="-lintl $LIBS"
23599 cat >conftest.$ac_ext <<_ACEOF
23600 /* confdefs.h. */
23601 _ACEOF
23602 cat confdefs.h >>conftest.$ac_ext
23603 cat >>conftest.$ac_ext <<_ACEOF
23604 /* end confdefs.h. */
23605
23606 /* Override any GCC internal prototype to avoid an error.
23607 Use char because int might match the return type of a GCC
23608 builtin and then its argument prototype would still apply. */
23609 #ifdef __cplusplus
23610 extern "C"
23611 #endif
23612 char dgettext ();
23613 int
23614 main ()
23615 {
23616 return dgettext ();
23617 ;
23618 return 0;
23619 }
23620 _ACEOF
23621 rm -f conftest.$ac_objext conftest$ac_exeext
23622 if { (ac_try="$ac_link"
23623 case "(($ac_try" in
23624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23625 *) ac_try_echo=$ac_try;;
23626 esac
23627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23628 $as_echo "$ac_try_echo") >&5
23629 (eval "$ac_link") 2>conftest.er1
23630 ac_status=$?
23631 grep -v '^ *+' conftest.er1 >conftest.err
23632 rm -f conftest.er1
23633 cat conftest.err >&5
23634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); } && {
23636 test -z "$ac_c_werror_flag" ||
23637 test ! -s conftest.err
23638 } && test -s conftest$ac_exeext && {
23639 test "$cross_compiling" = yes ||
23640 $as_test_x conftest$ac_exeext
23641 }; then
23642 ac_cv_lib_intl_dgettext=yes
23643 else
23644 $as_echo "$as_me: failed program was:" >&5
23645 sed 's/^/| /' conftest.$ac_ext >&5
23646
23647 ac_cv_lib_intl_dgettext=no
23648 fi
23649
23650 rm -rf conftest.dSYM
23651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23652 conftest$ac_exeext conftest.$ac_ext
23653 LIBS=$ac_check_lib_save_LIBS
23654 fi
23655 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23656 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23657 if test $ac_cv_lib_intl_dgettext = yes; then
23658 cat >>confdefs.h <<_ACEOF
23659 #define HAVE_LIBINTL 1
23660 _ACEOF
23661
23662 LIBS="-lintl $LIBS"
23663
23664 fi
23665
23666
23667 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
23668 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23669 if test "${emacs_cv_localtime_cache+set}" = set; then
23670 $as_echo_n "(cached) " >&6
23671 else
23672 if test x$ac_cv_func_tzset = xyes; then
23673 if test "$cross_compiling" = yes; then
23674 # If we have tzset, assume the worst when cross-compiling.
23675 emacs_cv_localtime_cache=yes
23676 else
23677 cat >conftest.$ac_ext <<_ACEOF
23678 /* confdefs.h. */
23679 _ACEOF
23680 cat confdefs.h >>conftest.$ac_ext
23681 cat >>conftest.$ac_ext <<_ACEOF
23682 /* end confdefs.h. */
23683 #include <time.h>
23684 extern char **environ;
23685 unset_TZ ()
23686 {
23687 char **from, **to;
23688 for (to = from = environ; (*to = *from); from++)
23689 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23690 to++;
23691 }
23692 char TZ_GMT0[] = "TZ=GMT0";
23693 char TZ_PST8[] = "TZ=PST8";
23694 main()
23695 {
23696 time_t now = time ((time_t *) 0);
23697 int hour_GMT0, hour_unset;
23698 if (putenv (TZ_GMT0) != 0)
23699 exit (1);
23700 hour_GMT0 = localtime (&now)->tm_hour;
23701 unset_TZ ();
23702 hour_unset = localtime (&now)->tm_hour;
23703 if (putenv (TZ_PST8) != 0)
23704 exit (1);
23705 if (localtime (&now)->tm_hour == hour_GMT0)
23706 exit (1);
23707 unset_TZ ();
23708 if (localtime (&now)->tm_hour != hour_unset)
23709 exit (1);
23710 exit (0);
23711 }
23712 _ACEOF
23713 rm -f conftest$ac_exeext
23714 if { (ac_try="$ac_link"
23715 case "(($ac_try" in
23716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23717 *) ac_try_echo=$ac_try;;
23718 esac
23719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23720 $as_echo "$ac_try_echo") >&5
23721 (eval "$ac_link") 2>&5
23722 ac_status=$?
23723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23725 { (case "(($ac_try" in
23726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23727 *) ac_try_echo=$ac_try;;
23728 esac
23729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23730 $as_echo "$ac_try_echo") >&5
23731 (eval "$ac_try") 2>&5
23732 ac_status=$?
23733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734 (exit $ac_status); }; }; then
23735 emacs_cv_localtime_cache=no
23736 else
23737 $as_echo "$as_me: program exited with status $ac_status" >&5
23738 $as_echo "$as_me: failed program was:" >&5
23739 sed 's/^/| /' conftest.$ac_ext >&5
23740
23741 ( exit $ac_status )
23742 emacs_cv_localtime_cache=yes
23743 fi
23744 rm -rf conftest.dSYM
23745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23746 fi
23747
23748
23749 else
23750 # If we lack tzset, report that localtime does not cache TZ,
23751 # since we can't invalidate the cache if we don't have tzset.
23752 emacs_cv_localtime_cache=no
23753 fi
23754 fi
23755 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
23756 $as_echo "$emacs_cv_localtime_cache" >&6; }
23757 if test $emacs_cv_localtime_cache = yes; then
23758
23759 cat >>confdefs.h <<\_ACEOF
23760 #define LOCALTIME_CACHE 1
23761 _ACEOF
23762
23763 fi
23764
23765 if test "x$HAVE_TIMEVAL" = xyes; then
23766
23767 for ac_func in gettimeofday
23768 do
23769 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23770 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23771 $as_echo_n "checking for $ac_func... " >&6; }
23772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23773 $as_echo_n "(cached) " >&6
23774 else
23775 cat >conftest.$ac_ext <<_ACEOF
23776 /* confdefs.h. */
23777 _ACEOF
23778 cat confdefs.h >>conftest.$ac_ext
23779 cat >>conftest.$ac_ext <<_ACEOF
23780 /* end confdefs.h. */
23781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23783 #define $ac_func innocuous_$ac_func
23784
23785 /* System header to define __stub macros and hopefully few prototypes,
23786 which can conflict with char $ac_func (); below.
23787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23788 <limits.h> exists even on freestanding compilers. */
23789
23790 #ifdef __STDC__
23791 # include <limits.h>
23792 #else
23793 # include <assert.h>
23794 #endif
23795
23796 #undef $ac_func
23797
23798 /* Override any GCC internal prototype to avoid an error.
23799 Use char because int might match the return type of a GCC
23800 builtin and then its argument prototype would still apply. */
23801 #ifdef __cplusplus
23802 extern "C"
23803 #endif
23804 char $ac_func ();
23805 /* The GNU C library defines this for functions which it implements
23806 to always fail with ENOSYS. Some functions are actually named
23807 something starting with __ and the normal name is an alias. */
23808 #if defined __stub_$ac_func || defined __stub___$ac_func
23809 choke me
23810 #endif
23811
23812 int
23813 main ()
23814 {
23815 return $ac_func ();
23816 ;
23817 return 0;
23818 }
23819 _ACEOF
23820 rm -f conftest.$ac_objext conftest$ac_exeext
23821 if { (ac_try="$ac_link"
23822 case "(($ac_try" in
23823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23824 *) ac_try_echo=$ac_try;;
23825 esac
23826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23827 $as_echo "$ac_try_echo") >&5
23828 (eval "$ac_link") 2>conftest.er1
23829 ac_status=$?
23830 grep -v '^ *+' conftest.er1 >conftest.err
23831 rm -f conftest.er1
23832 cat conftest.err >&5
23833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834 (exit $ac_status); } && {
23835 test -z "$ac_c_werror_flag" ||
23836 test ! -s conftest.err
23837 } && test -s conftest$ac_exeext && {
23838 test "$cross_compiling" = yes ||
23839 $as_test_x conftest$ac_exeext
23840 }; then
23841 eval "$as_ac_var=yes"
23842 else
23843 $as_echo "$as_me: failed program was:" >&5
23844 sed 's/^/| /' conftest.$ac_ext >&5
23845
23846 eval "$as_ac_var=no"
23847 fi
23848
23849 rm -rf conftest.dSYM
23850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23851 conftest$ac_exeext conftest.$ac_ext
23852 fi
23853 ac_res=`eval 'as_val=${'$as_ac_var'}
23854 $as_echo "$as_val"'`
23855 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23856 $as_echo "$ac_res" >&6; }
23857 if test `eval 'as_val=${'$as_ac_var'}
23858 $as_echo "$as_val"'` = yes; then
23859 cat >>confdefs.h <<_ACEOF
23860 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23861 _ACEOF
23862
23863 fi
23864 done
23865
23866 if test $ac_cv_func_gettimeofday = yes; then
23867 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
23868 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
23869 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
23870 $as_echo_n "(cached) " >&6
23871 else
23872 cat >conftest.$ac_ext <<_ACEOF
23873 /* confdefs.h. */
23874 _ACEOF
23875 cat confdefs.h >>conftest.$ac_ext
23876 cat >>conftest.$ac_ext <<_ACEOF
23877 /* end confdefs.h. */
23878
23879 #ifdef TIME_WITH_SYS_TIME
23880 #include <sys/time.h>
23881 #include <time.h>
23882 #else
23883 #ifdef HAVE_SYS_TIME_H
23884 #include <sys/time.h>
23885 #else
23886 #include <time.h>
23887 #endif
23888 #endif
23889 int
23890 main ()
23891 {
23892 struct timeval time;
23893 gettimeofday (&time, 0);
23894 ;
23895 return 0;
23896 }
23897 _ACEOF
23898 rm -f conftest.$ac_objext
23899 if { (ac_try="$ac_compile"
23900 case "(($ac_try" in
23901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23902 *) ac_try_echo=$ac_try;;
23903 esac
23904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23905 $as_echo "$ac_try_echo") >&5
23906 (eval "$ac_compile") 2>conftest.er1
23907 ac_status=$?
23908 grep -v '^ *+' conftest.er1 >conftest.err
23909 rm -f conftest.er1
23910 cat conftest.err >&5
23911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); } && {
23913 test -z "$ac_c_werror_flag" ||
23914 test ! -s conftest.err
23915 } && test -s conftest.$ac_objext; then
23916 emacs_cv_gettimeofday_two_arguments=yes
23917 else
23918 $as_echo "$as_me: failed program was:" >&5
23919 sed 's/^/| /' conftest.$ac_ext >&5
23920
23921 emacs_cv_gettimeofday_two_arguments=no
23922 fi
23923
23924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23925 fi
23926 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
23927 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
23928 if test $emacs_cv_gettimeofday_two_arguments = no; then
23929
23930 cat >>confdefs.h <<\_ACEOF
23931 #define GETTIMEOFDAY_ONE_ARGUMENT 1
23932 _ACEOF
23933
23934 fi
23935 fi
23936 fi
23937
23938 ok_so_far=yes
23939 { $as_echo "$as_me:$LINENO: checking for socket" >&5
23940 $as_echo_n "checking for socket... " >&6; }
23941 if test "${ac_cv_func_socket+set}" = set; then
23942 $as_echo_n "(cached) " >&6
23943 else
23944 cat >conftest.$ac_ext <<_ACEOF
23945 /* confdefs.h. */
23946 _ACEOF
23947 cat confdefs.h >>conftest.$ac_ext
23948 cat >>conftest.$ac_ext <<_ACEOF
23949 /* end confdefs.h. */
23950 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
23951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23952 #define socket innocuous_socket
23953
23954 /* System header to define __stub macros and hopefully few prototypes,
23955 which can conflict with char socket (); below.
23956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23957 <limits.h> exists even on freestanding compilers. */
23958
23959 #ifdef __STDC__
23960 # include <limits.h>
23961 #else
23962 # include <assert.h>
23963 #endif
23964
23965 #undef socket
23966
23967 /* Override any GCC internal prototype to avoid an error.
23968 Use char because int might match the return type of a GCC
23969 builtin and then its argument prototype would still apply. */
23970 #ifdef __cplusplus
23971 extern "C"
23972 #endif
23973 char socket ();
23974 /* The GNU C library defines this for functions which it implements
23975 to always fail with ENOSYS. Some functions are actually named
23976 something starting with __ and the normal name is an alias. */
23977 #if defined __stub_socket || defined __stub___socket
23978 choke me
23979 #endif
23980
23981 int
23982 main ()
23983 {
23984 return socket ();
23985 ;
23986 return 0;
23987 }
23988 _ACEOF
23989 rm -f conftest.$ac_objext conftest$ac_exeext
23990 if { (ac_try="$ac_link"
23991 case "(($ac_try" in
23992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23993 *) ac_try_echo=$ac_try;;
23994 esac
23995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23996 $as_echo "$ac_try_echo") >&5
23997 (eval "$ac_link") 2>conftest.er1
23998 ac_status=$?
23999 grep -v '^ *+' conftest.er1 >conftest.err
24000 rm -f conftest.er1
24001 cat conftest.err >&5
24002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003 (exit $ac_status); } && {
24004 test -z "$ac_c_werror_flag" ||
24005 test ! -s conftest.err
24006 } && test -s conftest$ac_exeext && {
24007 test "$cross_compiling" = yes ||
24008 $as_test_x conftest$ac_exeext
24009 }; then
24010 ac_cv_func_socket=yes
24011 else
24012 $as_echo "$as_me: failed program was:" >&5
24013 sed 's/^/| /' conftest.$ac_ext >&5
24014
24015 ac_cv_func_socket=no
24016 fi
24017
24018 rm -rf conftest.dSYM
24019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24020 conftest$ac_exeext conftest.$ac_ext
24021 fi
24022 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24023 $as_echo "$ac_cv_func_socket" >&6; }
24024 if test $ac_cv_func_socket = yes; then
24025 :
24026 else
24027 ok_so_far=no
24028 fi
24029
24030 if test $ok_so_far = yes; then
24031 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24032 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24033 $as_echo_n "checking for netinet/in.h... " >&6; }
24034 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24035 $as_echo_n "(cached) " >&6
24036 fi
24037 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24038 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24039 else
24040 # Is the header compilable?
24041 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24042 $as_echo_n "checking netinet/in.h usability... " >&6; }
24043 cat >conftest.$ac_ext <<_ACEOF
24044 /* confdefs.h. */
24045 _ACEOF
24046 cat confdefs.h >>conftest.$ac_ext
24047 cat >>conftest.$ac_ext <<_ACEOF
24048 /* end confdefs.h. */
24049 $ac_includes_default
24050 #include <netinet/in.h>
24051 _ACEOF
24052 rm -f conftest.$ac_objext
24053 if { (ac_try="$ac_compile"
24054 case "(($ac_try" in
24055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24056 *) ac_try_echo=$ac_try;;
24057 esac
24058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24059 $as_echo "$ac_try_echo") >&5
24060 (eval "$ac_compile") 2>conftest.er1
24061 ac_status=$?
24062 grep -v '^ *+' conftest.er1 >conftest.err
24063 rm -f conftest.er1
24064 cat conftest.err >&5
24065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066 (exit $ac_status); } && {
24067 test -z "$ac_c_werror_flag" ||
24068 test ! -s conftest.err
24069 } && test -s conftest.$ac_objext; then
24070 ac_header_compiler=yes
24071 else
24072 $as_echo "$as_me: failed program was:" >&5
24073 sed 's/^/| /' conftest.$ac_ext >&5
24074
24075 ac_header_compiler=no
24076 fi
24077
24078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24079 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24080 $as_echo "$ac_header_compiler" >&6; }
24081
24082 # Is the header present?
24083 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24084 $as_echo_n "checking netinet/in.h presence... " >&6; }
24085 cat >conftest.$ac_ext <<_ACEOF
24086 /* confdefs.h. */
24087 _ACEOF
24088 cat confdefs.h >>conftest.$ac_ext
24089 cat >>conftest.$ac_ext <<_ACEOF
24090 /* end confdefs.h. */
24091 #include <netinet/in.h>
24092 _ACEOF
24093 if { (ac_try="$ac_cpp conftest.$ac_ext"
24094 case "(($ac_try" in
24095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24096 *) ac_try_echo=$ac_try;;
24097 esac
24098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24099 $as_echo "$ac_try_echo") >&5
24100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24101 ac_status=$?
24102 grep -v '^ *+' conftest.er1 >conftest.err
24103 rm -f conftest.er1
24104 cat conftest.err >&5
24105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24106 (exit $ac_status); } >/dev/null && {
24107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24108 test ! -s conftest.err
24109 }; then
24110 ac_header_preproc=yes
24111 else
24112 $as_echo "$as_me: failed program was:" >&5
24113 sed 's/^/| /' conftest.$ac_ext >&5
24114
24115 ac_header_preproc=no
24116 fi
24117
24118 rm -f conftest.err conftest.$ac_ext
24119 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24120 $as_echo "$ac_header_preproc" >&6; }
24121
24122 # So? What about this header?
24123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24124 yes:no: )
24125 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24126 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24127 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24128 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24129 ac_header_preproc=yes
24130 ;;
24131 no:yes:* )
24132 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24133 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24134 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24135 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24136 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24137 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24138 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24139 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24140 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24141 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24142 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24143 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24144
24145 ;;
24146 esac
24147 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24148 $as_echo_n "checking for netinet/in.h... " >&6; }
24149 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24150 $as_echo_n "(cached) " >&6
24151 else
24152 ac_cv_header_netinet_in_h=$ac_header_preproc
24153 fi
24154 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24155 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24156
24157 fi
24158 if test $ac_cv_header_netinet_in_h = yes; then
24159 :
24160 else
24161 ok_so_far=no
24162 fi
24163
24164
24165 fi
24166 if test $ok_so_far = yes; then
24167 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24168 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24169 $as_echo_n "checking for arpa/inet.h... " >&6; }
24170 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24171 $as_echo_n "(cached) " >&6
24172 fi
24173 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24174 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24175 else
24176 # Is the header compilable?
24177 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24178 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24179 cat >conftest.$ac_ext <<_ACEOF
24180 /* confdefs.h. */
24181 _ACEOF
24182 cat confdefs.h >>conftest.$ac_ext
24183 cat >>conftest.$ac_ext <<_ACEOF
24184 /* end confdefs.h. */
24185 $ac_includes_default
24186 #include <arpa/inet.h>
24187 _ACEOF
24188 rm -f conftest.$ac_objext
24189 if { (ac_try="$ac_compile"
24190 case "(($ac_try" in
24191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24192 *) ac_try_echo=$ac_try;;
24193 esac
24194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24195 $as_echo "$ac_try_echo") >&5
24196 (eval "$ac_compile") 2>conftest.er1
24197 ac_status=$?
24198 grep -v '^ *+' conftest.er1 >conftest.err
24199 rm -f conftest.er1
24200 cat conftest.err >&5
24201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24202 (exit $ac_status); } && {
24203 test -z "$ac_c_werror_flag" ||
24204 test ! -s conftest.err
24205 } && test -s conftest.$ac_objext; then
24206 ac_header_compiler=yes
24207 else
24208 $as_echo "$as_me: failed program was:" >&5
24209 sed 's/^/| /' conftest.$ac_ext >&5
24210
24211 ac_header_compiler=no
24212 fi
24213
24214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24215 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24216 $as_echo "$ac_header_compiler" >&6; }
24217
24218 # Is the header present?
24219 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24220 $as_echo_n "checking arpa/inet.h presence... " >&6; }
24221 cat >conftest.$ac_ext <<_ACEOF
24222 /* confdefs.h. */
24223 _ACEOF
24224 cat confdefs.h >>conftest.$ac_ext
24225 cat >>conftest.$ac_ext <<_ACEOF
24226 /* end confdefs.h. */
24227 #include <arpa/inet.h>
24228 _ACEOF
24229 if { (ac_try="$ac_cpp conftest.$ac_ext"
24230 case "(($ac_try" in
24231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24232 *) ac_try_echo=$ac_try;;
24233 esac
24234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24235 $as_echo "$ac_try_echo") >&5
24236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24237 ac_status=$?
24238 grep -v '^ *+' conftest.er1 >conftest.err
24239 rm -f conftest.er1
24240 cat conftest.err >&5
24241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24242 (exit $ac_status); } >/dev/null && {
24243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24244 test ! -s conftest.err
24245 }; then
24246 ac_header_preproc=yes
24247 else
24248 $as_echo "$as_me: failed program was:" >&5
24249 sed 's/^/| /' conftest.$ac_ext >&5
24250
24251 ac_header_preproc=no
24252 fi
24253
24254 rm -f conftest.err conftest.$ac_ext
24255 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24256 $as_echo "$ac_header_preproc" >&6; }
24257
24258 # So? What about this header?
24259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24260 yes:no: )
24261 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24262 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24263 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24264 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24265 ac_header_preproc=yes
24266 ;;
24267 no:yes:* )
24268 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24269 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24270 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24271 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24272 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24273 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24274 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24275 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24276 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24277 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24278 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24279 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24280
24281 ;;
24282 esac
24283 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24284 $as_echo_n "checking for arpa/inet.h... " >&6; }
24285 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24286 $as_echo_n "(cached) " >&6
24287 else
24288 ac_cv_header_arpa_inet_h=$ac_header_preproc
24289 fi
24290 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24291 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24292
24293 fi
24294 if test $ac_cv_header_arpa_inet_h = yes; then
24295 :
24296 else
24297 ok_so_far=no
24298 fi
24299
24300
24301 fi
24302 if test $ok_so_far = yes; then
24303
24304 cat >>confdefs.h <<\_ACEOF
24305 #define HAVE_INET_SOCKETS 1
24306 _ACEOF
24307
24308 fi
24309
24310
24311 for ac_header in sys/ioctl.h
24312 do
24313 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24315 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24316 $as_echo_n "checking for $ac_header... " >&6; }
24317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24318 $as_echo_n "(cached) " >&6
24319 fi
24320 ac_res=`eval 'as_val=${'$as_ac_Header'}
24321 $as_echo "$as_val"'`
24322 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24323 $as_echo "$ac_res" >&6; }
24324 else
24325 # Is the header compilable?
24326 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24327 $as_echo_n "checking $ac_header usability... " >&6; }
24328 cat >conftest.$ac_ext <<_ACEOF
24329 /* confdefs.h. */
24330 _ACEOF
24331 cat confdefs.h >>conftest.$ac_ext
24332 cat >>conftest.$ac_ext <<_ACEOF
24333 /* end confdefs.h. */
24334 $ac_includes_default
24335 #include <$ac_header>
24336 _ACEOF
24337 rm -f conftest.$ac_objext
24338 if { (ac_try="$ac_compile"
24339 case "(($ac_try" in
24340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24341 *) ac_try_echo=$ac_try;;
24342 esac
24343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24344 $as_echo "$ac_try_echo") >&5
24345 (eval "$ac_compile") 2>conftest.er1
24346 ac_status=$?
24347 grep -v '^ *+' conftest.er1 >conftest.err
24348 rm -f conftest.er1
24349 cat conftest.err >&5
24350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); } && {
24352 test -z "$ac_c_werror_flag" ||
24353 test ! -s conftest.err
24354 } && test -s conftest.$ac_objext; then
24355 ac_header_compiler=yes
24356 else
24357 $as_echo "$as_me: failed program was:" >&5
24358 sed 's/^/| /' conftest.$ac_ext >&5
24359
24360 ac_header_compiler=no
24361 fi
24362
24363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24364 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24365 $as_echo "$ac_header_compiler" >&6; }
24366
24367 # Is the header present?
24368 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24369 $as_echo_n "checking $ac_header presence... " >&6; }
24370 cat >conftest.$ac_ext <<_ACEOF
24371 /* confdefs.h. */
24372 _ACEOF
24373 cat confdefs.h >>conftest.$ac_ext
24374 cat >>conftest.$ac_ext <<_ACEOF
24375 /* end confdefs.h. */
24376 #include <$ac_header>
24377 _ACEOF
24378 if { (ac_try="$ac_cpp conftest.$ac_ext"
24379 case "(($ac_try" in
24380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24381 *) ac_try_echo=$ac_try;;
24382 esac
24383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24384 $as_echo "$ac_try_echo") >&5
24385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24386 ac_status=$?
24387 grep -v '^ *+' conftest.er1 >conftest.err
24388 rm -f conftest.er1
24389 cat conftest.err >&5
24390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24391 (exit $ac_status); } >/dev/null && {
24392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24393 test ! -s conftest.err
24394 }; then
24395 ac_header_preproc=yes
24396 else
24397 $as_echo "$as_me: failed program was:" >&5
24398 sed 's/^/| /' conftest.$ac_ext >&5
24399
24400 ac_header_preproc=no
24401 fi
24402
24403 rm -f conftest.err conftest.$ac_ext
24404 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24405 $as_echo "$ac_header_preproc" >&6; }
24406
24407 # So? What about this header?
24408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24409 yes:no: )
24410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24411 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24413 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24414 ac_header_preproc=yes
24415 ;;
24416 no:yes:* )
24417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24418 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24420 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24422 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24424 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24426 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24428 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24429
24430 ;;
24431 esac
24432 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24433 $as_echo_n "checking for $ac_header... " >&6; }
24434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24435 $as_echo_n "(cached) " >&6
24436 else
24437 eval "$as_ac_Header=\$ac_header_preproc"
24438 fi
24439 ac_res=`eval 'as_val=${'$as_ac_Header'}
24440 $as_echo "$as_val"'`
24441 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24442 $as_echo "$ac_res" >&6; }
24443
24444 fi
24445 if test `eval 'as_val=${'$as_ac_Header'}
24446 $as_echo "$as_val"'` = yes; then
24447 cat >>confdefs.h <<_ACEOF
24448 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24449 _ACEOF
24450
24451 fi
24452
24453 done
24454
24455
24456 if test -f /usr/lpp/X11/bin/smt.exp; then
24457
24458 cat >>confdefs.h <<\_ACEOF
24459 #define HAVE_AIX_SMT_EXP 1
24460 _ACEOF
24461
24462 fi
24463
24464 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24465 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24466 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24467 { $as_echo "$as_me:$LINENO: result: yes" >&5
24468 $as_echo "yes" >&6; }
24469
24470 cat >>confdefs.h <<\_ACEOF
24471 #define HAVE_DEV_PTMX 1
24472 _ACEOF
24473
24474 else
24475 { $as_echo "$as_me:$LINENO: result: no" >&5
24476 $as_echo "no" >&6; }
24477 fi
24478
24479 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24480 $as_echo_n "checking for pid_t... " >&6; }
24481 if test "${ac_cv_type_pid_t+set}" = set; then
24482 $as_echo_n "(cached) " >&6
24483 else
24484 ac_cv_type_pid_t=no
24485 cat >conftest.$ac_ext <<_ACEOF
24486 /* confdefs.h. */
24487 _ACEOF
24488 cat confdefs.h >>conftest.$ac_ext
24489 cat >>conftest.$ac_ext <<_ACEOF
24490 /* end confdefs.h. */
24491 $ac_includes_default
24492 int
24493 main ()
24494 {
24495 if (sizeof (pid_t))
24496 return 0;
24497 ;
24498 return 0;
24499 }
24500 _ACEOF
24501 rm -f conftest.$ac_objext
24502 if { (ac_try="$ac_compile"
24503 case "(($ac_try" in
24504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24505 *) ac_try_echo=$ac_try;;
24506 esac
24507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24508 $as_echo "$ac_try_echo") >&5
24509 (eval "$ac_compile") 2>conftest.er1
24510 ac_status=$?
24511 grep -v '^ *+' conftest.er1 >conftest.err
24512 rm -f conftest.er1
24513 cat conftest.err >&5
24514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515 (exit $ac_status); } && {
24516 test -z "$ac_c_werror_flag" ||
24517 test ! -s conftest.err
24518 } && test -s conftest.$ac_objext; then
24519 cat >conftest.$ac_ext <<_ACEOF
24520 /* confdefs.h. */
24521 _ACEOF
24522 cat confdefs.h >>conftest.$ac_ext
24523 cat >>conftest.$ac_ext <<_ACEOF
24524 /* end confdefs.h. */
24525 $ac_includes_default
24526 int
24527 main ()
24528 {
24529 if (sizeof ((pid_t)))
24530 return 0;
24531 ;
24532 return 0;
24533 }
24534 _ACEOF
24535 rm -f conftest.$ac_objext
24536 if { (ac_try="$ac_compile"
24537 case "(($ac_try" in
24538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24539 *) ac_try_echo=$ac_try;;
24540 esac
24541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24542 $as_echo "$ac_try_echo") >&5
24543 (eval "$ac_compile") 2>conftest.er1
24544 ac_status=$?
24545 grep -v '^ *+' conftest.er1 >conftest.err
24546 rm -f conftest.er1
24547 cat conftest.err >&5
24548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549 (exit $ac_status); } && {
24550 test -z "$ac_c_werror_flag" ||
24551 test ! -s conftest.err
24552 } && test -s conftest.$ac_objext; then
24553 :
24554 else
24555 $as_echo "$as_me: failed program was:" >&5
24556 sed 's/^/| /' conftest.$ac_ext >&5
24557
24558 ac_cv_type_pid_t=yes
24559 fi
24560
24561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24562 else
24563 $as_echo "$as_me: failed program was:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24565
24566
24567 fi
24568
24569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24570 fi
24571 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24572 $as_echo "$ac_cv_type_pid_t" >&6; }
24573 if test $ac_cv_type_pid_t = yes; then
24574 :
24575 else
24576
24577 cat >>confdefs.h <<_ACEOF
24578 #define pid_t int
24579 _ACEOF
24580
24581 fi
24582
24583
24584 for ac_header in vfork.h
24585 do
24586 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24588 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24589 $as_echo_n "checking for $ac_header... " >&6; }
24590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24591 $as_echo_n "(cached) " >&6
24592 fi
24593 ac_res=`eval 'as_val=${'$as_ac_Header'}
24594 $as_echo "$as_val"'`
24595 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24596 $as_echo "$ac_res" >&6; }
24597 else
24598 # Is the header compilable?
24599 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24600 $as_echo_n "checking $ac_header usability... " >&6; }
24601 cat >conftest.$ac_ext <<_ACEOF
24602 /* confdefs.h. */
24603 _ACEOF
24604 cat confdefs.h >>conftest.$ac_ext
24605 cat >>conftest.$ac_ext <<_ACEOF
24606 /* end confdefs.h. */
24607 $ac_includes_default
24608 #include <$ac_header>
24609 _ACEOF
24610 rm -f conftest.$ac_objext
24611 if { (ac_try="$ac_compile"
24612 case "(($ac_try" in
24613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24614 *) ac_try_echo=$ac_try;;
24615 esac
24616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24617 $as_echo "$ac_try_echo") >&5
24618 (eval "$ac_compile") 2>conftest.er1
24619 ac_status=$?
24620 grep -v '^ *+' conftest.er1 >conftest.err
24621 rm -f conftest.er1
24622 cat conftest.err >&5
24623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624 (exit $ac_status); } && {
24625 test -z "$ac_c_werror_flag" ||
24626 test ! -s conftest.err
24627 } && test -s conftest.$ac_objext; then
24628 ac_header_compiler=yes
24629 else
24630 $as_echo "$as_me: failed program was:" >&5
24631 sed 's/^/| /' conftest.$ac_ext >&5
24632
24633 ac_header_compiler=no
24634 fi
24635
24636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24637 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24638 $as_echo "$ac_header_compiler" >&6; }
24639
24640 # Is the header present?
24641 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24642 $as_echo_n "checking $ac_header presence... " >&6; }
24643 cat >conftest.$ac_ext <<_ACEOF
24644 /* confdefs.h. */
24645 _ACEOF
24646 cat confdefs.h >>conftest.$ac_ext
24647 cat >>conftest.$ac_ext <<_ACEOF
24648 /* end confdefs.h. */
24649 #include <$ac_header>
24650 _ACEOF
24651 if { (ac_try="$ac_cpp conftest.$ac_ext"
24652 case "(($ac_try" in
24653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24654 *) ac_try_echo=$ac_try;;
24655 esac
24656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24657 $as_echo "$ac_try_echo") >&5
24658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24659 ac_status=$?
24660 grep -v '^ *+' conftest.er1 >conftest.err
24661 rm -f conftest.er1
24662 cat conftest.err >&5
24663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24664 (exit $ac_status); } >/dev/null && {
24665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24666 test ! -s conftest.err
24667 }; then
24668 ac_header_preproc=yes
24669 else
24670 $as_echo "$as_me: failed program was:" >&5
24671 sed 's/^/| /' conftest.$ac_ext >&5
24672
24673 ac_header_preproc=no
24674 fi
24675
24676 rm -f conftest.err conftest.$ac_ext
24677 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24678 $as_echo "$ac_header_preproc" >&6; }
24679
24680 # So? What about this header?
24681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24682 yes:no: )
24683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24684 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24686 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24687 ac_header_preproc=yes
24688 ;;
24689 no:yes:* )
24690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24691 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24693 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24695 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24697 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24699 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24701 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24702
24703 ;;
24704 esac
24705 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24706 $as_echo_n "checking for $ac_header... " >&6; }
24707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24708 $as_echo_n "(cached) " >&6
24709 else
24710 eval "$as_ac_Header=\$ac_header_preproc"
24711 fi
24712 ac_res=`eval 'as_val=${'$as_ac_Header'}
24713 $as_echo "$as_val"'`
24714 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24715 $as_echo "$ac_res" >&6; }
24716
24717 fi
24718 if test `eval 'as_val=${'$as_ac_Header'}
24719 $as_echo "$as_val"'` = yes; then
24720 cat >>confdefs.h <<_ACEOF
24721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24722 _ACEOF
24723
24724 fi
24725
24726 done
24727
24728
24729
24730 for ac_func in fork vfork
24731 do
24732 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24733 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24734 $as_echo_n "checking for $ac_func... " >&6; }
24735 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24736 $as_echo_n "(cached) " >&6
24737 else
24738 cat >conftest.$ac_ext <<_ACEOF
24739 /* confdefs.h. */
24740 _ACEOF
24741 cat confdefs.h >>conftest.$ac_ext
24742 cat >>conftest.$ac_ext <<_ACEOF
24743 /* end confdefs.h. */
24744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24746 #define $ac_func innocuous_$ac_func
24747
24748 /* System header to define __stub macros and hopefully few prototypes,
24749 which can conflict with char $ac_func (); below.
24750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24751 <limits.h> exists even on freestanding compilers. */
24752
24753 #ifdef __STDC__
24754 # include <limits.h>
24755 #else
24756 # include <assert.h>
24757 #endif
24758
24759 #undef $ac_func
24760
24761 /* Override any GCC internal prototype to avoid an error.
24762 Use char because int might match the return type of a GCC
24763 builtin and then its argument prototype would still apply. */
24764 #ifdef __cplusplus
24765 extern "C"
24766 #endif
24767 char $ac_func ();
24768 /* The GNU C library defines this for functions which it implements
24769 to always fail with ENOSYS. Some functions are actually named
24770 something starting with __ and the normal name is an alias. */
24771 #if defined __stub_$ac_func || defined __stub___$ac_func
24772 choke me
24773 #endif
24774
24775 int
24776 main ()
24777 {
24778 return $ac_func ();
24779 ;
24780 return 0;
24781 }
24782 _ACEOF
24783 rm -f conftest.$ac_objext conftest$ac_exeext
24784 if { (ac_try="$ac_link"
24785 case "(($ac_try" in
24786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24787 *) ac_try_echo=$ac_try;;
24788 esac
24789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24790 $as_echo "$ac_try_echo") >&5
24791 (eval "$ac_link") 2>conftest.er1
24792 ac_status=$?
24793 grep -v '^ *+' conftest.er1 >conftest.err
24794 rm -f conftest.er1
24795 cat conftest.err >&5
24796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797 (exit $ac_status); } && {
24798 test -z "$ac_c_werror_flag" ||
24799 test ! -s conftest.err
24800 } && test -s conftest$ac_exeext && {
24801 test "$cross_compiling" = yes ||
24802 $as_test_x conftest$ac_exeext
24803 }; then
24804 eval "$as_ac_var=yes"
24805 else
24806 $as_echo "$as_me: failed program was:" >&5
24807 sed 's/^/| /' conftest.$ac_ext >&5
24808
24809 eval "$as_ac_var=no"
24810 fi
24811
24812 rm -rf conftest.dSYM
24813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24814 conftest$ac_exeext conftest.$ac_ext
24815 fi
24816 ac_res=`eval 'as_val=${'$as_ac_var'}
24817 $as_echo "$as_val"'`
24818 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24819 $as_echo "$ac_res" >&6; }
24820 if test `eval 'as_val=${'$as_ac_var'}
24821 $as_echo "$as_val"'` = yes; then
24822 cat >>confdefs.h <<_ACEOF
24823 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24824 _ACEOF
24825
24826 fi
24827 done
24828
24829 if test "x$ac_cv_func_fork" = xyes; then
24830 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
24831 $as_echo_n "checking for working fork... " >&6; }
24832 if test "${ac_cv_func_fork_works+set}" = set; then
24833 $as_echo_n "(cached) " >&6
24834 else
24835 if test "$cross_compiling" = yes; then
24836 ac_cv_func_fork_works=cross
24837 else
24838 cat >conftest.$ac_ext <<_ACEOF
24839 /* confdefs.h. */
24840 _ACEOF
24841 cat confdefs.h >>conftest.$ac_ext
24842 cat >>conftest.$ac_ext <<_ACEOF
24843 /* end confdefs.h. */
24844 $ac_includes_default
24845 int
24846 main ()
24847 {
24848
24849 /* By Ruediger Kuhlmann. */
24850 return fork () < 0;
24851
24852 ;
24853 return 0;
24854 }
24855 _ACEOF
24856 rm -f conftest$ac_exeext
24857 if { (ac_try="$ac_link"
24858 case "(($ac_try" in
24859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24860 *) ac_try_echo=$ac_try;;
24861 esac
24862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24863 $as_echo "$ac_try_echo") >&5
24864 (eval "$ac_link") 2>&5
24865 ac_status=$?
24866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24868 { (case "(($ac_try" in
24869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24870 *) ac_try_echo=$ac_try;;
24871 esac
24872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24873 $as_echo "$ac_try_echo") >&5
24874 (eval "$ac_try") 2>&5
24875 ac_status=$?
24876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877 (exit $ac_status); }; }; then
24878 ac_cv_func_fork_works=yes
24879 else
24880 $as_echo "$as_me: program exited with status $ac_status" >&5
24881 $as_echo "$as_me: failed program was:" >&5
24882 sed 's/^/| /' conftest.$ac_ext >&5
24883
24884 ( exit $ac_status )
24885 ac_cv_func_fork_works=no
24886 fi
24887 rm -rf conftest.dSYM
24888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24889 fi
24890
24891
24892 fi
24893 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24894 $as_echo "$ac_cv_func_fork_works" >&6; }
24895
24896 else
24897 ac_cv_func_fork_works=$ac_cv_func_fork
24898 fi
24899 if test "x$ac_cv_func_fork_works" = xcross; then
24900 case $host in
24901 *-*-amigaos* | *-*-msdosdjgpp*)
24902 # Override, as these systems have only a dummy fork() stub
24903 ac_cv_func_fork_works=no
24904 ;;
24905 *)
24906 ac_cv_func_fork_works=yes
24907 ;;
24908 esac
24909 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24910 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24911 fi
24912 ac_cv_func_vfork_works=$ac_cv_func_vfork
24913 if test "x$ac_cv_func_vfork" = xyes; then
24914 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
24915 $as_echo_n "checking for working vfork... " >&6; }
24916 if test "${ac_cv_func_vfork_works+set}" = set; then
24917 $as_echo_n "(cached) " >&6
24918 else
24919 if test "$cross_compiling" = yes; then
24920 ac_cv_func_vfork_works=cross
24921 else
24922 cat >conftest.$ac_ext <<_ACEOF
24923 /* confdefs.h. */
24924 _ACEOF
24925 cat confdefs.h >>conftest.$ac_ext
24926 cat >>conftest.$ac_ext <<_ACEOF
24927 /* end confdefs.h. */
24928 /* Thanks to Paul Eggert for this test. */
24929 $ac_includes_default
24930 #include <sys/wait.h>
24931 #ifdef HAVE_VFORK_H
24932 # include <vfork.h>
24933 #endif
24934 /* On some sparc systems, changes by the child to local and incoming
24935 argument registers are propagated back to the parent. The compiler
24936 is told about this with #include <vfork.h>, but some compilers
24937 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24938 static variable whose address is put into a register that is
24939 clobbered by the vfork. */
24940 static void
24941 #ifdef __cplusplus
24942 sparc_address_test (int arg)
24943 # else
24944 sparc_address_test (arg) int arg;
24945 #endif
24946 {
24947 static pid_t child;
24948 if (!child) {
24949 child = vfork ();
24950 if (child < 0) {
24951 perror ("vfork");
24952 _exit(2);
24953 }
24954 if (!child) {
24955 arg = getpid();
24956 write(-1, "", 0);
24957 _exit (arg);
24958 }
24959 }
24960 }
24961
24962 int
24963 main ()
24964 {
24965 pid_t parent = getpid ();
24966 pid_t child;
24967
24968 sparc_address_test (0);
24969
24970 child = vfork ();
24971
24972 if (child == 0) {
24973 /* Here is another test for sparc vfork register problems. This
24974 test uses lots of local variables, at least as many local
24975 variables as main has allocated so far including compiler
24976 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24977 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24978 reuse the register of parent for one of the local variables,
24979 since it will think that parent can't possibly be used any more
24980 in this routine. Assigning to the local variable will thus
24981 munge parent in the parent process. */
24982 pid_t
24983 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24984 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24985 /* Convince the compiler that p..p7 are live; otherwise, it might
24986 use the same hardware register for all 8 local variables. */
24987 if (p != p1 || p != p2 || p != p3 || p != p4
24988 || p != p5 || p != p6 || p != p7)
24989 _exit(1);
24990
24991 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24992 from child file descriptors. If the child closes a descriptor
24993 before it execs or exits, this munges the parent's descriptor
24994 as well. Test for this by closing stdout in the child. */
24995 _exit(close(fileno(stdout)) != 0);
24996 } else {
24997 int status;
24998 struct stat st;
24999
25000 while (wait(&status) != child)
25001 ;
25002 return (
25003 /* Was there some problem with vforking? */
25004 child < 0
25005
25006 /* Did the child fail? (This shouldn't happen.) */
25007 || status
25008
25009 /* Did the vfork/compiler bug occur? */
25010 || parent != getpid()
25011
25012 /* Did the file descriptor bug occur? */
25013 || fstat(fileno(stdout), &st) != 0
25014 );
25015 }
25016 }
25017 _ACEOF
25018 rm -f conftest$ac_exeext
25019 if { (ac_try="$ac_link"
25020 case "(($ac_try" in
25021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25022 *) ac_try_echo=$ac_try;;
25023 esac
25024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25025 $as_echo "$ac_try_echo") >&5
25026 (eval "$ac_link") 2>&5
25027 ac_status=$?
25028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25030 { (case "(($ac_try" in
25031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25032 *) ac_try_echo=$ac_try;;
25033 esac
25034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25035 $as_echo "$ac_try_echo") >&5
25036 (eval "$ac_try") 2>&5
25037 ac_status=$?
25038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039 (exit $ac_status); }; }; then
25040 ac_cv_func_vfork_works=yes
25041 else
25042 $as_echo "$as_me: program exited with status $ac_status" >&5
25043 $as_echo "$as_me: failed program was:" >&5
25044 sed 's/^/| /' conftest.$ac_ext >&5
25045
25046 ( exit $ac_status )
25047 ac_cv_func_vfork_works=no
25048 fi
25049 rm -rf conftest.dSYM
25050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25051 fi
25052
25053
25054 fi
25055 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25056 $as_echo "$ac_cv_func_vfork_works" >&6; }
25057
25058 fi;
25059 if test "x$ac_cv_func_fork_works" = xcross; then
25060 ac_cv_func_vfork_works=$ac_cv_func_vfork
25061 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25062 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25063 fi
25064
25065 if test "x$ac_cv_func_vfork_works" = xyes; then
25066
25067 cat >>confdefs.h <<\_ACEOF
25068 #define HAVE_WORKING_VFORK 1
25069 _ACEOF
25070
25071 else
25072
25073 cat >>confdefs.h <<\_ACEOF
25074 #define vfork fork
25075 _ACEOF
25076
25077 fi
25078 if test "x$ac_cv_func_fork_works" = xyes; then
25079
25080 cat >>confdefs.h <<\_ACEOF
25081 #define HAVE_WORKING_FORK 1
25082 _ACEOF
25083
25084 fi
25085
25086
25087 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25088 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25089 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25090 $as_echo_n "(cached) " >&6
25091 else
25092 cat >conftest.$ac_ext <<_ACEOF
25093 /* confdefs.h. */
25094 _ACEOF
25095 cat confdefs.h >>conftest.$ac_ext
25096 cat >>conftest.$ac_ext <<_ACEOF
25097 /* end confdefs.h. */
25098 #include <langinfo.h>
25099 int
25100 main ()
25101 {
25102 char* cs = nl_langinfo(CODESET);
25103 ;
25104 return 0;
25105 }
25106 _ACEOF
25107 rm -f conftest.$ac_objext conftest$ac_exeext
25108 if { (ac_try="$ac_link"
25109 case "(($ac_try" in
25110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25111 *) ac_try_echo=$ac_try;;
25112 esac
25113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25114 $as_echo "$ac_try_echo") >&5
25115 (eval "$ac_link") 2>conftest.er1
25116 ac_status=$?
25117 grep -v '^ *+' conftest.er1 >conftest.err
25118 rm -f conftest.er1
25119 cat conftest.err >&5
25120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121 (exit $ac_status); } && {
25122 test -z "$ac_c_werror_flag" ||
25123 test ! -s conftest.err
25124 } && test -s conftest$ac_exeext && {
25125 test "$cross_compiling" = yes ||
25126 $as_test_x conftest$ac_exeext
25127 }; then
25128 emacs_cv_langinfo_codeset=yes
25129 else
25130 $as_echo "$as_me: failed program was:" >&5
25131 sed 's/^/| /' conftest.$ac_ext >&5
25132
25133 emacs_cv_langinfo_codeset=no
25134 fi
25135
25136 rm -rf conftest.dSYM
25137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25138 conftest$ac_exeext conftest.$ac_ext
25139
25140 fi
25141 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25142 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25143 if test $emacs_cv_langinfo_codeset = yes; then
25144
25145 cat >>confdefs.h <<\_ACEOF
25146 #define HAVE_LANGINFO_CODESET 1
25147 _ACEOF
25148
25149 fi
25150
25151 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25152 $as_echo_n "checking for size_t... " >&6; }
25153 if test "${ac_cv_type_size_t+set}" = set; then
25154 $as_echo_n "(cached) " >&6
25155 else
25156 ac_cv_type_size_t=no
25157 cat >conftest.$ac_ext <<_ACEOF
25158 /* confdefs.h. */
25159 _ACEOF
25160 cat confdefs.h >>conftest.$ac_ext
25161 cat >>conftest.$ac_ext <<_ACEOF
25162 /* end confdefs.h. */
25163 $ac_includes_default
25164 int
25165 main ()
25166 {
25167 if (sizeof (size_t))
25168 return 0;
25169 ;
25170 return 0;
25171 }
25172 _ACEOF
25173 rm -f conftest.$ac_objext
25174 if { (ac_try="$ac_compile"
25175 case "(($ac_try" in
25176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25177 *) ac_try_echo=$ac_try;;
25178 esac
25179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25180 $as_echo "$ac_try_echo") >&5
25181 (eval "$ac_compile") 2>conftest.er1
25182 ac_status=$?
25183 grep -v '^ *+' conftest.er1 >conftest.err
25184 rm -f conftest.er1
25185 cat conftest.err >&5
25186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187 (exit $ac_status); } && {
25188 test -z "$ac_c_werror_flag" ||
25189 test ! -s conftest.err
25190 } && test -s conftest.$ac_objext; then
25191 cat >conftest.$ac_ext <<_ACEOF
25192 /* confdefs.h. */
25193 _ACEOF
25194 cat confdefs.h >>conftest.$ac_ext
25195 cat >>conftest.$ac_ext <<_ACEOF
25196 /* end confdefs.h. */
25197 $ac_includes_default
25198 int
25199 main ()
25200 {
25201 if (sizeof ((size_t)))
25202 return 0;
25203 ;
25204 return 0;
25205 }
25206 _ACEOF
25207 rm -f conftest.$ac_objext
25208 if { (ac_try="$ac_compile"
25209 case "(($ac_try" in
25210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25211 *) ac_try_echo=$ac_try;;
25212 esac
25213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25214 $as_echo "$ac_try_echo") >&5
25215 (eval "$ac_compile") 2>conftest.er1
25216 ac_status=$?
25217 grep -v '^ *+' conftest.er1 >conftest.err
25218 rm -f conftest.er1
25219 cat conftest.err >&5
25220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221 (exit $ac_status); } && {
25222 test -z "$ac_c_werror_flag" ||
25223 test ! -s conftest.err
25224 } && test -s conftest.$ac_objext; then
25225 :
25226 else
25227 $as_echo "$as_me: failed program was:" >&5
25228 sed 's/^/| /' conftest.$ac_ext >&5
25229
25230 ac_cv_type_size_t=yes
25231 fi
25232
25233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25234 else
25235 $as_echo "$as_me: failed program was:" >&5
25236 sed 's/^/| /' conftest.$ac_ext >&5
25237
25238
25239 fi
25240
25241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25242 fi
25243 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25244 $as_echo "$ac_cv_type_size_t" >&6; }
25245 if test $ac_cv_type_size_t = yes; then
25246
25247 cat >>confdefs.h <<_ACEOF
25248 #define HAVE_SIZE_T 1
25249 _ACEOF
25250
25251
25252 fi
25253
25254
25255 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
25256 $as_echo_n "checking for mbstate_t... " >&6; }
25257 if test "${ac_cv_type_mbstate_t+set}" = set; then
25258 $as_echo_n "(cached) " >&6
25259 else
25260 cat >conftest.$ac_ext <<_ACEOF
25261 /* confdefs.h. */
25262 _ACEOF
25263 cat confdefs.h >>conftest.$ac_ext
25264 cat >>conftest.$ac_ext <<_ACEOF
25265 /* end confdefs.h. */
25266 $ac_includes_default
25267 # include <wchar.h>
25268 int
25269 main ()
25270 {
25271 mbstate_t x; return sizeof x;
25272 ;
25273 return 0;
25274 }
25275 _ACEOF
25276 rm -f conftest.$ac_objext
25277 if { (ac_try="$ac_compile"
25278 case "(($ac_try" in
25279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25280 *) ac_try_echo=$ac_try;;
25281 esac
25282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25283 $as_echo "$ac_try_echo") >&5
25284 (eval "$ac_compile") 2>conftest.er1
25285 ac_status=$?
25286 grep -v '^ *+' conftest.er1 >conftest.err
25287 rm -f conftest.er1
25288 cat conftest.err >&5
25289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290 (exit $ac_status); } && {
25291 test -z "$ac_c_werror_flag" ||
25292 test ! -s conftest.err
25293 } && test -s conftest.$ac_objext; then
25294 ac_cv_type_mbstate_t=yes
25295 else
25296 $as_echo "$as_me: failed program was:" >&5
25297 sed 's/^/| /' conftest.$ac_ext >&5
25298
25299 ac_cv_type_mbstate_t=no
25300 fi
25301
25302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25303 fi
25304 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25305 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25306 if test $ac_cv_type_mbstate_t = yes; then
25307
25308 cat >>confdefs.h <<\_ACEOF
25309 #define HAVE_MBSTATE_T 1
25310 _ACEOF
25311
25312 else
25313
25314 cat >>confdefs.h <<\_ACEOF
25315 #define mbstate_t int
25316 _ACEOF
25317
25318 fi
25319
25320 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25321 $as_echo_n "checking for C restrict keyword... " >&6; }
25322 if test "${emacs_cv_c_restrict+set}" = set; then
25323 $as_echo_n "(cached) " >&6
25324 else
25325 cat >conftest.$ac_ext <<_ACEOF
25326 /* confdefs.h. */
25327 _ACEOF
25328 cat confdefs.h >>conftest.$ac_ext
25329 cat >>conftest.$ac_ext <<_ACEOF
25330 /* end confdefs.h. */
25331 void fred (int *restrict x);
25332 int
25333 main ()
25334 {
25335
25336 ;
25337 return 0;
25338 }
25339 _ACEOF
25340 rm -f conftest.$ac_objext
25341 if { (ac_try="$ac_compile"
25342 case "(($ac_try" in
25343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25344 *) ac_try_echo=$ac_try;;
25345 esac
25346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25347 $as_echo "$ac_try_echo") >&5
25348 (eval "$ac_compile") 2>conftest.er1
25349 ac_status=$?
25350 grep -v '^ *+' conftest.er1 >conftest.err
25351 rm -f conftest.er1
25352 cat conftest.err >&5
25353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354 (exit $ac_status); } && {
25355 test -z "$ac_c_werror_flag" ||
25356 test ! -s conftest.err
25357 } && test -s conftest.$ac_objext; then
25358 emacs_cv_c_restrict=yes
25359 else
25360 $as_echo "$as_me: failed program was:" >&5
25361 sed 's/^/| /' conftest.$ac_ext >&5
25362
25363 cat >conftest.$ac_ext <<_ACEOF
25364 /* confdefs.h. */
25365 _ACEOF
25366 cat confdefs.h >>conftest.$ac_ext
25367 cat >>conftest.$ac_ext <<_ACEOF
25368 /* end confdefs.h. */
25369 void fred (int *__restrict x);
25370 int
25371 main ()
25372 {
25373
25374 ;
25375 return 0;
25376 }
25377 _ACEOF
25378 rm -f conftest.$ac_objext
25379 if { (ac_try="$ac_compile"
25380 case "(($ac_try" in
25381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25382 *) ac_try_echo=$ac_try;;
25383 esac
25384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25385 $as_echo "$ac_try_echo") >&5
25386 (eval "$ac_compile") 2>conftest.er1
25387 ac_status=$?
25388 grep -v '^ *+' conftest.er1 >conftest.err
25389 rm -f conftest.er1
25390 cat conftest.err >&5
25391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392 (exit $ac_status); } && {
25393 test -z "$ac_c_werror_flag" ||
25394 test ! -s conftest.err
25395 } && test -s conftest.$ac_objext; then
25396 emacs_cv_c_restrict=__restrict
25397 else
25398 $as_echo "$as_me: failed program was:" >&5
25399 sed 's/^/| /' conftest.$ac_ext >&5
25400
25401 emacs_cv_c_restrict=no
25402 fi
25403
25404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25405 fi
25406
25407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25408 fi
25409 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25410 $as_echo "$emacs_cv_c_restrict" >&6; }
25411 case "$emacs_cv_c_restrict" in
25412 yes) emacs_restrict=restrict;;
25413 no) emacs_restrict="";;
25414 *) emacs_restrict="$emacs_cv_c_restrict";;
25415 esac
25416 if test "$emacs_restrict" != __restrict; then
25417
25418 cat >>confdefs.h <<_ACEOF
25419 #define __restrict $emacs_restrict
25420 _ACEOF
25421
25422 fi
25423
25424 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25425 $as_echo_n "checking for C restricted array declarations... " >&6; }
25426 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25427 $as_echo_n "(cached) " >&6
25428 else
25429 cat >conftest.$ac_ext <<_ACEOF
25430 /* confdefs.h. */
25431 _ACEOF
25432 cat confdefs.h >>conftest.$ac_ext
25433 cat >>conftest.$ac_ext <<_ACEOF
25434 /* end confdefs.h. */
25435 void fred (int x[__restrict]);
25436 int
25437 main ()
25438 {
25439
25440 ;
25441 return 0;
25442 }
25443 _ACEOF
25444 rm -f conftest.$ac_objext
25445 if { (ac_try="$ac_compile"
25446 case "(($ac_try" in
25447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25448 *) ac_try_echo=$ac_try;;
25449 esac
25450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25451 $as_echo "$ac_try_echo") >&5
25452 (eval "$ac_compile") 2>conftest.er1
25453 ac_status=$?
25454 grep -v '^ *+' conftest.er1 >conftest.err
25455 rm -f conftest.er1
25456 cat conftest.err >&5
25457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458 (exit $ac_status); } && {
25459 test -z "$ac_c_werror_flag" ||
25460 test ! -s conftest.err
25461 } && test -s conftest.$ac_objext; then
25462 emacs_cv_c_restrict_arr=yes
25463 else
25464 $as_echo "$as_me: failed program was:" >&5
25465 sed 's/^/| /' conftest.$ac_ext >&5
25466
25467 emacs_cv_c_restrict_arr=no
25468 fi
25469
25470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25471 fi
25472 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25473 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25474 if test "$emacs_cv_c_restrict_arr" = yes; then
25475
25476 cat >>confdefs.h <<\_ACEOF
25477 #define __restrict_arr __restrict
25478 _ACEOF
25479
25480 fi
25481
25482
25483
25484 # Set up the CFLAGS for real compilation, so we can substitute it.
25485 CFLAGS="$REAL_CFLAGS"
25486 CPPFLAGS="$REAL_CPPFLAGS"
25487
25488 #### Find out which version of Emacs this is.
25489 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25490 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25491 if test x"${version}" = x; then
25492 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25493 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25494 { (exit 1); exit 1; }; }
25495 fi
25496 if test x"${version}" != x"$PACKAGE_VERSION"; then
25497 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25498 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25499 fi
25500
25501 ### Specify what sort of things we'll be editing into Makefile and config.h.
25502 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25503
25504
25505
25506
25507
25508
25509
25510
25511
25512
25513
25514
25515
25516
25517
25518
25519
25520
25521
25522
25523
25524
25525
25526
25527
25528
25529
25530
25531
25532
25533
25534
25535
25536
25537
25538
25539
25540
25541
25542
25543
25544
25545
25546
25547 cat >>confdefs.h <<_ACEOF
25548 #define EMACS_CONFIGURATION "${canonical}"
25549 _ACEOF
25550
25551
25552 cat >>confdefs.h <<_ACEOF
25553 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25554 _ACEOF
25555
25556
25557 cat >>confdefs.h <<_ACEOF
25558 #define config_machfile "${machfile}"
25559 _ACEOF
25560
25561
25562 cat >>confdefs.h <<_ACEOF
25563 #define config_opsysfile "${opsysfile}"
25564 _ACEOF
25565
25566
25567 cat >>confdefs.h <<_ACEOF
25568 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25569 _ACEOF
25570
25571
25572 cat >>confdefs.h <<_ACEOF
25573 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25574 _ACEOF
25575
25576
25577 cat >>confdefs.h <<_ACEOF
25578 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25579 _ACEOF
25580
25581
25582 cat >>confdefs.h <<_ACEOF
25583 #define UNEXEC_SRC ${UNEXEC_SRC}
25584 _ACEOF
25585
25586
25587 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25588
25589 cat >>confdefs.h <<\_ACEOF
25590 #define HAVE_X_WINDOWS 1
25591 _ACEOF
25592
25593 fi
25594 if test "${USE_X_TOOLKIT}" != "none" ; then
25595
25596 cat >>confdefs.h <<\_ACEOF
25597 #define USE_X_TOOLKIT 1
25598 _ACEOF
25599
25600 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25601
25602 cat >>confdefs.h <<\_ACEOF
25603 #define USE_LUCID 1
25604 _ACEOF
25605
25606 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25607
25608 cat >>confdefs.h <<\_ACEOF
25609 #define USE_MOTIF 1
25610 _ACEOF
25611
25612 fi
25613 fi
25614 if test "${HAVE_X11}" = "yes" ; then
25615
25616 cat >>confdefs.h <<\_ACEOF
25617 #define HAVE_X11 1
25618 _ACEOF
25619
25620 fi
25621 if test "${HAVE_MENUS}" = "yes" ; then
25622
25623 cat >>confdefs.h <<\_ACEOF
25624 #define HAVE_MENUS 1
25625 _ACEOF
25626
25627 fi
25628 if test "${GNU_MALLOC}" = "yes" ; then
25629
25630 cat >>confdefs.h <<\_ACEOF
25631 #define GNU_MALLOC 1
25632 _ACEOF
25633
25634 fi
25635 if test "${REL_ALLOC}" = "yes" ; then
25636
25637 cat >>confdefs.h <<\_ACEOF
25638 #define REL_ALLOC 1
25639 _ACEOF
25640
25641 fi
25642
25643
25644
25645
25646
25647
25648 #### Report on what we decided to do.
25649 #### Report GTK as a toolkit, even if it doesn't use Xt.
25650 #### It makes printing result more understandable as using GTK sets
25651 #### toolkit_scroll_bars to yes by default.
25652 if test "${HAVE_GTK}" = "yes"; then
25653 USE_X_TOOLKIT=GTK
25654 fi
25655
25656 echo "
25657 Configured for \`${canonical}'.
25658
25659 Where should the build process find the source code? ${srcdir}
25660 What operating system and machine description files should Emacs use?
25661 \`${opsysfile}' and \`${machfile}'
25662 What compiler should emacs be built with? ${CC} ${CFLAGS}
25663 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25664 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25665 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25666 What window system should Emacs use? ${window_system}
25667 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25668
25669 if test -n "${x_includes}"; then
25670 echo " Where do we find X Windows header files? ${x_includes}"
25671 else
25672 echo " Where do we find X Windows header files? Standard dirs"
25673 fi
25674 if test -n "${x_libraries}"; then
25675 echo " Where do we find X Windows libraries? ${x_libraries}"
25676 else
25677 echo " Where do we find X Windows libraries? Standard dirs"
25678 fi
25679
25680 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25681 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25682 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25683 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25684 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
25685 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25686 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25687 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25688 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25689 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
25690
25691 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25692 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25693 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25694 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25695
25696 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25697 echo
25698
25699 if test $USE_XASSERTS = yes; then
25700 echo " Compiling with asserts turned on."
25701 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
25702 fi
25703
25704 echo
25705
25706 if test "$USE_X_TOOLKIT" = GTK; then
25707 case "$canonical" in
25708 *cygwin*)
25709 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
25710 will probably get a crash on startup. If this happens, please use another
25711 toolkit for Emacs. See etc/PROBLEMS for more information."
25712 ;;
25713 esac
25714 fi
25715
25716 if test "$HAVE_NS" = "yes"; then
25717 echo
25718 echo "You must run \"make install\" in order to test the built application.
25719 The installed application will go to nextstep/Emacs.app and can be
25720 run or moved from there."
25721 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25722 echo "The application will be fully self-contained."
25723 else
25724 echo "The lisp resources for the application will be installed under ${prefix}.
25725 You may need to run \"make install\" with sudo. The application will fail
25726 to run if these resources are not installed."
25727 fi
25728 echo
25729 fi
25730
25731 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
25732 echo "D-Bus integration has been tested for GNU/Linux only."
25733 echo
25734 fi
25735
25736
25737 # Remove any trailing slashes in these variables.
25738 test "${prefix}" != NONE &&
25739 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25740 test "${exec_prefix}" != NONE &&
25741 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25742
25743 # Now get this: Some word that is part of the ${srcdir} directory name
25744 # or the ${configuration} value might, just might, happen to be an
25745 # identifier like `sun4' or `i386' or something, and be predefined by
25746 # the C preprocessor to some helpful value like 1, or maybe the empty
25747 # string. Needless to say consequent macro substitutions are less
25748 # than conducive to the makefile finding the correct directory.
25749 cpp_undefs="`echo $srcdir $configuration $canonical |
25750 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25751 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
25752
25753 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25754 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25755 ## from Makefile.c can correctly provide the arg `-traditional' to the
25756 ## C preprocessor.
25757
25758 cat >conftest.$ac_ext <<_ACEOF
25759 /* confdefs.h. */
25760 _ACEOF
25761 cat confdefs.h >>conftest.$ac_ext
25762 cat >>conftest.$ac_ext <<_ACEOF
25763 /* end confdefs.h. */
25764 yes..yes
25765 _ACEOF
25766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25767 $EGREP "yes..yes" >/dev/null 2>&1; then
25768 CPP_NEED_TRADITIONAL=no
25769 else
25770 CPP_NEED_TRADITIONAL=yes
25771 fi
25772 rm -f conftest*
25773
25774
25775 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"
25776
25777 ac_config_commands="$ac_config_commands default"
25778
25779 cat >confcache <<\_ACEOF
25780 # This file is a shell script that caches the results of configure
25781 # tests run on this system so they can be shared between configure
25782 # scripts and configure runs, see configure's option --config-cache.
25783 # It is not useful on other systems. If it contains results you don't
25784 # want to keep, you may remove or edit it.
25785 #
25786 # config.status only pays attention to the cache file if you give it
25787 # the --recheck option to rerun configure.
25788 #
25789 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25790 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25791 # following values.
25792
25793 _ACEOF
25794
25795 # The following way of writing the cache mishandles newlines in values,
25796 # but we know of no workaround that is simple, portable, and efficient.
25797 # So, we kill variables containing newlines.
25798 # Ultrix sh set writes to stderr and can't be redirected directly,
25799 # and sets the high bit in the cache file unless we assign to the vars.
25800 (
25801 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25802 eval ac_val=\$$ac_var
25803 case $ac_val in #(
25804 *${as_nl}*)
25805 case $ac_var in #(
25806 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25807 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25808 esac
25809 case $ac_var in #(
25810 _ | IFS | as_nl) ;; #(
25811 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25812 *) $as_unset $ac_var ;;
25813 esac ;;
25814 esac
25815 done
25816
25817 (set) 2>&1 |
25818 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25819 *${as_nl}ac_space=\ *)
25820 # `set' does not quote correctly, so add quotes (double-quote
25821 # substitution turns \\\\ into \\, and sed turns \\ into \).
25822 sed -n \
25823 "s/'/'\\\\''/g;
25824 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25825 ;; #(
25826 *)
25827 # `set' quotes correctly as required by POSIX, so do not add quotes.
25828 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25829 ;;
25830 esac |
25831 sort
25832 ) |
25833 sed '
25834 /^ac_cv_env_/b end
25835 t clear
25836 :clear
25837 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25838 t end
25839 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25840 :end' >>confcache
25841 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25842 if test -w "$cache_file"; then
25843 test "x$cache_file" != "x/dev/null" &&
25844 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
25845 $as_echo "$as_me: updating cache $cache_file" >&6;}
25846 cat confcache >$cache_file
25847 else
25848 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25849 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25850 fi
25851 fi
25852 rm -f confcache
25853
25854 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25855 # Let make expand exec_prefix.
25856 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25857
25858 DEFS=-DHAVE_CONFIG_H
25859
25860 ac_libobjs=
25861 ac_ltlibobjs=
25862 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25863 # 1. Remove the extension, and $U if already installed.
25864 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25865 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25866 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25867 # will be set to the directory where LIBOBJS objects are built.
25868 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25869 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25870 done
25871 LIBOBJS=$ac_libobjs
25872
25873 LTLIBOBJS=$ac_ltlibobjs
25874
25875
25876
25877 : ${CONFIG_STATUS=./config.status}
25878 ac_write_fail=0
25879 ac_clean_files_save=$ac_clean_files
25880 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25881 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25882 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25883 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25884 #! $SHELL
25885 # Generated by $as_me.
25886 # Run this file to recreate the current configuration.
25887 # Compiler output produced by configure, useful for debugging
25888 # configure, is in config.log if it exists.
25889
25890 debug=false
25891 ac_cs_recheck=false
25892 ac_cs_silent=false
25893 SHELL=\${CONFIG_SHELL-$SHELL}
25894 _ACEOF
25895
25896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25897 ## --------------------- ##
25898 ## M4sh Initialization. ##
25899 ## --------------------- ##
25900
25901 # Be more Bourne compatible
25902 DUALCASE=1; export DUALCASE # for MKS sh
25903 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25904 emulate sh
25905 NULLCMD=:
25906 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25907 # is contrary to our usage. Disable this feature.
25908 alias -g '${1+"$@"}'='"$@"'
25909 setopt NO_GLOB_SUBST
25910 else
25911 case `(set -o) 2>/dev/null` in
25912 *posix*) set -o posix ;;
25913 esac
25914
25915 fi
25916
25917
25918
25919
25920 # PATH needs CR
25921 # Avoid depending upon Character Ranges.
25922 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25923 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25924 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25925 as_cr_digits='0123456789'
25926 as_cr_alnum=$as_cr_Letters$as_cr_digits
25927
25928 as_nl='
25929 '
25930 export as_nl
25931 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25932 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25933 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25934 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25935 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25936 as_echo='printf %s\n'
25937 as_echo_n='printf %s'
25938 else
25939 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25940 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25941 as_echo_n='/usr/ucb/echo -n'
25942 else
25943 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25944 as_echo_n_body='eval
25945 arg=$1;
25946 case $arg in
25947 *"$as_nl"*)
25948 expr "X$arg" : "X\\(.*\\)$as_nl";
25949 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25950 esac;
25951 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25952 '
25953 export as_echo_n_body
25954 as_echo_n='sh -c $as_echo_n_body as_echo'
25955 fi
25956 export as_echo_body
25957 as_echo='sh -c $as_echo_body as_echo'
25958 fi
25959
25960 # The user is always right.
25961 if test "${PATH_SEPARATOR+set}" != set; then
25962 PATH_SEPARATOR=:
25963 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25964 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25965 PATH_SEPARATOR=';'
25966 }
25967 fi
25968
25969 # Support unset when possible.
25970 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25971 as_unset=unset
25972 else
25973 as_unset=false
25974 fi
25975
25976
25977 # IFS
25978 # We need space, tab and new line, in precisely that order. Quoting is
25979 # there to prevent editors from complaining about space-tab.
25980 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25981 # splitting by setting IFS to empty value.)
25982 IFS=" "" $as_nl"
25983
25984 # Find who we are. Look in the path if we contain no directory separator.
25985 case $0 in
25986 *[\\/]* ) as_myself=$0 ;;
25987 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25988 for as_dir in $PATH
25989 do
25990 IFS=$as_save_IFS
25991 test -z "$as_dir" && as_dir=.
25992 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25993 done
25994 IFS=$as_save_IFS
25995
25996 ;;
25997 esac
25998 # We did not find ourselves, most probably we were run as `sh COMMAND'
25999 # in which case we are not to be found in the path.
26000 if test "x$as_myself" = x; then
26001 as_myself=$0
26002 fi
26003 if test ! -f "$as_myself"; then
26004 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26005 { (exit 1); exit 1; }
26006 fi
26007
26008 # Work around bugs in pre-3.0 UWIN ksh.
26009 for as_var in ENV MAIL MAILPATH
26010 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26011 done
26012 PS1='$ '
26013 PS2='> '
26014 PS4='+ '
26015
26016 # NLS nuisances.
26017 LC_ALL=C
26018 export LC_ALL
26019 LANGUAGE=C
26020 export LANGUAGE
26021
26022 # Required to use basename.
26023 if expr a : '\(a\)' >/dev/null 2>&1 &&
26024 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26025 as_expr=expr
26026 else
26027 as_expr=false
26028 fi
26029
26030 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26031 as_basename=basename
26032 else
26033 as_basename=false
26034 fi
26035
26036
26037 # Name of the executable.
26038 as_me=`$as_basename -- "$0" ||
26039 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26040 X"$0" : 'X\(//\)$' \| \
26041 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26042 $as_echo X/"$0" |
26043 sed '/^.*\/\([^/][^/]*\)\/*$/{
26044 s//\1/
26045 q
26046 }
26047 /^X\/\(\/\/\)$/{
26048 s//\1/
26049 q
26050 }
26051 /^X\/\(\/\).*/{
26052 s//\1/
26053 q
26054 }
26055 s/.*/./; q'`
26056
26057 # CDPATH.
26058 $as_unset CDPATH
26059
26060
26061
26062 as_lineno_1=$LINENO
26063 as_lineno_2=$LINENO
26064 test "x$as_lineno_1" != "x$as_lineno_2" &&
26065 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26066
26067 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26068 # uniformly replaced by the line number. The first 'sed' inserts a
26069 # line-number line after each line using $LINENO; the second 'sed'
26070 # does the real work. The second script uses 'N' to pair each
26071 # line-number line with the line containing $LINENO, and appends
26072 # trailing '-' during substitution so that $LINENO is not a special
26073 # case at line end.
26074 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26075 # scripts with optimization help from Paolo Bonzini. Blame Lee
26076 # E. McMahon (1931-1989) for sed's syntax. :-)
26077 sed -n '
26078 p
26079 /[$]LINENO/=
26080 ' <$as_myself |
26081 sed '
26082 s/[$]LINENO.*/&-/
26083 t lineno
26084 b
26085 :lineno
26086 N
26087 :loop
26088 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26089 t loop
26090 s/-\n.*//
26091 ' >$as_me.lineno &&
26092 chmod +x "$as_me.lineno" ||
26093 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26094 { (exit 1); exit 1; }; }
26095
26096 # Don't try to exec as it changes $[0], causing all sort of problems
26097 # (the dirname of $[0] is not the place where we might find the
26098 # original and so on. Autoconf is especially sensitive to this).
26099 . "./$as_me.lineno"
26100 # Exit status is that of the last command.
26101 exit
26102 }
26103
26104
26105 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26106 as_dirname=dirname
26107 else
26108 as_dirname=false
26109 fi
26110
26111 ECHO_C= ECHO_N= ECHO_T=
26112 case `echo -n x` in
26113 -n*)
26114 case `echo 'x\c'` in
26115 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26116 *) ECHO_C='\c';;
26117 esac;;
26118 *)
26119 ECHO_N='-n';;
26120 esac
26121 if expr a : '\(a\)' >/dev/null 2>&1 &&
26122 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26123 as_expr=expr
26124 else
26125 as_expr=false
26126 fi
26127
26128 rm -f conf$$ conf$$.exe conf$$.file
26129 if test -d conf$$.dir; then
26130 rm -f conf$$.dir/conf$$.file
26131 else
26132 rm -f conf$$.dir
26133 mkdir conf$$.dir 2>/dev/null
26134 fi
26135 if (echo >conf$$.file) 2>/dev/null; then
26136 if ln -s conf$$.file conf$$ 2>/dev/null; then
26137 as_ln_s='ln -s'
26138 # ... but there are two gotchas:
26139 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26140 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26141 # In both cases, we have to default to `cp -p'.
26142 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26143 as_ln_s='cp -p'
26144 elif ln conf$$.file conf$$ 2>/dev/null; then
26145 as_ln_s=ln
26146 else
26147 as_ln_s='cp -p'
26148 fi
26149 else
26150 as_ln_s='cp -p'
26151 fi
26152 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26153 rmdir conf$$.dir 2>/dev/null
26154
26155 if mkdir -p . 2>/dev/null; then
26156 as_mkdir_p=:
26157 else
26158 test -d ./-p && rmdir ./-p
26159 as_mkdir_p=false
26160 fi
26161
26162 if test -x / >/dev/null 2>&1; then
26163 as_test_x='test -x'
26164 else
26165 if ls -dL / >/dev/null 2>&1; then
26166 as_ls_L_option=L
26167 else
26168 as_ls_L_option=
26169 fi
26170 as_test_x='
26171 eval sh -c '\''
26172 if test -d "$1"; then
26173 test -d "$1/.";
26174 else
26175 case $1 in
26176 -*)set "./$1";;
26177 esac;
26178 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26179 ???[sx]*):;;*)false;;esac;fi
26180 '\'' sh
26181 '
26182 fi
26183 as_executable_p=$as_test_x
26184
26185 # Sed expression to map a string onto a valid CPP name.
26186 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26187
26188 # Sed expression to map a string onto a valid variable name.
26189 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26190
26191
26192 exec 6>&1
26193
26194 # Save the log message, to keep $[0] and so on meaningful, and to
26195 # report actual input values of CONFIG_FILES etc. instead of their
26196 # values after options handling.
26197 ac_log="
26198 This file was extended by emacs $as_me 23.1.50, which was
26199 generated by GNU Autoconf 2.62. Invocation command line was
26200
26201 CONFIG_FILES = $CONFIG_FILES
26202 CONFIG_HEADERS = $CONFIG_HEADERS
26203 CONFIG_LINKS = $CONFIG_LINKS
26204 CONFIG_COMMANDS = $CONFIG_COMMANDS
26205 $ $0 $@
26206
26207 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26208 "
26209
26210 _ACEOF
26211
26212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26213 # Files that config.status was made for.
26214 config_files="$ac_config_files"
26215 config_headers="$ac_config_headers"
26216 config_commands="$ac_config_commands"
26217
26218 _ACEOF
26219
26220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26221 ac_cs_usage="\
26222 \`$as_me' instantiates files from templates according to the
26223 current configuration.
26224
26225 Usage: $0 [OPTIONS] [FILE]...
26226
26227 -h, --help print this help, then exit
26228 -V, --version print version number and configuration settings, then exit
26229 -q, --quiet do not print progress messages
26230 -d, --debug don't remove temporary files
26231 --recheck update $as_me by reconfiguring in the same conditions
26232 --file=FILE[:TEMPLATE]
26233 instantiate the configuration file FILE
26234 --header=FILE[:TEMPLATE]
26235 instantiate the configuration header FILE
26236
26237 Configuration files:
26238 $config_files
26239
26240 Configuration headers:
26241 $config_headers
26242
26243 Configuration commands:
26244 $config_commands
26245
26246 Report bugs to <bug-autoconf@gnu.org>."
26247
26248 _ACEOF
26249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26250 ac_cs_version="\\
26251 emacs config.status 23.1.50
26252 configured by $0, generated by GNU Autoconf 2.62,
26253 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26254
26255 Copyright (C) 2008 Free Software Foundation, Inc.
26256 This config.status script is free software; the Free Software Foundation
26257 gives unlimited permission to copy, distribute and modify it."
26258
26259 ac_pwd='$ac_pwd'
26260 srcdir='$srcdir'
26261 INSTALL='$INSTALL'
26262 test -n "\$AWK" || AWK=awk
26263 _ACEOF
26264
26265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26266 # The default lists apply if the user does not specify any file.
26267 ac_need_defaults=:
26268 while test $# != 0
26269 do
26270 case $1 in
26271 --*=*)
26272 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26273 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26274 ac_shift=:
26275 ;;
26276 *)
26277 ac_option=$1
26278 ac_optarg=$2
26279 ac_shift=shift
26280 ;;
26281 esac
26282
26283 case $ac_option in
26284 # Handling of the options.
26285 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26286 ac_cs_recheck=: ;;
26287 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26288 $as_echo "$ac_cs_version"; exit ;;
26289 --debug | --debu | --deb | --de | --d | -d )
26290 debug=: ;;
26291 --file | --fil | --fi | --f )
26292 $ac_shift
26293 case $ac_optarg in
26294 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26295 esac
26296 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26297 ac_need_defaults=false;;
26298 --header | --heade | --head | --hea )
26299 $ac_shift
26300 case $ac_optarg in
26301 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26302 esac
26303 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26304 ac_need_defaults=false;;
26305 --he | --h)
26306 # Conflict between --help and --header
26307 { $as_echo "$as_me: error: ambiguous option: $1
26308 Try \`$0 --help' for more information." >&2
26309 { (exit 1); exit 1; }; };;
26310 --help | --hel | -h )
26311 $as_echo "$ac_cs_usage"; exit ;;
26312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26313 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26314 ac_cs_silent=: ;;
26315
26316 # This is an error.
26317 -*) { $as_echo "$as_me: error: unrecognized option: $1
26318 Try \`$0 --help' for more information." >&2
26319 { (exit 1); exit 1; }; } ;;
26320
26321 *) ac_config_targets="$ac_config_targets $1"
26322 ac_need_defaults=false ;;
26323
26324 esac
26325 shift
26326 done
26327
26328 ac_configure_extra_args=
26329
26330 if $ac_cs_silent; then
26331 exec 6>/dev/null
26332 ac_configure_extra_args="$ac_configure_extra_args --silent"
26333 fi
26334
26335 _ACEOF
26336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26337 if \$ac_cs_recheck; then
26338 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26339 shift
26340 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26341 CONFIG_SHELL='$SHELL'
26342 export CONFIG_SHELL
26343 exec "\$@"
26344 fi
26345
26346 _ACEOF
26347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26348 exec 5>>config.log
26349 {
26350 echo
26351 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26352 ## Running $as_me. ##
26353 _ASBOX
26354 $as_echo "$ac_log"
26355 } >&5
26356
26357 _ACEOF
26358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26359 #
26360 # INIT-COMMANDS
26361 #
26362 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26363
26364 _ACEOF
26365
26366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26367
26368 # Handling of arguments.
26369 for ac_config_target in $ac_config_targets
26370 do
26371 case $ac_config_target in
26372 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26373 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26374 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26375 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26376 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26377 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26378 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26379 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26380 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26381 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26382 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26383 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26384 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26385
26386 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26387 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26388 { (exit 1); exit 1; }; };;
26389 esac
26390 done
26391
26392
26393 # If the user did not use the arguments to specify the items to instantiate,
26394 # then the envvar interface is used. Set only those that are not.
26395 # We use the long form for the default assignment because of an extremely
26396 # bizarre bug on SunOS 4.1.3.
26397 if $ac_need_defaults; then
26398 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26399 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26400 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26401 fi
26402
26403 # Have a temporary directory for convenience. Make it in the build tree
26404 # simply because there is no reason against having it here, and in addition,
26405 # creating and moving files from /tmp can sometimes cause problems.
26406 # Hook for its removal unless debugging.
26407 # Note that there is a small window in which the directory will not be cleaned:
26408 # after its creation but before its name has been assigned to `$tmp'.
26409 $debug ||
26410 {
26411 tmp=
26412 trap 'exit_status=$?
26413 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26414 ' 0
26415 trap '{ (exit 1); exit 1; }' 1 2 13 15
26416 }
26417 # Create a (secure) tmp directory for tmp files.
26418
26419 {
26420 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26421 test -n "$tmp" && test -d "$tmp"
26422 } ||
26423 {
26424 tmp=./conf$$-$RANDOM
26425 (umask 077 && mkdir "$tmp")
26426 } ||
26427 {
26428 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26429 { (exit 1); exit 1; }
26430 }
26431
26432 # Set up the scripts for CONFIG_FILES section.
26433 # No need to generate them if there are no CONFIG_FILES.
26434 # This happens for instance with `./config.status config.h'.
26435 if test -n "$CONFIG_FILES"; then
26436
26437
26438 ac_cr=' '
26439 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26440 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26441 ac_cs_awk_cr='\\r'
26442 else
26443 ac_cs_awk_cr=$ac_cr
26444 fi
26445
26446 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26447 _ACEOF
26448
26449
26450 {
26451 echo "cat >conf$$subs.awk <<_ACEOF" &&
26452 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26453 echo "_ACEOF"
26454 } >conf$$subs.sh ||
26455 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26456 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26457 { (exit 1); exit 1; }; }
26458 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26459 ac_delim='%!_!# '
26460 for ac_last_try in false false false false false :; do
26461 . ./conf$$subs.sh ||
26462 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26463 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26464 { (exit 1); exit 1; }; }
26465
26466 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26467 break
26468 elif $ac_last_try; then
26469 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26470 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26471 { (exit 1); exit 1; }; }
26472 else
26473 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26474 fi
26475 done
26476 rm -f conf$$subs.sh
26477
26478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26479 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26480 _ACEOF
26481 sed -n '
26482 h
26483 s/^/S["/; s/!.*/"]=/
26484 p
26485 g
26486 s/^[^!]*!//
26487 :repl
26488 t repl
26489 s/'"$ac_delim"'$//
26490 t delim
26491 :nl
26492 h
26493 s/\(.\{148\}\).*/\1/
26494 t more1
26495 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26496 p
26497 n
26498 b repl
26499 :more1
26500 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26501 p
26502 g
26503 s/.\{148\}//
26504 t nl
26505 :delim
26506 h
26507 s/\(.\{148\}\).*/\1/
26508 t more2
26509 s/["\\]/\\&/g; s/^/"/; s/$/"/
26510 p
26511 b
26512 :more2
26513 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26514 p
26515 g
26516 s/.\{148\}//
26517 t delim
26518 ' <conf$$subs.awk | sed '
26519 /^[^""]/{
26520 N
26521 s/\n//
26522 }
26523 ' >>$CONFIG_STATUS || ac_write_fail=1
26524 rm -f conf$$subs.awk
26525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26526 _ACAWK
26527 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26528 for (key in S) S_is_set[key] = 1
26529 FS = "\a"
26530
26531 }
26532 {
26533 line = $ 0
26534 nfields = split(line, field, "@")
26535 substed = 0
26536 len = length(field[1])
26537 for (i = 2; i < nfields; i++) {
26538 key = field[i]
26539 keylen = length(key)
26540 if (S_is_set[key]) {
26541 value = S[key]
26542 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26543 len += length(value) + length(field[++i])
26544 substed = 1
26545 } else
26546 len += 1 + keylen
26547 }
26548
26549 print line
26550 }
26551
26552 _ACAWK
26553 _ACEOF
26554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26555 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26556 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26557 else
26558 cat
26559 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26560 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26561 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26562 { (exit 1); exit 1; }; }
26563 _ACEOF
26564
26565 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26566 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26567 # trailing colons and then remove the whole line if VPATH becomes empty
26568 # (actually we leave an empty line to preserve line numbers).
26569 if test "x$srcdir" = x.; then
26570 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26571 s/:*\$(srcdir):*/:/
26572 s/:*\${srcdir}:*/:/
26573 s/:*@srcdir@:*/:/
26574 s/^\([^=]*=[ ]*\):*/\1/
26575 s/:*$//
26576 s/^[^=]*=[ ]*$//
26577 }'
26578 fi
26579
26580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26581 fi # test -n "$CONFIG_FILES"
26582
26583 # Set up the scripts for CONFIG_HEADERS section.
26584 # No need to generate them if there are no CONFIG_HEADERS.
26585 # This happens for instance with `./config.status Makefile'.
26586 if test -n "$CONFIG_HEADERS"; then
26587 cat >"$tmp/defines.awk" <<\_ACAWK ||
26588 BEGIN {
26589 _ACEOF
26590
26591 # Transform confdefs.h into an awk script `defines.awk', embedded as
26592 # here-document in config.status, that substitutes the proper values into
26593 # config.h.in to produce config.h.
26594
26595 # Create a delimiter string that does not exist in confdefs.h, to ease
26596 # handling of long lines.
26597 ac_delim='%!_!# '
26598 for ac_last_try in false false :; do
26599 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26600 if test -z "$ac_t"; then
26601 break
26602 elif $ac_last_try; then
26603 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26604 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26605 { (exit 1); exit 1; }; }
26606 else
26607 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26608 fi
26609 done
26610
26611 # For the awk script, D is an array of macro values keyed by name,
26612 # likewise P contains macro parameters if any. Preserve backslash
26613 # newline sequences.
26614
26615 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26616 sed -n '
26617 s/.\{148\}/&'"$ac_delim"'/g
26618 t rset
26619 :rset
26620 s/^[ ]*#[ ]*define[ ][ ]*/ /
26621 t def
26622 d
26623 :def
26624 s/\\$//
26625 t bsnl
26626 s/["\\]/\\&/g
26627 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26628 D["\1"]=" \3"/p
26629 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26630 d
26631 :bsnl
26632 s/["\\]/\\&/g
26633 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26634 D["\1"]=" \3\\\\\\n"\\/p
26635 t cont
26636 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26637 t cont
26638 d
26639 :cont
26640 n
26641 s/.\{148\}/&'"$ac_delim"'/g
26642 t clear
26643 :clear
26644 s/\\$//
26645 t bsnlc
26646 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26647 d
26648 :bsnlc
26649 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26650 b cont
26651 ' <confdefs.h | sed '
26652 s/'"$ac_delim"'/"\\\
26653 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26654
26655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26656 for (key in D) D_is_set[key] = 1
26657 FS = "\a"
26658 }
26659 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26660 line = \$ 0
26661 split(line, arg, " ")
26662 if (arg[1] == "#") {
26663 defundef = arg[2]
26664 mac1 = arg[3]
26665 } else {
26666 defundef = substr(arg[1], 2)
26667 mac1 = arg[2]
26668 }
26669 split(mac1, mac2, "(") #)
26670 macro = mac2[1]
26671 if (D_is_set[macro]) {
26672 # Preserve the white space surrounding the "#".
26673 prefix = substr(line, 1, index(line, defundef) - 1)
26674 print prefix "define", macro P[macro] D[macro]
26675 next
26676 } else {
26677 # Replace #undef with comments. This is necessary, for example,
26678 # in the case of _POSIX_SOURCE, which is predefined and required
26679 # on some systems where configure will not decide to define it.
26680 if (defundef == "undef") {
26681 print "/*", line, "*/"
26682 next
26683 }
26684 }
26685 }
26686 { print }
26687 _ACAWK
26688 _ACEOF
26689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26690 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26691 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26692 { (exit 1); exit 1; }; }
26693 fi # test -n "$CONFIG_HEADERS"
26694
26695
26696 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26697 shift
26698 for ac_tag
26699 do
26700 case $ac_tag in
26701 :[FHLC]) ac_mode=$ac_tag; continue;;
26702 esac
26703 case $ac_mode$ac_tag in
26704 :[FHL]*:*);;
26705 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26706 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26707 { (exit 1); exit 1; }; };;
26708 :[FH]-) ac_tag=-:-;;
26709 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26710 esac
26711 ac_save_IFS=$IFS
26712 IFS=:
26713 set x $ac_tag
26714 IFS=$ac_save_IFS
26715 shift
26716 ac_file=$1
26717 shift
26718
26719 case $ac_mode in
26720 :L) ac_source=$1;;
26721 :[FH])
26722 ac_file_inputs=
26723 for ac_f
26724 do
26725 case $ac_f in
26726 -) ac_f="$tmp/stdin";;
26727 *) # Look for the file first in the build tree, then in the source tree
26728 # (if the path is not absolute). The absolute path cannot be DOS-style,
26729 # because $ac_f cannot contain `:'.
26730 test -f "$ac_f" ||
26731 case $ac_f in
26732 [\\/$]*) false;;
26733 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26734 esac ||
26735 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26736 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26737 { (exit 1); exit 1; }; };;
26738 esac
26739 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26740 ac_file_inputs="$ac_file_inputs '$ac_f'"
26741 done
26742
26743 # Let's still pretend it is `configure' which instantiates (i.e., don't
26744 # use $as_me), people would be surprised to read:
26745 # /* config.h. Generated by config.status. */
26746 configure_input='Generated from '`
26747 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26748 `' by configure.'
26749 if test x"$ac_file" != x-; then
26750 configure_input="$ac_file. $configure_input"
26751 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26752 $as_echo "$as_me: creating $ac_file" >&6;}
26753 fi
26754 # Neutralize special characters interpreted by sed in replacement strings.
26755 case $configure_input in #(
26756 *\&* | *\|* | *\\* )
26757 ac_sed_conf_input=`$as_echo "$configure_input" |
26758 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26759 *) ac_sed_conf_input=$configure_input;;
26760 esac
26761
26762 case $ac_tag in
26763 *:-:* | *:-) cat >"$tmp/stdin" \
26764 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26765 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26766 { (exit 1); exit 1; }; } ;;
26767 esac
26768 ;;
26769 esac
26770
26771 ac_dir=`$as_dirname -- "$ac_file" ||
26772 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26773 X"$ac_file" : 'X\(//\)[^/]' \| \
26774 X"$ac_file" : 'X\(//\)$' \| \
26775 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26776 $as_echo X"$ac_file" |
26777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26778 s//\1/
26779 q
26780 }
26781 /^X\(\/\/\)[^/].*/{
26782 s//\1/
26783 q
26784 }
26785 /^X\(\/\/\)$/{
26786 s//\1/
26787 q
26788 }
26789 /^X\(\/\).*/{
26790 s//\1/
26791 q
26792 }
26793 s/.*/./; q'`
26794 { as_dir="$ac_dir"
26795 case $as_dir in #(
26796 -*) as_dir=./$as_dir;;
26797 esac
26798 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26799 as_dirs=
26800 while :; do
26801 case $as_dir in #(
26802 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26803 *) as_qdir=$as_dir;;
26804 esac
26805 as_dirs="'$as_qdir' $as_dirs"
26806 as_dir=`$as_dirname -- "$as_dir" ||
26807 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26808 X"$as_dir" : 'X\(//\)[^/]' \| \
26809 X"$as_dir" : 'X\(//\)$' \| \
26810 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26811 $as_echo X"$as_dir" |
26812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26813 s//\1/
26814 q
26815 }
26816 /^X\(\/\/\)[^/].*/{
26817 s//\1/
26818 q
26819 }
26820 /^X\(\/\/\)$/{
26821 s//\1/
26822 q
26823 }
26824 /^X\(\/\).*/{
26825 s//\1/
26826 q
26827 }
26828 s/.*/./; q'`
26829 test -d "$as_dir" && break
26830 done
26831 test -z "$as_dirs" || eval "mkdir $as_dirs"
26832 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26833 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26834 { (exit 1); exit 1; }; }; }
26835 ac_builddir=.
26836
26837 case "$ac_dir" in
26838 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26839 *)
26840 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26841 # A ".." for each directory in $ac_dir_suffix.
26842 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26843 case $ac_top_builddir_sub in
26844 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26845 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26846 esac ;;
26847 esac
26848 ac_abs_top_builddir=$ac_pwd
26849 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26850 # for backward compatibility:
26851 ac_top_builddir=$ac_top_build_prefix
26852
26853 case $srcdir in
26854 .) # We are building in place.
26855 ac_srcdir=.
26856 ac_top_srcdir=$ac_top_builddir_sub
26857 ac_abs_top_srcdir=$ac_pwd ;;
26858 [\\/]* | ?:[\\/]* ) # Absolute name.
26859 ac_srcdir=$srcdir$ac_dir_suffix;
26860 ac_top_srcdir=$srcdir
26861 ac_abs_top_srcdir=$srcdir ;;
26862 *) # Relative name.
26863 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26864 ac_top_srcdir=$ac_top_build_prefix$srcdir
26865 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26866 esac
26867 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26868
26869
26870 case $ac_mode in
26871 :F)
26872 #
26873 # CONFIG_FILE
26874 #
26875
26876 case $INSTALL in
26877 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26878 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26879 esac
26880 _ACEOF
26881
26882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26883 # If the template does not know about datarootdir, expand it.
26884 # FIXME: This hack should be removed a few years after 2.60.
26885 ac_datarootdir_hack=; ac_datarootdir_seen=
26886
26887 ac_sed_dataroot='
26888 /datarootdir/ {
26889 p
26890 q
26891 }
26892 /@datadir@/p
26893 /@docdir@/p
26894 /@infodir@/p
26895 /@localedir@/p
26896 /@mandir@/p
26897 '
26898 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26899 *datarootdir*) ac_datarootdir_seen=yes;;
26900 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26901 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26902 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26903 _ACEOF
26904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26905 ac_datarootdir_hack='
26906 s&@datadir@&$datadir&g
26907 s&@docdir@&$docdir&g
26908 s&@infodir@&$infodir&g
26909 s&@localedir@&$localedir&g
26910 s&@mandir@&$mandir&g
26911 s&\\\${datarootdir}&$datarootdir&g' ;;
26912 esac
26913 _ACEOF
26914
26915 # Neutralize VPATH when `$srcdir' = `.'.
26916 # Shell code in configure.ac might set extrasub.
26917 # FIXME: do we really want to maintain this feature?
26918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26919 ac_sed_extra="$ac_vpsub
26920 $extrasub
26921 _ACEOF
26922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26923 :t
26924 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26925 s|@configure_input@|$ac_sed_conf_input|;t t
26926 s&@top_builddir@&$ac_top_builddir_sub&;t t
26927 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26928 s&@srcdir@&$ac_srcdir&;t t
26929 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26930 s&@top_srcdir@&$ac_top_srcdir&;t t
26931 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26932 s&@builddir@&$ac_builddir&;t t
26933 s&@abs_builddir@&$ac_abs_builddir&;t t
26934 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26935 s&@INSTALL@&$ac_INSTALL&;t t
26936 $ac_datarootdir_hack
26937 "
26938 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26939 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26940 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26941 { (exit 1); exit 1; }; }
26942
26943 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26944 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26945 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26946 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26947 which seems to be undefined. Please make sure it is defined." >&5
26948 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26949 which seems to be undefined. Please make sure it is defined." >&2;}
26950
26951 rm -f "$tmp/stdin"
26952 case $ac_file in
26953 -) cat "$tmp/out" && rm -f "$tmp/out";;
26954 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26955 esac \
26956 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26957 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26958 { (exit 1); exit 1; }; }
26959 ;;
26960 :H)
26961 #
26962 # CONFIG_HEADER
26963 #
26964 if test x"$ac_file" != x-; then
26965 {
26966 $as_echo "/* $configure_input */" \
26967 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26968 } >"$tmp/config.h" \
26969 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26970 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26971 { (exit 1); exit 1; }; }
26972 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26973 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26974 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26975 else
26976 rm -f "$ac_file"
26977 mv "$tmp/config.h" "$ac_file" \
26978 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26979 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26980 { (exit 1); exit 1; }; }
26981 fi
26982 else
26983 $as_echo "/* $configure_input */" \
26984 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26985 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
26986 $as_echo "$as_me: error: could not create -" >&2;}
26987 { (exit 1); exit 1; }; }
26988 fi
26989 ;;
26990
26991 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
26992 $as_echo "$as_me: executing $ac_file commands" >&6;}
26993 ;;
26994 esac
26995
26996
26997 case $ac_file$ac_mode in
26998 "default":C)
26999
27000 ### Make the necessary directories, if they don't exist.
27001 for dir in etc lisp ; do
27002 test -d ${dir} || mkdir ${dir}
27003 done
27004
27005 # Build src/Makefile from ${srcdir}/src/Makefile.c
27006 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27007 # This must be done after src/config.h is built, since we rely on that file.
27008
27009 echo creating src/epaths.h
27010 ${MAKE-make} epaths-force
27011
27012 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27013 # `..' to `. .' unless invoked with -traditional
27014
27015 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
27016 CPPFLAGS="$CPPFLAGS -traditional"
27017 fi
27018
27019 echo creating lib-src/Makefile
27020 ( cd lib-src
27021 rm -f junk.c junk1.c junk2.c
27022 sed -e '/start of cpp stuff/q' \
27023 < Makefile.c > junk1.c
27024 sed -e '1,/start of cpp stuff/d'\
27025 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27026 < Makefile.c > junk.c
27027 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27028 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27029 cat junk1.c junk2.c > Makefile.new
27030 rm -f junk.c junk1.c junk2.c
27031 chmod 444 Makefile.new
27032 mv -f Makefile.new Makefile
27033 )
27034
27035 echo creating src/Makefile
27036 ( cd src
27037 rm -f junk.c junk1.c junk2.c
27038 sed -e '/start of cpp stuff/q' \
27039 < Makefile.c > junk1.c
27040 sed -e '1,/start of cpp stuff/d'\
27041 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27042 < Makefile.c > junk.c
27043 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27044 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27045 cat junk1.c junk2.c > Makefile.new
27046 rm -f junk.c junk1.c junk2.c
27047 chmod 444 Makefile.new
27048 mv -f Makefile.new Makefile
27049 )
27050
27051 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
27052 echo creating src/.gdbinit
27053 echo source $srcdir/src/.gdbinit > src/.gdbinit
27054 fi
27055
27056 ;;
27057
27058 esac
27059 done # for ac_tag
27060
27061
27062 { (exit 0); exit 0; }
27063 _ACEOF
27064 chmod +x $CONFIG_STATUS
27065 ac_clean_files=$ac_clean_files_save
27066
27067 test $ac_write_fail = 0 ||
27068 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27069 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27070 { (exit 1); exit 1; }; }
27071
27072
27073 # configure is writing to config.log, and then calls config.status.
27074 # config.status does its own redirection, appending to config.log.
27075 # Unfortunately, on DOS this fails, as config.log is still kept open
27076 # by configure, so config.status won't be able to write to it; its
27077 # output is simply discarded. So we exec the FD to /dev/null,
27078 # effectively closing config.log, so it can be properly (re)opened and
27079 # appended to by config.status. When coming back to configure, we
27080 # need to make the FD available again.
27081 if test "$no_create" != yes; then
27082 ac_cs_success=:
27083 ac_config_status_args=
27084 test "$silent" = yes &&
27085 ac_config_status_args="$ac_config_status_args --quiet"
27086 exec 5>/dev/null
27087 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27088 exec 5>>config.log
27089 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27090 # would make configure fail if this is the last instruction.
27091 $ac_cs_success || { (exit 1); exit 1; }
27092 fi
27093 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27094 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27095 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
27096 fi
27097
27098