]> code.delx.au - gnu-emacs/blob - configure
Regenerate configure.
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 24.0.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='24.0.50'
598 PACKAGE_STRING='emacs 24.0.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 LIB_MATH
706 CRT_DIR
707 LIBSOUND
708 PKG_CONFIG
709 ALSA_CFLAGS
710 ALSA_LIBS
711 CFLAGS_SOUND
712 SET_MAKE
713 XMKMF
714 NS_OBJ
715 NS_SUPPORT
716 HAVE_XSERVER
717 RSVG_CFLAGS
718 RSVG_LIBS
719 GTK_CFLAGS
720 GTK_LIBS
721 GTK_OBJ
722 DBUS_CFLAGS
723 DBUS_LIBS
724 DBUS_OBJ
725 GCONF_CFLAGS
726 GCONF_LIBS
727 LIBSELINUX_LIBS
728 LIBXTR6
729 LIBXMU
730 FONTCONFIG_CFLAGS
731 FONTCONFIG_LIBS
732 XFT_CFLAGS
733 XFT_LIBS
734 LIBOTF_CFLAGS
735 LIBOTF_LIBS
736 M17N_FLT_CFLAGS
737 M17N_FLT_LIBS
738 FONT_OBJ
739 FREETYPE_CFLAGS
740 FREETYPE_LIBS
741 LIBXPM
742 LIBJPEG
743 LIBPNG
744 LIBTIFF
745 LIBGIF
746 LIBGPM
747 GPM_MOUSE_SUPPORT
748 LIBXSM
749 ALLOCA
750 liblockfile
751 LIBS_MAIL
752 LIBOBJS
753 NEED_SETGID
754 KMEM_GROUP
755 GETLOADAVG_LIBS
756 GETOPT_H
757 GETOPTOBJS
758 LIBHESIOD
759 LIBRESOLV
760 COM_ERRLIB
761 CRYPTOLIB
762 KRB5LIB
763 DESLIB
764 KRB4LIB
765 version
766 configuration
767 canonical
768 srcdir
769 lispdir
770 locallisppath
771 lisppath
772 x_default_search_path
773 etcdir
774 archlibdir
775 bitmapdir
776 gamedir
777 gameuser
778 c_switch_system
779 c_switch_machine
780 unexec
781 LD_SWITCH_X_SITE
782 LD_SWITCH_X_SITE_AUX
783 C_SWITCH_X_SITE
784 C_SWITCH_X_SYSTEM
785 X_TOOLKIT_TYPE
786 machfile
787 opsysfile
788 ns_appdir
789 ns_appbindir
790 ns_appresdir
791 ns_appsrc
792 GNUSTEP_MAKEFILES
793 GNUSTEP_SYSTEM_HEADERS
794 GNUSTEP_SYSTEM_LIBRARIES
795 GNU_OBJC_CFLAGS
796 LIB_SRC_EXTRA_INSTALLABLES
797 OTHER_FILES
798 XMENU_OBJ
799 XOBJ
800 WIDGET_OBJ
801 TOOLKIT_LIBW
802 LIBXT_OTHER
803 OLDXMENU
804 LIBXMENU
805 LIBX_OTHER
806 CYGWIN_OBJ
807 PRE_ALLOC_OBJ
808 POST_ALLOC_OBJ
809 LTLIBOBJS'
810 ac_subst_files=''
811 ac_user_opts='
812 enable_option_checking
813 with_pop
814 with_kerberos
815 with_kerberos5
816 with_hesiod
817 with_mmdf
818 with_mail_unlink
819 with_mailhost
820 with_sound
821 with_sync_input
822 with_x_toolkit
823 with_xpm
824 with_jpeg
825 with_tiff
826 with_gif
827 with_png
828 with_rsvg
829 with_xft
830 with_libotf
831 with_m17n_flt
832 with_toolkit_scroll_bars
833 with_xaw3d
834 with_xim
835 with_ns
836 with_gpm
837 with_dbus
838 with_gconf
839 with_selinux
840 with_makeinfo
841 with_gtk
842 with_gcc
843 with_pkg_config_prog
844 with_crt_dir
845 with_gnustep_conf
846 enable_ns_self_contained
847 enable_asserts
848 enable_maintainer_mode
849 enable_locallisppath
850 enable_checking
851 enable_profiling
852 enable_autodepend
853 enable_largefile
854 with_x
855 '
856 ac_precious_vars='build_alias
857 host_alias
858 target_alias
859 CC
860 CFLAGS
861 LDFLAGS
862 LIBS
863 CPPFLAGS
864 CPP
865 XMKMF'
866
867
868 # Initialize some variables set by options.
869 ac_init_help=
870 ac_init_version=false
871 ac_unrecognized_opts=
872 ac_unrecognized_sep=
873 # The variables have the same names as the options, with
874 # dashes changed to underlines.
875 cache_file=/dev/null
876 exec_prefix=NONE
877 no_create=
878 no_recursion=
879 prefix=NONE
880 program_prefix=NONE
881 program_suffix=NONE
882 program_transform_name=s,x,x,
883 silent=
884 site=
885 srcdir=
886 verbose=
887 x_includes=NONE
888 x_libraries=NONE
889
890 # Installation directory options.
891 # These are left unexpanded so users can "make install exec_prefix=/foo"
892 # and all the variables that are supposed to be based on exec_prefix
893 # by default will actually change.
894 # Use braces instead of parens because sh, perl, etc. also accept them.
895 # (The list follows the same order as the GNU Coding Standards.)
896 bindir='${exec_prefix}/bin'
897 sbindir='${exec_prefix}/sbin'
898 libexecdir='${exec_prefix}/libexec'
899 datarootdir='${prefix}/share'
900 datadir='${datarootdir}'
901 sysconfdir='${prefix}/etc'
902 sharedstatedir='${prefix}/com'
903 localstatedir='${prefix}/var'
904 includedir='${prefix}/include'
905 oldincludedir='/usr/include'
906 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
907 infodir='${datarootdir}/info'
908 htmldir='${docdir}'
909 dvidir='${docdir}'
910 pdfdir='${docdir}'
911 psdir='${docdir}'
912 libdir='${exec_prefix}/lib'
913 localedir='${datarootdir}/locale'
914 mandir='${datarootdir}/man'
915
916 ac_prev=
917 ac_dashdash=
918 for ac_option
919 do
920 # If the previous option needs an argument, assign it.
921 if test -n "$ac_prev"; then
922 eval $ac_prev=\$ac_option
923 ac_prev=
924 continue
925 fi
926
927 case $ac_option in
928 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
929 *) ac_optarg=yes ;;
930 esac
931
932 # Accept the important Cygnus configure options, so we can diagnose typos.
933
934 case $ac_dashdash$ac_option in
935 --)
936 ac_dashdash=yes ;;
937
938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
939 ac_prev=bindir ;;
940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941 bindir=$ac_optarg ;;
942
943 -build | --build | --buil | --bui | --bu)
944 ac_prev=build_alias ;;
945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946 build_alias=$ac_optarg ;;
947
948 -cache-file | --cache-file | --cache-fil | --cache-fi \
949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950 ac_prev=cache_file ;;
951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953 cache_file=$ac_optarg ;;
954
955 --config-cache | -C)
956 cache_file=config.cache ;;
957
958 -datadir | --datadir | --datadi | --datad)
959 ac_prev=datadir ;;
960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
961 datadir=$ac_optarg ;;
962
963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964 | --dataroo | --dataro | --datar)
965 ac_prev=datarootdir ;;
966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 datarootdir=$ac_optarg ;;
969
970 -disable-* | --disable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
975 { (exit 1); exit 1; }; }
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
979 *"
980 "enable_$ac_useropt"
981 "*) ;;
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
984 esac
985 eval enable_$ac_useropt=no ;;
986
987 -docdir | --docdir | --docdi | --doc | --do)
988 ac_prev=docdir ;;
989 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
990 docdir=$ac_optarg ;;
991
992 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
993 ac_prev=dvidir ;;
994 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
995 dvidir=$ac_optarg ;;
996
997 -enable-* | --enable-*)
998 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1002 { (exit 1); exit 1; }; }
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1006 *"
1007 "enable_$ac_useropt"
1008 "*) ;;
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1011 esac
1012 eval enable_$ac_useropt=\$ac_optarg ;;
1013
1014 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1015 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1016 | --exec | --exe | --ex)
1017 ac_prev=exec_prefix ;;
1018 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1019 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1020 | --exec=* | --exe=* | --ex=*)
1021 exec_prefix=$ac_optarg ;;
1022
1023 -gas | --gas | --ga | --g)
1024 # Obsolete; use --with-gas.
1025 with_gas=yes ;;
1026
1027 -help | --help | --hel | --he | -h)
1028 ac_init_help=long ;;
1029 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1030 ac_init_help=recursive ;;
1031 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1032 ac_init_help=short ;;
1033
1034 -host | --host | --hos | --ho)
1035 ac_prev=host_alias ;;
1036 -host=* | --host=* | --hos=* | --ho=*)
1037 host_alias=$ac_optarg ;;
1038
1039 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1040 ac_prev=htmldir ;;
1041 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1042 | --ht=*)
1043 htmldir=$ac_optarg ;;
1044
1045 -includedir | --includedir | --includedi | --included | --include \
1046 | --includ | --inclu | --incl | --inc)
1047 ac_prev=includedir ;;
1048 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1049 | --includ=* | --inclu=* | --incl=* | --inc=*)
1050 includedir=$ac_optarg ;;
1051
1052 -infodir | --infodir | --infodi | --infod | --info | --inf)
1053 ac_prev=infodir ;;
1054 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1055 infodir=$ac_optarg ;;
1056
1057 -libdir | --libdir | --libdi | --libd)
1058 ac_prev=libdir ;;
1059 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1060 libdir=$ac_optarg ;;
1061
1062 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1063 | --libexe | --libex | --libe)
1064 ac_prev=libexecdir ;;
1065 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1066 | --libexe=* | --libex=* | --libe=*)
1067 libexecdir=$ac_optarg ;;
1068
1069 -localedir | --localedir | --localedi | --localed | --locale)
1070 ac_prev=localedir ;;
1071 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1072 localedir=$ac_optarg ;;
1073
1074 -localstatedir | --localstatedir | --localstatedi | --localstated \
1075 | --localstate | --localstat | --localsta | --localst | --locals)
1076 ac_prev=localstatedir ;;
1077 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1078 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1079 localstatedir=$ac_optarg ;;
1080
1081 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1082 ac_prev=mandir ;;
1083 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1084 mandir=$ac_optarg ;;
1085
1086 -nfp | --nfp | --nf)
1087 # Obsolete; use --without-fp.
1088 with_fp=no ;;
1089
1090 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1091 | --no-cr | --no-c | -n)
1092 no_create=yes ;;
1093
1094 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1095 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1096 no_recursion=yes ;;
1097
1098 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1099 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1100 | --oldin | --oldi | --old | --ol | --o)
1101 ac_prev=oldincludedir ;;
1102 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1103 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1104 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1105 oldincludedir=$ac_optarg ;;
1106
1107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1108 ac_prev=prefix ;;
1109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1110 prefix=$ac_optarg ;;
1111
1112 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1113 | --program-pre | --program-pr | --program-p)
1114 ac_prev=program_prefix ;;
1115 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1116 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1117 program_prefix=$ac_optarg ;;
1118
1119 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1120 | --program-suf | --program-su | --program-s)
1121 ac_prev=program_suffix ;;
1122 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1123 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1124 program_suffix=$ac_optarg ;;
1125
1126 -program-transform-name | --program-transform-name \
1127 | --program-transform-nam | --program-transform-na \
1128 | --program-transform-n | --program-transform- \
1129 | --program-transform | --program-transfor \
1130 | --program-transfo | --program-transf \
1131 | --program-trans | --program-tran \
1132 | --progr-tra | --program-tr | --program-t)
1133 ac_prev=program_transform_name ;;
1134 -program-transform-name=* | --program-transform-name=* \
1135 | --program-transform-nam=* | --program-transform-na=* \
1136 | --program-transform-n=* | --program-transform-=* \
1137 | --program-transform=* | --program-transfor=* \
1138 | --program-transfo=* | --program-transf=* \
1139 | --program-trans=* | --program-tran=* \
1140 | --progr-tra=* | --program-tr=* | --program-t=*)
1141 program_transform_name=$ac_optarg ;;
1142
1143 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1144 ac_prev=pdfdir ;;
1145 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1146 pdfdir=$ac_optarg ;;
1147
1148 -psdir | --psdir | --psdi | --psd | --ps)
1149 ac_prev=psdir ;;
1150 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151 psdir=$ac_optarg ;;
1152
1153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154 | -silent | --silent | --silen | --sile | --sil)
1155 silent=yes ;;
1156
1157 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1158 ac_prev=sbindir ;;
1159 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1160 | --sbi=* | --sb=*)
1161 sbindir=$ac_optarg ;;
1162
1163 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1164 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1165 | --sharedst | --shareds | --shared | --share | --shar \
1166 | --sha | --sh)
1167 ac_prev=sharedstatedir ;;
1168 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1169 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1170 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1171 | --sha=* | --sh=*)
1172 sharedstatedir=$ac_optarg ;;
1173
1174 -site | --site | --sit)
1175 ac_prev=site ;;
1176 -site=* | --site=* | --sit=*)
1177 site=$ac_optarg ;;
1178
1179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1180 ac_prev=srcdir ;;
1181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1182 srcdir=$ac_optarg ;;
1183
1184 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1185 | --syscon | --sysco | --sysc | --sys | --sy)
1186 ac_prev=sysconfdir ;;
1187 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1188 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1189 sysconfdir=$ac_optarg ;;
1190
1191 -target | --target | --targe | --targ | --tar | --ta | --t)
1192 ac_prev=target_alias ;;
1193 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1194 target_alias=$ac_optarg ;;
1195
1196 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1197 verbose=yes ;;
1198
1199 -version | --version | --versio | --versi | --vers | -V)
1200 ac_init_version=: ;;
1201
1202 -with-* | --with-*)
1203 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1207 { (exit 1); exit 1; }; }
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1211 *"
1212 "with_$ac_useropt"
1213 "*) ;;
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1216 esac
1217 eval with_$ac_useropt=\$ac_optarg ;;
1218
1219 -without-* | --without-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1224 { (exit 1); exit 1; }; }
1225 ac_useropt_orig=$ac_useropt
1226 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1228 *"
1229 "with_$ac_useropt"
1230 "*) ;;
1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1232 ac_unrecognized_sep=', ';;
1233 esac
1234 eval with_$ac_useropt=no ;;
1235
1236 --x)
1237 # Obsolete; use --with-x.
1238 with_x=yes ;;
1239
1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241 | --x-incl | --x-inc | --x-in | --x-i)
1242 ac_prev=x_includes ;;
1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245 x_includes=$ac_optarg ;;
1246
1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249 ac_prev=x_libraries ;;
1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252 x_libraries=$ac_optarg ;;
1253
1254 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1255 Try \`$0 --help' for more information." >&2
1256 { (exit 1); exit 1; }; }
1257 ;;
1258
1259 *=*)
1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264 { (exit 1); exit 1; }; }
1265 eval $ac_envvar=\$ac_optarg
1266 export $ac_envvar ;;
1267
1268 *)
1269 # FIXME: should be removed in autoconf 3.0.
1270 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274 ;;
1275
1276 esac
1277 done
1278
1279 if test -n "$ac_prev"; then
1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1282 { (exit 1); exit 1; }; }
1283 fi
1284
1285 if test -n "$ac_unrecognized_opts"; then
1286 case $enable_option_checking in
1287 no) ;;
1288 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1289 { (exit 1); exit 1; }; } ;;
1290 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291 esac
1292 fi
1293
1294 # Check all directory arguments for consistency.
1295 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir
1299 do
1300 eval ac_val=\$$ac_var
1301 # Remove trailing slashes.
1302 case $ac_val in
1303 */ )
1304 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305 eval $ac_var=\$ac_val;;
1306 esac
1307 # Be sure to have absolute directory names.
1308 case $ac_val in
1309 [\\/$]* | ?:[\\/]* ) continue;;
1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311 esac
1312 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1313 { (exit 1); exit 1; }; }
1314 done
1315
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1319 build=$build_alias
1320 host=$host_alias
1321 target=$target_alias
1322
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325 if test "x$build_alias" = x; then
1326 cross_compiling=maybe
1327 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1328 If a cross compiler is detected then cross compile mode will be used." >&2
1329 elif test "x$build_alias" != "x$host_alias"; then
1330 cross_compiling=yes
1331 fi
1332 fi
1333
1334 ac_tool_prefix=
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336
1337 test "$silent" = yes && exec 6>/dev/null
1338
1339
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1344 { (exit 1); exit 1; }; }
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1347 { (exit 1); exit 1; }; }
1348
1349
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352 ac_srcdir_defaulted=yes
1353 # Try the directory containing this script, then the parent directory.
1354 ac_confdir=`$as_dirname -- "$as_myself" ||
1355 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356 X"$as_myself" : 'X\(//\)[^/]' \| \
1357 X"$as_myself" : 'X\(//\)$' \| \
1358 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359 $as_echo X"$as_myself" |
1360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\/\)[^/].*/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\/\)$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\).*/{
1373 s//\1/
1374 q
1375 }
1376 s/.*/./; q'`
1377 srcdir=$ac_confdir
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379 srcdir=..
1380 fi
1381 else
1382 ac_srcdir_defaulted=no
1383 fi
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1387 { (exit 1); exit 1; }; }
1388 fi
1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 ac_abs_confdir=`(
1391 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1392 { (exit 1); exit 1; }; }
1393 pwd)`
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 srcdir=.
1397 fi
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1401 case $srcdir in
1402 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403 esac
1404 for ac_var in $ac_precious_vars; do
1405 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_env_${ac_var}_value=\$${ac_var}
1407 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409 done
1410
1411 #
1412 # Report the --help message.
1413 #
1414 if test "$ac_init_help" = "long"; then
1415 # Omit some internal or obsolete options to make the list less imposing.
1416 # This message is too long to be a string in the A/UX 3.1 sh.
1417 cat <<_ACEOF
1418 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1419
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1421
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE. See below for descriptions of some of the useful variables.
1424
1425 Defaults for the options are specified in brackets.
1426
1427 Configuration:
1428 -h, --help display this help and exit
1429 --help=short display options specific to this package
1430 --help=recursive display the short help of all the included packages
1431 -V, --version display version information and exit
1432 -q, --quiet, --silent do not print \`checking...' messages
1433 --cache-file=FILE cache test results in FILE [disabled]
1434 -C, --config-cache alias for \`--cache-file=config.cache'
1435 -n, --no-create do not create output files
1436 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1437
1438 Installation directories:
1439 --prefix=PREFIX install architecture-independent files in PREFIX
1440 [$ac_default_prefix]
1441 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1442 [PREFIX]
1443
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1448
1449 For better control, use the options below.
1450
1451 Fine tuning of the installation directories:
1452 --bindir=DIR user executables [EPREFIX/bin]
1453 --sbindir=DIR system admin executables [EPREFIX/sbin]
1454 --libexecdir=DIR program executables [EPREFIX/libexec]
1455 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1456 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1457 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1458 --libdir=DIR object code libraries [EPREFIX/lib]
1459 --includedir=DIR C header files [PREFIX/include]
1460 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1461 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1462 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1463 --infodir=DIR info documentation [DATAROOTDIR/info]
1464 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1465 --mandir=DIR man documentation [DATAROOTDIR/man]
1466 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1467 --htmldir=DIR html documentation [DOCDIR]
1468 --dvidir=DIR dvi documentation [DOCDIR]
1469 --pdfdir=DIR pdf documentation [DOCDIR]
1470 --psdir=DIR ps documentation [DOCDIR]
1471 _ACEOF
1472
1473 cat <<\_ACEOF
1474
1475 Program names:
1476 --program-prefix=PREFIX prepend PREFIX to installed program names
1477 --program-suffix=SUFFIX append SUFFIX to installed program names
1478 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1479
1480 X features:
1481 --x-includes=DIR X include files are in DIR
1482 --x-libraries=DIR X library files are in DIR
1483
1484 System types:
1485 --build=BUILD configure for building on BUILD [guessed]
1486 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1487 _ACEOF
1488 fi
1489
1490 if test -n "$ac_init_help"; then
1491 case $ac_init_help in
1492 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1493 esac
1494 cat <<\_ACEOF
1495
1496 Optional Features:
1497 --disable-option-checking ignore unrecognized --enable/--with options
1498 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1499 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1500 --disable-ns-self-contained
1501 disable self contained build under NeXTstep
1502 --enable-asserts compile code with asserts enabled
1503 --enable-maintainer-mode
1504 enable make rules and dependencies not useful (and
1505 sometimes confusing) to the casual installer
1506 --enable-locallisppath=PATH
1507 directories Emacs should search for lisp files
1508 specific to this site
1509 --enable-checking[=LIST]
1510 enable expensive run-time checks. With LIST, enable
1511 only specific categories of checks. Categories are:
1512 all,yes,no. Flags are: stringbytes, stringoverrun,
1513 stringfreelist, xmallocoverrun, conslist
1514 --enable-profiling build emacs with profiling support. This might not
1515 work on all platforms
1516 --enable-autodepend automatically generate dependencies to .h-files.
1517 Requires GNU Make and Gcc. Enabled if GNU Make and
1518 Gcc is found
1519 --disable-largefile omit support for large files
1520
1521 Optional Packages:
1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1524 --without-pop don't support POP mail retrieval with movemail
1525 --with-kerberos support Kerberos-authenticated POP
1526 --with-kerberos5 support Kerberos version 5 authenticated POP
1527 --with-hesiod support Hesiod to get the POP server host
1528 --with-mmdf support MMDF mailboxes
1529 --with-mail-unlink unlink, rather than empty, mail spool after reading
1530 --with-mailhost=HOSTNAME
1531 string giving default POP mail host
1532 --without-sound don't compile with sound support
1533 --without-sync-input process async input synchronously
1534 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1535 athena, motif, no)
1536 --without-xpm don't compile with XPM image support
1537 --without-jpeg don't compile with JPEG image support
1538 --without-tiff don't compile with TIFF image support
1539 --without-gif don't compile with GIF image support
1540 --without-png don't compile with PNG image support
1541 --without-rsvg don't compile with SVG image support
1542 --without-xft don't use XFT for anti aliased fonts
1543 --without-libotf don't use libotf for OpenType font support
1544 --without-m17n-flt don't use m17n-flt for text shaping
1545 --without-toolkit-scroll-bars
1546 don't use Motif or Xaw3d scroll bars
1547 --without-xaw3d don't use Xaw3d
1548 --without-xim don't use X11 XIM
1549 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1550 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1551 console
1552 --without-dbus don't compile with D-Bus support
1553 --without-gconf don't compile with GConf support
1554 --without-selinux don't compile with SELinux support
1555 --without-makeinfo don't require makeinfo for building manuals
1556
1557 --with-pkg-config-prog=PATH
1558 path to pkg-config for finding GTK and librsvg
1559 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1560 /usr/lib, or /usr/lib64 on some platforms.
1561 --with-gnustep-conf=PATH
1562 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1563 or /etc/GNUstep/GNUstep.conf
1564 --with-x use the X Window System
1565
1566 Some influential environment variables:
1567 CC C compiler command
1568 CFLAGS C compiler flags
1569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1570 nonstandard directory <lib dir>
1571 LIBS libraries to pass to the linker, e.g. -l<library>
1572 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1573 you have headers in a nonstandard directory <include dir>
1574 CPP C preprocessor
1575 XMKMF Path to xmkmf, Makefile generator for X Window System
1576
1577 Use these variables to override the choices made by `configure' or to help
1578 it to find libraries and programs with nonstandard names/locations.
1579
1580 _ACEOF
1581 ac_status=$?
1582 fi
1583
1584 if test "$ac_init_help" = "recursive"; then
1585 # If there are subdirs, report their specific --help.
1586 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1587 test -d "$ac_dir" ||
1588 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1589 continue
1590 ac_builddir=.
1591
1592 case "$ac_dir" in
1593 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 *)
1595 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1596 # A ".." for each directory in $ac_dir_suffix.
1597 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1598 case $ac_top_builddir_sub in
1599 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1601 esac ;;
1602 esac
1603 ac_abs_top_builddir=$ac_pwd
1604 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1605 # for backward compatibility:
1606 ac_top_builddir=$ac_top_build_prefix
1607
1608 case $srcdir in
1609 .) # We are building in place.
1610 ac_srcdir=.
1611 ac_top_srcdir=$ac_top_builddir_sub
1612 ac_abs_top_srcdir=$ac_pwd ;;
1613 [\\/]* | ?:[\\/]* ) # Absolute name.
1614 ac_srcdir=$srcdir$ac_dir_suffix;
1615 ac_top_srcdir=$srcdir
1616 ac_abs_top_srcdir=$srcdir ;;
1617 *) # Relative name.
1618 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1619 ac_top_srcdir=$ac_top_build_prefix$srcdir
1620 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1621 esac
1622 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1623
1624 cd "$ac_dir" || { ac_status=$?; continue; }
1625 # Check for guested configure.
1626 if test -f "$ac_srcdir/configure.gnu"; then
1627 echo &&
1628 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1629 elif test -f "$ac_srcdir/configure"; then
1630 echo &&
1631 $SHELL "$ac_srcdir/configure" --help=recursive
1632 else
1633 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1634 fi || ac_status=$?
1635 cd "$ac_pwd" || { ac_status=$?; break; }
1636 done
1637 fi
1638
1639 test -n "$ac_init_help" && exit $ac_status
1640 if $ac_init_version; then
1641 cat <<\_ACEOF
1642 emacs configure 24.0.50
1643 generated by GNU Autoconf 2.62
1644
1645 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1646 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1647 This configure script is free software; the Free Software Foundation
1648 gives unlimited permission to copy, distribute and modify it.
1649 _ACEOF
1650 exit
1651 fi
1652 cat >config.log <<_ACEOF
1653 This file contains any messages produced by compilers while
1654 running configure, to aid debugging if configure makes a mistake.
1655
1656 It was created by emacs $as_me 24.0.50, which was
1657 generated by GNU Autoconf 2.62. Invocation command line was
1658
1659 $ $0 $@
1660
1661 _ACEOF
1662 exec 5>>config.log
1663 {
1664 cat <<_ASUNAME
1665 ## --------- ##
1666 ## Platform. ##
1667 ## --------- ##
1668
1669 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1670 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1671 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1672 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1673 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1674
1675 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1676 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1677
1678 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1679 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1680 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1681 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1682 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1683 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1684 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1685
1686 _ASUNAME
1687
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 for as_dir in $PATH
1690 do
1691 IFS=$as_save_IFS
1692 test -z "$as_dir" && as_dir=.
1693 $as_echo "PATH: $as_dir"
1694 done
1695 IFS=$as_save_IFS
1696
1697 } >&5
1698
1699 cat >&5 <<_ACEOF
1700
1701
1702 ## ----------- ##
1703 ## Core tests. ##
1704 ## ----------- ##
1705
1706 _ACEOF
1707
1708
1709 # Keep a trace of the command line.
1710 # Strip out --no-create and --no-recursion so they do not pile up.
1711 # Strip out --silent because we don't want to record it for future runs.
1712 # Also quote any args containing shell meta-characters.
1713 # Make two passes to allow for proper duplicate-argument suppression.
1714 ac_configure_args=
1715 ac_configure_args0=
1716 ac_configure_args1=
1717 ac_must_keep_next=false
1718 for ac_pass in 1 2
1719 do
1720 for ac_arg
1721 do
1722 case $ac_arg in
1723 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1724 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1725 | -silent | --silent | --silen | --sile | --sil)
1726 continue ;;
1727 *\'*)
1728 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1729 esac
1730 case $ac_pass in
1731 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1732 2)
1733 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1734 if test $ac_must_keep_next = true; then
1735 ac_must_keep_next=false # Got value, back to normal.
1736 else
1737 case $ac_arg in
1738 *=* | --config-cache | -C | -disable-* | --disable-* \
1739 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1740 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1741 | -with-* | --with-* | -without-* | --without-* | --x)
1742 case "$ac_configure_args0 " in
1743 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1744 esac
1745 ;;
1746 -* ) ac_must_keep_next=true ;;
1747 esac
1748 fi
1749 ac_configure_args="$ac_configure_args '$ac_arg'"
1750 ;;
1751 esac
1752 done
1753 done
1754 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1755 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1756
1757 # When interrupted or exit'd, cleanup temporary files, and complete
1758 # config.log. We remove comments because anyway the quotes in there
1759 # would cause problems or look ugly.
1760 # WARNING: Use '\'' to represent an apostrophe within the trap.
1761 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1762 trap 'exit_status=$?
1763 # Save into config.log some information that might help in debugging.
1764 {
1765 echo
1766
1767 cat <<\_ASBOX
1768 ## ---------------- ##
1769 ## Cache variables. ##
1770 ## ---------------- ##
1771 _ASBOX
1772 echo
1773 # The following way of writing the cache mishandles newlines in values,
1774 (
1775 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1776 eval ac_val=\$$ac_var
1777 case $ac_val in #(
1778 *${as_nl}*)
1779 case $ac_var in #(
1780 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1781 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1782 esac
1783 case $ac_var in #(
1784 _ | IFS | as_nl) ;; #(
1785 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1786 *) $as_unset $ac_var ;;
1787 esac ;;
1788 esac
1789 done
1790 (set) 2>&1 |
1791 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1792 *${as_nl}ac_space=\ *)
1793 sed -n \
1794 "s/'\''/'\''\\\\'\'''\''/g;
1795 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1796 ;; #(
1797 *)
1798 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1799 ;;
1800 esac |
1801 sort
1802 )
1803 echo
1804
1805 cat <<\_ASBOX
1806 ## ----------------- ##
1807 ## Output variables. ##
1808 ## ----------------- ##
1809 _ASBOX
1810 echo
1811 for ac_var in $ac_subst_vars
1812 do
1813 eval ac_val=\$$ac_var
1814 case $ac_val in
1815 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1816 esac
1817 $as_echo "$ac_var='\''$ac_val'\''"
1818 done | sort
1819 echo
1820
1821 if test -n "$ac_subst_files"; then
1822 cat <<\_ASBOX
1823 ## ------------------- ##
1824 ## File substitutions. ##
1825 ## ------------------- ##
1826 _ASBOX
1827 echo
1828 for ac_var in $ac_subst_files
1829 do
1830 eval ac_val=\$$ac_var
1831 case $ac_val in
1832 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1833 esac
1834 $as_echo "$ac_var='\''$ac_val'\''"
1835 done | sort
1836 echo
1837 fi
1838
1839 if test -s confdefs.h; then
1840 cat <<\_ASBOX
1841 ## ----------- ##
1842 ## confdefs.h. ##
1843 ## ----------- ##
1844 _ASBOX
1845 echo
1846 cat confdefs.h
1847 echo
1848 fi
1849 test "$ac_signal" != 0 &&
1850 $as_echo "$as_me: caught signal $ac_signal"
1851 $as_echo "$as_me: exit $exit_status"
1852 } >&5
1853 rm -f core *.core core.conftest.* &&
1854 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1855 exit $exit_status
1856 ' 0
1857 for ac_signal in 1 2 13 15; do
1858 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1859 done
1860 ac_signal=0
1861
1862 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1863 rm -f -r conftest* confdefs.h
1864
1865 # Predefined preprocessor variables.
1866
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_NAME "$PACKAGE_NAME"
1869 _ACEOF
1870
1871
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1874 _ACEOF
1875
1876
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1879 _ACEOF
1880
1881
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE_STRING "$PACKAGE_STRING"
1884 _ACEOF
1885
1886
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1889 _ACEOF
1890
1891
1892 # Let the site file select an alternate cache file if it wants to.
1893 # Prefer an explicitly selected file to automatically selected ones.
1894 ac_site_file1=NONE
1895 ac_site_file2=NONE
1896 if test -n "$CONFIG_SITE"; then
1897 ac_site_file1=$CONFIG_SITE
1898 elif test "x$prefix" != xNONE; then
1899 ac_site_file1=$prefix/share/config.site
1900 ac_site_file2=$prefix/etc/config.site
1901 else
1902 ac_site_file1=$ac_default_prefix/share/config.site
1903 ac_site_file2=$ac_default_prefix/etc/config.site
1904 fi
1905 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1906 do
1907 test "x$ac_site_file" = xNONE && continue
1908 if test -r "$ac_site_file"; then
1909 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1910 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1911 sed 's/^/| /' "$ac_site_file" >&5
1912 . "$ac_site_file"
1913 fi
1914 done
1915
1916 if test -r "$cache_file"; then
1917 # Some versions of bash will fail to source /dev/null (special
1918 # files actually), so we avoid doing that.
1919 if test -f "$cache_file"; then
1920 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1921 $as_echo "$as_me: loading cache $cache_file" >&6;}
1922 case $cache_file in
1923 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1924 *) . "./$cache_file";;
1925 esac
1926 fi
1927 else
1928 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1929 $as_echo "$as_me: creating cache $cache_file" >&6;}
1930 >$cache_file
1931 fi
1932
1933 ac_header_list="$ac_header_list sys/time.h"
1934 ac_header_list="$ac_header_list unistd.h"
1935 ac_func_list="$ac_func_list alarm"
1936 # Check that the precious variables saved in the cache have kept the same
1937 # value.
1938 ac_cache_corrupted=false
1939 for ac_var in $ac_precious_vars; do
1940 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1941 eval ac_new_set=\$ac_env_${ac_var}_set
1942 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1943 eval ac_new_val=\$ac_env_${ac_var}_value
1944 case $ac_old_set,$ac_new_set in
1945 set,)
1946 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1947 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1948 ac_cache_corrupted=: ;;
1949 ,set)
1950 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1951 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1952 ac_cache_corrupted=: ;;
1953 ,);;
1954 *)
1955 if test "x$ac_old_val" != "x$ac_new_val"; then
1956 # differences in whitespace do not lead to failure.
1957 ac_old_val_w=`echo x $ac_old_val`
1958 ac_new_val_w=`echo x $ac_new_val`
1959 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1960 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1961 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1962 ac_cache_corrupted=:
1963 else
1964 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1965 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1966 eval $ac_var=\$ac_old_val
1967 fi
1968 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1969 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1970 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1971 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1972 fi;;
1973 esac
1974 # Pass precious variables to config.status.
1975 if test "$ac_new_set" = set; then
1976 case $ac_new_val in
1977 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1978 *) ac_arg=$ac_var=$ac_new_val ;;
1979 esac
1980 case " $ac_configure_args " in
1981 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1982 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1983 esac
1984 fi
1985 done
1986 if $ac_cache_corrupted; then
1987 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1988 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1989 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1990 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1991 { (exit 1); exit 1; }; }
1992 fi
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018 ac_ext=c
2019 ac_cpp='$CPP $CPPFLAGS'
2020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2023
2024
2025 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2026
2027
2028
2029 test "$program_prefix" != NONE &&
2030 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2031 # Use a double $ so make ignores it.
2032 test "$program_suffix" != NONE &&
2033 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2034 # Double any \ or $.
2035 # By default was `s,x,x', remove it if useless.
2036 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2037 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2038
2039
2040 lispdir='${datadir}/emacs/${version}/lisp'
2041 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2042 '${datadir}/emacs/site-lisp'
2043 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2044 etcdir='${datadir}/emacs/${version}/etc'
2045 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2046 docdir='${datadir}/emacs/${version}/etc'
2047 gamedir='${localstatedir}/games/emacs'
2048
2049 gameuser=games
2050
2051
2052
2053
2054 # Check whether --with-pop was given.
2055 if test "${with_pop+set}" = set; then
2056 withval=$with_pop;
2057 else
2058 with_pop=yes
2059 fi
2060
2061 if test "$with_pop" = yes; then
2062 cat >>confdefs.h <<\_ACEOF
2063 #define MAIL_USE_POP 1
2064 _ACEOF
2065
2066 fi
2067
2068
2069
2070 # Check whether --with-kerberos was given.
2071 if test "${with_kerberos+set}" = set; then
2072 withval=$with_kerberos;
2073 else
2074 with_kerberos=no
2075 fi
2076
2077 if test "$with_kerberos" != no; then
2078 cat >>confdefs.h <<\_ACEOF
2079 #define KERBEROS 1
2080 _ACEOF
2081
2082 fi
2083
2084
2085
2086 # Check whether --with-kerberos5 was given.
2087 if test "${with_kerberos5+set}" = set; then
2088 withval=$with_kerberos5;
2089 else
2090 with_kerberos5=no
2091 fi
2092
2093 if test "${with_kerberos5}" != no; then
2094 if test "${with_kerberos}" = no; then
2095 with_kerberos=yes
2096 cat >>confdefs.h <<\_ACEOF
2097 #define KERBEROS 1
2098 _ACEOF
2099
2100 fi
2101
2102 cat >>confdefs.h <<\_ACEOF
2103 #define KERBEROS5 1
2104 _ACEOF
2105
2106 fi
2107
2108
2109 # Check whether --with-hesiod was given.
2110 if test "${with_hesiod+set}" = set; then
2111 withval=$with_hesiod;
2112 else
2113 with_hesiod=no
2114 fi
2115
2116 if test "$with_hesiod" != no; then
2117
2118 cat >>confdefs.h <<\_ACEOF
2119 #define HESIOD 1
2120 _ACEOF
2121
2122 fi
2123
2124
2125 # Check whether --with-mmdf was given.
2126 if test "${with_mmdf+set}" = set; then
2127 withval=$with_mmdf;
2128 else
2129 with_mmdf=no
2130 fi
2131
2132 if test "$with_mmdf" != no; then
2133
2134 cat >>confdefs.h <<\_ACEOF
2135 #define MAIL_USE_MMDF 1
2136 _ACEOF
2137
2138 fi
2139
2140
2141 # Check whether --with-mail-unlink was given.
2142 if test "${with_mail_unlink+set}" = set; then
2143 withval=$with_mail_unlink;
2144 else
2145 with_mail_unlink=no
2146 fi
2147
2148 if test "$with_mail_unlink" != no; then
2149
2150 cat >>confdefs.h <<\_ACEOF
2151 #define MAIL_UNLINK_SPOOL 1
2152 _ACEOF
2153
2154 fi
2155
2156
2157 # Check whether --with-mailhost was given.
2158 if test "${with_mailhost+set}" = set; then
2159 withval=$with_mailhost;
2160 cat >>confdefs.h <<_ACEOF
2161 #define MAILHOST "$withval"
2162 _ACEOF
2163
2164 fi
2165
2166
2167
2168 # Check whether --with-sound was given.
2169 if test "${with_sound+set}" = set; then
2170 withval=$with_sound;
2171 else
2172 with_sound=yes
2173 fi
2174
2175
2176
2177 # Check whether --with-sync-input was given.
2178 if test "${with_sync_input+set}" = set; then
2179 withval=$with_sync_input;
2180 else
2181 with_sync_input=yes
2182 fi
2183
2184 if test "$with_sync_input" = yes; then
2185
2186 cat >>confdefs.h <<\_ACEOF
2187 #define SYNC_INPUT 1
2188 _ACEOF
2189
2190 fi
2191
2192
2193 # Check whether --with-x-toolkit was given.
2194 if test "${with_x_toolkit+set}" = set; then
2195 withval=$with_x_toolkit; case "${withval}" in
2196 y | ye | yes ) val=gtk ;;
2197 n | no ) val=no ;;
2198 l | lu | luc | luci | lucid ) val=lucid ;;
2199 a | at | ath | athe | athen | athena ) val=athena ;;
2200 m | mo | mot | moti | motif ) val=motif ;;
2201 g | gt | gtk ) val=gtk ;;
2202 * )
2203 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2204 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2205 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2206 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2207 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2208 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2209 { (exit 1); exit 1; }; }
2210 ;;
2211 esac
2212 with_x_toolkit=$val
2213
2214 fi
2215
2216
2217
2218 # Check whether --with-xpm was given.
2219 if test "${with_xpm+set}" = set; then
2220 withval=$with_xpm;
2221 else
2222 with_xpm=yes
2223 fi
2224
2225
2226 # Check whether --with-jpeg was given.
2227 if test "${with_jpeg+set}" = set; then
2228 withval=$with_jpeg;
2229 else
2230 with_jpeg=yes
2231 fi
2232
2233
2234 # Check whether --with-tiff was given.
2235 if test "${with_tiff+set}" = set; then
2236 withval=$with_tiff;
2237 else
2238 with_tiff=yes
2239 fi
2240
2241
2242 # Check whether --with-gif was given.
2243 if test "${with_gif+set}" = set; then
2244 withval=$with_gif;
2245 else
2246 with_gif=yes
2247 fi
2248
2249
2250 # Check whether --with-png was given.
2251 if test "${with_png+set}" = set; then
2252 withval=$with_png;
2253 else
2254 with_png=yes
2255 fi
2256
2257
2258 # Check whether --with-rsvg was given.
2259 if test "${with_rsvg+set}" = set; then
2260 withval=$with_rsvg;
2261 else
2262 with_rsvg=yes
2263 fi
2264
2265
2266
2267 # Check whether --with-xft was given.
2268 if test "${with_xft+set}" = set; then
2269 withval=$with_xft;
2270 else
2271 with_xft=yes
2272 fi
2273
2274
2275 # Check whether --with-libotf was given.
2276 if test "${with_libotf+set}" = set; then
2277 withval=$with_libotf;
2278 else
2279 with_libotf=yes
2280 fi
2281
2282
2283 # Check whether --with-m17n-flt was given.
2284 if test "${with_m17n_flt+set}" = set; then
2285 withval=$with_m17n_flt;
2286 else
2287 with_m17n_flt=yes
2288 fi
2289
2290
2291
2292 # Check whether --with-toolkit-scroll-bars was given.
2293 if test "${with_toolkit_scroll_bars+set}" = set; then
2294 withval=$with_toolkit_scroll_bars;
2295 else
2296 with_toolkit_scroll_bars=yes
2297 fi
2298
2299
2300 # Check whether --with-xaw3d was given.
2301 if test "${with_xaw3d+set}" = set; then
2302 withval=$with_xaw3d;
2303 else
2304 with_xaw3d=yes
2305 fi
2306
2307
2308 # Check whether --with-xim was given.
2309 if test "${with_xim+set}" = set; then
2310 withval=$with_xim;
2311 else
2312 with_xim=yes
2313 fi
2314
2315
2316 # Check whether --with-ns was given.
2317 if test "${with_ns+set}" = set; then
2318 withval=$with_ns;
2319 else
2320 with_ns=no
2321 fi
2322
2323
2324
2325 # Check whether --with-gpm was given.
2326 if test "${with_gpm+set}" = set; then
2327 withval=$with_gpm;
2328 else
2329 with_gpm=yes
2330 fi
2331
2332
2333 # Check whether --with-dbus was given.
2334 if test "${with_dbus+set}" = set; then
2335 withval=$with_dbus;
2336 else
2337 with_dbus=yes
2338 fi
2339
2340
2341 # Check whether --with-gconf was given.
2342 if test "${with_gconf+set}" = set; then
2343 withval=$with_gconf;
2344 else
2345 with_gconf=yes
2346 fi
2347
2348
2349 # Check whether --with-selinux was given.
2350 if test "${with_selinux+set}" = set; then
2351 withval=$with_selinux;
2352 else
2353 with_selinux=yes
2354 fi
2355
2356
2357 ## For the times when you want to build Emacs but don't have
2358 ## a suitable makeinfo, and can live without the manuals.
2359
2360 # Check whether --with-makeinfo was given.
2361 if test "${with_makeinfo+set}" = set; then
2362 withval=$with_makeinfo;
2363 else
2364 with_makeinfo=yes
2365 fi
2366
2367
2368
2369 # Check whether --with-gtk was given.
2370 if test "${with_gtk+set}" = set; then
2371 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2372 specify a toolkit." >&5
2373 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2374 specify a toolkit." >&2;}
2375 { (exit 1); exit 1; }; }
2376 fi
2377
2378
2379
2380 # Check whether --with-gcc was given.
2381 if test "${with_gcc+set}" = set; then
2382 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2383 variable to specify a compiler." >&5
2384 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2385 variable to specify a compiler." >&2;}
2386 { (exit 1); exit 1; }; }
2387 fi
2388
2389
2390
2391 # Check whether --with-pkg-config-prog was given.
2392 if test "${with_pkg_config_prog+set}" = set; then
2393 withval=$with_pkg_config_prog;
2394 fi
2395
2396 if test "X${with_pkg_config_prog}" != X; then
2397 if test "${with_pkg_config_prog}" != yes; then
2398 PKG_CONFIG="${with_pkg_config_prog}"
2399 fi
2400 fi
2401
2402 CRT_DIR=
2403
2404 # Check whether --with-crt-dir was given.
2405 if test "${with_crt_dir+set}" = set; then
2406 withval=$with_crt_dir;
2407 fi
2408
2409 CRT_DIR="${with_crt_dir}"
2410
2411
2412 # Check whether --with-gnustep-conf was given.
2413 if test "${with_gnustep_conf+set}" = set; then
2414 withval=$with_gnustep_conf;
2415 fi
2416
2417 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2418 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2419 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2420 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2421
2422 # Check whether --enable-ns-self-contained was given.
2423 if test "${enable_ns_self_contained+set}" = set; then
2424 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2425 else
2426 EN_NS_SELF_CONTAINED=yes
2427 fi
2428
2429
2430 # Check whether --enable-asserts was given.
2431 if test "${enable_asserts+set}" = set; then
2432 enableval=$enable_asserts; USE_XASSERTS=$enableval
2433 else
2434 USE_XASSERTS=no
2435 fi
2436
2437
2438 # Check whether --enable-maintainer-mode was given.
2439 if test "${enable_maintainer_mode+set}" = set; then
2440 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2441 else
2442 USE_MAINTAINER_MODE=no
2443 fi
2444
2445 if test $USE_MAINTAINER_MODE = yes; then
2446 MAINT=
2447 else
2448 MAINT=#
2449 fi
2450
2451
2452 # Check whether --enable-locallisppath was given.
2453 if test "${enable_locallisppath+set}" = set; then
2454 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2455 locallisppath=
2456 elif test "${enableval}" != "yes"; then
2457 locallisppath=${enableval}
2458 fi
2459 fi
2460
2461
2462 # Check whether --enable-checking was given.
2463 if test "${enable_checking+set}" = set; then
2464 enableval=$enable_checking; ac_checking_flags="${enableval}"
2465 fi
2466
2467 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2468 for check in $ac_checking_flags
2469 do
2470 case $check in
2471 # these set all the flags to specific states
2472 yes) ac_enable_checking=1 ;;
2473 no) ac_enable_checking= ;
2474 ac_gc_check_stringbytes= ;
2475 ac_gc_check_string_overrun= ;
2476 ac_gc_check_string_free_list= ;
2477 ac_xmalloc_overrun= ;
2478 ac_gc_check_cons_list= ;;
2479 all) ac_enable_checking=1 ;
2480 ac_gc_check_stringbytes=1 ;
2481 ac_gc_check_string_overrun=1 ;
2482 ac_gc_check_string_free_list=1 ;
2483 ac_xmalloc_overrun=1 ;
2484 ac_gc_check_cons_list=1 ;;
2485 # these enable particular checks
2486 stringbytes) ac_gc_check_stringbytes=1 ;;
2487 stringoverrun) ac_gc_check_string_overrun=1 ;;
2488 stringfreelist) ac_gc_check_string_free_list=1 ;;
2489 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2490 conslist) ac_gc_check_cons_list=1 ;;
2491 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2492 $as_echo "$as_me: error: unknown check category $check" >&2;}
2493 { (exit 1); exit 1; }; } ;;
2494 esac
2495 done
2496 IFS="$ac_save_IFS"
2497
2498 if test x$ac_enable_checking != x ; then
2499
2500 cat >>confdefs.h <<\_ACEOF
2501 #define ENABLE_CHECKING 1
2502 _ACEOF
2503
2504 fi
2505 if test x$ac_gc_check_stringbytes != x ; then
2506
2507 cat >>confdefs.h <<\_ACEOF
2508 #define GC_CHECK_STRING_BYTES 1
2509 _ACEOF
2510
2511 fi
2512 if test x$ac_gc_check_stringoverrun != x ; then
2513
2514 cat >>confdefs.h <<\_ACEOF
2515 #define GC_CHECK_STRING_OVERRUN 1
2516 _ACEOF
2517
2518 fi
2519 if test x$ac_gc_check_string_free_list != x ; then
2520
2521 cat >>confdefs.h <<\_ACEOF
2522 #define GC_CHECK_STRING_FREE_LIST 1
2523 _ACEOF
2524
2525 fi
2526 if test x$ac_xmalloc_overrun != x ; then
2527
2528 cat >>confdefs.h <<\_ACEOF
2529 #define XMALLOC_OVERRUN_CHECK 1
2530 _ACEOF
2531
2532 fi
2533 if test x$ac_gc_check_cons_list != x ; then
2534
2535 cat >>confdefs.h <<\_ACEOF
2536 #define GC_CHECK_CONS_LIST 1
2537 _ACEOF
2538
2539 fi
2540
2541 # Check whether --enable-profiling was given.
2542 if test "${enable_profiling+set}" = set; then
2543 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2544 fi
2545
2546 if test x$ac_enable_profiling != x ; then
2547 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2548 PROFILING_LDFLAGS="-pg"
2549 else
2550 PROFILING_CFLAGS=
2551 PROFILING_LDFLAGS=
2552 fi
2553
2554 # Check whether --enable-autodepend was given.
2555 if test "${enable_autodepend+set}" = set; then
2556 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2557 else
2558 ac_enable_autodepend=yes
2559 fi
2560
2561
2562 #### Make srcdir absolute, if it isn't already. It's important to
2563 #### avoid running the path through pwd unnecessarily, since pwd can
2564 #### give you automounter prefixes, which can go away. We do all this
2565 #### so Emacs can find its files when run uninstalled.
2566 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2567 unset CDPATH
2568 case "${srcdir}" in
2569 /* ) ;;
2570 . )
2571 ## We may be able to use the $PWD environment variable to make this
2572 ## absolute. But sometimes PWD is inaccurate.
2573 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2574 ## but that tested only for a well-formed and valid PWD,
2575 ## it did not object when PWD was well-formed and valid but just wrong.
2576 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2577 then
2578 srcdir="$PWD"
2579 else
2580 srcdir="`(cd ${srcdir}; pwd)`"
2581 fi
2582 ;;
2583 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2584 esac
2585
2586 #### Check if the source directory already has a configured system in it.
2587 if test `pwd` != `(cd ${srcdir} && pwd)` \
2588 && test -f "${srcdir}/src/config.h" ; then
2589 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2590 as a build directory right now; it has been configured in its own
2591 right. To configure in another directory as well, you MUST
2592 use GNU make. If you do not have GNU make, then you must
2593 now do \`make distclean' in ${srcdir},
2594 and then run $0 again." >&5
2595 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2596 as a build directory right now; it has been configured in its own
2597 right. To configure in another directory as well, you MUST
2598 use GNU make. If you do not have GNU make, then you must
2599 now do \`make distclean' in ${srcdir},
2600 and then run $0 again." >&2;}
2601 fi
2602
2603 #### Given the configuration name, set machfile and opsysfile to the
2604 #### names of the m/*.h and s/*.h files we should use.
2605
2606 ### Canonicalize the configuration name.
2607
2608 ac_aux_dir=
2609 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2610 if test -f "$ac_dir/install-sh"; then
2611 ac_aux_dir=$ac_dir
2612 ac_install_sh="$ac_aux_dir/install-sh -c"
2613 break
2614 elif test -f "$ac_dir/install.sh"; then
2615 ac_aux_dir=$ac_dir
2616 ac_install_sh="$ac_aux_dir/install.sh -c"
2617 break
2618 elif test -f "$ac_dir/shtool"; then
2619 ac_aux_dir=$ac_dir
2620 ac_install_sh="$ac_aux_dir/shtool install -c"
2621 break
2622 fi
2623 done
2624 if test -z "$ac_aux_dir"; then
2625 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2626 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2627 { (exit 1); exit 1; }; }
2628 fi
2629
2630 # These three variables are undocumented and unsupported,
2631 # and are intended to be withdrawn in a future Autoconf release.
2632 # They can cause serious problems if a builder's source tree is in a directory
2633 # whose full name contains unusual characters.
2634 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2635 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2636 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2637
2638
2639 # Make sure we can run config.sub.
2640 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2641 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2642 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2643 { (exit 1); exit 1; }; }
2644
2645 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2646 $as_echo_n "checking build system type... " >&6; }
2647 if test "${ac_cv_build+set}" = set; then
2648 $as_echo_n "(cached) " >&6
2649 else
2650 ac_build_alias=$build_alias
2651 test "x$ac_build_alias" = x &&
2652 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2653 test "x$ac_build_alias" = x &&
2654 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2655 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2656 { (exit 1); exit 1; }; }
2657 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2658 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2659 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2660 { (exit 1); exit 1; }; }
2661
2662 fi
2663 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2664 $as_echo "$ac_cv_build" >&6; }
2665 case $ac_cv_build in
2666 *-*-*) ;;
2667 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2668 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2669 { (exit 1); exit 1; }; };;
2670 esac
2671 build=$ac_cv_build
2672 ac_save_IFS=$IFS; IFS='-'
2673 set x $ac_cv_build
2674 shift
2675 build_cpu=$1
2676 build_vendor=$2
2677 shift; shift
2678 # Remember, the first character of IFS is used to create $*,
2679 # except with old shells:
2680 build_os=$*
2681 IFS=$ac_save_IFS
2682 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2683
2684
2685 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2686 $as_echo_n "checking host system type... " >&6; }
2687 if test "${ac_cv_host+set}" = set; then
2688 $as_echo_n "(cached) " >&6
2689 else
2690 if test "x$host_alias" = x; then
2691 ac_cv_host=$ac_cv_build
2692 else
2693 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2694 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2695 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2696 { (exit 1); exit 1; }; }
2697 fi
2698
2699 fi
2700 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2701 $as_echo "$ac_cv_host" >&6; }
2702 case $ac_cv_host in
2703 *-*-*) ;;
2704 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2705 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2706 { (exit 1); exit 1; }; };;
2707 esac
2708 host=$ac_cv_host
2709 ac_save_IFS=$IFS; IFS='-'
2710 set x $ac_cv_host
2711 shift
2712 host_cpu=$1
2713 host_vendor=$2
2714 shift; shift
2715 # Remember, the first character of IFS is used to create $*,
2716 # except with old shells:
2717 host_os=$*
2718 IFS=$ac_save_IFS
2719 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2720
2721
2722 canonical=$host
2723 configuration=${host_alias-${build_alias-$host}}
2724
2725
2726
2727 ### If you add support for a new configuration, add code to this
2728 ### switch statement to recognize your configuration name and select
2729 ### the appropriate operating system and machine description files.
2730
2731 ### You would hope that you could choose an m/*.h file pretty much
2732 ### based on the machine portion of the configuration name, and an s-
2733 ### file based on the operating system portion. However, it turns out
2734 ### that each m/*.h file is pretty manufacturer-specific - for
2735 ### example mips.h is MIPS
2736 ### So we basically have to have a special case for each
2737 ### configuration name.
2738 ###
2739 ### As far as handling version numbers on operating systems is
2740 ### concerned, make sure things will fail in a fixable way. If
2741 ### /etc/MACHINES doesn't say anything about version numbers, be
2742 ### prepared to handle anything reasonably. If version numbers
2743 ### matter, be sure /etc/MACHINES says something about it.
2744 ###
2745 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2746 ### "System V Release 4"; he writes, "The old convention encouraged
2747 ### confusion between `system' and `release' levels'."
2748
2749 machine='' opsys='' unported=no
2750 case "${canonical}" in
2751
2752 ## FreeBSD ports
2753 *-*-freebsd* )
2754 opsys=freebsd
2755 case "${canonical}" in
2756 alpha*-*-freebsd*) machine=alpha ;;
2757 arm*-*-freebsd*) machine=arm ;;
2758 ia64-*-freebsd*) machine=ia64 ;;
2759 sparc-*-freebsd*) machine=sparc ;;
2760 sparc64-*-freebsd*) machine=sparc ;;
2761 powerpc-*-freebsd*) machine=macppc ;;
2762 i[3456]86-*-freebsd*) machine=intel386 ;;
2763 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2764 esac
2765 ;;
2766
2767 ## FreeBSD kernel + glibc based userland
2768 *-*-kfreebsd*gnu* )
2769 opsys=gnu-kfreebsd
2770 case "${canonical}" in
2771 alpha*-*-kfreebsd*) machine=alpha ;;
2772 ia64-*-kfreebsd*) machine=ia64 ;;
2773 sparc-*-kfreebsd*) machine=sparc ;;
2774 sparc64-*-kfreebsd*) machine=sparc ;;
2775 powerpc-*-kfreebsd*) machine=macppc ;;
2776 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2777 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2778 esac
2779 ;;
2780
2781 ## NetBSD ports
2782 *-*-netbsd* )
2783 opsys=netbsd
2784 if test -f /usr/lib/crti.o; then
2785
2786 cat >>confdefs.h <<\_ACEOF
2787 #define HAVE_CRTIN /**/
2788 _ACEOF
2789
2790 fi
2791
2792 case "${canonical}" in
2793 alpha*-*-netbsd*) machine=alpha ;;
2794 i[3456]86-*-netbsd*) machine=intel386 ;;
2795 mips-*-netbsd*) machine=mips ;;
2796 mipsel-*-netbsd*) machine=mips ;;
2797 mipseb-*-netbsd*) machine=mips ;;
2798 powerpc-*-netbsd*) machine=macppc ;;
2799 sparc*-*-netbsd*) machine=sparc ;;
2800 vax-*-netbsd*) machine=vax ;;
2801 arm-*-netbsd*) machine=arm ;;
2802 x86_64-*-netbsd*) machine=amdx86-64 ;;
2803 hppa-*-netbsd*) machine=hp800 ;;
2804 m68k-*-netbsd*) machine=m68k ;;
2805 esac
2806 ;;
2807
2808 ## OpenBSD ports
2809 *-*-openbsd* )
2810 opsys=openbsd
2811 case "${canonical}" in
2812 alpha*-*-openbsd*) machine=alpha ;;
2813 arm-*-openbsd*) machine=arm ;;
2814 i386-*-openbsd*) machine=intel386 ;;
2815 powerpc-*-openbsd*) machine=macppc ;;
2816 sparc*-*-openbsd*) machine=sparc ;;
2817 vax-*-openbsd*) machine=vax ;;
2818 x86_64-*-openbsd*) machine=amdx86-64 ;;
2819 hppa-*-openbsd*) machine=hp800 ;;
2820 esac
2821 ;;
2822
2823 alpha*-*-linux-gnu* )
2824 machine=alpha opsys=gnu-linux
2825 ;;
2826
2827 arm*-*-linux-gnu* )
2828 machine=arm opsys=gnu-linux
2829 ;;
2830
2831 ## Apple Darwin / Mac OS X
2832 *-apple-darwin* )
2833 case "${canonical}" in
2834 i[3456]86-* ) machine=intel386 ;;
2835 powerpc-* ) machine=macppc ;;
2836 x86_64-* ) machine=amdx86-64 ;;
2837 * ) unported=yes ;;
2838 esac
2839 opsys=darwin
2840 # Define CPP as follows to make autoconf work correctly.
2841 CPP="${CC-cc} -E -no-cpp-precomp"
2842 # Use fink packages if available.
2843 if test -d /sw/include && test -d /sw/lib; then
2844 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2845 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2846 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2847 fi
2848 ;;
2849
2850 ## HP 9000 series 700 and 800, running HP/UX
2851 hppa*-hp-hpux10.2* )
2852 machine=hp800 opsys=hpux10-20
2853 ;;
2854 hppa*-hp-hpux1[1-9]* )
2855 machine=hp800 opsys=hpux11
2856 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2857 ;;
2858
2859 hppa*-*-linux-gnu* )
2860 machine=hp800 opsys=gnu-linux
2861 ;;
2862
2863 ## IBM machines
2864 s390-*-linux-gnu* )
2865 machine=ibms390 opsys=gnu-linux
2866 ;;
2867 s390x-*-linux-gnu* )
2868 machine=ibms390x opsys=gnu-linux
2869 ;;
2870 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2871 machine=ibmrs6000 opsys=aix4-2
2872 ;;
2873 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2874 machine=ibmrs6000 opsys=aix4-2
2875 ;;
2876 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2877 machine=ibmrs6000 opsys=aix4-2
2878 ;;
2879 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2880 machine=ibmrs6000 opsys=aix4-2
2881 ;;
2882
2883 ## Macintosh PowerPC
2884 powerpc*-*-linux-gnu* )
2885 machine=macppc opsys=gnu-linux
2886 ;;
2887
2888 ## Silicon Graphics machines
2889 ## Iris 4D
2890 mips-sgi-irix6.5 )
2891 machine=iris4d opsys=irix6-5
2892 # Without defining _LANGUAGE_C, things get masked out in the headers
2893 # so that, for instance, grepping for `free' in stdlib.h fails and
2894 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2895 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2896 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2897 ;;
2898
2899 ## Suns
2900 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2901 machine=sparc opsys=gnu-linux
2902 ;;
2903
2904 *-sun-solaris* \
2905 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2906 | x86_64-*-solaris2* | x86_64-*-sunos5*)
2907 case "${canonical}" in
2908 i[3456]86-*-* ) machine=intel386 ;;
2909 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2910 sparc* ) machine=sparc ;;
2911 * ) unported=yes ;;
2912 esac
2913 case "${canonical}" in
2914 *-sunos5.6* | *-solaris2.6* )
2915 opsys=sol2-6
2916 NON_GNU_CPP=/usr/ccs/lib/cpp
2917 RANLIB="ar -ts"
2918 ;;
2919 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2920 opsys=sol2-6
2921 emacs_check_sunpro_c=yes
2922 NON_GNU_CPP=/usr/ccs/lib/cpp
2923 ;;
2924 *-sunos5* | *-solaris* )
2925 opsys=sol2-10
2926 emacs_check_sunpro_c=yes
2927 NON_GNU_CPP=/usr/ccs/lib/cpp
2928 ;;
2929 esac
2930 ## Watch out for a compiler that we know will not work.
2931 case "${canonical}" in
2932 *-solaris* | *-sunos5* )
2933 if [ "x$CC" = x/usr/ucb/cc ]; then
2934 ## /usr/ucb/cc doesn't work;
2935 ## we should find some other compiler that does work.
2936 unset CC
2937 fi
2938 ;;
2939 *) ;;
2940 esac
2941 ;;
2942
2943 ## IA-64
2944 ia64*-*-linux* )
2945 machine=ia64 opsys=gnu-linux
2946 ;;
2947
2948 ## Intel 386 machines where we don't care about the manufacturer
2949 i[3456]86-*-* )
2950 machine=intel386
2951 case "${canonical}" in
2952 *-cygwin ) opsys=cygwin ;;
2953 *-darwin* ) opsys=darwin
2954 CPP="${CC-cc} -E -no-cpp-precomp"
2955 ;;
2956 *-linux-gnu* ) opsys=gnu-linux ;;
2957 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2958 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2959 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2960 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2961 esac
2962 ;;
2963
2964 ## m68k Linux-based GNU system
2965 m68k-*-linux-gnu* )
2966 machine=m68k opsys=gnu-linux
2967 ;;
2968
2969 ## Mips Linux-based GNU system
2970 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2971 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2972 machine=mips opsys=gnu-linux
2973 ;;
2974
2975 ## AMD x86-64 Linux-based GNU system
2976 x86_64-*-linux-gnu* )
2977 machine=amdx86-64 opsys=gnu-linux
2978 ;;
2979
2980 ## Tensilica Xtensa Linux-based GNU system
2981 xtensa*-*-linux-gnu* )
2982 machine=xtensa opsys=gnu-linux
2983 ;;
2984
2985 ## SuperH Linux-based GNU system
2986 sh[34]*-*-linux-gnu* )
2987 machine=sh3 opsys=gnu-linux
2988 ;;
2989
2990 * )
2991 unported=yes
2992 ;;
2993 esac
2994
2995 ### If the code above didn't choose an operating system, just choose
2996 ### an operating system based on the configuration name. You really
2997 ### only want to use this when you have no idea what the right
2998 ### operating system is; if you know what operating systems a machine
2999 ### runs, it's cleaner to make it explicit in the case statement
3000 ### above.
3001 if test x"${opsys}" = x; then
3002 case "${canonical}" in
3003 *-gnu* ) opsys=gnu ;;
3004 * )
3005 unported=yes
3006 ;;
3007 esac
3008 fi
3009
3010
3011
3012 if test $unported = yes; then
3013 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3014 Check \`etc/MACHINES' for recognized configuration names." >&5
3015 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3016 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3017 { (exit 1); exit 1; }; }
3018 fi
3019
3020 machfile="m/${machine}.h"
3021 opsysfile="s/${opsys}.h"
3022
3023
3024 #### Choose a compiler.
3025 test -n "$CC" && cc_specified=yes
3026
3027 # Save the value of CFLAGS that the user specified.
3028 SPECIFIED_CFLAGS="$CFLAGS"
3029
3030 ac_ext=c
3031 ac_cpp='$CPP $CPPFLAGS'
3032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3035 if test -n "$ac_tool_prefix"; then
3036 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3037 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3038 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if test "${ac_cv_prog_CC+set}" = set; then
3041 $as_echo_n "(cached) " >&6
3042 else
3043 if test -n "$CC"; then
3044 ac_cv_prog_CC="$CC" # Let the user override the test.
3045 else
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH
3048 do
3049 IFS=$as_save_IFS
3050 test -z "$as_dir" && as_dir=.
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3053 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3054 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3055 break 2
3056 fi
3057 done
3058 done
3059 IFS=$as_save_IFS
3060
3061 fi
3062 fi
3063 CC=$ac_cv_prog_CC
3064 if test -n "$CC"; then
3065 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3066 $as_echo "$CC" >&6; }
3067 else
3068 { $as_echo "$as_me:$LINENO: result: no" >&5
3069 $as_echo "no" >&6; }
3070 fi
3071
3072
3073 fi
3074 if test -z "$ac_cv_prog_CC"; then
3075 ac_ct_CC=$CC
3076 # Extract the first word of "gcc", so it can be a program name with args.
3077 set dummy gcc; ac_word=$2
3078 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3081 $as_echo_n "(cached) " >&6
3082 else
3083 if test -n "$ac_ct_CC"; then
3084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3085 else
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 for as_dir in $PATH
3088 do
3089 IFS=$as_save_IFS
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3093 ac_cv_prog_ac_ct_CC="gcc"
3094 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 break 2
3096 fi
3097 done
3098 done
3099 IFS=$as_save_IFS
3100
3101 fi
3102 fi
3103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3104 if test -n "$ac_ct_CC"; then
3105 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3106 $as_echo "$ac_ct_CC" >&6; }
3107 else
3108 { $as_echo "$as_me:$LINENO: result: no" >&5
3109 $as_echo "no" >&6; }
3110 fi
3111
3112 if test "x$ac_ct_CC" = x; then
3113 CC=""
3114 else
3115 case $cross_compiling:$ac_tool_warned in
3116 yes:)
3117 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3118 whose name does not start with the host triplet. If you think this
3119 configuration is useful to you, please write to autoconf@gnu.org." >&5
3120 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3121 whose name does not start with the host triplet. If you think this
3122 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3123 ac_tool_warned=yes ;;
3124 esac
3125 CC=$ac_ct_CC
3126 fi
3127 else
3128 CC="$ac_cv_prog_CC"
3129 fi
3130
3131 if test -z "$CC"; then
3132 if test -n "$ac_tool_prefix"; then
3133 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3134 set dummy ${ac_tool_prefix}cc; ac_word=$2
3135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if test "${ac_cv_prog_CC+set}" = set; then
3138 $as_echo_n "(cached) " >&6
3139 else
3140 if test -n "$CC"; then
3141 ac_cv_prog_CC="$CC" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3145 do
3146 IFS=$as_save_IFS
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3150 ac_cv_prog_CC="${ac_tool_prefix}cc"
3151 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 break 2
3153 fi
3154 done
3155 done
3156 IFS=$as_save_IFS
3157
3158 fi
3159 fi
3160 CC=$ac_cv_prog_CC
3161 if test -n "$CC"; then
3162 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3163 $as_echo "$CC" >&6; }
3164 else
3165 { $as_echo "$as_me:$LINENO: result: no" >&5
3166 $as_echo "no" >&6; }
3167 fi
3168
3169
3170 fi
3171 fi
3172 if test -z "$CC"; then
3173 # Extract the first word of "cc", so it can be a program name with args.
3174 set dummy cc; ac_word=$2
3175 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if test "${ac_cv_prog_CC+set}" = set; then
3178 $as_echo_n "(cached) " >&6
3179 else
3180 if test -n "$CC"; then
3181 ac_cv_prog_CC="$CC" # Let the user override the test.
3182 else
3183 ac_prog_rejected=no
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3186 do
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3192 ac_prog_rejected=yes
3193 continue
3194 fi
3195 ac_cv_prog_CC="cc"
3196 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 break 2
3198 fi
3199 done
3200 done
3201 IFS=$as_save_IFS
3202
3203 if test $ac_prog_rejected = yes; then
3204 # We found a bogon in the path, so make sure we never use it.
3205 set dummy $ac_cv_prog_CC
3206 shift
3207 if test $# != 0; then
3208 # We chose a different compiler from the bogus one.
3209 # However, it has the same basename, so the bogon will be chosen
3210 # first if we set CC to just the basename; use the full file name.
3211 shift
3212 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3213 fi
3214 fi
3215 fi
3216 fi
3217 CC=$ac_cv_prog_CC
3218 if test -n "$CC"; then
3219 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3220 $as_echo "$CC" >&6; }
3221 else
3222 { $as_echo "$as_me:$LINENO: result: no" >&5
3223 $as_echo "no" >&6; }
3224 fi
3225
3226
3227 fi
3228 if test -z "$CC"; then
3229 if test -n "$ac_tool_prefix"; then
3230 for ac_prog in cl.exe
3231 do
3232 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3233 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3234 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3235 $as_echo_n "checking for $ac_word... " >&6; }
3236 if test "${ac_cv_prog_CC+set}" = set; then
3237 $as_echo_n "(cached) " >&6
3238 else
3239 if test -n "$CC"; then
3240 ac_cv_prog_CC="$CC" # Let the user override the test.
3241 else
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243 for as_dir in $PATH
3244 do
3245 IFS=$as_save_IFS
3246 test -z "$as_dir" && as_dir=.
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3249 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3250 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 break 2
3252 fi
3253 done
3254 done
3255 IFS=$as_save_IFS
3256
3257 fi
3258 fi
3259 CC=$ac_cv_prog_CC
3260 if test -n "$CC"; then
3261 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3262 $as_echo "$CC" >&6; }
3263 else
3264 { $as_echo "$as_me:$LINENO: result: no" >&5
3265 $as_echo "no" >&6; }
3266 fi
3267
3268
3269 test -n "$CC" && break
3270 done
3271 fi
3272 if test -z "$CC"; then
3273 ac_ct_CC=$CC
3274 for ac_prog in cl.exe
3275 do
3276 # Extract the first word of "$ac_prog", so it can be a program name with args.
3277 set dummy $ac_prog; ac_word=$2
3278 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3279 $as_echo_n "checking for $ac_word... " >&6; }
3280 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3281 $as_echo_n "(cached) " >&6
3282 else
3283 if test -n "$ac_ct_CC"; then
3284 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3285 else
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3288 do
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3293 ac_cv_prog_ac_ct_CC="$ac_prog"
3294 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3296 fi
3297 done
3298 done
3299 IFS=$as_save_IFS
3300
3301 fi
3302 fi
3303 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3304 if test -n "$ac_ct_CC"; then
3305 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3306 $as_echo "$ac_ct_CC" >&6; }
3307 else
3308 { $as_echo "$as_me:$LINENO: result: no" >&5
3309 $as_echo "no" >&6; }
3310 fi
3311
3312
3313 test -n "$ac_ct_CC" && break
3314 done
3315
3316 if test "x$ac_ct_CC" = x; then
3317 CC=""
3318 else
3319 case $cross_compiling:$ac_tool_warned in
3320 yes:)
3321 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3322 whose name does not start with the host triplet. If you think this
3323 configuration is useful to you, please write to autoconf@gnu.org." >&5
3324 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3325 whose name does not start with the host triplet. If you think this
3326 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3327 ac_tool_warned=yes ;;
3328 esac
3329 CC=$ac_ct_CC
3330 fi
3331 fi
3332
3333 fi
3334
3335
3336 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3337 See \`config.log' for more details." >&5
3338 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3339 See \`config.log' for more details." >&2;}
3340 { (exit 1); exit 1; }; }
3341
3342 # Provide some information about the compiler.
3343 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3344 set X $ac_compile
3345 ac_compiler=$2
3346 { (ac_try="$ac_compiler --version >&5"
3347 case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350 esac
3351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3352 $as_echo "$ac_try_echo") >&5
3353 (eval "$ac_compiler --version >&5") 2>&5
3354 ac_status=$?
3355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }
3357 { (ac_try="$ac_compiler -v >&5"
3358 case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361 esac
3362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3363 $as_echo "$ac_try_echo") >&5
3364 (eval "$ac_compiler -v >&5") 2>&5
3365 ac_status=$?
3366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }
3368 { (ac_try="$ac_compiler -V >&5"
3369 case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3374 $as_echo "$ac_try_echo") >&5
3375 (eval "$ac_compiler -V >&5") 2>&5
3376 ac_status=$?
3377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }
3379
3380 cat >conftest.$ac_ext <<_ACEOF
3381 /* confdefs.h. */
3382 _ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3386
3387 int
3388 main ()
3389 {
3390
3391 ;
3392 return 0;
3393 }
3394 _ACEOF
3395 ac_clean_files_save=$ac_clean_files
3396 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3397 # Try to create an executable without -o first, disregard a.out.
3398 # It will help us diagnose broken compilers, and finding out an intuition
3399 # of exeext.
3400 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3401 $as_echo_n "checking for C compiler default output file name... " >&6; }
3402 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3403
3404 # The possible output files:
3405 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3406
3407 ac_rmfiles=
3408 for ac_file in $ac_files
3409 do
3410 case $ac_file in
3411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3412 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3413 esac
3414 done
3415 rm -f $ac_rmfiles
3416
3417 if { (ac_try="$ac_link_default"
3418 case "(($ac_try" in
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3421 esac
3422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3423 $as_echo "$ac_try_echo") >&5
3424 (eval "$ac_link_default") 2>&5
3425 ac_status=$?
3426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }; then
3428 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3429 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3430 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3431 # so that the user can short-circuit this test for compilers unknown to
3432 # Autoconf.
3433 for ac_file in $ac_files ''
3434 do
3435 test -f "$ac_file" || continue
3436 case $ac_file in
3437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3438 ;;
3439 [ab].out )
3440 # We found the default executable, but exeext='' is most
3441 # certainly right.
3442 break;;
3443 *.* )
3444 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3445 then :; else
3446 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3447 fi
3448 # We set ac_cv_exeext here because the later test for it is not
3449 # safe: cross compilers may not add the suffix if given an `-o'
3450 # argument, so we may need to know it at that point already.
3451 # Even if this section looks crufty: it has the advantage of
3452 # actually working.
3453 break;;
3454 * )
3455 break;;
3456 esac
3457 done
3458 test "$ac_cv_exeext" = no && ac_cv_exeext=
3459
3460 else
3461 ac_file=''
3462 fi
3463
3464 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3465 $as_echo "$ac_file" >&6; }
3466 if test -z "$ac_file"; then
3467 $as_echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3469
3470 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3471 See \`config.log' for more details." >&5
3472 $as_echo "$as_me: error: C compiler cannot create executables
3473 See \`config.log' for more details." >&2;}
3474 { (exit 77); exit 77; }; }
3475 fi
3476
3477 ac_exeext=$ac_cv_exeext
3478
3479 # Check that the compiler produces executables we can run. If not, either
3480 # the compiler is broken, or we cross compile.
3481 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3482 $as_echo_n "checking whether the C compiler works... " >&6; }
3483 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3484 # If not cross compiling, check that we can run a simple program.
3485 if test "$cross_compiling" != yes; then
3486 if { ac_try='./$ac_file'
3487 { (case "(($ac_try" in
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3490 esac
3491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3492 $as_echo "$ac_try_echo") >&5
3493 (eval "$ac_try") 2>&5
3494 ac_status=$?
3495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; }; then
3497 cross_compiling=no
3498 else
3499 if test "$cross_compiling" = maybe; then
3500 cross_compiling=yes
3501 else
3502 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3503 If you meant to cross compile, use \`--host'.
3504 See \`config.log' for more details." >&5
3505 $as_echo "$as_me: error: cannot run C compiled programs.
3506 If you meant to cross compile, use \`--host'.
3507 See \`config.log' for more details." >&2;}
3508 { (exit 1); exit 1; }; }
3509 fi
3510 fi
3511 fi
3512 { $as_echo "$as_me:$LINENO: result: yes" >&5
3513 $as_echo "yes" >&6; }
3514
3515 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3516 ac_clean_files=$ac_clean_files_save
3517 # Check that the compiler produces executables we can run. If not, either
3518 # the compiler is broken, or we cross compile.
3519 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3520 $as_echo_n "checking whether we are cross compiling... " >&6; }
3521 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3522 $as_echo "$cross_compiling" >&6; }
3523
3524 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3525 $as_echo_n "checking for suffix of executables... " >&6; }
3526 if { (ac_try="$ac_link"
3527 case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530 esac
3531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3532 $as_echo "$ac_try_echo") >&5
3533 (eval "$ac_link") 2>&5
3534 ac_status=$?
3535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; then
3537 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3538 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3539 # work properly (i.e., refer to `conftest.exe'), while it won't with
3540 # `rm'.
3541 for ac_file in conftest.exe conftest conftest.*; do
3542 test -f "$ac_file" || continue
3543 case $ac_file in
3544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3545 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3546 break;;
3547 * ) break;;
3548 esac
3549 done
3550 else
3551 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3552 See \`config.log' for more details." >&5
3553 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3554 See \`config.log' for more details." >&2;}
3555 { (exit 1); exit 1; }; }
3556 fi
3557
3558 rm -f conftest$ac_cv_exeext
3559 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3560 $as_echo "$ac_cv_exeext" >&6; }
3561
3562 rm -f conftest.$ac_ext
3563 EXEEXT=$ac_cv_exeext
3564 ac_exeext=$EXEEXT
3565 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3566 $as_echo_n "checking for suffix of object files... " >&6; }
3567 if test "${ac_cv_objext+set}" = set; then
3568 $as_echo_n "(cached) " >&6
3569 else
3570 cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h. */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3576
3577 int
3578 main ()
3579 {
3580
3581 ;
3582 return 0;
3583 }
3584 _ACEOF
3585 rm -f conftest.o conftest.obj
3586 if { (ac_try="$ac_compile"
3587 case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3590 esac
3591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3592 $as_echo "$ac_try_echo") >&5
3593 (eval "$ac_compile") 2>&5
3594 ac_status=$?
3595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; then
3597 for ac_file in conftest.o conftest.obj conftest.*; do
3598 test -f "$ac_file" || continue;
3599 case $ac_file in
3600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3601 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3602 break;;
3603 esac
3604 done
3605 else
3606 $as_echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3608
3609 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3610 See \`config.log' for more details." >&5
3611 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3612 See \`config.log' for more details." >&2;}
3613 { (exit 1); exit 1; }; }
3614 fi
3615
3616 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3617 fi
3618 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3619 $as_echo "$ac_cv_objext" >&6; }
3620 OBJEXT=$ac_cv_objext
3621 ac_objext=$OBJEXT
3622 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3623 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3624 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3625 $as_echo_n "(cached) " >&6
3626 else
3627 cat >conftest.$ac_ext <<_ACEOF
3628 /* confdefs.h. */
3629 _ACEOF
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h. */
3633
3634 int
3635 main ()
3636 {
3637 #ifndef __GNUC__
3638 choke me
3639 #endif
3640
3641 ;
3642 return 0;
3643 }
3644 _ACEOF
3645 rm -f conftest.$ac_objext
3646 if { (ac_try="$ac_compile"
3647 case "(($ac_try" in
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3650 esac
3651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3652 $as_echo "$ac_try_echo") >&5
3653 (eval "$ac_compile") 2>conftest.er1
3654 ac_status=$?
3655 grep -v '^ *+' conftest.er1 >conftest.err
3656 rm -f conftest.er1
3657 cat conftest.err >&5
3658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } && {
3660 test -z "$ac_c_werror_flag" ||
3661 test ! -s conftest.err
3662 } && test -s conftest.$ac_objext; then
3663 ac_compiler_gnu=yes
3664 else
3665 $as_echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3667
3668 ac_compiler_gnu=no
3669 fi
3670
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3673
3674 fi
3675 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3676 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3677 if test $ac_compiler_gnu = yes; then
3678 GCC=yes
3679 else
3680 GCC=
3681 fi
3682 ac_test_CFLAGS=${CFLAGS+set}
3683 ac_save_CFLAGS=$CFLAGS
3684 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3685 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3686 if test "${ac_cv_prog_cc_g+set}" = set; then
3687 $as_echo_n "(cached) " >&6
3688 else
3689 ac_save_c_werror_flag=$ac_c_werror_flag
3690 ac_c_werror_flag=yes
3691 ac_cv_prog_cc_g=no
3692 CFLAGS="-g"
3693 cat >conftest.$ac_ext <<_ACEOF
3694 /* confdefs.h. */
3695 _ACEOF
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h. */
3699
3700 int
3701 main ()
3702 {
3703
3704 ;
3705 return 0;
3706 }
3707 _ACEOF
3708 rm -f conftest.$ac_objext
3709 if { (ac_try="$ac_compile"
3710 case "(($ac_try" in
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3713 esac
3714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3715 $as_echo "$ac_try_echo") >&5
3716 (eval "$ac_compile") 2>conftest.er1
3717 ac_status=$?
3718 grep -v '^ *+' conftest.er1 >conftest.err
3719 rm -f conftest.er1
3720 cat conftest.err >&5
3721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } && {
3723 test -z "$ac_c_werror_flag" ||
3724 test ! -s conftest.err
3725 } && test -s conftest.$ac_objext; then
3726 ac_cv_prog_cc_g=yes
3727 else
3728 $as_echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3730
3731 CFLAGS=""
3732 cat >conftest.$ac_ext <<_ACEOF
3733 /* confdefs.h. */
3734 _ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3738
3739 int
3740 main ()
3741 {
3742
3743 ;
3744 return 0;
3745 }
3746 _ACEOF
3747 rm -f conftest.$ac_objext
3748 if { (ac_try="$ac_compile"
3749 case "(($ac_try" in
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3752 esac
3753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3754 $as_echo "$ac_try_echo") >&5
3755 (eval "$ac_compile") 2>conftest.er1
3756 ac_status=$?
3757 grep -v '^ *+' conftest.er1 >conftest.err
3758 rm -f conftest.er1
3759 cat conftest.err >&5
3760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); } && {
3762 test -z "$ac_c_werror_flag" ||
3763 test ! -s conftest.err
3764 } && test -s conftest.$ac_objext; then
3765 :
3766 else
3767 $as_echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.$ac_ext >&5
3769
3770 ac_c_werror_flag=$ac_save_c_werror_flag
3771 CFLAGS="-g"
3772 cat >conftest.$ac_ext <<_ACEOF
3773 /* confdefs.h. */
3774 _ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3778
3779 int
3780 main ()
3781 {
3782
3783 ;
3784 return 0;
3785 }
3786 _ACEOF
3787 rm -f conftest.$ac_objext
3788 if { (ac_try="$ac_compile"
3789 case "(($ac_try" in
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3792 esac
3793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3794 $as_echo "$ac_try_echo") >&5
3795 (eval "$ac_compile") 2>conftest.er1
3796 ac_status=$?
3797 grep -v '^ *+' conftest.er1 >conftest.err
3798 rm -f conftest.er1
3799 cat conftest.err >&5
3800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); } && {
3802 test -z "$ac_c_werror_flag" ||
3803 test ! -s conftest.err
3804 } && test -s conftest.$ac_objext; then
3805 ac_cv_prog_cc_g=yes
3806 else
3807 $as_echo "$as_me: failed program was:" >&5
3808 sed 's/^/| /' conftest.$ac_ext >&5
3809
3810
3811 fi
3812
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 fi
3815
3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817 fi
3818
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 ac_c_werror_flag=$ac_save_c_werror_flag
3821 fi
3822 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3823 $as_echo "$ac_cv_prog_cc_g" >&6; }
3824 if test "$ac_test_CFLAGS" = set; then
3825 CFLAGS=$ac_save_CFLAGS
3826 elif test $ac_cv_prog_cc_g = yes; then
3827 if test "$GCC" = yes; then
3828 CFLAGS="-g -O2"
3829 else
3830 CFLAGS="-g"
3831 fi
3832 else
3833 if test "$GCC" = yes; then
3834 CFLAGS="-O2"
3835 else
3836 CFLAGS=
3837 fi
3838 fi
3839 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3840 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3841 if test "${ac_cv_prog_cc_c89+set}" = set; then
3842 $as_echo_n "(cached) " >&6
3843 else
3844 ac_cv_prog_cc_c89=no
3845 ac_save_CC=$CC
3846 cat >conftest.$ac_ext <<_ACEOF
3847 /* confdefs.h. */
3848 _ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h. */
3852 #include <stdarg.h>
3853 #include <stdio.h>
3854 #include <sys/types.h>
3855 #include <sys/stat.h>
3856 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3857 struct buf { int x; };
3858 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3859 static char *e (p, i)
3860 char **p;
3861 int i;
3862 {
3863 return p[i];
3864 }
3865 static char *f (char * (*g) (char **, int), char **p, ...)
3866 {
3867 char *s;
3868 va_list v;
3869 va_start (v,p);
3870 s = g (p, va_arg (v,int));
3871 va_end (v);
3872 return s;
3873 }
3874
3875 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3876 function prototypes and stuff, but not '\xHH' hex character constants.
3877 These don't provoke an error unfortunately, instead are silently treated
3878 as 'x'. The following induces an error, until -std is added to get
3879 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3880 array size at least. It's necessary to write '\x00'==0 to get something
3881 that's true only with -std. */
3882 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3883
3884 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3885 inside strings and character constants. */
3886 #define FOO(x) 'x'
3887 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3888
3889 int test (int i, double x);
3890 struct s1 {int (*f) (int a);};
3891 struct s2 {int (*f) (double a);};
3892 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3893 int argc;
3894 char **argv;
3895 int
3896 main ()
3897 {
3898 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3899 ;
3900 return 0;
3901 }
3902 _ACEOF
3903 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3904 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3905 do
3906 CC="$ac_save_CC $ac_arg"
3907 rm -f conftest.$ac_objext
3908 if { (ac_try="$ac_compile"
3909 case "(($ac_try" in
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3912 esac
3913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3914 $as_echo "$ac_try_echo") >&5
3915 (eval "$ac_compile") 2>conftest.er1
3916 ac_status=$?
3917 grep -v '^ *+' conftest.er1 >conftest.err
3918 rm -f conftest.er1
3919 cat conftest.err >&5
3920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } && {
3922 test -z "$ac_c_werror_flag" ||
3923 test ! -s conftest.err
3924 } && test -s conftest.$ac_objext; then
3925 ac_cv_prog_cc_c89=$ac_arg
3926 else
3927 $as_echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3929
3930
3931 fi
3932
3933 rm -f core conftest.err conftest.$ac_objext
3934 test "x$ac_cv_prog_cc_c89" != "xno" && break
3935 done
3936 rm -f conftest.$ac_ext
3937 CC=$ac_save_CC
3938
3939 fi
3940 # AC_CACHE_VAL
3941 case "x$ac_cv_prog_cc_c89" in
3942 x)
3943 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3944 $as_echo "none needed" >&6; } ;;
3945 xno)
3946 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3947 $as_echo "unsupported" >&6; } ;;
3948 *)
3949 CC="$CC $ac_cv_prog_cc_c89"
3950 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3951 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3952 esac
3953
3954
3955 ac_ext=c
3956 ac_cpp='$CPP $CPPFLAGS'
3957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3960
3961
3962 # On Suns, sometimes $CPP names a directory.
3963 if test -n "$CPP" && test -d "$CPP"; then
3964 CPP=
3965 fi
3966
3967 ## If not using gcc, and on Solaris, and no CPP specified, see if
3968 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3969 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3970 test x"$CPP" = x; then
3971 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3972 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3973
3974 if test "${emacs_cv_sunpro_c+set}" = set; then
3975 $as_echo_n "(cached) " >&6
3976 else
3977 cat >conftest.$ac_ext <<_ACEOF
3978 /* confdefs.h. */
3979 _ACEOF
3980 cat confdefs.h >>conftest.$ac_ext
3981 cat >>conftest.$ac_ext <<_ACEOF
3982 /* end confdefs.h. */
3983
3984 int
3985 main ()
3986 {
3987 #ifndef __SUNPRO_C
3988 fail;
3989 #endif
3990
3991 ;
3992 return 0;
3993 }
3994 _ACEOF
3995 rm -f conftest.$ac_objext conftest$ac_exeext
3996 if { (ac_try="$ac_link"
3997 case "(($ac_try" in
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4000 esac
4001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4002 $as_echo "$ac_try_echo") >&5
4003 (eval "$ac_link") 2>conftest.er1
4004 ac_status=$?
4005 grep -v '^ *+' conftest.er1 >conftest.err
4006 rm -f conftest.er1
4007 cat conftest.err >&5
4008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } && {
4010 test -z "$ac_c_werror_flag" ||
4011 test ! -s conftest.err
4012 } && test -s conftest$ac_exeext && {
4013 test "$cross_compiling" = yes ||
4014 $as_test_x conftest$ac_exeext
4015 }; then
4016 emacs_cv_sunpro_c=yes
4017 else
4018 $as_echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4020
4021 emacs_cv_sunpro_c=no
4022 fi
4023
4024 rm -rf conftest.dSYM
4025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4026 conftest$ac_exeext conftest.$ac_ext
4027 fi
4028
4029 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4030 $as_echo "$emacs_cv_sunpro_c" >&6; }
4031
4032 if test x"$emacs_cv_sunpro_c" = xyes; then
4033 NON_GNU_CPP="$CC -E -Xs"
4034 fi
4035 fi
4036
4037 #### Some systems specify a CPP to use unless we are using GCC.
4038 #### Now that we know whether we are using GCC, we can decide whether
4039 #### to use that one.
4040 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4041 then
4042 CPP="$NON_GNU_CPP"
4043 fi
4044
4045 #### Some systems specify a CC to use unless we are using GCC.
4046 #### Now that we know whether we are using GCC, we can decide whether
4047 #### to use that one.
4048 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4049 test x$cc_specified != xyes
4050 then
4051 CC="$NON_GNU_CC"
4052 fi
4053
4054 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4055 then
4056 CC="$CC $GCC_TEST_OPTIONS"
4057 fi
4058
4059 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4060 then
4061 CC="$CC $NON_GCC_TEST_OPTIONS"
4062 fi
4063
4064 ac_ext=c
4065 ac_cpp='$CPP $CPPFLAGS'
4066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4070 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4071 # On Suns, sometimes $CPP names a directory.
4072 if test -n "$CPP" && test -d "$CPP"; then
4073 CPP=
4074 fi
4075 if test -z "$CPP"; then
4076 if test "${ac_cv_prog_CPP+set}" = set; then
4077 $as_echo_n "(cached) " >&6
4078 else
4079 # Double quotes because CPP needs to be expanded
4080 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4081 do
4082 ac_preproc_ok=false
4083 for ac_c_preproc_warn_flag in '' yes
4084 do
4085 # Use a header file that comes with gcc, so configuring glibc
4086 # with a fresh cross-compiler works.
4087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4088 # <limits.h> exists even on freestanding compilers.
4089 # On the NeXT, cc -E runs the code through the compiler's parser,
4090 # not just through cpp. "Syntax error" is here to catch this case.
4091 cat >conftest.$ac_ext <<_ACEOF
4092 /* confdefs.h. */
4093 _ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4097 #ifdef __STDC__
4098 # include <limits.h>
4099 #else
4100 # include <assert.h>
4101 #endif
4102 Syntax error
4103 _ACEOF
4104 if { (ac_try="$ac_cpp conftest.$ac_ext"
4105 case "(($ac_try" in
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4108 esac
4109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4110 $as_echo "$ac_try_echo") >&5
4111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } >/dev/null && {
4118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4119 test ! -s conftest.err
4120 }; then
4121 :
4122 else
4123 $as_echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4125
4126 # Broken: fails on valid input.
4127 continue
4128 fi
4129
4130 rm -f conftest.err conftest.$ac_ext
4131
4132 # OK, works on sane cases. Now check whether nonexistent headers
4133 # can be detected and how.
4134 cat >conftest.$ac_ext <<_ACEOF
4135 /* confdefs.h. */
4136 _ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4140 #include <ac_nonexistent.h>
4141 _ACEOF
4142 if { (ac_try="$ac_cpp conftest.$ac_ext"
4143 case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4146 esac
4147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4148 $as_echo "$ac_try_echo") >&5
4149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4150 ac_status=$?
4151 grep -v '^ *+' conftest.er1 >conftest.err
4152 rm -f conftest.er1
4153 cat conftest.err >&5
4154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } >/dev/null && {
4156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4157 test ! -s conftest.err
4158 }; then
4159 # Broken: success on invalid input.
4160 continue
4161 else
4162 $as_echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4164
4165 # Passes both tests.
4166 ac_preproc_ok=:
4167 break
4168 fi
4169
4170 rm -f conftest.err conftest.$ac_ext
4171
4172 done
4173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4174 rm -f conftest.err conftest.$ac_ext
4175 if $ac_preproc_ok; then
4176 break
4177 fi
4178
4179 done
4180 ac_cv_prog_CPP=$CPP
4181
4182 fi
4183 CPP=$ac_cv_prog_CPP
4184 else
4185 ac_cv_prog_CPP=$CPP
4186 fi
4187 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4188 $as_echo "$CPP" >&6; }
4189 ac_preproc_ok=false
4190 for ac_c_preproc_warn_flag in '' yes
4191 do
4192 # Use a header file that comes with gcc, so configuring glibc
4193 # with a fresh cross-compiler works.
4194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4195 # <limits.h> exists even on freestanding compilers.
4196 # On the NeXT, cc -E runs the code through the compiler's parser,
4197 # not just through cpp. "Syntax error" is here to catch this case.
4198 cat >conftest.$ac_ext <<_ACEOF
4199 /* confdefs.h. */
4200 _ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h. */
4204 #ifdef __STDC__
4205 # include <limits.h>
4206 #else
4207 # include <assert.h>
4208 #endif
4209 Syntax error
4210 _ACEOF
4211 if { (ac_try="$ac_cpp conftest.$ac_ext"
4212 case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4215 esac
4216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4217 $as_echo "$ac_try_echo") >&5
4218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4219 ac_status=$?
4220 grep -v '^ *+' conftest.er1 >conftest.err
4221 rm -f conftest.er1
4222 cat conftest.err >&5
4223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } >/dev/null && {
4225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4226 test ! -s conftest.err
4227 }; then
4228 :
4229 else
4230 $as_echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.$ac_ext >&5
4232
4233 # Broken: fails on valid input.
4234 continue
4235 fi
4236
4237 rm -f conftest.err conftest.$ac_ext
4238
4239 # OK, works on sane cases. Now check whether nonexistent headers
4240 # can be detected and how.
4241 cat >conftest.$ac_ext <<_ACEOF
4242 /* confdefs.h. */
4243 _ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h. */
4247 #include <ac_nonexistent.h>
4248 _ACEOF
4249 if { (ac_try="$ac_cpp conftest.$ac_ext"
4250 case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4253 esac
4254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4255 $as_echo "$ac_try_echo") >&5
4256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4257 ac_status=$?
4258 grep -v '^ *+' conftest.er1 >conftest.err
4259 rm -f conftest.er1
4260 cat conftest.err >&5
4261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } >/dev/null && {
4263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4264 test ! -s conftest.err
4265 }; then
4266 # Broken: success on invalid input.
4267 continue
4268 else
4269 $as_echo "$as_me: failed program was:" >&5
4270 sed 's/^/| /' conftest.$ac_ext >&5
4271
4272 # Passes both tests.
4273 ac_preproc_ok=:
4274 break
4275 fi
4276
4277 rm -f conftest.err conftest.$ac_ext
4278
4279 done
4280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4281 rm -f conftest.err conftest.$ac_ext
4282 if $ac_preproc_ok; then
4283 :
4284 else
4285 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4286 See \`config.log' for more details." >&5
4287 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4288 See \`config.log' for more details." >&2;}
4289 { (exit 1); exit 1; }; }
4290 fi
4291
4292 ac_ext=c
4293 ac_cpp='$CPP $CPPFLAGS'
4294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297
4298
4299 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4300 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4301 if test "${ac_cv_path_GREP+set}" = set; then
4302 $as_echo_n "(cached) " >&6
4303 else
4304 if test -z "$GREP"; then
4305 ac_path_GREP_found=false
4306 # Loop through the user's path and test for each of PROGNAME-LIST
4307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4309 do
4310 IFS=$as_save_IFS
4311 test -z "$as_dir" && as_dir=.
4312 for ac_prog in grep ggrep; do
4313 for ac_exec_ext in '' $ac_executable_extensions; do
4314 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4315 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4316 # Check for GNU ac_path_GREP and select it if it is found.
4317 # Check for GNU $ac_path_GREP
4318 case `"$ac_path_GREP" --version 2>&1` in
4319 *GNU*)
4320 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4321 *)
4322 ac_count=0
4323 $as_echo_n 0123456789 >"conftest.in"
4324 while :
4325 do
4326 cat "conftest.in" "conftest.in" >"conftest.tmp"
4327 mv "conftest.tmp" "conftest.in"
4328 cp "conftest.in" "conftest.nl"
4329 $as_echo 'GREP' >> "conftest.nl"
4330 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4331 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4332 ac_count=`expr $ac_count + 1`
4333 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4334 # Best one so far, save it but keep looking for a better one
4335 ac_cv_path_GREP="$ac_path_GREP"
4336 ac_path_GREP_max=$ac_count
4337 fi
4338 # 10*(2^10) chars as input seems more than enough
4339 test $ac_count -gt 10 && break
4340 done
4341 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4342 esac
4343
4344 $ac_path_GREP_found && break 3
4345 done
4346 done
4347 done
4348 IFS=$as_save_IFS
4349 if test -z "$ac_cv_path_GREP"; then
4350 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4351 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4352 { (exit 1); exit 1; }; }
4353 fi
4354 else
4355 ac_cv_path_GREP=$GREP
4356 fi
4357
4358 fi
4359 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4360 $as_echo "$ac_cv_path_GREP" >&6; }
4361 GREP="$ac_cv_path_GREP"
4362
4363
4364 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4365 $as_echo_n "checking for egrep... " >&6; }
4366 if test "${ac_cv_path_EGREP+set}" = set; then
4367 $as_echo_n "(cached) " >&6
4368 else
4369 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4370 then ac_cv_path_EGREP="$GREP -E"
4371 else
4372 if test -z "$EGREP"; then
4373 ac_path_EGREP_found=false
4374 # Loop through the user's path and test for each of PROGNAME-LIST
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4377 do
4378 IFS=$as_save_IFS
4379 test -z "$as_dir" && as_dir=.
4380 for ac_prog in egrep; do
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4383 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4384 # Check for GNU ac_path_EGREP and select it if it is found.
4385 # Check for GNU $ac_path_EGREP
4386 case `"$ac_path_EGREP" --version 2>&1` in
4387 *GNU*)
4388 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4389 *)
4390 ac_count=0
4391 $as_echo_n 0123456789 >"conftest.in"
4392 while :
4393 do
4394 cat "conftest.in" "conftest.in" >"conftest.tmp"
4395 mv "conftest.tmp" "conftest.in"
4396 cp "conftest.in" "conftest.nl"
4397 $as_echo 'EGREP' >> "conftest.nl"
4398 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4399 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4400 ac_count=`expr $ac_count + 1`
4401 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4402 # Best one so far, save it but keep looking for a better one
4403 ac_cv_path_EGREP="$ac_path_EGREP"
4404 ac_path_EGREP_max=$ac_count
4405 fi
4406 # 10*(2^10) chars as input seems more than enough
4407 test $ac_count -gt 10 && break
4408 done
4409 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4410 esac
4411
4412 $ac_path_EGREP_found && break 3
4413 done
4414 done
4415 done
4416 IFS=$as_save_IFS
4417 if test -z "$ac_cv_path_EGREP"; then
4418 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4419 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4420 { (exit 1); exit 1; }; }
4421 fi
4422 else
4423 ac_cv_path_EGREP=$EGREP
4424 fi
4425
4426 fi
4427 fi
4428 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4429 $as_echo "$ac_cv_path_EGREP" >&6; }
4430 EGREP="$ac_cv_path_EGREP"
4431
4432
4433 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4434 $as_echo_n "checking for ANSI C header files... " >&6; }
4435 if test "${ac_cv_header_stdc+set}" = set; then
4436 $as_echo_n "(cached) " >&6
4437 else
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 #include <stdarg.h>
4446 #include <string.h>
4447 #include <float.h>
4448
4449 int
4450 main ()
4451 {
4452
4453 ;
4454 return 0;
4455 }
4456 _ACEOF
4457 rm -f conftest.$ac_objext
4458 if { (ac_try="$ac_compile"
4459 case "(($ac_try" in
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4462 esac
4463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4464 $as_echo "$ac_try_echo") >&5
4465 (eval "$ac_compile") 2>conftest.er1
4466 ac_status=$?
4467 grep -v '^ *+' conftest.er1 >conftest.err
4468 rm -f conftest.er1
4469 cat conftest.err >&5
4470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } && {
4472 test -z "$ac_c_werror_flag" ||
4473 test ! -s conftest.err
4474 } && test -s conftest.$ac_objext; then
4475 ac_cv_header_stdc=yes
4476 else
4477 $as_echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4479
4480 ac_cv_header_stdc=no
4481 fi
4482
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484
4485 if test $ac_cv_header_stdc = yes; then
4486 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4487 cat >conftest.$ac_ext <<_ACEOF
4488 /* confdefs.h. */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 #include <string.h>
4494
4495 _ACEOF
4496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4497 $EGREP "memchr" >/dev/null 2>&1; then
4498 :
4499 else
4500 ac_cv_header_stdc=no
4501 fi
4502 rm -f conftest*
4503
4504 fi
4505
4506 if test $ac_cv_header_stdc = yes; then
4507 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4508 cat >conftest.$ac_ext <<_ACEOF
4509 /* confdefs.h. */
4510 _ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4514 #include <stdlib.h>
4515
4516 _ACEOF
4517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4518 $EGREP "free" >/dev/null 2>&1; then
4519 :
4520 else
4521 ac_cv_header_stdc=no
4522 fi
4523 rm -f conftest*
4524
4525 fi
4526
4527 if test $ac_cv_header_stdc = yes; then
4528 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4529 if test "$cross_compiling" = yes; then
4530 :
4531 else
4532 cat >conftest.$ac_ext <<_ACEOF
4533 /* confdefs.h. */
4534 _ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4538 #include <ctype.h>
4539 #include <stdlib.h>
4540 #if ((' ' & 0x0FF) == 0x020)
4541 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4542 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4543 #else
4544 # define ISLOWER(c) \
4545 (('a' <= (c) && (c) <= 'i') \
4546 || ('j' <= (c) && (c) <= 'r') \
4547 || ('s' <= (c) && (c) <= 'z'))
4548 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4549 #endif
4550
4551 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4552 int
4553 main ()
4554 {
4555 int i;
4556 for (i = 0; i < 256; i++)
4557 if (XOR (islower (i), ISLOWER (i))
4558 || toupper (i) != TOUPPER (i))
4559 return 2;
4560 return 0;
4561 }
4562 _ACEOF
4563 rm -f conftest$ac_exeext
4564 if { (ac_try="$ac_link"
4565 case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4568 esac
4569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4570 $as_echo "$ac_try_echo") >&5
4571 (eval "$ac_link") 2>&5
4572 ac_status=$?
4573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4575 { (case "(($ac_try" in
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4578 esac
4579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4580 $as_echo "$ac_try_echo") >&5
4581 (eval "$ac_try") 2>&5
4582 ac_status=$?
4583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4585 :
4586 else
4587 $as_echo "$as_me: program exited with status $ac_status" >&5
4588 $as_echo "$as_me: failed program was:" >&5
4589 sed 's/^/| /' conftest.$ac_ext >&5
4590
4591 ( exit $ac_status )
4592 ac_cv_header_stdc=no
4593 fi
4594 rm -rf conftest.dSYM
4595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4596 fi
4597
4598
4599 fi
4600 fi
4601 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4602 $as_echo "$ac_cv_header_stdc" >&6; }
4603 if test $ac_cv_header_stdc = yes; then
4604
4605 cat >>confdefs.h <<\_ACEOF
4606 #define STDC_HEADERS 1
4607 _ACEOF
4608
4609 fi
4610
4611 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4622 inttypes.h stdint.h unistd.h
4623 do
4624 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4625 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4626 $as_echo_n "checking for $ac_header... " >&6; }
4627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4628 $as_echo_n "(cached) " >&6
4629 else
4630 cat >conftest.$ac_ext <<_ACEOF
4631 /* confdefs.h. */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4636 $ac_includes_default
4637
4638 #include <$ac_header>
4639 _ACEOF
4640 rm -f conftest.$ac_objext
4641 if { (ac_try="$ac_compile"
4642 case "(($ac_try" in
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4645 esac
4646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4647 $as_echo "$ac_try_echo") >&5
4648 (eval "$ac_compile") 2>conftest.er1
4649 ac_status=$?
4650 grep -v '^ *+' conftest.er1 >conftest.err
4651 rm -f conftest.er1
4652 cat conftest.err >&5
4653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } && {
4655 test -z "$ac_c_werror_flag" ||
4656 test ! -s conftest.err
4657 } && test -s conftest.$ac_objext; then
4658 eval "$as_ac_Header=yes"
4659 else
4660 $as_echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4662
4663 eval "$as_ac_Header=no"
4664 fi
4665
4666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4667 fi
4668 ac_res=`eval 'as_val=${'$as_ac_Header'}
4669 $as_echo "$as_val"'`
4670 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4671 $as_echo "$ac_res" >&6; }
4672 if test `eval 'as_val=${'$as_ac_Header'}
4673 $as_echo "$as_val"'` = yes; then
4674 cat >>confdefs.h <<_ACEOF
4675 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4676 _ACEOF
4677
4678 fi
4679
4680 done
4681
4682
4683
4684 if test "${ac_cv_header_minix_config_h+set}" = set; then
4685 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4686 $as_echo_n "checking for minix/config.h... " >&6; }
4687 if test "${ac_cv_header_minix_config_h+set}" = set; then
4688 $as_echo_n "(cached) " >&6
4689 fi
4690 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4691 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4692 else
4693 # Is the header compilable?
4694 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4695 $as_echo_n "checking minix/config.h usability... " >&6; }
4696 cat >conftest.$ac_ext <<_ACEOF
4697 /* confdefs.h. */
4698 _ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h. */
4702 $ac_includes_default
4703 #include <minix/config.h>
4704 _ACEOF
4705 rm -f conftest.$ac_objext
4706 if { (ac_try="$ac_compile"
4707 case "(($ac_try" in
4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709 *) ac_try_echo=$ac_try;;
4710 esac
4711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4712 $as_echo "$ac_try_echo") >&5
4713 (eval "$ac_compile") 2>conftest.er1
4714 ac_status=$?
4715 grep -v '^ *+' conftest.er1 >conftest.err
4716 rm -f conftest.er1
4717 cat conftest.err >&5
4718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); } && {
4720 test -z "$ac_c_werror_flag" ||
4721 test ! -s conftest.err
4722 } && test -s conftest.$ac_objext; then
4723 ac_header_compiler=yes
4724 else
4725 $as_echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4727
4728 ac_header_compiler=no
4729 fi
4730
4731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4733 $as_echo "$ac_header_compiler" >&6; }
4734
4735 # Is the header present?
4736 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4737 $as_echo_n "checking minix/config.h presence... " >&6; }
4738 cat >conftest.$ac_ext <<_ACEOF
4739 /* confdefs.h. */
4740 _ACEOF
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h. */
4744 #include <minix/config.h>
4745 _ACEOF
4746 if { (ac_try="$ac_cpp conftest.$ac_ext"
4747 case "(($ac_try" in
4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749 *) ac_try_echo=$ac_try;;
4750 esac
4751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4752 $as_echo "$ac_try_echo") >&5
4753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4754 ac_status=$?
4755 grep -v '^ *+' conftest.er1 >conftest.err
4756 rm -f conftest.er1
4757 cat conftest.err >&5
4758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } >/dev/null && {
4760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4761 test ! -s conftest.err
4762 }; then
4763 ac_header_preproc=yes
4764 else
4765 $as_echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4767
4768 ac_header_preproc=no
4769 fi
4770
4771 rm -f conftest.err conftest.$ac_ext
4772 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4773 $as_echo "$ac_header_preproc" >&6; }
4774
4775 # So? What about this header?
4776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4777 yes:no: )
4778 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4779 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4780 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4781 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4782 ac_header_preproc=yes
4783 ;;
4784 no:yes:* )
4785 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4786 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4787 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4788 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4789 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4790 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4791 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4792 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4793 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4794 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4795 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4796 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4797
4798 ;;
4799 esac
4800 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4801 $as_echo_n "checking for minix/config.h... " >&6; }
4802 if test "${ac_cv_header_minix_config_h+set}" = set; then
4803 $as_echo_n "(cached) " >&6
4804 else
4805 ac_cv_header_minix_config_h=$ac_header_preproc
4806 fi
4807 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4808 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4809
4810 fi
4811 if test $ac_cv_header_minix_config_h = yes; then
4812 MINIX=yes
4813 else
4814 MINIX=
4815 fi
4816
4817
4818 if test "$MINIX" = yes; then
4819
4820 cat >>confdefs.h <<\_ACEOF
4821 #define _POSIX_SOURCE 1
4822 _ACEOF
4823
4824
4825 cat >>confdefs.h <<\_ACEOF
4826 #define _POSIX_1_SOURCE 2
4827 _ACEOF
4828
4829
4830 cat >>confdefs.h <<\_ACEOF
4831 #define _MINIX 1
4832 _ACEOF
4833
4834 fi
4835
4836
4837
4838 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4839 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4840 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4841 $as_echo_n "(cached) " >&6
4842 else
4843 cat >conftest.$ac_ext <<_ACEOF
4844 /* confdefs.h. */
4845 _ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4849
4850 # define __EXTENSIONS__ 1
4851 $ac_includes_default
4852 int
4853 main ()
4854 {
4855
4856 ;
4857 return 0;
4858 }
4859 _ACEOF
4860 rm -f conftest.$ac_objext
4861 if { (ac_try="$ac_compile"
4862 case "(($ac_try" in
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4865 esac
4866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4867 $as_echo "$ac_try_echo") >&5
4868 (eval "$ac_compile") 2>conftest.er1
4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } && {
4875 test -z "$ac_c_werror_flag" ||
4876 test ! -s conftest.err
4877 } && test -s conftest.$ac_objext; then
4878 ac_cv_safe_to_define___extensions__=yes
4879 else
4880 $as_echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4882
4883 ac_cv_safe_to_define___extensions__=no
4884 fi
4885
4886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4887 fi
4888 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4889 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4890 test $ac_cv_safe_to_define___extensions__ = yes &&
4891 cat >>confdefs.h <<\_ACEOF
4892 #define __EXTENSIONS__ 1
4893 _ACEOF
4894
4895 cat >>confdefs.h <<\_ACEOF
4896 #define _ALL_SOURCE 1
4897 _ACEOF
4898
4899 cat >>confdefs.h <<\_ACEOF
4900 #define _GNU_SOURCE 1
4901 _ACEOF
4902
4903 cat >>confdefs.h <<\_ACEOF
4904 #define _POSIX_PTHREAD_SEMANTICS 1
4905 _ACEOF
4906
4907 cat >>confdefs.h <<\_ACEOF
4908 #define _TANDEM_SOURCE 1
4909 _ACEOF
4910
4911
4912
4913 ### Use -Wno-pointer-sign if the compiler supports it
4914 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4915 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4916 SAVE_CFLAGS="$CFLAGS"
4917 CFLAGS="$CFLAGS -Wno-pointer-sign"
4918 cat >conftest.$ac_ext <<_ACEOF
4919 /* confdefs.h. */
4920 _ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4924
4925 int
4926 main ()
4927 {
4928
4929 ;
4930 return 0;
4931 }
4932 _ACEOF
4933 rm -f conftest.$ac_objext
4934 if { (ac_try="$ac_compile"
4935 case "(($ac_try" in
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4938 esac
4939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4940 $as_echo "$ac_try_echo") >&5
4941 (eval "$ac_compile") 2>conftest.er1
4942 ac_status=$?
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } && {
4948 test -z "$ac_c_werror_flag" ||
4949 test ! -s conftest.err
4950 } && test -s conftest.$ac_objext; then
4951 has_option=yes
4952 else
4953 $as_echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4955
4956 has_option=no
4957 fi
4958
4959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960 if test $has_option = yes; then
4961 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4962 fi
4963 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4964 $as_echo "$has_option" >&6; }
4965 CFLAGS="$SAVE_CFLAGS"
4966 unset has_option
4967 unset SAVE_CFLAGS
4968
4969 ### Use -Wdeclaration-after-statement if the compiler supports it
4970 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4971 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4972 SAVE_CFLAGS="$CFLAGS"
4973 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4974 cat >conftest.$ac_ext <<_ACEOF
4975 /* confdefs.h. */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4980
4981 int
4982 main ()
4983 {
4984
4985 ;
4986 return 0;
4987 }
4988 _ACEOF
4989 rm -f conftest.$ac_objext
4990 if { (ac_try="$ac_compile"
4991 case "(($ac_try" in
4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993 *) ac_try_echo=$ac_try;;
4994 esac
4995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4996 $as_echo "$ac_try_echo") >&5
4997 (eval "$ac_compile") 2>conftest.er1
4998 ac_status=$?
4999 grep -v '^ *+' conftest.er1 >conftest.err
5000 rm -f conftest.er1
5001 cat conftest.err >&5
5002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } && {
5004 test -z "$ac_c_werror_flag" ||
5005 test ! -s conftest.err
5006 } && test -s conftest.$ac_objext; then
5007 has_option=yes
5008 else
5009 $as_echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5011
5012 has_option=no
5013 fi
5014
5015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 if test $has_option = yes; then
5017 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5018 fi
5019 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5020 $as_echo "$has_option" >&6; }
5021 CFLAGS="$SAVE_CFLAGS"
5022 unset has_option
5023 unset SAVE_CFLAGS
5024
5025 #### Some other nice autoconf tests.
5026
5027 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5028 $as_echo_n "checking whether ln -s works... " >&6; }
5029 LN_S=$as_ln_s
5030 if test "$LN_S" = "ln -s"; then
5031 { $as_echo "$as_me:$LINENO: result: yes" >&5
5032 $as_echo "yes" >&6; }
5033 else
5034 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5035 $as_echo "no, using $LN_S" >&6; }
5036 fi
5037
5038 ac_ext=c
5039 ac_cpp='$CPP $CPPFLAGS'
5040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5043 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5044 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5045 # On Suns, sometimes $CPP names a directory.
5046 if test -n "$CPP" && test -d "$CPP"; then
5047 CPP=
5048 fi
5049 if test -z "$CPP"; then
5050 if test "${ac_cv_prog_CPP+set}" = set; then
5051 $as_echo_n "(cached) " >&6
5052 else
5053 # Double quotes because CPP needs to be expanded
5054 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5055 do
5056 ac_preproc_ok=false
5057 for ac_c_preproc_warn_flag in '' yes
5058 do
5059 # Use a header file that comes with gcc, so configuring glibc
5060 # with a fresh cross-compiler works.
5061 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5062 # <limits.h> exists even on freestanding compilers.
5063 # On the NeXT, cc -E runs the code through the compiler's parser,
5064 # not just through cpp. "Syntax error" is here to catch this case.
5065 cat >conftest.$ac_ext <<_ACEOF
5066 /* confdefs.h. */
5067 _ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5071 #ifdef __STDC__
5072 # include <limits.h>
5073 #else
5074 # include <assert.h>
5075 #endif
5076 Syntax error
5077 _ACEOF
5078 if { (ac_try="$ac_cpp conftest.$ac_ext"
5079 case "(($ac_try" in
5080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081 *) ac_try_echo=$ac_try;;
5082 esac
5083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5084 $as_echo "$ac_try_echo") >&5
5085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5086 ac_status=$?
5087 grep -v '^ *+' conftest.er1 >conftest.err
5088 rm -f conftest.er1
5089 cat conftest.err >&5
5090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } >/dev/null && {
5092 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5093 test ! -s conftest.err
5094 }; then
5095 :
5096 else
5097 $as_echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5099
5100 # Broken: fails on valid input.
5101 continue
5102 fi
5103
5104 rm -f conftest.err conftest.$ac_ext
5105
5106 # OK, works on sane cases. Now check whether nonexistent headers
5107 # can be detected and how.
5108 cat >conftest.$ac_ext <<_ACEOF
5109 /* confdefs.h. */
5110 _ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5114 #include <ac_nonexistent.h>
5115 _ACEOF
5116 if { (ac_try="$ac_cpp conftest.$ac_ext"
5117 case "(($ac_try" in
5118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5119 *) ac_try_echo=$ac_try;;
5120 esac
5121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5122 $as_echo "$ac_try_echo") >&5
5123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5124 ac_status=$?
5125 grep -v '^ *+' conftest.er1 >conftest.err
5126 rm -f conftest.er1
5127 cat conftest.err >&5
5128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } >/dev/null && {
5130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5131 test ! -s conftest.err
5132 }; then
5133 # Broken: success on invalid input.
5134 continue
5135 else
5136 $as_echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5138
5139 # Passes both tests.
5140 ac_preproc_ok=:
5141 break
5142 fi
5143
5144 rm -f conftest.err conftest.$ac_ext
5145
5146 done
5147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5148 rm -f conftest.err conftest.$ac_ext
5149 if $ac_preproc_ok; then
5150 break
5151 fi
5152
5153 done
5154 ac_cv_prog_CPP=$CPP
5155
5156 fi
5157 CPP=$ac_cv_prog_CPP
5158 else
5159 ac_cv_prog_CPP=$CPP
5160 fi
5161 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5162 $as_echo "$CPP" >&6; }
5163 ac_preproc_ok=false
5164 for ac_c_preproc_warn_flag in '' yes
5165 do
5166 # Use a header file that comes with gcc, so configuring glibc
5167 # with a fresh cross-compiler works.
5168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5169 # <limits.h> exists even on freestanding compilers.
5170 # On the NeXT, cc -E runs the code through the compiler's parser,
5171 # not just through cpp. "Syntax error" is here to catch this case.
5172 cat >conftest.$ac_ext <<_ACEOF
5173 /* confdefs.h. */
5174 _ACEOF
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
5177 /* end confdefs.h. */
5178 #ifdef __STDC__
5179 # include <limits.h>
5180 #else
5181 # include <assert.h>
5182 #endif
5183 Syntax error
5184 _ACEOF
5185 if { (ac_try="$ac_cpp conftest.$ac_ext"
5186 case "(($ac_try" in
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5189 esac
5190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5191 $as_echo "$ac_try_echo") >&5
5192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5193 ac_status=$?
5194 grep -v '^ *+' conftest.er1 >conftest.err
5195 rm -f conftest.er1
5196 cat conftest.err >&5
5197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } >/dev/null && {
5199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5200 test ! -s conftest.err
5201 }; then
5202 :
5203 else
5204 $as_echo "$as_me: failed program was:" >&5
5205 sed 's/^/| /' conftest.$ac_ext >&5
5206
5207 # Broken: fails on valid input.
5208 continue
5209 fi
5210
5211 rm -f conftest.err conftest.$ac_ext
5212
5213 # OK, works on sane cases. Now check whether nonexistent headers
5214 # can be detected and how.
5215 cat >conftest.$ac_ext <<_ACEOF
5216 /* confdefs.h. */
5217 _ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5221 #include <ac_nonexistent.h>
5222 _ACEOF
5223 if { (ac_try="$ac_cpp conftest.$ac_ext"
5224 case "(($ac_try" in
5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5227 esac
5228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5229 $as_echo "$ac_try_echo") >&5
5230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5231 ac_status=$?
5232 grep -v '^ *+' conftest.er1 >conftest.err
5233 rm -f conftest.er1
5234 cat conftest.err >&5
5235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } >/dev/null && {
5237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5238 test ! -s conftest.err
5239 }; then
5240 # Broken: success on invalid input.
5241 continue
5242 else
5243 $as_echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5245
5246 # Passes both tests.
5247 ac_preproc_ok=:
5248 break
5249 fi
5250
5251 rm -f conftest.err conftest.$ac_ext
5252
5253 done
5254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5255 rm -f conftest.err conftest.$ac_ext
5256 if $ac_preproc_ok; then
5257 :
5258 else
5259 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5260 See \`config.log' for more details." >&5
5261 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5262 See \`config.log' for more details." >&2;}
5263 { (exit 1); exit 1; }; }
5264 fi
5265
5266 ac_ext=c
5267 ac_cpp='$CPP $CPPFLAGS'
5268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5271
5272 # Find a good install program. We prefer a C program (faster),
5273 # so one script is as good as another. But avoid the broken or
5274 # incompatible versions:
5275 # SysV /etc/install, /usr/sbin/install
5276 # SunOS /usr/etc/install
5277 # IRIX /sbin/install
5278 # AIX /bin/install
5279 # AmigaOS /C/install, which installs bootblocks on floppy discs
5280 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5281 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5282 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5283 # OS/2's system install, which has a completely different semantic
5284 # ./install, which can be erroneously created by make from ./install.sh.
5285 # Reject install programs that cannot install multiple files.
5286 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5287 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5288 if test -z "$INSTALL"; then
5289 if test "${ac_cv_path_install+set}" = set; then
5290 $as_echo_n "(cached) " >&6
5291 else
5292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293 for as_dir in $PATH
5294 do
5295 IFS=$as_save_IFS
5296 test -z "$as_dir" && as_dir=.
5297 # Account for people who put trailing slashes in PATH elements.
5298 case $as_dir/ in
5299 ./ | .// | /cC/* | \
5300 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5301 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5302 /usr/ucb/* ) ;;
5303 *)
5304 # OSF1 and SCO ODT 3.0 have their own names for install.
5305 # Don't use installbsd from OSF since it installs stuff as root
5306 # by default.
5307 for ac_prog in ginstall scoinst install; do
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5310 if test $ac_prog = install &&
5311 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5312 # AIX install. It has an incompatible calling convention.
5313 :
5314 elif test $ac_prog = install &&
5315 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5316 # program-specific install script used by HP pwplus--don't use.
5317 :
5318 else
5319 rm -rf conftest.one conftest.two conftest.dir
5320 echo one > conftest.one
5321 echo two > conftest.two
5322 mkdir conftest.dir
5323 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5324 test -s conftest.one && test -s conftest.two &&
5325 test -s conftest.dir/conftest.one &&
5326 test -s conftest.dir/conftest.two
5327 then
5328 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5329 break 3
5330 fi
5331 fi
5332 fi
5333 done
5334 done
5335 ;;
5336 esac
5337
5338 done
5339 IFS=$as_save_IFS
5340
5341 rm -rf conftest.one conftest.two conftest.dir
5342
5343 fi
5344 if test "${ac_cv_path_install+set}" = set; then
5345 INSTALL=$ac_cv_path_install
5346 else
5347 # As a last resort, use the slow shell script. Don't cache a
5348 # value for INSTALL within a source directory, because that will
5349 # break other packages using the cache if that directory is
5350 # removed, or if the value is a relative name.
5351 INSTALL=$ac_install_sh
5352 fi
5353 fi
5354 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5355 $as_echo "$INSTALL" >&6; }
5356
5357 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5358 # It thinks the first close brace ends the variable substitution.
5359 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5360
5361 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5362
5363 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5364
5365 if test "x$RANLIB" = x; then
5366 if test -n "$ac_tool_prefix"; then
5367 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5368 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5369 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5370 $as_echo_n "checking for $ac_word... " >&6; }
5371 if test "${ac_cv_prog_RANLIB+set}" = set; then
5372 $as_echo_n "(cached) " >&6
5373 else
5374 if test -n "$RANLIB"; then
5375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5376 else
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 for as_dir in $PATH
5379 do
5380 IFS=$as_save_IFS
5381 test -z "$as_dir" && as_dir=.
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5384 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5385 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 break 2
5387 fi
5388 done
5389 done
5390 IFS=$as_save_IFS
5391
5392 fi
5393 fi
5394 RANLIB=$ac_cv_prog_RANLIB
5395 if test -n "$RANLIB"; then
5396 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5397 $as_echo "$RANLIB" >&6; }
5398 else
5399 { $as_echo "$as_me:$LINENO: result: no" >&5
5400 $as_echo "no" >&6; }
5401 fi
5402
5403
5404 fi
5405 if test -z "$ac_cv_prog_RANLIB"; then
5406 ac_ct_RANLIB=$RANLIB
5407 # Extract the first word of "ranlib", so it can be a program name with args.
5408 set dummy ranlib; ac_word=$2
5409 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5410 $as_echo_n "checking for $ac_word... " >&6; }
5411 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5412 $as_echo_n "(cached) " >&6
5413 else
5414 if test -n "$ac_ct_RANLIB"; then
5415 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5416 else
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in $PATH
5419 do
5420 IFS=$as_save_IFS
5421 test -z "$as_dir" && as_dir=.
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5424 ac_cv_prog_ac_ct_RANLIB="ranlib"
5425 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 break 2
5427 fi
5428 done
5429 done
5430 IFS=$as_save_IFS
5431
5432 fi
5433 fi
5434 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5435 if test -n "$ac_ct_RANLIB"; then
5436 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5437 $as_echo "$ac_ct_RANLIB" >&6; }
5438 else
5439 { $as_echo "$as_me:$LINENO: result: no" >&5
5440 $as_echo "no" >&6; }
5441 fi
5442
5443 if test "x$ac_ct_RANLIB" = x; then
5444 RANLIB=":"
5445 else
5446 case $cross_compiling:$ac_tool_warned in
5447 yes:)
5448 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5449 whose name does not start with the host triplet. If you think this
5450 configuration is useful to you, please write to autoconf@gnu.org." >&5
5451 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5452 whose name does not start with the host triplet. If you think this
5453 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5454 ac_tool_warned=yes ;;
5455 esac
5456 RANLIB=$ac_ct_RANLIB
5457 fi
5458 else
5459 RANLIB="$ac_cv_prog_RANLIB"
5460 fi
5461
5462 fi
5463
5464 ## Although we're running on an amd64 kernel, we're actually compiling for
5465 ## the x86 architecture. The user should probably have provided an
5466 ## explicit --build to `configure', but if everything else than the kernel
5467 ## is running in i386 mode, we can help them out.
5468 if test "$machine" = "amdx86-64"; then
5469 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5470 $as_echo_n "checking whether i386 is declared... " >&6; }
5471 if test "${ac_cv_have_decl_i386+set}" = set; then
5472 $as_echo_n "(cached) " >&6
5473 else
5474 cat >conftest.$ac_ext <<_ACEOF
5475 /* confdefs.h. */
5476 _ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5480 $ac_includes_default
5481 int
5482 main ()
5483 {
5484 #ifndef i386
5485 (void) i386;
5486 #endif
5487
5488 ;
5489 return 0;
5490 }
5491 _ACEOF
5492 rm -f conftest.$ac_objext
5493 if { (ac_try="$ac_compile"
5494 case "(($ac_try" in
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5497 esac
5498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5499 $as_echo "$ac_try_echo") >&5
5500 (eval "$ac_compile") 2>conftest.er1
5501 ac_status=$?
5502 grep -v '^ *+' conftest.er1 >conftest.err
5503 rm -f conftest.er1
5504 cat conftest.err >&5
5505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } && {
5507 test -z "$ac_c_werror_flag" ||
5508 test ! -s conftest.err
5509 } && test -s conftest.$ac_objext; then
5510 ac_cv_have_decl_i386=yes
5511 else
5512 $as_echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5514
5515 ac_cv_have_decl_i386=no
5516 fi
5517
5518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5519 fi
5520 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5521 $as_echo "$ac_cv_have_decl_i386" >&6; }
5522
5523 if test "$ac_cv_have_decl_i386" = "yes"; then
5524 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5525 machine=intel386
5526 machfile="m/${machine}.h"
5527 fi
5528 fi
5529
5530 # Extract the first word of "install-info", so it can be a program name with args.
5531 set dummy install-info; ac_word=$2
5532 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5535 $as_echo_n "(cached) " >&6
5536 else
5537 case $INSTALL_INFO in
5538 [\\/]* | ?:[\\/]*)
5539 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5540 ;;
5541 *)
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5544 do
5545 IFS=$as_save_IFS
5546 test -z "$as_dir" && as_dir=.
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5549 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5550 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5551 break 2
5552 fi
5553 done
5554 done
5555 IFS=$as_save_IFS
5556
5557 ;;
5558 esac
5559 fi
5560 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5561 if test -n "$INSTALL_INFO"; then
5562 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5563 $as_echo "$INSTALL_INFO" >&6; }
5564 else
5565 { $as_echo "$as_me:$LINENO: result: no" >&5
5566 $as_echo "no" >&6; }
5567 fi
5568
5569
5570 # Extract the first word of "install-info", so it can be a program name with args.
5571 set dummy install-info; ac_word=$2
5572 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5573 $as_echo_n "checking for $ac_word... " >&6; }
5574 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5575 $as_echo_n "(cached) " >&6
5576 else
5577 case $INSTALL_INFO in
5578 [\\/]* | ?:[\\/]*)
5579 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5580 ;;
5581 *)
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 for as_dir in /usr/sbin
5584 do
5585 IFS=$as_save_IFS
5586 test -z "$as_dir" && as_dir=.
5587 for ac_exec_ext in '' $ac_executable_extensions; do
5588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5589 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5590 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5591 break 2
5592 fi
5593 done
5594 done
5595 IFS=$as_save_IFS
5596
5597 ;;
5598 esac
5599 fi
5600 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5601 if test -n "$INSTALL_INFO"; then
5602 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5603 $as_echo "$INSTALL_INFO" >&6; }
5604 else
5605 { $as_echo "$as_me:$LINENO: result: no" >&5
5606 $as_echo "no" >&6; }
5607 fi
5608
5609
5610 # Extract the first word of "install-info", so it can be a program name with args.
5611 set dummy install-info; ac_word=$2
5612 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5615 $as_echo_n "(cached) " >&6
5616 else
5617 case $INSTALL_INFO in
5618 [\\/]* | ?:[\\/]*)
5619 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5620 ;;
5621 *)
5622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623 for as_dir in /sbin
5624 do
5625 IFS=$as_save_IFS
5626 test -z "$as_dir" && as_dir=.
5627 for ac_exec_ext in '' $ac_executable_extensions; do
5628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5629 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5630 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5631 break 2
5632 fi
5633 done
5634 done
5635 IFS=$as_save_IFS
5636
5637 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5638 ;;
5639 esac
5640 fi
5641 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5642 if test -n "$INSTALL_INFO"; then
5643 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5644 $as_echo "$INSTALL_INFO" >&6; }
5645 else
5646 { $as_echo "$as_me:$LINENO: result: no" >&5
5647 $as_echo "no" >&6; }
5648 fi
5649
5650
5651 # Extract the first word of "gzip", so it can be a program name with args.
5652 set dummy gzip; ac_word=$2
5653 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5654 $as_echo_n "checking for $ac_word... " >&6; }
5655 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5656 $as_echo_n "(cached) " >&6
5657 else
5658 case $GZIP_PROG in
5659 [\\/]* | ?:[\\/]*)
5660 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5661 ;;
5662 *)
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH
5665 do
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5670 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5671 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5672 break 2
5673 fi
5674 done
5675 done
5676 IFS=$as_save_IFS
5677
5678 ;;
5679 esac
5680 fi
5681 GZIP_PROG=$ac_cv_path_GZIP_PROG
5682 if test -n "$GZIP_PROG"; then
5683 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5684 $as_echo "$GZIP_PROG" >&6; }
5685 else
5686 { $as_echo "$as_me:$LINENO: result: no" >&5
5687 $as_echo "no" >&6; }
5688 fi
5689
5690
5691
5692
5693 ## Need makeinfo >= 4.6 (?) to build the manuals.
5694 # Extract the first word of "makeinfo", so it can be a program name with args.
5695 set dummy makeinfo; ac_word=$2
5696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5697 $as_echo_n "checking for $ac_word... " >&6; }
5698 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5699 $as_echo_n "(cached) " >&6
5700 else
5701 case $MAKEINFO in
5702 [\\/]* | ?:[\\/]*)
5703 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5704 ;;
5705 *)
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5708 do
5709 IFS=$as_save_IFS
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5713 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5714 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 break 2
5716 fi
5717 done
5718 done
5719 IFS=$as_save_IFS
5720
5721 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5722 ;;
5723 esac
5724 fi
5725 MAKEINFO=$ac_cv_path_MAKEINFO
5726 if test -n "$MAKEINFO"; then
5727 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5728 $as_echo "$MAKEINFO" >&6; }
5729 else
5730 { $as_echo "$as_me:$LINENO: result: no" >&5
5731 $as_echo "no" >&6; }
5732 fi
5733
5734
5735 if test "$MAKEINFO" != "no" && \
5736 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
5737 MAKEINFO=no
5738 fi
5739
5740 ## Makeinfo is unusual. For a released Emacs, the manuals are
5741 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5742 ## therefore in the category of "special tools" not normally required, which
5743 ## configure does not have to check for (eg autoconf itself).
5744 ## In a Bazaar checkout on the other hand, the manuals are not included.
5745 ## So makeinfo is a requirement to build from Bazaar, and configure
5746 ## should test for it as it does for any other build requirement.
5747 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5748 ## with pre-built manuals, from a Bazaar checkout.
5749 if test "$MAKEINFO" = "no"; then
5750 if test "x${with_makeinfo}" = "xno"; then
5751 MAKEINFO=off
5752 elif test ! -e $srcdir/info/emacs; then
5753 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5754 source tree does not seem to have pre-built manuals in the \`info' directory.
5755 Either install a suitable version of makeinfo, or re-run configure
5756 with the \`--without-makeinfo' option to build without the manuals. " >&5
5757 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5758 source tree does not seem to have pre-built manuals in the \`info' directory.
5759 Either install a suitable version of makeinfo, or re-run configure
5760 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5761 { (exit 1); exit 1; }; }
5762 fi
5763 fi
5764
5765
5766 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5767 then
5768 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5769 fi
5770
5771 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5772 then
5773 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5774 fi
5775
5776
5777 late_LDFLAGS=$LDFLAGS
5778 if test "$GCC" = yes; then
5779 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5780 else
5781 LDFLAGS="$LDFLAGS -znocombreloc"
5782 fi
5783
5784 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5785 $as_echo_n "checking for -znocombreloc... " >&6; }
5786 cat >conftest.$ac_ext <<_ACEOF
5787 main(){return 0;}
5788 _ACEOF
5789 rm -f conftest.$ac_objext conftest$ac_exeext
5790 if { (ac_try="$ac_link"
5791 case "(($ac_try" in
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5794 esac
5795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5796 $as_echo "$ac_try_echo") >&5
5797 (eval "$ac_link") 2>conftest.er1
5798 ac_status=$?
5799 grep -v '^ *+' conftest.er1 >conftest.err
5800 rm -f conftest.er1
5801 cat conftest.err >&5
5802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } && {
5804 test -z "$ac_c_werror_flag" ||
5805 test ! -s conftest.err
5806 } && test -s conftest$ac_exeext && {
5807 test "$cross_compiling" = yes ||
5808 $as_test_x conftest$ac_exeext
5809 }; then
5810 { $as_echo "$as_me:$LINENO: result: yes" >&5
5811 $as_echo "yes" >&6; }
5812 else
5813 $as_echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5815
5816 LDFLAGS=$late_LDFLAGS
5817 { $as_echo "$as_me:$LINENO: result: no" >&5
5818 $as_echo "no" >&6; }
5819 fi
5820
5821 rm -rf conftest.dSYM
5822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5823 conftest$ac_exeext conftest.$ac_ext
5824
5825 LIB_MATH=-lm
5826
5827 case $opsys in
5828 cygwin )
5829 LIB_MATH=
5830 ;;
5831 darwin )
5832 ## Adding -lm confuses the dynamic linker, so omit it.
5833 LIB_MATH=
5834 ;;
5835 esac
5836
5837
5838
5839 #### Extract some information from the operating system and machine files.
5840
5841 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5842 - which libraries the lib-src programs will want, and
5843 - whether the GNU malloc routines are usable..." >&5
5844 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5845 - which libraries the lib-src programs will want, and
5846 - whether the GNU malloc routines are usable..." >&6;}
5847
5848 ### First figure out CFLAGS (which we use for running the compiler here)
5849 ### and REAL_CFLAGS (which we use for real compilation).
5850 ### The two are the same except on a few systems, where they are made
5851 ### different to work around various lossages. For example,
5852 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5853 ### as implying static linking.
5854
5855 ### If the CFLAGS env var is specified, we use that value
5856 ### instead of the default.
5857
5858 ### It's not important that this name contain the PID; you can't run
5859 ### two configures in the same directory and have anything work
5860 ### anyway.
5861 tempcname="conftest.c"
5862
5863 echo '
5864 #include "'${srcdir}'/src/'${opsysfile}'"
5865 #include "'${srcdir}'/src/'${machfile}'"
5866 #ifndef LIBS_SYSTEM
5867 #define LIBS_SYSTEM
5868 #endif
5869 #ifndef C_SWITCH_SYSTEM
5870 #define C_SWITCH_SYSTEM
5871 #endif
5872 #ifndef C_SWITCH_MACHINE
5873 #define C_SWITCH_MACHINE
5874 #endif
5875 configure___ libsrc_libs=LIBS_SYSTEM
5876 configure___ c_switch_system=C_SWITCH_SYSTEM
5877 configure___ c_switch_machine=C_SWITCH_MACHINE
5878
5879 configure___ LIBX=-lX11
5880
5881 configure___ unexec=UNEXEC
5882
5883 #ifdef SYSTEM_MALLOC
5884 configure___ system_malloc=yes
5885 #else
5886 configure___ system_malloc=no
5887 #endif
5888
5889 #ifdef USE_MMAP_FOR_BUFFERS
5890 configure___ use_mmap_for_buffers=yes
5891 #else
5892 configure___ use_mmap_for_buffers=no
5893 #endif
5894
5895 #ifndef C_OPTIMIZE_SWITCH
5896 #ifdef __GNUC__
5897 #define C_OPTIMIZE_SWITCH -O2
5898 #else
5899 #define C_OPTIMIZE_SWITCH -O
5900 #endif
5901 #endif
5902
5903 #ifndef C_WARNINGS_SWITCH
5904 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5905 #endif
5906
5907 #ifndef LD_SWITCH_SYSTEM
5908 #define LD_SWITCH_SYSTEM
5909 #endif
5910
5911 #ifndef LD_SWITCH_X_SITE_AUX
5912 #define LD_SWITCH_X_SITE_AUX
5913 #endif
5914
5915 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5916
5917 #ifdef THIS_IS_CONFIGURE
5918
5919 /* Get the CFLAGS for tests in configure. */
5920 #ifdef __GNUC__
5921 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5922 #else
5923 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5924 #endif
5925
5926 #else /* not THIS_IS_CONFIGURE */
5927
5928 /* Get the CFLAGS for real compilation. */
5929 #ifdef __GNUC__
5930 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5931 #else
5932 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5933 #endif
5934
5935 #endif /* not THIS_IS_CONFIGURE */
5936 ' > ${tempcname}
5937
5938 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5939
5940 # The value of CPP is a quoted variable reference, so we need to do this
5941 # to get its actual value...
5942 CPP=`eval "echo $CPP"`
5943 eval `${CPP} -Isrc ${tempcname} \
5944 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5945 if test "x$SPECIFIED_CFLAGS" = x; then
5946 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5947 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5948 else
5949 REAL_CFLAGS="$CFLAGS"
5950 fi
5951 rm ${tempcname}
5952
5953 ac_link="$ac_link $ld_switch_system"
5954
5955 ### Make sure subsequent tests use flags consistent with the build flags.
5956
5957 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5958 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5959 else
5960 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5961 fi
5962
5963
5964
5965 # Check whether --enable-largefile was given.
5966 if test "${enable_largefile+set}" = set; then
5967 enableval=$enable_largefile;
5968 fi
5969
5970 if test "$enable_largefile" != no; then
5971
5972 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5973 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5974 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5975 $as_echo_n "(cached) " >&6
5976 else
5977 ac_cv_sys_largefile_CC=no
5978 if test "$GCC" != yes; then
5979 ac_save_CC=$CC
5980 while :; do
5981 # IRIX 6.2 and later do not support large files by default,
5982 # so use the C compiler's -n32 option if that helps.
5983 cat >conftest.$ac_ext <<_ACEOF
5984 /* confdefs.h. */
5985 _ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5989 #include <sys/types.h>
5990 /* Check that off_t can represent 2**63 - 1 correctly.
5991 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5992 since some C++ compilers masquerading as C compilers
5993 incorrectly reject 9223372036854775807. */
5994 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5995 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5996 && LARGE_OFF_T % 2147483647 == 1)
5997 ? 1 : -1];
5998 int
5999 main ()
6000 {
6001
6002 ;
6003 return 0;
6004 }
6005 _ACEOF
6006 rm -f conftest.$ac_objext
6007 if { (ac_try="$ac_compile"
6008 case "(($ac_try" in
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6011 esac
6012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6013 $as_echo "$ac_try_echo") >&5
6014 (eval "$ac_compile") 2>conftest.er1
6015 ac_status=$?
6016 grep -v '^ *+' conftest.er1 >conftest.err
6017 rm -f conftest.er1
6018 cat conftest.err >&5
6019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } && {
6021 test -z "$ac_c_werror_flag" ||
6022 test ! -s conftest.err
6023 } && test -s conftest.$ac_objext; then
6024 break
6025 else
6026 $as_echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6028
6029
6030 fi
6031
6032 rm -f core conftest.err conftest.$ac_objext
6033 CC="$CC -n32"
6034 rm -f conftest.$ac_objext
6035 if { (ac_try="$ac_compile"
6036 case "(($ac_try" in
6037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6038 *) ac_try_echo=$ac_try;;
6039 esac
6040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6041 $as_echo "$ac_try_echo") >&5
6042 (eval "$ac_compile") 2>conftest.er1
6043 ac_status=$?
6044 grep -v '^ *+' conftest.er1 >conftest.err
6045 rm -f conftest.er1
6046 cat conftest.err >&5
6047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } && {
6049 test -z "$ac_c_werror_flag" ||
6050 test ! -s conftest.err
6051 } && test -s conftest.$ac_objext; then
6052 ac_cv_sys_largefile_CC=' -n32'; break
6053 else
6054 $as_echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6056
6057
6058 fi
6059
6060 rm -f core conftest.err conftest.$ac_objext
6061 break
6062 done
6063 CC=$ac_save_CC
6064 rm -f conftest.$ac_ext
6065 fi
6066 fi
6067 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6068 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6069 if test "$ac_cv_sys_largefile_CC" != no; then
6070 CC=$CC$ac_cv_sys_largefile_CC
6071 fi
6072
6073 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6074 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6075 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6076 $as_echo_n "(cached) " >&6
6077 else
6078 while :; do
6079 cat >conftest.$ac_ext <<_ACEOF
6080 /* confdefs.h. */
6081 _ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 #include <sys/types.h>
6086 /* Check that off_t can represent 2**63 - 1 correctly.
6087 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6088 since some C++ compilers masquerading as C compilers
6089 incorrectly reject 9223372036854775807. */
6090 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6091 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6092 && LARGE_OFF_T % 2147483647 == 1)
6093 ? 1 : -1];
6094 int
6095 main ()
6096 {
6097
6098 ;
6099 return 0;
6100 }
6101 _ACEOF
6102 rm -f conftest.$ac_objext
6103 if { (ac_try="$ac_compile"
6104 case "(($ac_try" in
6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6107 esac
6108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6109 $as_echo "$ac_try_echo") >&5
6110 (eval "$ac_compile") 2>conftest.er1
6111 ac_status=$?
6112 grep -v '^ *+' conftest.er1 >conftest.err
6113 rm -f conftest.er1
6114 cat conftest.err >&5
6115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } && {
6117 test -z "$ac_c_werror_flag" ||
6118 test ! -s conftest.err
6119 } && test -s conftest.$ac_objext; then
6120 ac_cv_sys_file_offset_bits=no; break
6121 else
6122 $as_echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6124
6125
6126 fi
6127
6128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129 cat >conftest.$ac_ext <<_ACEOF
6130 /* confdefs.h. */
6131 _ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6135 #define _FILE_OFFSET_BITS 64
6136 #include <sys/types.h>
6137 /* Check that off_t can represent 2**63 - 1 correctly.
6138 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6139 since some C++ compilers masquerading as C compilers
6140 incorrectly reject 9223372036854775807. */
6141 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6142 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6143 && LARGE_OFF_T % 2147483647 == 1)
6144 ? 1 : -1];
6145 int
6146 main ()
6147 {
6148
6149 ;
6150 return 0;
6151 }
6152 _ACEOF
6153 rm -f conftest.$ac_objext
6154 if { (ac_try="$ac_compile"
6155 case "(($ac_try" in
6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157 *) ac_try_echo=$ac_try;;
6158 esac
6159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6160 $as_echo "$ac_try_echo") >&5
6161 (eval "$ac_compile") 2>conftest.er1
6162 ac_status=$?
6163 grep -v '^ *+' conftest.er1 >conftest.err
6164 rm -f conftest.er1
6165 cat conftest.err >&5
6166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } && {
6168 test -z "$ac_c_werror_flag" ||
6169 test ! -s conftest.err
6170 } && test -s conftest.$ac_objext; then
6171 ac_cv_sys_file_offset_bits=64; break
6172 else
6173 $as_echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6175
6176
6177 fi
6178
6179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180 ac_cv_sys_file_offset_bits=unknown
6181 break
6182 done
6183 fi
6184 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6185 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6186 case $ac_cv_sys_file_offset_bits in #(
6187 no | unknown) ;;
6188 *)
6189 cat >>confdefs.h <<_ACEOF
6190 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6191 _ACEOF
6192 ;;
6193 esac
6194 rm -rf conftest*
6195 if test $ac_cv_sys_file_offset_bits = unknown; then
6196 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6197 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6198 if test "${ac_cv_sys_large_files+set}" = set; then
6199 $as_echo_n "(cached) " >&6
6200 else
6201 while :; do
6202 cat >conftest.$ac_ext <<_ACEOF
6203 /* confdefs.h. */
6204 _ACEOF
6205 cat confdefs.h >>conftest.$ac_ext
6206 cat >>conftest.$ac_ext <<_ACEOF
6207 /* end confdefs.h. */
6208 #include <sys/types.h>
6209 /* Check that off_t can represent 2**63 - 1 correctly.
6210 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6211 since some C++ compilers masquerading as C compilers
6212 incorrectly reject 9223372036854775807. */
6213 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6214 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6215 && LARGE_OFF_T % 2147483647 == 1)
6216 ? 1 : -1];
6217 int
6218 main ()
6219 {
6220
6221 ;
6222 return 0;
6223 }
6224 _ACEOF
6225 rm -f conftest.$ac_objext
6226 if { (ac_try="$ac_compile"
6227 case "(($ac_try" in
6228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6229 *) ac_try_echo=$ac_try;;
6230 esac
6231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6232 $as_echo "$ac_try_echo") >&5
6233 (eval "$ac_compile") 2>conftest.er1
6234 ac_status=$?
6235 grep -v '^ *+' conftest.er1 >conftest.err
6236 rm -f conftest.er1
6237 cat conftest.err >&5
6238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } && {
6240 test -z "$ac_c_werror_flag" ||
6241 test ! -s conftest.err
6242 } && test -s conftest.$ac_objext; then
6243 ac_cv_sys_large_files=no; break
6244 else
6245 $as_echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6247
6248
6249 fi
6250
6251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252 cat >conftest.$ac_ext <<_ACEOF
6253 /* confdefs.h. */
6254 _ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h. */
6258 #define _LARGE_FILES 1
6259 #include <sys/types.h>
6260 /* Check that off_t can represent 2**63 - 1 correctly.
6261 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6262 since some C++ compilers masquerading as C compilers
6263 incorrectly reject 9223372036854775807. */
6264 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6265 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6266 && LARGE_OFF_T % 2147483647 == 1)
6267 ? 1 : -1];
6268 int
6269 main ()
6270 {
6271
6272 ;
6273 return 0;
6274 }
6275 _ACEOF
6276 rm -f conftest.$ac_objext
6277 if { (ac_try="$ac_compile"
6278 case "(($ac_try" in
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6281 esac
6282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6283 $as_echo "$ac_try_echo") >&5
6284 (eval "$ac_compile") 2>conftest.er1
6285 ac_status=$?
6286 grep -v '^ *+' conftest.er1 >conftest.err
6287 rm -f conftest.er1
6288 cat conftest.err >&5
6289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } && {
6291 test -z "$ac_c_werror_flag" ||
6292 test ! -s conftest.err
6293 } && test -s conftest.$ac_objext; then
6294 ac_cv_sys_large_files=1; break
6295 else
6296 $as_echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6298
6299
6300 fi
6301
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303 ac_cv_sys_large_files=unknown
6304 break
6305 done
6306 fi
6307 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6308 $as_echo "$ac_cv_sys_large_files" >&6; }
6309 case $ac_cv_sys_large_files in #(
6310 no | unknown) ;;
6311 *)
6312 cat >>confdefs.h <<_ACEOF
6313 #define _LARGE_FILES $ac_cv_sys_large_files
6314 _ACEOF
6315 ;;
6316 esac
6317 rm -rf conftest*
6318 fi
6319 fi
6320
6321
6322
6323 ## If user specified a crt-dir, use that unconditionally.
6324 if test "X$CRT_DIR" = "X"; then
6325
6326 case "$canonical" in
6327 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6328 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6329 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6330 ## For anything else (eg /usr/lib32), it is up the user to specify
6331 ## the location (bug#5655).
6332 ## Test for crtn.o, not just the directory, because sometimes the
6333 ## directory exists but does not have the relevant files (bug#1287).
6334 ## FIXME better to test for binary compatibility somehow.
6335 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6336 ;;
6337
6338 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6339 esac
6340
6341 case "$opsys" in
6342 hpux10-20) CRT_DIR=/lib ;;
6343 esac
6344
6345 ## Default is /usr/lib.
6346 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6347
6348 else
6349
6350 ## Some platforms don't use any of these files, so it is not
6351 ## appropriate to put this test outside the if block.
6352 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6353 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6354 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6355 { (exit 1); exit 1; }; }
6356
6357 fi
6358
6359
6360
6361
6362
6363
6364
6365 if test "${with_sound}" != "no"; then
6366 # Sound support for GNU/Linux and the free BSDs.
6367
6368
6369
6370 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6371 do
6372 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6374 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6375 $as_echo_n "checking for $ac_header... " >&6; }
6376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6377 $as_echo_n "(cached) " >&6
6378 fi
6379 ac_res=`eval 'as_val=${'$as_ac_Header'}
6380 $as_echo "$as_val"'`
6381 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6382 $as_echo "$ac_res" >&6; }
6383 else
6384 # Is the header compilable?
6385 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6386 $as_echo_n "checking $ac_header usability... " >&6; }
6387 cat >conftest.$ac_ext <<_ACEOF
6388 /* confdefs.h. */
6389 _ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6393 $ac_includes_default
6394 #include <$ac_header>
6395 _ACEOF
6396 rm -f conftest.$ac_objext
6397 if { (ac_try="$ac_compile"
6398 case "(($ac_try" in
6399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6401 esac
6402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6403 $as_echo "$ac_try_echo") >&5
6404 (eval "$ac_compile") 2>conftest.er1
6405 ac_status=$?
6406 grep -v '^ *+' conftest.er1 >conftest.err
6407 rm -f conftest.er1
6408 cat conftest.err >&5
6409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } && {
6411 test -z "$ac_c_werror_flag" ||
6412 test ! -s conftest.err
6413 } && test -s conftest.$ac_objext; then
6414 ac_header_compiler=yes
6415 else
6416 $as_echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6418
6419 ac_header_compiler=no
6420 fi
6421
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6424 $as_echo "$ac_header_compiler" >&6; }
6425
6426 # Is the header present?
6427 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6428 $as_echo_n "checking $ac_header presence... " >&6; }
6429 cat >conftest.$ac_ext <<_ACEOF
6430 /* confdefs.h. */
6431 _ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h. */
6435 #include <$ac_header>
6436 _ACEOF
6437 if { (ac_try="$ac_cpp conftest.$ac_ext"
6438 case "(($ac_try" in
6439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6441 esac
6442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6443 $as_echo "$ac_try_echo") >&5
6444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6445 ac_status=$?
6446 grep -v '^ *+' conftest.er1 >conftest.err
6447 rm -f conftest.er1
6448 cat conftest.err >&5
6449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } >/dev/null && {
6451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6452 test ! -s conftest.err
6453 }; then
6454 ac_header_preproc=yes
6455 else
6456 $as_echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6458
6459 ac_header_preproc=no
6460 fi
6461
6462 rm -f conftest.err conftest.$ac_ext
6463 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6464 $as_echo "$ac_header_preproc" >&6; }
6465
6466 # So? What about this header?
6467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6468 yes:no: )
6469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6470 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6472 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6473 ac_header_preproc=yes
6474 ;;
6475 no:yes:* )
6476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6477 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6479 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6481 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6482 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6483 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6484 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6485 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6486 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6487 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6488
6489 ;;
6490 esac
6491 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6492 $as_echo_n "checking for $ac_header... " >&6; }
6493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6494 $as_echo_n "(cached) " >&6
6495 else
6496 eval "$as_ac_Header=\$ac_header_preproc"
6497 fi
6498 ac_res=`eval 'as_val=${'$as_ac_Header'}
6499 $as_echo "$as_val"'`
6500 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6501 $as_echo "$ac_res" >&6; }
6502
6503 fi
6504 if test `eval 'as_val=${'$as_ac_Header'}
6505 $as_echo "$as_val"'` = yes; then
6506 cat >>confdefs.h <<_ACEOF
6507 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6508 _ACEOF
6509
6510 fi
6511
6512 done
6513
6514 # Emulation library used on NetBSD.
6515 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6516 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6517 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6518 $as_echo_n "(cached) " >&6
6519 else
6520 ac_check_lib_save_LIBS=$LIBS
6521 LIBS="-lossaudio $LIBS"
6522 cat >conftest.$ac_ext <<_ACEOF
6523 /* confdefs.h. */
6524 _ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6528
6529 /* Override any GCC internal prototype to avoid an error.
6530 Use char because int might match the return type of a GCC
6531 builtin and then its argument prototype would still apply. */
6532 #ifdef __cplusplus
6533 extern "C"
6534 #endif
6535 char _oss_ioctl ();
6536 int
6537 main ()
6538 {
6539 return _oss_ioctl ();
6540 ;
6541 return 0;
6542 }
6543 _ACEOF
6544 rm -f conftest.$ac_objext conftest$ac_exeext
6545 if { (ac_try="$ac_link"
6546 case "(($ac_try" in
6547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6549 esac
6550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6551 $as_echo "$ac_try_echo") >&5
6552 (eval "$ac_link") 2>conftest.er1
6553 ac_status=$?
6554 grep -v '^ *+' conftest.er1 >conftest.err
6555 rm -f conftest.er1
6556 cat conftest.err >&5
6557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } && {
6559 test -z "$ac_c_werror_flag" ||
6560 test ! -s conftest.err
6561 } && test -s conftest$ac_exeext && {
6562 test "$cross_compiling" = yes ||
6563 $as_test_x conftest$ac_exeext
6564 }; then
6565 ac_cv_lib_ossaudio__oss_ioctl=yes
6566 else
6567 $as_echo "$as_me: failed program was:" >&5
6568 sed 's/^/| /' conftest.$ac_ext >&5
6569
6570 ac_cv_lib_ossaudio__oss_ioctl=no
6571 fi
6572
6573 rm -rf conftest.dSYM
6574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6575 conftest$ac_exeext conftest.$ac_ext
6576 LIBS=$ac_check_lib_save_LIBS
6577 fi
6578 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6579 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6580 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6581 LIBSOUND=-lossaudio
6582 else
6583 LIBSOUND=
6584 fi
6585
6586
6587
6588 ALSA_REQUIRED=1.0.0
6589 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6590
6591 succeeded=no
6592
6593 # Extract the first word of "pkg-config", so it can be a program name with args.
6594 set dummy pkg-config; ac_word=$2
6595 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6596 $as_echo_n "checking for $ac_word... " >&6; }
6597 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6598 $as_echo_n "(cached) " >&6
6599 else
6600 case $PKG_CONFIG in
6601 [\\/]* | ?:[\\/]*)
6602 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6603 ;;
6604 *)
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6607 do
6608 IFS=$as_save_IFS
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6613 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 break 2
6615 fi
6616 done
6617 done
6618 IFS=$as_save_IFS
6619
6620 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6621 ;;
6622 esac
6623 fi
6624 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6625 if test -n "$PKG_CONFIG"; then
6626 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6627 $as_echo "$PKG_CONFIG" >&6; }
6628 else
6629 { $as_echo "$as_me:$LINENO: result: no" >&5
6630 $as_echo "no" >&6; }
6631 fi
6632
6633
6634
6635 if test "$PKG_CONFIG" = "no" ; then
6636 HAVE_ALSA=no
6637 else
6638 PKG_CONFIG_MIN_VERSION=0.9.0
6639 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6640 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6641 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6642
6643 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6644 { $as_echo "$as_me:$LINENO: result: yes" >&5
6645 $as_echo "yes" >&6; }
6646 succeeded=yes
6647
6648 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6649 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6650 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6651 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6652 $as_echo "$ALSA_CFLAGS" >&6; }
6653
6654 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6655 $as_echo_n "checking ALSA_LIBS... " >&6; }
6656 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6657 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6658 $as_echo "$ALSA_LIBS" >&6; }
6659 else
6660 { $as_echo "$as_me:$LINENO: result: no" >&5
6661 $as_echo "no" >&6; }
6662 ALSA_CFLAGS=""
6663 ALSA_LIBS=""
6664 ## If we have a custom action on failure, don't print errors, but
6665 ## do set a variable so people can do so.
6666 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6667
6668 fi
6669
6670
6671
6672 else
6673 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6674 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6675 fi
6676 fi
6677
6678 if test $succeeded = yes; then
6679 HAVE_ALSA=yes
6680 else
6681 HAVE_ALSA=no
6682 fi
6683
6684 if test $HAVE_ALSA = yes; then
6685 SAVE_CFLAGS="$CFLAGS"
6686 SAVE_LDFLAGS="$LDFLAGS"
6687 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6688 LDFLAGS="$ALSA_LIBS $LDFLAGS"
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 #include <asoundlib.h>
6696 int
6697 main ()
6698 {
6699 snd_lib_error_set_handler (0);
6700 ;
6701 return 0;
6702 }
6703 _ACEOF
6704 rm -f conftest.$ac_objext
6705 if { (ac_try="$ac_compile"
6706 case "(($ac_try" in
6707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708 *) ac_try_echo=$ac_try;;
6709 esac
6710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6711 $as_echo "$ac_try_echo") >&5
6712 (eval "$ac_compile") 2>conftest.er1
6713 ac_status=$?
6714 grep -v '^ *+' conftest.er1 >conftest.err
6715 rm -f conftest.er1
6716 cat conftest.err >&5
6717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && {
6719 test -z "$ac_c_werror_flag" ||
6720 test ! -s conftest.err
6721 } && test -s conftest.$ac_objext; then
6722 emacs_alsa_normal=yes
6723 else
6724 $as_echo "$as_me: failed program was:" >&5
6725 sed 's/^/| /' conftest.$ac_ext >&5
6726
6727 emacs_alsa_normal=no
6728 fi
6729
6730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731 if test "$emacs_alsa_normal" != yes; then
6732 cat >conftest.$ac_ext <<_ACEOF
6733 /* confdefs.h. */
6734 _ACEOF
6735 cat confdefs.h >>conftest.$ac_ext
6736 cat >>conftest.$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6738 #include <alsa/asoundlib.h>
6739 int
6740 main ()
6741 {
6742 snd_lib_error_set_handler (0);
6743 ;
6744 return 0;
6745 }
6746 _ACEOF
6747 rm -f conftest.$ac_objext
6748 if { (ac_try="$ac_compile"
6749 case "(($ac_try" in
6750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6751 *) ac_try_echo=$ac_try;;
6752 esac
6753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6754 $as_echo "$ac_try_echo") >&5
6755 (eval "$ac_compile") 2>conftest.er1
6756 ac_status=$?
6757 grep -v '^ *+' conftest.er1 >conftest.err
6758 rm -f conftest.er1
6759 cat conftest.err >&5
6760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); } && {
6762 test -z "$ac_c_werror_flag" ||
6763 test ! -s conftest.err
6764 } && test -s conftest.$ac_objext; then
6765 emacs_alsa_subdir=yes
6766 else
6767 $as_echo "$as_me: failed program was:" >&5
6768 sed 's/^/| /' conftest.$ac_ext >&5
6769
6770 emacs_alsa_subdir=no
6771 fi
6772
6773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6774 if test "$emacs_alsa_subdir" != yes; then
6775 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6776 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6777 { (exit 1); exit 1; }; }
6778 fi
6779 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6780 fi
6781
6782 CFLAGS="$SAVE_CFLAGS"
6783 LDFLAGS="$SAVE_LDFLAGS"
6784 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6785 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6786
6787 cat >>confdefs.h <<\_ACEOF
6788 #define HAVE_ALSA 1
6789 _ACEOF
6790
6791 fi
6792
6793 fi
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6821 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6822 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6823 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6824 sys/utsname.h pwd.h utmp.h
6825 do
6826 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6828 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6829 $as_echo_n "checking for $ac_header... " >&6; }
6830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6831 $as_echo_n "(cached) " >&6
6832 fi
6833 ac_res=`eval 'as_val=${'$as_ac_Header'}
6834 $as_echo "$as_val"'`
6835 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6836 $as_echo "$ac_res" >&6; }
6837 else
6838 # Is the header compilable?
6839 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6840 $as_echo_n "checking $ac_header usability... " >&6; }
6841 cat >conftest.$ac_ext <<_ACEOF
6842 /* confdefs.h. */
6843 _ACEOF
6844 cat confdefs.h >>conftest.$ac_ext
6845 cat >>conftest.$ac_ext <<_ACEOF
6846 /* end confdefs.h. */
6847 $ac_includes_default
6848 #include <$ac_header>
6849 _ACEOF
6850 rm -f conftest.$ac_objext
6851 if { (ac_try="$ac_compile"
6852 case "(($ac_try" in
6853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6854 *) ac_try_echo=$ac_try;;
6855 esac
6856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6857 $as_echo "$ac_try_echo") >&5
6858 (eval "$ac_compile") 2>conftest.er1
6859 ac_status=$?
6860 grep -v '^ *+' conftest.er1 >conftest.err
6861 rm -f conftest.er1
6862 cat conftest.err >&5
6863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); } && {
6865 test -z "$ac_c_werror_flag" ||
6866 test ! -s conftest.err
6867 } && test -s conftest.$ac_objext; then
6868 ac_header_compiler=yes
6869 else
6870 $as_echo "$as_me: failed program was:" >&5
6871 sed 's/^/| /' conftest.$ac_ext >&5
6872
6873 ac_header_compiler=no
6874 fi
6875
6876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6877 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6878 $as_echo "$ac_header_compiler" >&6; }
6879
6880 # Is the header present?
6881 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6882 $as_echo_n "checking $ac_header presence... " >&6; }
6883 cat >conftest.$ac_ext <<_ACEOF
6884 /* confdefs.h. */
6885 _ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6889 #include <$ac_header>
6890 _ACEOF
6891 if { (ac_try="$ac_cpp conftest.$ac_ext"
6892 case "(($ac_try" in
6893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6894 *) ac_try_echo=$ac_try;;
6895 esac
6896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6897 $as_echo "$ac_try_echo") >&5
6898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6899 ac_status=$?
6900 grep -v '^ *+' conftest.er1 >conftest.err
6901 rm -f conftest.er1
6902 cat conftest.err >&5
6903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } >/dev/null && {
6905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6906 test ! -s conftest.err
6907 }; then
6908 ac_header_preproc=yes
6909 else
6910 $as_echo "$as_me: failed program was:" >&5
6911 sed 's/^/| /' conftest.$ac_ext >&5
6912
6913 ac_header_preproc=no
6914 fi
6915
6916 rm -f conftest.err conftest.$ac_ext
6917 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6918 $as_echo "$ac_header_preproc" >&6; }
6919
6920 # So? What about this header?
6921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6922 yes:no: )
6923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6924 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6926 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6927 ac_header_preproc=yes
6928 ;;
6929 no:yes:* )
6930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6931 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6933 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6935 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6937 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6939 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6941 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6942
6943 ;;
6944 esac
6945 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6946 $as_echo_n "checking for $ac_header... " >&6; }
6947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6948 $as_echo_n "(cached) " >&6
6949 else
6950 eval "$as_ac_Header=\$ac_header_preproc"
6951 fi
6952 ac_res=`eval 'as_val=${'$as_ac_Header'}
6953 $as_echo "$as_val"'`
6954 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6955 $as_echo "$ac_res" >&6; }
6956
6957 fi
6958 if test `eval 'as_val=${'$as_ac_Header'}
6959 $as_echo "$as_val"'` = yes; then
6960 cat >>confdefs.h <<_ACEOF
6961 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6962 _ACEOF
6963
6964 fi
6965
6966 done
6967
6968
6969 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6970 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6971 cat >conftest.$ac_ext <<_ACEOF
6972 /* confdefs.h. */
6973 _ACEOF
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h. */
6977 #include <sys/personality.h>
6978 int
6979 main ()
6980 {
6981 personality (PER_LINUX32)
6982 ;
6983 return 0;
6984 }
6985 _ACEOF
6986 rm -f conftest.$ac_objext
6987 if { (ac_try="$ac_compile"
6988 case "(($ac_try" in
6989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6990 *) ac_try_echo=$ac_try;;
6991 esac
6992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6993 $as_echo "$ac_try_echo") >&5
6994 (eval "$ac_compile") 2>conftest.er1
6995 ac_status=$?
6996 grep -v '^ *+' conftest.er1 >conftest.err
6997 rm -f conftest.er1
6998 cat conftest.err >&5
6999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } && {
7001 test -z "$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7003 } && test -s conftest.$ac_objext; then
7004 emacs_cv_personality_linux32=yes
7005 else
7006 $as_echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7008
7009 emacs_cv_personality_linux32=no
7010 fi
7011
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7014 $as_echo "$emacs_cv_personality_linux32" >&6; }
7015
7016 if test $emacs_cv_personality_linux32 = yes; then
7017
7018 cat >>confdefs.h <<\_ACEOF
7019 #define HAVE_PERSONALITY_LINUX32 1
7020 _ACEOF
7021
7022 fi
7023
7024
7025 for ac_header in term.h
7026 do
7027 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7028 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7029 $as_echo_n "checking for $ac_header... " >&6; }
7030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7031 $as_echo_n "(cached) " >&6
7032 else
7033 cat >conftest.$ac_ext <<_ACEOF
7034 /* confdefs.h. */
7035 _ACEOF
7036 cat confdefs.h >>conftest.$ac_ext
7037 cat >>conftest.$ac_ext <<_ACEOF
7038 /* end confdefs.h. */
7039 #include <$ac_header>
7040 _ACEOF
7041 if { (ac_try="$ac_cpp conftest.$ac_ext"
7042 case "(($ac_try" in
7043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7044 *) ac_try_echo=$ac_try;;
7045 esac
7046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7047 $as_echo "$ac_try_echo") >&5
7048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7049 ac_status=$?
7050 grep -v '^ *+' conftest.er1 >conftest.err
7051 rm -f conftest.er1
7052 cat conftest.err >&5
7053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } >/dev/null && {
7055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7056 test ! -s conftest.err
7057 }; then
7058 eval "$as_ac_Header=yes"
7059 else
7060 $as_echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7062
7063 eval "$as_ac_Header=no"
7064 fi
7065
7066 rm -f conftest.err conftest.$ac_ext
7067 fi
7068 ac_res=`eval 'as_val=${'$as_ac_Header'}
7069 $as_echo "$as_val"'`
7070 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7071 $as_echo "$ac_res" >&6; }
7072 if test `eval 'as_val=${'$as_ac_Header'}
7073 $as_echo "$as_val"'` = yes; then
7074 cat >>confdefs.h <<_ACEOF
7075 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7076 _ACEOF
7077
7078 fi
7079
7080 done
7081
7082 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7083 $as_echo_n "checking for ANSI C header files... " >&6; }
7084 if test "${ac_cv_header_stdc+set}" = set; then
7085 $as_echo_n "(cached) " >&6
7086 else
7087 cat >conftest.$ac_ext <<_ACEOF
7088 /* confdefs.h. */
7089 _ACEOF
7090 cat confdefs.h >>conftest.$ac_ext
7091 cat >>conftest.$ac_ext <<_ACEOF
7092 /* end confdefs.h. */
7093 #include <stdlib.h>
7094 #include <stdarg.h>
7095 #include <string.h>
7096 #include <float.h>
7097
7098 int
7099 main ()
7100 {
7101
7102 ;
7103 return 0;
7104 }
7105 _ACEOF
7106 rm -f conftest.$ac_objext
7107 if { (ac_try="$ac_compile"
7108 case "(($ac_try" in
7109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7110 *) ac_try_echo=$ac_try;;
7111 esac
7112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7113 $as_echo "$ac_try_echo") >&5
7114 (eval "$ac_compile") 2>conftest.er1
7115 ac_status=$?
7116 grep -v '^ *+' conftest.er1 >conftest.err
7117 rm -f conftest.er1
7118 cat conftest.err >&5
7119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); } && {
7121 test -z "$ac_c_werror_flag" ||
7122 test ! -s conftest.err
7123 } && test -s conftest.$ac_objext; then
7124 ac_cv_header_stdc=yes
7125 else
7126 $as_echo "$as_me: failed program was:" >&5
7127 sed 's/^/| /' conftest.$ac_ext >&5
7128
7129 ac_cv_header_stdc=no
7130 fi
7131
7132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133
7134 if test $ac_cv_header_stdc = yes; then
7135 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7136 cat >conftest.$ac_ext <<_ACEOF
7137 /* confdefs.h. */
7138 _ACEOF
7139 cat confdefs.h >>conftest.$ac_ext
7140 cat >>conftest.$ac_ext <<_ACEOF
7141 /* end confdefs.h. */
7142 #include <string.h>
7143
7144 _ACEOF
7145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7146 $EGREP "memchr" >/dev/null 2>&1; then
7147 :
7148 else
7149 ac_cv_header_stdc=no
7150 fi
7151 rm -f conftest*
7152
7153 fi
7154
7155 if test $ac_cv_header_stdc = yes; then
7156 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7157 cat >conftest.$ac_ext <<_ACEOF
7158 /* confdefs.h. */
7159 _ACEOF
7160 cat confdefs.h >>conftest.$ac_ext
7161 cat >>conftest.$ac_ext <<_ACEOF
7162 /* end confdefs.h. */
7163 #include <stdlib.h>
7164
7165 _ACEOF
7166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7167 $EGREP "free" >/dev/null 2>&1; then
7168 :
7169 else
7170 ac_cv_header_stdc=no
7171 fi
7172 rm -f conftest*
7173
7174 fi
7175
7176 if test $ac_cv_header_stdc = yes; then
7177 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7178 if test "$cross_compiling" = yes; then
7179 :
7180 else
7181 cat >conftest.$ac_ext <<_ACEOF
7182 /* confdefs.h. */
7183 _ACEOF
7184 cat confdefs.h >>conftest.$ac_ext
7185 cat >>conftest.$ac_ext <<_ACEOF
7186 /* end confdefs.h. */
7187 #include <ctype.h>
7188 #include <stdlib.h>
7189 #if ((' ' & 0x0FF) == 0x020)
7190 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7191 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7192 #else
7193 # define ISLOWER(c) \
7194 (('a' <= (c) && (c) <= 'i') \
7195 || ('j' <= (c) && (c) <= 'r') \
7196 || ('s' <= (c) && (c) <= 'z'))
7197 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7198 #endif
7199
7200 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7201 int
7202 main ()
7203 {
7204 int i;
7205 for (i = 0; i < 256; i++)
7206 if (XOR (islower (i), ISLOWER (i))
7207 || toupper (i) != TOUPPER (i))
7208 return 2;
7209 return 0;
7210 }
7211 _ACEOF
7212 rm -f conftest$ac_exeext
7213 if { (ac_try="$ac_link"
7214 case "(($ac_try" in
7215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7216 *) ac_try_echo=$ac_try;;
7217 esac
7218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7219 $as_echo "$ac_try_echo") >&5
7220 (eval "$ac_link") 2>&5
7221 ac_status=$?
7222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7224 { (case "(($ac_try" in
7225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7226 *) ac_try_echo=$ac_try;;
7227 esac
7228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7229 $as_echo "$ac_try_echo") >&5
7230 (eval "$ac_try") 2>&5
7231 ac_status=$?
7232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); }; }; then
7234 :
7235 else
7236 $as_echo "$as_me: program exited with status $ac_status" >&5
7237 $as_echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.$ac_ext >&5
7239
7240 ( exit $ac_status )
7241 ac_cv_header_stdc=no
7242 fi
7243 rm -rf conftest.dSYM
7244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7245 fi
7246
7247
7248 fi
7249 fi
7250 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7251 $as_echo "$ac_cv_header_stdc" >&6; }
7252 if test $ac_cv_header_stdc = yes; then
7253
7254 cat >>confdefs.h <<\_ACEOF
7255 #define STDC_HEADERS 1
7256 _ACEOF
7257
7258 fi
7259
7260 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7261 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7262 if test "${ac_cv_header_time+set}" = set; then
7263 $as_echo_n "(cached) " >&6
7264 else
7265 cat >conftest.$ac_ext <<_ACEOF
7266 /* confdefs.h. */
7267 _ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7271 #include <sys/types.h>
7272 #include <sys/time.h>
7273 #include <time.h>
7274
7275 int
7276 main ()
7277 {
7278 if ((struct tm *) 0)
7279 return 0;
7280 ;
7281 return 0;
7282 }
7283 _ACEOF
7284 rm -f conftest.$ac_objext
7285 if { (ac_try="$ac_compile"
7286 case "(($ac_try" in
7287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7288 *) ac_try_echo=$ac_try;;
7289 esac
7290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7291 $as_echo "$ac_try_echo") >&5
7292 (eval "$ac_compile") 2>conftest.er1
7293 ac_status=$?
7294 grep -v '^ *+' conftest.er1 >conftest.err
7295 rm -f conftest.er1
7296 cat conftest.err >&5
7297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } && {
7299 test -z "$ac_c_werror_flag" ||
7300 test ! -s conftest.err
7301 } && test -s conftest.$ac_objext; then
7302 ac_cv_header_time=yes
7303 else
7304 $as_echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7306
7307 ac_cv_header_time=no
7308 fi
7309
7310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311 fi
7312 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7313 $as_echo "$ac_cv_header_time" >&6; }
7314 if test $ac_cv_header_time = yes; then
7315
7316 cat >>confdefs.h <<\_ACEOF
7317 #define TIME_WITH_SYS_TIME 1
7318 _ACEOF
7319
7320 fi
7321
7322 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7323 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7324 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7325 $as_echo_n "(cached) " >&6
7326 else
7327 cat >conftest.$ac_ext <<_ACEOF
7328 /* confdefs.h. */
7329 _ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7333 $ac_includes_default
7334 int
7335 main ()
7336 {
7337 #ifndef sys_siglist
7338 (void) sys_siglist;
7339 #endif
7340
7341 ;
7342 return 0;
7343 }
7344 _ACEOF
7345 rm -f conftest.$ac_objext
7346 if { (ac_try="$ac_compile"
7347 case "(($ac_try" in
7348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7349 *) ac_try_echo=$ac_try;;
7350 esac
7351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7352 $as_echo "$ac_try_echo") >&5
7353 (eval "$ac_compile") 2>conftest.er1
7354 ac_status=$?
7355 grep -v '^ *+' conftest.er1 >conftest.err
7356 rm -f conftest.er1
7357 cat conftest.err >&5
7358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); } && {
7360 test -z "$ac_c_werror_flag" ||
7361 test ! -s conftest.err
7362 } && test -s conftest.$ac_objext; then
7363 ac_cv_have_decl_sys_siglist=yes
7364 else
7365 $as_echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7367
7368 ac_cv_have_decl_sys_siglist=no
7369 fi
7370
7371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7372 fi
7373 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7374 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7375 if test $ac_cv_have_decl_sys_siglist = yes; then
7376
7377 cat >>confdefs.h <<_ACEOF
7378 #define HAVE_DECL_SYS_SIGLIST 1
7379 _ACEOF
7380
7381
7382 else
7383 cat >>confdefs.h <<_ACEOF
7384 #define HAVE_DECL_SYS_SIGLIST 0
7385 _ACEOF
7386
7387
7388 fi
7389
7390
7391 if test $ac_cv_have_decl_sys_siglist != yes; then
7392 # For Tru64, at least:
7393 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7394 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7395 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7396 $as_echo_n "(cached) " >&6
7397 else
7398 cat >conftest.$ac_ext <<_ACEOF
7399 /* confdefs.h. */
7400 _ACEOF
7401 cat confdefs.h >>conftest.$ac_ext
7402 cat >>conftest.$ac_ext <<_ACEOF
7403 /* end confdefs.h. */
7404 $ac_includes_default
7405 int
7406 main ()
7407 {
7408 #ifndef __sys_siglist
7409 (void) __sys_siglist;
7410 #endif
7411
7412 ;
7413 return 0;
7414 }
7415 _ACEOF
7416 rm -f conftest.$ac_objext
7417 if { (ac_try="$ac_compile"
7418 case "(($ac_try" in
7419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7420 *) ac_try_echo=$ac_try;;
7421 esac
7422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7423 $as_echo "$ac_try_echo") >&5
7424 (eval "$ac_compile") 2>conftest.er1
7425 ac_status=$?
7426 grep -v '^ *+' conftest.er1 >conftest.err
7427 rm -f conftest.er1
7428 cat conftest.err >&5
7429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); } && {
7431 test -z "$ac_c_werror_flag" ||
7432 test ! -s conftest.err
7433 } && test -s conftest.$ac_objext; then
7434 ac_cv_have_decl___sys_siglist=yes
7435 else
7436 $as_echo "$as_me: failed program was:" >&5
7437 sed 's/^/| /' conftest.$ac_ext >&5
7438
7439 ac_cv_have_decl___sys_siglist=no
7440 fi
7441
7442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443 fi
7444 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7445 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7446 if test $ac_cv_have_decl___sys_siglist = yes; then
7447
7448 cat >>confdefs.h <<_ACEOF
7449 #define HAVE_DECL___SYS_SIGLIST 1
7450 _ACEOF
7451
7452
7453 else
7454 cat >>confdefs.h <<_ACEOF
7455 #define HAVE_DECL___SYS_SIGLIST 0
7456 _ACEOF
7457
7458
7459 fi
7460
7461
7462 if test $ac_cv_have_decl___sys_siglist = yes; then
7463
7464 cat >>confdefs.h <<\_ACEOF
7465 #define sys_siglist __sys_siglist
7466 _ACEOF
7467
7468 fi
7469 fi
7470 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7471 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7472 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7473 $as_echo_n "(cached) " >&6
7474 else
7475 cat >conftest.$ac_ext <<_ACEOF
7476 /* confdefs.h. */
7477 _ACEOF
7478 cat confdefs.h >>conftest.$ac_ext
7479 cat >>conftest.$ac_ext <<_ACEOF
7480 /* end confdefs.h. */
7481 #include <sys/types.h>
7482 #include <sys/wait.h>
7483 #ifndef WEXITSTATUS
7484 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7485 #endif
7486 #ifndef WIFEXITED
7487 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7488 #endif
7489
7490 int
7491 main ()
7492 {
7493 int s;
7494 wait (&s);
7495 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7496 ;
7497 return 0;
7498 }
7499 _ACEOF
7500 rm -f conftest.$ac_objext
7501 if { (ac_try="$ac_compile"
7502 case "(($ac_try" in
7503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7504 *) ac_try_echo=$ac_try;;
7505 esac
7506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7507 $as_echo "$ac_try_echo") >&5
7508 (eval "$ac_compile") 2>conftest.er1
7509 ac_status=$?
7510 grep -v '^ *+' conftest.er1 >conftest.err
7511 rm -f conftest.er1
7512 cat conftest.err >&5
7513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); } && {
7515 test -z "$ac_c_werror_flag" ||
7516 test ! -s conftest.err
7517 } && test -s conftest.$ac_objext; then
7518 ac_cv_header_sys_wait_h=yes
7519 else
7520 $as_echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7522
7523 ac_cv_header_sys_wait_h=no
7524 fi
7525
7526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7527 fi
7528 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7529 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7530 if test $ac_cv_header_sys_wait_h = yes; then
7531
7532 cat >>confdefs.h <<\_ACEOF
7533 #define HAVE_SYS_WAIT_H 1
7534 _ACEOF
7535
7536 fi
7537
7538
7539 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7540 $as_echo_n "checking for struct utimbuf... " >&6; }
7541 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7542 $as_echo_n "(cached) " >&6
7543 else
7544 cat >conftest.$ac_ext <<_ACEOF
7545 /* confdefs.h. */
7546 _ACEOF
7547 cat confdefs.h >>conftest.$ac_ext
7548 cat >>conftest.$ac_ext <<_ACEOF
7549 /* end confdefs.h. */
7550 #ifdef TIME_WITH_SYS_TIME
7551 #include <sys/time.h>
7552 #include <time.h>
7553 #else
7554 #ifdef HAVE_SYS_TIME_H
7555 #include <sys/time.h>
7556 #else
7557 #include <time.h>
7558 #endif
7559 #endif
7560 #ifdef HAVE_UTIME_H
7561 #include <utime.h>
7562 #endif
7563 int
7564 main ()
7565 {
7566 static struct utimbuf x; x.actime = x.modtime;
7567 ;
7568 return 0;
7569 }
7570 _ACEOF
7571 rm -f conftest.$ac_objext
7572 if { (ac_try="$ac_compile"
7573 case "(($ac_try" in
7574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7575 *) ac_try_echo=$ac_try;;
7576 esac
7577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7578 $as_echo "$ac_try_echo") >&5
7579 (eval "$ac_compile") 2>conftest.er1
7580 ac_status=$?
7581 grep -v '^ *+' conftest.er1 >conftest.err
7582 rm -f conftest.er1
7583 cat conftest.err >&5
7584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); } && {
7586 test -z "$ac_c_werror_flag" ||
7587 test ! -s conftest.err
7588 } && test -s conftest.$ac_objext; then
7589 emacs_cv_struct_utimbuf=yes
7590 else
7591 $as_echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.$ac_ext >&5
7593
7594 emacs_cv_struct_utimbuf=no
7595 fi
7596
7597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7598 fi
7599 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7600 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7601 if test $emacs_cv_struct_utimbuf = yes; then
7602
7603 cat >>confdefs.h <<\_ACEOF
7604 #define HAVE_STRUCT_UTIMBUF 1
7605 _ACEOF
7606
7607 fi
7608
7609 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7610 $as_echo_n "checking return type of signal handlers... " >&6; }
7611 if test "${ac_cv_type_signal+set}" = set; then
7612 $as_echo_n "(cached) " >&6
7613 else
7614 cat >conftest.$ac_ext <<_ACEOF
7615 /* confdefs.h. */
7616 _ACEOF
7617 cat confdefs.h >>conftest.$ac_ext
7618 cat >>conftest.$ac_ext <<_ACEOF
7619 /* end confdefs.h. */
7620 #include <sys/types.h>
7621 #include <signal.h>
7622
7623 int
7624 main ()
7625 {
7626 return *(signal (0, 0)) (0) == 1;
7627 ;
7628 return 0;
7629 }
7630 _ACEOF
7631 rm -f conftest.$ac_objext
7632 if { (ac_try="$ac_compile"
7633 case "(($ac_try" in
7634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7635 *) ac_try_echo=$ac_try;;
7636 esac
7637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7638 $as_echo "$ac_try_echo") >&5
7639 (eval "$ac_compile") 2>conftest.er1
7640 ac_status=$?
7641 grep -v '^ *+' conftest.er1 >conftest.err
7642 rm -f conftest.er1
7643 cat conftest.err >&5
7644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } && {
7646 test -z "$ac_c_werror_flag" ||
7647 test ! -s conftest.err
7648 } && test -s conftest.$ac_objext; then
7649 ac_cv_type_signal=int
7650 else
7651 $as_echo "$as_me: failed program was:" >&5
7652 sed 's/^/| /' conftest.$ac_ext >&5
7653
7654 ac_cv_type_signal=void
7655 fi
7656
7657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7658 fi
7659 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7660 $as_echo "$ac_cv_type_signal" >&6; }
7661
7662 cat >>confdefs.h <<_ACEOF
7663 #define RETSIGTYPE $ac_cv_type_signal
7664 _ACEOF
7665
7666
7667
7668 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7669 $as_echo_n "checking for speed_t... " >&6; }
7670 if test "${emacs_cv_speed_t+set}" = set; then
7671 $as_echo_n "(cached) " >&6
7672 else
7673 cat >conftest.$ac_ext <<_ACEOF
7674 /* confdefs.h. */
7675 _ACEOF
7676 cat confdefs.h >>conftest.$ac_ext
7677 cat >>conftest.$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7679 #include <termios.h>
7680 int
7681 main ()
7682 {
7683 speed_t x = 1;
7684 ;
7685 return 0;
7686 }
7687 _ACEOF
7688 rm -f conftest.$ac_objext
7689 if { (ac_try="$ac_compile"
7690 case "(($ac_try" in
7691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7692 *) ac_try_echo=$ac_try;;
7693 esac
7694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7695 $as_echo "$ac_try_echo") >&5
7696 (eval "$ac_compile") 2>conftest.er1
7697 ac_status=$?
7698 grep -v '^ *+' conftest.er1 >conftest.err
7699 rm -f conftest.er1
7700 cat conftest.err >&5
7701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } && {
7703 test -z "$ac_c_werror_flag" ||
7704 test ! -s conftest.err
7705 } && test -s conftest.$ac_objext; then
7706 emacs_cv_speed_t=yes
7707 else
7708 $as_echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7710
7711 emacs_cv_speed_t=no
7712 fi
7713
7714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7715 fi
7716 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7717 $as_echo "$emacs_cv_speed_t" >&6; }
7718 if test $emacs_cv_speed_t = yes; then
7719
7720 cat >>confdefs.h <<\_ACEOF
7721 #define HAVE_SPEED_T 1
7722 _ACEOF
7723
7724 fi
7725
7726 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7727 $as_echo_n "checking for struct timeval... " >&6; }
7728 if test "${emacs_cv_struct_timeval+set}" = set; then
7729 $as_echo_n "(cached) " >&6
7730 else
7731 cat >conftest.$ac_ext <<_ACEOF
7732 /* confdefs.h. */
7733 _ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7737 #ifdef TIME_WITH_SYS_TIME
7738 #include <sys/time.h>
7739 #include <time.h>
7740 #else
7741 #ifdef HAVE_SYS_TIME_H
7742 #include <sys/time.h>
7743 #else
7744 #include <time.h>
7745 #endif
7746 #endif
7747 int
7748 main ()
7749 {
7750 static struct timeval x; x.tv_sec = x.tv_usec;
7751 ;
7752 return 0;
7753 }
7754 _ACEOF
7755 rm -f conftest.$ac_objext
7756 if { (ac_try="$ac_compile"
7757 case "(($ac_try" in
7758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759 *) ac_try_echo=$ac_try;;
7760 esac
7761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7762 $as_echo "$ac_try_echo") >&5
7763 (eval "$ac_compile") 2>conftest.er1
7764 ac_status=$?
7765 grep -v '^ *+' conftest.er1 >conftest.err
7766 rm -f conftest.er1
7767 cat conftest.err >&5
7768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } && {
7770 test -z "$ac_c_werror_flag" ||
7771 test ! -s conftest.err
7772 } && test -s conftest.$ac_objext; then
7773 emacs_cv_struct_timeval=yes
7774 else
7775 $as_echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7777
7778 emacs_cv_struct_timeval=no
7779 fi
7780
7781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7782 fi
7783 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7784 $as_echo "$emacs_cv_struct_timeval" >&6; }
7785 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7786 if test $emacs_cv_struct_timeval = yes; then
7787
7788 cat >>confdefs.h <<\_ACEOF
7789 #define HAVE_TIMEVAL 1
7790 _ACEOF
7791
7792 fi
7793
7794 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7795 $as_echo_n "checking for struct exception... " >&6; }
7796 if test "${emacs_cv_struct_exception+set}" = set; then
7797 $as_echo_n "(cached) " >&6
7798 else
7799 cat >conftest.$ac_ext <<_ACEOF
7800 /* confdefs.h. */
7801 _ACEOF
7802 cat confdefs.h >>conftest.$ac_ext
7803 cat >>conftest.$ac_ext <<_ACEOF
7804 /* end confdefs.h. */
7805 #include <math.h>
7806 int
7807 main ()
7808 {
7809 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7810 ;
7811 return 0;
7812 }
7813 _ACEOF
7814 rm -f conftest.$ac_objext
7815 if { (ac_try="$ac_compile"
7816 case "(($ac_try" in
7817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7818 *) ac_try_echo=$ac_try;;
7819 esac
7820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7821 $as_echo "$ac_try_echo") >&5
7822 (eval "$ac_compile") 2>conftest.er1
7823 ac_status=$?
7824 grep -v '^ *+' conftest.er1 >conftest.err
7825 rm -f conftest.er1
7826 cat conftest.err >&5
7827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } && {
7829 test -z "$ac_c_werror_flag" ||
7830 test ! -s conftest.err
7831 } && test -s conftest.$ac_objext; then
7832 emacs_cv_struct_exception=yes
7833 else
7834 $as_echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7836
7837 emacs_cv_struct_exception=no
7838 fi
7839
7840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7841 fi
7842 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7843 $as_echo "$emacs_cv_struct_exception" >&6; }
7844 HAVE_EXCEPTION=$emacs_cv_struct_exception
7845 if test $emacs_cv_struct_exception != yes; then
7846
7847 cat >>confdefs.h <<\_ACEOF
7848 #define NO_MATHERR 1
7849 _ACEOF
7850
7851 fi
7852
7853
7854 for ac_header in sys/socket.h
7855 do
7856 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7858 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7859 $as_echo_n "checking for $ac_header... " >&6; }
7860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7861 $as_echo_n "(cached) " >&6
7862 fi
7863 ac_res=`eval 'as_val=${'$as_ac_Header'}
7864 $as_echo "$as_val"'`
7865 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7866 $as_echo "$ac_res" >&6; }
7867 else
7868 # Is the header compilable?
7869 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7870 $as_echo_n "checking $ac_header usability... " >&6; }
7871 cat >conftest.$ac_ext <<_ACEOF
7872 /* confdefs.h. */
7873 _ACEOF
7874 cat confdefs.h >>conftest.$ac_ext
7875 cat >>conftest.$ac_ext <<_ACEOF
7876 /* end confdefs.h. */
7877 $ac_includes_default
7878 #include <$ac_header>
7879 _ACEOF
7880 rm -f conftest.$ac_objext
7881 if { (ac_try="$ac_compile"
7882 case "(($ac_try" in
7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7885 esac
7886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7887 $as_echo "$ac_try_echo") >&5
7888 (eval "$ac_compile") 2>conftest.er1
7889 ac_status=$?
7890 grep -v '^ *+' conftest.er1 >conftest.err
7891 rm -f conftest.er1
7892 cat conftest.err >&5
7893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } && {
7895 test -z "$ac_c_werror_flag" ||
7896 test ! -s conftest.err
7897 } && test -s conftest.$ac_objext; then
7898 ac_header_compiler=yes
7899 else
7900 $as_echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.$ac_ext >&5
7902
7903 ac_header_compiler=no
7904 fi
7905
7906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7907 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7908 $as_echo "$ac_header_compiler" >&6; }
7909
7910 # Is the header present?
7911 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7912 $as_echo_n "checking $ac_header presence... " >&6; }
7913 cat >conftest.$ac_ext <<_ACEOF
7914 /* confdefs.h. */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7919 #include <$ac_header>
7920 _ACEOF
7921 if { (ac_try="$ac_cpp conftest.$ac_ext"
7922 case "(($ac_try" in
7923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924 *) ac_try_echo=$ac_try;;
7925 esac
7926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7927 $as_echo "$ac_try_echo") >&5
7928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7929 ac_status=$?
7930 grep -v '^ *+' conftest.er1 >conftest.err
7931 rm -f conftest.er1
7932 cat conftest.err >&5
7933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } >/dev/null && {
7935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7936 test ! -s conftest.err
7937 }; then
7938 ac_header_preproc=yes
7939 else
7940 $as_echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7942
7943 ac_header_preproc=no
7944 fi
7945
7946 rm -f conftest.err conftest.$ac_ext
7947 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7948 $as_echo "$ac_header_preproc" >&6; }
7949
7950 # So? What about this header?
7951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7952 yes:no: )
7953 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7954 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7956 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7957 ac_header_preproc=yes
7958 ;;
7959 no:yes:* )
7960 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7961 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7962 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7963 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7965 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7967 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7969 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7971 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7972
7973 ;;
7974 esac
7975 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7976 $as_echo_n "checking for $ac_header... " >&6; }
7977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7978 $as_echo_n "(cached) " >&6
7979 else
7980 eval "$as_ac_Header=\$ac_header_preproc"
7981 fi
7982 ac_res=`eval 'as_val=${'$as_ac_Header'}
7983 $as_echo "$as_val"'`
7984 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7985 $as_echo "$ac_res" >&6; }
7986
7987 fi
7988 if test `eval 'as_val=${'$as_ac_Header'}
7989 $as_echo "$as_val"'` = yes; then
7990 cat >>confdefs.h <<_ACEOF
7991 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7992 _ACEOF
7993
7994 fi
7995
7996 done
7997
7998
7999 for ac_header in net/if.h
8000 do
8001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8002 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8003 $as_echo_n "checking for $ac_header... " >&6; }
8004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8005 $as_echo_n "(cached) " >&6
8006 else
8007 cat >conftest.$ac_ext <<_ACEOF
8008 /* confdefs.h. */
8009 _ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h. */
8013 $ac_includes_default
8014 #if HAVE_SYS_SOCKET_H
8015 #include <sys/socket.h>
8016 #endif
8017
8018 #include <$ac_header>
8019 _ACEOF
8020 rm -f conftest.$ac_objext
8021 if { (ac_try="$ac_compile"
8022 case "(($ac_try" in
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8025 esac
8026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8027 $as_echo "$ac_try_echo") >&5
8028 (eval "$ac_compile") 2>conftest.er1
8029 ac_status=$?
8030 grep -v '^ *+' conftest.er1 >conftest.err
8031 rm -f conftest.er1
8032 cat conftest.err >&5
8033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } && {
8035 test -z "$ac_c_werror_flag" ||
8036 test ! -s conftest.err
8037 } && test -s conftest.$ac_objext; then
8038 eval "$as_ac_Header=yes"
8039 else
8040 $as_echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.$ac_ext >&5
8042
8043 eval "$as_ac_Header=no"
8044 fi
8045
8046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8047 fi
8048 ac_res=`eval 'as_val=${'$as_ac_Header'}
8049 $as_echo "$as_val"'`
8050 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8051 $as_echo "$ac_res" >&6; }
8052 if test `eval 'as_val=${'$as_ac_Header'}
8053 $as_echo "$as_val"'` = yes; then
8054 cat >>confdefs.h <<_ACEOF
8055 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8056 _ACEOF
8057
8058 fi
8059
8060 done
8061
8062
8063 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8064 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8065 if test "${ac_cv_struct_tm+set}" = set; then
8066 $as_echo_n "(cached) " >&6
8067 else
8068 cat >conftest.$ac_ext <<_ACEOF
8069 /* confdefs.h. */
8070 _ACEOF
8071 cat confdefs.h >>conftest.$ac_ext
8072 cat >>conftest.$ac_ext <<_ACEOF
8073 /* end confdefs.h. */
8074 #include <sys/types.h>
8075 #include <time.h>
8076
8077 int
8078 main ()
8079 {
8080 struct tm tm;
8081 int *p = &tm.tm_sec;
8082 return !p;
8083 ;
8084 return 0;
8085 }
8086 _ACEOF
8087 rm -f conftest.$ac_objext
8088 if { (ac_try="$ac_compile"
8089 case "(($ac_try" in
8090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091 *) ac_try_echo=$ac_try;;
8092 esac
8093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8094 $as_echo "$ac_try_echo") >&5
8095 (eval "$ac_compile") 2>conftest.er1
8096 ac_status=$?
8097 grep -v '^ *+' conftest.er1 >conftest.err
8098 rm -f conftest.er1
8099 cat conftest.err >&5
8100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); } && {
8102 test -z "$ac_c_werror_flag" ||
8103 test ! -s conftest.err
8104 } && test -s conftest.$ac_objext; then
8105 ac_cv_struct_tm=time.h
8106 else
8107 $as_echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8109
8110 ac_cv_struct_tm=sys/time.h
8111 fi
8112
8113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114 fi
8115 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8116 $as_echo "$ac_cv_struct_tm" >&6; }
8117 if test $ac_cv_struct_tm = sys/time.h; then
8118
8119 cat >>confdefs.h <<\_ACEOF
8120 #define TM_IN_SYS_TIME 1
8121 _ACEOF
8122
8123 fi
8124
8125 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8126 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8127 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8128 $as_echo_n "(cached) " >&6
8129 else
8130 cat >conftest.$ac_ext <<_ACEOF
8131 /* confdefs.h. */
8132 _ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h. */
8136 #include <sys/types.h>
8137 #include <$ac_cv_struct_tm>
8138
8139
8140 int
8141 main ()
8142 {
8143 static struct tm ac_aggr;
8144 if (ac_aggr.tm_zone)
8145 return 0;
8146 ;
8147 return 0;
8148 }
8149 _ACEOF
8150 rm -f conftest.$ac_objext
8151 if { (ac_try="$ac_compile"
8152 case "(($ac_try" in
8153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8154 *) ac_try_echo=$ac_try;;
8155 esac
8156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8157 $as_echo "$ac_try_echo") >&5
8158 (eval "$ac_compile") 2>conftest.er1
8159 ac_status=$?
8160 grep -v '^ *+' conftest.er1 >conftest.err
8161 rm -f conftest.er1
8162 cat conftest.err >&5
8163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } && {
8165 test -z "$ac_c_werror_flag" ||
8166 test ! -s conftest.err
8167 } && test -s conftest.$ac_objext; then
8168 ac_cv_member_struct_tm_tm_zone=yes
8169 else
8170 $as_echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8172
8173 cat >conftest.$ac_ext <<_ACEOF
8174 /* confdefs.h. */
8175 _ACEOF
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h. */
8179 #include <sys/types.h>
8180 #include <$ac_cv_struct_tm>
8181
8182
8183 int
8184 main ()
8185 {
8186 static struct tm ac_aggr;
8187 if (sizeof ac_aggr.tm_zone)
8188 return 0;
8189 ;
8190 return 0;
8191 }
8192 _ACEOF
8193 rm -f conftest.$ac_objext
8194 if { (ac_try="$ac_compile"
8195 case "(($ac_try" in
8196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8198 esac
8199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8200 $as_echo "$ac_try_echo") >&5
8201 (eval "$ac_compile") 2>conftest.er1
8202 ac_status=$?
8203 grep -v '^ *+' conftest.er1 >conftest.err
8204 rm -f conftest.er1
8205 cat conftest.err >&5
8206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } && {
8208 test -z "$ac_c_werror_flag" ||
8209 test ! -s conftest.err
8210 } && test -s conftest.$ac_objext; then
8211 ac_cv_member_struct_tm_tm_zone=yes
8212 else
8213 $as_echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8215
8216 ac_cv_member_struct_tm_tm_zone=no
8217 fi
8218
8219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220 fi
8221
8222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 fi
8224 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8225 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8226 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8227
8228 cat >>confdefs.h <<_ACEOF
8229 #define HAVE_STRUCT_TM_TM_ZONE 1
8230 _ACEOF
8231
8232
8233 fi
8234
8235 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8236
8237 cat >>confdefs.h <<\_ACEOF
8238 #define HAVE_TM_ZONE 1
8239 _ACEOF
8240
8241 else
8242 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8243 $as_echo_n "checking whether tzname is declared... " >&6; }
8244 if test "${ac_cv_have_decl_tzname+set}" = set; then
8245 $as_echo_n "(cached) " >&6
8246 else
8247 cat >conftest.$ac_ext <<_ACEOF
8248 /* confdefs.h. */
8249 _ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h. */
8253 #include <time.h>
8254
8255 int
8256 main ()
8257 {
8258 #ifndef tzname
8259 (void) tzname;
8260 #endif
8261
8262 ;
8263 return 0;
8264 }
8265 _ACEOF
8266 rm -f conftest.$ac_objext
8267 if { (ac_try="$ac_compile"
8268 case "(($ac_try" in
8269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270 *) ac_try_echo=$ac_try;;
8271 esac
8272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8273 $as_echo "$ac_try_echo") >&5
8274 (eval "$ac_compile") 2>conftest.er1
8275 ac_status=$?
8276 grep -v '^ *+' conftest.er1 >conftest.err
8277 rm -f conftest.er1
8278 cat conftest.err >&5
8279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } && {
8281 test -z "$ac_c_werror_flag" ||
8282 test ! -s conftest.err
8283 } && test -s conftest.$ac_objext; then
8284 ac_cv_have_decl_tzname=yes
8285 else
8286 $as_echo "$as_me: failed program was:" >&5
8287 sed 's/^/| /' conftest.$ac_ext >&5
8288
8289 ac_cv_have_decl_tzname=no
8290 fi
8291
8292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293 fi
8294 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8295 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8296 if test $ac_cv_have_decl_tzname = yes; then
8297
8298 cat >>confdefs.h <<_ACEOF
8299 #define HAVE_DECL_TZNAME 1
8300 _ACEOF
8301
8302
8303 else
8304 cat >>confdefs.h <<_ACEOF
8305 #define HAVE_DECL_TZNAME 0
8306 _ACEOF
8307
8308
8309 fi
8310
8311
8312 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8313 $as_echo_n "checking for tzname... " >&6; }
8314 if test "${ac_cv_var_tzname+set}" = set; then
8315 $as_echo_n "(cached) " >&6
8316 else
8317 cat >conftest.$ac_ext <<_ACEOF
8318 /* confdefs.h. */
8319 _ACEOF
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h. */
8323 #include <time.h>
8324 #if !HAVE_DECL_TZNAME
8325 extern char *tzname[];
8326 #endif
8327
8328 int
8329 main ()
8330 {
8331 return tzname[0][0];
8332 ;
8333 return 0;
8334 }
8335 _ACEOF
8336 rm -f conftest.$ac_objext conftest$ac_exeext
8337 if { (ac_try="$ac_link"
8338 case "(($ac_try" in
8339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340 *) ac_try_echo=$ac_try;;
8341 esac
8342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8343 $as_echo "$ac_try_echo") >&5
8344 (eval "$ac_link") 2>conftest.er1
8345 ac_status=$?
8346 grep -v '^ *+' conftest.er1 >conftest.err
8347 rm -f conftest.er1
8348 cat conftest.err >&5
8349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } && {
8351 test -z "$ac_c_werror_flag" ||
8352 test ! -s conftest.err
8353 } && test -s conftest$ac_exeext && {
8354 test "$cross_compiling" = yes ||
8355 $as_test_x conftest$ac_exeext
8356 }; then
8357 ac_cv_var_tzname=yes
8358 else
8359 $as_echo "$as_me: failed program was:" >&5
8360 sed 's/^/| /' conftest.$ac_ext >&5
8361
8362 ac_cv_var_tzname=no
8363 fi
8364
8365 rm -rf conftest.dSYM
8366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8367 conftest$ac_exeext conftest.$ac_ext
8368 fi
8369 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8370 $as_echo "$ac_cv_var_tzname" >&6; }
8371 if test $ac_cv_var_tzname = yes; then
8372
8373 cat >>confdefs.h <<\_ACEOF
8374 #define HAVE_TZNAME 1
8375 _ACEOF
8376
8377 fi
8378 fi
8379
8380 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8381 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8382 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8383 $as_echo_n "(cached) " >&6
8384 else
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 #include <time.h>
8392
8393 int
8394 main ()
8395 {
8396 static struct tm ac_aggr;
8397 if (ac_aggr.tm_gmtoff)
8398 return 0;
8399 ;
8400 return 0;
8401 }
8402 _ACEOF
8403 rm -f conftest.$ac_objext
8404 if { (ac_try="$ac_compile"
8405 case "(($ac_try" in
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8408 esac
8409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8410 $as_echo "$ac_try_echo") >&5
8411 (eval "$ac_compile") 2>conftest.er1
8412 ac_status=$?
8413 grep -v '^ *+' conftest.er1 >conftest.err
8414 rm -f conftest.er1
8415 cat conftest.err >&5
8416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } && {
8418 test -z "$ac_c_werror_flag" ||
8419 test ! -s conftest.err
8420 } && test -s conftest.$ac_objext; then
8421 ac_cv_member_struct_tm_tm_gmtoff=yes
8422 else
8423 $as_echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.$ac_ext >&5
8425
8426 cat >conftest.$ac_ext <<_ACEOF
8427 /* confdefs.h. */
8428 _ACEOF
8429 cat confdefs.h >>conftest.$ac_ext
8430 cat >>conftest.$ac_ext <<_ACEOF
8431 /* end confdefs.h. */
8432 #include <time.h>
8433
8434 int
8435 main ()
8436 {
8437 static struct tm ac_aggr;
8438 if (sizeof ac_aggr.tm_gmtoff)
8439 return 0;
8440 ;
8441 return 0;
8442 }
8443 _ACEOF
8444 rm -f conftest.$ac_objext
8445 if { (ac_try="$ac_compile"
8446 case "(($ac_try" in
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8449 esac
8450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8451 $as_echo "$ac_try_echo") >&5
8452 (eval "$ac_compile") 2>conftest.er1
8453 ac_status=$?
8454 grep -v '^ *+' conftest.er1 >conftest.err
8455 rm -f conftest.er1
8456 cat conftest.err >&5
8457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); } && {
8459 test -z "$ac_c_werror_flag" ||
8460 test ! -s conftest.err
8461 } && test -s conftest.$ac_objext; then
8462 ac_cv_member_struct_tm_tm_gmtoff=yes
8463 else
8464 $as_echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.$ac_ext >&5
8466
8467 ac_cv_member_struct_tm_tm_gmtoff=no
8468 fi
8469
8470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8471 fi
8472
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8474 fi
8475 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8476 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8477 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8478
8479 cat >>confdefs.h <<\_ACEOF
8480 #define HAVE_TM_GMTOFF 1
8481 _ACEOF
8482
8483 fi
8484
8485 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8486 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8487 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8488 $as_echo_n "(cached) " >&6
8489 else
8490 cat >conftest.$ac_ext <<_ACEOF
8491 /* confdefs.h. */
8492 _ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8496 $ac_includes_default
8497 #if HAVE_SYS_SOCKET_H
8498 #include <sys/socket.h>
8499 #endif
8500 #if HAVE_NET_IF_H
8501 #include <net/if.h>
8502 #endif
8503
8504 int
8505 main ()
8506 {
8507 static struct ifreq ac_aggr;
8508 if (ac_aggr.ifr_flags)
8509 return 0;
8510 ;
8511 return 0;
8512 }
8513 _ACEOF
8514 rm -f conftest.$ac_objext
8515 if { (ac_try="$ac_compile"
8516 case "(($ac_try" in
8517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518 *) ac_try_echo=$ac_try;;
8519 esac
8520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8521 $as_echo "$ac_try_echo") >&5
8522 (eval "$ac_compile") 2>conftest.er1
8523 ac_status=$?
8524 grep -v '^ *+' conftest.er1 >conftest.err
8525 rm -f conftest.er1
8526 cat conftest.err >&5
8527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); } && {
8529 test -z "$ac_c_werror_flag" ||
8530 test ! -s conftest.err
8531 } && test -s conftest.$ac_objext; then
8532 ac_cv_member_struct_ifreq_ifr_flags=yes
8533 else
8534 $as_echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8536
8537 cat >conftest.$ac_ext <<_ACEOF
8538 /* confdefs.h. */
8539 _ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8543 $ac_includes_default
8544 #if HAVE_SYS_SOCKET_H
8545 #include <sys/socket.h>
8546 #endif
8547 #if HAVE_NET_IF_H
8548 #include <net/if.h>
8549 #endif
8550
8551 int
8552 main ()
8553 {
8554 static struct ifreq ac_aggr;
8555 if (sizeof ac_aggr.ifr_flags)
8556 return 0;
8557 ;
8558 return 0;
8559 }
8560 _ACEOF
8561 rm -f conftest.$ac_objext
8562 if { (ac_try="$ac_compile"
8563 case "(($ac_try" in
8564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565 *) ac_try_echo=$ac_try;;
8566 esac
8567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8568 $as_echo "$ac_try_echo") >&5
8569 (eval "$ac_compile") 2>conftest.er1
8570 ac_status=$?
8571 grep -v '^ *+' conftest.er1 >conftest.err
8572 rm -f conftest.er1
8573 cat conftest.err >&5
8574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } && {
8576 test -z "$ac_c_werror_flag" ||
8577 test ! -s conftest.err
8578 } && test -s conftest.$ac_objext; then
8579 ac_cv_member_struct_ifreq_ifr_flags=yes
8580 else
8581 $as_echo "$as_me: failed program was:" >&5
8582 sed 's/^/| /' conftest.$ac_ext >&5
8583
8584 ac_cv_member_struct_ifreq_ifr_flags=no
8585 fi
8586
8587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8588 fi
8589
8590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8591 fi
8592 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8593 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8594 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8595
8596 cat >>confdefs.h <<_ACEOF
8597 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8598 _ACEOF
8599
8600
8601 fi
8602 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8603 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8604 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8605 $as_echo_n "(cached) " >&6
8606 else
8607 cat >conftest.$ac_ext <<_ACEOF
8608 /* confdefs.h. */
8609 _ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h. */
8613 $ac_includes_default
8614 #if HAVE_SYS_SOCKET_H
8615 #include <sys/socket.h>
8616 #endif
8617 #if HAVE_NET_IF_H
8618 #include <net/if.h>
8619 #endif
8620
8621 int
8622 main ()
8623 {
8624 static struct ifreq ac_aggr;
8625 if (ac_aggr.ifr_hwaddr)
8626 return 0;
8627 ;
8628 return 0;
8629 }
8630 _ACEOF
8631 rm -f conftest.$ac_objext
8632 if { (ac_try="$ac_compile"
8633 case "(($ac_try" in
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8636 esac
8637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8638 $as_echo "$ac_try_echo") >&5
8639 (eval "$ac_compile") 2>conftest.er1
8640 ac_status=$?
8641 grep -v '^ *+' conftest.er1 >conftest.err
8642 rm -f conftest.er1
8643 cat conftest.err >&5
8644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } && {
8646 test -z "$ac_c_werror_flag" ||
8647 test ! -s conftest.err
8648 } && test -s conftest.$ac_objext; then
8649 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8650 else
8651 $as_echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8653
8654 cat >conftest.$ac_ext <<_ACEOF
8655 /* confdefs.h. */
8656 _ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8660 $ac_includes_default
8661 #if HAVE_SYS_SOCKET_H
8662 #include <sys/socket.h>
8663 #endif
8664 #if HAVE_NET_IF_H
8665 #include <net/if.h>
8666 #endif
8667
8668 int
8669 main ()
8670 {
8671 static struct ifreq ac_aggr;
8672 if (sizeof ac_aggr.ifr_hwaddr)
8673 return 0;
8674 ;
8675 return 0;
8676 }
8677 _ACEOF
8678 rm -f conftest.$ac_objext
8679 if { (ac_try="$ac_compile"
8680 case "(($ac_try" in
8681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8682 *) ac_try_echo=$ac_try;;
8683 esac
8684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8685 $as_echo "$ac_try_echo") >&5
8686 (eval "$ac_compile") 2>conftest.er1
8687 ac_status=$?
8688 grep -v '^ *+' conftest.er1 >conftest.err
8689 rm -f conftest.er1
8690 cat conftest.err >&5
8691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } && {
8693 test -z "$ac_c_werror_flag" ||
8694 test ! -s conftest.err
8695 } && test -s conftest.$ac_objext; then
8696 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8697 else
8698 $as_echo "$as_me: failed program was:" >&5
8699 sed 's/^/| /' conftest.$ac_ext >&5
8700
8701 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8702 fi
8703
8704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8705 fi
8706
8707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708 fi
8709 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8710 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8711 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8712
8713 cat >>confdefs.h <<_ACEOF
8714 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8715 _ACEOF
8716
8717
8718 fi
8719 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8720 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8721 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8722 $as_echo_n "(cached) " >&6
8723 else
8724 cat >conftest.$ac_ext <<_ACEOF
8725 /* confdefs.h. */
8726 _ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8730 $ac_includes_default
8731 #if HAVE_SYS_SOCKET_H
8732 #include <sys/socket.h>
8733 #endif
8734 #if HAVE_NET_IF_H
8735 #include <net/if.h>
8736 #endif
8737
8738 int
8739 main ()
8740 {
8741 static struct ifreq ac_aggr;
8742 if (ac_aggr.ifr_netmask)
8743 return 0;
8744 ;
8745 return 0;
8746 }
8747 _ACEOF
8748 rm -f conftest.$ac_objext
8749 if { (ac_try="$ac_compile"
8750 case "(($ac_try" in
8751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8752 *) ac_try_echo=$ac_try;;
8753 esac
8754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8755 $as_echo "$ac_try_echo") >&5
8756 (eval "$ac_compile") 2>conftest.er1
8757 ac_status=$?
8758 grep -v '^ *+' conftest.er1 >conftest.err
8759 rm -f conftest.er1
8760 cat conftest.err >&5
8761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } && {
8763 test -z "$ac_c_werror_flag" ||
8764 test ! -s conftest.err
8765 } && test -s conftest.$ac_objext; then
8766 ac_cv_member_struct_ifreq_ifr_netmask=yes
8767 else
8768 $as_echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.$ac_ext >&5
8770
8771 cat >conftest.$ac_ext <<_ACEOF
8772 /* confdefs.h. */
8773 _ACEOF
8774 cat confdefs.h >>conftest.$ac_ext
8775 cat >>conftest.$ac_ext <<_ACEOF
8776 /* end confdefs.h. */
8777 $ac_includes_default
8778 #if HAVE_SYS_SOCKET_H
8779 #include <sys/socket.h>
8780 #endif
8781 #if HAVE_NET_IF_H
8782 #include <net/if.h>
8783 #endif
8784
8785 int
8786 main ()
8787 {
8788 static struct ifreq ac_aggr;
8789 if (sizeof ac_aggr.ifr_netmask)
8790 return 0;
8791 ;
8792 return 0;
8793 }
8794 _ACEOF
8795 rm -f conftest.$ac_objext
8796 if { (ac_try="$ac_compile"
8797 case "(($ac_try" in
8798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8799 *) ac_try_echo=$ac_try;;
8800 esac
8801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8802 $as_echo "$ac_try_echo") >&5
8803 (eval "$ac_compile") 2>conftest.er1
8804 ac_status=$?
8805 grep -v '^ *+' conftest.er1 >conftest.err
8806 rm -f conftest.er1
8807 cat conftest.err >&5
8808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } && {
8810 test -z "$ac_c_werror_flag" ||
8811 test ! -s conftest.err
8812 } && test -s conftest.$ac_objext; then
8813 ac_cv_member_struct_ifreq_ifr_netmask=yes
8814 else
8815 $as_echo "$as_me: failed program was:" >&5
8816 sed 's/^/| /' conftest.$ac_ext >&5
8817
8818 ac_cv_member_struct_ifreq_ifr_netmask=no
8819 fi
8820
8821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8822 fi
8823
8824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8825 fi
8826 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8827 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8828 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8829
8830 cat >>confdefs.h <<_ACEOF
8831 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8832 _ACEOF
8833
8834
8835 fi
8836 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8837 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8838 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8839 $as_echo_n "(cached) " >&6
8840 else
8841 cat >conftest.$ac_ext <<_ACEOF
8842 /* confdefs.h. */
8843 _ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h. */
8847 $ac_includes_default
8848 #if HAVE_SYS_SOCKET_H
8849 #include <sys/socket.h>
8850 #endif
8851 #if HAVE_NET_IF_H
8852 #include <net/if.h>
8853 #endif
8854
8855 int
8856 main ()
8857 {
8858 static struct ifreq ac_aggr;
8859 if (ac_aggr.ifr_broadaddr)
8860 return 0;
8861 ;
8862 return 0;
8863 }
8864 _ACEOF
8865 rm -f conftest.$ac_objext
8866 if { (ac_try="$ac_compile"
8867 case "(($ac_try" in
8868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869 *) ac_try_echo=$ac_try;;
8870 esac
8871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8872 $as_echo "$ac_try_echo") >&5
8873 (eval "$ac_compile") 2>conftest.er1
8874 ac_status=$?
8875 grep -v '^ *+' conftest.er1 >conftest.err
8876 rm -f conftest.er1
8877 cat conftest.err >&5
8878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } && {
8880 test -z "$ac_c_werror_flag" ||
8881 test ! -s conftest.err
8882 } && test -s conftest.$ac_objext; then
8883 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8884 else
8885 $as_echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.$ac_ext >&5
8887
8888 cat >conftest.$ac_ext <<_ACEOF
8889 /* confdefs.h. */
8890 _ACEOF
8891 cat confdefs.h >>conftest.$ac_ext
8892 cat >>conftest.$ac_ext <<_ACEOF
8893 /* end confdefs.h. */
8894 $ac_includes_default
8895 #if HAVE_SYS_SOCKET_H
8896 #include <sys/socket.h>
8897 #endif
8898 #if HAVE_NET_IF_H
8899 #include <net/if.h>
8900 #endif
8901
8902 int
8903 main ()
8904 {
8905 static struct ifreq ac_aggr;
8906 if (sizeof ac_aggr.ifr_broadaddr)
8907 return 0;
8908 ;
8909 return 0;
8910 }
8911 _ACEOF
8912 rm -f conftest.$ac_objext
8913 if { (ac_try="$ac_compile"
8914 case "(($ac_try" in
8915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916 *) ac_try_echo=$ac_try;;
8917 esac
8918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8919 $as_echo "$ac_try_echo") >&5
8920 (eval "$ac_compile") 2>conftest.er1
8921 ac_status=$?
8922 grep -v '^ *+' conftest.er1 >conftest.err
8923 rm -f conftest.er1
8924 cat conftest.err >&5
8925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } && {
8927 test -z "$ac_c_werror_flag" ||
8928 test ! -s conftest.err
8929 } && test -s conftest.$ac_objext; then
8930 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8931 else
8932 $as_echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.$ac_ext >&5
8934
8935 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8936 fi
8937
8938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8939 fi
8940
8941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8942 fi
8943 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8944 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8945 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8946
8947 cat >>confdefs.h <<_ACEOF
8948 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8949 _ACEOF
8950
8951
8952 fi
8953 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8954 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8955 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8956 $as_echo_n "(cached) " >&6
8957 else
8958 cat >conftest.$ac_ext <<_ACEOF
8959 /* confdefs.h. */
8960 _ACEOF
8961 cat confdefs.h >>conftest.$ac_ext
8962 cat >>conftest.$ac_ext <<_ACEOF
8963 /* end confdefs.h. */
8964 $ac_includes_default
8965 #if HAVE_SYS_SOCKET_H
8966 #include <sys/socket.h>
8967 #endif
8968 #if HAVE_NET_IF_H
8969 #include <net/if.h>
8970 #endif
8971
8972 int
8973 main ()
8974 {
8975 static struct ifreq ac_aggr;
8976 if (ac_aggr.ifr_addr)
8977 return 0;
8978 ;
8979 return 0;
8980 }
8981 _ACEOF
8982 rm -f conftest.$ac_objext
8983 if { (ac_try="$ac_compile"
8984 case "(($ac_try" in
8985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8986 *) ac_try_echo=$ac_try;;
8987 esac
8988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8989 $as_echo "$ac_try_echo") >&5
8990 (eval "$ac_compile") 2>conftest.er1
8991 ac_status=$?
8992 grep -v '^ *+' conftest.er1 >conftest.err
8993 rm -f conftest.er1
8994 cat conftest.err >&5
8995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } && {
8997 test -z "$ac_c_werror_flag" ||
8998 test ! -s conftest.err
8999 } && test -s conftest.$ac_objext; then
9000 ac_cv_member_struct_ifreq_ifr_addr=yes
9001 else
9002 $as_echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.$ac_ext >&5
9004
9005 cat >conftest.$ac_ext <<_ACEOF
9006 /* confdefs.h. */
9007 _ACEOF
9008 cat confdefs.h >>conftest.$ac_ext
9009 cat >>conftest.$ac_ext <<_ACEOF
9010 /* end confdefs.h. */
9011 $ac_includes_default
9012 #if HAVE_SYS_SOCKET_H
9013 #include <sys/socket.h>
9014 #endif
9015 #if HAVE_NET_IF_H
9016 #include <net/if.h>
9017 #endif
9018
9019 int
9020 main ()
9021 {
9022 static struct ifreq ac_aggr;
9023 if (sizeof ac_aggr.ifr_addr)
9024 return 0;
9025 ;
9026 return 0;
9027 }
9028 _ACEOF
9029 rm -f conftest.$ac_objext
9030 if { (ac_try="$ac_compile"
9031 case "(($ac_try" in
9032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033 *) ac_try_echo=$ac_try;;
9034 esac
9035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9036 $as_echo "$ac_try_echo") >&5
9037 (eval "$ac_compile") 2>conftest.er1
9038 ac_status=$?
9039 grep -v '^ *+' conftest.er1 >conftest.err
9040 rm -f conftest.er1
9041 cat conftest.err >&5
9042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); } && {
9044 test -z "$ac_c_werror_flag" ||
9045 test ! -s conftest.err
9046 } && test -s conftest.$ac_objext; then
9047 ac_cv_member_struct_ifreq_ifr_addr=yes
9048 else
9049 $as_echo "$as_me: failed program was:" >&5
9050 sed 's/^/| /' conftest.$ac_ext >&5
9051
9052 ac_cv_member_struct_ifreq_ifr_addr=no
9053 fi
9054
9055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9056 fi
9057
9058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9059 fi
9060 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9061 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9062 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9063
9064 cat >>confdefs.h <<_ACEOF
9065 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9066 _ACEOF
9067
9068
9069 fi
9070
9071
9072
9073 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9074 $as_echo_n "checking for function prototypes... " >&6; }
9075 if test "$ac_cv_prog_cc_c89" != no; then
9076 { $as_echo "$as_me:$LINENO: result: yes" >&5
9077 $as_echo "yes" >&6; }
9078
9079 cat >>confdefs.h <<\_ACEOF
9080 #define PROTOTYPES 1
9081 _ACEOF
9082
9083
9084 cat >>confdefs.h <<\_ACEOF
9085 #define __PROTOTYPES 1
9086 _ACEOF
9087
9088 else
9089 { $as_echo "$as_me:$LINENO: result: no" >&5
9090 $as_echo "no" >&6; }
9091 fi
9092
9093 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9094 $as_echo_n "checking for working volatile... " >&6; }
9095 if test "${ac_cv_c_volatile+set}" = set; then
9096 $as_echo_n "(cached) " >&6
9097 else
9098 cat >conftest.$ac_ext <<_ACEOF
9099 /* confdefs.h. */
9100 _ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9104
9105 int
9106 main ()
9107 {
9108
9109 volatile int x;
9110 int * volatile y = (int *) 0;
9111 return !x && !y;
9112 ;
9113 return 0;
9114 }
9115 _ACEOF
9116 rm -f conftest.$ac_objext
9117 if { (ac_try="$ac_compile"
9118 case "(($ac_try" in
9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9121 esac
9122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9123 $as_echo "$ac_try_echo") >&5
9124 (eval "$ac_compile") 2>conftest.er1
9125 ac_status=$?
9126 grep -v '^ *+' conftest.er1 >conftest.err
9127 rm -f conftest.er1
9128 cat conftest.err >&5
9129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); } && {
9131 test -z "$ac_c_werror_flag" ||
9132 test ! -s conftest.err
9133 } && test -s conftest.$ac_objext; then
9134 ac_cv_c_volatile=yes
9135 else
9136 $as_echo "$as_me: failed program was:" >&5
9137 sed 's/^/| /' conftest.$ac_ext >&5
9138
9139 ac_cv_c_volatile=no
9140 fi
9141
9142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9143 fi
9144 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9145 $as_echo "$ac_cv_c_volatile" >&6; }
9146 if test $ac_cv_c_volatile = no; then
9147
9148 cat >>confdefs.h <<\_ACEOF
9149 #define volatile /**/
9150 _ACEOF
9151
9152 fi
9153
9154 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9155 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9156 if test "${ac_cv_c_const+set}" = set; then
9157 $as_echo_n "(cached) " >&6
9158 else
9159 cat >conftest.$ac_ext <<_ACEOF
9160 /* confdefs.h. */
9161 _ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9165
9166 int
9167 main ()
9168 {
9169 /* FIXME: Include the comments suggested by Paul. */
9170 #ifndef __cplusplus
9171 /* Ultrix mips cc rejects this. */
9172 typedef int charset[2];
9173 const charset cs;
9174 /* SunOS 4.1.1 cc rejects this. */
9175 char const *const *pcpcc;
9176 char **ppc;
9177 /* NEC SVR4.0.2 mips cc rejects this. */
9178 struct point {int x, y;};
9179 static struct point const zero = {0,0};
9180 /* AIX XL C 1.02.0.0 rejects this.
9181 It does not let you subtract one const X* pointer from another in
9182 an arm of an if-expression whose if-part is not a constant
9183 expression */
9184 const char *g = "string";
9185 pcpcc = &g + (g ? g-g : 0);
9186 /* HPUX 7.0 cc rejects these. */
9187 ++pcpcc;
9188 ppc = (char**) pcpcc;
9189 pcpcc = (char const *const *) ppc;
9190 { /* SCO 3.2v4 cc rejects this. */
9191 char *t;
9192 char const *s = 0 ? (char *) 0 : (char const *) 0;
9193
9194 *t++ = 0;
9195 if (s) return 0;
9196 }
9197 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9198 int x[] = {25, 17};
9199 const int *foo = &x[0];
9200 ++foo;
9201 }
9202 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9203 typedef const int *iptr;
9204 iptr p = 0;
9205 ++p;
9206 }
9207 { /* AIX XL C 1.02.0.0 rejects this saying
9208 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9209 struct s { int j; const int *ap[3]; };
9210 struct s *b; b->j = 5;
9211 }
9212 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9213 const int foo = 10;
9214 if (!foo) return 0;
9215 }
9216 return !cs[0] && !zero.x;
9217 #endif
9218
9219 ;
9220 return 0;
9221 }
9222 _ACEOF
9223 rm -f conftest.$ac_objext
9224 if { (ac_try="$ac_compile"
9225 case "(($ac_try" in
9226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9227 *) ac_try_echo=$ac_try;;
9228 esac
9229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9230 $as_echo "$ac_try_echo") >&5
9231 (eval "$ac_compile") 2>conftest.er1
9232 ac_status=$?
9233 grep -v '^ *+' conftest.er1 >conftest.err
9234 rm -f conftest.er1
9235 cat conftest.err >&5
9236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); } && {
9238 test -z "$ac_c_werror_flag" ||
9239 test ! -s conftest.err
9240 } && test -s conftest.$ac_objext; then
9241 ac_cv_c_const=yes
9242 else
9243 $as_echo "$as_me: failed program was:" >&5
9244 sed 's/^/| /' conftest.$ac_ext >&5
9245
9246 ac_cv_c_const=no
9247 fi
9248
9249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9250 fi
9251 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9252 $as_echo "$ac_cv_c_const" >&6; }
9253 if test $ac_cv_c_const = no; then
9254
9255 cat >>confdefs.h <<\_ACEOF
9256 #define const /**/
9257 _ACEOF
9258
9259 fi
9260
9261 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9262 $as_echo_n "checking for void * support... " >&6; }
9263 if test "${emacs_cv_void_star+set}" = set; then
9264 $as_echo_n "(cached) " >&6
9265 else
9266 cat >conftest.$ac_ext <<_ACEOF
9267 /* confdefs.h. */
9268 _ACEOF
9269 cat confdefs.h >>conftest.$ac_ext
9270 cat >>conftest.$ac_ext <<_ACEOF
9271 /* end confdefs.h. */
9272
9273 int
9274 main ()
9275 {
9276 void * foo;
9277 ;
9278 return 0;
9279 }
9280 _ACEOF
9281 rm -f conftest.$ac_objext
9282 if { (ac_try="$ac_compile"
9283 case "(($ac_try" in
9284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9285 *) ac_try_echo=$ac_try;;
9286 esac
9287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9288 $as_echo "$ac_try_echo") >&5
9289 (eval "$ac_compile") 2>conftest.er1
9290 ac_status=$?
9291 grep -v '^ *+' conftest.er1 >conftest.err
9292 rm -f conftest.er1
9293 cat conftest.err >&5
9294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } && {
9296 test -z "$ac_c_werror_flag" ||
9297 test ! -s conftest.err
9298 } && test -s conftest.$ac_objext; then
9299 emacs_cv_void_star=yes
9300 else
9301 $as_echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9303
9304 emacs_cv_void_star=no
9305 fi
9306
9307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9308 fi
9309 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9310 $as_echo "$emacs_cv_void_star" >&6; }
9311 if test $emacs_cv_void_star = yes; then
9312 cat >>confdefs.h <<\_ACEOF
9313 #define POINTER_TYPE void
9314 _ACEOF
9315
9316 else
9317 cat >>confdefs.h <<\_ACEOF
9318 #define POINTER_TYPE char
9319 _ACEOF
9320
9321 fi
9322
9323
9324
9325
9326
9327 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9328 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9329 set x ${MAKE-make}
9330 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9331 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9332 $as_echo_n "(cached) " >&6
9333 else
9334 cat >conftest.make <<\_ACEOF
9335 SHELL = /bin/sh
9336 all:
9337 @echo '@@@%%%=$(MAKE)=@@@%%%'
9338 _ACEOF
9339 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9340 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9341 *@@@%%%=?*=@@@%%%*)
9342 eval ac_cv_prog_make_${ac_make}_set=yes;;
9343 *)
9344 eval ac_cv_prog_make_${ac_make}_set=no;;
9345 esac
9346 rm -f conftest.make
9347 fi
9348 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9349 { $as_echo "$as_me:$LINENO: result: yes" >&5
9350 $as_echo "yes" >&6; }
9351 SET_MAKE=
9352 else
9353 { $as_echo "$as_me:$LINENO: result: no" >&5
9354 $as_echo "no" >&6; }
9355 SET_MAKE="MAKE=${MAKE-make}"
9356 fi
9357
9358
9359 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9360 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9361 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9362 HAVE_GNU_MAKE=no
9363 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9364 if test "x$testval" != x; then
9365 HAVE_GNU_MAKE=yes
9366 else
9367 ac_enable_autodepend=no
9368 fi
9369 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9370 $as_echo "$HAVE_GNU_MAKE" >&6; }
9371 if test $HAVE_GNU_MAKE = yes; then
9372 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9373 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9374 SAVE_CFLAGS="$CFLAGS"
9375 CFLAGS="$CFLAGS -MMD -MF deps.d"
9376 cat >conftest.$ac_ext <<_ACEOF
9377 /* confdefs.h. */
9378 _ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9382
9383 int
9384 main ()
9385 {
9386
9387 ;
9388 return 0;
9389 }
9390 _ACEOF
9391 rm -f conftest.$ac_objext
9392 if { (ac_try="$ac_compile"
9393 case "(($ac_try" in
9394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395 *) ac_try_echo=$ac_try;;
9396 esac
9397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9398 $as_echo "$ac_try_echo") >&5
9399 (eval "$ac_compile") 2>conftest.er1
9400 ac_status=$?
9401 grep -v '^ *+' conftest.er1 >conftest.err
9402 rm -f conftest.er1
9403 cat conftest.err >&5
9404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } && {
9406 test -z "$ac_c_werror_flag" ||
9407 test ! -s conftest.err
9408 } && test -s conftest.$ac_objext; then
9409 :
9410 else
9411 $as_echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.$ac_ext >&5
9413
9414 ac_enable_autodepend=no
9415 fi
9416
9417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9418 CFLAGS="$SAVE_CFLAGS"
9419 test -f deps.d || ac_enable_autodepend=no
9420 rm -rf deps.d
9421 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9422 $as_echo "$ac_enable_autodepend" >&6; }
9423 fi
9424 if test $ac_enable_autodepend = yes; then
9425
9426 cat >>confdefs.h <<\_ACEOF
9427 #define AUTO_DEPEND 1
9428 _ACEOF
9429
9430 fi
9431 fi
9432
9433 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9434 $as_echo_n "checking for long file names... " >&6; }
9435 if test "${ac_cv_sys_long_file_names+set}" = set; then
9436 $as_echo_n "(cached) " >&6
9437 else
9438 ac_cv_sys_long_file_names=yes
9439 # Test for long file names in all the places we know might matter:
9440 # . the current directory, where building will happen
9441 # $prefix/lib where we will be installing things
9442 # $exec_prefix/lib likewise
9443 # $TMPDIR if set, where it might want to write temporary files
9444 # /tmp where it might want to write temporary files
9445 # /var/tmp likewise
9446 # /usr/tmp likewise
9447 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9448 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9449 # in the usual case where exec_prefix is '${prefix}'.
9450 case $ac_dir in #(
9451 . | /* | ?:[\\/]*) ;; #(
9452 *) continue;;
9453 esac
9454 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9455 ac_xdir=$ac_dir/cf$$
9456 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9457 ac_tf1=$ac_xdir/conftest9012345
9458 ac_tf2=$ac_xdir/conftest9012346
9459 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9460 ac_cv_sys_long_file_names=no
9461 rm -f -r "$ac_xdir" 2>/dev/null
9462 test $ac_cv_sys_long_file_names = no && break
9463 done
9464 fi
9465 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9466 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9467 if test $ac_cv_sys_long_file_names = yes; then
9468
9469 cat >>confdefs.h <<\_ACEOF
9470 #define HAVE_LONG_FILE_NAMES 1
9471 _ACEOF
9472
9473 fi
9474
9475
9476 #### Choose a window system.
9477
9478 { $as_echo "$as_me:$LINENO: checking for X" >&5
9479 $as_echo_n "checking for X... " >&6; }
9480
9481
9482 # Check whether --with-x was given.
9483 if test "${with_x+set}" = set; then
9484 withval=$with_x;
9485 fi
9486
9487 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9488 if test "x$with_x" = xno; then
9489 # The user explicitly disabled X.
9490 have_x=disabled
9491 else
9492 case $x_includes,$x_libraries in #(
9493 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9494 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9495 { (exit 1); exit 1; }; };; #(
9496 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9497 $as_echo_n "(cached) " >&6
9498 else
9499 # One or both of the vars are not set, and there is no cached value.
9500 ac_x_includes=no ac_x_libraries=no
9501 rm -f -r conftest.dir
9502 if mkdir conftest.dir; then
9503 cd conftest.dir
9504 cat >Imakefile <<'_ACEOF'
9505 incroot:
9506 @echo incroot='${INCROOT}'
9507 usrlibdir:
9508 @echo usrlibdir='${USRLIBDIR}'
9509 libdir:
9510 @echo libdir='${LIBDIR}'
9511 _ACEOF
9512 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9513 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9514 for ac_var in incroot usrlibdir libdir; do
9515 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9516 done
9517 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9518 for ac_extension in a so sl dylib la dll; do
9519 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9520 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9521 ac_im_usrlibdir=$ac_im_libdir; break
9522 fi
9523 done
9524 # Screen out bogus values from the imake configuration. They are
9525 # bogus both because they are the default anyway, and because
9526 # using them would break gcc on systems where it needs fixed includes.
9527 case $ac_im_incroot in
9528 /usr/include) ac_x_includes= ;;
9529 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9530 esac
9531 case $ac_im_usrlibdir in
9532 /usr/lib | /lib) ;;
9533 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9534 esac
9535 fi
9536 cd ..
9537 rm -f -r conftest.dir
9538 fi
9539
9540 # Standard set of common directories for X headers.
9541 # Check X11 before X11Rn because it is often a symlink to the current release.
9542 ac_x_header_dirs='
9543 /usr/X11/include
9544 /usr/X11R6/include
9545 /usr/X11R5/include
9546 /usr/X11R4/include
9547
9548 /usr/include/X11
9549 /usr/include/X11R6
9550 /usr/include/X11R5
9551 /usr/include/X11R4
9552
9553 /usr/local/X11/include
9554 /usr/local/X11R6/include
9555 /usr/local/X11R5/include
9556 /usr/local/X11R4/include
9557
9558 /usr/local/include/X11
9559 /usr/local/include/X11R6
9560 /usr/local/include/X11R5
9561 /usr/local/include/X11R4
9562
9563 /usr/X386/include
9564 /usr/x386/include
9565 /usr/XFree86/include/X11
9566
9567 /usr/include
9568 /usr/local/include
9569 /usr/unsupported/include
9570 /usr/athena/include
9571 /usr/local/x11r5/include
9572 /usr/lpp/Xamples/include
9573
9574 /usr/openwin/include
9575 /usr/openwin/share/include'
9576
9577 if test "$ac_x_includes" = no; then
9578 # Guess where to find include files, by looking for Xlib.h.
9579 # First, try using that file with no special directory specified.
9580 cat >conftest.$ac_ext <<_ACEOF
9581 /* confdefs.h. */
9582 _ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9586 #include <X11/Xlib.h>
9587 _ACEOF
9588 if { (ac_try="$ac_cpp conftest.$ac_ext"
9589 case "(($ac_try" in
9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591 *) ac_try_echo=$ac_try;;
9592 esac
9593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9594 $as_echo "$ac_try_echo") >&5
9595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9596 ac_status=$?
9597 grep -v '^ *+' conftest.er1 >conftest.err
9598 rm -f conftest.er1
9599 cat conftest.err >&5
9600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } >/dev/null && {
9602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9603 test ! -s conftest.err
9604 }; then
9605 # We can compile using X headers with no special include directory.
9606 ac_x_includes=
9607 else
9608 $as_echo "$as_me: failed program was:" >&5
9609 sed 's/^/| /' conftest.$ac_ext >&5
9610
9611 for ac_dir in $ac_x_header_dirs; do
9612 if test -r "$ac_dir/X11/Xlib.h"; then
9613 ac_x_includes=$ac_dir
9614 break
9615 fi
9616 done
9617 fi
9618
9619 rm -f conftest.err conftest.$ac_ext
9620 fi # $ac_x_includes = no
9621
9622 if test "$ac_x_libraries" = no; then
9623 # Check for the libraries.
9624 # See if we find them without any special options.
9625 # Don't add to $LIBS permanently.
9626 ac_save_LIBS=$LIBS
9627 LIBS="-lX11 $LIBS"
9628 cat >conftest.$ac_ext <<_ACEOF
9629 /* confdefs.h. */
9630 _ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h. */
9634 #include <X11/Xlib.h>
9635 int
9636 main ()
9637 {
9638 XrmInitialize ()
9639 ;
9640 return 0;
9641 }
9642 _ACEOF
9643 rm -f conftest.$ac_objext conftest$ac_exeext
9644 if { (ac_try="$ac_link"
9645 case "(($ac_try" in
9646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9647 *) ac_try_echo=$ac_try;;
9648 esac
9649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9650 $as_echo "$ac_try_echo") >&5
9651 (eval "$ac_link") 2>conftest.er1
9652 ac_status=$?
9653 grep -v '^ *+' conftest.er1 >conftest.err
9654 rm -f conftest.er1
9655 cat conftest.err >&5
9656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } && {
9658 test -z "$ac_c_werror_flag" ||
9659 test ! -s conftest.err
9660 } && test -s conftest$ac_exeext && {
9661 test "$cross_compiling" = yes ||
9662 $as_test_x conftest$ac_exeext
9663 }; then
9664 LIBS=$ac_save_LIBS
9665 # We can link X programs with no special library path.
9666 ac_x_libraries=
9667 else
9668 $as_echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9670
9671 LIBS=$ac_save_LIBS
9672 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9673 do
9674 # Don't even attempt the hair of trying to link an X program!
9675 for ac_extension in a so sl dylib la dll; do
9676 if test -r "$ac_dir/libX11.$ac_extension"; then
9677 ac_x_libraries=$ac_dir
9678 break 2
9679 fi
9680 done
9681 done
9682 fi
9683
9684 rm -rf conftest.dSYM
9685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9686 conftest$ac_exeext conftest.$ac_ext
9687 fi # $ac_x_libraries = no
9688
9689 case $ac_x_includes,$ac_x_libraries in #(
9690 no,* | *,no | *\'*)
9691 # Didn't find X, or a directory has "'" in its name.
9692 ac_cv_have_x="have_x=no";; #(
9693 *)
9694 # Record where we found X for the cache.
9695 ac_cv_have_x="have_x=yes\
9696 ac_x_includes='$ac_x_includes'\
9697 ac_x_libraries='$ac_x_libraries'"
9698 esac
9699 fi
9700 ;; #(
9701 *) have_x=yes;;
9702 esac
9703 eval "$ac_cv_have_x"
9704 fi # $with_x != no
9705
9706 if test "$have_x" != yes; then
9707 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9708 $as_echo "$have_x" >&6; }
9709 no_x=yes
9710 else
9711 # If each of the values was on the command line, it overrides each guess.
9712 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9713 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9714 # Update the cache value to reflect the command line values.
9715 ac_cv_have_x="have_x=yes\
9716 ac_x_includes='$x_includes'\
9717 ac_x_libraries='$x_libraries'"
9718 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9719 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9720 fi
9721
9722 if test "$no_x" = yes; then
9723 window_system=none
9724 else
9725 window_system=x11
9726 fi
9727
9728 ## Workaround for bug in autoconf <= 2.62.
9729 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9730 ## No need to do anything special for these standard directories.
9731 ## This is an experiment, take it out if it causes problems.
9732 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9733
9734 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9735
9736 fi
9737
9738 if test "${x_libraries}" != NONE; then
9739 if test -n "${x_libraries}"; then
9740 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9741 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9742 fi
9743 x_default_search_path=""
9744 x_search_path=${x_libraries}
9745 if test -z "${x_search_path}"; then
9746 x_search_path=/usr/lib
9747 fi
9748 for x_library in `echo ${x_search_path}: | \
9749 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9750 x_search_path="\
9751 ${x_library}/X11/%L/%T/%N%C%S:\
9752 ${x_library}/X11/%l/%T/%N%C%S:\
9753 ${x_library}/X11/%T/%N%C%S:\
9754 ${x_library}/X11/%L/%T/%N%S:\
9755 ${x_library}/X11/%l/%T/%N%S:\
9756 ${x_library}/X11/%T/%N%S"
9757 if test x"${x_default_search_path}" = x; then
9758 x_default_search_path=${x_search_path}
9759 else
9760 x_default_search_path="${x_search_path}:${x_default_search_path}"
9761 fi
9762 done
9763 fi
9764 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9765 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9766 fi
9767
9768 if test x"${x_includes}" = x; then
9769 bitmapdir=/usr/include/X11/bitmaps
9770 else
9771 # accumulate include directories that have X11 bitmap subdirectories
9772 bmd_acc="dummyval"
9773 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9774 if test -d "${bmd}/X11/bitmaps"; then
9775 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9776 fi
9777 if test -d "${bmd}/bitmaps"; then
9778 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9779 fi
9780 done
9781 if test ${bmd_acc} != "dummyval"; then
9782 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9783 fi
9784 fi
9785
9786 HAVE_NS=no
9787 NS_IMPL_COCOA=no
9788 NS_IMPL_GNUSTEP=no
9789 tmp_CPPFLAGS="$CPPFLAGS"
9790 tmp_CFLAGS="$CFLAGS"
9791 CPPFLAGS="$CPPFLAGS -x objective-c"
9792 CFLAGS="$CFLAGS -x objective-c"
9793 if test "${with_ns}" != no; then
9794 if test "${opsys}" = darwin; then
9795 NS_IMPL_COCOA=yes
9796 ns_appdir=`pwd`/nextstep/Emacs.app
9797 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9798 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9799 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9800 elif test -f $GNUSTEP_CONFIG_FILE; then
9801 NS_IMPL_GNUSTEP=yes
9802 ns_appdir=`pwd`/nextstep/Emacs.app
9803 ns_appbindir=`pwd`/nextstep/Emacs.app
9804 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9805 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9806 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9807 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9808 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9809 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9810 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9811 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9812 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9813 fi
9814 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9815 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9816 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9817 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9818 $as_echo_n "(cached) " >&6
9819 fi
9820 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9821 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9822 else
9823 # Is the header compilable?
9824 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9825 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9826 cat >conftest.$ac_ext <<_ACEOF
9827 /* confdefs.h. */
9828 _ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9832 $ac_includes_default
9833 #include <AppKit/AppKit.h>
9834 _ACEOF
9835 rm -f conftest.$ac_objext
9836 if { (ac_try="$ac_compile"
9837 case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9840 esac
9841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9842 $as_echo "$ac_try_echo") >&5
9843 (eval "$ac_compile") 2>conftest.er1
9844 ac_status=$?
9845 grep -v '^ *+' conftest.er1 >conftest.err
9846 rm -f conftest.er1
9847 cat conftest.err >&5
9848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } && {
9850 test -z "$ac_c_werror_flag" ||
9851 test ! -s conftest.err
9852 } && test -s conftest.$ac_objext; then
9853 ac_header_compiler=yes
9854 else
9855 $as_echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9857
9858 ac_header_compiler=no
9859 fi
9860
9861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9862 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9863 $as_echo "$ac_header_compiler" >&6; }
9864
9865 # Is the header present?
9866 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9867 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9868 cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h. */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874 #include <AppKit/AppKit.h>
9875 _ACEOF
9876 if { (ac_try="$ac_cpp conftest.$ac_ext"
9877 case "(($ac_try" in
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9880 esac
9881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9882 $as_echo "$ac_try_echo") >&5
9883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9884 ac_status=$?
9885 grep -v '^ *+' conftest.er1 >conftest.err
9886 rm -f conftest.er1
9887 cat conftest.err >&5
9888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); } >/dev/null && {
9890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9891 test ! -s conftest.err
9892 }; then
9893 ac_header_preproc=yes
9894 else
9895 $as_echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.$ac_ext >&5
9897
9898 ac_header_preproc=no
9899 fi
9900
9901 rm -f conftest.err conftest.$ac_ext
9902 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9903 $as_echo "$ac_header_preproc" >&6; }
9904
9905 # So? What about this header?
9906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9907 yes:no: )
9908 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9909 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9910 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9911 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9912 ac_header_preproc=yes
9913 ;;
9914 no:yes:* )
9915 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9916 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9917 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9918 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9919 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9920 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9921 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9922 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9923 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9924 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9925 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9926 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9927
9928 ;;
9929 esac
9930 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9931 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9932 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9933 $as_echo_n "(cached) " >&6
9934 else
9935 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9936 fi
9937 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9938 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9939
9940 fi
9941 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9942 HAVE_NS=yes
9943 else
9944 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9945 files are missing or cannot be compiled." >&5
9946 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9947 files are missing or cannot be compiled." >&2;}
9948 { (exit 1); exit 1; }; }
9949 fi
9950
9951
9952 NS_HAVE_NSINTEGER=yes
9953 cat >conftest.$ac_ext <<_ACEOF
9954 /* confdefs.h. */
9955 _ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9959 #include <Foundation/NSObjCRuntime.h>
9960 int
9961 main ()
9962 {
9963 NSInteger i;
9964 ;
9965 return 0;
9966 }
9967 _ACEOF
9968 rm -f conftest.$ac_objext
9969 if { (ac_try="$ac_compile"
9970 case "(($ac_try" in
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9973 esac
9974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9975 $as_echo "$ac_try_echo") >&5
9976 (eval "$ac_compile") 2>conftest.er1
9977 ac_status=$?
9978 grep -v '^ *+' conftest.er1 >conftest.err
9979 rm -f conftest.er1
9980 cat conftest.err >&5
9981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } && {
9983 test -z "$ac_c_werror_flag" ||
9984 test ! -s conftest.err
9985 } && test -s conftest.$ac_objext; then
9986 ns_have_nsinteger=yes
9987 else
9988 $as_echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9990
9991 ns_have_nsinteger=no
9992 fi
9993
9994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9995 if test $ns_have_nsinteger = no; then
9996 NS_HAVE_NSINTEGER=no
9997 fi
9998 fi
9999
10000 NS_OBJ=
10001 NS_SUPPORT=
10002 if test "${HAVE_NS}" = yes; then
10003 window_system=nextstep
10004 with_xft=no
10005 # set up packaging dirs
10006 exec_prefix=${ns_appbindir}
10007 libexecdir=${ns_appbindir}/libexec
10008 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10009 prefix=${ns_appresdir}
10010 fi
10011 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
10012 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
10013 fi
10014 CFLAGS="$tmp_CFLAGS"
10015 CPPFLAGS="$tmp_CPPFLAGS"
10016
10017
10018
10019 case "${window_system}" in
10020 x11 )
10021 HAVE_X_WINDOWS=yes
10022 HAVE_X11=yes
10023 case "${with_x_toolkit}" in
10024 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10025 motif ) USE_X_TOOLKIT=MOTIF ;;
10026 gtk ) with_gtk=yes
10027 USE_X_TOOLKIT=none ;;
10028 no ) USE_X_TOOLKIT=none ;;
10029 * ) USE_X_TOOLKIT=maybe ;;
10030 esac
10031 ;;
10032 nextstep | none )
10033 HAVE_X_WINDOWS=no
10034 HAVE_X11=no
10035 USE_X_TOOLKIT=none
10036 ;;
10037 esac
10038
10039 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10040 # Extract the first word of "X", so it can be a program name with args.
10041 set dummy X; ac_word=$2
10042 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10043 $as_echo_n "checking for $ac_word... " >&6; }
10044 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10045 $as_echo_n "(cached) " >&6
10046 else
10047 if test -n "$HAVE_XSERVER"; then
10048 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10049 else
10050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10051 for as_dir in $PATH
10052 do
10053 IFS=$as_save_IFS
10054 test -z "$as_dir" && as_dir=.
10055 for ac_exec_ext in '' $ac_executable_extensions; do
10056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10057 ac_cv_prog_HAVE_XSERVER="true"
10058 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10059 break 2
10060 fi
10061 done
10062 done
10063 IFS=$as_save_IFS
10064
10065 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10066 fi
10067 fi
10068 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10069 if test -n "$HAVE_XSERVER"; then
10070 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
10071 $as_echo "$HAVE_XSERVER" >&6; }
10072 else
10073 { $as_echo "$as_me:$LINENO: result: no" >&5
10074 $as_echo "no" >&6; }
10075 fi
10076
10077
10078 if test "$HAVE_XSERVER" = true ||
10079 test -n "$DISPLAY" ||
10080 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10081 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10082 were found. You should install the relevant development files for X
10083 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10084 sure you have development files for image handling, i.e.
10085 tiff, gif, jpeg, png and xpm.
10086 If you are sure you want Emacs compiled without X window support, pass
10087 --without-x
10088 to configure." >&5
10089 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10090 were found. You should install the relevant development files for X
10091 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10092 sure you have development files for image handling, i.e.
10093 tiff, gif, jpeg, png and xpm.
10094 If you are sure you want Emacs compiled without X window support, pass
10095 --without-x
10096 to configure." >&2;}
10097 { (exit 1); exit 1; }; }
10098 fi
10099 fi
10100
10101 ### If we're using X11, we should use the X menu package.
10102 HAVE_MENUS=no
10103 case ${HAVE_X11} in
10104 yes ) HAVE_MENUS=yes ;;
10105 esac
10106
10107 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10108 # Assume not, until told otherwise.
10109 GNU_MALLOC=yes
10110 doug_lea_malloc=yes
10111 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10112 $as_echo_n "checking for malloc_get_state... " >&6; }
10113 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10114 $as_echo_n "(cached) " >&6
10115 else
10116 cat >conftest.$ac_ext <<_ACEOF
10117 /* confdefs.h. */
10118 _ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h. */
10122 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10124 #define malloc_get_state innocuous_malloc_get_state
10125
10126 /* System header to define __stub macros and hopefully few prototypes,
10127 which can conflict with char malloc_get_state (); below.
10128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10129 <limits.h> exists even on freestanding compilers. */
10130
10131 #ifdef __STDC__
10132 # include <limits.h>
10133 #else
10134 # include <assert.h>
10135 #endif
10136
10137 #undef malloc_get_state
10138
10139 /* Override any GCC internal prototype to avoid an error.
10140 Use char because int might match the return type of a GCC
10141 builtin and then its argument prototype would still apply. */
10142 #ifdef __cplusplus
10143 extern "C"
10144 #endif
10145 char malloc_get_state ();
10146 /* The GNU C library defines this for functions which it implements
10147 to always fail with ENOSYS. Some functions are actually named
10148 something starting with __ and the normal name is an alias. */
10149 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10150 choke me
10151 #endif
10152
10153 int
10154 main ()
10155 {
10156 return malloc_get_state ();
10157 ;
10158 return 0;
10159 }
10160 _ACEOF
10161 rm -f conftest.$ac_objext conftest$ac_exeext
10162 if { (ac_try="$ac_link"
10163 case "(($ac_try" in
10164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165 *) ac_try_echo=$ac_try;;
10166 esac
10167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10168 $as_echo "$ac_try_echo") >&5
10169 (eval "$ac_link") 2>conftest.er1
10170 ac_status=$?
10171 grep -v '^ *+' conftest.er1 >conftest.err
10172 rm -f conftest.er1
10173 cat conftest.err >&5
10174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } && {
10176 test -z "$ac_c_werror_flag" ||
10177 test ! -s conftest.err
10178 } && test -s conftest$ac_exeext && {
10179 test "$cross_compiling" = yes ||
10180 $as_test_x conftest$ac_exeext
10181 }; then
10182 ac_cv_func_malloc_get_state=yes
10183 else
10184 $as_echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10186
10187 ac_cv_func_malloc_get_state=no
10188 fi
10189
10190 rm -rf conftest.dSYM
10191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10192 conftest$ac_exeext conftest.$ac_ext
10193 fi
10194 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10195 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10196 if test $ac_cv_func_malloc_get_state = yes; then
10197 :
10198 else
10199 doug_lea_malloc=no
10200 fi
10201
10202 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10203 $as_echo_n "checking for malloc_set_state... " >&6; }
10204 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10205 $as_echo_n "(cached) " >&6
10206 else
10207 cat >conftest.$ac_ext <<_ACEOF
10208 /* confdefs.h. */
10209 _ACEOF
10210 cat confdefs.h >>conftest.$ac_ext
10211 cat >>conftest.$ac_ext <<_ACEOF
10212 /* end confdefs.h. */
10213 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10215 #define malloc_set_state innocuous_malloc_set_state
10216
10217 /* System header to define __stub macros and hopefully few prototypes,
10218 which can conflict with char malloc_set_state (); below.
10219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10220 <limits.h> exists even on freestanding compilers. */
10221
10222 #ifdef __STDC__
10223 # include <limits.h>
10224 #else
10225 # include <assert.h>
10226 #endif
10227
10228 #undef malloc_set_state
10229
10230 /* Override any GCC internal prototype to avoid an error.
10231 Use char because int might match the return type of a GCC
10232 builtin and then its argument prototype would still apply. */
10233 #ifdef __cplusplus
10234 extern "C"
10235 #endif
10236 char malloc_set_state ();
10237 /* The GNU C library defines this for functions which it implements
10238 to always fail with ENOSYS. Some functions are actually named
10239 something starting with __ and the normal name is an alias. */
10240 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10241 choke me
10242 #endif
10243
10244 int
10245 main ()
10246 {
10247 return malloc_set_state ();
10248 ;
10249 return 0;
10250 }
10251 _ACEOF
10252 rm -f conftest.$ac_objext conftest$ac_exeext
10253 if { (ac_try="$ac_link"
10254 case "(($ac_try" in
10255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10257 esac
10258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10259 $as_echo "$ac_try_echo") >&5
10260 (eval "$ac_link") 2>conftest.er1
10261 ac_status=$?
10262 grep -v '^ *+' conftest.er1 >conftest.err
10263 rm -f conftest.er1
10264 cat conftest.err >&5
10265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } && {
10267 test -z "$ac_c_werror_flag" ||
10268 test ! -s conftest.err
10269 } && test -s conftest$ac_exeext && {
10270 test "$cross_compiling" = yes ||
10271 $as_test_x conftest$ac_exeext
10272 }; then
10273 ac_cv_func_malloc_set_state=yes
10274 else
10275 $as_echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10277
10278 ac_cv_func_malloc_set_state=no
10279 fi
10280
10281 rm -rf conftest.dSYM
10282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10283 conftest$ac_exeext conftest.$ac_ext
10284 fi
10285 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10286 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10287 if test $ac_cv_func_malloc_set_state = yes; then
10288 :
10289 else
10290 doug_lea_malloc=no
10291 fi
10292
10293 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10294 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10295 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10296 $as_echo_n "(cached) " >&6
10297 else
10298 cat >conftest.$ac_ext <<_ACEOF
10299 /* confdefs.h. */
10300 _ACEOF
10301 cat confdefs.h >>conftest.$ac_ext
10302 cat >>conftest.$ac_ext <<_ACEOF
10303 /* end confdefs.h. */
10304 extern void (* __after_morecore_hook)();
10305 int
10306 main ()
10307 {
10308 __after_morecore_hook = 0
10309 ;
10310 return 0;
10311 }
10312 _ACEOF
10313 rm -f conftest.$ac_objext conftest$ac_exeext
10314 if { (ac_try="$ac_link"
10315 case "(($ac_try" in
10316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317 *) ac_try_echo=$ac_try;;
10318 esac
10319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10320 $as_echo "$ac_try_echo") >&5
10321 (eval "$ac_link") 2>conftest.er1
10322 ac_status=$?
10323 grep -v '^ *+' conftest.er1 >conftest.err
10324 rm -f conftest.er1
10325 cat conftest.err >&5
10326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); } && {
10328 test -z "$ac_c_werror_flag" ||
10329 test ! -s conftest.err
10330 } && test -s conftest$ac_exeext && {
10331 test "$cross_compiling" = yes ||
10332 $as_test_x conftest$ac_exeext
10333 }; then
10334 emacs_cv_var___after_morecore_hook=yes
10335 else
10336 $as_echo "$as_me: failed program was:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10338
10339 emacs_cv_var___after_morecore_hook=no
10340 fi
10341
10342 rm -rf conftest.dSYM
10343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10344 conftest$ac_exeext conftest.$ac_ext
10345 fi
10346 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10347 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10348 if test $emacs_cv_var___after_morecore_hook = no; then
10349 doug_lea_malloc=no
10350 fi
10351 if test "${system_malloc}" = "yes"; then
10352 GNU_MALLOC=no
10353 GNU_MALLOC_reason="
10354 (The GNU allocators don't work with this system configuration.)"
10355 fi
10356 if test "$doug_lea_malloc" = "yes" ; then
10357 if test "$GNU_MALLOC" = yes ; then
10358 GNU_MALLOC_reason="
10359 (Using Doug Lea's new malloc from the GNU C Library.)"
10360 fi
10361
10362 cat >>confdefs.h <<\_ACEOF
10363 #define DOUG_LEA_MALLOC 1
10364 _ACEOF
10365
10366 fi
10367
10368 if test x"${REL_ALLOC}" = x; then
10369 REL_ALLOC=${GNU_MALLOC}
10370 fi
10371
10372
10373
10374
10375 for ac_header in stdlib.h unistd.h
10376 do
10377 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10379 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10380 $as_echo_n "checking for $ac_header... " >&6; }
10381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10382 $as_echo_n "(cached) " >&6
10383 fi
10384 ac_res=`eval 'as_val=${'$as_ac_Header'}
10385 $as_echo "$as_val"'`
10386 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10387 $as_echo "$ac_res" >&6; }
10388 else
10389 # Is the header compilable?
10390 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10391 $as_echo_n "checking $ac_header usability... " >&6; }
10392 cat >conftest.$ac_ext <<_ACEOF
10393 /* confdefs.h. */
10394 _ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h. */
10398 $ac_includes_default
10399 #include <$ac_header>
10400 _ACEOF
10401 rm -f conftest.$ac_objext
10402 if { (ac_try="$ac_compile"
10403 case "(($ac_try" in
10404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10405 *) ac_try_echo=$ac_try;;
10406 esac
10407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10408 $as_echo "$ac_try_echo") >&5
10409 (eval "$ac_compile") 2>conftest.er1
10410 ac_status=$?
10411 grep -v '^ *+' conftest.er1 >conftest.err
10412 rm -f conftest.er1
10413 cat conftest.err >&5
10414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } && {
10416 test -z "$ac_c_werror_flag" ||
10417 test ! -s conftest.err
10418 } && test -s conftest.$ac_objext; then
10419 ac_header_compiler=yes
10420 else
10421 $as_echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.$ac_ext >&5
10423
10424 ac_header_compiler=no
10425 fi
10426
10427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10428 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10429 $as_echo "$ac_header_compiler" >&6; }
10430
10431 # Is the header present?
10432 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10433 $as_echo_n "checking $ac_header presence... " >&6; }
10434 cat >conftest.$ac_ext <<_ACEOF
10435 /* confdefs.h. */
10436 _ACEOF
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h. */
10440 #include <$ac_header>
10441 _ACEOF
10442 if { (ac_try="$ac_cpp conftest.$ac_ext"
10443 case "(($ac_try" in
10444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10445 *) ac_try_echo=$ac_try;;
10446 esac
10447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10448 $as_echo "$ac_try_echo") >&5
10449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10450 ac_status=$?
10451 grep -v '^ *+' conftest.er1 >conftest.err
10452 rm -f conftest.er1
10453 cat conftest.err >&5
10454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } >/dev/null && {
10456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10457 test ! -s conftest.err
10458 }; then
10459 ac_header_preproc=yes
10460 else
10461 $as_echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10463
10464 ac_header_preproc=no
10465 fi
10466
10467 rm -f conftest.err conftest.$ac_ext
10468 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10469 $as_echo "$ac_header_preproc" >&6; }
10470
10471 # So? What about this header?
10472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10473 yes:no: )
10474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10475 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10477 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10478 ac_header_preproc=yes
10479 ;;
10480 no:yes:* )
10481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10482 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10484 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10486 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10488 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10490 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10491 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10492 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10493
10494 ;;
10495 esac
10496 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10497 $as_echo_n "checking for $ac_header... " >&6; }
10498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10499 $as_echo_n "(cached) " >&6
10500 else
10501 eval "$as_ac_Header=\$ac_header_preproc"
10502 fi
10503 ac_res=`eval 'as_val=${'$as_ac_Header'}
10504 $as_echo "$as_val"'`
10505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10506 $as_echo "$ac_res" >&6; }
10507
10508 fi
10509 if test `eval 'as_val=${'$as_ac_Header'}
10510 $as_echo "$as_val"'` = yes; then
10511 cat >>confdefs.h <<_ACEOF
10512 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10513 _ACEOF
10514
10515 fi
10516
10517 done
10518
10519
10520 for ac_func in getpagesize
10521 do
10522 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10523 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10524 $as_echo_n "checking for $ac_func... " >&6; }
10525 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10526 $as_echo_n "(cached) " >&6
10527 else
10528 cat >conftest.$ac_ext <<_ACEOF
10529 /* confdefs.h. */
10530 _ACEOF
10531 cat confdefs.h >>conftest.$ac_ext
10532 cat >>conftest.$ac_ext <<_ACEOF
10533 /* end confdefs.h. */
10534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10536 #define $ac_func innocuous_$ac_func
10537
10538 /* System header to define __stub macros and hopefully few prototypes,
10539 which can conflict with char $ac_func (); below.
10540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10541 <limits.h> exists even on freestanding compilers. */
10542
10543 #ifdef __STDC__
10544 # include <limits.h>
10545 #else
10546 # include <assert.h>
10547 #endif
10548
10549 #undef $ac_func
10550
10551 /* Override any GCC internal prototype to avoid an error.
10552 Use char because int might match the return type of a GCC
10553 builtin and then its argument prototype would still apply. */
10554 #ifdef __cplusplus
10555 extern "C"
10556 #endif
10557 char $ac_func ();
10558 /* The GNU C library defines this for functions which it implements
10559 to always fail with ENOSYS. Some functions are actually named
10560 something starting with __ and the normal name is an alias. */
10561 #if defined __stub_$ac_func || defined __stub___$ac_func
10562 choke me
10563 #endif
10564
10565 int
10566 main ()
10567 {
10568 return $ac_func ();
10569 ;
10570 return 0;
10571 }
10572 _ACEOF
10573 rm -f conftest.$ac_objext conftest$ac_exeext
10574 if { (ac_try="$ac_link"
10575 case "(($ac_try" in
10576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577 *) ac_try_echo=$ac_try;;
10578 esac
10579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10580 $as_echo "$ac_try_echo") >&5
10581 (eval "$ac_link") 2>conftest.er1
10582 ac_status=$?
10583 grep -v '^ *+' conftest.er1 >conftest.err
10584 rm -f conftest.er1
10585 cat conftest.err >&5
10586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } && {
10588 test -z "$ac_c_werror_flag" ||
10589 test ! -s conftest.err
10590 } && test -s conftest$ac_exeext && {
10591 test "$cross_compiling" = yes ||
10592 $as_test_x conftest$ac_exeext
10593 }; then
10594 eval "$as_ac_var=yes"
10595 else
10596 $as_echo "$as_me: failed program was:" >&5
10597 sed 's/^/| /' conftest.$ac_ext >&5
10598
10599 eval "$as_ac_var=no"
10600 fi
10601
10602 rm -rf conftest.dSYM
10603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10604 conftest$ac_exeext conftest.$ac_ext
10605 fi
10606 ac_res=`eval 'as_val=${'$as_ac_var'}
10607 $as_echo "$as_val"'`
10608 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10609 $as_echo "$ac_res" >&6; }
10610 if test `eval 'as_val=${'$as_ac_var'}
10611 $as_echo "$as_val"'` = yes; then
10612 cat >>confdefs.h <<_ACEOF
10613 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10614 _ACEOF
10615
10616 fi
10617 done
10618
10619 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10620 $as_echo_n "checking for working mmap... " >&6; }
10621 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10622 $as_echo_n "(cached) " >&6
10623 else
10624 if test "$cross_compiling" = yes; then
10625 ac_cv_func_mmap_fixed_mapped=no
10626 else
10627 cat >conftest.$ac_ext <<_ACEOF
10628 /* confdefs.h. */
10629 _ACEOF
10630 cat confdefs.h >>conftest.$ac_ext
10631 cat >>conftest.$ac_ext <<_ACEOF
10632 /* end confdefs.h. */
10633 $ac_includes_default
10634 /* malloc might have been renamed as rpl_malloc. */
10635 #undef malloc
10636
10637 /* Thanks to Mike Haertel and Jim Avera for this test.
10638 Here is a matrix of mmap possibilities:
10639 mmap private not fixed
10640 mmap private fixed at somewhere currently unmapped
10641 mmap private fixed at somewhere already mapped
10642 mmap shared not fixed
10643 mmap shared fixed at somewhere currently unmapped
10644 mmap shared fixed at somewhere already mapped
10645 For private mappings, we should verify that changes cannot be read()
10646 back from the file, nor mmap's back from the file at a different
10647 address. (There have been systems where private was not correctly
10648 implemented like the infamous i386 svr4.0, and systems where the
10649 VM page cache was not coherent with the file system buffer cache
10650 like early versions of FreeBSD and possibly contemporary NetBSD.)
10651 For shared mappings, we should conversely verify that changes get
10652 propagated back to all the places they're supposed to be.
10653
10654 Grep wants private fixed already mapped.
10655 The main things grep needs to know about mmap are:
10656 * does it exist and is it safe to write into the mmap'd area
10657 * how to use it (BSD variants) */
10658
10659 #include <fcntl.h>
10660 #include <sys/mman.h>
10661
10662 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10663 char *malloc ();
10664 #endif
10665
10666 /* This mess was copied from the GNU getpagesize.h. */
10667 #ifndef HAVE_GETPAGESIZE
10668 /* Assume that all systems that can run configure have sys/param.h. */
10669 # ifndef HAVE_SYS_PARAM_H
10670 # define HAVE_SYS_PARAM_H 1
10671 # endif
10672
10673 # ifdef _SC_PAGESIZE
10674 # define getpagesize() sysconf(_SC_PAGESIZE)
10675 # else /* no _SC_PAGESIZE */
10676 # ifdef HAVE_SYS_PARAM_H
10677 # include <sys/param.h>
10678 # ifdef EXEC_PAGESIZE
10679 # define getpagesize() EXEC_PAGESIZE
10680 # else /* no EXEC_PAGESIZE */
10681 # ifdef NBPG
10682 # define getpagesize() NBPG * CLSIZE
10683 # ifndef CLSIZE
10684 # define CLSIZE 1
10685 # endif /* no CLSIZE */
10686 # else /* no NBPG */
10687 # ifdef NBPC
10688 # define getpagesize() NBPC
10689 # else /* no NBPC */
10690 # ifdef PAGESIZE
10691 # define getpagesize() PAGESIZE
10692 # endif /* PAGESIZE */
10693 # endif /* no NBPC */
10694 # endif /* no NBPG */
10695 # endif /* no EXEC_PAGESIZE */
10696 # else /* no HAVE_SYS_PARAM_H */
10697 # define getpagesize() 8192 /* punt totally */
10698 # endif /* no HAVE_SYS_PARAM_H */
10699 # endif /* no _SC_PAGESIZE */
10700
10701 #endif /* no HAVE_GETPAGESIZE */
10702
10703 int
10704 main ()
10705 {
10706 char *data, *data2, *data3;
10707 int i, pagesize;
10708 int fd;
10709
10710 pagesize = getpagesize ();
10711
10712 /* First, make a file with some known garbage in it. */
10713 data = (char *) malloc (pagesize);
10714 if (!data)
10715 return 1;
10716 for (i = 0; i < pagesize; ++i)
10717 *(data + i) = rand ();
10718 umask (0);
10719 fd = creat ("conftest.mmap", 0600);
10720 if (fd < 0)
10721 return 1;
10722 if (write (fd, data, pagesize) != pagesize)
10723 return 1;
10724 close (fd);
10725
10726 /* Next, try to mmap the file at a fixed address which already has
10727 something else allocated at it. If we can, also make sure that
10728 we see the same garbage. */
10729 fd = open ("conftest.mmap", O_RDWR);
10730 if (fd < 0)
10731 return 1;
10732 data2 = (char *) malloc (2 * pagesize);
10733 if (!data2)
10734 return 1;
10735 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10736 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10737 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10738 return 1;
10739 for (i = 0; i < pagesize; ++i)
10740 if (*(data + i) != *(data2 + i))
10741 return 1;
10742
10743 /* Finally, make sure that changes to the mapped area do not
10744 percolate back to the file as seen by read(). (This is a bug on
10745 some variants of i386 svr4.0.) */
10746 for (i = 0; i < pagesize; ++i)
10747 *(data2 + i) = *(data2 + i) + 1;
10748 data3 = (char *) malloc (pagesize);
10749 if (!data3)
10750 return 1;
10751 if (read (fd, data3, pagesize) != pagesize)
10752 return 1;
10753 for (i = 0; i < pagesize; ++i)
10754 if (*(data + i) != *(data3 + i))
10755 return 1;
10756 close (fd);
10757 return 0;
10758 }
10759 _ACEOF
10760 rm -f conftest$ac_exeext
10761 if { (ac_try="$ac_link"
10762 case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10765 esac
10766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10767 $as_echo "$ac_try_echo") >&5
10768 (eval "$ac_link") 2>&5
10769 ac_status=$?
10770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10772 { (case "(($ac_try" in
10773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774 *) ac_try_echo=$ac_try;;
10775 esac
10776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10777 $as_echo "$ac_try_echo") >&5
10778 (eval "$ac_try") 2>&5
10779 ac_status=$?
10780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; }; then
10782 ac_cv_func_mmap_fixed_mapped=yes
10783 else
10784 $as_echo "$as_me: program exited with status $ac_status" >&5
10785 $as_echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10787
10788 ( exit $ac_status )
10789 ac_cv_func_mmap_fixed_mapped=no
10790 fi
10791 rm -rf conftest.dSYM
10792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10793 fi
10794
10795
10796 fi
10797 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10798 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10799 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10800
10801 cat >>confdefs.h <<\_ACEOF
10802 #define HAVE_MMAP 1
10803 _ACEOF
10804
10805 fi
10806 rm -f conftest.mmap
10807
10808 if test $use_mmap_for_buffers = yes; then
10809 REL_ALLOC=no
10810 fi
10811
10812 LIBS="$libsrc_libs $LIBS"
10813
10814
10815 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10816 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10817 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10818 $as_echo_n "(cached) " >&6
10819 else
10820 ac_check_lib_save_LIBS=$LIBS
10821 LIBS="-ldnet $LIBS"
10822 cat >conftest.$ac_ext <<_ACEOF
10823 /* confdefs.h. */
10824 _ACEOF
10825 cat confdefs.h >>conftest.$ac_ext
10826 cat >>conftest.$ac_ext <<_ACEOF
10827 /* end confdefs.h. */
10828
10829 /* Override any GCC internal prototype to avoid an error.
10830 Use char because int might match the return type of a GCC
10831 builtin and then its argument prototype would still apply. */
10832 #ifdef __cplusplus
10833 extern "C"
10834 #endif
10835 char dnet_ntoa ();
10836 int
10837 main ()
10838 {
10839 return dnet_ntoa ();
10840 ;
10841 return 0;
10842 }
10843 _ACEOF
10844 rm -f conftest.$ac_objext conftest$ac_exeext
10845 if { (ac_try="$ac_link"
10846 case "(($ac_try" in
10847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10848 *) ac_try_echo=$ac_try;;
10849 esac
10850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10851 $as_echo "$ac_try_echo") >&5
10852 (eval "$ac_link") 2>conftest.er1
10853 ac_status=$?
10854 grep -v '^ *+' conftest.er1 >conftest.err
10855 rm -f conftest.er1
10856 cat conftest.err >&5
10857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); } && {
10859 test -z "$ac_c_werror_flag" ||
10860 test ! -s conftest.err
10861 } && test -s conftest$ac_exeext && {
10862 test "$cross_compiling" = yes ||
10863 $as_test_x conftest$ac_exeext
10864 }; then
10865 ac_cv_lib_dnet_dnet_ntoa=yes
10866 else
10867 $as_echo "$as_me: failed program was:" >&5
10868 sed 's/^/| /' conftest.$ac_ext >&5
10869
10870 ac_cv_lib_dnet_dnet_ntoa=no
10871 fi
10872
10873 rm -rf conftest.dSYM
10874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10875 conftest$ac_exeext conftest.$ac_ext
10876 LIBS=$ac_check_lib_save_LIBS
10877 fi
10878 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10879 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10880 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10881 cat >>confdefs.h <<_ACEOF
10882 #define HAVE_LIBDNET 1
10883 _ACEOF
10884
10885 LIBS="-ldnet $LIBS"
10886
10887 fi
10888
10889
10890 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10891 $as_echo_n "checking for main in -lXbsd... " >&6; }
10892 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10893 $as_echo_n "(cached) " >&6
10894 else
10895 ac_check_lib_save_LIBS=$LIBS
10896 LIBS="-lXbsd $LIBS"
10897 cat >conftest.$ac_ext <<_ACEOF
10898 /* confdefs.h. */
10899 _ACEOF
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h. */
10903
10904
10905 int
10906 main ()
10907 {
10908 return main ();
10909 ;
10910 return 0;
10911 }
10912 _ACEOF
10913 rm -f conftest.$ac_objext conftest$ac_exeext
10914 if { (ac_try="$ac_link"
10915 case "(($ac_try" in
10916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10917 *) ac_try_echo=$ac_try;;
10918 esac
10919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10920 $as_echo "$ac_try_echo") >&5
10921 (eval "$ac_link") 2>conftest.er1
10922 ac_status=$?
10923 grep -v '^ *+' conftest.er1 >conftest.err
10924 rm -f conftest.er1
10925 cat conftest.err >&5
10926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); } && {
10928 test -z "$ac_c_werror_flag" ||
10929 test ! -s conftest.err
10930 } && test -s conftest$ac_exeext && {
10931 test "$cross_compiling" = yes ||
10932 $as_test_x conftest$ac_exeext
10933 }; then
10934 ac_cv_lib_Xbsd_main=yes
10935 else
10936 $as_echo "$as_me: failed program was:" >&5
10937 sed 's/^/| /' conftest.$ac_ext >&5
10938
10939 ac_cv_lib_Xbsd_main=no
10940 fi
10941
10942 rm -rf conftest.dSYM
10943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10944 conftest$ac_exeext conftest.$ac_ext
10945 LIBS=$ac_check_lib_save_LIBS
10946 fi
10947 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10948 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10949 if test $ac_cv_lib_Xbsd_main = yes; then
10950 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10951 fi
10952
10953
10954
10955 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10956 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10957 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10958 $as_echo_n "(cached) " >&6
10959 else
10960 ac_check_lib_save_LIBS=$LIBS
10961 LIBS="-lpthreads $LIBS"
10962 cat >conftest.$ac_ext <<_ACEOF
10963 /* confdefs.h. */
10964 _ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10968
10969 /* Override any GCC internal prototype to avoid an error.
10970 Use char because int might match the return type of a GCC
10971 builtin and then its argument prototype would still apply. */
10972 #ifdef __cplusplus
10973 extern "C"
10974 #endif
10975 char cma_open ();
10976 int
10977 main ()
10978 {
10979 return cma_open ();
10980 ;
10981 return 0;
10982 }
10983 _ACEOF
10984 rm -f conftest.$ac_objext conftest$ac_exeext
10985 if { (ac_try="$ac_link"
10986 case "(($ac_try" in
10987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988 *) ac_try_echo=$ac_try;;
10989 esac
10990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10991 $as_echo "$ac_try_echo") >&5
10992 (eval "$ac_link") 2>conftest.er1
10993 ac_status=$?
10994 grep -v '^ *+' conftest.er1 >conftest.err
10995 rm -f conftest.er1
10996 cat conftest.err >&5
10997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } && {
10999 test -z "$ac_c_werror_flag" ||
11000 test ! -s conftest.err
11001 } && test -s conftest$ac_exeext && {
11002 test "$cross_compiling" = yes ||
11003 $as_test_x conftest$ac_exeext
11004 }; then
11005 ac_cv_lib_pthreads_cma_open=yes
11006 else
11007 $as_echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11009
11010 ac_cv_lib_pthreads_cma_open=no
11011 fi
11012
11013 rm -rf conftest.dSYM
11014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11015 conftest$ac_exeext conftest.$ac_ext
11016 LIBS=$ac_check_lib_save_LIBS
11017 fi
11018 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11019 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11020 if test $ac_cv_lib_pthreads_cma_open = yes; then
11021 cat >>confdefs.h <<_ACEOF
11022 #define HAVE_LIBPTHREADS 1
11023 _ACEOF
11024
11025 LIBS="-lpthreads $LIBS"
11026
11027 fi
11028
11029
11030
11031 case ${host_os} in
11032 aix*)
11033 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11034 $as_echo_n "checking for -bbigtoc option... " >&6; }
11035 if test "${gdb_cv_bigtoc+set}" = set; then
11036 $as_echo_n "(cached) " >&6
11037 else
11038
11039 case $GCC in
11040 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11041 *) gdb_cv_bigtoc=-bbigtoc ;;
11042 esac
11043
11044 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11045 cat >conftest.$ac_ext <<_ACEOF
11046 /* confdefs.h. */
11047 _ACEOF
11048 cat confdefs.h >>conftest.$ac_ext
11049 cat >>conftest.$ac_ext <<_ACEOF
11050 /* end confdefs.h. */
11051
11052 int
11053 main ()
11054 {
11055 int i;
11056 ;
11057 return 0;
11058 }
11059 _ACEOF
11060 rm -f conftest.$ac_objext conftest$ac_exeext
11061 if { (ac_try="$ac_link"
11062 case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11065 esac
11066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11067 $as_echo "$ac_try_echo") >&5
11068 (eval "$ac_link") 2>conftest.er1
11069 ac_status=$?
11070 grep -v '^ *+' conftest.er1 >conftest.err
11071 rm -f conftest.er1
11072 cat conftest.err >&5
11073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } && {
11075 test -z "$ac_c_werror_flag" ||
11076 test ! -s conftest.err
11077 } && test -s conftest$ac_exeext && {
11078 test "$cross_compiling" = yes ||
11079 $as_test_x conftest$ac_exeext
11080 }; then
11081 :
11082 else
11083 $as_echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11085
11086 gdb_cv_bigtoc=
11087 fi
11088
11089 rm -rf conftest.dSYM
11090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11091 conftest$ac_exeext conftest.$ac_ext
11092
11093 fi
11094 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11095 $as_echo "$gdb_cv_bigtoc" >&6; }
11096 ;;
11097 esac
11098
11099 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11100 # used for the tests that follow. We set them back to REAL_CFLAGS and
11101 # REAL_CPPFLAGS later on.
11102
11103 REAL_CPPFLAGS="$CPPFLAGS"
11104
11105 if test "${HAVE_X11}" = "yes"; then
11106 DEFS="$C_SWITCH_X_SITE $DEFS"
11107 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11108 LIBS="$LIBX $LIBS"
11109 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11110 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11111
11112 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11113 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11114 # but it's more convenient here to set LD_RUN_PATH
11115 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11116 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11117 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11118 export LD_RUN_PATH
11119 fi
11120
11121 if test "${opsys}" = "gnu-linux"; then
11122 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11123 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11124 cat >conftest.$ac_ext <<_ACEOF
11125 /* confdefs.h. */
11126 _ACEOF
11127 cat confdefs.h >>conftest.$ac_ext
11128 cat >>conftest.$ac_ext <<_ACEOF
11129 /* end confdefs.h. */
11130
11131 int
11132 main ()
11133 {
11134 XOpenDisplay ("foo");
11135 ;
11136 return 0;
11137 }
11138 _ACEOF
11139 rm -f conftest.$ac_objext conftest$ac_exeext
11140 if { (ac_try="$ac_link"
11141 case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11144 esac
11145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11146 $as_echo "$ac_try_echo") >&5
11147 (eval "$ac_link") 2>conftest.er1
11148 ac_status=$?
11149 grep -v '^ *+' conftest.er1 >conftest.err
11150 rm -f conftest.er1
11151 cat conftest.err >&5
11152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } && {
11154 test -z "$ac_c_werror_flag" ||
11155 test ! -s conftest.err
11156 } && test -s conftest$ac_exeext && {
11157 test "$cross_compiling" = yes ||
11158 $as_test_x conftest$ac_exeext
11159 }; then
11160 xlinux_first_failure=no
11161 else
11162 $as_echo "$as_me: failed program was:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11164
11165 xlinux_first_failure=yes
11166 fi
11167
11168 rm -rf conftest.dSYM
11169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11170 conftest$ac_exeext conftest.$ac_ext
11171 if test "${xlinux_first_failure}" = "yes"; then
11172 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11173 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11174 OLD_CPPFLAGS="$CPPFLAGS"
11175 OLD_LIBS="$LIBS"
11176 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11177 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11178 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11179 LIBS="$LIBS -b i486-linuxaout"
11180 cat >conftest.$ac_ext <<_ACEOF
11181 /* confdefs.h. */
11182 _ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h. */
11186
11187 int
11188 main ()
11189 {
11190 XOpenDisplay ("foo");
11191 ;
11192 return 0;
11193 }
11194 _ACEOF
11195 rm -f conftest.$ac_objext conftest$ac_exeext
11196 if { (ac_try="$ac_link"
11197 case "(($ac_try" in
11198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199 *) ac_try_echo=$ac_try;;
11200 esac
11201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11202 $as_echo "$ac_try_echo") >&5
11203 (eval "$ac_link") 2>conftest.er1
11204 ac_status=$?
11205 grep -v '^ *+' conftest.er1 >conftest.err
11206 rm -f conftest.er1
11207 cat conftest.err >&5
11208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } && {
11210 test -z "$ac_c_werror_flag" ||
11211 test ! -s conftest.err
11212 } && test -s conftest$ac_exeext && {
11213 test "$cross_compiling" = yes ||
11214 $as_test_x conftest$ac_exeext
11215 }; then
11216 xlinux_second_failure=no
11217 else
11218 $as_echo "$as_me: failed program was:" >&5
11219 sed 's/^/| /' conftest.$ac_ext >&5
11220
11221 xlinux_second_failure=yes
11222 fi
11223
11224 rm -rf conftest.dSYM
11225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11226 conftest$ac_exeext conftest.$ac_ext
11227 if test "${xlinux_second_failure}" = "yes"; then
11228 # If we get the same failure with -b, there is no use adding -b.
11229 # So take it out. This plays safe.
11230 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11231 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11232 CPPFLAGS="$OLD_CPPFLAGS"
11233 LIBS="$OLD_LIBS"
11234 { $as_echo "$as_me:$LINENO: result: no" >&5
11235 $as_echo "no" >&6; }
11236 else
11237 { $as_echo "$as_me:$LINENO: result: yes" >&5
11238 $as_echo "yes" >&6; }
11239 fi
11240 else
11241 { $as_echo "$as_me:$LINENO: result: no" >&5
11242 $as_echo "no" >&6; }
11243 fi
11244 fi
11245
11246 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11247 # header files included from there.
11248 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11249 $as_echo_n "checking for Xkb... " >&6; }
11250 cat >conftest.$ac_ext <<_ACEOF
11251 /* confdefs.h. */
11252 _ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h. */
11256 #include <X11/Xlib.h>
11257 #include <X11/XKBlib.h>
11258 int
11259 main ()
11260 {
11261 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11262 ;
11263 return 0;
11264 }
11265 _ACEOF
11266 rm -f conftest.$ac_objext conftest$ac_exeext
11267 if { (ac_try="$ac_link"
11268 case "(($ac_try" in
11269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11270 *) ac_try_echo=$ac_try;;
11271 esac
11272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11273 $as_echo "$ac_try_echo") >&5
11274 (eval "$ac_link") 2>conftest.er1
11275 ac_status=$?
11276 grep -v '^ *+' conftest.er1 >conftest.err
11277 rm -f conftest.er1
11278 cat conftest.err >&5
11279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } && {
11281 test -z "$ac_c_werror_flag" ||
11282 test ! -s conftest.err
11283 } && test -s conftest$ac_exeext && {
11284 test "$cross_compiling" = yes ||
11285 $as_test_x conftest$ac_exeext
11286 }; then
11287 emacs_xkb=yes
11288 else
11289 $as_echo "$as_me: failed program was:" >&5
11290 sed 's/^/| /' conftest.$ac_ext >&5
11291
11292 emacs_xkb=no
11293 fi
11294
11295 rm -rf conftest.dSYM
11296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11297 conftest$ac_exeext conftest.$ac_ext
11298 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11299 $as_echo "$emacs_xkb" >&6; }
11300 if test $emacs_xkb = yes; then
11301
11302 cat >>confdefs.h <<\_ACEOF
11303 #define HAVE_XKBGETKEYBOARD 1
11304 _ACEOF
11305
11306 fi
11307
11308
11309
11310
11311
11312 for ac_func in XrmSetDatabase XScreenResourceString \
11313 XScreenNumberOfScreen XSetWMProtocols
11314 do
11315 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11316 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11317 $as_echo_n "checking for $ac_func... " >&6; }
11318 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11319 $as_echo_n "(cached) " >&6
11320 else
11321 cat >conftest.$ac_ext <<_ACEOF
11322 /* confdefs.h. */
11323 _ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h. */
11327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11329 #define $ac_func innocuous_$ac_func
11330
11331 /* System header to define __stub macros and hopefully few prototypes,
11332 which can conflict with char $ac_func (); below.
11333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11334 <limits.h> exists even on freestanding compilers. */
11335
11336 #ifdef __STDC__
11337 # include <limits.h>
11338 #else
11339 # include <assert.h>
11340 #endif
11341
11342 #undef $ac_func
11343
11344 /* Override any GCC internal prototype to avoid an error.
11345 Use char because int might match the return type of a GCC
11346 builtin and then its argument prototype would still apply. */
11347 #ifdef __cplusplus
11348 extern "C"
11349 #endif
11350 char $ac_func ();
11351 /* The GNU C library defines this for functions which it implements
11352 to always fail with ENOSYS. Some functions are actually named
11353 something starting with __ and the normal name is an alias. */
11354 #if defined __stub_$ac_func || defined __stub___$ac_func
11355 choke me
11356 #endif
11357
11358 int
11359 main ()
11360 {
11361 return $ac_func ();
11362 ;
11363 return 0;
11364 }
11365 _ACEOF
11366 rm -f conftest.$ac_objext conftest$ac_exeext
11367 if { (ac_try="$ac_link"
11368 case "(($ac_try" in
11369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370 *) ac_try_echo=$ac_try;;
11371 esac
11372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11373 $as_echo "$ac_try_echo") >&5
11374 (eval "$ac_link") 2>conftest.er1
11375 ac_status=$?
11376 grep -v '^ *+' conftest.er1 >conftest.err
11377 rm -f conftest.er1
11378 cat conftest.err >&5
11379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); } && {
11381 test -z "$ac_c_werror_flag" ||
11382 test ! -s conftest.err
11383 } && test -s conftest$ac_exeext && {
11384 test "$cross_compiling" = yes ||
11385 $as_test_x conftest$ac_exeext
11386 }; then
11387 eval "$as_ac_var=yes"
11388 else
11389 $as_echo "$as_me: failed program was:" >&5
11390 sed 's/^/| /' conftest.$ac_ext >&5
11391
11392 eval "$as_ac_var=no"
11393 fi
11394
11395 rm -rf conftest.dSYM
11396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11397 conftest$ac_exeext conftest.$ac_ext
11398 fi
11399 ac_res=`eval 'as_val=${'$as_ac_var'}
11400 $as_echo "$as_val"'`
11401 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11402 $as_echo "$ac_res" >&6; }
11403 if test `eval 'as_val=${'$as_ac_var'}
11404 $as_echo "$as_val"'` = yes; then
11405 cat >>confdefs.h <<_ACEOF
11406 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11407 _ACEOF
11408
11409 fi
11410 done
11411
11412 fi
11413
11414 if test "${window_system}" = "x11"; then
11415 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11416 $as_echo_n "checking X11 version 6... " >&6; }
11417 if test "${emacs_cv_x11_version_6+set}" = set; then
11418 $as_echo_n "(cached) " >&6
11419 else
11420 cat >conftest.$ac_ext <<_ACEOF
11421 /* confdefs.h. */
11422 _ACEOF
11423 cat confdefs.h >>conftest.$ac_ext
11424 cat >>conftest.$ac_ext <<_ACEOF
11425 /* end confdefs.h. */
11426 #include <X11/Xlib.h>
11427 int
11428 main ()
11429 {
11430 #if XlibSpecificationRelease < 6
11431 fail;
11432 #endif
11433
11434 ;
11435 return 0;
11436 }
11437 _ACEOF
11438 rm -f conftest.$ac_objext conftest$ac_exeext
11439 if { (ac_try="$ac_link"
11440 case "(($ac_try" in
11441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442 *) ac_try_echo=$ac_try;;
11443 esac
11444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11445 $as_echo "$ac_try_echo") >&5
11446 (eval "$ac_link") 2>conftest.er1
11447 ac_status=$?
11448 grep -v '^ *+' conftest.er1 >conftest.err
11449 rm -f conftest.er1
11450 cat conftest.err >&5
11451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); } && {
11453 test -z "$ac_c_werror_flag" ||
11454 test ! -s conftest.err
11455 } && test -s conftest$ac_exeext && {
11456 test "$cross_compiling" = yes ||
11457 $as_test_x conftest$ac_exeext
11458 }; then
11459 emacs_cv_x11_version_6=yes
11460 else
11461 $as_echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11463
11464 emacs_cv_x11_version_6=no
11465 fi
11466
11467 rm -rf conftest.dSYM
11468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11469 conftest$ac_exeext conftest.$ac_ext
11470 fi
11471
11472 if test $emacs_cv_x11_version_6 = yes; then
11473 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11474 $as_echo "6 or newer" >&6; }
11475
11476 cat >>confdefs.h <<\_ACEOF
11477 #define HAVE_X11R6 1
11478 _ACEOF
11479
11480 else
11481 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11482 $as_echo "before 6" >&6; }
11483 fi
11484 fi
11485
11486
11487 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11488 HAVE_RSVG=no
11489 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11490 if test "${with_rsvg}" != "no"; then
11491 RSVG_REQUIRED=2.11.0
11492 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11493
11494
11495 succeeded=no
11496
11497 # Extract the first word of "pkg-config", so it can be a program name with args.
11498 set dummy pkg-config; ac_word=$2
11499 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11500 $as_echo_n "checking for $ac_word... " >&6; }
11501 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11502 $as_echo_n "(cached) " >&6
11503 else
11504 case $PKG_CONFIG in
11505 [\\/]* | ?:[\\/]*)
11506 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11507 ;;
11508 *)
11509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11510 for as_dir in $PATH
11511 do
11512 IFS=$as_save_IFS
11513 test -z "$as_dir" && as_dir=.
11514 for ac_exec_ext in '' $ac_executable_extensions; do
11515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11516 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11517 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11518 break 2
11519 fi
11520 done
11521 done
11522 IFS=$as_save_IFS
11523
11524 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11525 ;;
11526 esac
11527 fi
11528 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11529 if test -n "$PKG_CONFIG"; then
11530 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11531 $as_echo "$PKG_CONFIG" >&6; }
11532 else
11533 { $as_echo "$as_me:$LINENO: result: no" >&5
11534 $as_echo "no" >&6; }
11535 fi
11536
11537
11538
11539 if test "$PKG_CONFIG" = "no" ; then
11540 :
11541 else
11542 PKG_CONFIG_MIN_VERSION=0.9.0
11543 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11544 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11545 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11546
11547 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11548 { $as_echo "$as_me:$LINENO: result: yes" >&5
11549 $as_echo "yes" >&6; }
11550 succeeded=yes
11551
11552 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11553 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11554 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11555 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11556 $as_echo "$RSVG_CFLAGS" >&6; }
11557
11558 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11559 $as_echo_n "checking RSVG_LIBS... " >&6; }
11560 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11561 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11562 $as_echo "$RSVG_LIBS" >&6; }
11563 else
11564 { $as_echo "$as_me:$LINENO: result: no" >&5
11565 $as_echo "no" >&6; }
11566 RSVG_CFLAGS=""
11567 RSVG_LIBS=""
11568 ## If we have a custom action on failure, don't print errors, but
11569 ## do set a variable so people can do so.
11570 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11571
11572 fi
11573
11574
11575
11576 else
11577 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11578 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11579 fi
11580 fi
11581
11582 if test $succeeded = yes; then
11583 :
11584 else
11585 :
11586 fi
11587
11588
11589
11590
11591 if test ".${RSVG_CFLAGS}" != "."; then
11592 HAVE_RSVG=yes
11593
11594 cat >>confdefs.h <<\_ACEOF
11595 #define HAVE_RSVG 1
11596 _ACEOF
11597
11598 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11599 LIBS="$RSVG_LIBS $LIBS"
11600 fi
11601 fi
11602 fi
11603
11604
11605 HAVE_GTK=no
11606 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11607 GLIB_REQUIRED=2.6
11608 GTK_REQUIRED=2.6
11609 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11610
11611
11612 succeeded=no
11613
11614 # Extract the first word of "pkg-config", so it can be a program name with args.
11615 set dummy pkg-config; ac_word=$2
11616 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11617 $as_echo_n "checking for $ac_word... " >&6; }
11618 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11619 $as_echo_n "(cached) " >&6
11620 else
11621 case $PKG_CONFIG in
11622 [\\/]* | ?:[\\/]*)
11623 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11624 ;;
11625 *)
11626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11627 for as_dir in $PATH
11628 do
11629 IFS=$as_save_IFS
11630 test -z "$as_dir" && as_dir=.
11631 for ac_exec_ext in '' $ac_executable_extensions; do
11632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11633 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11634 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11635 break 2
11636 fi
11637 done
11638 done
11639 IFS=$as_save_IFS
11640
11641 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11642 ;;
11643 esac
11644 fi
11645 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11646 if test -n "$PKG_CONFIG"; then
11647 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11648 $as_echo "$PKG_CONFIG" >&6; }
11649 else
11650 { $as_echo "$as_me:$LINENO: result: no" >&5
11651 $as_echo "no" >&6; }
11652 fi
11653
11654
11655
11656 if test "$PKG_CONFIG" = "no" ; then
11657 pkg_check_gtk=no
11658 else
11659 PKG_CONFIG_MIN_VERSION=0.9.0
11660 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11661 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11662 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11663
11664 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11665 { $as_echo "$as_me:$LINENO: result: yes" >&5
11666 $as_echo "yes" >&6; }
11667 succeeded=yes
11668
11669 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11670 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11671 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11672 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11673 $as_echo "$GTK_CFLAGS" >&6; }
11674
11675 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11676 $as_echo_n "checking GTK_LIBS... " >&6; }
11677 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11678 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11679 $as_echo "$GTK_LIBS" >&6; }
11680 else
11681 { $as_echo "$as_me:$LINENO: result: no" >&5
11682 $as_echo "no" >&6; }
11683 GTK_CFLAGS=""
11684 GTK_LIBS=""
11685 ## If we have a custom action on failure, don't print errors, but
11686 ## do set a variable so people can do so.
11687 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11688
11689 fi
11690
11691
11692
11693 else
11694 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11695 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11696 fi
11697 fi
11698
11699 if test $succeeded = yes; then
11700 pkg_check_gtk=yes
11701 else
11702 pkg_check_gtk=no
11703 fi
11704
11705 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11706 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11707 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11708 { (exit 1); exit 1; }; }
11709 fi
11710 fi
11711
11712
11713 GTK_OBJ=
11714 if test x"$pkg_check_gtk" = xyes; then
11715
11716
11717
11718 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11719 CFLAGS="$CFLAGS $GTK_CFLAGS"
11720 LIBS="$GTK_LIBS $LIBS"
11721 GTK_COMPILES=no
11722
11723 for ac_func in gtk_main
11724 do
11725 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11726 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11727 $as_echo_n "checking for $ac_func... " >&6; }
11728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11729 $as_echo_n "(cached) " >&6
11730 else
11731 cat >conftest.$ac_ext <<_ACEOF
11732 /* confdefs.h. */
11733 _ACEOF
11734 cat confdefs.h >>conftest.$ac_ext
11735 cat >>conftest.$ac_ext <<_ACEOF
11736 /* end confdefs.h. */
11737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11739 #define $ac_func innocuous_$ac_func
11740
11741 /* System header to define __stub macros and hopefully few prototypes,
11742 which can conflict with char $ac_func (); below.
11743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11744 <limits.h> exists even on freestanding compilers. */
11745
11746 #ifdef __STDC__
11747 # include <limits.h>
11748 #else
11749 # include <assert.h>
11750 #endif
11751
11752 #undef $ac_func
11753
11754 /* Override any GCC internal prototype to avoid an error.
11755 Use char because int might match the return type of a GCC
11756 builtin and then its argument prototype would still apply. */
11757 #ifdef __cplusplus
11758 extern "C"
11759 #endif
11760 char $ac_func ();
11761 /* The GNU C library defines this for functions which it implements
11762 to always fail with ENOSYS. Some functions are actually named
11763 something starting with __ and the normal name is an alias. */
11764 #if defined __stub_$ac_func || defined __stub___$ac_func
11765 choke me
11766 #endif
11767
11768 int
11769 main ()
11770 {
11771 return $ac_func ();
11772 ;
11773 return 0;
11774 }
11775 _ACEOF
11776 rm -f conftest.$ac_objext conftest$ac_exeext
11777 if { (ac_try="$ac_link"
11778 case "(($ac_try" in
11779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11780 *) ac_try_echo=$ac_try;;
11781 esac
11782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11783 $as_echo "$ac_try_echo") >&5
11784 (eval "$ac_link") 2>conftest.er1
11785 ac_status=$?
11786 grep -v '^ *+' conftest.er1 >conftest.err
11787 rm -f conftest.er1
11788 cat conftest.err >&5
11789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } && {
11791 test -z "$ac_c_werror_flag" ||
11792 test ! -s conftest.err
11793 } && test -s conftest$ac_exeext && {
11794 test "$cross_compiling" = yes ||
11795 $as_test_x conftest$ac_exeext
11796 }; then
11797 eval "$as_ac_var=yes"
11798 else
11799 $as_echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11801
11802 eval "$as_ac_var=no"
11803 fi
11804
11805 rm -rf conftest.dSYM
11806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11807 conftest$ac_exeext conftest.$ac_ext
11808 fi
11809 ac_res=`eval 'as_val=${'$as_ac_var'}
11810 $as_echo "$as_val"'`
11811 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11812 $as_echo "$ac_res" >&6; }
11813 if test `eval 'as_val=${'$as_ac_var'}
11814 $as_echo "$as_val"'` = yes; then
11815 cat >>confdefs.h <<_ACEOF
11816 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11817 _ACEOF
11818 GTK_COMPILES=yes
11819 fi
11820 done
11821
11822 if test "${GTK_COMPILES}" != "yes"; then
11823 if test "$USE_X_TOOLKIT" != "maybe"; then
11824 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11825 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11826 { (exit 1); exit 1; }; };
11827 fi
11828 else
11829 HAVE_GTK=yes
11830
11831 cat >>confdefs.h <<\_ACEOF
11832 #define USE_GTK 1
11833 _ACEOF
11834
11835 GTK_OBJ=gtkutil.o
11836 USE_X_TOOLKIT=none
11837 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11838 :
11839 else
11840 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11841 closing open displays. This is no problem if you just use
11842 one display, but if you use more than one and close one of them
11843 Emacs may crash." >&5
11844 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11845 closing open displays. This is no problem if you just use
11846 one display, but if you use more than one and close one of them
11847 Emacs may crash." >&2;}
11848 sleep 3
11849 fi
11850 fi
11851
11852 fi
11853
11854
11855
11856 if test "${HAVE_GTK}" = "yes"; then
11857
11858 if test "$with_toolkit_scroll_bars" != no; then
11859 with_toolkit_scroll_bars=yes
11860 fi
11861
11862 HAVE_GTK_MULTIDISPLAY=no
11863
11864 for ac_func in gdk_display_open
11865 do
11866 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11867 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11868 $as_echo_n "checking for $ac_func... " >&6; }
11869 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11870 $as_echo_n "(cached) " >&6
11871 else
11872 cat >conftest.$ac_ext <<_ACEOF
11873 /* confdefs.h. */
11874 _ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h. */
11878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11880 #define $ac_func innocuous_$ac_func
11881
11882 /* System header to define __stub macros and hopefully few prototypes,
11883 which can conflict with char $ac_func (); below.
11884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11885 <limits.h> exists even on freestanding compilers. */
11886
11887 #ifdef __STDC__
11888 # include <limits.h>
11889 #else
11890 # include <assert.h>
11891 #endif
11892
11893 #undef $ac_func
11894
11895 /* Override any GCC internal prototype to avoid an error.
11896 Use char because int might match the return type of a GCC
11897 builtin and then its argument prototype would still apply. */
11898 #ifdef __cplusplus
11899 extern "C"
11900 #endif
11901 char $ac_func ();
11902 /* The GNU C library defines this for functions which it implements
11903 to always fail with ENOSYS. Some functions are actually named
11904 something starting with __ and the normal name is an alias. */
11905 #if defined __stub_$ac_func || defined __stub___$ac_func
11906 choke me
11907 #endif
11908
11909 int
11910 main ()
11911 {
11912 return $ac_func ();
11913 ;
11914 return 0;
11915 }
11916 _ACEOF
11917 rm -f conftest.$ac_objext conftest$ac_exeext
11918 if { (ac_try="$ac_link"
11919 case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11922 esac
11923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11924 $as_echo "$ac_try_echo") >&5
11925 (eval "$ac_link") 2>conftest.er1
11926 ac_status=$?
11927 grep -v '^ *+' conftest.er1 >conftest.err
11928 rm -f conftest.er1
11929 cat conftest.err >&5
11930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } && {
11932 test -z "$ac_c_werror_flag" ||
11933 test ! -s conftest.err
11934 } && test -s conftest$ac_exeext && {
11935 test "$cross_compiling" = yes ||
11936 $as_test_x conftest$ac_exeext
11937 }; then
11938 eval "$as_ac_var=yes"
11939 else
11940 $as_echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11942
11943 eval "$as_ac_var=no"
11944 fi
11945
11946 rm -rf conftest.dSYM
11947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11948 conftest$ac_exeext conftest.$ac_ext
11949 fi
11950 ac_res=`eval 'as_val=${'$as_ac_var'}
11951 $as_echo "$as_val"'`
11952 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11953 $as_echo "$ac_res" >&6; }
11954 if test `eval 'as_val=${'$as_ac_var'}
11955 $as_echo "$as_val"'` = yes; then
11956 cat >>confdefs.h <<_ACEOF
11957 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11958 _ACEOF
11959 HAVE_GTK_MULTIDISPLAY=yes
11960 fi
11961 done
11962
11963 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11964
11965 cat >>confdefs.h <<\_ACEOF
11966 #define HAVE_GTK_MULTIDISPLAY 1
11967 _ACEOF
11968
11969 fi
11970
11971 HAVE_GTK_FILE_SELECTION=no
11972 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11973 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11974 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11975 $as_echo_n "(cached) " >&6
11976 else
11977 cat >conftest.$ac_ext <<_ACEOF
11978 /* confdefs.h. */
11979 _ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h. */
11983 $ac_includes_default
11984 #include <gtk/gtk.h>
11985
11986 int
11987 main ()
11988 {
11989 #ifndef GTK_TYPE_FILE_SELECTION
11990 (void) GTK_TYPE_FILE_SELECTION;
11991 #endif
11992
11993 ;
11994 return 0;
11995 }
11996 _ACEOF
11997 rm -f conftest.$ac_objext
11998 if { (ac_try="$ac_compile"
11999 case "(($ac_try" in
12000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12002 esac
12003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12004 $as_echo "$ac_try_echo") >&5
12005 (eval "$ac_compile") 2>conftest.er1
12006 ac_status=$?
12007 grep -v '^ *+' conftest.er1 >conftest.err
12008 rm -f conftest.er1
12009 cat conftest.err >&5
12010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } && {
12012 test -z "$ac_c_werror_flag" ||
12013 test ! -s conftest.err
12014 } && test -s conftest.$ac_objext; then
12015 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12016 else
12017 $as_echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12019
12020 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12021 fi
12022
12023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12024 fi
12025 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12026 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12027 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
12028 HAVE_GTK_FILE_SELECTION=yes
12029 else
12030 HAVE_GTK_FILE_SELECTION=no
12031 fi
12032
12033 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12034
12035 for ac_func in gtk_file_selection_new
12036 do
12037 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12038 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12039 $as_echo_n "checking for $ac_func... " >&6; }
12040 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12041 $as_echo_n "(cached) " >&6
12042 else
12043 cat >conftest.$ac_ext <<_ACEOF
12044 /* confdefs.h. */
12045 _ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12051 #define $ac_func innocuous_$ac_func
12052
12053 /* System header to define __stub macros and hopefully few prototypes,
12054 which can conflict with char $ac_func (); below.
12055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12056 <limits.h> exists even on freestanding compilers. */
12057
12058 #ifdef __STDC__
12059 # include <limits.h>
12060 #else
12061 # include <assert.h>
12062 #endif
12063
12064 #undef $ac_func
12065
12066 /* Override any GCC internal prototype to avoid an error.
12067 Use char because int might match the return type of a GCC
12068 builtin and then its argument prototype would still apply. */
12069 #ifdef __cplusplus
12070 extern "C"
12071 #endif
12072 char $ac_func ();
12073 /* The GNU C library defines this for functions which it implements
12074 to always fail with ENOSYS. Some functions are actually named
12075 something starting with __ and the normal name is an alias. */
12076 #if defined __stub_$ac_func || defined __stub___$ac_func
12077 choke me
12078 #endif
12079
12080 int
12081 main ()
12082 {
12083 return $ac_func ();
12084 ;
12085 return 0;
12086 }
12087 _ACEOF
12088 rm -f conftest.$ac_objext conftest$ac_exeext
12089 if { (ac_try="$ac_link"
12090 case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12093 esac
12094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12095 $as_echo "$ac_try_echo") >&5
12096 (eval "$ac_link") 2>conftest.er1
12097 ac_status=$?
12098 grep -v '^ *+' conftest.er1 >conftest.err
12099 rm -f conftest.er1
12100 cat conftest.err >&5
12101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); } && {
12103 test -z "$ac_c_werror_flag" ||
12104 test ! -s conftest.err
12105 } && test -s conftest$ac_exeext && {
12106 test "$cross_compiling" = yes ||
12107 $as_test_x conftest$ac_exeext
12108 }; then
12109 eval "$as_ac_var=yes"
12110 else
12111 $as_echo "$as_me: failed program was:" >&5
12112 sed 's/^/| /' conftest.$ac_ext >&5
12113
12114 eval "$as_ac_var=no"
12115 fi
12116
12117 rm -rf conftest.dSYM
12118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12119 conftest$ac_exeext conftest.$ac_ext
12120 fi
12121 ac_res=`eval 'as_val=${'$as_ac_var'}
12122 $as_echo "$as_val"'`
12123 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12124 $as_echo "$ac_res" >&6; }
12125 if test `eval 'as_val=${'$as_ac_var'}
12126 $as_echo "$as_val"'` = yes; then
12127 cat >>confdefs.h <<_ACEOF
12128 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12129 _ACEOF
12130 HAVE_GTK_FILE_SELECTION=yes
12131 else
12132 HAVE_GTK_FILE_SELECTION=no
12133 fi
12134 done
12135
12136 fi
12137
12138 HAVE_GTK_FILE_CHOOSER=no
12139 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12140 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12141 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12142 $as_echo_n "(cached) " >&6
12143 else
12144 cat >conftest.$ac_ext <<_ACEOF
12145 /* confdefs.h. */
12146 _ACEOF
12147 cat confdefs.h >>conftest.$ac_ext
12148 cat >>conftest.$ac_ext <<_ACEOF
12149 /* end confdefs.h. */
12150 $ac_includes_default
12151 #include <gtk/gtk.h>
12152
12153 int
12154 main ()
12155 {
12156 #ifndef GTK_TYPE_FILE_CHOOSER
12157 (void) GTK_TYPE_FILE_CHOOSER;
12158 #endif
12159
12160 ;
12161 return 0;
12162 }
12163 _ACEOF
12164 rm -f conftest.$ac_objext
12165 if { (ac_try="$ac_compile"
12166 case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12169 esac
12170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12171 $as_echo "$ac_try_echo") >&5
12172 (eval "$ac_compile") 2>conftest.er1
12173 ac_status=$?
12174 grep -v '^ *+' conftest.er1 >conftest.err
12175 rm -f conftest.er1
12176 cat conftest.err >&5
12177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } && {
12179 test -z "$ac_c_werror_flag" ||
12180 test ! -s conftest.err
12181 } && test -s conftest.$ac_objext; then
12182 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12183 else
12184 $as_echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12186
12187 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12188 fi
12189
12190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12191 fi
12192 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12193 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12194 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12195 HAVE_GTK_FILE_CHOOSER=yes
12196 else
12197 HAVE_GTK_FILE_CHOOSER=no
12198 fi
12199
12200 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12201
12202 for ac_func in gtk_file_chooser_dialog_new
12203 do
12204 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12205 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12206 $as_echo_n "checking for $ac_func... " >&6; }
12207 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12208 $as_echo_n "(cached) " >&6
12209 else
12210 cat >conftest.$ac_ext <<_ACEOF
12211 /* confdefs.h. */
12212 _ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12218 #define $ac_func innocuous_$ac_func
12219
12220 /* System header to define __stub macros and hopefully few prototypes,
12221 which can conflict with char $ac_func (); below.
12222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12223 <limits.h> exists even on freestanding compilers. */
12224
12225 #ifdef __STDC__
12226 # include <limits.h>
12227 #else
12228 # include <assert.h>
12229 #endif
12230
12231 #undef $ac_func
12232
12233 /* Override any GCC internal prototype to avoid an error.
12234 Use char because int might match the return type of a GCC
12235 builtin and then its argument prototype would still apply. */
12236 #ifdef __cplusplus
12237 extern "C"
12238 #endif
12239 char $ac_func ();
12240 /* The GNU C library defines this for functions which it implements
12241 to always fail with ENOSYS. Some functions are actually named
12242 something starting with __ and the normal name is an alias. */
12243 #if defined __stub_$ac_func || defined __stub___$ac_func
12244 choke me
12245 #endif
12246
12247 int
12248 main ()
12249 {
12250 return $ac_func ();
12251 ;
12252 return 0;
12253 }
12254 _ACEOF
12255 rm -f conftest.$ac_objext conftest$ac_exeext
12256 if { (ac_try="$ac_link"
12257 case "(($ac_try" in
12258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259 *) ac_try_echo=$ac_try;;
12260 esac
12261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12262 $as_echo "$ac_try_echo") >&5
12263 (eval "$ac_link") 2>conftest.er1
12264 ac_status=$?
12265 grep -v '^ *+' conftest.er1 >conftest.err
12266 rm -f conftest.er1
12267 cat conftest.err >&5
12268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } && {
12270 test -z "$ac_c_werror_flag" ||
12271 test ! -s conftest.err
12272 } && test -s conftest$ac_exeext && {
12273 test "$cross_compiling" = yes ||
12274 $as_test_x conftest$ac_exeext
12275 }; then
12276 eval "$as_ac_var=yes"
12277 else
12278 $as_echo "$as_me: failed program was:" >&5
12279 sed 's/^/| /' conftest.$ac_ext >&5
12280
12281 eval "$as_ac_var=no"
12282 fi
12283
12284 rm -rf conftest.dSYM
12285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12286 conftest$ac_exeext conftest.$ac_ext
12287 fi
12288 ac_res=`eval 'as_val=${'$as_ac_var'}
12289 $as_echo "$as_val"'`
12290 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12291 $as_echo "$ac_res" >&6; }
12292 if test `eval 'as_val=${'$as_ac_var'}
12293 $as_echo "$as_val"'` = yes; then
12294 cat >>confdefs.h <<_ACEOF
12295 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12296 _ACEOF
12297 HAVE_GTK_FILE_CHOOSER=yes
12298 else
12299 HAVE_GTK_FILE_CHOOSER=no
12300 fi
12301 done
12302
12303 fi
12304
12305 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12306 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12307
12308 cat >>confdefs.h <<\_ACEOF
12309 #define HAVE_GTK_FILE_BOTH 1
12310 _ACEOF
12311
12312 fi
12313
12314 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12315 HAVE_GTK_AND_PTHREAD=no
12316
12317 for ac_header in pthread.h
12318 do
12319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12321 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12322 $as_echo_n "checking for $ac_header... " >&6; }
12323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12324 $as_echo_n "(cached) " >&6
12325 fi
12326 ac_res=`eval 'as_val=${'$as_ac_Header'}
12327 $as_echo "$as_val"'`
12328 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12329 $as_echo "$ac_res" >&6; }
12330 else
12331 # Is the header compilable?
12332 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12333 $as_echo_n "checking $ac_header usability... " >&6; }
12334 cat >conftest.$ac_ext <<_ACEOF
12335 /* confdefs.h. */
12336 _ACEOF
12337 cat confdefs.h >>conftest.$ac_ext
12338 cat >>conftest.$ac_ext <<_ACEOF
12339 /* end confdefs.h. */
12340 $ac_includes_default
12341 #include <$ac_header>
12342 _ACEOF
12343 rm -f conftest.$ac_objext
12344 if { (ac_try="$ac_compile"
12345 case "(($ac_try" in
12346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347 *) ac_try_echo=$ac_try;;
12348 esac
12349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12350 $as_echo "$ac_try_echo") >&5
12351 (eval "$ac_compile") 2>conftest.er1
12352 ac_status=$?
12353 grep -v '^ *+' conftest.er1 >conftest.err
12354 rm -f conftest.er1
12355 cat conftest.err >&5
12356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } && {
12358 test -z "$ac_c_werror_flag" ||
12359 test ! -s conftest.err
12360 } && test -s conftest.$ac_objext; then
12361 ac_header_compiler=yes
12362 else
12363 $as_echo "$as_me: failed program was:" >&5
12364 sed 's/^/| /' conftest.$ac_ext >&5
12365
12366 ac_header_compiler=no
12367 fi
12368
12369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12370 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12371 $as_echo "$ac_header_compiler" >&6; }
12372
12373 # Is the header present?
12374 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12375 $as_echo_n "checking $ac_header presence... " >&6; }
12376 cat >conftest.$ac_ext <<_ACEOF
12377 /* confdefs.h. */
12378 _ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h. */
12382 #include <$ac_header>
12383 _ACEOF
12384 if { (ac_try="$ac_cpp conftest.$ac_ext"
12385 case "(($ac_try" in
12386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387 *) ac_try_echo=$ac_try;;
12388 esac
12389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12390 $as_echo "$ac_try_echo") >&5
12391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12392 ac_status=$?
12393 grep -v '^ *+' conftest.er1 >conftest.err
12394 rm -f conftest.er1
12395 cat conftest.err >&5
12396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); } >/dev/null && {
12398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12399 test ! -s conftest.err
12400 }; then
12401 ac_header_preproc=yes
12402 else
12403 $as_echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12405
12406 ac_header_preproc=no
12407 fi
12408
12409 rm -f conftest.err conftest.$ac_ext
12410 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12411 $as_echo "$ac_header_preproc" >&6; }
12412
12413 # So? What about this header?
12414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12415 yes:no: )
12416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12417 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12419 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12420 ac_header_preproc=yes
12421 ;;
12422 no:yes:* )
12423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12424 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12426 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12428 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12430 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12432 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12434 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12435
12436 ;;
12437 esac
12438 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12439 $as_echo_n "checking for $ac_header... " >&6; }
12440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12441 $as_echo_n "(cached) " >&6
12442 else
12443 eval "$as_ac_Header=\$ac_header_preproc"
12444 fi
12445 ac_res=`eval 'as_val=${'$as_ac_Header'}
12446 $as_echo "$as_val"'`
12447 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12448 $as_echo "$ac_res" >&6; }
12449
12450 fi
12451 if test `eval 'as_val=${'$as_ac_Header'}
12452 $as_echo "$as_val"'` = yes; then
12453 cat >>confdefs.h <<_ACEOF
12454 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12455 _ACEOF
12456
12457 fi
12458
12459 done
12460
12461 if test "$ac_cv_header_pthread_h"; then
12462 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12463 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12464 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12465 $as_echo_n "(cached) " >&6
12466 else
12467 ac_check_lib_save_LIBS=$LIBS
12468 LIBS="-lpthread $LIBS"
12469 cat >conftest.$ac_ext <<_ACEOF
12470 /* confdefs.h. */
12471 _ACEOF
12472 cat confdefs.h >>conftest.$ac_ext
12473 cat >>conftest.$ac_ext <<_ACEOF
12474 /* end confdefs.h. */
12475
12476 /* Override any GCC internal prototype to avoid an error.
12477 Use char because int might match the return type of a GCC
12478 builtin and then its argument prototype would still apply. */
12479 #ifdef __cplusplus
12480 extern "C"
12481 #endif
12482 char pthread_self ();
12483 int
12484 main ()
12485 {
12486 return pthread_self ();
12487 ;
12488 return 0;
12489 }
12490 _ACEOF
12491 rm -f conftest.$ac_objext conftest$ac_exeext
12492 if { (ac_try="$ac_link"
12493 case "(($ac_try" in
12494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12495 *) ac_try_echo=$ac_try;;
12496 esac
12497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12498 $as_echo "$ac_try_echo") >&5
12499 (eval "$ac_link") 2>conftest.er1
12500 ac_status=$?
12501 grep -v '^ *+' conftest.er1 >conftest.err
12502 rm -f conftest.er1
12503 cat conftest.err >&5
12504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } && {
12506 test -z "$ac_c_werror_flag" ||
12507 test ! -s conftest.err
12508 } && test -s conftest$ac_exeext && {
12509 test "$cross_compiling" = yes ||
12510 $as_test_x conftest$ac_exeext
12511 }; then
12512 ac_cv_lib_pthread_pthread_self=yes
12513 else
12514 $as_echo "$as_me: failed program was:" >&5
12515 sed 's/^/| /' conftest.$ac_ext >&5
12516
12517 ac_cv_lib_pthread_pthread_self=no
12518 fi
12519
12520 rm -rf conftest.dSYM
12521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12522 conftest$ac_exeext conftest.$ac_ext
12523 LIBS=$ac_check_lib_save_LIBS
12524 fi
12525 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12526 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12527 if test $ac_cv_lib_pthread_pthread_self = yes; then
12528 HAVE_GTK_AND_PTHREAD=yes
12529 fi
12530
12531 fi
12532 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12533 case "${canonical}" in
12534 *-hpux*) ;;
12535 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12536 esac
12537
12538 cat >>confdefs.h <<\_ACEOF
12539 #define HAVE_GTK_AND_PTHREAD 1
12540 _ACEOF
12541
12542 fi
12543 fi
12544 fi
12545
12546 HAVE_DBUS=no
12547 DBUS_OBJ=
12548 if test "${with_dbus}" = "yes"; then
12549
12550 succeeded=no
12551
12552 # Extract the first word of "pkg-config", so it can be a program name with args.
12553 set dummy pkg-config; ac_word=$2
12554 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12555 $as_echo_n "checking for $ac_word... " >&6; }
12556 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12557 $as_echo_n "(cached) " >&6
12558 else
12559 case $PKG_CONFIG in
12560 [\\/]* | ?:[\\/]*)
12561 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12562 ;;
12563 *)
12564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12565 for as_dir in $PATH
12566 do
12567 IFS=$as_save_IFS
12568 test -z "$as_dir" && as_dir=.
12569 for ac_exec_ext in '' $ac_executable_extensions; do
12570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12571 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12572 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12573 break 2
12574 fi
12575 done
12576 done
12577 IFS=$as_save_IFS
12578
12579 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12580 ;;
12581 esac
12582 fi
12583 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12584 if test -n "$PKG_CONFIG"; then
12585 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12586 $as_echo "$PKG_CONFIG" >&6; }
12587 else
12588 { $as_echo "$as_me:$LINENO: result: no" >&5
12589 $as_echo "no" >&6; }
12590 fi
12591
12592
12593
12594 if test "$PKG_CONFIG" = "no" ; then
12595 HAVE_DBUS=no
12596 else
12597 PKG_CONFIG_MIN_VERSION=0.9.0
12598 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12599 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12600 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12601
12602 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12603 { $as_echo "$as_me:$LINENO: result: yes" >&5
12604 $as_echo "yes" >&6; }
12605 succeeded=yes
12606
12607 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12608 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12609 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12610 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12611 $as_echo "$DBUS_CFLAGS" >&6; }
12612
12613 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12614 $as_echo_n "checking DBUS_LIBS... " >&6; }
12615 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12616 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12617 $as_echo "$DBUS_LIBS" >&6; }
12618 else
12619 { $as_echo "$as_me:$LINENO: result: no" >&5
12620 $as_echo "no" >&6; }
12621 DBUS_CFLAGS=""
12622 DBUS_LIBS=""
12623 ## If we have a custom action on failure, don't print errors, but
12624 ## do set a variable so people can do so.
12625 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12626
12627 fi
12628
12629
12630
12631 else
12632 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12633 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12634 fi
12635 fi
12636
12637 if test $succeeded = yes; then
12638 HAVE_DBUS=yes
12639 else
12640 HAVE_DBUS=no
12641 fi
12642
12643 if test "$HAVE_DBUS" = yes; then
12644 LIBS="$LIBS $DBUS_LIBS"
12645
12646 cat >>confdefs.h <<\_ACEOF
12647 #define HAVE_DBUS 1
12648 _ACEOF
12649
12650
12651 for ac_func in dbus_watch_get_unix_fd
12652 do
12653 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12654 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12655 $as_echo_n "checking for $ac_func... " >&6; }
12656 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12657 $as_echo_n "(cached) " >&6
12658 else
12659 cat >conftest.$ac_ext <<_ACEOF
12660 /* confdefs.h. */
12661 _ACEOF
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h. */
12665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12667 #define $ac_func innocuous_$ac_func
12668
12669 /* System header to define __stub macros and hopefully few prototypes,
12670 which can conflict with char $ac_func (); below.
12671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12672 <limits.h> exists even on freestanding compilers. */
12673
12674 #ifdef __STDC__
12675 # include <limits.h>
12676 #else
12677 # include <assert.h>
12678 #endif
12679
12680 #undef $ac_func
12681
12682 /* Override any GCC internal prototype to avoid an error.
12683 Use char because int might match the return type of a GCC
12684 builtin and then its argument prototype would still apply. */
12685 #ifdef __cplusplus
12686 extern "C"
12687 #endif
12688 char $ac_func ();
12689 /* The GNU C library defines this for functions which it implements
12690 to always fail with ENOSYS. Some functions are actually named
12691 something starting with __ and the normal name is an alias. */
12692 #if defined __stub_$ac_func || defined __stub___$ac_func
12693 choke me
12694 #endif
12695
12696 int
12697 main ()
12698 {
12699 return $ac_func ();
12700 ;
12701 return 0;
12702 }
12703 _ACEOF
12704 rm -f conftest.$ac_objext conftest$ac_exeext
12705 if { (ac_try="$ac_link"
12706 case "(($ac_try" in
12707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12708 *) ac_try_echo=$ac_try;;
12709 esac
12710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12711 $as_echo "$ac_try_echo") >&5
12712 (eval "$ac_link") 2>conftest.er1
12713 ac_status=$?
12714 grep -v '^ *+' conftest.er1 >conftest.err
12715 rm -f conftest.er1
12716 cat conftest.err >&5
12717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } && {
12719 test -z "$ac_c_werror_flag" ||
12720 test ! -s conftest.err
12721 } && test -s conftest$ac_exeext && {
12722 test "$cross_compiling" = yes ||
12723 $as_test_x conftest$ac_exeext
12724 }; then
12725 eval "$as_ac_var=yes"
12726 else
12727 $as_echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.$ac_ext >&5
12729
12730 eval "$as_ac_var=no"
12731 fi
12732
12733 rm -rf conftest.dSYM
12734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12735 conftest$ac_exeext conftest.$ac_ext
12736 fi
12737 ac_res=`eval 'as_val=${'$as_ac_var'}
12738 $as_echo "$as_val"'`
12739 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12740 $as_echo "$ac_res" >&6; }
12741 if test `eval 'as_val=${'$as_ac_var'}
12742 $as_echo "$as_val"'` = yes; then
12743 cat >>confdefs.h <<_ACEOF
12744 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12745 _ACEOF
12746
12747 fi
12748 done
12749
12750 DBUS_OBJ=dbusbind.o
12751 fi
12752 fi
12753
12754
12755 HAVE_GCONF=no
12756 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12757
12758 succeeded=no
12759
12760 # Extract the first word of "pkg-config", so it can be a program name with args.
12761 set dummy pkg-config; ac_word=$2
12762 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12763 $as_echo_n "checking for $ac_word... " >&6; }
12764 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12765 $as_echo_n "(cached) " >&6
12766 else
12767 case $PKG_CONFIG in
12768 [\\/]* | ?:[\\/]*)
12769 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12770 ;;
12771 *)
12772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12773 for as_dir in $PATH
12774 do
12775 IFS=$as_save_IFS
12776 test -z "$as_dir" && as_dir=.
12777 for ac_exec_ext in '' $ac_executable_extensions; do
12778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12779 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12780 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12781 break 2
12782 fi
12783 done
12784 done
12785 IFS=$as_save_IFS
12786
12787 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12788 ;;
12789 esac
12790 fi
12791 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12792 if test -n "$PKG_CONFIG"; then
12793 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12794 $as_echo "$PKG_CONFIG" >&6; }
12795 else
12796 { $as_echo "$as_me:$LINENO: result: no" >&5
12797 $as_echo "no" >&6; }
12798 fi
12799
12800
12801
12802 if test "$PKG_CONFIG" = "no" ; then
12803 HAVE_GCONF=no
12804 else
12805 PKG_CONFIG_MIN_VERSION=0.9.0
12806 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12807 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12808 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12809
12810 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12811 { $as_echo "$as_me:$LINENO: result: yes" >&5
12812 $as_echo "yes" >&6; }
12813 succeeded=yes
12814
12815 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12816 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12817 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12818 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12819 $as_echo "$GCONF_CFLAGS" >&6; }
12820
12821 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12822 $as_echo_n "checking GCONF_LIBS... " >&6; }
12823 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12824 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12825 $as_echo "$GCONF_LIBS" >&6; }
12826 else
12827 { $as_echo "$as_me:$LINENO: result: no" >&5
12828 $as_echo "no" >&6; }
12829 GCONF_CFLAGS=""
12830 GCONF_LIBS=""
12831 ## If we have a custom action on failure, don't print errors, but
12832 ## do set a variable so people can do so.
12833 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12834
12835 fi
12836
12837
12838
12839 else
12840 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12841 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12842 fi
12843 fi
12844
12845 if test $succeeded = yes; then
12846 HAVE_GCONF=yes
12847 else
12848 HAVE_GCONF=no
12849 fi
12850
12851 if test "$HAVE_GCONF" = yes; then
12852
12853 cat >>confdefs.h <<\_ACEOF
12854 #define HAVE_GCONF 1
12855 _ACEOF
12856
12857 fi
12858 fi
12859
12860 HAVE_LIBSELINUX=no
12861 LIBSELINUX_LIBS=
12862 if test "${with_selinux}" = "yes"; then
12863 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
12864 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12865 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
12866 $as_echo_n "(cached) " >&6
12867 else
12868 ac_check_lib_save_LIBS=$LIBS
12869 LIBS="-lselinux $LIBS"
12870 cat >conftest.$ac_ext <<_ACEOF
12871 /* confdefs.h. */
12872 _ACEOF
12873 cat confdefs.h >>conftest.$ac_ext
12874 cat >>conftest.$ac_ext <<_ACEOF
12875 /* end confdefs.h. */
12876
12877 /* Override any GCC internal prototype to avoid an error.
12878 Use char because int might match the return type of a GCC
12879 builtin and then its argument prototype would still apply. */
12880 #ifdef __cplusplus
12881 extern "C"
12882 #endif
12883 char lgetfilecon ();
12884 int
12885 main ()
12886 {
12887 return lgetfilecon ();
12888 ;
12889 return 0;
12890 }
12891 _ACEOF
12892 rm -f conftest.$ac_objext conftest$ac_exeext
12893 if { (ac_try="$ac_link"
12894 case "(($ac_try" in
12895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896 *) ac_try_echo=$ac_try;;
12897 esac
12898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12899 $as_echo "$ac_try_echo") >&5
12900 (eval "$ac_link") 2>conftest.er1
12901 ac_status=$?
12902 grep -v '^ *+' conftest.er1 >conftest.err
12903 rm -f conftest.er1
12904 cat conftest.err >&5
12905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } && {
12907 test -z "$ac_c_werror_flag" ||
12908 test ! -s conftest.err
12909 } && test -s conftest$ac_exeext && {
12910 test "$cross_compiling" = yes ||
12911 $as_test_x conftest$ac_exeext
12912 }; then
12913 ac_cv_lib_selinux_lgetfilecon=yes
12914 else
12915 $as_echo "$as_me: failed program was:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12917
12918 ac_cv_lib_selinux_lgetfilecon=no
12919 fi
12920
12921 rm -rf conftest.dSYM
12922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12923 conftest$ac_exeext conftest.$ac_ext
12924 LIBS=$ac_check_lib_save_LIBS
12925 fi
12926 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12927 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12928 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
12929 HAVE_LIBSELINUX=yes
12930 else
12931 HAVE_LIBSELINUX=no
12932 fi
12933
12934 if test "$HAVE_LIBSELINUX" = yes; then
12935
12936 cat >>confdefs.h <<\_ACEOF
12937 #define HAVE_LIBSELINUX 1
12938 _ACEOF
12939
12940 LIBSELINUX_LIBS=-lselinux
12941 fi
12942 fi
12943
12944
12945 HAVE_XAW3D=no
12946 LUCID_LIBW=
12947 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12948 if test "$with_xaw3d" != no; then
12949 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12950 $as_echo_n "checking for xaw3d... " >&6; }
12951 if test "${emacs_cv_xaw3d+set}" = set; then
12952 $as_echo_n "(cached) " >&6
12953 else
12954 cat >conftest.$ac_ext <<_ACEOF
12955 /* confdefs.h. */
12956 _ACEOF
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h. */
12960
12961 #include <X11/Intrinsic.h>
12962 #include <X11/Xaw3d/Simple.h>
12963 int
12964 main ()
12965 {
12966
12967 ;
12968 return 0;
12969 }
12970 _ACEOF
12971 rm -f conftest.$ac_objext conftest$ac_exeext
12972 if { (ac_try="$ac_link"
12973 case "(($ac_try" in
12974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12975 *) ac_try_echo=$ac_try;;
12976 esac
12977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12978 $as_echo "$ac_try_echo") >&5
12979 (eval "$ac_link") 2>conftest.er1
12980 ac_status=$?
12981 grep -v '^ *+' conftest.er1 >conftest.err
12982 rm -f conftest.er1
12983 cat conftest.err >&5
12984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } && {
12986 test -z "$ac_c_werror_flag" ||
12987 test ! -s conftest.err
12988 } && test -s conftest$ac_exeext && {
12989 test "$cross_compiling" = yes ||
12990 $as_test_x conftest$ac_exeext
12991 }; then
12992 emacs_cv_xaw3d=yes
12993 else
12994 $as_echo "$as_me: failed program was:" >&5
12995 sed 's/^/| /' conftest.$ac_ext >&5
12996
12997 emacs_cv_xaw3d=no
12998 fi
12999
13000 rm -rf conftest.dSYM
13001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13002 conftest$ac_exeext conftest.$ac_ext
13003 fi
13004
13005 else
13006 emacs_cv_xaw3d=no
13007 fi
13008 if test $emacs_cv_xaw3d = yes; then
13009 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13010 $as_echo "yes; using Lucid toolkit" >&6; }
13011 USE_X_TOOLKIT=LUCID
13012 HAVE_XAW3D=yes
13013 LUCID_LIBW=-lXaw3d
13014
13015 cat >>confdefs.h <<\_ACEOF
13016 #define HAVE_XAW3D 1
13017 _ACEOF
13018
13019 else
13020 { $as_echo "$as_me:$LINENO: result: no" >&5
13021 $as_echo "no" >&6; }
13022 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
13023 $as_echo_n "checking for libXaw... " >&6; }
13024 if test "${emacs_cv_xaw+set}" = set; then
13025 $as_echo_n "(cached) " >&6
13026 else
13027 cat >conftest.$ac_ext <<_ACEOF
13028 /* confdefs.h. */
13029 _ACEOF
13030 cat confdefs.h >>conftest.$ac_ext
13031 cat >>conftest.$ac_ext <<_ACEOF
13032 /* end confdefs.h. */
13033
13034 #include <X11/Intrinsic.h>
13035 #include <X11/Xaw/Simple.h>
13036 int
13037 main ()
13038 {
13039
13040 ;
13041 return 0;
13042 }
13043 _ACEOF
13044 rm -f conftest.$ac_objext conftest$ac_exeext
13045 if { (ac_try="$ac_link"
13046 case "(($ac_try" in
13047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048 *) ac_try_echo=$ac_try;;
13049 esac
13050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13051 $as_echo "$ac_try_echo") >&5
13052 (eval "$ac_link") 2>conftest.er1
13053 ac_status=$?
13054 grep -v '^ *+' conftest.er1 >conftest.err
13055 rm -f conftest.er1
13056 cat conftest.err >&5
13057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } && {
13059 test -z "$ac_c_werror_flag" ||
13060 test ! -s conftest.err
13061 } && test -s conftest$ac_exeext && {
13062 test "$cross_compiling" = yes ||
13063 $as_test_x conftest$ac_exeext
13064 }; then
13065 emacs_cv_xaw=yes
13066 else
13067 $as_echo "$as_me: failed program was:" >&5
13068 sed 's/^/| /' conftest.$ac_ext >&5
13069
13070 emacs_cv_xaw=no
13071 fi
13072
13073 rm -rf conftest.dSYM
13074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13075 conftest$ac_exeext conftest.$ac_ext
13076 fi
13077
13078 if test $emacs_cv_xaw = yes; then
13079 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13080 $as_echo "yes; using Lucid toolkit" >&6; }
13081 USE_X_TOOLKIT=LUCID
13082 LUCID_LIBW=-lXaw
13083 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13084 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13085 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13086 { (exit 1); exit 1; }; }
13087 else
13088 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13089 $as_echo "no; do not use toolkit by default" >&6; }
13090 USE_X_TOOLKIT=none
13091 fi
13092 fi
13093 fi
13094
13095 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13096
13097 LIBXTR6=
13098 if test "${USE_X_TOOLKIT}" != "none"; then
13099 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13100 $as_echo_n "checking X11 toolkit version... " >&6; }
13101 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13102 $as_echo_n "(cached) " >&6
13103 else
13104 cat >conftest.$ac_ext <<_ACEOF
13105 /* confdefs.h. */
13106 _ACEOF
13107 cat confdefs.h >>conftest.$ac_ext
13108 cat >>conftest.$ac_ext <<_ACEOF
13109 /* end confdefs.h. */
13110 #include <X11/Intrinsic.h>
13111 int
13112 main ()
13113 {
13114 #if XtSpecificationRelease < 6
13115 fail;
13116 #endif
13117
13118 ;
13119 return 0;
13120 }
13121 _ACEOF
13122 rm -f conftest.$ac_objext conftest$ac_exeext
13123 if { (ac_try="$ac_link"
13124 case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13127 esac
13128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13129 $as_echo "$ac_try_echo") >&5
13130 (eval "$ac_link") 2>conftest.er1
13131 ac_status=$?
13132 grep -v '^ *+' conftest.er1 >conftest.err
13133 rm -f conftest.er1
13134 cat conftest.err >&5
13135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); } && {
13137 test -z "$ac_c_werror_flag" ||
13138 test ! -s conftest.err
13139 } && test -s conftest$ac_exeext && {
13140 test "$cross_compiling" = yes ||
13141 $as_test_x conftest$ac_exeext
13142 }; then
13143 emacs_cv_x11_toolkit_version_6=yes
13144 else
13145 $as_echo "$as_me: failed program was:" >&5
13146 sed 's/^/| /' conftest.$ac_ext >&5
13147
13148 emacs_cv_x11_toolkit_version_6=no
13149 fi
13150
13151 rm -rf conftest.dSYM
13152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13153 conftest$ac_exeext conftest.$ac_ext
13154 fi
13155
13156 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13157 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13158 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13159 $as_echo "6 or newer" >&6; }
13160
13161 cat >>confdefs.h <<\_ACEOF
13162 #define HAVE_X11XTR6 1
13163 _ACEOF
13164
13165 LIBXTR6="-lSM -lICE"
13166 case "$opsys" in
13167 ## Use libw.a along with X11R6 Xt.
13168 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
13169 esac
13170 else
13171 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13172 $as_echo "before 6" >&6; }
13173 fi
13174
13175 OLDLIBS="$LIBS"
13176 if test x$HAVE_X11XTR6 = xyes; then
13177 LIBS="-lXt -lSM -lICE $LIBS"
13178 else
13179 LIBS="-lXt $LIBS"
13180 fi
13181
13182 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13183 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13184 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13185 $as_echo_n "(cached) " >&6
13186 else
13187 ac_check_lib_save_LIBS=$LIBS
13188 LIBS="-lXmu $LIBS"
13189 cat >conftest.$ac_ext <<_ACEOF
13190 /* confdefs.h. */
13191 _ACEOF
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h. */
13195
13196 /* Override any GCC internal prototype to avoid an error.
13197 Use char because int might match the return type of a GCC
13198 builtin and then its argument prototype would still apply. */
13199 #ifdef __cplusplus
13200 extern "C"
13201 #endif
13202 char XmuConvertStandardSelection ();
13203 int
13204 main ()
13205 {
13206 return XmuConvertStandardSelection ();
13207 ;
13208 return 0;
13209 }
13210 _ACEOF
13211 rm -f conftest.$ac_objext conftest$ac_exeext
13212 if { (ac_try="$ac_link"
13213 case "(($ac_try" in
13214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215 *) ac_try_echo=$ac_try;;
13216 esac
13217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13218 $as_echo "$ac_try_echo") >&5
13219 (eval "$ac_link") 2>conftest.er1
13220 ac_status=$?
13221 grep -v '^ *+' conftest.er1 >conftest.err
13222 rm -f conftest.er1
13223 cat conftest.err >&5
13224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } && {
13226 test -z "$ac_c_werror_flag" ||
13227 test ! -s conftest.err
13228 } && test -s conftest$ac_exeext && {
13229 test "$cross_compiling" = yes ||
13230 $as_test_x conftest$ac_exeext
13231 }; then
13232 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13233 else
13234 $as_echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13236
13237 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13238 fi
13239
13240 rm -rf conftest.dSYM
13241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13242 conftest$ac_exeext conftest.$ac_ext
13243 LIBS=$ac_check_lib_save_LIBS
13244 fi
13245 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13246 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13247 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13248 cat >>confdefs.h <<_ACEOF
13249 #define HAVE_LIBXMU 1
13250 _ACEOF
13251
13252 LIBS="-lXmu $LIBS"
13253
13254 fi
13255
13256 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13257 fi
13258
13259
13260 LIBXMU=-lXmu
13261 case "$machine" in
13262 ## These machines don't supply Xmu.
13263 hpux* | aix4-2 )
13264 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
13265 ;;
13266 esac
13267
13268
13269 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13270 if test "${HAVE_X11}" = "yes"; then
13271 if test "${USE_X_TOOLKIT}" != "none"; then
13272
13273 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13274 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13275 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13276 $as_echo_n "(cached) " >&6
13277 else
13278 ac_check_lib_save_LIBS=$LIBS
13279 LIBS="-lXext $LIBS"
13280 cat >conftest.$ac_ext <<_ACEOF
13281 /* confdefs.h. */
13282 _ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13286
13287 /* Override any GCC internal prototype to avoid an error.
13288 Use char because int might match the return type of a GCC
13289 builtin and then its argument prototype would still apply. */
13290 #ifdef __cplusplus
13291 extern "C"
13292 #endif
13293 char XShapeQueryExtension ();
13294 int
13295 main ()
13296 {
13297 return XShapeQueryExtension ();
13298 ;
13299 return 0;
13300 }
13301 _ACEOF
13302 rm -f conftest.$ac_objext conftest$ac_exeext
13303 if { (ac_try="$ac_link"
13304 case "(($ac_try" in
13305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306 *) ac_try_echo=$ac_try;;
13307 esac
13308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13309 $as_echo "$ac_try_echo") >&5
13310 (eval "$ac_link") 2>conftest.er1
13311 ac_status=$?
13312 grep -v '^ *+' conftest.er1 >conftest.err
13313 rm -f conftest.er1
13314 cat conftest.err >&5
13315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } && {
13317 test -z "$ac_c_werror_flag" ||
13318 test ! -s conftest.err
13319 } && test -s conftest$ac_exeext && {
13320 test "$cross_compiling" = yes ||
13321 $as_test_x conftest$ac_exeext
13322 }; then
13323 ac_cv_lib_Xext_XShapeQueryExtension=yes
13324 else
13325 $as_echo "$as_me: failed program was:" >&5
13326 sed 's/^/| /' conftest.$ac_ext >&5
13327
13328 ac_cv_lib_Xext_XShapeQueryExtension=no
13329 fi
13330
13331 rm -rf conftest.dSYM
13332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13333 conftest$ac_exeext conftest.$ac_ext
13334 LIBS=$ac_check_lib_save_LIBS
13335 fi
13336 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13337 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13338 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13339 cat >>confdefs.h <<_ACEOF
13340 #define HAVE_LIBXEXT 1
13341 _ACEOF
13342
13343 LIBS="-lXext $LIBS"
13344
13345 fi
13346
13347 fi
13348 fi
13349
13350 LIBXP=
13351 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13352 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13353 $as_echo_n "checking for Motif version 2.1... " >&6; }
13354 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13355 $as_echo_n "(cached) " >&6
13356 else
13357 cat >conftest.$ac_ext <<_ACEOF
13358 /* confdefs.h. */
13359 _ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13363 #include <Xm/Xm.h>
13364 int
13365 main ()
13366 {
13367 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13368 int x = 5;
13369 #else
13370 Motif version prior to 2.1.
13371 #endif
13372 ;
13373 return 0;
13374 }
13375 _ACEOF
13376 rm -f conftest.$ac_objext
13377 if { (ac_try="$ac_compile"
13378 case "(($ac_try" in
13379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380 *) ac_try_echo=$ac_try;;
13381 esac
13382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13383 $as_echo "$ac_try_echo") >&5
13384 (eval "$ac_compile") 2>conftest.er1
13385 ac_status=$?
13386 grep -v '^ *+' conftest.er1 >conftest.err
13387 rm -f conftest.er1
13388 cat conftest.err >&5
13389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); } && {
13391 test -z "$ac_c_werror_flag" ||
13392 test ! -s conftest.err
13393 } && test -s conftest.$ac_objext; then
13394 emacs_cv_motif_version_2_1=yes
13395 else
13396 $as_echo "$as_me: failed program was:" >&5
13397 sed 's/^/| /' conftest.$ac_ext >&5
13398
13399 emacs_cv_motif_version_2_1=no
13400 fi
13401
13402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13403 fi
13404 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13405 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13406 if test $emacs_cv_motif_version_2_1 = yes; then
13407 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13408 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13409 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13410 $as_echo_n "(cached) " >&6
13411 else
13412 ac_check_lib_save_LIBS=$LIBS
13413 LIBS="-lXp $LIBS"
13414 cat >conftest.$ac_ext <<_ACEOF
13415 /* confdefs.h. */
13416 _ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h. */
13420
13421 /* Override any GCC internal prototype to avoid an error.
13422 Use char because int might match the return type of a GCC
13423 builtin and then its argument prototype would still apply. */
13424 #ifdef __cplusplus
13425 extern "C"
13426 #endif
13427 char XpCreateContext ();
13428 int
13429 main ()
13430 {
13431 return XpCreateContext ();
13432 ;
13433 return 0;
13434 }
13435 _ACEOF
13436 rm -f conftest.$ac_objext conftest$ac_exeext
13437 if { (ac_try="$ac_link"
13438 case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13441 esac
13442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13443 $as_echo "$ac_try_echo") >&5
13444 (eval "$ac_link") 2>conftest.er1
13445 ac_status=$?
13446 grep -v '^ *+' conftest.er1 >conftest.err
13447 rm -f conftest.er1
13448 cat conftest.err >&5
13449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); } && {
13451 test -z "$ac_c_werror_flag" ||
13452 test ! -s conftest.err
13453 } && test -s conftest$ac_exeext && {
13454 test "$cross_compiling" = yes ||
13455 $as_test_x conftest$ac_exeext
13456 }; then
13457 ac_cv_lib_Xp_XpCreateContext=yes
13458 else
13459 $as_echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13461
13462 ac_cv_lib_Xp_XpCreateContext=no
13463 fi
13464
13465 rm -rf conftest.dSYM
13466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13467 conftest$ac_exeext conftest.$ac_ext
13468 LIBS=$ac_check_lib_save_LIBS
13469 fi
13470 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13471 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13472 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13473 LIBXP=-lXp
13474 fi
13475
13476 else
13477 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13478 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13479 if test "${emacs_cv_lesstif+set}" = set; then
13480 $as_echo_n "(cached) " >&6
13481 else
13482 # We put this in CFLAGS temporarily to precede other -I options
13483 # that might be in CFLAGS temporarily.
13484 # We put this in CPPFLAGS where it precedes the other -I options.
13485 OLD_CPPFLAGS=$CPPFLAGS
13486 OLD_CFLAGS=$CFLAGS
13487 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13488 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13489 cat >conftest.$ac_ext <<_ACEOF
13490 /* confdefs.h. */
13491 _ACEOF
13492 cat confdefs.h >>conftest.$ac_ext
13493 cat >>conftest.$ac_ext <<_ACEOF
13494 /* end confdefs.h. */
13495 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13496 int
13497 main ()
13498 {
13499 int x = 5;
13500 ;
13501 return 0;
13502 }
13503 _ACEOF
13504 rm -f conftest.$ac_objext
13505 if { (ac_try="$ac_compile"
13506 case "(($ac_try" in
13507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508 *) ac_try_echo=$ac_try;;
13509 esac
13510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13511 $as_echo "$ac_try_echo") >&5
13512 (eval "$ac_compile") 2>conftest.er1
13513 ac_status=$?
13514 grep -v '^ *+' conftest.er1 >conftest.err
13515 rm -f conftest.er1
13516 cat conftest.err >&5
13517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); } && {
13519 test -z "$ac_c_werror_flag" ||
13520 test ! -s conftest.err
13521 } && test -s conftest.$ac_objext; then
13522 emacs_cv_lesstif=yes
13523 else
13524 $as_echo "$as_me: failed program was:" >&5
13525 sed 's/^/| /' conftest.$ac_ext >&5
13526
13527 emacs_cv_lesstif=no
13528 fi
13529
13530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13531 fi
13532 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13533 $as_echo "$emacs_cv_lesstif" >&6; }
13534 if test $emacs_cv_lesstif = yes; then
13535 # Make sure this -I option remains in CPPFLAGS after it is set
13536 # back to REAL_CPPFLAGS.
13537 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13538 # have those other -I options anyway. Ultimately, having this
13539 # directory ultimately in CPPFLAGS will be enough.
13540 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13541 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13542 else
13543 CFLAGS=$OLD_CFLAGS
13544 CPPFLAGS=$OLD_CPPFLAGS
13545 fi
13546 fi
13547 fi
13548
13549
13550
13551 USE_TOOLKIT_SCROLL_BARS=no
13552 if test "${with_toolkit_scroll_bars}" != "no"; then
13553 if test "${USE_X_TOOLKIT}" != "none"; then
13554 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13555 cat >>confdefs.h <<\_ACEOF
13556 #define USE_TOOLKIT_SCROLL_BARS 1
13557 _ACEOF
13558
13559 HAVE_XAW3D=no
13560 USE_TOOLKIT_SCROLL_BARS=yes
13561 elif test "${HAVE_XAW3D}" = "yes"; then
13562 cat >>confdefs.h <<\_ACEOF
13563 #define USE_TOOLKIT_SCROLL_BARS 1
13564 _ACEOF
13565
13566 USE_TOOLKIT_SCROLL_BARS=yes
13567 fi
13568 elif test "${HAVE_GTK}" = "yes"; then
13569 cat >>confdefs.h <<\_ACEOF
13570 #define USE_TOOLKIT_SCROLL_BARS 1
13571 _ACEOF
13572
13573 USE_TOOLKIT_SCROLL_BARS=yes
13574 elif test "${HAVE_NS}" = "yes"; then
13575 cat >>confdefs.h <<\_ACEOF
13576 #define USE_TOOLKIT_SCROLL_BARS 1
13577 _ACEOF
13578
13579 USE_TOOLKIT_SCROLL_BARS=yes
13580 fi
13581 fi
13582
13583 cat >conftest.$ac_ext <<_ACEOF
13584 /* confdefs.h. */
13585 _ACEOF
13586 cat confdefs.h >>conftest.$ac_ext
13587 cat >>conftest.$ac_ext <<_ACEOF
13588 /* end confdefs.h. */
13589
13590 #include <X11/Xlib.h>
13591 #include <X11/Xresource.h>
13592 int
13593 main ()
13594 {
13595 XIMProc callback;
13596 ;
13597 return 0;
13598 }
13599 _ACEOF
13600 rm -f conftest.$ac_objext
13601 if { (ac_try="$ac_compile"
13602 case "(($ac_try" in
13603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604 *) ac_try_echo=$ac_try;;
13605 esac
13606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13607 $as_echo "$ac_try_echo") >&5
13608 (eval "$ac_compile") 2>conftest.er1
13609 ac_status=$?
13610 grep -v '^ *+' conftest.er1 >conftest.err
13611 rm -f conftest.er1
13612 cat conftest.err >&5
13613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); } && {
13615 test -z "$ac_c_werror_flag" ||
13616 test ! -s conftest.err
13617 } && test -s conftest.$ac_objext; then
13618 HAVE_XIM=yes
13619
13620 cat >>confdefs.h <<\_ACEOF
13621 #define HAVE_XIM 1
13622 _ACEOF
13623
13624 else
13625 $as_echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13627
13628 HAVE_XIM=no
13629 fi
13630
13631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13632
13633
13634 if test "${with_xim}" != "no"; then
13635
13636 cat >>confdefs.h <<\_ACEOF
13637 #define USE_XIM 1
13638 _ACEOF
13639
13640 fi
13641
13642
13643 if test "${HAVE_XIM}" != "no"; then
13644 late_CFLAGS=$CFLAGS
13645 if test "$GCC" = yes; then
13646 CFLAGS="$CFLAGS --pedantic-errors"
13647 fi
13648 cat >conftest.$ac_ext <<_ACEOF
13649 /* confdefs.h. */
13650 _ACEOF
13651 cat confdefs.h >>conftest.$ac_ext
13652 cat >>conftest.$ac_ext <<_ACEOF
13653 /* end confdefs.h. */
13654
13655 #include <X11/Xlib.h>
13656 #include <X11/Xresource.h>
13657 int
13658 main ()
13659 {
13660 Display *display;
13661 XrmDatabase db;
13662 char *res_name;
13663 char *res_class;
13664 XIMProc callback;
13665 XPointer *client_data;
13666 #ifndef __GNUC__
13667 /* If we're not using GCC, it's probably not XFree86, and this is
13668 probably right, but we can't use something like --pedantic-errors. */
13669 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13670 char*, XIMProc, XPointer*);
13671 #endif
13672 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13673 client_data);
13674 ;
13675 return 0;
13676 }
13677 _ACEOF
13678 rm -f conftest.$ac_objext
13679 if { (ac_try="$ac_compile"
13680 case "(($ac_try" in
13681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682 *) ac_try_echo=$ac_try;;
13683 esac
13684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13685 $as_echo "$ac_try_echo") >&5
13686 (eval "$ac_compile") 2>conftest.er1
13687 ac_status=$?
13688 grep -v '^ *+' conftest.er1 >conftest.err
13689 rm -f conftest.er1
13690 cat conftest.err >&5
13691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } && {
13693 test -z "$ac_c_werror_flag" ||
13694 test ! -s conftest.err
13695 } && test -s conftest.$ac_objext; then
13696 emacs_cv_arg6_star=yes
13697 else
13698 $as_echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13700
13701
13702 fi
13703
13704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13705
13706 if test "$emacs_cv_arg6_star" = yes; then
13707 cat >>confdefs.h <<\_ACEOF
13708 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13709 _ACEOF
13710
13711 else
13712 cat >>confdefs.h <<\_ACEOF
13713 #define XRegisterIMInstantiateCallback_arg6 XPointer
13714 _ACEOF
13715
13716 fi
13717 CFLAGS=$late_CFLAGS
13718 fi
13719
13720 ### Start of font-backend (under any platform) section.
13721 # (nothing here yet -- this is a placeholder)
13722 ### End of font-backend (under any platform) section.
13723
13724 ### Start of font-backend (under X11) section.
13725 if test "${HAVE_X11}" = "yes"; then
13726
13727 succeeded=no
13728
13729 # Extract the first word of "pkg-config", so it can be a program name with args.
13730 set dummy pkg-config; ac_word=$2
13731 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13732 $as_echo_n "checking for $ac_word... " >&6; }
13733 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13734 $as_echo_n "(cached) " >&6
13735 else
13736 case $PKG_CONFIG in
13737 [\\/]* | ?:[\\/]*)
13738 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13739 ;;
13740 *)
13741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13742 for as_dir in $PATH
13743 do
13744 IFS=$as_save_IFS
13745 test -z "$as_dir" && as_dir=.
13746 for ac_exec_ext in '' $ac_executable_extensions; do
13747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13748 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13749 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13750 break 2
13751 fi
13752 done
13753 done
13754 IFS=$as_save_IFS
13755
13756 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13757 ;;
13758 esac
13759 fi
13760 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13761 if test -n "$PKG_CONFIG"; then
13762 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13763 $as_echo "$PKG_CONFIG" >&6; }
13764 else
13765 { $as_echo "$as_me:$LINENO: result: no" >&5
13766 $as_echo "no" >&6; }
13767 fi
13768
13769
13770
13771 if test "$PKG_CONFIG" = "no" ; then
13772 HAVE_FC=no
13773 else
13774 PKG_CONFIG_MIN_VERSION=0.9.0
13775 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13776 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13777 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13778
13779 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13780 { $as_echo "$as_me:$LINENO: result: yes" >&5
13781 $as_echo "yes" >&6; }
13782 succeeded=yes
13783
13784 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13785 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13786 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13787 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13788 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13789
13790 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13791 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13792 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13793 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13794 $as_echo "$FONTCONFIG_LIBS" >&6; }
13795 else
13796 { $as_echo "$as_me:$LINENO: result: no" >&5
13797 $as_echo "no" >&6; }
13798 FONTCONFIG_CFLAGS=""
13799 FONTCONFIG_LIBS=""
13800 ## If we have a custom action on failure, don't print errors, but
13801 ## do set a variable so people can do so.
13802 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13803
13804 fi
13805
13806
13807
13808 else
13809 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13810 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13811 fi
13812 fi
13813
13814 if test $succeeded = yes; then
13815 HAVE_FC=yes
13816 else
13817 HAVE_FC=no
13818 fi
13819
13820
13821 ## Use -lXft if available, unless `--with-xft=no'.
13822 HAVE_XFT=maybe
13823 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13824 with_xft="no";
13825 fi
13826 if test "x${with_xft}" != "xno"; then
13827
13828
13829 succeeded=no
13830
13831 # Extract the first word of "pkg-config", so it can be a program name with args.
13832 set dummy pkg-config; ac_word=$2
13833 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13834 $as_echo_n "checking for $ac_word... " >&6; }
13835 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13836 $as_echo_n "(cached) " >&6
13837 else
13838 case $PKG_CONFIG in
13839 [\\/]* | ?:[\\/]*)
13840 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13841 ;;
13842 *)
13843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13844 for as_dir in $PATH
13845 do
13846 IFS=$as_save_IFS
13847 test -z "$as_dir" && as_dir=.
13848 for ac_exec_ext in '' $ac_executable_extensions; do
13849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13850 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13851 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13852 break 2
13853 fi
13854 done
13855 done
13856 IFS=$as_save_IFS
13857
13858 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13859 ;;
13860 esac
13861 fi
13862 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13863 if test -n "$PKG_CONFIG"; then
13864 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13865 $as_echo "$PKG_CONFIG" >&6; }
13866 else
13867 { $as_echo "$as_me:$LINENO: result: no" >&5
13868 $as_echo "no" >&6; }
13869 fi
13870
13871
13872
13873 if test "$PKG_CONFIG" = "no" ; then
13874 HAVE_XFT=no
13875 else
13876 PKG_CONFIG_MIN_VERSION=0.9.0
13877 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13878 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13879 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13880
13881 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13882 { $as_echo "$as_me:$LINENO: result: yes" >&5
13883 $as_echo "yes" >&6; }
13884 succeeded=yes
13885
13886 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13887 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13888 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13889 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13890 $as_echo "$XFT_CFLAGS" >&6; }
13891
13892 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13893 $as_echo_n "checking XFT_LIBS... " >&6; }
13894 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13895 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13896 $as_echo "$XFT_LIBS" >&6; }
13897 else
13898 { $as_echo "$as_me:$LINENO: result: no" >&5
13899 $as_echo "no" >&6; }
13900 XFT_CFLAGS=""
13901 XFT_LIBS=""
13902 ## If we have a custom action on failure, don't print errors, but
13903 ## do set a variable so people can do so.
13904 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13905
13906 fi
13907
13908
13909
13910 else
13911 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13912 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13913 fi
13914 fi
13915
13916 if test $succeeded = yes; then
13917 :
13918 else
13919 HAVE_XFT=no
13920 fi
13921
13922 ## Because xftfont.c uses XRenderQueryExtension, we also
13923 ## need to link to -lXrender.
13924 HAVE_XRENDER=no
13925 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
13926 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13927 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
13928 $as_echo_n "(cached) " >&6
13929 else
13930 ac_check_lib_save_LIBS=$LIBS
13931 LIBS="-lXrender $LIBS"
13932 cat >conftest.$ac_ext <<_ACEOF
13933 /* confdefs.h. */
13934 _ACEOF
13935 cat confdefs.h >>conftest.$ac_ext
13936 cat >>conftest.$ac_ext <<_ACEOF
13937 /* end confdefs.h. */
13938
13939 /* Override any GCC internal prototype to avoid an error.
13940 Use char because int might match the return type of a GCC
13941 builtin and then its argument prototype would still apply. */
13942 #ifdef __cplusplus
13943 extern "C"
13944 #endif
13945 char XRenderQueryExtension ();
13946 int
13947 main ()
13948 {
13949 return XRenderQueryExtension ();
13950 ;
13951 return 0;
13952 }
13953 _ACEOF
13954 rm -f conftest.$ac_objext conftest$ac_exeext
13955 if { (ac_try="$ac_link"
13956 case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13959 esac
13960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13961 $as_echo "$ac_try_echo") >&5
13962 (eval "$ac_link") 2>conftest.er1
13963 ac_status=$?
13964 grep -v '^ *+' conftest.er1 >conftest.err
13965 rm -f conftest.er1
13966 cat conftest.err >&5
13967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); } && {
13969 test -z "$ac_c_werror_flag" ||
13970 test ! -s conftest.err
13971 } && test -s conftest$ac_exeext && {
13972 test "$cross_compiling" = yes ||
13973 $as_test_x conftest$ac_exeext
13974 }; then
13975 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13976 else
13977 $as_echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13979
13980 ac_cv_lib_Xrender_XRenderQueryExtension=no
13981 fi
13982
13983 rm -rf conftest.dSYM
13984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13985 conftest$ac_exeext conftest.$ac_ext
13986 LIBS=$ac_check_lib_save_LIBS
13987 fi
13988 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13989 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13990 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
13991 HAVE_XRENDER=yes
13992 fi
13993
13994 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13995 OLD_CPPFLAGS="$CPPFLAGS"
13996 OLD_CFLAGS="$CFLAGS"
13997 OLD_LIBS="$LIBS"
13998 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13999 CFLAGS="$CFLAGS $XFT_CFLAGS"
14000 XFT_LIBS="-lXrender $XFT_LIBS"
14001 LIBS="$XFT_LIBS $LIBS"
14002 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14003 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14004 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14005 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14006 $as_echo_n "(cached) " >&6
14007 fi
14008 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14009 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14010 else
14011 # Is the header compilable?
14012 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14013 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14014 cat >conftest.$ac_ext <<_ACEOF
14015 /* confdefs.h. */
14016 _ACEOF
14017 cat confdefs.h >>conftest.$ac_ext
14018 cat >>conftest.$ac_ext <<_ACEOF
14019 /* end confdefs.h. */
14020 $ac_includes_default
14021 #include <X11/Xft/Xft.h>
14022 _ACEOF
14023 rm -f conftest.$ac_objext
14024 if { (ac_try="$ac_compile"
14025 case "(($ac_try" in
14026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14027 *) ac_try_echo=$ac_try;;
14028 esac
14029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14030 $as_echo "$ac_try_echo") >&5
14031 (eval "$ac_compile") 2>conftest.er1
14032 ac_status=$?
14033 grep -v '^ *+' conftest.er1 >conftest.err
14034 rm -f conftest.er1
14035 cat conftest.err >&5
14036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } && {
14038 test -z "$ac_c_werror_flag" ||
14039 test ! -s conftest.err
14040 } && test -s conftest.$ac_objext; then
14041 ac_header_compiler=yes
14042 else
14043 $as_echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14045
14046 ac_header_compiler=no
14047 fi
14048
14049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14050 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14051 $as_echo "$ac_header_compiler" >&6; }
14052
14053 # Is the header present?
14054 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14055 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14056 cat >conftest.$ac_ext <<_ACEOF
14057 /* confdefs.h. */
14058 _ACEOF
14059 cat confdefs.h >>conftest.$ac_ext
14060 cat >>conftest.$ac_ext <<_ACEOF
14061 /* end confdefs.h. */
14062 #include <X11/Xft/Xft.h>
14063 _ACEOF
14064 if { (ac_try="$ac_cpp conftest.$ac_ext"
14065 case "(($ac_try" in
14066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14067 *) ac_try_echo=$ac_try;;
14068 esac
14069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14070 $as_echo "$ac_try_echo") >&5
14071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14072 ac_status=$?
14073 grep -v '^ *+' conftest.er1 >conftest.err
14074 rm -f conftest.er1
14075 cat conftest.err >&5
14076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); } >/dev/null && {
14078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14079 test ! -s conftest.err
14080 }; then
14081 ac_header_preproc=yes
14082 else
14083 $as_echo "$as_me: failed program was:" >&5
14084 sed 's/^/| /' conftest.$ac_ext >&5
14085
14086 ac_header_preproc=no
14087 fi
14088
14089 rm -f conftest.err conftest.$ac_ext
14090 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14091 $as_echo "$ac_header_preproc" >&6; }
14092
14093 # So? What about this header?
14094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14095 yes:no: )
14096 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14097 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14098 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14099 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14100 ac_header_preproc=yes
14101 ;;
14102 no:yes:* )
14103 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14104 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14105 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14106 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14107 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14108 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14109 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14110 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14111 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14112 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14113 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14114 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14115
14116 ;;
14117 esac
14118 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14119 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14120 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14121 $as_echo_n "(cached) " >&6
14122 else
14123 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14124 fi
14125 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14126 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14127
14128 fi
14129 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14130 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14131 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14132 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14133 $as_echo_n "(cached) " >&6
14134 else
14135 ac_check_lib_save_LIBS=$LIBS
14136 LIBS="-lXft $XFT_LIBS $LIBS"
14137 cat >conftest.$ac_ext <<_ACEOF
14138 /* confdefs.h. */
14139 _ACEOF
14140 cat confdefs.h >>conftest.$ac_ext
14141 cat >>conftest.$ac_ext <<_ACEOF
14142 /* end confdefs.h. */
14143
14144 /* Override any GCC internal prototype to avoid an error.
14145 Use char because int might match the return type of a GCC
14146 builtin and then its argument prototype would still apply. */
14147 #ifdef __cplusplus
14148 extern "C"
14149 #endif
14150 char XftFontOpen ();
14151 int
14152 main ()
14153 {
14154 return XftFontOpen ();
14155 ;
14156 return 0;
14157 }
14158 _ACEOF
14159 rm -f conftest.$ac_objext conftest$ac_exeext
14160 if { (ac_try="$ac_link"
14161 case "(($ac_try" in
14162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163 *) ac_try_echo=$ac_try;;
14164 esac
14165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14166 $as_echo "$ac_try_echo") >&5
14167 (eval "$ac_link") 2>conftest.er1
14168 ac_status=$?
14169 grep -v '^ *+' conftest.er1 >conftest.err
14170 rm -f conftest.er1
14171 cat conftest.err >&5
14172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } && {
14174 test -z "$ac_c_werror_flag" ||
14175 test ! -s conftest.err
14176 } && test -s conftest$ac_exeext && {
14177 test "$cross_compiling" = yes ||
14178 $as_test_x conftest$ac_exeext
14179 }; then
14180 ac_cv_lib_Xft_XftFontOpen=yes
14181 else
14182 $as_echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14184
14185 ac_cv_lib_Xft_XftFontOpen=no
14186 fi
14187
14188 rm -rf conftest.dSYM
14189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14190 conftest$ac_exeext conftest.$ac_ext
14191 LIBS=$ac_check_lib_save_LIBS
14192 fi
14193 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14194 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14195 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14196 HAVE_XFT=yes
14197 fi
14198
14199 fi
14200
14201
14202
14203 if test "${HAVE_XFT}" = "yes"; then
14204
14205 cat >>confdefs.h <<\_ACEOF
14206 #define HAVE_XFT 1
14207 _ACEOF
14208
14209
14210 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14211 else
14212 CPPFLAGS="$OLD_CPPFLAGS"
14213 CFLAGS="$OLD_CFLAGS"
14214 LIBS="$OLD_LIBS"
14215 fi # "${HAVE_XFT}" = "yes"
14216 fi # "$HAVE_XFT" != no
14217 fi # "x${with_xft}" != "xno"
14218
14219 if test "$HAVE_XFT" != "yes"; then
14220 HAVE_XFT=no
14221 fi
14222
14223
14224 HAVE_FREETYPE=no
14225 ## We used to allow building with FreeType and without Xft.
14226 ## However, the ftx font backend driver is not in good shape.
14227 if test "${HAVE_XFT}" = "yes"; then
14228 HAVE_FREETYPE=yes
14229 FONTCONFIG_CFLAGS=
14230 FONTCONFIG_LIBS=
14231 fi
14232
14233 HAVE_LIBOTF=no
14234 if test "${HAVE_FREETYPE}" = "yes"; then
14235
14236 cat >>confdefs.h <<\_ACEOF
14237 #define HAVE_FREETYPE 1
14238 _ACEOF
14239
14240 if test "${with_libotf}" != "no"; then
14241
14242 succeeded=no
14243
14244 # Extract the first word of "pkg-config", so it can be a program name with args.
14245 set dummy pkg-config; ac_word=$2
14246 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14247 $as_echo_n "checking for $ac_word... " >&6; }
14248 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14249 $as_echo_n "(cached) " >&6
14250 else
14251 case $PKG_CONFIG in
14252 [\\/]* | ?:[\\/]*)
14253 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14254 ;;
14255 *)
14256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14257 for as_dir in $PATH
14258 do
14259 IFS=$as_save_IFS
14260 test -z "$as_dir" && as_dir=.
14261 for ac_exec_ext in '' $ac_executable_extensions; do
14262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14263 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14265 break 2
14266 fi
14267 done
14268 done
14269 IFS=$as_save_IFS
14270
14271 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14272 ;;
14273 esac
14274 fi
14275 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14276 if test -n "$PKG_CONFIG"; then
14277 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14278 $as_echo "$PKG_CONFIG" >&6; }
14279 else
14280 { $as_echo "$as_me:$LINENO: result: no" >&5
14281 $as_echo "no" >&6; }
14282 fi
14283
14284
14285
14286 if test "$PKG_CONFIG" = "no" ; then
14287 HAVE_LIBOTF=no
14288 else
14289 PKG_CONFIG_MIN_VERSION=0.9.0
14290 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14291 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14292 $as_echo_n "checking for libotf... " >&6; }
14293
14294 if $PKG_CONFIG --exists "libotf" 2>&5; then
14295 { $as_echo "$as_me:$LINENO: result: yes" >&5
14296 $as_echo "yes" >&6; }
14297 succeeded=yes
14298
14299 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14300 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14301 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14302 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14303 $as_echo "$LIBOTF_CFLAGS" >&6; }
14304
14305 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14306 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14307 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14308 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14309 $as_echo "$LIBOTF_LIBS" >&6; }
14310 else
14311 { $as_echo "$as_me:$LINENO: result: no" >&5
14312 $as_echo "no" >&6; }
14313 LIBOTF_CFLAGS=""
14314 LIBOTF_LIBS=""
14315 ## If we have a custom action on failure, don't print errors, but
14316 ## do set a variable so people can do so.
14317 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14318
14319 fi
14320
14321
14322
14323 else
14324 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14325 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14326 fi
14327 fi
14328
14329 if test $succeeded = yes; then
14330 HAVE_LIBOTF=yes
14331 else
14332 HAVE_LIBOTF=no
14333 fi
14334
14335 if test "$HAVE_LIBOTF" = "yes"; then
14336
14337 cat >>confdefs.h <<\_ACEOF
14338 #define HAVE_LIBOTF 1
14339 _ACEOF
14340
14341 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14342 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14343 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14344 $as_echo_n "(cached) " >&6
14345 else
14346 ac_check_lib_save_LIBS=$LIBS
14347 LIBS="-lotf $LIBS"
14348 cat >conftest.$ac_ext <<_ACEOF
14349 /* confdefs.h. */
14350 _ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h. */
14354
14355 /* Override any GCC internal prototype to avoid an error.
14356 Use char because int might match the return type of a GCC
14357 builtin and then its argument prototype would still apply. */
14358 #ifdef __cplusplus
14359 extern "C"
14360 #endif
14361 char OTF_get_variation_glyphs ();
14362 int
14363 main ()
14364 {
14365 return OTF_get_variation_glyphs ();
14366 ;
14367 return 0;
14368 }
14369 _ACEOF
14370 rm -f conftest.$ac_objext conftest$ac_exeext
14371 if { (ac_try="$ac_link"
14372 case "(($ac_try" in
14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374 *) ac_try_echo=$ac_try;;
14375 esac
14376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14377 $as_echo "$ac_try_echo") >&5
14378 (eval "$ac_link") 2>conftest.er1
14379 ac_status=$?
14380 grep -v '^ *+' conftest.er1 >conftest.err
14381 rm -f conftest.er1
14382 cat conftest.err >&5
14383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } && {
14385 test -z "$ac_c_werror_flag" ||
14386 test ! -s conftest.err
14387 } && test -s conftest$ac_exeext && {
14388 test "$cross_compiling" = yes ||
14389 $as_test_x conftest$ac_exeext
14390 }; then
14391 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14392 else
14393 $as_echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14395
14396 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14397 fi
14398
14399 rm -rf conftest.dSYM
14400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14401 conftest$ac_exeext conftest.$ac_ext
14402 LIBS=$ac_check_lib_save_LIBS
14403 fi
14404 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14405 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14406 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14407 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14408 else
14409 HAVE_OTF_GET_VARIATION_GLYPHS=no
14410 fi
14411
14412 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14413
14414 cat >>confdefs.h <<\_ACEOF
14415 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14416 _ACEOF
14417
14418 fi
14419 fi
14420 fi
14421 fi
14422
14423 HAVE_M17N_FLT=no
14424 if test "${HAVE_LIBOTF}" = yes; then
14425 if test "${with_m17n_flt}" != "no"; then
14426
14427 succeeded=no
14428
14429 # Extract the first word of "pkg-config", so it can be a program name with args.
14430 set dummy pkg-config; ac_word=$2
14431 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14432 $as_echo_n "checking for $ac_word... " >&6; }
14433 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14434 $as_echo_n "(cached) " >&6
14435 else
14436 case $PKG_CONFIG in
14437 [\\/]* | ?:[\\/]*)
14438 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14439 ;;
14440 *)
14441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14442 for as_dir in $PATH
14443 do
14444 IFS=$as_save_IFS
14445 test -z "$as_dir" && as_dir=.
14446 for ac_exec_ext in '' $ac_executable_extensions; do
14447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14448 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14449 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14450 break 2
14451 fi
14452 done
14453 done
14454 IFS=$as_save_IFS
14455
14456 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14457 ;;
14458 esac
14459 fi
14460 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14461 if test -n "$PKG_CONFIG"; then
14462 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14463 $as_echo "$PKG_CONFIG" >&6; }
14464 else
14465 { $as_echo "$as_me:$LINENO: result: no" >&5
14466 $as_echo "no" >&6; }
14467 fi
14468
14469
14470
14471 if test "$PKG_CONFIG" = "no" ; then
14472 HAVE_M17N_FLT=no
14473 else
14474 PKG_CONFIG_MIN_VERSION=0.9.0
14475 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14476 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14477 $as_echo_n "checking for m17n-flt... " >&6; }
14478
14479 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14480 { $as_echo "$as_me:$LINENO: result: yes" >&5
14481 $as_echo "yes" >&6; }
14482 succeeded=yes
14483
14484 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14485 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14486 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14487 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14488 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14489
14490 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14491 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14492 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14493 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14494 $as_echo "$M17N_FLT_LIBS" >&6; }
14495 else
14496 { $as_echo "$as_me:$LINENO: result: no" >&5
14497 $as_echo "no" >&6; }
14498 M17N_FLT_CFLAGS=""
14499 M17N_FLT_LIBS=""
14500 ## If we have a custom action on failure, don't print errors, but
14501 ## do set a variable so people can do so.
14502 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14503
14504 fi
14505
14506
14507
14508 else
14509 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14510 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14511 fi
14512 fi
14513
14514 if test $succeeded = yes; then
14515 HAVE_M17N_FLT=yes
14516 else
14517 HAVE_M17N_FLT=no
14518 fi
14519
14520 if test "$HAVE_M17N_FLT" = "yes"; then
14521
14522 cat >>confdefs.h <<\_ACEOF
14523 #define HAVE_M17N_FLT 1
14524 _ACEOF
14525
14526 fi
14527 fi
14528 fi
14529 else
14530 HAVE_XFT=no
14531 HAVE_FREETYPE=no
14532 HAVE_LIBOTF=no
14533 HAVE_M17N_FLT=no
14534 fi
14535
14536 FONT_OBJ=xfont.o
14537 if test "$HAVE_XFT" = "yes"; then
14538 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14539 elif test "$HAVE_FREETYPE" = "yes"; then
14540 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14541 fi
14542
14543
14544 ### End of font-backend (under X11) section.
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555 ### Use -lXpm if available, unless `--with-xpm=no'.
14556 HAVE_XPM=no
14557 LIBXPM=
14558 if test "${HAVE_X11}" = "yes"; then
14559 if test "${with_xpm}" != "no"; then
14560 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14561 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14562 $as_echo_n "checking for X11/xpm.h... " >&6; }
14563 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14564 $as_echo_n "(cached) " >&6
14565 fi
14566 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14567 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14568 else
14569 # Is the header compilable?
14570 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14571 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14572 cat >conftest.$ac_ext <<_ACEOF
14573 /* confdefs.h. */
14574 _ACEOF
14575 cat confdefs.h >>conftest.$ac_ext
14576 cat >>conftest.$ac_ext <<_ACEOF
14577 /* end confdefs.h. */
14578 $ac_includes_default
14579 #include <X11/xpm.h>
14580 _ACEOF
14581 rm -f conftest.$ac_objext
14582 if { (ac_try="$ac_compile"
14583 case "(($ac_try" in
14584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14585 *) ac_try_echo=$ac_try;;
14586 esac
14587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14588 $as_echo "$ac_try_echo") >&5
14589 (eval "$ac_compile") 2>conftest.er1
14590 ac_status=$?
14591 grep -v '^ *+' conftest.er1 >conftest.err
14592 rm -f conftest.er1
14593 cat conftest.err >&5
14594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } && {
14596 test -z "$ac_c_werror_flag" ||
14597 test ! -s conftest.err
14598 } && test -s conftest.$ac_objext; then
14599 ac_header_compiler=yes
14600 else
14601 $as_echo "$as_me: failed program was:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14603
14604 ac_header_compiler=no
14605 fi
14606
14607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14608 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14609 $as_echo "$ac_header_compiler" >&6; }
14610
14611 # Is the header present?
14612 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14613 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14614 cat >conftest.$ac_ext <<_ACEOF
14615 /* confdefs.h. */
14616 _ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h. */
14620 #include <X11/xpm.h>
14621 _ACEOF
14622 if { (ac_try="$ac_cpp conftest.$ac_ext"
14623 case "(($ac_try" in
14624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625 *) ac_try_echo=$ac_try;;
14626 esac
14627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14628 $as_echo "$ac_try_echo") >&5
14629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14630 ac_status=$?
14631 grep -v '^ *+' conftest.er1 >conftest.err
14632 rm -f conftest.er1
14633 cat conftest.err >&5
14634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); } >/dev/null && {
14636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14637 test ! -s conftest.err
14638 }; then
14639 ac_header_preproc=yes
14640 else
14641 $as_echo "$as_me: failed program was:" >&5
14642 sed 's/^/| /' conftest.$ac_ext >&5
14643
14644 ac_header_preproc=no
14645 fi
14646
14647 rm -f conftest.err conftest.$ac_ext
14648 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14649 $as_echo "$ac_header_preproc" >&6; }
14650
14651 # So? What about this header?
14652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14653 yes:no: )
14654 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14655 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14656 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14657 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14658 ac_header_preproc=yes
14659 ;;
14660 no:yes:* )
14661 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14662 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14663 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14664 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14665 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14666 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14667 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14668 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14669 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14670 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14671 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14672 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14673
14674 ;;
14675 esac
14676 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14677 $as_echo_n "checking for X11/xpm.h... " >&6; }
14678 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14679 $as_echo_n "(cached) " >&6
14680 else
14681 ac_cv_header_X11_xpm_h=$ac_header_preproc
14682 fi
14683 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14684 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14685
14686 fi
14687 if test $ac_cv_header_X11_xpm_h = yes; then
14688 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14689 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14690 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14691 $as_echo_n "(cached) " >&6
14692 else
14693 ac_check_lib_save_LIBS=$LIBS
14694 LIBS="-lXpm -lX11 $LIBS"
14695 cat >conftest.$ac_ext <<_ACEOF
14696 /* confdefs.h. */
14697 _ACEOF
14698 cat confdefs.h >>conftest.$ac_ext
14699 cat >>conftest.$ac_ext <<_ACEOF
14700 /* end confdefs.h. */
14701
14702 /* Override any GCC internal prototype to avoid an error.
14703 Use char because int might match the return type of a GCC
14704 builtin and then its argument prototype would still apply. */
14705 #ifdef __cplusplus
14706 extern "C"
14707 #endif
14708 char XpmReadFileToPixmap ();
14709 int
14710 main ()
14711 {
14712 return XpmReadFileToPixmap ();
14713 ;
14714 return 0;
14715 }
14716 _ACEOF
14717 rm -f conftest.$ac_objext conftest$ac_exeext
14718 if { (ac_try="$ac_link"
14719 case "(($ac_try" in
14720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14721 *) ac_try_echo=$ac_try;;
14722 esac
14723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14724 $as_echo "$ac_try_echo") >&5
14725 (eval "$ac_link") 2>conftest.er1
14726 ac_status=$?
14727 grep -v '^ *+' conftest.er1 >conftest.err
14728 rm -f conftest.er1
14729 cat conftest.err >&5
14730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } && {
14732 test -z "$ac_c_werror_flag" ||
14733 test ! -s conftest.err
14734 } && test -s conftest$ac_exeext && {
14735 test "$cross_compiling" = yes ||
14736 $as_test_x conftest$ac_exeext
14737 }; then
14738 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14739 else
14740 $as_echo "$as_me: failed program was:" >&5
14741 sed 's/^/| /' conftest.$ac_ext >&5
14742
14743 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14744 fi
14745
14746 rm -rf conftest.dSYM
14747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14748 conftest$ac_exeext conftest.$ac_ext
14749 LIBS=$ac_check_lib_save_LIBS
14750 fi
14751 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14752 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14753 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14754 HAVE_XPM=yes
14755 fi
14756
14757 fi
14758
14759
14760 if test "${HAVE_XPM}" = "yes"; then
14761 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14762 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14763 cat >conftest.$ac_ext <<_ACEOF
14764 /* confdefs.h. */
14765 _ACEOF
14766 cat confdefs.h >>conftest.$ac_ext
14767 cat >>conftest.$ac_ext <<_ACEOF
14768 /* end confdefs.h. */
14769 #include "X11/xpm.h"
14770 #ifndef XpmReturnAllocPixels
14771 no_return_alloc_pixels
14772 #endif
14773
14774 _ACEOF
14775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14776 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14777 HAVE_XPM=no
14778 else
14779 HAVE_XPM=yes
14780 fi
14781 rm -f conftest*
14782
14783
14784 if test "${HAVE_XPM}" = "yes"; then
14785 { $as_echo "$as_me:$LINENO: result: yes" >&5
14786 $as_echo "yes" >&6; }
14787 else
14788 { $as_echo "$as_me:$LINENO: result: no" >&5
14789 $as_echo "no" >&6; }
14790 fi
14791 fi
14792 fi
14793
14794 if test "${HAVE_XPM}" = "yes"; then
14795
14796 cat >>confdefs.h <<\_ACEOF
14797 #define HAVE_XPM 1
14798 _ACEOF
14799
14800 LIBXPM=-lXpm
14801 fi
14802 fi
14803
14804
14805 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14806 HAVE_JPEG=no
14807 LIBJPEG=
14808 if test "${HAVE_X11}" = "yes"; then
14809 if test "${with_jpeg}" != "no"; then
14810 if test "${ac_cv_header_jerror_h+set}" = set; then
14811 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14812 $as_echo_n "checking for jerror.h... " >&6; }
14813 if test "${ac_cv_header_jerror_h+set}" = set; then
14814 $as_echo_n "(cached) " >&6
14815 fi
14816 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14817 $as_echo "$ac_cv_header_jerror_h" >&6; }
14818 else
14819 # Is the header compilable?
14820 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14821 $as_echo_n "checking jerror.h usability... " >&6; }
14822 cat >conftest.$ac_ext <<_ACEOF
14823 /* confdefs.h. */
14824 _ACEOF
14825 cat confdefs.h >>conftest.$ac_ext
14826 cat >>conftest.$ac_ext <<_ACEOF
14827 /* end confdefs.h. */
14828 $ac_includes_default
14829 #include <jerror.h>
14830 _ACEOF
14831 rm -f conftest.$ac_objext
14832 if { (ac_try="$ac_compile"
14833 case "(($ac_try" in
14834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835 *) ac_try_echo=$ac_try;;
14836 esac
14837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14838 $as_echo "$ac_try_echo") >&5
14839 (eval "$ac_compile") 2>conftest.er1
14840 ac_status=$?
14841 grep -v '^ *+' conftest.er1 >conftest.err
14842 rm -f conftest.er1
14843 cat conftest.err >&5
14844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } && {
14846 test -z "$ac_c_werror_flag" ||
14847 test ! -s conftest.err
14848 } && test -s conftest.$ac_objext; then
14849 ac_header_compiler=yes
14850 else
14851 $as_echo "$as_me: failed program was:" >&5
14852 sed 's/^/| /' conftest.$ac_ext >&5
14853
14854 ac_header_compiler=no
14855 fi
14856
14857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14858 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14859 $as_echo "$ac_header_compiler" >&6; }
14860
14861 # Is the header present?
14862 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14863 $as_echo_n "checking jerror.h presence... " >&6; }
14864 cat >conftest.$ac_ext <<_ACEOF
14865 /* confdefs.h. */
14866 _ACEOF
14867 cat confdefs.h >>conftest.$ac_ext
14868 cat >>conftest.$ac_ext <<_ACEOF
14869 /* end confdefs.h. */
14870 #include <jerror.h>
14871 _ACEOF
14872 if { (ac_try="$ac_cpp conftest.$ac_ext"
14873 case "(($ac_try" in
14874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14875 *) ac_try_echo=$ac_try;;
14876 esac
14877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14878 $as_echo "$ac_try_echo") >&5
14879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14880 ac_status=$?
14881 grep -v '^ *+' conftest.er1 >conftest.err
14882 rm -f conftest.er1
14883 cat conftest.err >&5
14884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } >/dev/null && {
14886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14887 test ! -s conftest.err
14888 }; then
14889 ac_header_preproc=yes
14890 else
14891 $as_echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14893
14894 ac_header_preproc=no
14895 fi
14896
14897 rm -f conftest.err conftest.$ac_ext
14898 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14899 $as_echo "$ac_header_preproc" >&6; }
14900
14901 # So? What about this header?
14902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14903 yes:no: )
14904 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14905 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14906 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14907 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14908 ac_header_preproc=yes
14909 ;;
14910 no:yes:* )
14911 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14912 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14913 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14914 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14915 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14916 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14917 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14918 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14919 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14920 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14921 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14922 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14923
14924 ;;
14925 esac
14926 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14927 $as_echo_n "checking for jerror.h... " >&6; }
14928 if test "${ac_cv_header_jerror_h+set}" = set; then
14929 $as_echo_n "(cached) " >&6
14930 else
14931 ac_cv_header_jerror_h=$ac_header_preproc
14932 fi
14933 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14934 $as_echo "$ac_cv_header_jerror_h" >&6; }
14935
14936 fi
14937 if test $ac_cv_header_jerror_h = yes; then
14938 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14939 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14940 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14941 $as_echo_n "(cached) " >&6
14942 else
14943 ac_check_lib_save_LIBS=$LIBS
14944 LIBS="-ljpeg $LIBS"
14945 cat >conftest.$ac_ext <<_ACEOF
14946 /* confdefs.h. */
14947 _ACEOF
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h. */
14951
14952 /* Override any GCC internal prototype to avoid an error.
14953 Use char because int might match the return type of a GCC
14954 builtin and then its argument prototype would still apply. */
14955 #ifdef __cplusplus
14956 extern "C"
14957 #endif
14958 char jpeg_destroy_compress ();
14959 int
14960 main ()
14961 {
14962 return jpeg_destroy_compress ();
14963 ;
14964 return 0;
14965 }
14966 _ACEOF
14967 rm -f conftest.$ac_objext conftest$ac_exeext
14968 if { (ac_try="$ac_link"
14969 case "(($ac_try" in
14970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971 *) ac_try_echo=$ac_try;;
14972 esac
14973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14974 $as_echo "$ac_try_echo") >&5
14975 (eval "$ac_link") 2>conftest.er1
14976 ac_status=$?
14977 grep -v '^ *+' conftest.er1 >conftest.err
14978 rm -f conftest.er1
14979 cat conftest.err >&5
14980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } && {
14982 test -z "$ac_c_werror_flag" ||
14983 test ! -s conftest.err
14984 } && test -s conftest$ac_exeext && {
14985 test "$cross_compiling" = yes ||
14986 $as_test_x conftest$ac_exeext
14987 }; then
14988 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14989 else
14990 $as_echo "$as_me: failed program was:" >&5
14991 sed 's/^/| /' conftest.$ac_ext >&5
14992
14993 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14994 fi
14995
14996 rm -rf conftest.dSYM
14997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14998 conftest$ac_exeext conftest.$ac_ext
14999 LIBS=$ac_check_lib_save_LIBS
15000 fi
15001 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15002 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15003 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
15004 HAVE_JPEG=yes
15005 fi
15006
15007 fi
15008
15009
15010 fi
15011
15012
15013 if test "${HAVE_JPEG}" = "yes"; then
15014 cat >>confdefs.h <<\_ACEOF
15015 #define HAVE_JPEG 1
15016 _ACEOF
15017
15018 cat >conftest.$ac_ext <<_ACEOF
15019 /* confdefs.h. */
15020 _ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h. */
15024 #include <jpeglib.h>
15025 version=JPEG_LIB_VERSION
15026
15027 _ACEOF
15028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15029 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15030 cat >>confdefs.h <<\_ACEOF
15031 #define HAVE_JPEG 1
15032 _ACEOF
15033
15034 else
15035 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
15036 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
15037 HAVE_JPEG=no
15038 fi
15039 rm -f conftest*
15040
15041 fi
15042 if test "${HAVE_JPEG}" = "yes"; then
15043 LIBJPEG=-ljpeg
15044 fi
15045 fi
15046
15047
15048 ### Use -lpng if available, unless `--with-png=no'.
15049 HAVE_PNG=no
15050 LIBPNG=
15051 if test "${HAVE_X11}" = "yes"; then
15052 if test "${with_png}" != "no"; then
15053 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15054 # in /usr/include/libpng.
15055
15056
15057 for ac_header in png.h libpng/png.h
15058 do
15059 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15061 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15062 $as_echo_n "checking for $ac_header... " >&6; }
15063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15064 $as_echo_n "(cached) " >&6
15065 fi
15066 ac_res=`eval 'as_val=${'$as_ac_Header'}
15067 $as_echo "$as_val"'`
15068 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15069 $as_echo "$ac_res" >&6; }
15070 else
15071 # Is the header compilable?
15072 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15073 $as_echo_n "checking $ac_header usability... " >&6; }
15074 cat >conftest.$ac_ext <<_ACEOF
15075 /* confdefs.h. */
15076 _ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15080 $ac_includes_default
15081 #include <$ac_header>
15082 _ACEOF
15083 rm -f conftest.$ac_objext
15084 if { (ac_try="$ac_compile"
15085 case "(($ac_try" in
15086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087 *) ac_try_echo=$ac_try;;
15088 esac
15089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15090 $as_echo "$ac_try_echo") >&5
15091 (eval "$ac_compile") 2>conftest.er1
15092 ac_status=$?
15093 grep -v '^ *+' conftest.er1 >conftest.err
15094 rm -f conftest.er1
15095 cat conftest.err >&5
15096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); } && {
15098 test -z "$ac_c_werror_flag" ||
15099 test ! -s conftest.err
15100 } && test -s conftest.$ac_objext; then
15101 ac_header_compiler=yes
15102 else
15103 $as_echo "$as_me: failed program was:" >&5
15104 sed 's/^/| /' conftest.$ac_ext >&5
15105
15106 ac_header_compiler=no
15107 fi
15108
15109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15110 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15111 $as_echo "$ac_header_compiler" >&6; }
15112
15113 # Is the header present?
15114 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15115 $as_echo_n "checking $ac_header presence... " >&6; }
15116 cat >conftest.$ac_ext <<_ACEOF
15117 /* confdefs.h. */
15118 _ACEOF
15119 cat confdefs.h >>conftest.$ac_ext
15120 cat >>conftest.$ac_ext <<_ACEOF
15121 /* end confdefs.h. */
15122 #include <$ac_header>
15123 _ACEOF
15124 if { (ac_try="$ac_cpp conftest.$ac_ext"
15125 case "(($ac_try" in
15126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15127 *) ac_try_echo=$ac_try;;
15128 esac
15129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15130 $as_echo "$ac_try_echo") >&5
15131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15132 ac_status=$?
15133 grep -v '^ *+' conftest.er1 >conftest.err
15134 rm -f conftest.er1
15135 cat conftest.err >&5
15136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } >/dev/null && {
15138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15139 test ! -s conftest.err
15140 }; then
15141 ac_header_preproc=yes
15142 else
15143 $as_echo "$as_me: failed program was:" >&5
15144 sed 's/^/| /' conftest.$ac_ext >&5
15145
15146 ac_header_preproc=no
15147 fi
15148
15149 rm -f conftest.err conftest.$ac_ext
15150 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15151 $as_echo "$ac_header_preproc" >&6; }
15152
15153 # So? What about this header?
15154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15155 yes:no: )
15156 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15157 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15159 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15160 ac_header_preproc=yes
15161 ;;
15162 no:yes:* )
15163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15164 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15166 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15168 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15169 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15170 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15171 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15172 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15173 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15174 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15175
15176 ;;
15177 esac
15178 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15179 $as_echo_n "checking for $ac_header... " >&6; }
15180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15181 $as_echo_n "(cached) " >&6
15182 else
15183 eval "$as_ac_Header=\$ac_header_preproc"
15184 fi
15185 ac_res=`eval 'as_val=${'$as_ac_Header'}
15186 $as_echo "$as_val"'`
15187 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15188 $as_echo "$ac_res" >&6; }
15189
15190 fi
15191 if test `eval 'as_val=${'$as_ac_Header'}
15192 $as_echo "$as_val"'` = yes; then
15193 cat >>confdefs.h <<_ACEOF
15194 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15195 _ACEOF
15196
15197 fi
15198
15199 done
15200
15201 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15202 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15203 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15204 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15205 $as_echo_n "(cached) " >&6
15206 else
15207 ac_check_lib_save_LIBS=$LIBS
15208 LIBS="-lpng -lz -lm $LIBS"
15209 cat >conftest.$ac_ext <<_ACEOF
15210 /* confdefs.h. */
15211 _ACEOF
15212 cat confdefs.h >>conftest.$ac_ext
15213 cat >>conftest.$ac_ext <<_ACEOF
15214 /* end confdefs.h. */
15215
15216 /* Override any GCC internal prototype to avoid an error.
15217 Use char because int might match the return type of a GCC
15218 builtin and then its argument prototype would still apply. */
15219 #ifdef __cplusplus
15220 extern "C"
15221 #endif
15222 char png_get_channels ();
15223 int
15224 main ()
15225 {
15226 return png_get_channels ();
15227 ;
15228 return 0;
15229 }
15230 _ACEOF
15231 rm -f conftest.$ac_objext conftest$ac_exeext
15232 if { (ac_try="$ac_link"
15233 case "(($ac_try" in
15234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15235 *) ac_try_echo=$ac_try;;
15236 esac
15237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15238 $as_echo "$ac_try_echo") >&5
15239 (eval "$ac_link") 2>conftest.er1
15240 ac_status=$?
15241 grep -v '^ *+' conftest.er1 >conftest.err
15242 rm -f conftest.er1
15243 cat conftest.err >&5
15244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); } && {
15246 test -z "$ac_c_werror_flag" ||
15247 test ! -s conftest.err
15248 } && test -s conftest$ac_exeext && {
15249 test "$cross_compiling" = yes ||
15250 $as_test_x conftest$ac_exeext
15251 }; then
15252 ac_cv_lib_png_png_get_channels=yes
15253 else
15254 $as_echo "$as_me: failed program was:" >&5
15255 sed 's/^/| /' conftest.$ac_ext >&5
15256
15257 ac_cv_lib_png_png_get_channels=no
15258 fi
15259
15260 rm -rf conftest.dSYM
15261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15262 conftest$ac_exeext conftest.$ac_ext
15263 LIBS=$ac_check_lib_save_LIBS
15264 fi
15265 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15266 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15267 if test $ac_cv_lib_png_png_get_channels = yes; then
15268 HAVE_PNG=yes
15269 fi
15270
15271 fi
15272 fi
15273
15274 if test "${HAVE_PNG}" = "yes"; then
15275
15276 cat >>confdefs.h <<\_ACEOF
15277 #define HAVE_PNG 1
15278 _ACEOF
15279
15280 LIBPNG="-lpng -lz -lm"
15281 fi
15282 fi
15283
15284
15285 ### Use -ltiff if available, unless `--with-tiff=no'.
15286 HAVE_TIFF=no
15287 LIBTIFF=
15288 if test "${HAVE_X11}" = "yes"; then
15289 if test "${with_tiff}" != "no"; then
15290 if test "${ac_cv_header_tiffio_h+set}" = set; then
15291 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15292 $as_echo_n "checking for tiffio.h... " >&6; }
15293 if test "${ac_cv_header_tiffio_h+set}" = set; then
15294 $as_echo_n "(cached) " >&6
15295 fi
15296 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15297 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15298 else
15299 # Is the header compilable?
15300 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15301 $as_echo_n "checking tiffio.h usability... " >&6; }
15302 cat >conftest.$ac_ext <<_ACEOF
15303 /* confdefs.h. */
15304 _ACEOF
15305 cat confdefs.h >>conftest.$ac_ext
15306 cat >>conftest.$ac_ext <<_ACEOF
15307 /* end confdefs.h. */
15308 $ac_includes_default
15309 #include <tiffio.h>
15310 _ACEOF
15311 rm -f conftest.$ac_objext
15312 if { (ac_try="$ac_compile"
15313 case "(($ac_try" in
15314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15315 *) ac_try_echo=$ac_try;;
15316 esac
15317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15318 $as_echo "$ac_try_echo") >&5
15319 (eval "$ac_compile") 2>conftest.er1
15320 ac_status=$?
15321 grep -v '^ *+' conftest.er1 >conftest.err
15322 rm -f conftest.er1
15323 cat conftest.err >&5
15324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); } && {
15326 test -z "$ac_c_werror_flag" ||
15327 test ! -s conftest.err
15328 } && test -s conftest.$ac_objext; then
15329 ac_header_compiler=yes
15330 else
15331 $as_echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15333
15334 ac_header_compiler=no
15335 fi
15336
15337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15338 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15339 $as_echo "$ac_header_compiler" >&6; }
15340
15341 # Is the header present?
15342 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15343 $as_echo_n "checking tiffio.h presence... " >&6; }
15344 cat >conftest.$ac_ext <<_ACEOF
15345 /* confdefs.h. */
15346 _ACEOF
15347 cat confdefs.h >>conftest.$ac_ext
15348 cat >>conftest.$ac_ext <<_ACEOF
15349 /* end confdefs.h. */
15350 #include <tiffio.h>
15351 _ACEOF
15352 if { (ac_try="$ac_cpp conftest.$ac_ext"
15353 case "(($ac_try" in
15354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355 *) ac_try_echo=$ac_try;;
15356 esac
15357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15358 $as_echo "$ac_try_echo") >&5
15359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15360 ac_status=$?
15361 grep -v '^ *+' conftest.er1 >conftest.err
15362 rm -f conftest.er1
15363 cat conftest.err >&5
15364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } >/dev/null && {
15366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15367 test ! -s conftest.err
15368 }; then
15369 ac_header_preproc=yes
15370 else
15371 $as_echo "$as_me: failed program was:" >&5
15372 sed 's/^/| /' conftest.$ac_ext >&5
15373
15374 ac_header_preproc=no
15375 fi
15376
15377 rm -f conftest.err conftest.$ac_ext
15378 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15379 $as_echo "$ac_header_preproc" >&6; }
15380
15381 # So? What about this header?
15382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15383 yes:no: )
15384 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15385 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15386 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15387 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15388 ac_header_preproc=yes
15389 ;;
15390 no:yes:* )
15391 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15392 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15393 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15394 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15395 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15396 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15397 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15398 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15399 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15400 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15401 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15402 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15403
15404 ;;
15405 esac
15406 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15407 $as_echo_n "checking for tiffio.h... " >&6; }
15408 if test "${ac_cv_header_tiffio_h+set}" = set; then
15409 $as_echo_n "(cached) " >&6
15410 else
15411 ac_cv_header_tiffio_h=$ac_header_preproc
15412 fi
15413 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15414 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15415
15416 fi
15417 if test $ac_cv_header_tiffio_h = yes; then
15418 tifflibs="-lz -lm"
15419 # At least one tiff package requires the jpeg library.
15420 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15421 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15422 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15423 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15424 $as_echo_n "(cached) " >&6
15425 else
15426 ac_check_lib_save_LIBS=$LIBS
15427 LIBS="-ltiff $tifflibs $LIBS"
15428 cat >conftest.$ac_ext <<_ACEOF
15429 /* confdefs.h. */
15430 _ACEOF
15431 cat confdefs.h >>conftest.$ac_ext
15432 cat >>conftest.$ac_ext <<_ACEOF
15433 /* end confdefs.h. */
15434
15435 /* Override any GCC internal prototype to avoid an error.
15436 Use char because int might match the return type of a GCC
15437 builtin and then its argument prototype would still apply. */
15438 #ifdef __cplusplus
15439 extern "C"
15440 #endif
15441 char TIFFGetVersion ();
15442 int
15443 main ()
15444 {
15445 return TIFFGetVersion ();
15446 ;
15447 return 0;
15448 }
15449 _ACEOF
15450 rm -f conftest.$ac_objext conftest$ac_exeext
15451 if { (ac_try="$ac_link"
15452 case "(($ac_try" in
15453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454 *) ac_try_echo=$ac_try;;
15455 esac
15456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15457 $as_echo "$ac_try_echo") >&5
15458 (eval "$ac_link") 2>conftest.er1
15459 ac_status=$?
15460 grep -v '^ *+' conftest.er1 >conftest.err
15461 rm -f conftest.er1
15462 cat conftest.err >&5
15463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); } && {
15465 test -z "$ac_c_werror_flag" ||
15466 test ! -s conftest.err
15467 } && test -s conftest$ac_exeext && {
15468 test "$cross_compiling" = yes ||
15469 $as_test_x conftest$ac_exeext
15470 }; then
15471 ac_cv_lib_tiff_TIFFGetVersion=yes
15472 else
15473 $as_echo "$as_me: failed program was:" >&5
15474 sed 's/^/| /' conftest.$ac_ext >&5
15475
15476 ac_cv_lib_tiff_TIFFGetVersion=no
15477 fi
15478
15479 rm -rf conftest.dSYM
15480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15481 conftest$ac_exeext conftest.$ac_ext
15482 LIBS=$ac_check_lib_save_LIBS
15483 fi
15484 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15485 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15486 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15487 HAVE_TIFF=yes
15488 fi
15489
15490 fi
15491
15492
15493 fi
15494
15495 if test "${HAVE_TIFF}" = "yes"; then
15496
15497 cat >>confdefs.h <<\_ACEOF
15498 #define HAVE_TIFF 1
15499 _ACEOF
15500
15501 LIBTIFF=-ltiff
15502 fi
15503 fi
15504
15505
15506 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15507 HAVE_GIF=no
15508 LIBGIF=
15509 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15510 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15511 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15512 $as_echo_n "checking for gif_lib.h... " >&6; }
15513 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15514 $as_echo_n "(cached) " >&6
15515 fi
15516 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15517 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15518 else
15519 # Is the header compilable?
15520 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15521 $as_echo_n "checking gif_lib.h usability... " >&6; }
15522 cat >conftest.$ac_ext <<_ACEOF
15523 /* confdefs.h. */
15524 _ACEOF
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h. */
15528 $ac_includes_default
15529 #include <gif_lib.h>
15530 _ACEOF
15531 rm -f conftest.$ac_objext
15532 if { (ac_try="$ac_compile"
15533 case "(($ac_try" in
15534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15535 *) ac_try_echo=$ac_try;;
15536 esac
15537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15538 $as_echo "$ac_try_echo") >&5
15539 (eval "$ac_compile") 2>conftest.er1
15540 ac_status=$?
15541 grep -v '^ *+' conftest.er1 >conftest.err
15542 rm -f conftest.er1
15543 cat conftest.err >&5
15544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } && {
15546 test -z "$ac_c_werror_flag" ||
15547 test ! -s conftest.err
15548 } && test -s conftest.$ac_objext; then
15549 ac_header_compiler=yes
15550 else
15551 $as_echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15553
15554 ac_header_compiler=no
15555 fi
15556
15557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15558 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15559 $as_echo "$ac_header_compiler" >&6; }
15560
15561 # Is the header present?
15562 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15563 $as_echo_n "checking gif_lib.h presence... " >&6; }
15564 cat >conftest.$ac_ext <<_ACEOF
15565 /* confdefs.h. */
15566 _ACEOF
15567 cat confdefs.h >>conftest.$ac_ext
15568 cat >>conftest.$ac_ext <<_ACEOF
15569 /* end confdefs.h. */
15570 #include <gif_lib.h>
15571 _ACEOF
15572 if { (ac_try="$ac_cpp conftest.$ac_ext"
15573 case "(($ac_try" in
15574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575 *) ac_try_echo=$ac_try;;
15576 esac
15577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15578 $as_echo "$ac_try_echo") >&5
15579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15580 ac_status=$?
15581 grep -v '^ *+' conftest.er1 >conftest.err
15582 rm -f conftest.er1
15583 cat conftest.err >&5
15584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); } >/dev/null && {
15586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15587 test ! -s conftest.err
15588 }; then
15589 ac_header_preproc=yes
15590 else
15591 $as_echo "$as_me: failed program was:" >&5
15592 sed 's/^/| /' conftest.$ac_ext >&5
15593
15594 ac_header_preproc=no
15595 fi
15596
15597 rm -f conftest.err conftest.$ac_ext
15598 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15599 $as_echo "$ac_header_preproc" >&6; }
15600
15601 # So? What about this header?
15602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15603 yes:no: )
15604 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15605 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15606 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15607 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15608 ac_header_preproc=yes
15609 ;;
15610 no:yes:* )
15611 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15612 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15613 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15614 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15615 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15616 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15617 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15618 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15619 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15620 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15621 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15622 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15623
15624 ;;
15625 esac
15626 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15627 $as_echo_n "checking for gif_lib.h... " >&6; }
15628 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15629 $as_echo_n "(cached) " >&6
15630 else
15631 ac_cv_header_gif_lib_h=$ac_header_preproc
15632 fi
15633 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15634 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15635
15636 fi
15637 if test $ac_cv_header_gif_lib_h = yes; then
15638 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15639 # Earlier versions can crash Emacs.
15640 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15641 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15642 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15643 $as_echo_n "(cached) " >&6
15644 else
15645 ac_check_lib_save_LIBS=$LIBS
15646 LIBS="-lgif $LIBS"
15647 cat >conftest.$ac_ext <<_ACEOF
15648 /* confdefs.h. */
15649 _ACEOF
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h. */
15653
15654 /* Override any GCC internal prototype to avoid an error.
15655 Use char because int might match the return type of a GCC
15656 builtin and then its argument prototype would still apply. */
15657 #ifdef __cplusplus
15658 extern "C"
15659 #endif
15660 char EGifPutExtensionLast ();
15661 int
15662 main ()
15663 {
15664 return EGifPutExtensionLast ();
15665 ;
15666 return 0;
15667 }
15668 _ACEOF
15669 rm -f conftest.$ac_objext conftest$ac_exeext
15670 if { (ac_try="$ac_link"
15671 case "(($ac_try" in
15672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673 *) ac_try_echo=$ac_try;;
15674 esac
15675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15676 $as_echo "$ac_try_echo") >&5
15677 (eval "$ac_link") 2>conftest.er1
15678 ac_status=$?
15679 grep -v '^ *+' conftest.er1 >conftest.err
15680 rm -f conftest.er1
15681 cat conftest.err >&5
15682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); } && {
15684 test -z "$ac_c_werror_flag" ||
15685 test ! -s conftest.err
15686 } && test -s conftest$ac_exeext && {
15687 test "$cross_compiling" = yes ||
15688 $as_test_x conftest$ac_exeext
15689 }; then
15690 ac_cv_lib_gif_EGifPutExtensionLast=yes
15691 else
15692 $as_echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.$ac_ext >&5
15694
15695 ac_cv_lib_gif_EGifPutExtensionLast=no
15696 fi
15697
15698 rm -rf conftest.dSYM
15699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15700 conftest$ac_exeext conftest.$ac_ext
15701 LIBS=$ac_check_lib_save_LIBS
15702 fi
15703 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15704 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15705 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15706 HAVE_GIF=yes
15707 else
15708 HAVE_GIF=maybe
15709 fi
15710
15711 fi
15712
15713
15714
15715 if test "$HAVE_GIF" = yes; then
15716 LIBGIF=-lgif
15717 elif test "$HAVE_GIF" = maybe; then
15718 # If gif_lib.h but no libgif, try libungif.
15719 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15720 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15721 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15722 $as_echo_n "(cached) " >&6
15723 else
15724 ac_check_lib_save_LIBS=$LIBS
15725 LIBS="-lungif $LIBS"
15726 cat >conftest.$ac_ext <<_ACEOF
15727 /* confdefs.h. */
15728 _ACEOF
15729 cat confdefs.h >>conftest.$ac_ext
15730 cat >>conftest.$ac_ext <<_ACEOF
15731 /* end confdefs.h. */
15732
15733 /* Override any GCC internal prototype to avoid an error.
15734 Use char because int might match the return type of a GCC
15735 builtin and then its argument prototype would still apply. */
15736 #ifdef __cplusplus
15737 extern "C"
15738 #endif
15739 char EGifPutExtensionLast ();
15740 int
15741 main ()
15742 {
15743 return EGifPutExtensionLast ();
15744 ;
15745 return 0;
15746 }
15747 _ACEOF
15748 rm -f conftest.$ac_objext conftest$ac_exeext
15749 if { (ac_try="$ac_link"
15750 case "(($ac_try" in
15751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752 *) ac_try_echo=$ac_try;;
15753 esac
15754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15755 $as_echo "$ac_try_echo") >&5
15756 (eval "$ac_link") 2>conftest.er1
15757 ac_status=$?
15758 grep -v '^ *+' conftest.er1 >conftest.err
15759 rm -f conftest.er1
15760 cat conftest.err >&5
15761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } && {
15763 test -z "$ac_c_werror_flag" ||
15764 test ! -s conftest.err
15765 } && test -s conftest$ac_exeext && {
15766 test "$cross_compiling" = yes ||
15767 $as_test_x conftest$ac_exeext
15768 }; then
15769 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15770 else
15771 $as_echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15773
15774 ac_cv_lib_ungif_EGifPutExtensionLast=no
15775 fi
15776
15777 rm -rf conftest.dSYM
15778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15779 conftest$ac_exeext conftest.$ac_ext
15780 LIBS=$ac_check_lib_save_LIBS
15781 fi
15782 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15783 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15784 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15785 HAVE_GIF=yes
15786 else
15787 HAVE_GIF=no
15788 fi
15789
15790 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15791 fi
15792
15793 if test "${HAVE_GIF}" = "yes"; then
15794
15795 cat >>confdefs.h <<\_ACEOF
15796 #define HAVE_GIF 1
15797 _ACEOF
15798
15799 fi
15800 fi
15801
15802
15803 if test "${HAVE_X11}" = "yes"; then
15804 MISSING=""
15805 WITH_NO=""
15806 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15807 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15808 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15809 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15810 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15811 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15812 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15813 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15814 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15815 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15816
15817 if test "X${MISSING}" != X; then
15818 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15819 $MISSING
15820 Maybe some development libraries/packages are missing?
15821 If you don't want to link with them give
15822 $WITH_NO
15823 as options to configure" >&5
15824 $as_echo "$as_me: error: The following required libraries were not found:
15825 $MISSING
15826 Maybe some development libraries/packages are missing?
15827 If you don't want to link with them give
15828 $WITH_NO
15829 as options to configure" >&2;}
15830 { (exit 1); exit 1; }; }
15831 fi
15832 fi
15833
15834 ### Use -lgpm if available, unless `--with-gpm=no'.
15835 HAVE_GPM=no
15836 LIBGPM=
15837 GPM_MOUSE_SUPPORT=
15838 if test "${with_gpm}" != "no"; then
15839 if test "${ac_cv_header_gpm_h+set}" = set; then
15840 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15841 $as_echo_n "checking for gpm.h... " >&6; }
15842 if test "${ac_cv_header_gpm_h+set}" = set; then
15843 $as_echo_n "(cached) " >&6
15844 fi
15845 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15846 $as_echo "$ac_cv_header_gpm_h" >&6; }
15847 else
15848 # Is the header compilable?
15849 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15850 $as_echo_n "checking gpm.h usability... " >&6; }
15851 cat >conftest.$ac_ext <<_ACEOF
15852 /* confdefs.h. */
15853 _ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h. */
15857 $ac_includes_default
15858 #include <gpm.h>
15859 _ACEOF
15860 rm -f conftest.$ac_objext
15861 if { (ac_try="$ac_compile"
15862 case "(($ac_try" in
15863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864 *) ac_try_echo=$ac_try;;
15865 esac
15866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15867 $as_echo "$ac_try_echo") >&5
15868 (eval "$ac_compile") 2>conftest.er1
15869 ac_status=$?
15870 grep -v '^ *+' conftest.er1 >conftest.err
15871 rm -f conftest.er1
15872 cat conftest.err >&5
15873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } && {
15875 test -z "$ac_c_werror_flag" ||
15876 test ! -s conftest.err
15877 } && test -s conftest.$ac_objext; then
15878 ac_header_compiler=yes
15879 else
15880 $as_echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.$ac_ext >&5
15882
15883 ac_header_compiler=no
15884 fi
15885
15886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15887 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15888 $as_echo "$ac_header_compiler" >&6; }
15889
15890 # Is the header present?
15891 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15892 $as_echo_n "checking gpm.h presence... " >&6; }
15893 cat >conftest.$ac_ext <<_ACEOF
15894 /* confdefs.h. */
15895 _ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h. */
15899 #include <gpm.h>
15900 _ACEOF
15901 if { (ac_try="$ac_cpp conftest.$ac_ext"
15902 case "(($ac_try" in
15903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15904 *) ac_try_echo=$ac_try;;
15905 esac
15906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15907 $as_echo "$ac_try_echo") >&5
15908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15909 ac_status=$?
15910 grep -v '^ *+' conftest.er1 >conftest.err
15911 rm -f conftest.er1
15912 cat conftest.err >&5
15913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); } >/dev/null && {
15915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15916 test ! -s conftest.err
15917 }; then
15918 ac_header_preproc=yes
15919 else
15920 $as_echo "$as_me: failed program was:" >&5
15921 sed 's/^/| /' conftest.$ac_ext >&5
15922
15923 ac_header_preproc=no
15924 fi
15925
15926 rm -f conftest.err conftest.$ac_ext
15927 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15928 $as_echo "$ac_header_preproc" >&6; }
15929
15930 # So? What about this header?
15931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15932 yes:no: )
15933 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15934 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15935 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15936 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15937 ac_header_preproc=yes
15938 ;;
15939 no:yes:* )
15940 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15941 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15942 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15943 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15944 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15945 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15946 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15947 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15948 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15949 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15950 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15951 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15952
15953 ;;
15954 esac
15955 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15956 $as_echo_n "checking for gpm.h... " >&6; }
15957 if test "${ac_cv_header_gpm_h+set}" = set; then
15958 $as_echo_n "(cached) " >&6
15959 else
15960 ac_cv_header_gpm_h=$ac_header_preproc
15961 fi
15962 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15963 $as_echo "$ac_cv_header_gpm_h" >&6; }
15964
15965 fi
15966 if test $ac_cv_header_gpm_h = yes; then
15967 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15968 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15969 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15970 $as_echo_n "(cached) " >&6
15971 else
15972 ac_check_lib_save_LIBS=$LIBS
15973 LIBS="-lgpm $LIBS"
15974 cat >conftest.$ac_ext <<_ACEOF
15975 /* confdefs.h. */
15976 _ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h. */
15980
15981 /* Override any GCC internal prototype to avoid an error.
15982 Use char because int might match the return type of a GCC
15983 builtin and then its argument prototype would still apply. */
15984 #ifdef __cplusplus
15985 extern "C"
15986 #endif
15987 char Gpm_Open ();
15988 int
15989 main ()
15990 {
15991 return Gpm_Open ();
15992 ;
15993 return 0;
15994 }
15995 _ACEOF
15996 rm -f conftest.$ac_objext conftest$ac_exeext
15997 if { (ac_try="$ac_link"
15998 case "(($ac_try" in
15999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000 *) ac_try_echo=$ac_try;;
16001 esac
16002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16003 $as_echo "$ac_try_echo") >&5
16004 (eval "$ac_link") 2>conftest.er1
16005 ac_status=$?
16006 grep -v '^ *+' conftest.er1 >conftest.err
16007 rm -f conftest.er1
16008 cat conftest.err >&5
16009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); } && {
16011 test -z "$ac_c_werror_flag" ||
16012 test ! -s conftest.err
16013 } && test -s conftest$ac_exeext && {
16014 test "$cross_compiling" = yes ||
16015 $as_test_x conftest$ac_exeext
16016 }; then
16017 ac_cv_lib_gpm_Gpm_Open=yes
16018 else
16019 $as_echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16021
16022 ac_cv_lib_gpm_Gpm_Open=no
16023 fi
16024
16025 rm -rf conftest.dSYM
16026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16027 conftest$ac_exeext conftest.$ac_ext
16028 LIBS=$ac_check_lib_save_LIBS
16029 fi
16030 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
16031 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16032 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
16033 HAVE_GPM=yes
16034 fi
16035
16036 fi
16037
16038
16039
16040 if test "${HAVE_GPM}" = "yes"; then
16041
16042 cat >>confdefs.h <<\_ACEOF
16043 #define HAVE_GPM 1
16044 _ACEOF
16045
16046 LIBGPM=-lgpm
16047 GPM_MOUSE_SUPPORT="\${lispsource}mouse.elc"
16048 fi
16049 fi
16050
16051
16052
16053 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16054 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16055 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16056 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16057 $as_echo_n "(cached) " >&6
16058 fi
16059 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16060 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16061 else
16062 # Is the header compilable?
16063 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16064 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
16065 cat >conftest.$ac_ext <<_ACEOF
16066 /* confdefs.h. */
16067 _ACEOF
16068 cat confdefs.h >>conftest.$ac_ext
16069 cat >>conftest.$ac_ext <<_ACEOF
16070 /* end confdefs.h. */
16071 $ac_includes_default
16072 #include <malloc/malloc.h>
16073 _ACEOF
16074 rm -f conftest.$ac_objext
16075 if { (ac_try="$ac_compile"
16076 case "(($ac_try" in
16077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16078 *) ac_try_echo=$ac_try;;
16079 esac
16080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16081 $as_echo "$ac_try_echo") >&5
16082 (eval "$ac_compile") 2>conftest.er1
16083 ac_status=$?
16084 grep -v '^ *+' conftest.er1 >conftest.err
16085 rm -f conftest.er1
16086 cat conftest.err >&5
16087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); } && {
16089 test -z "$ac_c_werror_flag" ||
16090 test ! -s conftest.err
16091 } && test -s conftest.$ac_objext; then
16092 ac_header_compiler=yes
16093 else
16094 $as_echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16096
16097 ac_header_compiler=no
16098 fi
16099
16100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16101 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16102 $as_echo "$ac_header_compiler" >&6; }
16103
16104 # Is the header present?
16105 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16106 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16107 cat >conftest.$ac_ext <<_ACEOF
16108 /* confdefs.h. */
16109 _ACEOF
16110 cat confdefs.h >>conftest.$ac_ext
16111 cat >>conftest.$ac_ext <<_ACEOF
16112 /* end confdefs.h. */
16113 #include <malloc/malloc.h>
16114 _ACEOF
16115 if { (ac_try="$ac_cpp conftest.$ac_ext"
16116 case "(($ac_try" in
16117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118 *) ac_try_echo=$ac_try;;
16119 esac
16120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16121 $as_echo "$ac_try_echo") >&5
16122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16123 ac_status=$?
16124 grep -v '^ *+' conftest.er1 >conftest.err
16125 rm -f conftest.er1
16126 cat conftest.err >&5
16127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); } >/dev/null && {
16129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16130 test ! -s conftest.err
16131 }; then
16132 ac_header_preproc=yes
16133 else
16134 $as_echo "$as_me: failed program was:" >&5
16135 sed 's/^/| /' conftest.$ac_ext >&5
16136
16137 ac_header_preproc=no
16138 fi
16139
16140 rm -f conftest.err conftest.$ac_ext
16141 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16142 $as_echo "$ac_header_preproc" >&6; }
16143
16144 # So? What about this header?
16145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16146 yes:no: )
16147 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16148 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16149 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16150 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16151 ac_header_preproc=yes
16152 ;;
16153 no:yes:* )
16154 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16155 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16156 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16157 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16158 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16159 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16160 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16161 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16162 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16163 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16164 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16165 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16166
16167 ;;
16168 esac
16169 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16170 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16171 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16172 $as_echo_n "(cached) " >&6
16173 else
16174 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16175 fi
16176 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16177 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16178
16179 fi
16180 if test $ac_cv_header_malloc_malloc_h = yes; then
16181
16182 cat >>confdefs.h <<\_ACEOF
16183 #define HAVE_MALLOC_MALLOC_H 1
16184 _ACEOF
16185
16186 fi
16187
16188
16189
16190 C_SWITCH_X_SYSTEM=
16191 ### Use NeXTstep API to implement GUI.
16192 if test "${HAVE_NS}" = "yes"; then
16193
16194 cat >>confdefs.h <<\_ACEOF
16195 #define HAVE_NS 1
16196 _ACEOF
16197
16198 if test "${NS_IMPL_COCOA}" = "yes"; then
16199
16200 cat >>confdefs.h <<\_ACEOF
16201 #define NS_IMPL_COCOA 1
16202 _ACEOF
16203
16204 GNU_OBJC_CFLAGS=
16205 fi
16206 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16207
16208 cat >>confdefs.h <<\_ACEOF
16209 #define NS_IMPL_GNUSTEP 1
16210 _ACEOF
16211
16212 # See also .m.o rule in Makefile.in */
16213 # FIXME: are all these flags really needed? Document here why. */
16214 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16215 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16216 fi
16217 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16218
16219 cat >>confdefs.h <<\_ACEOF
16220 #define NS_HAVE_NSINTEGER 1
16221 _ACEOF
16222
16223 fi
16224 # We also have mouse menus.
16225 HAVE_MENUS=yes
16226 OTHER_FILES=ns-app
16227 fi
16228
16229
16230 ### Use session management (-lSM -lICE) if available
16231 HAVE_X_SM=no
16232 LIBXSM=
16233 if test "${HAVE_X11}" = "yes"; then
16234 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16235 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16236 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16237 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16238 $as_echo_n "(cached) " >&6
16239 fi
16240 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16241 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16242 else
16243 # Is the header compilable?
16244 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16245 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16246 cat >conftest.$ac_ext <<_ACEOF
16247 /* confdefs.h. */
16248 _ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h. */
16252 $ac_includes_default
16253 #include <X11/SM/SMlib.h>
16254 _ACEOF
16255 rm -f conftest.$ac_objext
16256 if { (ac_try="$ac_compile"
16257 case "(($ac_try" in
16258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16259 *) ac_try_echo=$ac_try;;
16260 esac
16261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16262 $as_echo "$ac_try_echo") >&5
16263 (eval "$ac_compile") 2>conftest.er1
16264 ac_status=$?
16265 grep -v '^ *+' conftest.er1 >conftest.err
16266 rm -f conftest.er1
16267 cat conftest.err >&5
16268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } && {
16270 test -z "$ac_c_werror_flag" ||
16271 test ! -s conftest.err
16272 } && test -s conftest.$ac_objext; then
16273 ac_header_compiler=yes
16274 else
16275 $as_echo "$as_me: failed program was:" >&5
16276 sed 's/^/| /' conftest.$ac_ext >&5
16277
16278 ac_header_compiler=no
16279 fi
16280
16281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16282 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16283 $as_echo "$ac_header_compiler" >&6; }
16284
16285 # Is the header present?
16286 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16287 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16288 cat >conftest.$ac_ext <<_ACEOF
16289 /* confdefs.h. */
16290 _ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h. */
16294 #include <X11/SM/SMlib.h>
16295 _ACEOF
16296 if { (ac_try="$ac_cpp conftest.$ac_ext"
16297 case "(($ac_try" in
16298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299 *) ac_try_echo=$ac_try;;
16300 esac
16301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16302 $as_echo "$ac_try_echo") >&5
16303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16304 ac_status=$?
16305 grep -v '^ *+' conftest.er1 >conftest.err
16306 rm -f conftest.er1
16307 cat conftest.err >&5
16308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); } >/dev/null && {
16310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16311 test ! -s conftest.err
16312 }; then
16313 ac_header_preproc=yes
16314 else
16315 $as_echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.$ac_ext >&5
16317
16318 ac_header_preproc=no
16319 fi
16320
16321 rm -f conftest.err conftest.$ac_ext
16322 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16323 $as_echo "$ac_header_preproc" >&6; }
16324
16325 # So? What about this header?
16326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16327 yes:no: )
16328 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16329 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16330 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16331 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16332 ac_header_preproc=yes
16333 ;;
16334 no:yes:* )
16335 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16336 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16337 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16338 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16339 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16340 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16341 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16342 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16343 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16344 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16345 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16346 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16347
16348 ;;
16349 esac
16350 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16351 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16352 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16353 $as_echo_n "(cached) " >&6
16354 else
16355 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16356 fi
16357 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16358 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16359
16360 fi
16361 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16362 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16363 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16364 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16365 $as_echo_n "(cached) " >&6
16366 else
16367 ac_check_lib_save_LIBS=$LIBS
16368 LIBS="-lSM -lICE $LIBS"
16369 cat >conftest.$ac_ext <<_ACEOF
16370 /* confdefs.h. */
16371 _ACEOF
16372 cat confdefs.h >>conftest.$ac_ext
16373 cat >>conftest.$ac_ext <<_ACEOF
16374 /* end confdefs.h. */
16375
16376 /* Override any GCC internal prototype to avoid an error.
16377 Use char because int might match the return type of a GCC
16378 builtin and then its argument prototype would still apply. */
16379 #ifdef __cplusplus
16380 extern "C"
16381 #endif
16382 char SmcOpenConnection ();
16383 int
16384 main ()
16385 {
16386 return SmcOpenConnection ();
16387 ;
16388 return 0;
16389 }
16390 _ACEOF
16391 rm -f conftest.$ac_objext conftest$ac_exeext
16392 if { (ac_try="$ac_link"
16393 case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16396 esac
16397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16398 $as_echo "$ac_try_echo") >&5
16399 (eval "$ac_link") 2>conftest.er1
16400 ac_status=$?
16401 grep -v '^ *+' conftest.er1 >conftest.err
16402 rm -f conftest.er1
16403 cat conftest.err >&5
16404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); } && {
16406 test -z "$ac_c_werror_flag" ||
16407 test ! -s conftest.err
16408 } && test -s conftest$ac_exeext && {
16409 test "$cross_compiling" = yes ||
16410 $as_test_x conftest$ac_exeext
16411 }; then
16412 ac_cv_lib_SM_SmcOpenConnection=yes
16413 else
16414 $as_echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16416
16417 ac_cv_lib_SM_SmcOpenConnection=no
16418 fi
16419
16420 rm -rf conftest.dSYM
16421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16422 conftest$ac_exeext conftest.$ac_ext
16423 LIBS=$ac_check_lib_save_LIBS
16424 fi
16425 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16426 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16427 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16428 HAVE_X_SM=yes
16429 fi
16430
16431 fi
16432
16433
16434
16435 if test "${HAVE_X_SM}" = "yes"; then
16436
16437 cat >>confdefs.h <<\_ACEOF
16438 #define HAVE_X_SM 1
16439 _ACEOF
16440
16441 LIBXSM="-lSM -lICE"
16442 case "$LIBS" in
16443 *-lSM*) ;;
16444 *) LIBS="$LIBXSM $LIBS" ;;
16445 esac
16446 fi
16447 fi
16448
16449
16450 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16451 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16452 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16453 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16454 $as_echo_n "(cached) " >&6
16455 else
16456 cat >conftest.$ac_ext <<_ACEOF
16457 /* confdefs.h. */
16458 _ACEOF
16459 cat confdefs.h >>conftest.$ac_ext
16460 cat >>conftest.$ac_ext <<_ACEOF
16461 /* end confdefs.h. */
16462 #include <netdb.h>
16463 int
16464 main ()
16465 {
16466 return h_errno;
16467 ;
16468 return 0;
16469 }
16470 _ACEOF
16471 rm -f conftest.$ac_objext conftest$ac_exeext
16472 if { (ac_try="$ac_link"
16473 case "(($ac_try" in
16474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16475 *) ac_try_echo=$ac_try;;
16476 esac
16477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16478 $as_echo "$ac_try_echo") >&5
16479 (eval "$ac_link") 2>conftest.er1
16480 ac_status=$?
16481 grep -v '^ *+' conftest.er1 >conftest.err
16482 rm -f conftest.er1
16483 cat conftest.err >&5
16484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); } && {
16486 test -z "$ac_c_werror_flag" ||
16487 test ! -s conftest.err
16488 } && test -s conftest$ac_exeext && {
16489 test "$cross_compiling" = yes ||
16490 $as_test_x conftest$ac_exeext
16491 }; then
16492 emacs_cv_netdb_declares_h_errno=yes
16493 else
16494 $as_echo "$as_me: failed program was:" >&5
16495 sed 's/^/| /' conftest.$ac_ext >&5
16496
16497 emacs_cv_netdb_declares_h_errno=no
16498 fi
16499
16500 rm -rf conftest.dSYM
16501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16502 conftest$ac_exeext conftest.$ac_ext
16503 fi
16504 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16505 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16506 if test $emacs_cv_netdb_declares_h_errno = yes; then
16507
16508 cat >>confdefs.h <<\_ACEOF
16509 #define HAVE_H_ERRNO 1
16510 _ACEOF
16511
16512 fi
16513
16514 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16515 # for constant arguments. Useless!
16516 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16517 $as_echo_n "checking for working alloca.h... " >&6; }
16518 if test "${ac_cv_working_alloca_h+set}" = set; then
16519 $as_echo_n "(cached) " >&6
16520 else
16521 cat >conftest.$ac_ext <<_ACEOF
16522 /* confdefs.h. */
16523 _ACEOF
16524 cat confdefs.h >>conftest.$ac_ext
16525 cat >>conftest.$ac_ext <<_ACEOF
16526 /* end confdefs.h. */
16527 #include <alloca.h>
16528 int
16529 main ()
16530 {
16531 char *p = (char *) alloca (2 * sizeof (int));
16532 if (p) return 0;
16533 ;
16534 return 0;
16535 }
16536 _ACEOF
16537 rm -f conftest.$ac_objext conftest$ac_exeext
16538 if { (ac_try="$ac_link"
16539 case "(($ac_try" in
16540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541 *) ac_try_echo=$ac_try;;
16542 esac
16543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16544 $as_echo "$ac_try_echo") >&5
16545 (eval "$ac_link") 2>conftest.er1
16546 ac_status=$?
16547 grep -v '^ *+' conftest.er1 >conftest.err
16548 rm -f conftest.er1
16549 cat conftest.err >&5
16550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); } && {
16552 test -z "$ac_c_werror_flag" ||
16553 test ! -s conftest.err
16554 } && test -s conftest$ac_exeext && {
16555 test "$cross_compiling" = yes ||
16556 $as_test_x conftest$ac_exeext
16557 }; then
16558 ac_cv_working_alloca_h=yes
16559 else
16560 $as_echo "$as_me: failed program was:" >&5
16561 sed 's/^/| /' conftest.$ac_ext >&5
16562
16563 ac_cv_working_alloca_h=no
16564 fi
16565
16566 rm -rf conftest.dSYM
16567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16568 conftest$ac_exeext conftest.$ac_ext
16569 fi
16570 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16571 $as_echo "$ac_cv_working_alloca_h" >&6; }
16572 if test $ac_cv_working_alloca_h = yes; then
16573
16574 cat >>confdefs.h <<\_ACEOF
16575 #define HAVE_ALLOCA_H 1
16576 _ACEOF
16577
16578 fi
16579
16580 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16581 $as_echo_n "checking for alloca... " >&6; }
16582 if test "${ac_cv_func_alloca_works+set}" = set; then
16583 $as_echo_n "(cached) " >&6
16584 else
16585 cat >conftest.$ac_ext <<_ACEOF
16586 /* confdefs.h. */
16587 _ACEOF
16588 cat confdefs.h >>conftest.$ac_ext
16589 cat >>conftest.$ac_ext <<_ACEOF
16590 /* end confdefs.h. */
16591 #ifdef __GNUC__
16592 # define alloca __builtin_alloca
16593 #else
16594 # ifdef _MSC_VER
16595 # include <malloc.h>
16596 # define alloca _alloca
16597 # else
16598 # ifdef HAVE_ALLOCA_H
16599 # include <alloca.h>
16600 # else
16601 # ifdef _AIX
16602 #pragma alloca
16603 # else
16604 # ifndef alloca /* predefined by HP cc +Olibcalls */
16605 char *alloca ();
16606 # endif
16607 # endif
16608 # endif
16609 # endif
16610 #endif
16611
16612 int
16613 main ()
16614 {
16615 char *p = (char *) alloca (1);
16616 if (p) return 0;
16617 ;
16618 return 0;
16619 }
16620 _ACEOF
16621 rm -f conftest.$ac_objext conftest$ac_exeext
16622 if { (ac_try="$ac_link"
16623 case "(($ac_try" in
16624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16625 *) ac_try_echo=$ac_try;;
16626 esac
16627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16628 $as_echo "$ac_try_echo") >&5
16629 (eval "$ac_link") 2>conftest.er1
16630 ac_status=$?
16631 grep -v '^ *+' conftest.er1 >conftest.err
16632 rm -f conftest.er1
16633 cat conftest.err >&5
16634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); } && {
16636 test -z "$ac_c_werror_flag" ||
16637 test ! -s conftest.err
16638 } && test -s conftest$ac_exeext && {
16639 test "$cross_compiling" = yes ||
16640 $as_test_x conftest$ac_exeext
16641 }; then
16642 ac_cv_func_alloca_works=yes
16643 else
16644 $as_echo "$as_me: failed program was:" >&5
16645 sed 's/^/| /' conftest.$ac_ext >&5
16646
16647 ac_cv_func_alloca_works=no
16648 fi
16649
16650 rm -rf conftest.dSYM
16651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16652 conftest$ac_exeext conftest.$ac_ext
16653 fi
16654 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16655 $as_echo "$ac_cv_func_alloca_works" >&6; }
16656
16657 if test $ac_cv_func_alloca_works = yes; then
16658
16659 cat >>confdefs.h <<\_ACEOF
16660 #define HAVE_ALLOCA 1
16661 _ACEOF
16662
16663 else
16664 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16665 # that cause trouble. Some versions do not even contain alloca or
16666 # contain a buggy version. If you still want to use their alloca,
16667 # use ar to extract alloca.o from them instead of compiling alloca.c.
16668
16669 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16670
16671 cat >>confdefs.h <<\_ACEOF
16672 #define C_ALLOCA 1
16673 _ACEOF
16674
16675
16676 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16677 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16678 if test "${ac_cv_os_cray+set}" = set; then
16679 $as_echo_n "(cached) " >&6
16680 else
16681 cat >conftest.$ac_ext <<_ACEOF
16682 /* confdefs.h. */
16683 _ACEOF
16684 cat confdefs.h >>conftest.$ac_ext
16685 cat >>conftest.$ac_ext <<_ACEOF
16686 /* end confdefs.h. */
16687 #if defined CRAY && ! defined CRAY2
16688 webecray
16689 #else
16690 wenotbecray
16691 #endif
16692
16693 _ACEOF
16694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16695 $EGREP "webecray" >/dev/null 2>&1; then
16696 ac_cv_os_cray=yes
16697 else
16698 ac_cv_os_cray=no
16699 fi
16700 rm -f conftest*
16701
16702 fi
16703 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16704 $as_echo "$ac_cv_os_cray" >&6; }
16705 if test $ac_cv_os_cray = yes; then
16706 for ac_func in _getb67 GETB67 getb67; do
16707 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16708 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16709 $as_echo_n "checking for $ac_func... " >&6; }
16710 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16711 $as_echo_n "(cached) " >&6
16712 else
16713 cat >conftest.$ac_ext <<_ACEOF
16714 /* confdefs.h. */
16715 _ACEOF
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h. */
16719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16721 #define $ac_func innocuous_$ac_func
16722
16723 /* System header to define __stub macros and hopefully few prototypes,
16724 which can conflict with char $ac_func (); below.
16725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16726 <limits.h> exists even on freestanding compilers. */
16727
16728 #ifdef __STDC__
16729 # include <limits.h>
16730 #else
16731 # include <assert.h>
16732 #endif
16733
16734 #undef $ac_func
16735
16736 /* Override any GCC internal prototype to avoid an error.
16737 Use char because int might match the return type of a GCC
16738 builtin and then its argument prototype would still apply. */
16739 #ifdef __cplusplus
16740 extern "C"
16741 #endif
16742 char $ac_func ();
16743 /* The GNU C library defines this for functions which it implements
16744 to always fail with ENOSYS. Some functions are actually named
16745 something starting with __ and the normal name is an alias. */
16746 #if defined __stub_$ac_func || defined __stub___$ac_func
16747 choke me
16748 #endif
16749
16750 int
16751 main ()
16752 {
16753 return $ac_func ();
16754 ;
16755 return 0;
16756 }
16757 _ACEOF
16758 rm -f conftest.$ac_objext conftest$ac_exeext
16759 if { (ac_try="$ac_link"
16760 case "(($ac_try" in
16761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762 *) ac_try_echo=$ac_try;;
16763 esac
16764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16765 $as_echo "$ac_try_echo") >&5
16766 (eval "$ac_link") 2>conftest.er1
16767 ac_status=$?
16768 grep -v '^ *+' conftest.er1 >conftest.err
16769 rm -f conftest.er1
16770 cat conftest.err >&5
16771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); } && {
16773 test -z "$ac_c_werror_flag" ||
16774 test ! -s conftest.err
16775 } && test -s conftest$ac_exeext && {
16776 test "$cross_compiling" = yes ||
16777 $as_test_x conftest$ac_exeext
16778 }; then
16779 eval "$as_ac_var=yes"
16780 else
16781 $as_echo "$as_me: failed program was:" >&5
16782 sed 's/^/| /' conftest.$ac_ext >&5
16783
16784 eval "$as_ac_var=no"
16785 fi
16786
16787 rm -rf conftest.dSYM
16788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16789 conftest$ac_exeext conftest.$ac_ext
16790 fi
16791 ac_res=`eval 'as_val=${'$as_ac_var'}
16792 $as_echo "$as_val"'`
16793 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16794 $as_echo "$ac_res" >&6; }
16795 if test `eval 'as_val=${'$as_ac_var'}
16796 $as_echo "$as_val"'` = yes; then
16797
16798 cat >>confdefs.h <<_ACEOF
16799 #define CRAY_STACKSEG_END $ac_func
16800 _ACEOF
16801
16802 break
16803 fi
16804
16805 done
16806 fi
16807
16808 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16809 $as_echo_n "checking stack direction for C alloca... " >&6; }
16810 if test "${ac_cv_c_stack_direction+set}" = set; then
16811 $as_echo_n "(cached) " >&6
16812 else
16813 if test "$cross_compiling" = yes; then
16814 ac_cv_c_stack_direction=0
16815 else
16816 cat >conftest.$ac_ext <<_ACEOF
16817 /* confdefs.h. */
16818 _ACEOF
16819 cat confdefs.h >>conftest.$ac_ext
16820 cat >>conftest.$ac_ext <<_ACEOF
16821 /* end confdefs.h. */
16822 $ac_includes_default
16823 int
16824 find_stack_direction ()
16825 {
16826 static char *addr = 0;
16827 auto char dummy;
16828 if (addr == 0)
16829 {
16830 addr = &dummy;
16831 return find_stack_direction ();
16832 }
16833 else
16834 return (&dummy > addr) ? 1 : -1;
16835 }
16836
16837 int
16838 main ()
16839 {
16840 return find_stack_direction () < 0;
16841 }
16842 _ACEOF
16843 rm -f conftest$ac_exeext
16844 if { (ac_try="$ac_link"
16845 case "(($ac_try" in
16846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16847 *) ac_try_echo=$ac_try;;
16848 esac
16849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16850 $as_echo "$ac_try_echo") >&5
16851 (eval "$ac_link") 2>&5
16852 ac_status=$?
16853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16855 { (case "(($ac_try" in
16856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857 *) ac_try_echo=$ac_try;;
16858 esac
16859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16860 $as_echo "$ac_try_echo") >&5
16861 (eval "$ac_try") 2>&5
16862 ac_status=$?
16863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; }; then
16865 ac_cv_c_stack_direction=1
16866 else
16867 $as_echo "$as_me: program exited with status $ac_status" >&5
16868 $as_echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.$ac_ext >&5
16870
16871 ( exit $ac_status )
16872 ac_cv_c_stack_direction=-1
16873 fi
16874 rm -rf conftest.dSYM
16875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16876 fi
16877
16878
16879 fi
16880 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16881 $as_echo "$ac_cv_c_stack_direction" >&6; }
16882
16883 cat >>confdefs.h <<_ACEOF
16884 #define STACK_DIRECTION $ac_cv_c_stack_direction
16885 _ACEOF
16886
16887
16888 fi
16889
16890
16891 if test x"$ac_cv_func_alloca_works" != xyes; then
16892 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16893 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16894 { (exit 1); exit 1; }; }
16895 fi
16896
16897 # fmod, logb, and frexp are found in -lm on most systems.
16898 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16899
16900 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16901 $as_echo_n "checking for sqrt in -lm... " >&6; }
16902 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16903 $as_echo_n "(cached) " >&6
16904 else
16905 ac_check_lib_save_LIBS=$LIBS
16906 LIBS="-lm $LIBS"
16907 cat >conftest.$ac_ext <<_ACEOF
16908 /* confdefs.h. */
16909 _ACEOF
16910 cat confdefs.h >>conftest.$ac_ext
16911 cat >>conftest.$ac_ext <<_ACEOF
16912 /* end confdefs.h. */
16913
16914 /* Override any GCC internal prototype to avoid an error.
16915 Use char because int might match the return type of a GCC
16916 builtin and then its argument prototype would still apply. */
16917 #ifdef __cplusplus
16918 extern "C"
16919 #endif
16920 char sqrt ();
16921 int
16922 main ()
16923 {
16924 return sqrt ();
16925 ;
16926 return 0;
16927 }
16928 _ACEOF
16929 rm -f conftest.$ac_objext conftest$ac_exeext
16930 if { (ac_try="$ac_link"
16931 case "(($ac_try" in
16932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933 *) ac_try_echo=$ac_try;;
16934 esac
16935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16936 $as_echo "$ac_try_echo") >&5
16937 (eval "$ac_link") 2>conftest.er1
16938 ac_status=$?
16939 grep -v '^ *+' conftest.er1 >conftest.err
16940 rm -f conftest.er1
16941 cat conftest.err >&5
16942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); } && {
16944 test -z "$ac_c_werror_flag" ||
16945 test ! -s conftest.err
16946 } && test -s conftest$ac_exeext && {
16947 test "$cross_compiling" = yes ||
16948 $as_test_x conftest$ac_exeext
16949 }; then
16950 ac_cv_lib_m_sqrt=yes
16951 else
16952 $as_echo "$as_me: failed program was:" >&5
16953 sed 's/^/| /' conftest.$ac_ext >&5
16954
16955 ac_cv_lib_m_sqrt=no
16956 fi
16957
16958 rm -rf conftest.dSYM
16959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16960 conftest$ac_exeext conftest.$ac_ext
16961 LIBS=$ac_check_lib_save_LIBS
16962 fi
16963 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16964 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16965 if test $ac_cv_lib_m_sqrt = yes; then
16966 cat >>confdefs.h <<_ACEOF
16967 #define HAVE_LIBM 1
16968 _ACEOF
16969
16970 LIBS="-lm $LIBS"
16971
16972 fi
16973
16974
16975 # Check for mail-locking functions in a "mail" library. Probably this should
16976 # have the same check as for liblockfile below.
16977 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16978 $as_echo_n "checking for maillock in -lmail... " >&6; }
16979 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16980 $as_echo_n "(cached) " >&6
16981 else
16982 ac_check_lib_save_LIBS=$LIBS
16983 LIBS="-lmail $LIBS"
16984 cat >conftest.$ac_ext <<_ACEOF
16985 /* confdefs.h. */
16986 _ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h. */
16990
16991 /* Override any GCC internal prototype to avoid an error.
16992 Use char because int might match the return type of a GCC
16993 builtin and then its argument prototype would still apply. */
16994 #ifdef __cplusplus
16995 extern "C"
16996 #endif
16997 char maillock ();
16998 int
16999 main ()
17000 {
17001 return maillock ();
17002 ;
17003 return 0;
17004 }
17005 _ACEOF
17006 rm -f conftest.$ac_objext conftest$ac_exeext
17007 if { (ac_try="$ac_link"
17008 case "(($ac_try" in
17009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010 *) ac_try_echo=$ac_try;;
17011 esac
17012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17013 $as_echo "$ac_try_echo") >&5
17014 (eval "$ac_link") 2>conftest.er1
17015 ac_status=$?
17016 grep -v '^ *+' conftest.er1 >conftest.err
17017 rm -f conftest.er1
17018 cat conftest.err >&5
17019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); } && {
17021 test -z "$ac_c_werror_flag" ||
17022 test ! -s conftest.err
17023 } && test -s conftest$ac_exeext && {
17024 test "$cross_compiling" = yes ||
17025 $as_test_x conftest$ac_exeext
17026 }; then
17027 ac_cv_lib_mail_maillock=yes
17028 else
17029 $as_echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.$ac_ext >&5
17031
17032 ac_cv_lib_mail_maillock=no
17033 fi
17034
17035 rm -rf conftest.dSYM
17036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17037 conftest$ac_exeext conftest.$ac_ext
17038 LIBS=$ac_check_lib_save_LIBS
17039 fi
17040 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
17041 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17042 if test $ac_cv_lib_mail_maillock = yes; then
17043 have_mail=yes
17044 else
17045 have_mail=no
17046 fi
17047
17048 if test $have_mail = yes; then
17049 LIBS_MAIL=-lmail
17050 LIBS="$LIBS_MAIL $LIBS"
17051
17052 cat >>confdefs.h <<\_ACEOF
17053 #define HAVE_LIBMAIL 1
17054 _ACEOF
17055
17056 else
17057 LIBS_MAIL=
17058 fi
17059 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
17060 $as_echo_n "checking for maillock in -llockfile... " >&6; }
17061 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17062 $as_echo_n "(cached) " >&6
17063 else
17064 ac_check_lib_save_LIBS=$LIBS
17065 LIBS="-llockfile $LIBS"
17066 cat >conftest.$ac_ext <<_ACEOF
17067 /* confdefs.h. */
17068 _ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h. */
17072
17073 /* Override any GCC internal prototype to avoid an error.
17074 Use char because int might match the return type of a GCC
17075 builtin and then its argument prototype would still apply. */
17076 #ifdef __cplusplus
17077 extern "C"
17078 #endif
17079 char maillock ();
17080 int
17081 main ()
17082 {
17083 return maillock ();
17084 ;
17085 return 0;
17086 }
17087 _ACEOF
17088 rm -f conftest.$ac_objext conftest$ac_exeext
17089 if { (ac_try="$ac_link"
17090 case "(($ac_try" in
17091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092 *) ac_try_echo=$ac_try;;
17093 esac
17094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17095 $as_echo "$ac_try_echo") >&5
17096 (eval "$ac_link") 2>conftest.er1
17097 ac_status=$?
17098 grep -v '^ *+' conftest.er1 >conftest.err
17099 rm -f conftest.er1
17100 cat conftest.err >&5
17101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); } && {
17103 test -z "$ac_c_werror_flag" ||
17104 test ! -s conftest.err
17105 } && test -s conftest$ac_exeext && {
17106 test "$cross_compiling" = yes ||
17107 $as_test_x conftest$ac_exeext
17108 }; then
17109 ac_cv_lib_lockfile_maillock=yes
17110 else
17111 $as_echo "$as_me: failed program was:" >&5
17112 sed 's/^/| /' conftest.$ac_ext >&5
17113
17114 ac_cv_lib_lockfile_maillock=no
17115 fi
17116
17117 rm -rf conftest.dSYM
17118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17119 conftest$ac_exeext conftest.$ac_ext
17120 LIBS=$ac_check_lib_save_LIBS
17121 fi
17122 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
17123 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17124 if test $ac_cv_lib_lockfile_maillock = yes; then
17125 have_lockfile=yes
17126 else
17127 have_lockfile=no
17128 fi
17129
17130 if test $have_lockfile = yes; then
17131 LIBS_MAIL=-llockfile
17132 LIBS="$LIBS_MAIL $LIBS"
17133
17134 cat >>confdefs.h <<\_ACEOF
17135 #define HAVE_LIBLOCKFILE 1
17136 _ACEOF
17137
17138 else
17139 # If we have the shared liblockfile, assume we must use it for mail
17140 # locking (e.g. Debian). If we couldn't link against liblockfile
17141 # (no liblockfile.a installed), ensure that we don't need to.
17142 # Extract the first word of "liblockfile.so", so it can be a program name with args.
17143 set dummy liblockfile.so; ac_word=$2
17144 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17145 $as_echo_n "checking for $ac_word... " >&6; }
17146 if test "${ac_cv_prog_liblockfile+set}" = set; then
17147 $as_echo_n "(cached) " >&6
17148 else
17149 if test -n "$liblockfile"; then
17150 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17151 else
17152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17153 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
17154 for as_dir in $as_dummy
17155 do
17156 IFS=$as_save_IFS
17157 test -z "$as_dir" && as_dir=.
17158 for ac_exec_ext in '' $ac_executable_extensions; do
17159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17160 ac_cv_prog_liblockfile="yes"
17161 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17162 break 2
17163 fi
17164 done
17165 done
17166 IFS=$as_save_IFS
17167
17168 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
17169 fi
17170 fi
17171 liblockfile=$ac_cv_prog_liblockfile
17172 if test -n "$liblockfile"; then
17173 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
17174 $as_echo "$liblockfile" >&6; }
17175 else
17176 { $as_echo "$as_me:$LINENO: result: no" >&5
17177 $as_echo "no" >&6; }
17178 fi
17179
17180
17181 if test $ac_cv_prog_liblockfile = yes; then
17182 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
17183 This probably means that movemail could lose mail.
17184 There may be a \`development' package to install containing liblockfile." >&5
17185 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17186 This probably means that movemail could lose mail.
17187 There may be a \`development' package to install containing liblockfile." >&2;}
17188 { (exit 1); exit 1; }; }
17189 fi
17190 fi
17191
17192 for ac_func in touchlock
17193 do
17194 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17195 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17196 $as_echo_n "checking for $ac_func... " >&6; }
17197 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17198 $as_echo_n "(cached) " >&6
17199 else
17200 cat >conftest.$ac_ext <<_ACEOF
17201 /* confdefs.h. */
17202 _ACEOF
17203 cat confdefs.h >>conftest.$ac_ext
17204 cat >>conftest.$ac_ext <<_ACEOF
17205 /* end confdefs.h. */
17206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17208 #define $ac_func innocuous_$ac_func
17209
17210 /* System header to define __stub macros and hopefully few prototypes,
17211 which can conflict with char $ac_func (); below.
17212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17213 <limits.h> exists even on freestanding compilers. */
17214
17215 #ifdef __STDC__
17216 # include <limits.h>
17217 #else
17218 # include <assert.h>
17219 #endif
17220
17221 #undef $ac_func
17222
17223 /* Override any GCC internal prototype to avoid an error.
17224 Use char because int might match the return type of a GCC
17225 builtin and then its argument prototype would still apply. */
17226 #ifdef __cplusplus
17227 extern "C"
17228 #endif
17229 char $ac_func ();
17230 /* The GNU C library defines this for functions which it implements
17231 to always fail with ENOSYS. Some functions are actually named
17232 something starting with __ and the normal name is an alias. */
17233 #if defined __stub_$ac_func || defined __stub___$ac_func
17234 choke me
17235 #endif
17236
17237 int
17238 main ()
17239 {
17240 return $ac_func ();
17241 ;
17242 return 0;
17243 }
17244 _ACEOF
17245 rm -f conftest.$ac_objext conftest$ac_exeext
17246 if { (ac_try="$ac_link"
17247 case "(($ac_try" in
17248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249 *) ac_try_echo=$ac_try;;
17250 esac
17251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17252 $as_echo "$ac_try_echo") >&5
17253 (eval "$ac_link") 2>conftest.er1
17254 ac_status=$?
17255 grep -v '^ *+' conftest.er1 >conftest.err
17256 rm -f conftest.er1
17257 cat conftest.err >&5
17258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); } && {
17260 test -z "$ac_c_werror_flag" ||
17261 test ! -s conftest.err
17262 } && test -s conftest$ac_exeext && {
17263 test "$cross_compiling" = yes ||
17264 $as_test_x conftest$ac_exeext
17265 }; then
17266 eval "$as_ac_var=yes"
17267 else
17268 $as_echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17270
17271 eval "$as_ac_var=no"
17272 fi
17273
17274 rm -rf conftest.dSYM
17275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17276 conftest$ac_exeext conftest.$ac_ext
17277 fi
17278 ac_res=`eval 'as_val=${'$as_ac_var'}
17279 $as_echo "$as_val"'`
17280 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17281 $as_echo "$ac_res" >&6; }
17282 if test `eval 'as_val=${'$as_ac_var'}
17283 $as_echo "$as_val"'` = yes; then
17284 cat >>confdefs.h <<_ACEOF
17285 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17286 _ACEOF
17287
17288 fi
17289 done
17290
17291
17292 for ac_header in maillock.h
17293 do
17294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17296 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17297 $as_echo_n "checking for $ac_header... " >&6; }
17298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17299 $as_echo_n "(cached) " >&6
17300 fi
17301 ac_res=`eval 'as_val=${'$as_ac_Header'}
17302 $as_echo "$as_val"'`
17303 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17304 $as_echo "$ac_res" >&6; }
17305 else
17306 # Is the header compilable?
17307 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17308 $as_echo_n "checking $ac_header usability... " >&6; }
17309 cat >conftest.$ac_ext <<_ACEOF
17310 /* confdefs.h. */
17311 _ACEOF
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h. */
17315 $ac_includes_default
17316 #include <$ac_header>
17317 _ACEOF
17318 rm -f conftest.$ac_objext
17319 if { (ac_try="$ac_compile"
17320 case "(($ac_try" in
17321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17322 *) ac_try_echo=$ac_try;;
17323 esac
17324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17325 $as_echo "$ac_try_echo") >&5
17326 (eval "$ac_compile") 2>conftest.er1
17327 ac_status=$?
17328 grep -v '^ *+' conftest.er1 >conftest.err
17329 rm -f conftest.er1
17330 cat conftest.err >&5
17331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); } && {
17333 test -z "$ac_c_werror_flag" ||
17334 test ! -s conftest.err
17335 } && test -s conftest.$ac_objext; then
17336 ac_header_compiler=yes
17337 else
17338 $as_echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17340
17341 ac_header_compiler=no
17342 fi
17343
17344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17345 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17346 $as_echo "$ac_header_compiler" >&6; }
17347
17348 # Is the header present?
17349 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17350 $as_echo_n "checking $ac_header presence... " >&6; }
17351 cat >conftest.$ac_ext <<_ACEOF
17352 /* confdefs.h. */
17353 _ACEOF
17354 cat confdefs.h >>conftest.$ac_ext
17355 cat >>conftest.$ac_ext <<_ACEOF
17356 /* end confdefs.h. */
17357 #include <$ac_header>
17358 _ACEOF
17359 if { (ac_try="$ac_cpp conftest.$ac_ext"
17360 case "(($ac_try" in
17361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17362 *) ac_try_echo=$ac_try;;
17363 esac
17364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17365 $as_echo "$ac_try_echo") >&5
17366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17367 ac_status=$?
17368 grep -v '^ *+' conftest.er1 >conftest.err
17369 rm -f conftest.er1
17370 cat conftest.err >&5
17371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); } >/dev/null && {
17373 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17374 test ! -s conftest.err
17375 }; then
17376 ac_header_preproc=yes
17377 else
17378 $as_echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.$ac_ext >&5
17380
17381 ac_header_preproc=no
17382 fi
17383
17384 rm -f conftest.err conftest.$ac_ext
17385 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17386 $as_echo "$ac_header_preproc" >&6; }
17387
17388 # So? What about this header?
17389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17390 yes:no: )
17391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17392 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17394 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17395 ac_header_preproc=yes
17396 ;;
17397 no:yes:* )
17398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17399 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17401 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17403 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17405 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17407 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17409 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17410
17411 ;;
17412 esac
17413 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17414 $as_echo_n "checking for $ac_header... " >&6; }
17415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17416 $as_echo_n "(cached) " >&6
17417 else
17418 eval "$as_ac_Header=\$ac_header_preproc"
17419 fi
17420 ac_res=`eval 'as_val=${'$as_ac_Header'}
17421 $as_echo "$as_val"'`
17422 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17423 $as_echo "$ac_res" >&6; }
17424
17425 fi
17426 if test `eval 'as_val=${'$as_ac_Header'}
17427 $as_echo "$as_val"'` = yes; then
17428 cat >>confdefs.h <<_ACEOF
17429 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17430 _ACEOF
17431
17432 fi
17433
17434 done
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509 for ac_func in gethostname getdomainname dup2 \
17510 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17511 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17512 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17513 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17514 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17515 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17516 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17517 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17518 cfmakeraw cfsetspeed
17519 do
17520 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17521 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17522 $as_echo_n "checking for $ac_func... " >&6; }
17523 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17524 $as_echo_n "(cached) " >&6
17525 else
17526 cat >conftest.$ac_ext <<_ACEOF
17527 /* confdefs.h. */
17528 _ACEOF
17529 cat confdefs.h >>conftest.$ac_ext
17530 cat >>conftest.$ac_ext <<_ACEOF
17531 /* end confdefs.h. */
17532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17534 #define $ac_func innocuous_$ac_func
17535
17536 /* System header to define __stub macros and hopefully few prototypes,
17537 which can conflict with char $ac_func (); below.
17538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17539 <limits.h> exists even on freestanding compilers. */
17540
17541 #ifdef __STDC__
17542 # include <limits.h>
17543 #else
17544 # include <assert.h>
17545 #endif
17546
17547 #undef $ac_func
17548
17549 /* Override any GCC internal prototype to avoid an error.
17550 Use char because int might match the return type of a GCC
17551 builtin and then its argument prototype would still apply. */
17552 #ifdef __cplusplus
17553 extern "C"
17554 #endif
17555 char $ac_func ();
17556 /* The GNU C library defines this for functions which it implements
17557 to always fail with ENOSYS. Some functions are actually named
17558 something starting with __ and the normal name is an alias. */
17559 #if defined __stub_$ac_func || defined __stub___$ac_func
17560 choke me
17561 #endif
17562
17563 int
17564 main ()
17565 {
17566 return $ac_func ();
17567 ;
17568 return 0;
17569 }
17570 _ACEOF
17571 rm -f conftest.$ac_objext conftest$ac_exeext
17572 if { (ac_try="$ac_link"
17573 case "(($ac_try" in
17574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17575 *) ac_try_echo=$ac_try;;
17576 esac
17577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17578 $as_echo "$ac_try_echo") >&5
17579 (eval "$ac_link") 2>conftest.er1
17580 ac_status=$?
17581 grep -v '^ *+' conftest.er1 >conftest.err
17582 rm -f conftest.er1
17583 cat conftest.err >&5
17584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); } && {
17586 test -z "$ac_c_werror_flag" ||
17587 test ! -s conftest.err
17588 } && test -s conftest$ac_exeext && {
17589 test "$cross_compiling" = yes ||
17590 $as_test_x conftest$ac_exeext
17591 }; then
17592 eval "$as_ac_var=yes"
17593 else
17594 $as_echo "$as_me: failed program was:" >&5
17595 sed 's/^/| /' conftest.$ac_ext >&5
17596
17597 eval "$as_ac_var=no"
17598 fi
17599
17600 rm -rf conftest.dSYM
17601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17602 conftest$ac_exeext conftest.$ac_ext
17603 fi
17604 ac_res=`eval 'as_val=${'$as_ac_var'}
17605 $as_echo "$as_val"'`
17606 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17607 $as_echo "$ac_res" >&6; }
17608 if test `eval 'as_val=${'$as_ac_var'}
17609 $as_echo "$as_val"'` = yes; then
17610 cat >>confdefs.h <<_ACEOF
17611 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17612 _ACEOF
17613
17614 fi
17615 done
17616
17617
17618
17619 for ac_header in sys/un.h
17620 do
17621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17623 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17624 $as_echo_n "checking for $ac_header... " >&6; }
17625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17626 $as_echo_n "(cached) " >&6
17627 fi
17628 ac_res=`eval 'as_val=${'$as_ac_Header'}
17629 $as_echo "$as_val"'`
17630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17631 $as_echo "$ac_res" >&6; }
17632 else
17633 # Is the header compilable?
17634 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17635 $as_echo_n "checking $ac_header usability... " >&6; }
17636 cat >conftest.$ac_ext <<_ACEOF
17637 /* confdefs.h. */
17638 _ACEOF
17639 cat confdefs.h >>conftest.$ac_ext
17640 cat >>conftest.$ac_ext <<_ACEOF
17641 /* end confdefs.h. */
17642 $ac_includes_default
17643 #include <$ac_header>
17644 _ACEOF
17645 rm -f conftest.$ac_objext
17646 if { (ac_try="$ac_compile"
17647 case "(($ac_try" in
17648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17650 esac
17651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17652 $as_echo "$ac_try_echo") >&5
17653 (eval "$ac_compile") 2>conftest.er1
17654 ac_status=$?
17655 grep -v '^ *+' conftest.er1 >conftest.err
17656 rm -f conftest.er1
17657 cat conftest.err >&5
17658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); } && {
17660 test -z "$ac_c_werror_flag" ||
17661 test ! -s conftest.err
17662 } && test -s conftest.$ac_objext; then
17663 ac_header_compiler=yes
17664 else
17665 $as_echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17667
17668 ac_header_compiler=no
17669 fi
17670
17671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17672 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17673 $as_echo "$ac_header_compiler" >&6; }
17674
17675 # Is the header present?
17676 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17677 $as_echo_n "checking $ac_header presence... " >&6; }
17678 cat >conftest.$ac_ext <<_ACEOF
17679 /* confdefs.h. */
17680 _ACEOF
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h. */
17684 #include <$ac_header>
17685 _ACEOF
17686 if { (ac_try="$ac_cpp conftest.$ac_ext"
17687 case "(($ac_try" in
17688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689 *) ac_try_echo=$ac_try;;
17690 esac
17691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17692 $as_echo "$ac_try_echo") >&5
17693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17694 ac_status=$?
17695 grep -v '^ *+' conftest.er1 >conftest.err
17696 rm -f conftest.er1
17697 cat conftest.err >&5
17698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); } >/dev/null && {
17700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17701 test ! -s conftest.err
17702 }; then
17703 ac_header_preproc=yes
17704 else
17705 $as_echo "$as_me: failed program was:" >&5
17706 sed 's/^/| /' conftest.$ac_ext >&5
17707
17708 ac_header_preproc=no
17709 fi
17710
17711 rm -f conftest.err conftest.$ac_ext
17712 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17713 $as_echo "$ac_header_preproc" >&6; }
17714
17715 # So? What about this header?
17716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17717 yes:no: )
17718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17719 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17720 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17721 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17722 ac_header_preproc=yes
17723 ;;
17724 no:yes:* )
17725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17726 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17728 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17730 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17732 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17734 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17736 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17737
17738 ;;
17739 esac
17740 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17741 $as_echo_n "checking for $ac_header... " >&6; }
17742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17743 $as_echo_n "(cached) " >&6
17744 else
17745 eval "$as_ac_Header=\$ac_header_preproc"
17746 fi
17747 ac_res=`eval 'as_val=${'$as_ac_Header'}
17748 $as_echo "$as_val"'`
17749 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17750 $as_echo "$ac_res" >&6; }
17751
17752 fi
17753 if test `eval 'as_val=${'$as_ac_Header'}
17754 $as_echo "$as_val"'` = yes; then
17755 cat >>confdefs.h <<_ACEOF
17756 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17757 _ACEOF
17758
17759 fi
17760
17761 done
17762
17763
17764
17765
17766
17767
17768 for ac_header in $ac_header_list
17769 do
17770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17772 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17773 $as_echo_n "checking for $ac_header... " >&6; }
17774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17775 $as_echo_n "(cached) " >&6
17776 fi
17777 ac_res=`eval 'as_val=${'$as_ac_Header'}
17778 $as_echo "$as_val"'`
17779 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17780 $as_echo "$ac_res" >&6; }
17781 else
17782 # Is the header compilable?
17783 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17784 $as_echo_n "checking $ac_header usability... " >&6; }
17785 cat >conftest.$ac_ext <<_ACEOF
17786 /* confdefs.h. */
17787 _ACEOF
17788 cat confdefs.h >>conftest.$ac_ext
17789 cat >>conftest.$ac_ext <<_ACEOF
17790 /* end confdefs.h. */
17791 $ac_includes_default
17792 #include <$ac_header>
17793 _ACEOF
17794 rm -f conftest.$ac_objext
17795 if { (ac_try="$ac_compile"
17796 case "(($ac_try" in
17797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17798 *) ac_try_echo=$ac_try;;
17799 esac
17800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17801 $as_echo "$ac_try_echo") >&5
17802 (eval "$ac_compile") 2>conftest.er1
17803 ac_status=$?
17804 grep -v '^ *+' conftest.er1 >conftest.err
17805 rm -f conftest.er1
17806 cat conftest.err >&5
17807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); } && {
17809 test -z "$ac_c_werror_flag" ||
17810 test ! -s conftest.err
17811 } && test -s conftest.$ac_objext; then
17812 ac_header_compiler=yes
17813 else
17814 $as_echo "$as_me: failed program was:" >&5
17815 sed 's/^/| /' conftest.$ac_ext >&5
17816
17817 ac_header_compiler=no
17818 fi
17819
17820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17821 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17822 $as_echo "$ac_header_compiler" >&6; }
17823
17824 # Is the header present?
17825 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17826 $as_echo_n "checking $ac_header presence... " >&6; }
17827 cat >conftest.$ac_ext <<_ACEOF
17828 /* confdefs.h. */
17829 _ACEOF
17830 cat confdefs.h >>conftest.$ac_ext
17831 cat >>conftest.$ac_ext <<_ACEOF
17832 /* end confdefs.h. */
17833 #include <$ac_header>
17834 _ACEOF
17835 if { (ac_try="$ac_cpp conftest.$ac_ext"
17836 case "(($ac_try" in
17837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17838 *) ac_try_echo=$ac_try;;
17839 esac
17840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17841 $as_echo "$ac_try_echo") >&5
17842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17843 ac_status=$?
17844 grep -v '^ *+' conftest.er1 >conftest.err
17845 rm -f conftest.er1
17846 cat conftest.err >&5
17847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); } >/dev/null && {
17849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17850 test ! -s conftest.err
17851 }; then
17852 ac_header_preproc=yes
17853 else
17854 $as_echo "$as_me: failed program was:" >&5
17855 sed 's/^/| /' conftest.$ac_ext >&5
17856
17857 ac_header_preproc=no
17858 fi
17859
17860 rm -f conftest.err conftest.$ac_ext
17861 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17862 $as_echo "$ac_header_preproc" >&6; }
17863
17864 # So? What about this header?
17865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17866 yes:no: )
17867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17868 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17870 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17871 ac_header_preproc=yes
17872 ;;
17873 no:yes:* )
17874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17875 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17877 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17879 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17881 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17883 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17885 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17886
17887 ;;
17888 esac
17889 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17890 $as_echo_n "checking for $ac_header... " >&6; }
17891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17892 $as_echo_n "(cached) " >&6
17893 else
17894 eval "$as_ac_Header=\$ac_header_preproc"
17895 fi
17896 ac_res=`eval 'as_val=${'$as_ac_Header'}
17897 $as_echo "$as_val"'`
17898 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17899 $as_echo "$ac_res" >&6; }
17900
17901 fi
17902 if test `eval 'as_val=${'$as_ac_Header'}
17903 $as_echo "$as_val"'` = yes; then
17904 cat >>confdefs.h <<_ACEOF
17905 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17906 _ACEOF
17907
17908 fi
17909
17910 done
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920 for ac_func in $ac_func_list
17921 do
17922 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17923 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17924 $as_echo_n "checking for $ac_func... " >&6; }
17925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17926 $as_echo_n "(cached) " >&6
17927 else
17928 cat >conftest.$ac_ext <<_ACEOF
17929 /* confdefs.h. */
17930 _ACEOF
17931 cat confdefs.h >>conftest.$ac_ext
17932 cat >>conftest.$ac_ext <<_ACEOF
17933 /* end confdefs.h. */
17934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17936 #define $ac_func innocuous_$ac_func
17937
17938 /* System header to define __stub macros and hopefully few prototypes,
17939 which can conflict with char $ac_func (); below.
17940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17941 <limits.h> exists even on freestanding compilers. */
17942
17943 #ifdef __STDC__
17944 # include <limits.h>
17945 #else
17946 # include <assert.h>
17947 #endif
17948
17949 #undef $ac_func
17950
17951 /* Override any GCC internal prototype to avoid an error.
17952 Use char because int might match the return type of a GCC
17953 builtin and then its argument prototype would still apply. */
17954 #ifdef __cplusplus
17955 extern "C"
17956 #endif
17957 char $ac_func ();
17958 /* The GNU C library defines this for functions which it implements
17959 to always fail with ENOSYS. Some functions are actually named
17960 something starting with __ and the normal name is an alias. */
17961 #if defined __stub_$ac_func || defined __stub___$ac_func
17962 choke me
17963 #endif
17964
17965 int
17966 main ()
17967 {
17968 return $ac_func ();
17969 ;
17970 return 0;
17971 }
17972 _ACEOF
17973 rm -f conftest.$ac_objext conftest$ac_exeext
17974 if { (ac_try="$ac_link"
17975 case "(($ac_try" in
17976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17977 *) ac_try_echo=$ac_try;;
17978 esac
17979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17980 $as_echo "$ac_try_echo") >&5
17981 (eval "$ac_link") 2>conftest.er1
17982 ac_status=$?
17983 grep -v '^ *+' conftest.er1 >conftest.err
17984 rm -f conftest.er1
17985 cat conftest.err >&5
17986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } && {
17988 test -z "$ac_c_werror_flag" ||
17989 test ! -s conftest.err
17990 } && test -s conftest$ac_exeext && {
17991 test "$cross_compiling" = yes ||
17992 $as_test_x conftest$ac_exeext
17993 }; then
17994 eval "$as_ac_var=yes"
17995 else
17996 $as_echo "$as_me: failed program was:" >&5
17997 sed 's/^/| /' conftest.$ac_ext >&5
17998
17999 eval "$as_ac_var=no"
18000 fi
18001
18002 rm -rf conftest.dSYM
18003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18004 conftest$ac_exeext conftest.$ac_ext
18005 fi
18006 ac_res=`eval 'as_val=${'$as_ac_var'}
18007 $as_echo "$as_val"'`
18008 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18009 $as_echo "$ac_res" >&6; }
18010 if test `eval 'as_val=${'$as_ac_var'}
18011 $as_echo "$as_val"'` = yes; then
18012 cat >>confdefs.h <<_ACEOF
18013 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18014 _ACEOF
18015
18016 fi
18017 done
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
18036 $as_echo_n "checking for working mktime... " >&6; }
18037 if test "${ac_cv_func_working_mktime+set}" = set; then
18038 $as_echo_n "(cached) " >&6
18039 else
18040 if test "$cross_compiling" = yes; then
18041 ac_cv_func_working_mktime=no
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 /* Test program from Paul Eggert and Tony Leneis. */
18050 #ifdef TIME_WITH_SYS_TIME
18051 # include <sys/time.h>
18052 # include <time.h>
18053 #else
18054 # ifdef HAVE_SYS_TIME_H
18055 # include <sys/time.h>
18056 # else
18057 # include <time.h>
18058 # endif
18059 #endif
18060
18061 #include <limits.h>
18062 #include <stdlib.h>
18063
18064 #ifdef HAVE_UNISTD_H
18065 # include <unistd.h>
18066 #endif
18067
18068 #ifndef HAVE_ALARM
18069 # define alarm(X) /* empty */
18070 #endif
18071
18072 /* Work around redefinition to rpl_putenv by other config tests. */
18073 #undef putenv
18074
18075 static time_t time_t_max;
18076 static time_t time_t_min;
18077
18078 /* Values we'll use to set the TZ environment variable. */
18079 static char *tz_strings[] = {
18080 (char *) 0, "TZ=GMT0", "TZ=JST-9",
18081 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
18082 };
18083 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18084
18085 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18086 Based on a problem report from Andreas Jaeger. */
18087 static int
18088 spring_forward_gap ()
18089 {
18090 /* glibc (up to about 1998-10-07) failed this test. */
18091 struct tm tm;
18092
18093 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18094 instead of "TZ=America/Vancouver" in order to detect the bug even
18095 on systems that don't support the Olson extension, or don't have the
18096 full zoneinfo tables installed. */
18097 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18098
18099 tm.tm_year = 98;
18100 tm.tm_mon = 3;
18101 tm.tm_mday = 5;
18102 tm.tm_hour = 2;
18103 tm.tm_min = 0;
18104 tm.tm_sec = 0;
18105 tm.tm_isdst = -1;
18106 return mktime (&tm) != (time_t) -1;
18107 }
18108
18109 static int
18110 mktime_test1 (now)
18111 time_t now;
18112 {
18113 struct tm *lt;
18114 return ! (lt = localtime (&now)) || mktime (lt) == now;
18115 }
18116
18117 static int
18118 mktime_test (now)
18119 time_t now;
18120 {
18121 return (mktime_test1 (now)
18122 && mktime_test1 ((time_t) (time_t_max - now))
18123 && mktime_test1 ((time_t) (time_t_min + now)));
18124 }
18125
18126 static int
18127 irix_6_4_bug ()
18128 {
18129 /* Based on code from Ariel Faigon. */
18130 struct tm tm;
18131 tm.tm_year = 96;
18132 tm.tm_mon = 3;
18133 tm.tm_mday = 0;
18134 tm.tm_hour = 0;
18135 tm.tm_min = 0;
18136 tm.tm_sec = 0;
18137 tm.tm_isdst = -1;
18138 mktime (&tm);
18139 return tm.tm_mon == 2 && tm.tm_mday == 31;
18140 }
18141
18142 static int
18143 bigtime_test (j)
18144 int j;
18145 {
18146 struct tm tm;
18147 time_t now;
18148 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18149 now = mktime (&tm);
18150 if (now != (time_t) -1)
18151 {
18152 struct tm *lt = localtime (&now);
18153 if (! (lt
18154 && lt->tm_year == tm.tm_year
18155 && lt->tm_mon == tm.tm_mon
18156 && lt->tm_mday == tm.tm_mday
18157 && lt->tm_hour == tm.tm_hour
18158 && lt->tm_min == tm.tm_min
18159 && lt->tm_sec == tm.tm_sec
18160 && lt->tm_yday == tm.tm_yday
18161 && lt->tm_wday == tm.tm_wday
18162 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18163 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18164 return 0;
18165 }
18166 return 1;
18167 }
18168
18169 static int
18170 year_2050_test ()
18171 {
18172 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18173 ignoring leap seconds. */
18174 unsigned long int answer = 2527315200UL;
18175
18176 struct tm tm;
18177 time_t t;
18178 tm.tm_year = 2050 - 1900;
18179 tm.tm_mon = 2 - 1;
18180 tm.tm_mday = 1;
18181 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18182 tm.tm_isdst = -1;
18183
18184 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18185 instead of "TZ=America/Vancouver" in order to detect the bug even
18186 on systems that don't support the Olson extension, or don't have the
18187 full zoneinfo tables installed. */
18188 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18189
18190 t = mktime (&tm);
18191
18192 /* Check that the result is either a failure, or close enough
18193 to the correct answer that we can assume the discrepancy is
18194 due to leap seconds. */
18195 return (t == (time_t) -1
18196 || (0 < t && answer - 120 <= t && t <= answer + 120));
18197 }
18198
18199 int
18200 main ()
18201 {
18202 time_t t, delta;
18203 int i, j;
18204
18205 /* This test makes some buggy mktime implementations loop.
18206 Give up after 60 seconds; a mktime slower than that
18207 isn't worth using anyway. */
18208 alarm (60);
18209
18210 for (;;)
18211 {
18212 t = (time_t_max << 1) + 1;
18213 if (t <= time_t_max)
18214 break;
18215 time_t_max = t;
18216 }
18217 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18218
18219 delta = time_t_max / 997; /* a suitable prime number */
18220 for (i = 0; i < N_STRINGS; i++)
18221 {
18222 if (tz_strings[i])
18223 putenv (tz_strings[i]);
18224
18225 for (t = 0; t <= time_t_max - delta; t += delta)
18226 if (! mktime_test (t))
18227 return 1;
18228 if (! (mktime_test ((time_t) 1)
18229 && mktime_test ((time_t) (60 * 60))
18230 && mktime_test ((time_t) (60 * 60 * 24))))
18231 return 1;
18232
18233 for (j = 1; ; j <<= 1)
18234 if (! bigtime_test (j))
18235 return 1;
18236 else if (INT_MAX / 2 < j)
18237 break;
18238 if (! bigtime_test (INT_MAX))
18239 return 1;
18240 }
18241 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18242 }
18243 _ACEOF
18244 rm -f conftest$ac_exeext
18245 if { (ac_try="$ac_link"
18246 case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18249 esac
18250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18251 $as_echo "$ac_try_echo") >&5
18252 (eval "$ac_link") 2>&5
18253 ac_status=$?
18254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18256 { (case "(($ac_try" in
18257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18258 *) ac_try_echo=$ac_try;;
18259 esac
18260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18261 $as_echo "$ac_try_echo") >&5
18262 (eval "$ac_try") 2>&5
18263 ac_status=$?
18264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); }; }; then
18266 ac_cv_func_working_mktime=yes
18267 else
18268 $as_echo "$as_me: program exited with status $ac_status" >&5
18269 $as_echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18271
18272 ( exit $ac_status )
18273 ac_cv_func_working_mktime=no
18274 fi
18275 rm -rf conftest.dSYM
18276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18277 fi
18278
18279
18280 fi
18281 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18282 $as_echo "$ac_cv_func_working_mktime" >&6; }
18283 if test $ac_cv_func_working_mktime = no; then
18284 case " $LIBOBJS " in
18285 *" mktime.$ac_objext "* ) ;;
18286 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18287 ;;
18288 esac
18289
18290 fi
18291
18292 if test "$ac_cv_func_working_mktime" = no; then
18293
18294 cat >>confdefs.h <<\_ACEOF
18295 #define BROKEN_MKTIME 1
18296 _ACEOF
18297
18298 fi
18299
18300 ac_have_func=no # yes means we've found a way to get the load average.
18301
18302 # Make sure getloadavg.c is where it belongs, at configure-time.
18303 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18304 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18305 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18306 { (exit 1); exit 1; }; }
18307
18308 ac_save_LIBS=$LIBS
18309
18310 # Check for getloadavg, but be sure not to touch the cache variable.
18311 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18312 $as_echo_n "checking for getloadavg... " >&6; }
18313 if test "${ac_cv_func_getloadavg+set}" = set; then
18314 $as_echo_n "(cached) " >&6
18315 else
18316 cat >conftest.$ac_ext <<_ACEOF
18317 /* confdefs.h. */
18318 _ACEOF
18319 cat confdefs.h >>conftest.$ac_ext
18320 cat >>conftest.$ac_ext <<_ACEOF
18321 /* end confdefs.h. */
18322 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18324 #define getloadavg innocuous_getloadavg
18325
18326 /* System header to define __stub macros and hopefully few prototypes,
18327 which can conflict with char getloadavg (); below.
18328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18329 <limits.h> exists even on freestanding compilers. */
18330
18331 #ifdef __STDC__
18332 # include <limits.h>
18333 #else
18334 # include <assert.h>
18335 #endif
18336
18337 #undef getloadavg
18338
18339 /* Override any GCC internal prototype to avoid an error.
18340 Use char because int might match the return type of a GCC
18341 builtin and then its argument prototype would still apply. */
18342 #ifdef __cplusplus
18343 extern "C"
18344 #endif
18345 char getloadavg ();
18346 /* The GNU C library defines this for functions which it implements
18347 to always fail with ENOSYS. Some functions are actually named
18348 something starting with __ and the normal name is an alias. */
18349 #if defined __stub_getloadavg || defined __stub___getloadavg
18350 choke me
18351 #endif
18352
18353 int
18354 main ()
18355 {
18356 return getloadavg ();
18357 ;
18358 return 0;
18359 }
18360 _ACEOF
18361 rm -f conftest.$ac_objext conftest$ac_exeext
18362 if { (ac_try="$ac_link"
18363 case "(($ac_try" in
18364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365 *) ac_try_echo=$ac_try;;
18366 esac
18367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18368 $as_echo "$ac_try_echo") >&5
18369 (eval "$ac_link") 2>conftest.er1
18370 ac_status=$?
18371 grep -v '^ *+' conftest.er1 >conftest.err
18372 rm -f conftest.er1
18373 cat conftest.err >&5
18374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } && {
18376 test -z "$ac_c_werror_flag" ||
18377 test ! -s conftest.err
18378 } && test -s conftest$ac_exeext && {
18379 test "$cross_compiling" = yes ||
18380 $as_test_x conftest$ac_exeext
18381 }; then
18382 ac_cv_func_getloadavg=yes
18383 else
18384 $as_echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.$ac_ext >&5
18386
18387 ac_cv_func_getloadavg=no
18388 fi
18389
18390 rm -rf conftest.dSYM
18391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18392 conftest$ac_exeext conftest.$ac_ext
18393 fi
18394 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18395 $as_echo "$ac_cv_func_getloadavg" >&6; }
18396 if test $ac_cv_func_getloadavg = yes; then
18397 exit 0
18398 else
18399 exit 1
18400 fi
18401 ) && ac_have_func=yes
18402
18403 # On HPUX9, an unprivileged user can get load averages through this function.
18404
18405 for ac_func in pstat_getdynamic
18406 do
18407 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18408 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18409 $as_echo_n "checking for $ac_func... " >&6; }
18410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18411 $as_echo_n "(cached) " >&6
18412 else
18413 cat >conftest.$ac_ext <<_ACEOF
18414 /* confdefs.h. */
18415 _ACEOF
18416 cat confdefs.h >>conftest.$ac_ext
18417 cat >>conftest.$ac_ext <<_ACEOF
18418 /* end confdefs.h. */
18419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18421 #define $ac_func innocuous_$ac_func
18422
18423 /* System header to define __stub macros and hopefully few prototypes,
18424 which can conflict with char $ac_func (); below.
18425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18426 <limits.h> exists even on freestanding compilers. */
18427
18428 #ifdef __STDC__
18429 # include <limits.h>
18430 #else
18431 # include <assert.h>
18432 #endif
18433
18434 #undef $ac_func
18435
18436 /* Override any GCC internal prototype to avoid an error.
18437 Use char because int might match the return type of a GCC
18438 builtin and then its argument prototype would still apply. */
18439 #ifdef __cplusplus
18440 extern "C"
18441 #endif
18442 char $ac_func ();
18443 /* The GNU C library defines this for functions which it implements
18444 to always fail with ENOSYS. Some functions are actually named
18445 something starting with __ and the normal name is an alias. */
18446 #if defined __stub_$ac_func || defined __stub___$ac_func
18447 choke me
18448 #endif
18449
18450 int
18451 main ()
18452 {
18453 return $ac_func ();
18454 ;
18455 return 0;
18456 }
18457 _ACEOF
18458 rm -f conftest.$ac_objext conftest$ac_exeext
18459 if { (ac_try="$ac_link"
18460 case "(($ac_try" in
18461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462 *) ac_try_echo=$ac_try;;
18463 esac
18464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18465 $as_echo "$ac_try_echo") >&5
18466 (eval "$ac_link") 2>conftest.er1
18467 ac_status=$?
18468 grep -v '^ *+' conftest.er1 >conftest.err
18469 rm -f conftest.er1
18470 cat conftest.err >&5
18471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); } && {
18473 test -z "$ac_c_werror_flag" ||
18474 test ! -s conftest.err
18475 } && test -s conftest$ac_exeext && {
18476 test "$cross_compiling" = yes ||
18477 $as_test_x conftest$ac_exeext
18478 }; then
18479 eval "$as_ac_var=yes"
18480 else
18481 $as_echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18483
18484 eval "$as_ac_var=no"
18485 fi
18486
18487 rm -rf conftest.dSYM
18488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18489 conftest$ac_exeext conftest.$ac_ext
18490 fi
18491 ac_res=`eval 'as_val=${'$as_ac_var'}
18492 $as_echo "$as_val"'`
18493 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18494 $as_echo "$ac_res" >&6; }
18495 if test `eval 'as_val=${'$as_ac_var'}
18496 $as_echo "$as_val"'` = yes; then
18497 cat >>confdefs.h <<_ACEOF
18498 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18499 _ACEOF
18500
18501 fi
18502 done
18503
18504
18505 # Solaris has libkstat which does not require root.
18506
18507 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18508 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18509 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18510 $as_echo_n "(cached) " >&6
18511 else
18512 ac_check_lib_save_LIBS=$LIBS
18513 LIBS="-lkstat $LIBS"
18514 cat >conftest.$ac_ext <<_ACEOF
18515 /* confdefs.h. */
18516 _ACEOF
18517 cat confdefs.h >>conftest.$ac_ext
18518 cat >>conftest.$ac_ext <<_ACEOF
18519 /* end confdefs.h. */
18520
18521 /* Override any GCC internal prototype to avoid an error.
18522 Use char because int might match the return type of a GCC
18523 builtin and then its argument prototype would still apply. */
18524 #ifdef __cplusplus
18525 extern "C"
18526 #endif
18527 char kstat_open ();
18528 int
18529 main ()
18530 {
18531 return kstat_open ();
18532 ;
18533 return 0;
18534 }
18535 _ACEOF
18536 rm -f conftest.$ac_objext conftest$ac_exeext
18537 if { (ac_try="$ac_link"
18538 case "(($ac_try" in
18539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540 *) ac_try_echo=$ac_try;;
18541 esac
18542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18543 $as_echo "$ac_try_echo") >&5
18544 (eval "$ac_link") 2>conftest.er1
18545 ac_status=$?
18546 grep -v '^ *+' conftest.er1 >conftest.err
18547 rm -f conftest.er1
18548 cat conftest.err >&5
18549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } && {
18551 test -z "$ac_c_werror_flag" ||
18552 test ! -s conftest.err
18553 } && test -s conftest$ac_exeext && {
18554 test "$cross_compiling" = yes ||
18555 $as_test_x conftest$ac_exeext
18556 }; then
18557 ac_cv_lib_kstat_kstat_open=yes
18558 else
18559 $as_echo "$as_me: failed program was:" >&5
18560 sed 's/^/| /' conftest.$ac_ext >&5
18561
18562 ac_cv_lib_kstat_kstat_open=no
18563 fi
18564
18565 rm -rf conftest.dSYM
18566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18567 conftest$ac_exeext conftest.$ac_ext
18568 LIBS=$ac_check_lib_save_LIBS
18569 fi
18570 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18571 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18572 if test $ac_cv_lib_kstat_kstat_open = yes; then
18573 cat >>confdefs.h <<_ACEOF
18574 #define HAVE_LIBKSTAT 1
18575 _ACEOF
18576
18577 LIBS="-lkstat $LIBS"
18578
18579 fi
18580
18581 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18582
18583 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18584 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18585 # to get the right answer into the cache.
18586 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18587 if test $ac_have_func = no; then
18588 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18589 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18590 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18591 $as_echo_n "(cached) " >&6
18592 else
18593 ac_check_lib_save_LIBS=$LIBS
18594 LIBS="-lelf $LIBS"
18595 cat >conftest.$ac_ext <<_ACEOF
18596 /* confdefs.h. */
18597 _ACEOF
18598 cat confdefs.h >>conftest.$ac_ext
18599 cat >>conftest.$ac_ext <<_ACEOF
18600 /* end confdefs.h. */
18601
18602 /* Override any GCC internal prototype to avoid an error.
18603 Use char because int might match the return type of a GCC
18604 builtin and then its argument prototype would still apply. */
18605 #ifdef __cplusplus
18606 extern "C"
18607 #endif
18608 char elf_begin ();
18609 int
18610 main ()
18611 {
18612 return elf_begin ();
18613 ;
18614 return 0;
18615 }
18616 _ACEOF
18617 rm -f conftest.$ac_objext conftest$ac_exeext
18618 if { (ac_try="$ac_link"
18619 case "(($ac_try" in
18620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18621 *) ac_try_echo=$ac_try;;
18622 esac
18623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18624 $as_echo "$ac_try_echo") >&5
18625 (eval "$ac_link") 2>conftest.er1
18626 ac_status=$?
18627 grep -v '^ *+' conftest.er1 >conftest.err
18628 rm -f conftest.er1
18629 cat conftest.err >&5
18630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); } && {
18632 test -z "$ac_c_werror_flag" ||
18633 test ! -s conftest.err
18634 } && test -s conftest$ac_exeext && {
18635 test "$cross_compiling" = yes ||
18636 $as_test_x conftest$ac_exeext
18637 }; then
18638 ac_cv_lib_elf_elf_begin=yes
18639 else
18640 $as_echo "$as_me: failed program was:" >&5
18641 sed 's/^/| /' conftest.$ac_ext >&5
18642
18643 ac_cv_lib_elf_elf_begin=no
18644 fi
18645
18646 rm -rf conftest.dSYM
18647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18648 conftest$ac_exeext conftest.$ac_ext
18649 LIBS=$ac_check_lib_save_LIBS
18650 fi
18651 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18652 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18653 if test $ac_cv_lib_elf_elf_begin = yes; then
18654 LIBS="-lelf $LIBS"
18655 fi
18656
18657 fi
18658 if test $ac_have_func = no; then
18659 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18660 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18661 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18662 $as_echo_n "(cached) " >&6
18663 else
18664 ac_check_lib_save_LIBS=$LIBS
18665 LIBS="-lkvm $LIBS"
18666 cat >conftest.$ac_ext <<_ACEOF
18667 /* confdefs.h. */
18668 _ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18672
18673 /* Override any GCC internal prototype to avoid an error.
18674 Use char because int might match the return type of a GCC
18675 builtin and then its argument prototype would still apply. */
18676 #ifdef __cplusplus
18677 extern "C"
18678 #endif
18679 char kvm_open ();
18680 int
18681 main ()
18682 {
18683 return kvm_open ();
18684 ;
18685 return 0;
18686 }
18687 _ACEOF
18688 rm -f conftest.$ac_objext conftest$ac_exeext
18689 if { (ac_try="$ac_link"
18690 case "(($ac_try" in
18691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692 *) ac_try_echo=$ac_try;;
18693 esac
18694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18695 $as_echo "$ac_try_echo") >&5
18696 (eval "$ac_link") 2>conftest.er1
18697 ac_status=$?
18698 grep -v '^ *+' conftest.er1 >conftest.err
18699 rm -f conftest.er1
18700 cat conftest.err >&5
18701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); } && {
18703 test -z "$ac_c_werror_flag" ||
18704 test ! -s conftest.err
18705 } && test -s conftest$ac_exeext && {
18706 test "$cross_compiling" = yes ||
18707 $as_test_x conftest$ac_exeext
18708 }; then
18709 ac_cv_lib_kvm_kvm_open=yes
18710 else
18711 $as_echo "$as_me: failed program was:" >&5
18712 sed 's/^/| /' conftest.$ac_ext >&5
18713
18714 ac_cv_lib_kvm_kvm_open=no
18715 fi
18716
18717 rm -rf conftest.dSYM
18718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18719 conftest$ac_exeext conftest.$ac_ext
18720 LIBS=$ac_check_lib_save_LIBS
18721 fi
18722 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18723 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18724 if test $ac_cv_lib_kvm_kvm_open = yes; then
18725 LIBS="-lkvm $LIBS"
18726 fi
18727
18728 # Check for the 4.4BSD definition of getloadavg.
18729 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18730 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18731 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18732 $as_echo_n "(cached) " >&6
18733 else
18734 ac_check_lib_save_LIBS=$LIBS
18735 LIBS="-lutil $LIBS"
18736 cat >conftest.$ac_ext <<_ACEOF
18737 /* confdefs.h. */
18738 _ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h. */
18742
18743 /* Override any GCC internal prototype to avoid an error.
18744 Use char because int might match the return type of a GCC
18745 builtin and then its argument prototype would still apply. */
18746 #ifdef __cplusplus
18747 extern "C"
18748 #endif
18749 char getloadavg ();
18750 int
18751 main ()
18752 {
18753 return getloadavg ();
18754 ;
18755 return 0;
18756 }
18757 _ACEOF
18758 rm -f conftest.$ac_objext conftest$ac_exeext
18759 if { (ac_try="$ac_link"
18760 case "(($ac_try" in
18761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18763 esac
18764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18765 $as_echo "$ac_try_echo") >&5
18766 (eval "$ac_link") 2>conftest.er1
18767 ac_status=$?
18768 grep -v '^ *+' conftest.er1 >conftest.err
18769 rm -f conftest.er1
18770 cat conftest.err >&5
18771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } && {
18773 test -z "$ac_c_werror_flag" ||
18774 test ! -s conftest.err
18775 } && test -s conftest$ac_exeext && {
18776 test "$cross_compiling" = yes ||
18777 $as_test_x conftest$ac_exeext
18778 }; then
18779 ac_cv_lib_util_getloadavg=yes
18780 else
18781 $as_echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18783
18784 ac_cv_lib_util_getloadavg=no
18785 fi
18786
18787 rm -rf conftest.dSYM
18788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18789 conftest$ac_exeext conftest.$ac_ext
18790 LIBS=$ac_check_lib_save_LIBS
18791 fi
18792 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18793 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18794 if test $ac_cv_lib_util_getloadavg = yes; then
18795 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18796 fi
18797
18798 fi
18799
18800 if test $ac_have_func = no; then
18801 # There is a commonly available library for RS/6000 AIX.
18802 # Since it is not a standard part of AIX, it might be installed locally.
18803 ac_getloadavg_LIBS=$LIBS
18804 LIBS="-L/usr/local/lib $LIBS"
18805 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18806 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18807 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18808 $as_echo_n "(cached) " >&6
18809 else
18810 ac_check_lib_save_LIBS=$LIBS
18811 LIBS="-lgetloadavg $LIBS"
18812 cat >conftest.$ac_ext <<_ACEOF
18813 /* confdefs.h. */
18814 _ACEOF
18815 cat confdefs.h >>conftest.$ac_ext
18816 cat >>conftest.$ac_ext <<_ACEOF
18817 /* end confdefs.h. */
18818
18819 /* Override any GCC internal prototype to avoid an error.
18820 Use char because int might match the return type of a GCC
18821 builtin and then its argument prototype would still apply. */
18822 #ifdef __cplusplus
18823 extern "C"
18824 #endif
18825 char getloadavg ();
18826 int
18827 main ()
18828 {
18829 return getloadavg ();
18830 ;
18831 return 0;
18832 }
18833 _ACEOF
18834 rm -f conftest.$ac_objext conftest$ac_exeext
18835 if { (ac_try="$ac_link"
18836 case "(($ac_try" in
18837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838 *) ac_try_echo=$ac_try;;
18839 esac
18840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18841 $as_echo "$ac_try_echo") >&5
18842 (eval "$ac_link") 2>conftest.er1
18843 ac_status=$?
18844 grep -v '^ *+' conftest.er1 >conftest.err
18845 rm -f conftest.er1
18846 cat conftest.err >&5
18847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); } && {
18849 test -z "$ac_c_werror_flag" ||
18850 test ! -s conftest.err
18851 } && test -s conftest$ac_exeext && {
18852 test "$cross_compiling" = yes ||
18853 $as_test_x conftest$ac_exeext
18854 }; then
18855 ac_cv_lib_getloadavg_getloadavg=yes
18856 else
18857 $as_echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.$ac_ext >&5
18859
18860 ac_cv_lib_getloadavg_getloadavg=no
18861 fi
18862
18863 rm -rf conftest.dSYM
18864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18865 conftest$ac_exeext conftest.$ac_ext
18866 LIBS=$ac_check_lib_save_LIBS
18867 fi
18868 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18869 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18870 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18871 LIBS="-lgetloadavg $LIBS"
18872 else
18873 LIBS=$ac_getloadavg_LIBS
18874 fi
18875
18876 fi
18877
18878 # Make sure it is really in the library, if we think we found it,
18879 # otherwise set up the replacement function.
18880
18881 for ac_func in getloadavg
18882 do
18883 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18884 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18885 $as_echo_n "checking for $ac_func... " >&6; }
18886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18887 $as_echo_n "(cached) " >&6
18888 else
18889 cat >conftest.$ac_ext <<_ACEOF
18890 /* confdefs.h. */
18891 _ACEOF
18892 cat confdefs.h >>conftest.$ac_ext
18893 cat >>conftest.$ac_ext <<_ACEOF
18894 /* end confdefs.h. */
18895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18897 #define $ac_func innocuous_$ac_func
18898
18899 /* System header to define __stub macros and hopefully few prototypes,
18900 which can conflict with char $ac_func (); below.
18901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18902 <limits.h> exists even on freestanding compilers. */
18903
18904 #ifdef __STDC__
18905 # include <limits.h>
18906 #else
18907 # include <assert.h>
18908 #endif
18909
18910 #undef $ac_func
18911
18912 /* Override any GCC internal prototype to avoid an error.
18913 Use char because int might match the return type of a GCC
18914 builtin and then its argument prototype would still apply. */
18915 #ifdef __cplusplus
18916 extern "C"
18917 #endif
18918 char $ac_func ();
18919 /* The GNU C library defines this for functions which it implements
18920 to always fail with ENOSYS. Some functions are actually named
18921 something starting with __ and the normal name is an alias. */
18922 #if defined __stub_$ac_func || defined __stub___$ac_func
18923 choke me
18924 #endif
18925
18926 int
18927 main ()
18928 {
18929 return $ac_func ();
18930 ;
18931 return 0;
18932 }
18933 _ACEOF
18934 rm -f conftest.$ac_objext conftest$ac_exeext
18935 if { (ac_try="$ac_link"
18936 case "(($ac_try" in
18937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18938 *) ac_try_echo=$ac_try;;
18939 esac
18940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18941 $as_echo "$ac_try_echo") >&5
18942 (eval "$ac_link") 2>conftest.er1
18943 ac_status=$?
18944 grep -v '^ *+' conftest.er1 >conftest.err
18945 rm -f conftest.er1
18946 cat conftest.err >&5
18947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); } && {
18949 test -z "$ac_c_werror_flag" ||
18950 test ! -s conftest.err
18951 } && test -s conftest$ac_exeext && {
18952 test "$cross_compiling" = yes ||
18953 $as_test_x conftest$ac_exeext
18954 }; then
18955 eval "$as_ac_var=yes"
18956 else
18957 $as_echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18959
18960 eval "$as_ac_var=no"
18961 fi
18962
18963 rm -rf conftest.dSYM
18964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18965 conftest$ac_exeext conftest.$ac_ext
18966 fi
18967 ac_res=`eval 'as_val=${'$as_ac_var'}
18968 $as_echo "$as_val"'`
18969 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18970 $as_echo "$ac_res" >&6; }
18971 if test `eval 'as_val=${'$as_ac_var'}
18972 $as_echo "$as_val"'` = yes; then
18973 cat >>confdefs.h <<_ACEOF
18974 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18975 _ACEOF
18976
18977 else
18978 case " $LIBOBJS " in
18979 *" getloadavg.$ac_objext "* ) ;;
18980 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18981 ;;
18982 esac
18983
18984
18985 cat >>confdefs.h <<\_ACEOF
18986 #define C_GETLOADAVG 1
18987 _ACEOF
18988
18989 # Figure out what our getloadavg.c needs.
18990 ac_have_func=no
18991 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18992 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18993 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18994 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18995 $as_echo_n "(cached) " >&6
18996 fi
18997 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18998 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18999 else
19000 # Is the header compilable?
19001 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
19002 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
19003 cat >conftest.$ac_ext <<_ACEOF
19004 /* confdefs.h. */
19005 _ACEOF
19006 cat confdefs.h >>conftest.$ac_ext
19007 cat >>conftest.$ac_ext <<_ACEOF
19008 /* end confdefs.h. */
19009 $ac_includes_default
19010 #include <sys/dg_sys_info.h>
19011 _ACEOF
19012 rm -f conftest.$ac_objext
19013 if { (ac_try="$ac_compile"
19014 case "(($ac_try" in
19015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19016 *) ac_try_echo=$ac_try;;
19017 esac
19018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19019 $as_echo "$ac_try_echo") >&5
19020 (eval "$ac_compile") 2>conftest.er1
19021 ac_status=$?
19022 grep -v '^ *+' conftest.er1 >conftest.err
19023 rm -f conftest.er1
19024 cat conftest.err >&5
19025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } && {
19027 test -z "$ac_c_werror_flag" ||
19028 test ! -s conftest.err
19029 } && test -s conftest.$ac_objext; then
19030 ac_header_compiler=yes
19031 else
19032 $as_echo "$as_me: failed program was:" >&5
19033 sed 's/^/| /' conftest.$ac_ext >&5
19034
19035 ac_header_compiler=no
19036 fi
19037
19038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19039 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19040 $as_echo "$ac_header_compiler" >&6; }
19041
19042 # Is the header present?
19043 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
19044 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
19045 cat >conftest.$ac_ext <<_ACEOF
19046 /* confdefs.h. */
19047 _ACEOF
19048 cat confdefs.h >>conftest.$ac_ext
19049 cat >>conftest.$ac_ext <<_ACEOF
19050 /* end confdefs.h. */
19051 #include <sys/dg_sys_info.h>
19052 _ACEOF
19053 if { (ac_try="$ac_cpp conftest.$ac_ext"
19054 case "(($ac_try" in
19055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19056 *) ac_try_echo=$ac_try;;
19057 esac
19058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19059 $as_echo "$ac_try_echo") >&5
19060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19061 ac_status=$?
19062 grep -v '^ *+' conftest.er1 >conftest.err
19063 rm -f conftest.er1
19064 cat conftest.err >&5
19065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } >/dev/null && {
19067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19068 test ! -s conftest.err
19069 }; then
19070 ac_header_preproc=yes
19071 else
19072 $as_echo "$as_me: failed program was:" >&5
19073 sed 's/^/| /' conftest.$ac_ext >&5
19074
19075 ac_header_preproc=no
19076 fi
19077
19078 rm -f conftest.err conftest.$ac_ext
19079 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19080 $as_echo "$ac_header_preproc" >&6; }
19081
19082 # So? What about this header?
19083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19084 yes:no: )
19085 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
19086 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19087 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
19088 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19089 ac_header_preproc=yes
19090 ;;
19091 no:yes:* )
19092 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19093 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19094 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
19095 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
19096 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19097 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19098 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
19099 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
19100 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19101 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19102 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19103 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19104
19105 ;;
19106 esac
19107 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19108 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19109 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19110 $as_echo_n "(cached) " >&6
19111 else
19112 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19113 fi
19114 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19115 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19116
19117 fi
19118 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19119 ac_have_func=yes
19120
19121 cat >>confdefs.h <<\_ACEOF
19122 #define DGUX 1
19123 _ACEOF
19124
19125
19126 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19127 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19128 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19129 $as_echo_n "(cached) " >&6
19130 else
19131 ac_check_lib_save_LIBS=$LIBS
19132 LIBS="-ldgc $LIBS"
19133 cat >conftest.$ac_ext <<_ACEOF
19134 /* confdefs.h. */
19135 _ACEOF
19136 cat confdefs.h >>conftest.$ac_ext
19137 cat >>conftest.$ac_ext <<_ACEOF
19138 /* end confdefs.h. */
19139
19140 /* Override any GCC internal prototype to avoid an error.
19141 Use char because int might match the return type of a GCC
19142 builtin and then its argument prototype would still apply. */
19143 #ifdef __cplusplus
19144 extern "C"
19145 #endif
19146 char dg_sys_info ();
19147 int
19148 main ()
19149 {
19150 return dg_sys_info ();
19151 ;
19152 return 0;
19153 }
19154 _ACEOF
19155 rm -f conftest.$ac_objext conftest$ac_exeext
19156 if { (ac_try="$ac_link"
19157 case "(($ac_try" in
19158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19159 *) ac_try_echo=$ac_try;;
19160 esac
19161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19162 $as_echo "$ac_try_echo") >&5
19163 (eval "$ac_link") 2>conftest.er1
19164 ac_status=$?
19165 grep -v '^ *+' conftest.er1 >conftest.err
19166 rm -f conftest.er1
19167 cat conftest.err >&5
19168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); } && {
19170 test -z "$ac_c_werror_flag" ||
19171 test ! -s conftest.err
19172 } && test -s conftest$ac_exeext && {
19173 test "$cross_compiling" = yes ||
19174 $as_test_x conftest$ac_exeext
19175 }; then
19176 ac_cv_lib_dgc_dg_sys_info=yes
19177 else
19178 $as_echo "$as_me: failed program was:" >&5
19179 sed 's/^/| /' conftest.$ac_ext >&5
19180
19181 ac_cv_lib_dgc_dg_sys_info=no
19182 fi
19183
19184 rm -rf conftest.dSYM
19185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19186 conftest$ac_exeext conftest.$ac_ext
19187 LIBS=$ac_check_lib_save_LIBS
19188 fi
19189 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19190 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19191 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19192 cat >>confdefs.h <<_ACEOF
19193 #define HAVE_LIBDGC 1
19194 _ACEOF
19195
19196 LIBS="-ldgc $LIBS"
19197
19198 fi
19199
19200 fi
19201
19202
19203
19204 if test "${ac_cv_header_locale_h+set}" = set; then
19205 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19206 $as_echo_n "checking for locale.h... " >&6; }
19207 if test "${ac_cv_header_locale_h+set}" = set; then
19208 $as_echo_n "(cached) " >&6
19209 fi
19210 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19211 $as_echo "$ac_cv_header_locale_h" >&6; }
19212 else
19213 # Is the header compilable?
19214 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19215 $as_echo_n "checking locale.h usability... " >&6; }
19216 cat >conftest.$ac_ext <<_ACEOF
19217 /* confdefs.h. */
19218 _ACEOF
19219 cat confdefs.h >>conftest.$ac_ext
19220 cat >>conftest.$ac_ext <<_ACEOF
19221 /* end confdefs.h. */
19222 $ac_includes_default
19223 #include <locale.h>
19224 _ACEOF
19225 rm -f conftest.$ac_objext
19226 if { (ac_try="$ac_compile"
19227 case "(($ac_try" in
19228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229 *) ac_try_echo=$ac_try;;
19230 esac
19231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19232 $as_echo "$ac_try_echo") >&5
19233 (eval "$ac_compile") 2>conftest.er1
19234 ac_status=$?
19235 grep -v '^ *+' conftest.er1 >conftest.err
19236 rm -f conftest.er1
19237 cat conftest.err >&5
19238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } && {
19240 test -z "$ac_c_werror_flag" ||
19241 test ! -s conftest.err
19242 } && test -s conftest.$ac_objext; then
19243 ac_header_compiler=yes
19244 else
19245 $as_echo "$as_me: failed program was:" >&5
19246 sed 's/^/| /' conftest.$ac_ext >&5
19247
19248 ac_header_compiler=no
19249 fi
19250
19251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19252 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19253 $as_echo "$ac_header_compiler" >&6; }
19254
19255 # Is the header present?
19256 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19257 $as_echo_n "checking locale.h presence... " >&6; }
19258 cat >conftest.$ac_ext <<_ACEOF
19259 /* confdefs.h. */
19260 _ACEOF
19261 cat confdefs.h >>conftest.$ac_ext
19262 cat >>conftest.$ac_ext <<_ACEOF
19263 /* end confdefs.h. */
19264 #include <locale.h>
19265 _ACEOF
19266 if { (ac_try="$ac_cpp conftest.$ac_ext"
19267 case "(($ac_try" in
19268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269 *) ac_try_echo=$ac_try;;
19270 esac
19271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19272 $as_echo "$ac_try_echo") >&5
19273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19274 ac_status=$?
19275 grep -v '^ *+' conftest.er1 >conftest.err
19276 rm -f conftest.er1
19277 cat conftest.err >&5
19278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); } >/dev/null && {
19280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19281 test ! -s conftest.err
19282 }; then
19283 ac_header_preproc=yes
19284 else
19285 $as_echo "$as_me: failed program was:" >&5
19286 sed 's/^/| /' conftest.$ac_ext >&5
19287
19288 ac_header_preproc=no
19289 fi
19290
19291 rm -f conftest.err conftest.$ac_ext
19292 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19293 $as_echo "$ac_header_preproc" >&6; }
19294
19295 # So? What about this header?
19296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19297 yes:no: )
19298 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19299 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19300 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19301 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19302 ac_header_preproc=yes
19303 ;;
19304 no:yes:* )
19305 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19306 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19307 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19308 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19309 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19310 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19311 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19312 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19313 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19314 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19315 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19316 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19317
19318 ;;
19319 esac
19320 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19321 $as_echo_n "checking for locale.h... " >&6; }
19322 if test "${ac_cv_header_locale_h+set}" = set; then
19323 $as_echo_n "(cached) " >&6
19324 else
19325 ac_cv_header_locale_h=$ac_header_preproc
19326 fi
19327 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19328 $as_echo "$ac_cv_header_locale_h" >&6; }
19329
19330 fi
19331
19332
19333
19334 for ac_func in setlocale
19335 do
19336 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19337 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19338 $as_echo_n "checking for $ac_func... " >&6; }
19339 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19340 $as_echo_n "(cached) " >&6
19341 else
19342 cat >conftest.$ac_ext <<_ACEOF
19343 /* confdefs.h. */
19344 _ACEOF
19345 cat confdefs.h >>conftest.$ac_ext
19346 cat >>conftest.$ac_ext <<_ACEOF
19347 /* end confdefs.h. */
19348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19350 #define $ac_func innocuous_$ac_func
19351
19352 /* System header to define __stub macros and hopefully few prototypes,
19353 which can conflict with char $ac_func (); below.
19354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19355 <limits.h> exists even on freestanding compilers. */
19356
19357 #ifdef __STDC__
19358 # include <limits.h>
19359 #else
19360 # include <assert.h>
19361 #endif
19362
19363 #undef $ac_func
19364
19365 /* Override any GCC internal prototype to avoid an error.
19366 Use char because int might match the return type of a GCC
19367 builtin and then its argument prototype would still apply. */
19368 #ifdef __cplusplus
19369 extern "C"
19370 #endif
19371 char $ac_func ();
19372 /* The GNU C library defines this for functions which it implements
19373 to always fail with ENOSYS. Some functions are actually named
19374 something starting with __ and the normal name is an alias. */
19375 #if defined __stub_$ac_func || defined __stub___$ac_func
19376 choke me
19377 #endif
19378
19379 int
19380 main ()
19381 {
19382 return $ac_func ();
19383 ;
19384 return 0;
19385 }
19386 _ACEOF
19387 rm -f conftest.$ac_objext conftest$ac_exeext
19388 if { (ac_try="$ac_link"
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_link") 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_exeext && {
19405 test "$cross_compiling" = yes ||
19406 $as_test_x conftest$ac_exeext
19407 }; then
19408 eval "$as_ac_var=yes"
19409 else
19410 $as_echo "$as_me: failed program was:" >&5
19411 sed 's/^/| /' conftest.$ac_ext >&5
19412
19413 eval "$as_ac_var=no"
19414 fi
19415
19416 rm -rf conftest.dSYM
19417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19418 conftest$ac_exeext conftest.$ac_ext
19419 fi
19420 ac_res=`eval 'as_val=${'$as_ac_var'}
19421 $as_echo "$as_val"'`
19422 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19423 $as_echo "$ac_res" >&6; }
19424 if test `eval 'as_val=${'$as_ac_var'}
19425 $as_echo "$as_val"'` = yes; then
19426 cat >>confdefs.h <<_ACEOF
19427 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19428 _ACEOF
19429
19430 fi
19431 done
19432
19433
19434 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19435 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19436 # Irix 4.0.5F has the header but not the library.
19437 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19438 ac_have_func=yes
19439
19440 cat >>confdefs.h <<\_ACEOF
19441 #define SVR4 1
19442 _ACEOF
19443
19444 fi
19445
19446 if test $ac_have_func = no; then
19447 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19448 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19449 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19450 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19451 $as_echo_n "(cached) " >&6
19452 fi
19453 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19454 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19455 else
19456 # Is the header compilable?
19457 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19458 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19459 cat >conftest.$ac_ext <<_ACEOF
19460 /* confdefs.h. */
19461 _ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h. */
19465 $ac_includes_default
19466 #include <inq_stats/cpustats.h>
19467 _ACEOF
19468 rm -f conftest.$ac_objext
19469 if { (ac_try="$ac_compile"
19470 case "(($ac_try" in
19471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19472 *) ac_try_echo=$ac_try;;
19473 esac
19474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19475 $as_echo "$ac_try_echo") >&5
19476 (eval "$ac_compile") 2>conftest.er1
19477 ac_status=$?
19478 grep -v '^ *+' conftest.er1 >conftest.err
19479 rm -f conftest.er1
19480 cat conftest.err >&5
19481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); } && {
19483 test -z "$ac_c_werror_flag" ||
19484 test ! -s conftest.err
19485 } && test -s conftest.$ac_objext; then
19486 ac_header_compiler=yes
19487 else
19488 $as_echo "$as_me: failed program was:" >&5
19489 sed 's/^/| /' conftest.$ac_ext >&5
19490
19491 ac_header_compiler=no
19492 fi
19493
19494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19495 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19496 $as_echo "$ac_header_compiler" >&6; }
19497
19498 # Is the header present?
19499 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19500 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19501 cat >conftest.$ac_ext <<_ACEOF
19502 /* confdefs.h. */
19503 _ACEOF
19504 cat confdefs.h >>conftest.$ac_ext
19505 cat >>conftest.$ac_ext <<_ACEOF
19506 /* end confdefs.h. */
19507 #include <inq_stats/cpustats.h>
19508 _ACEOF
19509 if { (ac_try="$ac_cpp conftest.$ac_ext"
19510 case "(($ac_try" in
19511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512 *) ac_try_echo=$ac_try;;
19513 esac
19514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19515 $as_echo "$ac_try_echo") >&5
19516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19517 ac_status=$?
19518 grep -v '^ *+' conftest.er1 >conftest.err
19519 rm -f conftest.er1
19520 cat conftest.err >&5
19521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); } >/dev/null && {
19523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19524 test ! -s conftest.err
19525 }; then
19526 ac_header_preproc=yes
19527 else
19528 $as_echo "$as_me: failed program was:" >&5
19529 sed 's/^/| /' conftest.$ac_ext >&5
19530
19531 ac_header_preproc=no
19532 fi
19533
19534 rm -f conftest.err conftest.$ac_ext
19535 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19536 $as_echo "$ac_header_preproc" >&6; }
19537
19538 # So? What about this header?
19539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19540 yes:no: )
19541 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19542 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19543 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19544 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19545 ac_header_preproc=yes
19546 ;;
19547 no:yes:* )
19548 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19549 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19550 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19551 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19552 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19553 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19554 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19555 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19556 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19557 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19558 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19559 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19560
19561 ;;
19562 esac
19563 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19564 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19565 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19566 $as_echo_n "(cached) " >&6
19567 else
19568 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19569 fi
19570 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19571 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19572
19573 fi
19574 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19575 ac_have_func=yes
19576
19577 cat >>confdefs.h <<\_ACEOF
19578 #define UMAX 1
19579 _ACEOF
19580
19581
19582 cat >>confdefs.h <<\_ACEOF
19583 #define UMAX4_3 1
19584 _ACEOF
19585
19586 fi
19587
19588
19589 fi
19590
19591 if test $ac_have_func = no; then
19592 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19593 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19594 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19595 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19596 $as_echo_n "(cached) " >&6
19597 fi
19598 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19599 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19600 else
19601 # Is the header compilable?
19602 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19603 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19604 cat >conftest.$ac_ext <<_ACEOF
19605 /* confdefs.h. */
19606 _ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h. */
19610 $ac_includes_default
19611 #include <sys/cpustats.h>
19612 _ACEOF
19613 rm -f conftest.$ac_objext
19614 if { (ac_try="$ac_compile"
19615 case "(($ac_try" in
19616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19617 *) ac_try_echo=$ac_try;;
19618 esac
19619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19620 $as_echo "$ac_try_echo") >&5
19621 (eval "$ac_compile") 2>conftest.er1
19622 ac_status=$?
19623 grep -v '^ *+' conftest.er1 >conftest.err
19624 rm -f conftest.er1
19625 cat conftest.err >&5
19626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } && {
19628 test -z "$ac_c_werror_flag" ||
19629 test ! -s conftest.err
19630 } && test -s conftest.$ac_objext; then
19631 ac_header_compiler=yes
19632 else
19633 $as_echo "$as_me: failed program was:" >&5
19634 sed 's/^/| /' conftest.$ac_ext >&5
19635
19636 ac_header_compiler=no
19637 fi
19638
19639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19640 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19641 $as_echo "$ac_header_compiler" >&6; }
19642
19643 # Is the header present?
19644 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19645 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19646 cat >conftest.$ac_ext <<_ACEOF
19647 /* confdefs.h. */
19648 _ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h. */
19652 #include <sys/cpustats.h>
19653 _ACEOF
19654 if { (ac_try="$ac_cpp conftest.$ac_ext"
19655 case "(($ac_try" in
19656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657 *) ac_try_echo=$ac_try;;
19658 esac
19659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19660 $as_echo "$ac_try_echo") >&5
19661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19662 ac_status=$?
19663 grep -v '^ *+' conftest.er1 >conftest.err
19664 rm -f conftest.er1
19665 cat conftest.err >&5
19666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } >/dev/null && {
19668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19669 test ! -s conftest.err
19670 }; then
19671 ac_header_preproc=yes
19672 else
19673 $as_echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19675
19676 ac_header_preproc=no
19677 fi
19678
19679 rm -f conftest.err conftest.$ac_ext
19680 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19681 $as_echo "$ac_header_preproc" >&6; }
19682
19683 # So? What about this header?
19684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19685 yes:no: )
19686 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19687 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19688 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19689 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19690 ac_header_preproc=yes
19691 ;;
19692 no:yes:* )
19693 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19694 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19695 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19696 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19697 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19698 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19699 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19700 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19701 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19702 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19703 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19704 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19705
19706 ;;
19707 esac
19708 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19709 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19710 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19711 $as_echo_n "(cached) " >&6
19712 else
19713 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19714 fi
19715 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19716 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19717
19718 fi
19719 if test $ac_cv_header_sys_cpustats_h = yes; then
19720 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19721 #define UMAX 1
19722 _ACEOF
19723
19724 fi
19725
19726
19727 fi
19728
19729 if test $ac_have_func = no; then
19730
19731 for ac_header in mach/mach.h
19732 do
19733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19735 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19736 $as_echo_n "checking for $ac_header... " >&6; }
19737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19738 $as_echo_n "(cached) " >&6
19739 fi
19740 ac_res=`eval 'as_val=${'$as_ac_Header'}
19741 $as_echo "$as_val"'`
19742 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19743 $as_echo "$ac_res" >&6; }
19744 else
19745 # Is the header compilable?
19746 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19747 $as_echo_n "checking $ac_header usability... " >&6; }
19748 cat >conftest.$ac_ext <<_ACEOF
19749 /* confdefs.h. */
19750 _ACEOF
19751 cat confdefs.h >>conftest.$ac_ext
19752 cat >>conftest.$ac_ext <<_ACEOF
19753 /* end confdefs.h. */
19754 $ac_includes_default
19755 #include <$ac_header>
19756 _ACEOF
19757 rm -f conftest.$ac_objext
19758 if { (ac_try="$ac_compile"
19759 case "(($ac_try" in
19760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19761 *) ac_try_echo=$ac_try;;
19762 esac
19763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19764 $as_echo "$ac_try_echo") >&5
19765 (eval "$ac_compile") 2>conftest.er1
19766 ac_status=$?
19767 grep -v '^ *+' conftest.er1 >conftest.err
19768 rm -f conftest.er1
19769 cat conftest.err >&5
19770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } && {
19772 test -z "$ac_c_werror_flag" ||
19773 test ! -s conftest.err
19774 } && test -s conftest.$ac_objext; then
19775 ac_header_compiler=yes
19776 else
19777 $as_echo "$as_me: failed program was:" >&5
19778 sed 's/^/| /' conftest.$ac_ext >&5
19779
19780 ac_header_compiler=no
19781 fi
19782
19783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19784 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19785 $as_echo "$ac_header_compiler" >&6; }
19786
19787 # Is the header present?
19788 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19789 $as_echo_n "checking $ac_header presence... " >&6; }
19790 cat >conftest.$ac_ext <<_ACEOF
19791 /* confdefs.h. */
19792 _ACEOF
19793 cat confdefs.h >>conftest.$ac_ext
19794 cat >>conftest.$ac_ext <<_ACEOF
19795 /* end confdefs.h. */
19796 #include <$ac_header>
19797 _ACEOF
19798 if { (ac_try="$ac_cpp conftest.$ac_ext"
19799 case "(($ac_try" in
19800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801 *) ac_try_echo=$ac_try;;
19802 esac
19803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19804 $as_echo "$ac_try_echo") >&5
19805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19806 ac_status=$?
19807 grep -v '^ *+' conftest.er1 >conftest.err
19808 rm -f conftest.er1
19809 cat conftest.err >&5
19810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } >/dev/null && {
19812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19813 test ! -s conftest.err
19814 }; then
19815 ac_header_preproc=yes
19816 else
19817 $as_echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19819
19820 ac_header_preproc=no
19821 fi
19822
19823 rm -f conftest.err conftest.$ac_ext
19824 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19825 $as_echo "$ac_header_preproc" >&6; }
19826
19827 # So? What about this header?
19828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19829 yes:no: )
19830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19831 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19833 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19834 ac_header_preproc=yes
19835 ;;
19836 no:yes:* )
19837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19838 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19840 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19842 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19844 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19846 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19848 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19849
19850 ;;
19851 esac
19852 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19853 $as_echo_n "checking for $ac_header... " >&6; }
19854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19855 $as_echo_n "(cached) " >&6
19856 else
19857 eval "$as_ac_Header=\$ac_header_preproc"
19858 fi
19859 ac_res=`eval 'as_val=${'$as_ac_Header'}
19860 $as_echo "$as_val"'`
19861 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19862 $as_echo "$ac_res" >&6; }
19863
19864 fi
19865 if test `eval 'as_val=${'$as_ac_Header'}
19866 $as_echo "$as_val"'` = yes; then
19867 cat >>confdefs.h <<_ACEOF
19868 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19869 _ACEOF
19870
19871 fi
19872
19873 done
19874
19875 fi
19876
19877
19878 for ac_header in nlist.h
19879 do
19880 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19882 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19883 $as_echo_n "checking for $ac_header... " >&6; }
19884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19885 $as_echo_n "(cached) " >&6
19886 fi
19887 ac_res=`eval 'as_val=${'$as_ac_Header'}
19888 $as_echo "$as_val"'`
19889 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19890 $as_echo "$ac_res" >&6; }
19891 else
19892 # Is the header compilable?
19893 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19894 $as_echo_n "checking $ac_header usability... " >&6; }
19895 cat >conftest.$ac_ext <<_ACEOF
19896 /* confdefs.h. */
19897 _ACEOF
19898 cat confdefs.h >>conftest.$ac_ext
19899 cat >>conftest.$ac_ext <<_ACEOF
19900 /* end confdefs.h. */
19901 $ac_includes_default
19902 #include <$ac_header>
19903 _ACEOF
19904 rm -f conftest.$ac_objext
19905 if { (ac_try="$ac_compile"
19906 case "(($ac_try" in
19907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19908 *) ac_try_echo=$ac_try;;
19909 esac
19910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19911 $as_echo "$ac_try_echo") >&5
19912 (eval "$ac_compile") 2>conftest.er1
19913 ac_status=$?
19914 grep -v '^ *+' conftest.er1 >conftest.err
19915 rm -f conftest.er1
19916 cat conftest.err >&5
19917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); } && {
19919 test -z "$ac_c_werror_flag" ||
19920 test ! -s conftest.err
19921 } && test -s conftest.$ac_objext; then
19922 ac_header_compiler=yes
19923 else
19924 $as_echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19926
19927 ac_header_compiler=no
19928 fi
19929
19930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19931 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19932 $as_echo "$ac_header_compiler" >&6; }
19933
19934 # Is the header present?
19935 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19936 $as_echo_n "checking $ac_header presence... " >&6; }
19937 cat >conftest.$ac_ext <<_ACEOF
19938 /* confdefs.h. */
19939 _ACEOF
19940 cat confdefs.h >>conftest.$ac_ext
19941 cat >>conftest.$ac_ext <<_ACEOF
19942 /* end confdefs.h. */
19943 #include <$ac_header>
19944 _ACEOF
19945 if { (ac_try="$ac_cpp conftest.$ac_ext"
19946 case "(($ac_try" in
19947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19948 *) ac_try_echo=$ac_try;;
19949 esac
19950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19951 $as_echo "$ac_try_echo") >&5
19952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19953 ac_status=$?
19954 grep -v '^ *+' conftest.er1 >conftest.err
19955 rm -f conftest.er1
19956 cat conftest.err >&5
19957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); } >/dev/null && {
19959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19960 test ! -s conftest.err
19961 }; then
19962 ac_header_preproc=yes
19963 else
19964 $as_echo "$as_me: failed program was:" >&5
19965 sed 's/^/| /' conftest.$ac_ext >&5
19966
19967 ac_header_preproc=no
19968 fi
19969
19970 rm -f conftest.err conftest.$ac_ext
19971 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19972 $as_echo "$ac_header_preproc" >&6; }
19973
19974 # So? What about this header?
19975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19976 yes:no: )
19977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19978 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19980 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19981 ac_header_preproc=yes
19982 ;;
19983 no:yes:* )
19984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19985 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19987 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19989 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19991 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19993 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19995 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19996
19997 ;;
19998 esac
19999 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20000 $as_echo_n "checking for $ac_header... " >&6; }
20001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20002 $as_echo_n "(cached) " >&6
20003 else
20004 eval "$as_ac_Header=\$ac_header_preproc"
20005 fi
20006 ac_res=`eval 'as_val=${'$as_ac_Header'}
20007 $as_echo "$as_val"'`
20008 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20009 $as_echo "$ac_res" >&6; }
20010
20011 fi
20012 if test `eval 'as_val=${'$as_ac_Header'}
20013 $as_echo "$as_val"'` = yes; then
20014 cat >>confdefs.h <<_ACEOF
20015 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20016 _ACEOF
20017 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
20018 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
20019 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20020 $as_echo_n "(cached) " >&6
20021 else
20022 cat >conftest.$ac_ext <<_ACEOF
20023 /* confdefs.h. */
20024 _ACEOF
20025 cat confdefs.h >>conftest.$ac_ext
20026 cat >>conftest.$ac_ext <<_ACEOF
20027 /* end confdefs.h. */
20028 #include <nlist.h>
20029
20030 int
20031 main ()
20032 {
20033 static struct nlist ac_aggr;
20034 if (ac_aggr.n_un.n_name)
20035 return 0;
20036 ;
20037 return 0;
20038 }
20039 _ACEOF
20040 rm -f conftest.$ac_objext
20041 if { (ac_try="$ac_compile"
20042 case "(($ac_try" in
20043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20045 esac
20046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20047 $as_echo "$ac_try_echo") >&5
20048 (eval "$ac_compile") 2>conftest.er1
20049 ac_status=$?
20050 grep -v '^ *+' conftest.er1 >conftest.err
20051 rm -f conftest.er1
20052 cat conftest.err >&5
20053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); } && {
20055 test -z "$ac_c_werror_flag" ||
20056 test ! -s conftest.err
20057 } && test -s conftest.$ac_objext; then
20058 ac_cv_member_struct_nlist_n_un_n_name=yes
20059 else
20060 $as_echo "$as_me: failed program was:" >&5
20061 sed 's/^/| /' conftest.$ac_ext >&5
20062
20063 cat >conftest.$ac_ext <<_ACEOF
20064 /* confdefs.h. */
20065 _ACEOF
20066 cat confdefs.h >>conftest.$ac_ext
20067 cat >>conftest.$ac_ext <<_ACEOF
20068 /* end confdefs.h. */
20069 #include <nlist.h>
20070
20071 int
20072 main ()
20073 {
20074 static struct nlist ac_aggr;
20075 if (sizeof ac_aggr.n_un.n_name)
20076 return 0;
20077 ;
20078 return 0;
20079 }
20080 _ACEOF
20081 rm -f conftest.$ac_objext
20082 if { (ac_try="$ac_compile"
20083 case "(($ac_try" in
20084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085 *) ac_try_echo=$ac_try;;
20086 esac
20087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20088 $as_echo "$ac_try_echo") >&5
20089 (eval "$ac_compile") 2>conftest.er1
20090 ac_status=$?
20091 grep -v '^ *+' conftest.er1 >conftest.err
20092 rm -f conftest.er1
20093 cat conftest.err >&5
20094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); } && {
20096 test -z "$ac_c_werror_flag" ||
20097 test ! -s conftest.err
20098 } && test -s conftest.$ac_objext; then
20099 ac_cv_member_struct_nlist_n_un_n_name=yes
20100 else
20101 $as_echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20103
20104 ac_cv_member_struct_nlist_n_un_n_name=no
20105 fi
20106
20107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20108 fi
20109
20110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20111 fi
20112 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20113 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20114 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20115
20116 cat >>confdefs.h <<_ACEOF
20117 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20118 _ACEOF
20119
20120
20121 cat >>confdefs.h <<\_ACEOF
20122 #define NLIST_NAME_UNION 1
20123 _ACEOF
20124
20125 fi
20126
20127
20128 fi
20129
20130 done
20131
20132 fi
20133 done
20134
20135
20136 # Some definitions of getloadavg require that the program be installed setgid.
20137 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20138 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
20139 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20140 $as_echo_n "(cached) " >&6
20141 else
20142 cat >conftest.$ac_ext <<_ACEOF
20143 /* confdefs.h. */
20144 _ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20148 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20149 #ifdef LDAV_PRIVILEGED
20150 Yowza Am I SETGID yet
20151 #endif
20152 _ACEOF
20153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20154 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20155 ac_cv_func_getloadavg_setgid=yes
20156 else
20157 ac_cv_func_getloadavg_setgid=no
20158 fi
20159 rm -f conftest*
20160
20161 fi
20162 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20163 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20164 if test $ac_cv_func_getloadavg_setgid = yes; then
20165 NEED_SETGID=true
20166
20167 cat >>confdefs.h <<\_ACEOF
20168 #define GETLOADAVG_PRIVILEGED 1
20169 _ACEOF
20170
20171 else
20172 NEED_SETGID=false
20173 fi
20174
20175 if test $ac_cv_func_getloadavg_setgid = yes; then
20176 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20177 $as_echo_n "checking group of /dev/kmem... " >&6; }
20178 if test "${ac_cv_group_kmem+set}" = set; then
20179 $as_echo_n "(cached) " >&6
20180 else
20181 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20182 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20183 # If we got an error (system does not support symlinks), try without -L.
20184 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20185 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20186 | sed -ne 's/[ ][ ]*/ /g;
20187 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20188 / /s/.* //;p;'`
20189
20190 fi
20191 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20192 $as_echo "$ac_cv_group_kmem" >&6; }
20193 KMEM_GROUP=$ac_cv_group_kmem
20194 fi
20195 if test "x$ac_save_LIBS" = x; then
20196 GETLOADAVG_LIBS=$LIBS
20197 else
20198 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
20199 fi
20200 LIBS=$ac_save_LIBS
20201
20202
20203
20204 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20205 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20206 if test "${ac_cv_sys_largefile_source+set}" = set; then
20207 $as_echo_n "(cached) " >&6
20208 else
20209 while :; do
20210 cat >conftest.$ac_ext <<_ACEOF
20211 /* confdefs.h. */
20212 _ACEOF
20213 cat confdefs.h >>conftest.$ac_ext
20214 cat >>conftest.$ac_ext <<_ACEOF
20215 /* end confdefs.h. */
20216 #include <sys/types.h> /* for off_t */
20217 #include <stdio.h>
20218 int
20219 main ()
20220 {
20221 int (*fp) (FILE *, off_t, int) = fseeko;
20222 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20223 ;
20224 return 0;
20225 }
20226 _ACEOF
20227 rm -f conftest.$ac_objext conftest$ac_exeext
20228 if { (ac_try="$ac_link"
20229 case "(($ac_try" in
20230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20231 *) ac_try_echo=$ac_try;;
20232 esac
20233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20234 $as_echo "$ac_try_echo") >&5
20235 (eval "$ac_link") 2>conftest.er1
20236 ac_status=$?
20237 grep -v '^ *+' conftest.er1 >conftest.err
20238 rm -f conftest.er1
20239 cat conftest.err >&5
20240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } && {
20242 test -z "$ac_c_werror_flag" ||
20243 test ! -s conftest.err
20244 } && test -s conftest$ac_exeext && {
20245 test "$cross_compiling" = yes ||
20246 $as_test_x conftest$ac_exeext
20247 }; then
20248 ac_cv_sys_largefile_source=no; break
20249 else
20250 $as_echo "$as_me: failed program was:" >&5
20251 sed 's/^/| /' conftest.$ac_ext >&5
20252
20253
20254 fi
20255
20256 rm -rf conftest.dSYM
20257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20258 conftest$ac_exeext conftest.$ac_ext
20259 cat >conftest.$ac_ext <<_ACEOF
20260 /* confdefs.h. */
20261 _ACEOF
20262 cat confdefs.h >>conftest.$ac_ext
20263 cat >>conftest.$ac_ext <<_ACEOF
20264 /* end confdefs.h. */
20265 #define _LARGEFILE_SOURCE 1
20266 #include <sys/types.h> /* for off_t */
20267 #include <stdio.h>
20268 int
20269 main ()
20270 {
20271 int (*fp) (FILE *, off_t, int) = fseeko;
20272 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20273 ;
20274 return 0;
20275 }
20276 _ACEOF
20277 rm -f conftest.$ac_objext conftest$ac_exeext
20278 if { (ac_try="$ac_link"
20279 case "(($ac_try" in
20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281 *) ac_try_echo=$ac_try;;
20282 esac
20283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20284 $as_echo "$ac_try_echo") >&5
20285 (eval "$ac_link") 2>conftest.er1
20286 ac_status=$?
20287 grep -v '^ *+' conftest.er1 >conftest.err
20288 rm -f conftest.er1
20289 cat conftest.err >&5
20290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } && {
20292 test -z "$ac_c_werror_flag" ||
20293 test ! -s conftest.err
20294 } && test -s conftest$ac_exeext && {
20295 test "$cross_compiling" = yes ||
20296 $as_test_x conftest$ac_exeext
20297 }; then
20298 ac_cv_sys_largefile_source=1; break
20299 else
20300 $as_echo "$as_me: failed program was:" >&5
20301 sed 's/^/| /' conftest.$ac_ext >&5
20302
20303
20304 fi
20305
20306 rm -rf conftest.dSYM
20307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20308 conftest$ac_exeext conftest.$ac_ext
20309 ac_cv_sys_largefile_source=unknown
20310 break
20311 done
20312 fi
20313 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20314 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20315 case $ac_cv_sys_largefile_source in #(
20316 no | unknown) ;;
20317 *)
20318 cat >>confdefs.h <<_ACEOF
20319 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20320 _ACEOF
20321 ;;
20322 esac
20323 rm -rf conftest*
20324
20325 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20326 # in glibc 2.1.3, but that breaks too many other things.
20327 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20328 if test $ac_cv_sys_largefile_source != unknown; then
20329
20330 cat >>confdefs.h <<\_ACEOF
20331 #define HAVE_FSEEKO 1
20332 _ACEOF
20333
20334 fi
20335
20336
20337 # Configure getopt.
20338 # getopt.m4 serial 10
20339
20340 # The getopt module assume you want GNU getopt, with getopt_long etc,
20341 # rather than vanilla POSIX getopt. This means your your code should
20342 # always include <getopt.h> for the getopt prototypes.
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354 # Prerequisites of lib/getopt*.
20355
20356
20357
20358
20359 GETOPT_H=
20360
20361 for ac_header in getopt.h
20362 do
20363 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20365 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20366 $as_echo_n "checking for $ac_header... " >&6; }
20367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20368 $as_echo_n "(cached) " >&6
20369 fi
20370 ac_res=`eval 'as_val=${'$as_ac_Header'}
20371 $as_echo "$as_val"'`
20372 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20373 $as_echo "$ac_res" >&6; }
20374 else
20375 # Is the header compilable?
20376 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20377 $as_echo_n "checking $ac_header usability... " >&6; }
20378 cat >conftest.$ac_ext <<_ACEOF
20379 /* confdefs.h. */
20380 _ACEOF
20381 cat confdefs.h >>conftest.$ac_ext
20382 cat >>conftest.$ac_ext <<_ACEOF
20383 /* end confdefs.h. */
20384 $ac_includes_default
20385 #include <$ac_header>
20386 _ACEOF
20387 rm -f conftest.$ac_objext
20388 if { (ac_try="$ac_compile"
20389 case "(($ac_try" in
20390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391 *) ac_try_echo=$ac_try;;
20392 esac
20393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20394 $as_echo "$ac_try_echo") >&5
20395 (eval "$ac_compile") 2>conftest.er1
20396 ac_status=$?
20397 grep -v '^ *+' conftest.er1 >conftest.err
20398 rm -f conftest.er1
20399 cat conftest.err >&5
20400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); } && {
20402 test -z "$ac_c_werror_flag" ||
20403 test ! -s conftest.err
20404 } && test -s conftest.$ac_objext; then
20405 ac_header_compiler=yes
20406 else
20407 $as_echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20409
20410 ac_header_compiler=no
20411 fi
20412
20413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20414 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20415 $as_echo "$ac_header_compiler" >&6; }
20416
20417 # Is the header present?
20418 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20419 $as_echo_n "checking $ac_header presence... " >&6; }
20420 cat >conftest.$ac_ext <<_ACEOF
20421 /* confdefs.h. */
20422 _ACEOF
20423 cat confdefs.h >>conftest.$ac_ext
20424 cat >>conftest.$ac_ext <<_ACEOF
20425 /* end confdefs.h. */
20426 #include <$ac_header>
20427 _ACEOF
20428 if { (ac_try="$ac_cpp conftest.$ac_ext"
20429 case "(($ac_try" in
20430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20431 *) ac_try_echo=$ac_try;;
20432 esac
20433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20434 $as_echo "$ac_try_echo") >&5
20435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20436 ac_status=$?
20437 grep -v '^ *+' conftest.er1 >conftest.err
20438 rm -f conftest.er1
20439 cat conftest.err >&5
20440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } >/dev/null && {
20442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20443 test ! -s conftest.err
20444 }; then
20445 ac_header_preproc=yes
20446 else
20447 $as_echo "$as_me: failed program was:" >&5
20448 sed 's/^/| /' conftest.$ac_ext >&5
20449
20450 ac_header_preproc=no
20451 fi
20452
20453 rm -f conftest.err conftest.$ac_ext
20454 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20455 $as_echo "$ac_header_preproc" >&6; }
20456
20457 # So? What about this header?
20458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20459 yes:no: )
20460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20461 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20463 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20464 ac_header_preproc=yes
20465 ;;
20466 no:yes:* )
20467 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20468 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20470 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20472 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20474 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20476 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20477 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20478 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20479
20480 ;;
20481 esac
20482 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20483 $as_echo_n "checking for $ac_header... " >&6; }
20484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20485 $as_echo_n "(cached) " >&6
20486 else
20487 eval "$as_ac_Header=\$ac_header_preproc"
20488 fi
20489 ac_res=`eval 'as_val=${'$as_ac_Header'}
20490 $as_echo "$as_val"'`
20491 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20492 $as_echo "$ac_res" >&6; }
20493
20494 fi
20495 if test `eval 'as_val=${'$as_ac_Header'}
20496 $as_echo "$as_val"'` = yes; then
20497 cat >>confdefs.h <<_ACEOF
20498 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20499 _ACEOF
20500
20501 else
20502 GETOPT_H=getopt.h
20503 fi
20504
20505 done
20506
20507 if test -z "$GETOPT_H"; then
20508
20509 for ac_func in getopt_long_only
20510 do
20511 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20512 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20513 $as_echo_n "checking for $ac_func... " >&6; }
20514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20515 $as_echo_n "(cached) " >&6
20516 else
20517 cat >conftest.$ac_ext <<_ACEOF
20518 /* confdefs.h. */
20519 _ACEOF
20520 cat confdefs.h >>conftest.$ac_ext
20521 cat >>conftest.$ac_ext <<_ACEOF
20522 /* end confdefs.h. */
20523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20525 #define $ac_func innocuous_$ac_func
20526
20527 /* System header to define __stub macros and hopefully few prototypes,
20528 which can conflict with char $ac_func (); below.
20529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20530 <limits.h> exists even on freestanding compilers. */
20531
20532 #ifdef __STDC__
20533 # include <limits.h>
20534 #else
20535 # include <assert.h>
20536 #endif
20537
20538 #undef $ac_func
20539
20540 /* Override any GCC internal prototype to avoid an error.
20541 Use char because int might match the return type of a GCC
20542 builtin and then its argument prototype would still apply. */
20543 #ifdef __cplusplus
20544 extern "C"
20545 #endif
20546 char $ac_func ();
20547 /* The GNU C library defines this for functions which it implements
20548 to always fail with ENOSYS. Some functions are actually named
20549 something starting with __ and the normal name is an alias. */
20550 #if defined __stub_$ac_func || defined __stub___$ac_func
20551 choke me
20552 #endif
20553
20554 int
20555 main ()
20556 {
20557 return $ac_func ();
20558 ;
20559 return 0;
20560 }
20561 _ACEOF
20562 rm -f conftest.$ac_objext conftest$ac_exeext
20563 if { (ac_try="$ac_link"
20564 case "(($ac_try" in
20565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20566 *) ac_try_echo=$ac_try;;
20567 esac
20568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20569 $as_echo "$ac_try_echo") >&5
20570 (eval "$ac_link") 2>conftest.er1
20571 ac_status=$?
20572 grep -v '^ *+' conftest.er1 >conftest.err
20573 rm -f conftest.er1
20574 cat conftest.err >&5
20575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); } && {
20577 test -z "$ac_c_werror_flag" ||
20578 test ! -s conftest.err
20579 } && test -s conftest$ac_exeext && {
20580 test "$cross_compiling" = yes ||
20581 $as_test_x conftest$ac_exeext
20582 }; then
20583 eval "$as_ac_var=yes"
20584 else
20585 $as_echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20587
20588 eval "$as_ac_var=no"
20589 fi
20590
20591 rm -rf conftest.dSYM
20592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20593 conftest$ac_exeext conftest.$ac_ext
20594 fi
20595 ac_res=`eval 'as_val=${'$as_ac_var'}
20596 $as_echo "$as_val"'`
20597 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20598 $as_echo "$ac_res" >&6; }
20599 if test `eval 'as_val=${'$as_ac_var'}
20600 $as_echo "$as_val"'` = yes; then
20601 cat >>confdefs.h <<_ACEOF
20602 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20603 _ACEOF
20604
20605 else
20606 GETOPT_H=getopt.h
20607 fi
20608 done
20609
20610 fi
20611
20612 if test -z "$GETOPT_H"; then
20613 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20614 $as_echo_n "checking whether optreset is declared... " >&6; }
20615 if test "${ac_cv_have_decl_optreset+set}" = set; then
20616 $as_echo_n "(cached) " >&6
20617 else
20618 cat >conftest.$ac_ext <<_ACEOF
20619 /* confdefs.h. */
20620 _ACEOF
20621 cat confdefs.h >>conftest.$ac_ext
20622 cat >>conftest.$ac_ext <<_ACEOF
20623 /* end confdefs.h. */
20624 #include <getopt.h>
20625
20626 int
20627 main ()
20628 {
20629 #ifndef optreset
20630 (void) optreset;
20631 #endif
20632
20633 ;
20634 return 0;
20635 }
20636 _ACEOF
20637 rm -f conftest.$ac_objext
20638 if { (ac_try="$ac_compile"
20639 case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20642 esac
20643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20644 $as_echo "$ac_try_echo") >&5
20645 (eval "$ac_compile") 2>conftest.er1
20646 ac_status=$?
20647 grep -v '^ *+' conftest.er1 >conftest.err
20648 rm -f conftest.er1
20649 cat conftest.err >&5
20650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } && {
20652 test -z "$ac_c_werror_flag" ||
20653 test ! -s conftest.err
20654 } && test -s conftest.$ac_objext; then
20655 ac_cv_have_decl_optreset=yes
20656 else
20657 $as_echo "$as_me: failed program was:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20659
20660 ac_cv_have_decl_optreset=no
20661 fi
20662
20663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20664 fi
20665 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20666 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20667 if test $ac_cv_have_decl_optreset = yes; then
20668 GETOPT_H=getopt.h
20669 fi
20670
20671 fi
20672
20673 if test -z "$GETOPT_H"; then
20674 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20675 $as_echo_n "checking for working GNU getopt function... " >&6; }
20676 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20677 $as_echo_n "(cached) " >&6
20678 else
20679 if test "$cross_compiling" = yes; then
20680 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20681 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20682 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20683 $as_echo_n "(cached) " >&6
20684 else
20685 cat >conftest.$ac_ext <<_ACEOF
20686 /* confdefs.h. */
20687 _ACEOF
20688 cat confdefs.h >>conftest.$ac_ext
20689 cat >>conftest.$ac_ext <<_ACEOF
20690 /* end confdefs.h. */
20691 #include <getopt.h>
20692
20693 int
20694 main ()
20695 {
20696 #ifndef getopt_clip
20697 (void) getopt_clip;
20698 #endif
20699
20700 ;
20701 return 0;
20702 }
20703 _ACEOF
20704 rm -f conftest.$ac_objext
20705 if { (ac_try="$ac_compile"
20706 case "(($ac_try" in
20707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20708 *) ac_try_echo=$ac_try;;
20709 esac
20710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20711 $as_echo "$ac_try_echo") >&5
20712 (eval "$ac_compile") 2>conftest.er1
20713 ac_status=$?
20714 grep -v '^ *+' conftest.er1 >conftest.err
20715 rm -f conftest.er1
20716 cat conftest.err >&5
20717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); } && {
20719 test -z "$ac_c_werror_flag" ||
20720 test ! -s conftest.err
20721 } && test -s conftest.$ac_objext; then
20722 ac_cv_have_decl_getopt_clip=yes
20723 else
20724 $as_echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.$ac_ext >&5
20726
20727 ac_cv_have_decl_getopt_clip=no
20728 fi
20729
20730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20731 fi
20732 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20733 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20734 if test $ac_cv_have_decl_getopt_clip = yes; then
20735 gl_cv_func_gnu_getopt=no
20736 else
20737 gl_cv_func_gnu_getopt=yes
20738 fi
20739
20740 else
20741 cat >conftest.$ac_ext <<_ACEOF
20742 /* confdefs.h. */
20743 _ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h. */
20747 #include <getopt.h>
20748 int
20749 main ()
20750 {
20751
20752 char *myargv[3];
20753 myargv[0] = "conftest";
20754 myargv[1] = "-+";
20755 myargv[2] = 0;
20756 return getopt (2, myargv, "+a") != '?';
20757
20758 ;
20759 return 0;
20760 }
20761 _ACEOF
20762 rm -f conftest$ac_exeext
20763 if { (ac_try="$ac_link"
20764 case "(($ac_try" in
20765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20766 *) ac_try_echo=$ac_try;;
20767 esac
20768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20769 $as_echo "$ac_try_echo") >&5
20770 (eval "$ac_link") 2>&5
20771 ac_status=$?
20772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20774 { (case "(($ac_try" in
20775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776 *) ac_try_echo=$ac_try;;
20777 esac
20778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20779 $as_echo "$ac_try_echo") >&5
20780 (eval "$ac_try") 2>&5
20781 ac_status=$?
20782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); }; }; then
20784 gl_cv_func_gnu_getopt=yes
20785 else
20786 $as_echo "$as_me: program exited with status $ac_status" >&5
20787 $as_echo "$as_me: failed program was:" >&5
20788 sed 's/^/| /' conftest.$ac_ext >&5
20789
20790 ( exit $ac_status )
20791 gl_cv_func_gnu_getopt=no
20792 fi
20793 rm -rf conftest.dSYM
20794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20795 fi
20796
20797
20798 fi
20799 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20800 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20801 if test "$gl_cv_func_gnu_getopt" = "no"; then
20802 GETOPT_H=getopt.h
20803 fi
20804 fi
20805
20806
20807
20808 if test -n "$GETOPT_H"; then
20809
20810
20811 GETOPT_H=getopt.h
20812
20813 cat >>confdefs.h <<\_ACEOF
20814 #define __GETOPT_PREFIX rpl_
20815 _ACEOF
20816
20817
20818
20819 :
20820 GETOPTOBJS='getopt.o getopt1.o'
20821
20822 fi
20823
20824
20825
20826
20827 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20828 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20829 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20830 $as_echo_n "(cached) " >&6
20831 else
20832 # Use it with a single arg.
20833 cat >conftest.$ac_ext <<_ACEOF
20834 /* confdefs.h. */
20835 _ACEOF
20836 cat confdefs.h >>conftest.$ac_ext
20837 cat >>conftest.$ac_ext <<_ACEOF
20838 /* end confdefs.h. */
20839 $ac_includes_default
20840 int
20841 main ()
20842 {
20843 getpgrp (0);
20844 ;
20845 return 0;
20846 }
20847 _ACEOF
20848 rm -f conftest.$ac_objext
20849 if { (ac_try="$ac_compile"
20850 case "(($ac_try" in
20851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20852 *) ac_try_echo=$ac_try;;
20853 esac
20854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20855 $as_echo "$ac_try_echo") >&5
20856 (eval "$ac_compile") 2>conftest.er1
20857 ac_status=$?
20858 grep -v '^ *+' conftest.er1 >conftest.err
20859 rm -f conftest.er1
20860 cat conftest.err >&5
20861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); } && {
20863 test -z "$ac_c_werror_flag" ||
20864 test ! -s conftest.err
20865 } && test -s conftest.$ac_objext; then
20866 ac_cv_func_getpgrp_void=no
20867 else
20868 $as_echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20870
20871 ac_cv_func_getpgrp_void=yes
20872 fi
20873
20874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20875
20876 fi
20877 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20878 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20879 if test $ac_cv_func_getpgrp_void = yes; then
20880
20881 cat >>confdefs.h <<\_ACEOF
20882 #define GETPGRP_VOID 1
20883 _ACEOF
20884
20885 fi
20886
20887
20888
20889 for ac_func in strftime
20890 do
20891 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20892 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20893 $as_echo_n "checking for $ac_func... " >&6; }
20894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20895 $as_echo_n "(cached) " >&6
20896 else
20897 cat >conftest.$ac_ext <<_ACEOF
20898 /* confdefs.h. */
20899 _ACEOF
20900 cat confdefs.h >>conftest.$ac_ext
20901 cat >>conftest.$ac_ext <<_ACEOF
20902 /* end confdefs.h. */
20903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20905 #define $ac_func innocuous_$ac_func
20906
20907 /* System header to define __stub macros and hopefully few prototypes,
20908 which can conflict with char $ac_func (); below.
20909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20910 <limits.h> exists even on freestanding compilers. */
20911
20912 #ifdef __STDC__
20913 # include <limits.h>
20914 #else
20915 # include <assert.h>
20916 #endif
20917
20918 #undef $ac_func
20919
20920 /* Override any GCC internal prototype to avoid an error.
20921 Use char because int might match the return type of a GCC
20922 builtin and then its argument prototype would still apply. */
20923 #ifdef __cplusplus
20924 extern "C"
20925 #endif
20926 char $ac_func ();
20927 /* The GNU C library defines this for functions which it implements
20928 to always fail with ENOSYS. Some functions are actually named
20929 something starting with __ and the normal name is an alias. */
20930 #if defined __stub_$ac_func || defined __stub___$ac_func
20931 choke me
20932 #endif
20933
20934 int
20935 main ()
20936 {
20937 return $ac_func ();
20938 ;
20939 return 0;
20940 }
20941 _ACEOF
20942 rm -f conftest.$ac_objext conftest$ac_exeext
20943 if { (ac_try="$ac_link"
20944 case "(($ac_try" in
20945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946 *) ac_try_echo=$ac_try;;
20947 esac
20948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20949 $as_echo "$ac_try_echo") >&5
20950 (eval "$ac_link") 2>conftest.er1
20951 ac_status=$?
20952 grep -v '^ *+' conftest.er1 >conftest.err
20953 rm -f conftest.er1
20954 cat conftest.err >&5
20955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); } && {
20957 test -z "$ac_c_werror_flag" ||
20958 test ! -s conftest.err
20959 } && test -s conftest$ac_exeext && {
20960 test "$cross_compiling" = yes ||
20961 $as_test_x conftest$ac_exeext
20962 }; then
20963 eval "$as_ac_var=yes"
20964 else
20965 $as_echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20967
20968 eval "$as_ac_var=no"
20969 fi
20970
20971 rm -rf conftest.dSYM
20972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20973 conftest$ac_exeext conftest.$ac_ext
20974 fi
20975 ac_res=`eval 'as_val=${'$as_ac_var'}
20976 $as_echo "$as_val"'`
20977 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20978 $as_echo "$ac_res" >&6; }
20979 if test `eval 'as_val=${'$as_ac_var'}
20980 $as_echo "$as_val"'` = yes; then
20981 cat >>confdefs.h <<_ACEOF
20982 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20983 _ACEOF
20984
20985 else
20986 # strftime is in -lintl on SCO UNIX.
20987 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20988 $as_echo_n "checking for strftime in -lintl... " >&6; }
20989 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20990 $as_echo_n "(cached) " >&6
20991 else
20992 ac_check_lib_save_LIBS=$LIBS
20993 LIBS="-lintl $LIBS"
20994 cat >conftest.$ac_ext <<_ACEOF
20995 /* confdefs.h. */
20996 _ACEOF
20997 cat confdefs.h >>conftest.$ac_ext
20998 cat >>conftest.$ac_ext <<_ACEOF
20999 /* end confdefs.h. */
21000
21001 /* Override any GCC internal prototype to avoid an error.
21002 Use char because int might match the return type of a GCC
21003 builtin and then its argument prototype would still apply. */
21004 #ifdef __cplusplus
21005 extern "C"
21006 #endif
21007 char strftime ();
21008 int
21009 main ()
21010 {
21011 return strftime ();
21012 ;
21013 return 0;
21014 }
21015 _ACEOF
21016 rm -f conftest.$ac_objext conftest$ac_exeext
21017 if { (ac_try="$ac_link"
21018 case "(($ac_try" in
21019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21020 *) ac_try_echo=$ac_try;;
21021 esac
21022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21023 $as_echo "$ac_try_echo") >&5
21024 (eval "$ac_link") 2>conftest.er1
21025 ac_status=$?
21026 grep -v '^ *+' conftest.er1 >conftest.err
21027 rm -f conftest.er1
21028 cat conftest.err >&5
21029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } && {
21031 test -z "$ac_c_werror_flag" ||
21032 test ! -s conftest.err
21033 } && test -s conftest$ac_exeext && {
21034 test "$cross_compiling" = yes ||
21035 $as_test_x conftest$ac_exeext
21036 }; then
21037 ac_cv_lib_intl_strftime=yes
21038 else
21039 $as_echo "$as_me: failed program was:" >&5
21040 sed 's/^/| /' conftest.$ac_ext >&5
21041
21042 ac_cv_lib_intl_strftime=no
21043 fi
21044
21045 rm -rf conftest.dSYM
21046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21047 conftest$ac_exeext conftest.$ac_ext
21048 LIBS=$ac_check_lib_save_LIBS
21049 fi
21050 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21051 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21052 if test $ac_cv_lib_intl_strftime = yes; then
21053 cat >>confdefs.h <<\_ACEOF
21054 #define HAVE_STRFTIME 1
21055 _ACEOF
21056
21057 LIBS="-lintl $LIBS"
21058 fi
21059
21060 fi
21061 done
21062
21063
21064 # UNIX98 PTYs.
21065
21066 for ac_func in grantpt
21067 do
21068 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21069 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21070 $as_echo_n "checking for $ac_func... " >&6; }
21071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21072 $as_echo_n "(cached) " >&6
21073 else
21074 cat >conftest.$ac_ext <<_ACEOF
21075 /* confdefs.h. */
21076 _ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h. */
21080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21082 #define $ac_func innocuous_$ac_func
21083
21084 /* System header to define __stub macros and hopefully few prototypes,
21085 which can conflict with char $ac_func (); below.
21086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21087 <limits.h> exists even on freestanding compilers. */
21088
21089 #ifdef __STDC__
21090 # include <limits.h>
21091 #else
21092 # include <assert.h>
21093 #endif
21094
21095 #undef $ac_func
21096
21097 /* Override any GCC internal prototype to avoid an error.
21098 Use char because int might match the return type of a GCC
21099 builtin and then its argument prototype would still apply. */
21100 #ifdef __cplusplus
21101 extern "C"
21102 #endif
21103 char $ac_func ();
21104 /* The GNU C library defines this for functions which it implements
21105 to always fail with ENOSYS. Some functions are actually named
21106 something starting with __ and the normal name is an alias. */
21107 #if defined __stub_$ac_func || defined __stub___$ac_func
21108 choke me
21109 #endif
21110
21111 int
21112 main ()
21113 {
21114 return $ac_func ();
21115 ;
21116 return 0;
21117 }
21118 _ACEOF
21119 rm -f conftest.$ac_objext conftest$ac_exeext
21120 if { (ac_try="$ac_link"
21121 case "(($ac_try" in
21122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123 *) ac_try_echo=$ac_try;;
21124 esac
21125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21126 $as_echo "$ac_try_echo") >&5
21127 (eval "$ac_link") 2>conftest.er1
21128 ac_status=$?
21129 grep -v '^ *+' conftest.er1 >conftest.err
21130 rm -f conftest.er1
21131 cat conftest.err >&5
21132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); } && {
21134 test -z "$ac_c_werror_flag" ||
21135 test ! -s conftest.err
21136 } && test -s conftest$ac_exeext && {
21137 test "$cross_compiling" = yes ||
21138 $as_test_x conftest$ac_exeext
21139 }; then
21140 eval "$as_ac_var=yes"
21141 else
21142 $as_echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21144
21145 eval "$as_ac_var=no"
21146 fi
21147
21148 rm -rf conftest.dSYM
21149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21150 conftest$ac_exeext conftest.$ac_ext
21151 fi
21152 ac_res=`eval 'as_val=${'$as_ac_var'}
21153 $as_echo "$as_val"'`
21154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21155 $as_echo "$ac_res" >&6; }
21156 if test `eval 'as_val=${'$as_ac_var'}
21157 $as_echo "$as_val"'` = yes; then
21158 cat >>confdefs.h <<_ACEOF
21159 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21160 _ACEOF
21161
21162 fi
21163 done
21164
21165
21166 # PTY-related GNU extensions.
21167
21168 for ac_func in getpt
21169 do
21170 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21171 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21172 $as_echo_n "checking for $ac_func... " >&6; }
21173 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21174 $as_echo_n "(cached) " >&6
21175 else
21176 cat >conftest.$ac_ext <<_ACEOF
21177 /* confdefs.h. */
21178 _ACEOF
21179 cat confdefs.h >>conftest.$ac_ext
21180 cat >>conftest.$ac_ext <<_ACEOF
21181 /* end confdefs.h. */
21182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21184 #define $ac_func innocuous_$ac_func
21185
21186 /* System header to define __stub macros and hopefully few prototypes,
21187 which can conflict with char $ac_func (); below.
21188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21189 <limits.h> exists even on freestanding compilers. */
21190
21191 #ifdef __STDC__
21192 # include <limits.h>
21193 #else
21194 # include <assert.h>
21195 #endif
21196
21197 #undef $ac_func
21198
21199 /* Override any GCC internal prototype to avoid an error.
21200 Use char because int might match the return type of a GCC
21201 builtin and then its argument prototype would still apply. */
21202 #ifdef __cplusplus
21203 extern "C"
21204 #endif
21205 char $ac_func ();
21206 /* The GNU C library defines this for functions which it implements
21207 to always fail with ENOSYS. Some functions are actually named
21208 something starting with __ and the normal name is an alias. */
21209 #if defined __stub_$ac_func || defined __stub___$ac_func
21210 choke me
21211 #endif
21212
21213 int
21214 main ()
21215 {
21216 return $ac_func ();
21217 ;
21218 return 0;
21219 }
21220 _ACEOF
21221 rm -f conftest.$ac_objext conftest$ac_exeext
21222 if { (ac_try="$ac_link"
21223 case "(($ac_try" in
21224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21225 *) ac_try_echo=$ac_try;;
21226 esac
21227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21228 $as_echo "$ac_try_echo") >&5
21229 (eval "$ac_link") 2>conftest.er1
21230 ac_status=$?
21231 grep -v '^ *+' conftest.er1 >conftest.err
21232 rm -f conftest.er1
21233 cat conftest.err >&5
21234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); } && {
21236 test -z "$ac_c_werror_flag" ||
21237 test ! -s conftest.err
21238 } && test -s conftest$ac_exeext && {
21239 test "$cross_compiling" = yes ||
21240 $as_test_x conftest$ac_exeext
21241 }; then
21242 eval "$as_ac_var=yes"
21243 else
21244 $as_echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21246
21247 eval "$as_ac_var=no"
21248 fi
21249
21250 rm -rf conftest.dSYM
21251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21252 conftest$ac_exeext conftest.$ac_ext
21253 fi
21254 ac_res=`eval 'as_val=${'$as_ac_var'}
21255 $as_echo "$as_val"'`
21256 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21257 $as_echo "$ac_res" >&6; }
21258 if test `eval 'as_val=${'$as_ac_var'}
21259 $as_echo "$as_val"'` = yes; then
21260 cat >>confdefs.h <<_ACEOF
21261 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21262 _ACEOF
21263
21264 fi
21265 done
21266
21267
21268 # Check this now, so that we will NOT find the above functions in ncurses.
21269 # That is because we have not set up to link ncurses in lib-src.
21270 # It's better to believe a function is not available
21271 # than to expect to find it in ncurses.
21272 # Also we need tputs and frieds to be able to build at all.
21273 have_tputs_et_al=true
21274 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
21275 $as_echo_n "checking for library containing tputs... " >&6; }
21276 if test "${ac_cv_search_tputs+set}" = set; then
21277 $as_echo_n "(cached) " >&6
21278 else
21279 ac_func_search_save_LIBS=$LIBS
21280 cat >conftest.$ac_ext <<_ACEOF
21281 /* confdefs.h. */
21282 _ACEOF
21283 cat confdefs.h >>conftest.$ac_ext
21284 cat >>conftest.$ac_ext <<_ACEOF
21285 /* end confdefs.h. */
21286
21287 /* Override any GCC internal prototype to avoid an error.
21288 Use char because int might match the return type of a GCC
21289 builtin and then its argument prototype would still apply. */
21290 #ifdef __cplusplus
21291 extern "C"
21292 #endif
21293 char tputs ();
21294 int
21295 main ()
21296 {
21297 return tputs ();
21298 ;
21299 return 0;
21300 }
21301 _ACEOF
21302 for ac_lib in '' ncurses terminfo termcap; do
21303 if test -z "$ac_lib"; then
21304 ac_res="none required"
21305 else
21306 ac_res=-l$ac_lib
21307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21308 fi
21309 rm -f conftest.$ac_objext conftest$ac_exeext
21310 if { (ac_try="$ac_link"
21311 case "(($ac_try" in
21312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21313 *) ac_try_echo=$ac_try;;
21314 esac
21315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21316 $as_echo "$ac_try_echo") >&5
21317 (eval "$ac_link") 2>conftest.er1
21318 ac_status=$?
21319 grep -v '^ *+' conftest.er1 >conftest.err
21320 rm -f conftest.er1
21321 cat conftest.err >&5
21322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); } && {
21324 test -z "$ac_c_werror_flag" ||
21325 test ! -s conftest.err
21326 } && test -s conftest$ac_exeext && {
21327 test "$cross_compiling" = yes ||
21328 $as_test_x conftest$ac_exeext
21329 }; then
21330 ac_cv_search_tputs=$ac_res
21331 else
21332 $as_echo "$as_me: failed program was:" >&5
21333 sed 's/^/| /' conftest.$ac_ext >&5
21334
21335
21336 fi
21337
21338 rm -rf conftest.dSYM
21339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21340 conftest$ac_exeext
21341 if test "${ac_cv_search_tputs+set}" = set; then
21342 break
21343 fi
21344 done
21345 if test "${ac_cv_search_tputs+set}" = set; then
21346 :
21347 else
21348 ac_cv_search_tputs=no
21349 fi
21350 rm conftest.$ac_ext
21351 LIBS=$ac_func_search_save_LIBS
21352 fi
21353 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
21354 $as_echo "$ac_cv_search_tputs" >&6; }
21355 ac_res=$ac_cv_search_tputs
21356 if test "$ac_res" != no; then
21357 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21358
21359 else
21360 have_tputs_et_al=false
21361 fi
21362
21363 if test "$have_tputs_et_al" != true; then
21364 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
21365 Maybe some development libraries/packages are missing? Try installing
21366 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21367 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21368 Maybe some development libraries/packages are missing? Try installing
21369 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21370 { (exit 1); exit 1; }; }
21371 fi
21372 # Must define this when any termcap library is found.
21373
21374 cat >>confdefs.h <<\_ACEOF
21375 #define HAVE_LIBNCURSES 1
21376 _ACEOF
21377
21378
21379 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21380
21381 resolv=no
21382 cat >conftest.$ac_ext <<_ACEOF
21383 /* confdefs.h. */
21384 _ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h. */
21388 #include <netinet/in.h>
21389 #include <arpa/nameser.h>
21390 #include <resolv.h>
21391 int
21392 main ()
21393 {
21394 return res_init();
21395 ;
21396 return 0;
21397 }
21398 _ACEOF
21399 rm -f conftest.$ac_objext conftest$ac_exeext
21400 if { (ac_try="$ac_link"
21401 case "(($ac_try" in
21402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21403 *) ac_try_echo=$ac_try;;
21404 esac
21405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21406 $as_echo "$ac_try_echo") >&5
21407 (eval "$ac_link") 2>conftest.er1
21408 ac_status=$?
21409 grep -v '^ *+' conftest.er1 >conftest.err
21410 rm -f conftest.er1
21411 cat conftest.err >&5
21412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); } && {
21414 test -z "$ac_c_werror_flag" ||
21415 test ! -s conftest.err
21416 } && test -s conftest$ac_exeext && {
21417 test "$cross_compiling" = yes ||
21418 $as_test_x conftest$ac_exeext
21419 }; then
21420 have_res_init=yes
21421 else
21422 $as_echo "$as_me: failed program was:" >&5
21423 sed 's/^/| /' conftest.$ac_ext >&5
21424
21425 have_res_init=no
21426 fi
21427
21428 rm -rf conftest.dSYM
21429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21430 conftest$ac_exeext conftest.$ac_ext
21431 if test "$have_res_init" = no; then
21432 OLIBS="$LIBS"
21433 LIBS="$LIBS -lresolv"
21434 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21435 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21436 cat >conftest.$ac_ext <<_ACEOF
21437 /* confdefs.h. */
21438 _ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h. */
21442 #include <netinet/in.h>
21443 #include <arpa/nameser.h>
21444 #include <resolv.h>
21445 int
21446 main ()
21447 {
21448 return res_init();
21449 ;
21450 return 0;
21451 }
21452 _ACEOF
21453 rm -f conftest.$ac_objext conftest$ac_exeext
21454 if { (ac_try="$ac_link"
21455 case "(($ac_try" in
21456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21457 *) ac_try_echo=$ac_try;;
21458 esac
21459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21460 $as_echo "$ac_try_echo") >&5
21461 (eval "$ac_link") 2>conftest.er1
21462 ac_status=$?
21463 grep -v '^ *+' conftest.er1 >conftest.err
21464 rm -f conftest.er1
21465 cat conftest.err >&5
21466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); } && {
21468 test -z "$ac_c_werror_flag" ||
21469 test ! -s conftest.err
21470 } && test -s conftest$ac_exeext && {
21471 test "$cross_compiling" = yes ||
21472 $as_test_x conftest$ac_exeext
21473 }; then
21474 have_res_init=yes
21475 else
21476 $as_echo "$as_me: failed program was:" >&5
21477 sed 's/^/| /' conftest.$ac_ext >&5
21478
21479 have_res_init=no
21480 fi
21481
21482 rm -rf conftest.dSYM
21483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21484 conftest$ac_exeext conftest.$ac_ext
21485 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21486 $as_echo "$have_res_init" >&6; }
21487 if test "$have_res_init" = yes ; then
21488 resolv=yes
21489 fi
21490 LIBS="$OLIBS"
21491 fi
21492
21493 if test "$have_res_init" = yes; then
21494
21495 cat >>confdefs.h <<\_ACEOF
21496 #define HAVE_RES_INIT 1
21497 _ACEOF
21498
21499 fi
21500
21501 # Do we need the Hesiod library to provide the support routines?
21502 LIBHESIOD=
21503 if test "$with_hesiod" != no ; then
21504 # Don't set $LIBS here -- see comments above. FIXME which comments?
21505 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21506 $as_echo_n "checking for res_send... " >&6; }
21507 if test "${ac_cv_func_res_send+set}" = set; then
21508 $as_echo_n "(cached) " >&6
21509 else
21510 cat >conftest.$ac_ext <<_ACEOF
21511 /* confdefs.h. */
21512 _ACEOF
21513 cat confdefs.h >>conftest.$ac_ext
21514 cat >>conftest.$ac_ext <<_ACEOF
21515 /* end confdefs.h. */
21516 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21518 #define res_send innocuous_res_send
21519
21520 /* System header to define __stub macros and hopefully few prototypes,
21521 which can conflict with char res_send (); below.
21522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21523 <limits.h> exists even on freestanding compilers. */
21524
21525 #ifdef __STDC__
21526 # include <limits.h>
21527 #else
21528 # include <assert.h>
21529 #endif
21530
21531 #undef res_send
21532
21533 /* Override any GCC internal prototype to avoid an error.
21534 Use char because int might match the return type of a GCC
21535 builtin and then its argument prototype would still apply. */
21536 #ifdef __cplusplus
21537 extern "C"
21538 #endif
21539 char res_send ();
21540 /* The GNU C library defines this for functions which it implements
21541 to always fail with ENOSYS. Some functions are actually named
21542 something starting with __ and the normal name is an alias. */
21543 #if defined __stub_res_send || defined __stub___res_send
21544 choke me
21545 #endif
21546
21547 int
21548 main ()
21549 {
21550 return res_send ();
21551 ;
21552 return 0;
21553 }
21554 _ACEOF
21555 rm -f conftest.$ac_objext conftest$ac_exeext
21556 if { (ac_try="$ac_link"
21557 case "(($ac_try" in
21558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21559 *) ac_try_echo=$ac_try;;
21560 esac
21561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21562 $as_echo "$ac_try_echo") >&5
21563 (eval "$ac_link") 2>conftest.er1
21564 ac_status=$?
21565 grep -v '^ *+' conftest.er1 >conftest.err
21566 rm -f conftest.er1
21567 cat conftest.err >&5
21568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); } && {
21570 test -z "$ac_c_werror_flag" ||
21571 test ! -s conftest.err
21572 } && test -s conftest$ac_exeext && {
21573 test "$cross_compiling" = yes ||
21574 $as_test_x conftest$ac_exeext
21575 }; then
21576 ac_cv_func_res_send=yes
21577 else
21578 $as_echo "$as_me: failed program was:" >&5
21579 sed 's/^/| /' conftest.$ac_ext >&5
21580
21581 ac_cv_func_res_send=no
21582 fi
21583
21584 rm -rf conftest.dSYM
21585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21586 conftest$ac_exeext conftest.$ac_ext
21587 fi
21588 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21589 $as_echo "$ac_cv_func_res_send" >&6; }
21590 if test $ac_cv_func_res_send = yes; then
21591 :
21592 else
21593 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21594 $as_echo_n "checking for __res_send... " >&6; }
21595 if test "${ac_cv_func___res_send+set}" = set; then
21596 $as_echo_n "(cached) " >&6
21597 else
21598 cat >conftest.$ac_ext <<_ACEOF
21599 /* confdefs.h. */
21600 _ACEOF
21601 cat confdefs.h >>conftest.$ac_ext
21602 cat >>conftest.$ac_ext <<_ACEOF
21603 /* end confdefs.h. */
21604 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21606 #define __res_send innocuous___res_send
21607
21608 /* System header to define __stub macros and hopefully few prototypes,
21609 which can conflict with char __res_send (); below.
21610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21611 <limits.h> exists even on freestanding compilers. */
21612
21613 #ifdef __STDC__
21614 # include <limits.h>
21615 #else
21616 # include <assert.h>
21617 #endif
21618
21619 #undef __res_send
21620
21621 /* Override any GCC internal prototype to avoid an error.
21622 Use char because int might match the return type of a GCC
21623 builtin and then its argument prototype would still apply. */
21624 #ifdef __cplusplus
21625 extern "C"
21626 #endif
21627 char __res_send ();
21628 /* The GNU C library defines this for functions which it implements
21629 to always fail with ENOSYS. Some functions are actually named
21630 something starting with __ and the normal name is an alias. */
21631 #if defined __stub___res_send || defined __stub_____res_send
21632 choke me
21633 #endif
21634
21635 int
21636 main ()
21637 {
21638 return __res_send ();
21639 ;
21640 return 0;
21641 }
21642 _ACEOF
21643 rm -f conftest.$ac_objext conftest$ac_exeext
21644 if { (ac_try="$ac_link"
21645 case "(($ac_try" in
21646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21647 *) ac_try_echo=$ac_try;;
21648 esac
21649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21650 $as_echo "$ac_try_echo") >&5
21651 (eval "$ac_link") 2>conftest.er1
21652 ac_status=$?
21653 grep -v '^ *+' conftest.er1 >conftest.err
21654 rm -f conftest.er1
21655 cat conftest.err >&5
21656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); } && {
21658 test -z "$ac_c_werror_flag" ||
21659 test ! -s conftest.err
21660 } && test -s conftest$ac_exeext && {
21661 test "$cross_compiling" = yes ||
21662 $as_test_x conftest$ac_exeext
21663 }; then
21664 ac_cv_func___res_send=yes
21665 else
21666 $as_echo "$as_me: failed program was:" >&5
21667 sed 's/^/| /' conftest.$ac_ext >&5
21668
21669 ac_cv_func___res_send=no
21670 fi
21671
21672 rm -rf conftest.dSYM
21673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21674 conftest$ac_exeext conftest.$ac_ext
21675 fi
21676 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21677 $as_echo "$ac_cv_func___res_send" >&6; }
21678 if test $ac_cv_func___res_send = yes; then
21679 :
21680 else
21681 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21682 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21683 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21684 $as_echo_n "(cached) " >&6
21685 else
21686 ac_check_lib_save_LIBS=$LIBS
21687 LIBS="-lresolv $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 res_send ();
21702 int
21703 main ()
21704 {
21705 return res_send ();
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_resolv_res_send=yes
21732 else
21733 $as_echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.$ac_ext >&5
21735
21736 ac_cv_lib_resolv_res_send=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_resolv_res_send" >&5
21745 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21746 if test $ac_cv_lib_resolv_res_send = yes; then
21747 resolv=yes
21748 else
21749 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21750 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21751 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21752 $as_echo_n "(cached) " >&6
21753 else
21754 ac_check_lib_save_LIBS=$LIBS
21755 LIBS="-lresolv $LIBS"
21756 cat >conftest.$ac_ext <<_ACEOF
21757 /* confdefs.h. */
21758 _ACEOF
21759 cat confdefs.h >>conftest.$ac_ext
21760 cat >>conftest.$ac_ext <<_ACEOF
21761 /* end confdefs.h. */
21762
21763 /* Override any GCC internal prototype to avoid an error.
21764 Use char because int might match the return type of a GCC
21765 builtin and then its argument prototype would still apply. */
21766 #ifdef __cplusplus
21767 extern "C"
21768 #endif
21769 char __res_send ();
21770 int
21771 main ()
21772 {
21773 return __res_send ();
21774 ;
21775 return 0;
21776 }
21777 _ACEOF
21778 rm -f conftest.$ac_objext conftest$ac_exeext
21779 if { (ac_try="$ac_link"
21780 case "(($ac_try" in
21781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21782 *) ac_try_echo=$ac_try;;
21783 esac
21784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21785 $as_echo "$ac_try_echo") >&5
21786 (eval "$ac_link") 2>conftest.er1
21787 ac_status=$?
21788 grep -v '^ *+' conftest.er1 >conftest.err
21789 rm -f conftest.er1
21790 cat conftest.err >&5
21791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); } && {
21793 test -z "$ac_c_werror_flag" ||
21794 test ! -s conftest.err
21795 } && test -s conftest$ac_exeext && {
21796 test "$cross_compiling" = yes ||
21797 $as_test_x conftest$ac_exeext
21798 }; then
21799 ac_cv_lib_resolv___res_send=yes
21800 else
21801 $as_echo "$as_me: failed program was:" >&5
21802 sed 's/^/| /' conftest.$ac_ext >&5
21803
21804 ac_cv_lib_resolv___res_send=no
21805 fi
21806
21807 rm -rf conftest.dSYM
21808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21809 conftest$ac_exeext conftest.$ac_ext
21810 LIBS=$ac_check_lib_save_LIBS
21811 fi
21812 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21813 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21814 if test $ac_cv_lib_resolv___res_send = yes; then
21815 resolv=yes
21816 fi
21817
21818 fi
21819
21820 fi
21821
21822 fi
21823
21824 if test "$resolv" = yes ; then
21825 RESOLVLIB=-lresolv
21826 else
21827 RESOLVLIB=
21828 fi
21829 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21830 $as_echo_n "checking for hes_getmailhost... " >&6; }
21831 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21832 $as_echo_n "(cached) " >&6
21833 else
21834 cat >conftest.$ac_ext <<_ACEOF
21835 /* confdefs.h. */
21836 _ACEOF
21837 cat confdefs.h >>conftest.$ac_ext
21838 cat >>conftest.$ac_ext <<_ACEOF
21839 /* end confdefs.h. */
21840 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21842 #define hes_getmailhost innocuous_hes_getmailhost
21843
21844 /* System header to define __stub macros and hopefully few prototypes,
21845 which can conflict with char hes_getmailhost (); below.
21846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21847 <limits.h> exists even on freestanding compilers. */
21848
21849 #ifdef __STDC__
21850 # include <limits.h>
21851 #else
21852 # include <assert.h>
21853 #endif
21854
21855 #undef hes_getmailhost
21856
21857 /* Override any GCC internal prototype to avoid an error.
21858 Use char because int might match the return type of a GCC
21859 builtin and then its argument prototype would still apply. */
21860 #ifdef __cplusplus
21861 extern "C"
21862 #endif
21863 char hes_getmailhost ();
21864 /* The GNU C library defines this for functions which it implements
21865 to always fail with ENOSYS. Some functions are actually named
21866 something starting with __ and the normal name is an alias. */
21867 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21868 choke me
21869 #endif
21870
21871 int
21872 main ()
21873 {
21874 return hes_getmailhost ();
21875 ;
21876 return 0;
21877 }
21878 _ACEOF
21879 rm -f conftest.$ac_objext conftest$ac_exeext
21880 if { (ac_try="$ac_link"
21881 case "(($ac_try" in
21882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21883 *) ac_try_echo=$ac_try;;
21884 esac
21885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21886 $as_echo "$ac_try_echo") >&5
21887 (eval "$ac_link") 2>conftest.er1
21888 ac_status=$?
21889 grep -v '^ *+' conftest.er1 >conftest.err
21890 rm -f conftest.er1
21891 cat conftest.err >&5
21892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); } && {
21894 test -z "$ac_c_werror_flag" ||
21895 test ! -s conftest.err
21896 } && test -s conftest$ac_exeext && {
21897 test "$cross_compiling" = yes ||
21898 $as_test_x conftest$ac_exeext
21899 }; then
21900 ac_cv_func_hes_getmailhost=yes
21901 else
21902 $as_echo "$as_me: failed program was:" >&5
21903 sed 's/^/| /' conftest.$ac_ext >&5
21904
21905 ac_cv_func_hes_getmailhost=no
21906 fi
21907
21908 rm -rf conftest.dSYM
21909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21910 conftest$ac_exeext conftest.$ac_ext
21911 fi
21912 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21913 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21914 if test $ac_cv_func_hes_getmailhost = yes; then
21915 :
21916 else
21917 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21918 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21919 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21920 $as_echo_n "(cached) " >&6
21921 else
21922 ac_check_lib_save_LIBS=$LIBS
21923 LIBS="-lhesiod $RESOLVLIB $LIBS"
21924 cat >conftest.$ac_ext <<_ACEOF
21925 /* confdefs.h. */
21926 _ACEOF
21927 cat confdefs.h >>conftest.$ac_ext
21928 cat >>conftest.$ac_ext <<_ACEOF
21929 /* end confdefs.h. */
21930
21931 /* Override any GCC internal prototype to avoid an error.
21932 Use char because int might match the return type of a GCC
21933 builtin and then its argument prototype would still apply. */
21934 #ifdef __cplusplus
21935 extern "C"
21936 #endif
21937 char hes_getmailhost ();
21938 int
21939 main ()
21940 {
21941 return hes_getmailhost ();
21942 ;
21943 return 0;
21944 }
21945 _ACEOF
21946 rm -f conftest.$ac_objext conftest$ac_exeext
21947 if { (ac_try="$ac_link"
21948 case "(($ac_try" in
21949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21950 *) ac_try_echo=$ac_try;;
21951 esac
21952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21953 $as_echo "$ac_try_echo") >&5
21954 (eval "$ac_link") 2>conftest.er1
21955 ac_status=$?
21956 grep -v '^ *+' conftest.er1 >conftest.err
21957 rm -f conftest.er1
21958 cat conftest.err >&5
21959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); } && {
21961 test -z "$ac_c_werror_flag" ||
21962 test ! -s conftest.err
21963 } && test -s conftest$ac_exeext && {
21964 test "$cross_compiling" = yes ||
21965 $as_test_x conftest$ac_exeext
21966 }; then
21967 ac_cv_lib_hesiod_hes_getmailhost=yes
21968 else
21969 $as_echo "$as_me: failed program was:" >&5
21970 sed 's/^/| /' conftest.$ac_ext >&5
21971
21972 ac_cv_lib_hesiod_hes_getmailhost=no
21973 fi
21974
21975 rm -rf conftest.dSYM
21976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21977 conftest$ac_exeext conftest.$ac_ext
21978 LIBS=$ac_check_lib_save_LIBS
21979 fi
21980 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21981 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21982 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21983 hesiod=yes
21984 else
21985 :
21986 fi
21987
21988 fi
21989
21990
21991 if test x"$hesiod" = xyes; then
21992
21993 cat >>confdefs.h <<\_ACEOF
21994 #define HAVE_LIBHESIOD 1
21995 _ACEOF
21996
21997 LIBHESIOD=-lhesiod
21998 fi
21999 fi
22000
22001
22002 # Do we need libresolv (due to res_init or Hesiod)?
22003 if test "$resolv" = yes ; then
22004
22005 cat >>confdefs.h <<\_ACEOF
22006 #define HAVE_LIBRESOLV 1
22007 _ACEOF
22008
22009 LIBRESOLV=-lresolv
22010 else
22011 LIBRESOLV=
22012 fi
22013
22014
22015 # These tell us which Kerberos-related libraries to use.
22016 COM_ERRLIB=
22017 CRYPTOLIB=
22018 KRB5LIB=
22019 DESLIB=
22020 KRB4LIB=
22021
22022 if test "${with_kerberos}" != no; then
22023 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
22024 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
22025 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22026 $as_echo_n "(cached) " >&6
22027 else
22028 ac_check_lib_save_LIBS=$LIBS
22029 LIBS="-lcom_err $LIBS"
22030 cat >conftest.$ac_ext <<_ACEOF
22031 /* confdefs.h. */
22032 _ACEOF
22033 cat confdefs.h >>conftest.$ac_ext
22034 cat >>conftest.$ac_ext <<_ACEOF
22035 /* end confdefs.h. */
22036
22037 /* Override any GCC internal prototype to avoid an error.
22038 Use char because int might match the return type of a GCC
22039 builtin and then its argument prototype would still apply. */
22040 #ifdef __cplusplus
22041 extern "C"
22042 #endif
22043 char com_err ();
22044 int
22045 main ()
22046 {
22047 return com_err ();
22048 ;
22049 return 0;
22050 }
22051 _ACEOF
22052 rm -f conftest.$ac_objext conftest$ac_exeext
22053 if { (ac_try="$ac_link"
22054 case "(($ac_try" in
22055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22056 *) ac_try_echo=$ac_try;;
22057 esac
22058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22059 $as_echo "$ac_try_echo") >&5
22060 (eval "$ac_link") 2>conftest.er1
22061 ac_status=$?
22062 grep -v '^ *+' conftest.er1 >conftest.err
22063 rm -f conftest.er1
22064 cat conftest.err >&5
22065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); } && {
22067 test -z "$ac_c_werror_flag" ||
22068 test ! -s conftest.err
22069 } && test -s conftest$ac_exeext && {
22070 test "$cross_compiling" = yes ||
22071 $as_test_x conftest$ac_exeext
22072 }; then
22073 ac_cv_lib_com_err_com_err=yes
22074 else
22075 $as_echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22077
22078 ac_cv_lib_com_err_com_err=no
22079 fi
22080
22081 rm -rf conftest.dSYM
22082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22083 conftest$ac_exeext conftest.$ac_ext
22084 LIBS=$ac_check_lib_save_LIBS
22085 fi
22086 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
22087 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22088 if test $ac_cv_lib_com_err_com_err = yes; then
22089 have_com_err=yes
22090 else
22091 have_com_err=no
22092 fi
22093
22094 if test $have_com_err = yes; then
22095 COM_ERRLIB=-lcom_err
22096 LIBS="$COM_ERRLIB $LIBS"
22097
22098 cat >>confdefs.h <<\_ACEOF
22099 #define HAVE_LIBCOM_ERR 1
22100 _ACEOF
22101
22102 fi
22103 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22104 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22105 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22106 $as_echo_n "(cached) " >&6
22107 else
22108 ac_check_lib_save_LIBS=$LIBS
22109 LIBS="-lcrypto $LIBS"
22110 cat >conftest.$ac_ext <<_ACEOF
22111 /* confdefs.h. */
22112 _ACEOF
22113 cat confdefs.h >>conftest.$ac_ext
22114 cat >>conftest.$ac_ext <<_ACEOF
22115 /* end confdefs.h. */
22116
22117 /* Override any GCC internal prototype to avoid an error.
22118 Use char because int might match the return type of a GCC
22119 builtin and then its argument prototype would still apply. */
22120 #ifdef __cplusplus
22121 extern "C"
22122 #endif
22123 char mit_des_cbc_encrypt ();
22124 int
22125 main ()
22126 {
22127 return mit_des_cbc_encrypt ();
22128 ;
22129 return 0;
22130 }
22131 _ACEOF
22132 rm -f conftest.$ac_objext conftest$ac_exeext
22133 if { (ac_try="$ac_link"
22134 case "(($ac_try" in
22135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22136 *) ac_try_echo=$ac_try;;
22137 esac
22138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22139 $as_echo "$ac_try_echo") >&5
22140 (eval "$ac_link") 2>conftest.er1
22141 ac_status=$?
22142 grep -v '^ *+' conftest.er1 >conftest.err
22143 rm -f conftest.er1
22144 cat conftest.err >&5
22145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); } && {
22147 test -z "$ac_c_werror_flag" ||
22148 test ! -s conftest.err
22149 } && test -s conftest$ac_exeext && {
22150 test "$cross_compiling" = yes ||
22151 $as_test_x conftest$ac_exeext
22152 }; then
22153 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22154 else
22155 $as_echo "$as_me: failed program was:" >&5
22156 sed 's/^/| /' conftest.$ac_ext >&5
22157
22158 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22159 fi
22160
22161 rm -rf conftest.dSYM
22162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22163 conftest$ac_exeext conftest.$ac_ext
22164 LIBS=$ac_check_lib_save_LIBS
22165 fi
22166 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22167 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22168 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22169 have_crypto=yes
22170 else
22171 have_crypto=no
22172 fi
22173
22174 if test $have_crypto = yes; then
22175 CRYPTOLIB=-lcrypto
22176 LIBS="$CRYPTOLIB $LIBS"
22177
22178 cat >>confdefs.h <<\_ACEOF
22179 #define HAVE_LIBCRYPTO 1
22180 _ACEOF
22181
22182 fi
22183 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22184 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22185 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22186 $as_echo_n "(cached) " >&6
22187 else
22188 ac_check_lib_save_LIBS=$LIBS
22189 LIBS="-lk5crypto $LIBS"
22190 cat >conftest.$ac_ext <<_ACEOF
22191 /* confdefs.h. */
22192 _ACEOF
22193 cat confdefs.h >>conftest.$ac_ext
22194 cat >>conftest.$ac_ext <<_ACEOF
22195 /* end confdefs.h. */
22196
22197 /* Override any GCC internal prototype to avoid an error.
22198 Use char because int might match the return type of a GCC
22199 builtin and then its argument prototype would still apply. */
22200 #ifdef __cplusplus
22201 extern "C"
22202 #endif
22203 char mit_des_cbc_encrypt ();
22204 int
22205 main ()
22206 {
22207 return mit_des_cbc_encrypt ();
22208 ;
22209 return 0;
22210 }
22211 _ACEOF
22212 rm -f conftest.$ac_objext conftest$ac_exeext
22213 if { (ac_try="$ac_link"
22214 case "(($ac_try" in
22215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22216 *) ac_try_echo=$ac_try;;
22217 esac
22218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22219 $as_echo "$ac_try_echo") >&5
22220 (eval "$ac_link") 2>conftest.er1
22221 ac_status=$?
22222 grep -v '^ *+' conftest.er1 >conftest.err
22223 rm -f conftest.er1
22224 cat conftest.err >&5
22225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); } && {
22227 test -z "$ac_c_werror_flag" ||
22228 test ! -s conftest.err
22229 } && test -s conftest$ac_exeext && {
22230 test "$cross_compiling" = yes ||
22231 $as_test_x conftest$ac_exeext
22232 }; then
22233 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22234 else
22235 $as_echo "$as_me: failed program was:" >&5
22236 sed 's/^/| /' conftest.$ac_ext >&5
22237
22238 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22239 fi
22240
22241 rm -rf conftest.dSYM
22242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22243 conftest$ac_exeext conftest.$ac_ext
22244 LIBS=$ac_check_lib_save_LIBS
22245 fi
22246 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22247 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22248 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22249 have_k5crypto=yes
22250 else
22251 have_k5crypto=no
22252 fi
22253
22254 if test $have_k5crypto = yes; then
22255 CRYPTOLIB=-lk5crypto
22256 LIBS="$CRYPTOLIB $LIBS"
22257
22258 cat >>confdefs.h <<\_ACEOF
22259 #define HAVE_LIBK5CRYPTO 1
22260 _ACEOF
22261
22262 fi
22263 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22264 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22265 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22266 $as_echo_n "(cached) " >&6
22267 else
22268 ac_check_lib_save_LIBS=$LIBS
22269 LIBS="-lkrb5 $LIBS"
22270 cat >conftest.$ac_ext <<_ACEOF
22271 /* confdefs.h. */
22272 _ACEOF
22273 cat confdefs.h >>conftest.$ac_ext
22274 cat >>conftest.$ac_ext <<_ACEOF
22275 /* end confdefs.h. */
22276
22277 /* Override any GCC internal prototype to avoid an error.
22278 Use char because int might match the return type of a GCC
22279 builtin and then its argument prototype would still apply. */
22280 #ifdef __cplusplus
22281 extern "C"
22282 #endif
22283 char krb5_init_context ();
22284 int
22285 main ()
22286 {
22287 return krb5_init_context ();
22288 ;
22289 return 0;
22290 }
22291 _ACEOF
22292 rm -f conftest.$ac_objext conftest$ac_exeext
22293 if { (ac_try="$ac_link"
22294 case "(($ac_try" in
22295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22296 *) ac_try_echo=$ac_try;;
22297 esac
22298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22299 $as_echo "$ac_try_echo") >&5
22300 (eval "$ac_link") 2>conftest.er1
22301 ac_status=$?
22302 grep -v '^ *+' conftest.er1 >conftest.err
22303 rm -f conftest.er1
22304 cat conftest.err >&5
22305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } && {
22307 test -z "$ac_c_werror_flag" ||
22308 test ! -s conftest.err
22309 } && test -s conftest$ac_exeext && {
22310 test "$cross_compiling" = yes ||
22311 $as_test_x conftest$ac_exeext
22312 }; then
22313 ac_cv_lib_krb5_krb5_init_context=yes
22314 else
22315 $as_echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22317
22318 ac_cv_lib_krb5_krb5_init_context=no
22319 fi
22320
22321 rm -rf conftest.dSYM
22322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22323 conftest$ac_exeext conftest.$ac_ext
22324 LIBS=$ac_check_lib_save_LIBS
22325 fi
22326 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22327 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22328 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22329 have_krb5=yes
22330 else
22331 have_krb5=no
22332 fi
22333
22334 if test $have_krb5=yes; then
22335 KRB5LIB=-lkrb5
22336 LIBS="$KRB5LIB $LIBS"
22337
22338 cat >>confdefs.h <<\_ACEOF
22339 #define HAVE_LIBKRB5 1
22340 _ACEOF
22341
22342 fi
22343 if test "${with_kerberos5}" = no; then
22344 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22345 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22346 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22347 $as_echo_n "(cached) " >&6
22348 else
22349 ac_check_lib_save_LIBS=$LIBS
22350 LIBS="-ldes425 $LIBS"
22351 cat >conftest.$ac_ext <<_ACEOF
22352 /* confdefs.h. */
22353 _ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h. */
22357
22358 /* Override any GCC internal prototype to avoid an error.
22359 Use char because int might match the return type of a GCC
22360 builtin and then its argument prototype would still apply. */
22361 #ifdef __cplusplus
22362 extern "C"
22363 #endif
22364 char des_cbc_encrypt ();
22365 int
22366 main ()
22367 {
22368 return des_cbc_encrypt ();
22369 ;
22370 return 0;
22371 }
22372 _ACEOF
22373 rm -f conftest.$ac_objext conftest$ac_exeext
22374 if { (ac_try="$ac_link"
22375 case "(($ac_try" in
22376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22377 *) ac_try_echo=$ac_try;;
22378 esac
22379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22380 $as_echo "$ac_try_echo") >&5
22381 (eval "$ac_link") 2>conftest.er1
22382 ac_status=$?
22383 grep -v '^ *+' conftest.er1 >conftest.err
22384 rm -f conftest.er1
22385 cat conftest.err >&5
22386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); } && {
22388 test -z "$ac_c_werror_flag" ||
22389 test ! -s conftest.err
22390 } && test -s conftest$ac_exeext && {
22391 test "$cross_compiling" = yes ||
22392 $as_test_x conftest$ac_exeext
22393 }; then
22394 ac_cv_lib_des425_des_cbc_encrypt=yes
22395 else
22396 $as_echo "$as_me: failed program was:" >&5
22397 sed 's/^/| /' conftest.$ac_ext >&5
22398
22399 ac_cv_lib_des425_des_cbc_encrypt=no
22400 fi
22401
22402 rm -rf conftest.dSYM
22403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22404 conftest$ac_exeext conftest.$ac_ext
22405 LIBS=$ac_check_lib_save_LIBS
22406 fi
22407 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22408 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22409 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22410 have_des425=yes
22411 else
22412 have_des425=no
22413 fi
22414
22415 if test $have_des425 = yes; then
22416 DESLIB=-ldes425
22417 LIBS="$DESLIB $LIBS"
22418
22419 cat >>confdefs.h <<\_ACEOF
22420 #define HAVE_LIBDES425 1
22421 _ACEOF
22422
22423 else
22424 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22425 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22426 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22427 $as_echo_n "(cached) " >&6
22428 else
22429 ac_check_lib_save_LIBS=$LIBS
22430 LIBS="-ldes $LIBS"
22431 cat >conftest.$ac_ext <<_ACEOF
22432 /* confdefs.h. */
22433 _ACEOF
22434 cat confdefs.h >>conftest.$ac_ext
22435 cat >>conftest.$ac_ext <<_ACEOF
22436 /* end confdefs.h. */
22437
22438 /* Override any GCC internal prototype to avoid an error.
22439 Use char because int might match the return type of a GCC
22440 builtin and then its argument prototype would still apply. */
22441 #ifdef __cplusplus
22442 extern "C"
22443 #endif
22444 char des_cbc_encrypt ();
22445 int
22446 main ()
22447 {
22448 return des_cbc_encrypt ();
22449 ;
22450 return 0;
22451 }
22452 _ACEOF
22453 rm -f conftest.$ac_objext conftest$ac_exeext
22454 if { (ac_try="$ac_link"
22455 case "(($ac_try" in
22456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22457 *) ac_try_echo=$ac_try;;
22458 esac
22459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22460 $as_echo "$ac_try_echo") >&5
22461 (eval "$ac_link") 2>conftest.er1
22462 ac_status=$?
22463 grep -v '^ *+' conftest.er1 >conftest.err
22464 rm -f conftest.er1
22465 cat conftest.err >&5
22466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); } && {
22468 test -z "$ac_c_werror_flag" ||
22469 test ! -s conftest.err
22470 } && test -s conftest$ac_exeext && {
22471 test "$cross_compiling" = yes ||
22472 $as_test_x conftest$ac_exeext
22473 }; then
22474 ac_cv_lib_des_des_cbc_encrypt=yes
22475 else
22476 $as_echo "$as_me: failed program was:" >&5
22477 sed 's/^/| /' conftest.$ac_ext >&5
22478
22479 ac_cv_lib_des_des_cbc_encrypt=no
22480 fi
22481
22482 rm -rf conftest.dSYM
22483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22484 conftest$ac_exeext conftest.$ac_ext
22485 LIBS=$ac_check_lib_save_LIBS
22486 fi
22487 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22488 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22489 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22490 have_des=yes
22491 else
22492 have_des=no
22493 fi
22494
22495 if test $have_des = yes; then
22496 DESLIB=-ldes
22497 LIBS="$DESLIB $LIBS"
22498
22499 cat >>confdefs.h <<\_ACEOF
22500 #define HAVE_LIBDES 1
22501 _ACEOF
22502
22503 fi
22504 fi
22505 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22506 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22507 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22508 $as_echo_n "(cached) " >&6
22509 else
22510 ac_check_lib_save_LIBS=$LIBS
22511 LIBS="-lkrb4 $LIBS"
22512 cat >conftest.$ac_ext <<_ACEOF
22513 /* confdefs.h. */
22514 _ACEOF
22515 cat confdefs.h >>conftest.$ac_ext
22516 cat >>conftest.$ac_ext <<_ACEOF
22517 /* end confdefs.h. */
22518
22519 /* Override any GCC internal prototype to avoid an error.
22520 Use char because int might match the return type of a GCC
22521 builtin and then its argument prototype would still apply. */
22522 #ifdef __cplusplus
22523 extern "C"
22524 #endif
22525 char krb_get_cred ();
22526 int
22527 main ()
22528 {
22529 return krb_get_cred ();
22530 ;
22531 return 0;
22532 }
22533 _ACEOF
22534 rm -f conftest.$ac_objext conftest$ac_exeext
22535 if { (ac_try="$ac_link"
22536 case "(($ac_try" in
22537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22538 *) ac_try_echo=$ac_try;;
22539 esac
22540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22541 $as_echo "$ac_try_echo") >&5
22542 (eval "$ac_link") 2>conftest.er1
22543 ac_status=$?
22544 grep -v '^ *+' conftest.er1 >conftest.err
22545 rm -f conftest.er1
22546 cat conftest.err >&5
22547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 (exit $ac_status); } && {
22549 test -z "$ac_c_werror_flag" ||
22550 test ! -s conftest.err
22551 } && test -s conftest$ac_exeext && {
22552 test "$cross_compiling" = yes ||
22553 $as_test_x conftest$ac_exeext
22554 }; then
22555 ac_cv_lib_krb4_krb_get_cred=yes
22556 else
22557 $as_echo "$as_me: failed program was:" >&5
22558 sed 's/^/| /' conftest.$ac_ext >&5
22559
22560 ac_cv_lib_krb4_krb_get_cred=no
22561 fi
22562
22563 rm -rf conftest.dSYM
22564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22565 conftest$ac_exeext conftest.$ac_ext
22566 LIBS=$ac_check_lib_save_LIBS
22567 fi
22568 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22569 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22570 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22571 have_krb4=yes
22572 else
22573 have_krb4=no
22574 fi
22575
22576 if test $have_krb4 = yes; then
22577 KRB4LIB=-lkrb4
22578 LIBS="$KRB4LIB $LIBS"
22579
22580 cat >>confdefs.h <<\_ACEOF
22581 #define HAVE_LIBKRB4 1
22582 _ACEOF
22583
22584 else
22585 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22586 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22587 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22588 $as_echo_n "(cached) " >&6
22589 else
22590 ac_check_lib_save_LIBS=$LIBS
22591 LIBS="-lkrb $LIBS"
22592 cat >conftest.$ac_ext <<_ACEOF
22593 /* confdefs.h. */
22594 _ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h. */
22598
22599 /* Override any GCC internal prototype to avoid an error.
22600 Use char because int might match the return type of a GCC
22601 builtin and then its argument prototype would still apply. */
22602 #ifdef __cplusplus
22603 extern "C"
22604 #endif
22605 char krb_get_cred ();
22606 int
22607 main ()
22608 {
22609 return krb_get_cred ();
22610 ;
22611 return 0;
22612 }
22613 _ACEOF
22614 rm -f conftest.$ac_objext conftest$ac_exeext
22615 if { (ac_try="$ac_link"
22616 case "(($ac_try" in
22617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22618 *) ac_try_echo=$ac_try;;
22619 esac
22620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22621 $as_echo "$ac_try_echo") >&5
22622 (eval "$ac_link") 2>conftest.er1
22623 ac_status=$?
22624 grep -v '^ *+' conftest.er1 >conftest.err
22625 rm -f conftest.er1
22626 cat conftest.err >&5
22627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); } && {
22629 test -z "$ac_c_werror_flag" ||
22630 test ! -s conftest.err
22631 } && test -s conftest$ac_exeext && {
22632 test "$cross_compiling" = yes ||
22633 $as_test_x conftest$ac_exeext
22634 }; then
22635 ac_cv_lib_krb_krb_get_cred=yes
22636 else
22637 $as_echo "$as_me: failed program was:" >&5
22638 sed 's/^/| /' conftest.$ac_ext >&5
22639
22640 ac_cv_lib_krb_krb_get_cred=no
22641 fi
22642
22643 rm -rf conftest.dSYM
22644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22645 conftest$ac_exeext conftest.$ac_ext
22646 LIBS=$ac_check_lib_save_LIBS
22647 fi
22648 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22649 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22650 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22651 have_krb=yes
22652 else
22653 have_krb=no
22654 fi
22655
22656 if test $have_krb = yes; then
22657 KRB4LIB=-lkrb
22658 LIBS="$KRB4LIB $LIBS"
22659
22660 cat >>confdefs.h <<\_ACEOF
22661 #define HAVE_LIBKRB 1
22662 _ACEOF
22663
22664 fi
22665 fi
22666 fi
22667
22668 if test "${with_kerberos5}" != no; then
22669
22670 for ac_header in krb5.h
22671 do
22672 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22674 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22675 $as_echo_n "checking for $ac_header... " >&6; }
22676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22677 $as_echo_n "(cached) " >&6
22678 fi
22679 ac_res=`eval 'as_val=${'$as_ac_Header'}
22680 $as_echo "$as_val"'`
22681 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22682 $as_echo "$ac_res" >&6; }
22683 else
22684 # Is the header compilable?
22685 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22686 $as_echo_n "checking $ac_header usability... " >&6; }
22687 cat >conftest.$ac_ext <<_ACEOF
22688 /* confdefs.h. */
22689 _ACEOF
22690 cat confdefs.h >>conftest.$ac_ext
22691 cat >>conftest.$ac_ext <<_ACEOF
22692 /* end confdefs.h. */
22693 $ac_includes_default
22694 #include <$ac_header>
22695 _ACEOF
22696 rm -f conftest.$ac_objext
22697 if { (ac_try="$ac_compile"
22698 case "(($ac_try" in
22699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22700 *) ac_try_echo=$ac_try;;
22701 esac
22702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22703 $as_echo "$ac_try_echo") >&5
22704 (eval "$ac_compile") 2>conftest.er1
22705 ac_status=$?
22706 grep -v '^ *+' conftest.er1 >conftest.err
22707 rm -f conftest.er1
22708 cat conftest.err >&5
22709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710 (exit $ac_status); } && {
22711 test -z "$ac_c_werror_flag" ||
22712 test ! -s conftest.err
22713 } && test -s conftest.$ac_objext; then
22714 ac_header_compiler=yes
22715 else
22716 $as_echo "$as_me: failed program was:" >&5
22717 sed 's/^/| /' conftest.$ac_ext >&5
22718
22719 ac_header_compiler=no
22720 fi
22721
22722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22723 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22724 $as_echo "$ac_header_compiler" >&6; }
22725
22726 # Is the header present?
22727 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22728 $as_echo_n "checking $ac_header presence... " >&6; }
22729 cat >conftest.$ac_ext <<_ACEOF
22730 /* confdefs.h. */
22731 _ACEOF
22732 cat confdefs.h >>conftest.$ac_ext
22733 cat >>conftest.$ac_ext <<_ACEOF
22734 /* end confdefs.h. */
22735 #include <$ac_header>
22736 _ACEOF
22737 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
22751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22752 test ! -s conftest.err
22753 }; then
22754 ac_header_preproc=yes
22755 else
22756 $as_echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22758
22759 ac_header_preproc=no
22760 fi
22761
22762 rm -f conftest.err conftest.$ac_ext
22763 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22764 $as_echo "$ac_header_preproc" >&6; }
22765
22766 # So? What about this header?
22767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22768 yes:no: )
22769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22770 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22772 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22773 ac_header_preproc=yes
22774 ;;
22775 no:yes:* )
22776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22777 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22779 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22781 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22783 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22785 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22787 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22788
22789 ;;
22790 esac
22791 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22792 $as_echo_n "checking for $ac_header... " >&6; }
22793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22794 $as_echo_n "(cached) " >&6
22795 else
22796 eval "$as_ac_Header=\$ac_header_preproc"
22797 fi
22798 ac_res=`eval 'as_val=${'$as_ac_Header'}
22799 $as_echo "$as_val"'`
22800 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22801 $as_echo "$ac_res" >&6; }
22802
22803 fi
22804 if test `eval 'as_val=${'$as_ac_Header'}
22805 $as_echo "$as_val"'` = yes; then
22806 cat >>confdefs.h <<_ACEOF
22807 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22808 _ACEOF
22809 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22810 $as_echo_n "checking for krb5_error.text... " >&6; }
22811 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22812 $as_echo_n "(cached) " >&6
22813 else
22814 cat >conftest.$ac_ext <<_ACEOF
22815 /* confdefs.h. */
22816 _ACEOF
22817 cat confdefs.h >>conftest.$ac_ext
22818 cat >>conftest.$ac_ext <<_ACEOF
22819 /* end confdefs.h. */
22820 #include <krb5.h>
22821
22822 int
22823 main ()
22824 {
22825 static krb5_error ac_aggr;
22826 if (ac_aggr.text)
22827 return 0;
22828 ;
22829 return 0;
22830 }
22831 _ACEOF
22832 rm -f conftest.$ac_objext
22833 if { (ac_try="$ac_compile"
22834 case "(($ac_try" in
22835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22836 *) ac_try_echo=$ac_try;;
22837 esac
22838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22839 $as_echo "$ac_try_echo") >&5
22840 (eval "$ac_compile") 2>conftest.er1
22841 ac_status=$?
22842 grep -v '^ *+' conftest.er1 >conftest.err
22843 rm -f conftest.er1
22844 cat conftest.err >&5
22845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); } && {
22847 test -z "$ac_c_werror_flag" ||
22848 test ! -s conftest.err
22849 } && test -s conftest.$ac_objext; then
22850 ac_cv_member_krb5_error_text=yes
22851 else
22852 $as_echo "$as_me: failed program was:" >&5
22853 sed 's/^/| /' conftest.$ac_ext >&5
22854
22855 cat >conftest.$ac_ext <<_ACEOF
22856 /* confdefs.h. */
22857 _ACEOF
22858 cat confdefs.h >>conftest.$ac_ext
22859 cat >>conftest.$ac_ext <<_ACEOF
22860 /* end confdefs.h. */
22861 #include <krb5.h>
22862
22863 int
22864 main ()
22865 {
22866 static krb5_error ac_aggr;
22867 if (sizeof ac_aggr.text)
22868 return 0;
22869 ;
22870 return 0;
22871 }
22872 _ACEOF
22873 rm -f conftest.$ac_objext
22874 if { (ac_try="$ac_compile"
22875 case "(($ac_try" in
22876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22877 *) ac_try_echo=$ac_try;;
22878 esac
22879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22880 $as_echo "$ac_try_echo") >&5
22881 (eval "$ac_compile") 2>conftest.er1
22882 ac_status=$?
22883 grep -v '^ *+' conftest.er1 >conftest.err
22884 rm -f conftest.er1
22885 cat conftest.err >&5
22886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887 (exit $ac_status); } && {
22888 test -z "$ac_c_werror_flag" ||
22889 test ! -s conftest.err
22890 } && test -s conftest.$ac_objext; then
22891 ac_cv_member_krb5_error_text=yes
22892 else
22893 $as_echo "$as_me: failed program was:" >&5
22894 sed 's/^/| /' conftest.$ac_ext >&5
22895
22896 ac_cv_member_krb5_error_text=no
22897 fi
22898
22899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22900 fi
22901
22902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22903 fi
22904 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22905 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22906 if test $ac_cv_member_krb5_error_text = yes; then
22907
22908 cat >>confdefs.h <<_ACEOF
22909 #define HAVE_KRB5_ERROR_TEXT 1
22910 _ACEOF
22911
22912
22913 fi
22914 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22915 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22916 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22917 $as_echo_n "(cached) " >&6
22918 else
22919 cat >conftest.$ac_ext <<_ACEOF
22920 /* confdefs.h. */
22921 _ACEOF
22922 cat confdefs.h >>conftest.$ac_ext
22923 cat >>conftest.$ac_ext <<_ACEOF
22924 /* end confdefs.h. */
22925 #include <krb5.h>
22926
22927 int
22928 main ()
22929 {
22930 static krb5_error ac_aggr;
22931 if (ac_aggr.e_text)
22932 return 0;
22933 ;
22934 return 0;
22935 }
22936 _ACEOF
22937 rm -f conftest.$ac_objext
22938 if { (ac_try="$ac_compile"
22939 case "(($ac_try" in
22940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22941 *) ac_try_echo=$ac_try;;
22942 esac
22943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22944 $as_echo "$ac_try_echo") >&5
22945 (eval "$ac_compile") 2>conftest.er1
22946 ac_status=$?
22947 grep -v '^ *+' conftest.er1 >conftest.err
22948 rm -f conftest.er1
22949 cat conftest.err >&5
22950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); } && {
22952 test -z "$ac_c_werror_flag" ||
22953 test ! -s conftest.err
22954 } && test -s conftest.$ac_objext; then
22955 ac_cv_member_krb5_error_e_text=yes
22956 else
22957 $as_echo "$as_me: failed program was:" >&5
22958 sed 's/^/| /' conftest.$ac_ext >&5
22959
22960 cat >conftest.$ac_ext <<_ACEOF
22961 /* confdefs.h. */
22962 _ACEOF
22963 cat confdefs.h >>conftest.$ac_ext
22964 cat >>conftest.$ac_ext <<_ACEOF
22965 /* end confdefs.h. */
22966 #include <krb5.h>
22967
22968 int
22969 main ()
22970 {
22971 static krb5_error ac_aggr;
22972 if (sizeof ac_aggr.e_text)
22973 return 0;
22974 ;
22975 return 0;
22976 }
22977 _ACEOF
22978 rm -f conftest.$ac_objext
22979 if { (ac_try="$ac_compile"
22980 case "(($ac_try" in
22981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22982 *) ac_try_echo=$ac_try;;
22983 esac
22984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22985 $as_echo "$ac_try_echo") >&5
22986 (eval "$ac_compile") 2>conftest.er1
22987 ac_status=$?
22988 grep -v '^ *+' conftest.er1 >conftest.err
22989 rm -f conftest.er1
22990 cat conftest.err >&5
22991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992 (exit $ac_status); } && {
22993 test -z "$ac_c_werror_flag" ||
22994 test ! -s conftest.err
22995 } && test -s conftest.$ac_objext; then
22996 ac_cv_member_krb5_error_e_text=yes
22997 else
22998 $as_echo "$as_me: failed program was:" >&5
22999 sed 's/^/| /' conftest.$ac_ext >&5
23000
23001 ac_cv_member_krb5_error_e_text=no
23002 fi
23003
23004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23005 fi
23006
23007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23008 fi
23009 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
23010 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23011 if test $ac_cv_member_krb5_error_e_text = yes; then
23012
23013 cat >>confdefs.h <<_ACEOF
23014 #define HAVE_KRB5_ERROR_E_TEXT 1
23015 _ACEOF
23016
23017
23018 fi
23019
23020 fi
23021
23022 done
23023
23024 else
23025
23026 for ac_header in des.h
23027 do
23028 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23030 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23031 $as_echo_n "checking for $ac_header... " >&6; }
23032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23033 $as_echo_n "(cached) " >&6
23034 fi
23035 ac_res=`eval 'as_val=${'$as_ac_Header'}
23036 $as_echo "$as_val"'`
23037 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23038 $as_echo "$ac_res" >&6; }
23039 else
23040 # Is the header compilable?
23041 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23042 $as_echo_n "checking $ac_header usability... " >&6; }
23043 cat >conftest.$ac_ext <<_ACEOF
23044 /* confdefs.h. */
23045 _ACEOF
23046 cat confdefs.h >>conftest.$ac_ext
23047 cat >>conftest.$ac_ext <<_ACEOF
23048 /* end confdefs.h. */
23049 $ac_includes_default
23050 #include <$ac_header>
23051 _ACEOF
23052 rm -f conftest.$ac_objext
23053 if { (ac_try="$ac_compile"
23054 case "(($ac_try" in
23055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23056 *) ac_try_echo=$ac_try;;
23057 esac
23058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23059 $as_echo "$ac_try_echo") >&5
23060 (eval "$ac_compile") 2>conftest.er1
23061 ac_status=$?
23062 grep -v '^ *+' conftest.er1 >conftest.err
23063 rm -f conftest.er1
23064 cat conftest.err >&5
23065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066 (exit $ac_status); } && {
23067 test -z "$ac_c_werror_flag" ||
23068 test ! -s conftest.err
23069 } && test -s conftest.$ac_objext; then
23070 ac_header_compiler=yes
23071 else
23072 $as_echo "$as_me: failed program was:" >&5
23073 sed 's/^/| /' conftest.$ac_ext >&5
23074
23075 ac_header_compiler=no
23076 fi
23077
23078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23079 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23080 $as_echo "$ac_header_compiler" >&6; }
23081
23082 # Is the header present?
23083 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23084 $as_echo_n "checking $ac_header presence... " >&6; }
23085 cat >conftest.$ac_ext <<_ACEOF
23086 /* confdefs.h. */
23087 _ACEOF
23088 cat confdefs.h >>conftest.$ac_ext
23089 cat >>conftest.$ac_ext <<_ACEOF
23090 /* end confdefs.h. */
23091 #include <$ac_header>
23092 _ACEOF
23093 if { (ac_try="$ac_cpp conftest.$ac_ext"
23094 case "(($ac_try" in
23095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23096 *) ac_try_echo=$ac_try;;
23097 esac
23098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23099 $as_echo "$ac_try_echo") >&5
23100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23101 ac_status=$?
23102 grep -v '^ *+' conftest.er1 >conftest.err
23103 rm -f conftest.er1
23104 cat conftest.err >&5
23105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); } >/dev/null && {
23107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23108 test ! -s conftest.err
23109 }; then
23110 ac_header_preproc=yes
23111 else
23112 $as_echo "$as_me: failed program was:" >&5
23113 sed 's/^/| /' conftest.$ac_ext >&5
23114
23115 ac_header_preproc=no
23116 fi
23117
23118 rm -f conftest.err conftest.$ac_ext
23119 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23120 $as_echo "$ac_header_preproc" >&6; }
23121
23122 # So? What about this header?
23123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23124 yes:no: )
23125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23126 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23128 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23129 ac_header_preproc=yes
23130 ;;
23131 no:yes:* )
23132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23133 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23135 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23137 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23139 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23141 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23143 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23144
23145 ;;
23146 esac
23147 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23148 $as_echo_n "checking for $ac_header... " >&6; }
23149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23150 $as_echo_n "(cached) " >&6
23151 else
23152 eval "$as_ac_Header=\$ac_header_preproc"
23153 fi
23154 ac_res=`eval 'as_val=${'$as_ac_Header'}
23155 $as_echo "$as_val"'`
23156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23157 $as_echo "$ac_res" >&6; }
23158
23159 fi
23160 if test `eval 'as_val=${'$as_ac_Header'}
23161 $as_echo "$as_val"'` = yes; then
23162 cat >>confdefs.h <<_ACEOF
23163 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23164 _ACEOF
23165
23166 else
23167
23168 for ac_header in kerberosIV/des.h
23169 do
23170 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23172 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23173 $as_echo_n "checking for $ac_header... " >&6; }
23174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23175 $as_echo_n "(cached) " >&6
23176 fi
23177 ac_res=`eval 'as_val=${'$as_ac_Header'}
23178 $as_echo "$as_val"'`
23179 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23180 $as_echo "$ac_res" >&6; }
23181 else
23182 # Is the header compilable?
23183 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23184 $as_echo_n "checking $ac_header usability... " >&6; }
23185 cat >conftest.$ac_ext <<_ACEOF
23186 /* confdefs.h. */
23187 _ACEOF
23188 cat confdefs.h >>conftest.$ac_ext
23189 cat >>conftest.$ac_ext <<_ACEOF
23190 /* end confdefs.h. */
23191 $ac_includes_default
23192 #include <$ac_header>
23193 _ACEOF
23194 rm -f conftest.$ac_objext
23195 if { (ac_try="$ac_compile"
23196 case "(($ac_try" in
23197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23198 *) ac_try_echo=$ac_try;;
23199 esac
23200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23201 $as_echo "$ac_try_echo") >&5
23202 (eval "$ac_compile") 2>conftest.er1
23203 ac_status=$?
23204 grep -v '^ *+' conftest.er1 >conftest.err
23205 rm -f conftest.er1
23206 cat conftest.err >&5
23207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208 (exit $ac_status); } && {
23209 test -z "$ac_c_werror_flag" ||
23210 test ! -s conftest.err
23211 } && test -s conftest.$ac_objext; then
23212 ac_header_compiler=yes
23213 else
23214 $as_echo "$as_me: failed program was:" >&5
23215 sed 's/^/| /' conftest.$ac_ext >&5
23216
23217 ac_header_compiler=no
23218 fi
23219
23220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23221 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23222 $as_echo "$ac_header_compiler" >&6; }
23223
23224 # Is the header present?
23225 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23226 $as_echo_n "checking $ac_header presence... " >&6; }
23227 cat >conftest.$ac_ext <<_ACEOF
23228 /* confdefs.h. */
23229 _ACEOF
23230 cat confdefs.h >>conftest.$ac_ext
23231 cat >>conftest.$ac_ext <<_ACEOF
23232 /* end confdefs.h. */
23233 #include <$ac_header>
23234 _ACEOF
23235 if { (ac_try="$ac_cpp conftest.$ac_ext"
23236 case "(($ac_try" in
23237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23238 *) ac_try_echo=$ac_try;;
23239 esac
23240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23241 $as_echo "$ac_try_echo") >&5
23242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23243 ac_status=$?
23244 grep -v '^ *+' conftest.er1 >conftest.err
23245 rm -f conftest.er1
23246 cat conftest.err >&5
23247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248 (exit $ac_status); } >/dev/null && {
23249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23250 test ! -s conftest.err
23251 }; then
23252 ac_header_preproc=yes
23253 else
23254 $as_echo "$as_me: failed program was:" >&5
23255 sed 's/^/| /' conftest.$ac_ext >&5
23256
23257 ac_header_preproc=no
23258 fi
23259
23260 rm -f conftest.err conftest.$ac_ext
23261 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23262 $as_echo "$ac_header_preproc" >&6; }
23263
23264 # So? What about this header?
23265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23266 yes:no: )
23267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23268 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23270 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23271 ac_header_preproc=yes
23272 ;;
23273 no:yes:* )
23274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23275 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23277 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23279 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23280 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23281 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23283 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23285 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23286
23287 ;;
23288 esac
23289 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23290 $as_echo_n "checking for $ac_header... " >&6; }
23291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23292 $as_echo_n "(cached) " >&6
23293 else
23294 eval "$as_ac_Header=\$ac_header_preproc"
23295 fi
23296 ac_res=`eval 'as_val=${'$as_ac_Header'}
23297 $as_echo "$as_val"'`
23298 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23299 $as_echo "$ac_res" >&6; }
23300
23301 fi
23302 if test `eval 'as_val=${'$as_ac_Header'}
23303 $as_echo "$as_val"'` = yes; then
23304 cat >>confdefs.h <<_ACEOF
23305 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23306 _ACEOF
23307
23308 else
23309
23310 for ac_header in kerberos/des.h
23311 do
23312 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23314 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23315 $as_echo_n "checking for $ac_header... " >&6; }
23316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23317 $as_echo_n "(cached) " >&6
23318 fi
23319 ac_res=`eval 'as_val=${'$as_ac_Header'}
23320 $as_echo "$as_val"'`
23321 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23322 $as_echo "$ac_res" >&6; }
23323 else
23324 # Is the header compilable?
23325 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23326 $as_echo_n "checking $ac_header usability... " >&6; }
23327 cat >conftest.$ac_ext <<_ACEOF
23328 /* confdefs.h. */
23329 _ACEOF
23330 cat confdefs.h >>conftest.$ac_ext
23331 cat >>conftest.$ac_ext <<_ACEOF
23332 /* end confdefs.h. */
23333 $ac_includes_default
23334 #include <$ac_header>
23335 _ACEOF
23336 rm -f conftest.$ac_objext
23337 if { (ac_try="$ac_compile"
23338 case "(($ac_try" in
23339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23340 *) ac_try_echo=$ac_try;;
23341 esac
23342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23343 $as_echo "$ac_try_echo") >&5
23344 (eval "$ac_compile") 2>conftest.er1
23345 ac_status=$?
23346 grep -v '^ *+' conftest.er1 >conftest.err
23347 rm -f conftest.er1
23348 cat conftest.err >&5
23349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); } && {
23351 test -z "$ac_c_werror_flag" ||
23352 test ! -s conftest.err
23353 } && test -s conftest.$ac_objext; then
23354 ac_header_compiler=yes
23355 else
23356 $as_echo "$as_me: failed program was:" >&5
23357 sed 's/^/| /' conftest.$ac_ext >&5
23358
23359 ac_header_compiler=no
23360 fi
23361
23362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23363 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23364 $as_echo "$ac_header_compiler" >&6; }
23365
23366 # Is the header present?
23367 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23368 $as_echo_n "checking $ac_header presence... " >&6; }
23369 cat >conftest.$ac_ext <<_ACEOF
23370 /* confdefs.h. */
23371 _ACEOF
23372 cat confdefs.h >>conftest.$ac_ext
23373 cat >>conftest.$ac_ext <<_ACEOF
23374 /* end confdefs.h. */
23375 #include <$ac_header>
23376 _ACEOF
23377 if { (ac_try="$ac_cpp conftest.$ac_ext"
23378 case "(($ac_try" in
23379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23380 *) ac_try_echo=$ac_try;;
23381 esac
23382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23383 $as_echo "$ac_try_echo") >&5
23384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23385 ac_status=$?
23386 grep -v '^ *+' conftest.er1 >conftest.err
23387 rm -f conftest.er1
23388 cat conftest.err >&5
23389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); } >/dev/null && {
23391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23392 test ! -s conftest.err
23393 }; then
23394 ac_header_preproc=yes
23395 else
23396 $as_echo "$as_me: failed program was:" >&5
23397 sed 's/^/| /' conftest.$ac_ext >&5
23398
23399 ac_header_preproc=no
23400 fi
23401
23402 rm -f conftest.err conftest.$ac_ext
23403 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23404 $as_echo "$ac_header_preproc" >&6; }
23405
23406 # So? What about this header?
23407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23408 yes:no: )
23409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23410 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23412 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23413 ac_header_preproc=yes
23414 ;;
23415 no:yes:* )
23416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23417 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23419 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23421 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23423 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23425 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23427 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23428
23429 ;;
23430 esac
23431 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23432 $as_echo_n "checking for $ac_header... " >&6; }
23433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23434 $as_echo_n "(cached) " >&6
23435 else
23436 eval "$as_ac_Header=\$ac_header_preproc"
23437 fi
23438 ac_res=`eval 'as_val=${'$as_ac_Header'}
23439 $as_echo "$as_val"'`
23440 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23441 $as_echo "$ac_res" >&6; }
23442
23443 fi
23444 if test `eval 'as_val=${'$as_ac_Header'}
23445 $as_echo "$as_val"'` = yes; then
23446 cat >>confdefs.h <<_ACEOF
23447 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23448 _ACEOF
23449
23450 fi
23451
23452 done
23453
23454 fi
23455
23456 done
23457
23458 fi
23459
23460 done
23461
23462
23463 for ac_header in krb.h
23464 do
23465 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23467 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23468 $as_echo_n "checking for $ac_header... " >&6; }
23469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23470 $as_echo_n "(cached) " >&6
23471 fi
23472 ac_res=`eval 'as_val=${'$as_ac_Header'}
23473 $as_echo "$as_val"'`
23474 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23475 $as_echo "$ac_res" >&6; }
23476 else
23477 # Is the header compilable?
23478 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23479 $as_echo_n "checking $ac_header usability... " >&6; }
23480 cat >conftest.$ac_ext <<_ACEOF
23481 /* confdefs.h. */
23482 _ACEOF
23483 cat confdefs.h >>conftest.$ac_ext
23484 cat >>conftest.$ac_ext <<_ACEOF
23485 /* end confdefs.h. */
23486 $ac_includes_default
23487 #include <$ac_header>
23488 _ACEOF
23489 rm -f conftest.$ac_objext
23490 if { (ac_try="$ac_compile"
23491 case "(($ac_try" in
23492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23493 *) ac_try_echo=$ac_try;;
23494 esac
23495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23496 $as_echo "$ac_try_echo") >&5
23497 (eval "$ac_compile") 2>conftest.er1
23498 ac_status=$?
23499 grep -v '^ *+' conftest.er1 >conftest.err
23500 rm -f conftest.er1
23501 cat conftest.err >&5
23502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503 (exit $ac_status); } && {
23504 test -z "$ac_c_werror_flag" ||
23505 test ! -s conftest.err
23506 } && test -s conftest.$ac_objext; then
23507 ac_header_compiler=yes
23508 else
23509 $as_echo "$as_me: failed program was:" >&5
23510 sed 's/^/| /' conftest.$ac_ext >&5
23511
23512 ac_header_compiler=no
23513 fi
23514
23515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23516 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23517 $as_echo "$ac_header_compiler" >&6; }
23518
23519 # Is the header present?
23520 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23521 $as_echo_n "checking $ac_header presence... " >&6; }
23522 cat >conftest.$ac_ext <<_ACEOF
23523 /* confdefs.h. */
23524 _ACEOF
23525 cat confdefs.h >>conftest.$ac_ext
23526 cat >>conftest.$ac_ext <<_ACEOF
23527 /* end confdefs.h. */
23528 #include <$ac_header>
23529 _ACEOF
23530 if { (ac_try="$ac_cpp conftest.$ac_ext"
23531 case "(($ac_try" in
23532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23533 *) ac_try_echo=$ac_try;;
23534 esac
23535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23536 $as_echo "$ac_try_echo") >&5
23537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23538 ac_status=$?
23539 grep -v '^ *+' conftest.er1 >conftest.err
23540 rm -f conftest.er1
23541 cat conftest.err >&5
23542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); } >/dev/null && {
23544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23545 test ! -s conftest.err
23546 }; then
23547 ac_header_preproc=yes
23548 else
23549 $as_echo "$as_me: failed program was:" >&5
23550 sed 's/^/| /' conftest.$ac_ext >&5
23551
23552 ac_header_preproc=no
23553 fi
23554
23555 rm -f conftest.err conftest.$ac_ext
23556 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23557 $as_echo "$ac_header_preproc" >&6; }
23558
23559 # So? What about this header?
23560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23561 yes:no: )
23562 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23563 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23565 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23566 ac_header_preproc=yes
23567 ;;
23568 no:yes:* )
23569 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23570 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23571 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23572 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23573 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23574 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23575 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23576 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23577 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23578 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23579 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23580 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23581
23582 ;;
23583 esac
23584 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23585 $as_echo_n "checking for $ac_header... " >&6; }
23586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23587 $as_echo_n "(cached) " >&6
23588 else
23589 eval "$as_ac_Header=\$ac_header_preproc"
23590 fi
23591 ac_res=`eval 'as_val=${'$as_ac_Header'}
23592 $as_echo "$as_val"'`
23593 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23594 $as_echo "$ac_res" >&6; }
23595
23596 fi
23597 if test `eval 'as_val=${'$as_ac_Header'}
23598 $as_echo "$as_val"'` = yes; then
23599 cat >>confdefs.h <<_ACEOF
23600 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23601 _ACEOF
23602
23603 else
23604
23605 for ac_header in kerberosIV/krb.h
23606 do
23607 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23609 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23610 $as_echo_n "checking for $ac_header... " >&6; }
23611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23612 $as_echo_n "(cached) " >&6
23613 fi
23614 ac_res=`eval 'as_val=${'$as_ac_Header'}
23615 $as_echo "$as_val"'`
23616 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23617 $as_echo "$ac_res" >&6; }
23618 else
23619 # Is the header compilable?
23620 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23621 $as_echo_n "checking $ac_header usability... " >&6; }
23622 cat >conftest.$ac_ext <<_ACEOF
23623 /* confdefs.h. */
23624 _ACEOF
23625 cat confdefs.h >>conftest.$ac_ext
23626 cat >>conftest.$ac_ext <<_ACEOF
23627 /* end confdefs.h. */
23628 $ac_includes_default
23629 #include <$ac_header>
23630 _ACEOF
23631 rm -f conftest.$ac_objext
23632 if { (ac_try="$ac_compile"
23633 case "(($ac_try" in
23634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23635 *) ac_try_echo=$ac_try;;
23636 esac
23637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23638 $as_echo "$ac_try_echo") >&5
23639 (eval "$ac_compile") 2>conftest.er1
23640 ac_status=$?
23641 grep -v '^ *+' conftest.er1 >conftest.err
23642 rm -f conftest.er1
23643 cat conftest.err >&5
23644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); } && {
23646 test -z "$ac_c_werror_flag" ||
23647 test ! -s conftest.err
23648 } && test -s conftest.$ac_objext; then
23649 ac_header_compiler=yes
23650 else
23651 $as_echo "$as_me: failed program was:" >&5
23652 sed 's/^/| /' conftest.$ac_ext >&5
23653
23654 ac_header_compiler=no
23655 fi
23656
23657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23658 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23659 $as_echo "$ac_header_compiler" >&6; }
23660
23661 # Is the header present?
23662 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23663 $as_echo_n "checking $ac_header presence... " >&6; }
23664 cat >conftest.$ac_ext <<_ACEOF
23665 /* confdefs.h. */
23666 _ACEOF
23667 cat confdefs.h >>conftest.$ac_ext
23668 cat >>conftest.$ac_ext <<_ACEOF
23669 /* end confdefs.h. */
23670 #include <$ac_header>
23671 _ACEOF
23672 if { (ac_try="$ac_cpp conftest.$ac_ext"
23673 case "(($ac_try" in
23674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23675 *) ac_try_echo=$ac_try;;
23676 esac
23677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23678 $as_echo "$ac_try_echo") >&5
23679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23680 ac_status=$?
23681 grep -v '^ *+' conftest.er1 >conftest.err
23682 rm -f conftest.er1
23683 cat conftest.err >&5
23684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); } >/dev/null && {
23686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23687 test ! -s conftest.err
23688 }; then
23689 ac_header_preproc=yes
23690 else
23691 $as_echo "$as_me: failed program was:" >&5
23692 sed 's/^/| /' conftest.$ac_ext >&5
23693
23694 ac_header_preproc=no
23695 fi
23696
23697 rm -f conftest.err conftest.$ac_ext
23698 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23699 $as_echo "$ac_header_preproc" >&6; }
23700
23701 # So? What about this header?
23702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23703 yes:no: )
23704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23705 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23707 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23708 ac_header_preproc=yes
23709 ;;
23710 no:yes:* )
23711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23712 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23714 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23716 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23717 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23718 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23719 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23720 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23721 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23722 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23723
23724 ;;
23725 esac
23726 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23727 $as_echo_n "checking for $ac_header... " >&6; }
23728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23729 $as_echo_n "(cached) " >&6
23730 else
23731 eval "$as_ac_Header=\$ac_header_preproc"
23732 fi
23733 ac_res=`eval 'as_val=${'$as_ac_Header'}
23734 $as_echo "$as_val"'`
23735 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23736 $as_echo "$ac_res" >&6; }
23737
23738 fi
23739 if test `eval 'as_val=${'$as_ac_Header'}
23740 $as_echo "$as_val"'` = yes; then
23741 cat >>confdefs.h <<_ACEOF
23742 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23743 _ACEOF
23744
23745 else
23746
23747 for ac_header in kerberos/krb.h
23748 do
23749 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23751 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23752 $as_echo_n "checking for $ac_header... " >&6; }
23753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23754 $as_echo_n "(cached) " >&6
23755 fi
23756 ac_res=`eval 'as_val=${'$as_ac_Header'}
23757 $as_echo "$as_val"'`
23758 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23759 $as_echo "$ac_res" >&6; }
23760 else
23761 # Is the header compilable?
23762 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23763 $as_echo_n "checking $ac_header usability... " >&6; }
23764 cat >conftest.$ac_ext <<_ACEOF
23765 /* confdefs.h. */
23766 _ACEOF
23767 cat confdefs.h >>conftest.$ac_ext
23768 cat >>conftest.$ac_ext <<_ACEOF
23769 /* end confdefs.h. */
23770 $ac_includes_default
23771 #include <$ac_header>
23772 _ACEOF
23773 rm -f conftest.$ac_objext
23774 if { (ac_try="$ac_compile"
23775 case "(($ac_try" in
23776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23777 *) ac_try_echo=$ac_try;;
23778 esac
23779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23780 $as_echo "$ac_try_echo") >&5
23781 (eval "$ac_compile") 2>conftest.er1
23782 ac_status=$?
23783 grep -v '^ *+' conftest.er1 >conftest.err
23784 rm -f conftest.er1
23785 cat conftest.err >&5
23786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787 (exit $ac_status); } && {
23788 test -z "$ac_c_werror_flag" ||
23789 test ! -s conftest.err
23790 } && test -s conftest.$ac_objext; then
23791 ac_header_compiler=yes
23792 else
23793 $as_echo "$as_me: failed program was:" >&5
23794 sed 's/^/| /' conftest.$ac_ext >&5
23795
23796 ac_header_compiler=no
23797 fi
23798
23799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23800 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23801 $as_echo "$ac_header_compiler" >&6; }
23802
23803 # Is the header present?
23804 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23805 $as_echo_n "checking $ac_header presence... " >&6; }
23806 cat >conftest.$ac_ext <<_ACEOF
23807 /* confdefs.h. */
23808 _ACEOF
23809 cat confdefs.h >>conftest.$ac_ext
23810 cat >>conftest.$ac_ext <<_ACEOF
23811 /* end confdefs.h. */
23812 #include <$ac_header>
23813 _ACEOF
23814 if { (ac_try="$ac_cpp conftest.$ac_ext"
23815 case "(($ac_try" in
23816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23817 *) ac_try_echo=$ac_try;;
23818 esac
23819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23820 $as_echo "$ac_try_echo") >&5
23821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23822 ac_status=$?
23823 grep -v '^ *+' conftest.er1 >conftest.err
23824 rm -f conftest.er1
23825 cat conftest.err >&5
23826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23827 (exit $ac_status); } >/dev/null && {
23828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23829 test ! -s conftest.err
23830 }; then
23831 ac_header_preproc=yes
23832 else
23833 $as_echo "$as_me: failed program was:" >&5
23834 sed 's/^/| /' conftest.$ac_ext >&5
23835
23836 ac_header_preproc=no
23837 fi
23838
23839 rm -f conftest.err conftest.$ac_ext
23840 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23841 $as_echo "$ac_header_preproc" >&6; }
23842
23843 # So? What about this header?
23844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23845 yes:no: )
23846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23847 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23849 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23850 ac_header_preproc=yes
23851 ;;
23852 no:yes:* )
23853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23854 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23856 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23858 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23860 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23862 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23864 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23865
23866 ;;
23867 esac
23868 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23869 $as_echo_n "checking for $ac_header... " >&6; }
23870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23871 $as_echo_n "(cached) " >&6
23872 else
23873 eval "$as_ac_Header=\$ac_header_preproc"
23874 fi
23875 ac_res=`eval 'as_val=${'$as_ac_Header'}
23876 $as_echo "$as_val"'`
23877 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23878 $as_echo "$ac_res" >&6; }
23879
23880 fi
23881 if test `eval 'as_val=${'$as_ac_Header'}
23882 $as_echo "$as_val"'` = yes; then
23883 cat >>confdefs.h <<_ACEOF
23884 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23885 _ACEOF
23886
23887 fi
23888
23889 done
23890
23891 fi
23892
23893 done
23894
23895 fi
23896
23897 done
23898
23899 fi
23900
23901 for ac_header in com_err.h
23902 do
23903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23905 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23906 $as_echo_n "checking for $ac_header... " >&6; }
23907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23908 $as_echo_n "(cached) " >&6
23909 fi
23910 ac_res=`eval 'as_val=${'$as_ac_Header'}
23911 $as_echo "$as_val"'`
23912 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23913 $as_echo "$ac_res" >&6; }
23914 else
23915 # Is the header compilable?
23916 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23917 $as_echo_n "checking $ac_header usability... " >&6; }
23918 cat >conftest.$ac_ext <<_ACEOF
23919 /* confdefs.h. */
23920 _ACEOF
23921 cat confdefs.h >>conftest.$ac_ext
23922 cat >>conftest.$ac_ext <<_ACEOF
23923 /* end confdefs.h. */
23924 $ac_includes_default
23925 #include <$ac_header>
23926 _ACEOF
23927 rm -f conftest.$ac_objext
23928 if { (ac_try="$ac_compile"
23929 case "(($ac_try" in
23930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23931 *) ac_try_echo=$ac_try;;
23932 esac
23933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23934 $as_echo "$ac_try_echo") >&5
23935 (eval "$ac_compile") 2>conftest.er1
23936 ac_status=$?
23937 grep -v '^ *+' conftest.er1 >conftest.err
23938 rm -f conftest.er1
23939 cat conftest.err >&5
23940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941 (exit $ac_status); } && {
23942 test -z "$ac_c_werror_flag" ||
23943 test ! -s conftest.err
23944 } && test -s conftest.$ac_objext; then
23945 ac_header_compiler=yes
23946 else
23947 $as_echo "$as_me: failed program was:" >&5
23948 sed 's/^/| /' conftest.$ac_ext >&5
23949
23950 ac_header_compiler=no
23951 fi
23952
23953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23954 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23955 $as_echo "$ac_header_compiler" >&6; }
23956
23957 # Is the header present?
23958 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23959 $as_echo_n "checking $ac_header presence... " >&6; }
23960 cat >conftest.$ac_ext <<_ACEOF
23961 /* confdefs.h. */
23962 _ACEOF
23963 cat confdefs.h >>conftest.$ac_ext
23964 cat >>conftest.$ac_ext <<_ACEOF
23965 /* end confdefs.h. */
23966 #include <$ac_header>
23967 _ACEOF
23968 if { (ac_try="$ac_cpp conftest.$ac_ext"
23969 case "(($ac_try" in
23970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23971 *) ac_try_echo=$ac_try;;
23972 esac
23973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23974 $as_echo "$ac_try_echo") >&5
23975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23976 ac_status=$?
23977 grep -v '^ *+' conftest.er1 >conftest.err
23978 rm -f conftest.er1
23979 cat conftest.err >&5
23980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981 (exit $ac_status); } >/dev/null && {
23982 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23983 test ! -s conftest.err
23984 }; then
23985 ac_header_preproc=yes
23986 else
23987 $as_echo "$as_me: failed program was:" >&5
23988 sed 's/^/| /' conftest.$ac_ext >&5
23989
23990 ac_header_preproc=no
23991 fi
23992
23993 rm -f conftest.err conftest.$ac_ext
23994 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23995 $as_echo "$ac_header_preproc" >&6; }
23996
23997 # So? What about this header?
23998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23999 yes:no: )
24000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24001 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24003 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24004 ac_header_preproc=yes
24005 ;;
24006 no:yes:* )
24007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24008 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24010 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24012 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24014 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24016 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24018 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24019
24020 ;;
24021 esac
24022 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24023 $as_echo_n "checking for $ac_header... " >&6; }
24024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24025 $as_echo_n "(cached) " >&6
24026 else
24027 eval "$as_ac_Header=\$ac_header_preproc"
24028 fi
24029 ac_res=`eval 'as_val=${'$as_ac_Header'}
24030 $as_echo "$as_val"'`
24031 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24032 $as_echo "$ac_res" >&6; }
24033
24034 fi
24035 if test `eval 'as_val=${'$as_ac_Header'}
24036 $as_echo "$as_val"'` = yes; then
24037 cat >>confdefs.h <<_ACEOF
24038 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24039 _ACEOF
24040
24041 fi
24042
24043 done
24044
24045 fi
24046
24047
24048
24049
24050
24051
24052
24053 # Solaris requires -lintl if you want strerror (which calls dgettext)
24054 # to return localized messages.
24055
24056 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
24057 $as_echo_n "checking for dgettext in -lintl... " >&6; }
24058 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24059 $as_echo_n "(cached) " >&6
24060 else
24061 ac_check_lib_save_LIBS=$LIBS
24062 LIBS="-lintl $LIBS"
24063 cat >conftest.$ac_ext <<_ACEOF
24064 /* confdefs.h. */
24065 _ACEOF
24066 cat confdefs.h >>conftest.$ac_ext
24067 cat >>conftest.$ac_ext <<_ACEOF
24068 /* end confdefs.h. */
24069
24070 /* Override any GCC internal prototype to avoid an error.
24071 Use char because int might match the return type of a GCC
24072 builtin and then its argument prototype would still apply. */
24073 #ifdef __cplusplus
24074 extern "C"
24075 #endif
24076 char dgettext ();
24077 int
24078 main ()
24079 {
24080 return dgettext ();
24081 ;
24082 return 0;
24083 }
24084 _ACEOF
24085 rm -f conftest.$ac_objext conftest$ac_exeext
24086 if { (ac_try="$ac_link"
24087 case "(($ac_try" in
24088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24089 *) ac_try_echo=$ac_try;;
24090 esac
24091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24092 $as_echo "$ac_try_echo") >&5
24093 (eval "$ac_link") 2>conftest.er1
24094 ac_status=$?
24095 grep -v '^ *+' conftest.er1 >conftest.err
24096 rm -f conftest.er1
24097 cat conftest.err >&5
24098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099 (exit $ac_status); } && {
24100 test -z "$ac_c_werror_flag" ||
24101 test ! -s conftest.err
24102 } && test -s conftest$ac_exeext && {
24103 test "$cross_compiling" = yes ||
24104 $as_test_x conftest$ac_exeext
24105 }; then
24106 ac_cv_lib_intl_dgettext=yes
24107 else
24108 $as_echo "$as_me: failed program was:" >&5
24109 sed 's/^/| /' conftest.$ac_ext >&5
24110
24111 ac_cv_lib_intl_dgettext=no
24112 fi
24113
24114 rm -rf conftest.dSYM
24115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24116 conftest$ac_exeext conftest.$ac_ext
24117 LIBS=$ac_check_lib_save_LIBS
24118 fi
24119 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
24120 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24121 if test $ac_cv_lib_intl_dgettext = yes; then
24122 cat >>confdefs.h <<_ACEOF
24123 #define HAVE_LIBINTL 1
24124 _ACEOF
24125
24126 LIBS="-lintl $LIBS"
24127
24128 fi
24129
24130
24131 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
24132 $as_echo_n "checking whether localtime caches TZ... " >&6; }
24133 if test "${emacs_cv_localtime_cache+set}" = set; then
24134 $as_echo_n "(cached) " >&6
24135 else
24136 if test x$ac_cv_func_tzset = xyes; then
24137 if test "$cross_compiling" = yes; then
24138 # If we have tzset, assume the worst when cross-compiling.
24139 emacs_cv_localtime_cache=yes
24140 else
24141 cat >conftest.$ac_ext <<_ACEOF
24142 /* confdefs.h. */
24143 _ACEOF
24144 cat confdefs.h >>conftest.$ac_ext
24145 cat >>conftest.$ac_ext <<_ACEOF
24146 /* end confdefs.h. */
24147 #include <time.h>
24148 extern char **environ;
24149 unset_TZ ()
24150 {
24151 char **from, **to;
24152 for (to = from = environ; (*to = *from); from++)
24153 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24154 to++;
24155 }
24156 char TZ_GMT0[] = "TZ=GMT0";
24157 char TZ_PST8[] = "TZ=PST8";
24158 main()
24159 {
24160 time_t now = time ((time_t *) 0);
24161 int hour_GMT0, hour_unset;
24162 if (putenv (TZ_GMT0) != 0)
24163 exit (1);
24164 hour_GMT0 = localtime (&now)->tm_hour;
24165 unset_TZ ();
24166 hour_unset = localtime (&now)->tm_hour;
24167 if (putenv (TZ_PST8) != 0)
24168 exit (1);
24169 if (localtime (&now)->tm_hour == hour_GMT0)
24170 exit (1);
24171 unset_TZ ();
24172 if (localtime (&now)->tm_hour != hour_unset)
24173 exit (1);
24174 exit (0);
24175 }
24176 _ACEOF
24177 rm -f conftest$ac_exeext
24178 if { (ac_try="$ac_link"
24179 case "(($ac_try" in
24180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24181 *) ac_try_echo=$ac_try;;
24182 esac
24183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24184 $as_echo "$ac_try_echo") >&5
24185 (eval "$ac_link") 2>&5
24186 ac_status=$?
24187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24189 { (case "(($ac_try" in
24190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24191 *) ac_try_echo=$ac_try;;
24192 esac
24193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24194 $as_echo "$ac_try_echo") >&5
24195 (eval "$ac_try") 2>&5
24196 ac_status=$?
24197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24198 (exit $ac_status); }; }; then
24199 emacs_cv_localtime_cache=no
24200 else
24201 $as_echo "$as_me: program exited with status $ac_status" >&5
24202 $as_echo "$as_me: failed program was:" >&5
24203 sed 's/^/| /' conftest.$ac_ext >&5
24204
24205 ( exit $ac_status )
24206 emacs_cv_localtime_cache=yes
24207 fi
24208 rm -rf conftest.dSYM
24209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24210 fi
24211
24212
24213 else
24214 # If we lack tzset, report that localtime does not cache TZ,
24215 # since we can't invalidate the cache if we don't have tzset.
24216 emacs_cv_localtime_cache=no
24217 fi
24218 fi
24219 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
24220 $as_echo "$emacs_cv_localtime_cache" >&6; }
24221 if test $emacs_cv_localtime_cache = yes; then
24222
24223 cat >>confdefs.h <<\_ACEOF
24224 #define LOCALTIME_CACHE 1
24225 _ACEOF
24226
24227 fi
24228
24229 if test "x$HAVE_TIMEVAL" = xyes; then
24230
24231 for ac_func in gettimeofday
24232 do
24233 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24234 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24235 $as_echo_n "checking for $ac_func... " >&6; }
24236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24237 $as_echo_n "(cached) " >&6
24238 else
24239 cat >conftest.$ac_ext <<_ACEOF
24240 /* confdefs.h. */
24241 _ACEOF
24242 cat confdefs.h >>conftest.$ac_ext
24243 cat >>conftest.$ac_ext <<_ACEOF
24244 /* end confdefs.h. */
24245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24247 #define $ac_func innocuous_$ac_func
24248
24249 /* System header to define __stub macros and hopefully few prototypes,
24250 which can conflict with char $ac_func (); below.
24251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24252 <limits.h> exists even on freestanding compilers. */
24253
24254 #ifdef __STDC__
24255 # include <limits.h>
24256 #else
24257 # include <assert.h>
24258 #endif
24259
24260 #undef $ac_func
24261
24262 /* Override any GCC internal prototype to avoid an error.
24263 Use char because int might match the return type of a GCC
24264 builtin and then its argument prototype would still apply. */
24265 #ifdef __cplusplus
24266 extern "C"
24267 #endif
24268 char $ac_func ();
24269 /* The GNU C library defines this for functions which it implements
24270 to always fail with ENOSYS. Some functions are actually named
24271 something starting with __ and the normal name is an alias. */
24272 #if defined __stub_$ac_func || defined __stub___$ac_func
24273 choke me
24274 #endif
24275
24276 int
24277 main ()
24278 {
24279 return $ac_func ();
24280 ;
24281 return 0;
24282 }
24283 _ACEOF
24284 rm -f conftest.$ac_objext conftest$ac_exeext
24285 if { (ac_try="$ac_link"
24286 case "(($ac_try" in
24287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24288 *) ac_try_echo=$ac_try;;
24289 esac
24290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24291 $as_echo "$ac_try_echo") >&5
24292 (eval "$ac_link") 2>conftest.er1
24293 ac_status=$?
24294 grep -v '^ *+' conftest.er1 >conftest.err
24295 rm -f conftest.er1
24296 cat conftest.err >&5
24297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); } && {
24299 test -z "$ac_c_werror_flag" ||
24300 test ! -s conftest.err
24301 } && test -s conftest$ac_exeext && {
24302 test "$cross_compiling" = yes ||
24303 $as_test_x conftest$ac_exeext
24304 }; then
24305 eval "$as_ac_var=yes"
24306 else
24307 $as_echo "$as_me: failed program was:" >&5
24308 sed 's/^/| /' conftest.$ac_ext >&5
24309
24310 eval "$as_ac_var=no"
24311 fi
24312
24313 rm -rf conftest.dSYM
24314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24315 conftest$ac_exeext conftest.$ac_ext
24316 fi
24317 ac_res=`eval 'as_val=${'$as_ac_var'}
24318 $as_echo "$as_val"'`
24319 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24320 $as_echo "$ac_res" >&6; }
24321 if test `eval 'as_val=${'$as_ac_var'}
24322 $as_echo "$as_val"'` = yes; then
24323 cat >>confdefs.h <<_ACEOF
24324 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24325 _ACEOF
24326
24327 fi
24328 done
24329
24330 if test $ac_cv_func_gettimeofday = yes; then
24331 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24332 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24333 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24334 $as_echo_n "(cached) " >&6
24335 else
24336 cat >conftest.$ac_ext <<_ACEOF
24337 /* confdefs.h. */
24338 _ACEOF
24339 cat confdefs.h >>conftest.$ac_ext
24340 cat >>conftest.$ac_ext <<_ACEOF
24341 /* end confdefs.h. */
24342
24343 #ifdef TIME_WITH_SYS_TIME
24344 #include <sys/time.h>
24345 #include <time.h>
24346 #else
24347 #ifdef HAVE_SYS_TIME_H
24348 #include <sys/time.h>
24349 #else
24350 #include <time.h>
24351 #endif
24352 #endif
24353 int
24354 main ()
24355 {
24356 struct timeval time;
24357 gettimeofday (&time, 0);
24358 ;
24359 return 0;
24360 }
24361 _ACEOF
24362 rm -f conftest.$ac_objext
24363 if { (ac_try="$ac_compile"
24364 case "(($ac_try" in
24365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24366 *) ac_try_echo=$ac_try;;
24367 esac
24368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24369 $as_echo "$ac_try_echo") >&5
24370 (eval "$ac_compile") 2>conftest.er1
24371 ac_status=$?
24372 grep -v '^ *+' conftest.er1 >conftest.err
24373 rm -f conftest.er1
24374 cat conftest.err >&5
24375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376 (exit $ac_status); } && {
24377 test -z "$ac_c_werror_flag" ||
24378 test ! -s conftest.err
24379 } && test -s conftest.$ac_objext; then
24380 emacs_cv_gettimeofday_two_arguments=yes
24381 else
24382 $as_echo "$as_me: failed program was:" >&5
24383 sed 's/^/| /' conftest.$ac_ext >&5
24384
24385 emacs_cv_gettimeofday_two_arguments=no
24386 fi
24387
24388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24389 fi
24390 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24391 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24392 if test $emacs_cv_gettimeofday_two_arguments = no; then
24393
24394 cat >>confdefs.h <<\_ACEOF
24395 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24396 _ACEOF
24397
24398 fi
24399 fi
24400 fi
24401
24402 ok_so_far=yes
24403 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24404 $as_echo_n "checking for socket... " >&6; }
24405 if test "${ac_cv_func_socket+set}" = set; then
24406 $as_echo_n "(cached) " >&6
24407 else
24408 cat >conftest.$ac_ext <<_ACEOF
24409 /* confdefs.h. */
24410 _ACEOF
24411 cat confdefs.h >>conftest.$ac_ext
24412 cat >>conftest.$ac_ext <<_ACEOF
24413 /* end confdefs.h. */
24414 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24416 #define socket innocuous_socket
24417
24418 /* System header to define __stub macros and hopefully few prototypes,
24419 which can conflict with char socket (); below.
24420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24421 <limits.h> exists even on freestanding compilers. */
24422
24423 #ifdef __STDC__
24424 # include <limits.h>
24425 #else
24426 # include <assert.h>
24427 #endif
24428
24429 #undef socket
24430
24431 /* Override any GCC internal prototype to avoid an error.
24432 Use char because int might match the return type of a GCC
24433 builtin and then its argument prototype would still apply. */
24434 #ifdef __cplusplus
24435 extern "C"
24436 #endif
24437 char socket ();
24438 /* The GNU C library defines this for functions which it implements
24439 to always fail with ENOSYS. Some functions are actually named
24440 something starting with __ and the normal name is an alias. */
24441 #if defined __stub_socket || defined __stub___socket
24442 choke me
24443 #endif
24444
24445 int
24446 main ()
24447 {
24448 return socket ();
24449 ;
24450 return 0;
24451 }
24452 _ACEOF
24453 rm -f conftest.$ac_objext conftest$ac_exeext
24454 if { (ac_try="$ac_link"
24455 case "(($ac_try" in
24456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24457 *) ac_try_echo=$ac_try;;
24458 esac
24459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24460 $as_echo "$ac_try_echo") >&5
24461 (eval "$ac_link") 2>conftest.er1
24462 ac_status=$?
24463 grep -v '^ *+' conftest.er1 >conftest.err
24464 rm -f conftest.er1
24465 cat conftest.err >&5
24466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467 (exit $ac_status); } && {
24468 test -z "$ac_c_werror_flag" ||
24469 test ! -s conftest.err
24470 } && test -s conftest$ac_exeext && {
24471 test "$cross_compiling" = yes ||
24472 $as_test_x conftest$ac_exeext
24473 }; then
24474 ac_cv_func_socket=yes
24475 else
24476 $as_echo "$as_me: failed program was:" >&5
24477 sed 's/^/| /' conftest.$ac_ext >&5
24478
24479 ac_cv_func_socket=no
24480 fi
24481
24482 rm -rf conftest.dSYM
24483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24484 conftest$ac_exeext conftest.$ac_ext
24485 fi
24486 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24487 $as_echo "$ac_cv_func_socket" >&6; }
24488 if test $ac_cv_func_socket = yes; then
24489 :
24490 else
24491 ok_so_far=no
24492 fi
24493
24494 if test $ok_so_far = yes; then
24495 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24496 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24497 $as_echo_n "checking for netinet/in.h... " >&6; }
24498 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24499 $as_echo_n "(cached) " >&6
24500 fi
24501 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24502 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24503 else
24504 # Is the header compilable?
24505 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24506 $as_echo_n "checking netinet/in.h usability... " >&6; }
24507 cat >conftest.$ac_ext <<_ACEOF
24508 /* confdefs.h. */
24509 _ACEOF
24510 cat confdefs.h >>conftest.$ac_ext
24511 cat >>conftest.$ac_ext <<_ACEOF
24512 /* end confdefs.h. */
24513 $ac_includes_default
24514 #include <netinet/in.h>
24515 _ACEOF
24516 rm -f conftest.$ac_objext
24517 if { (ac_try="$ac_compile"
24518 case "(($ac_try" in
24519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24520 *) ac_try_echo=$ac_try;;
24521 esac
24522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24523 $as_echo "$ac_try_echo") >&5
24524 (eval "$ac_compile") 2>conftest.er1
24525 ac_status=$?
24526 grep -v '^ *+' conftest.er1 >conftest.err
24527 rm -f conftest.er1
24528 cat conftest.err >&5
24529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530 (exit $ac_status); } && {
24531 test -z "$ac_c_werror_flag" ||
24532 test ! -s conftest.err
24533 } && test -s conftest.$ac_objext; then
24534 ac_header_compiler=yes
24535 else
24536 $as_echo "$as_me: failed program was:" >&5
24537 sed 's/^/| /' conftest.$ac_ext >&5
24538
24539 ac_header_compiler=no
24540 fi
24541
24542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24543 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24544 $as_echo "$ac_header_compiler" >&6; }
24545
24546 # Is the header present?
24547 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24548 $as_echo_n "checking netinet/in.h presence... " >&6; }
24549 cat >conftest.$ac_ext <<_ACEOF
24550 /* confdefs.h. */
24551 _ACEOF
24552 cat confdefs.h >>conftest.$ac_ext
24553 cat >>conftest.$ac_ext <<_ACEOF
24554 /* end confdefs.h. */
24555 #include <netinet/in.h>
24556 _ACEOF
24557 if { (ac_try="$ac_cpp conftest.$ac_ext"
24558 case "(($ac_try" in
24559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24560 *) ac_try_echo=$ac_try;;
24561 esac
24562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24563 $as_echo "$ac_try_echo") >&5
24564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24565 ac_status=$?
24566 grep -v '^ *+' conftest.er1 >conftest.err
24567 rm -f conftest.er1
24568 cat conftest.err >&5
24569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570 (exit $ac_status); } >/dev/null && {
24571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24572 test ! -s conftest.err
24573 }; then
24574 ac_header_preproc=yes
24575 else
24576 $as_echo "$as_me: failed program was:" >&5
24577 sed 's/^/| /' conftest.$ac_ext >&5
24578
24579 ac_header_preproc=no
24580 fi
24581
24582 rm -f conftest.err conftest.$ac_ext
24583 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24584 $as_echo "$ac_header_preproc" >&6; }
24585
24586 # So? What about this header?
24587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24588 yes:no: )
24589 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24590 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24591 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24592 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24593 ac_header_preproc=yes
24594 ;;
24595 no:yes:* )
24596 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24597 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24598 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24599 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24600 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24601 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24602 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24603 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24604 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24605 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24606 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24607 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24608
24609 ;;
24610 esac
24611 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24612 $as_echo_n "checking for netinet/in.h... " >&6; }
24613 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24614 $as_echo_n "(cached) " >&6
24615 else
24616 ac_cv_header_netinet_in_h=$ac_header_preproc
24617 fi
24618 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24619 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24620
24621 fi
24622 if test $ac_cv_header_netinet_in_h = yes; then
24623 :
24624 else
24625 ok_so_far=no
24626 fi
24627
24628
24629 fi
24630 if test $ok_so_far = yes; then
24631 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24632 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24633 $as_echo_n "checking for arpa/inet.h... " >&6; }
24634 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24635 $as_echo_n "(cached) " >&6
24636 fi
24637 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24638 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24639 else
24640 # Is the header compilable?
24641 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24642 $as_echo_n "checking arpa/inet.h usability... " >&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 $ac_includes_default
24650 #include <arpa/inet.h>
24651 _ACEOF
24652 rm -f conftest.$ac_objext
24653 if { (ac_try="$ac_compile"
24654 case "(($ac_try" in
24655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24656 *) ac_try_echo=$ac_try;;
24657 esac
24658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24659 $as_echo "$ac_try_echo") >&5
24660 (eval "$ac_compile") 2>conftest.er1
24661 ac_status=$?
24662 grep -v '^ *+' conftest.er1 >conftest.err
24663 rm -f conftest.er1
24664 cat conftest.err >&5
24665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24666 (exit $ac_status); } && {
24667 test -z "$ac_c_werror_flag" ||
24668 test ! -s conftest.err
24669 } && test -s conftest.$ac_objext; then
24670 ac_header_compiler=yes
24671 else
24672 $as_echo "$as_me: failed program was:" >&5
24673 sed 's/^/| /' conftest.$ac_ext >&5
24674
24675 ac_header_compiler=no
24676 fi
24677
24678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24679 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24680 $as_echo "$ac_header_compiler" >&6; }
24681
24682 # Is the header present?
24683 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24684 $as_echo_n "checking arpa/inet.h presence... " >&6; }
24685 cat >conftest.$ac_ext <<_ACEOF
24686 /* confdefs.h. */
24687 _ACEOF
24688 cat confdefs.h >>conftest.$ac_ext
24689 cat >>conftest.$ac_ext <<_ACEOF
24690 /* end confdefs.h. */
24691 #include <arpa/inet.h>
24692 _ACEOF
24693 if { (ac_try="$ac_cpp conftest.$ac_ext"
24694 case "(($ac_try" in
24695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24696 *) ac_try_echo=$ac_try;;
24697 esac
24698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24699 $as_echo "$ac_try_echo") >&5
24700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24701 ac_status=$?
24702 grep -v '^ *+' conftest.er1 >conftest.err
24703 rm -f conftest.er1
24704 cat conftest.err >&5
24705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24706 (exit $ac_status); } >/dev/null && {
24707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24708 test ! -s conftest.err
24709 }; then
24710 ac_header_preproc=yes
24711 else
24712 $as_echo "$as_me: failed program was:" >&5
24713 sed 's/^/| /' conftest.$ac_ext >&5
24714
24715 ac_header_preproc=no
24716 fi
24717
24718 rm -f conftest.err conftest.$ac_ext
24719 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24720 $as_echo "$ac_header_preproc" >&6; }
24721
24722 # So? What about this header?
24723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24724 yes:no: )
24725 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24726 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24727 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24728 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24729 ac_header_preproc=yes
24730 ;;
24731 no:yes:* )
24732 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24733 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24734 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24735 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24736 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24737 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24738 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24739 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24740 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24741 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24742 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24743 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24744
24745 ;;
24746 esac
24747 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24748 $as_echo_n "checking for arpa/inet.h... " >&6; }
24749 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24750 $as_echo_n "(cached) " >&6
24751 else
24752 ac_cv_header_arpa_inet_h=$ac_header_preproc
24753 fi
24754 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24755 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24756
24757 fi
24758 if test $ac_cv_header_arpa_inet_h = yes; then
24759 :
24760 else
24761 ok_so_far=no
24762 fi
24763
24764
24765 fi
24766 if test $ok_so_far = yes; then
24767
24768 cat >>confdefs.h <<\_ACEOF
24769 #define HAVE_INET_SOCKETS 1
24770 _ACEOF
24771
24772 fi
24773
24774
24775 for ac_header in sys/ioctl.h
24776 do
24777 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24779 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24780 $as_echo_n "checking for $ac_header... " >&6; }
24781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24782 $as_echo_n "(cached) " >&6
24783 fi
24784 ac_res=`eval 'as_val=${'$as_ac_Header'}
24785 $as_echo "$as_val"'`
24786 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24787 $as_echo "$ac_res" >&6; }
24788 else
24789 # Is the header compilable?
24790 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24791 $as_echo_n "checking $ac_header usability... " >&6; }
24792 cat >conftest.$ac_ext <<_ACEOF
24793 /* confdefs.h. */
24794 _ACEOF
24795 cat confdefs.h >>conftest.$ac_ext
24796 cat >>conftest.$ac_ext <<_ACEOF
24797 /* end confdefs.h. */
24798 $ac_includes_default
24799 #include <$ac_header>
24800 _ACEOF
24801 rm -f conftest.$ac_objext
24802 if { (ac_try="$ac_compile"
24803 case "(($ac_try" in
24804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24805 *) ac_try_echo=$ac_try;;
24806 esac
24807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24808 $as_echo "$ac_try_echo") >&5
24809 (eval "$ac_compile") 2>conftest.er1
24810 ac_status=$?
24811 grep -v '^ *+' conftest.er1 >conftest.err
24812 rm -f conftest.er1
24813 cat conftest.err >&5
24814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); } && {
24816 test -z "$ac_c_werror_flag" ||
24817 test ! -s conftest.err
24818 } && test -s conftest.$ac_objext; then
24819 ac_header_compiler=yes
24820 else
24821 $as_echo "$as_me: failed program was:" >&5
24822 sed 's/^/| /' conftest.$ac_ext >&5
24823
24824 ac_header_compiler=no
24825 fi
24826
24827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24828 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24829 $as_echo "$ac_header_compiler" >&6; }
24830
24831 # Is the header present?
24832 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24833 $as_echo_n "checking $ac_header presence... " >&6; }
24834 cat >conftest.$ac_ext <<_ACEOF
24835 /* confdefs.h. */
24836 _ACEOF
24837 cat confdefs.h >>conftest.$ac_ext
24838 cat >>conftest.$ac_ext <<_ACEOF
24839 /* end confdefs.h. */
24840 #include <$ac_header>
24841 _ACEOF
24842 if { (ac_try="$ac_cpp conftest.$ac_ext"
24843 case "(($ac_try" in
24844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24845 *) ac_try_echo=$ac_try;;
24846 esac
24847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24848 $as_echo "$ac_try_echo") >&5
24849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24850 ac_status=$?
24851 grep -v '^ *+' conftest.er1 >conftest.err
24852 rm -f conftest.er1
24853 cat conftest.err >&5
24854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24855 (exit $ac_status); } >/dev/null && {
24856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24857 test ! -s conftest.err
24858 }; then
24859 ac_header_preproc=yes
24860 else
24861 $as_echo "$as_me: failed program was:" >&5
24862 sed 's/^/| /' conftest.$ac_ext >&5
24863
24864 ac_header_preproc=no
24865 fi
24866
24867 rm -f conftest.err conftest.$ac_ext
24868 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24869 $as_echo "$ac_header_preproc" >&6; }
24870
24871 # So? What about this header?
24872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24873 yes:no: )
24874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24875 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24877 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24878 ac_header_preproc=yes
24879 ;;
24880 no:yes:* )
24881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24882 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24884 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24886 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24887 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24888 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24890 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24892 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24893
24894 ;;
24895 esac
24896 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24897 $as_echo_n "checking for $ac_header... " >&6; }
24898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24899 $as_echo_n "(cached) " >&6
24900 else
24901 eval "$as_ac_Header=\$ac_header_preproc"
24902 fi
24903 ac_res=`eval 'as_val=${'$as_ac_Header'}
24904 $as_echo "$as_val"'`
24905 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24906 $as_echo "$ac_res" >&6; }
24907
24908 fi
24909 if test `eval 'as_val=${'$as_ac_Header'}
24910 $as_echo "$as_val"'` = yes; then
24911 cat >>confdefs.h <<_ACEOF
24912 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24913 _ACEOF
24914
24915 fi
24916
24917 done
24918
24919
24920 if test -f /usr/lpp/X11/bin/smt.exp; then
24921
24922 cat >>confdefs.h <<\_ACEOF
24923 #define HAVE_AIX_SMT_EXP 1
24924 _ACEOF
24925
24926 fi
24927
24928 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24929 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24930 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24931 { $as_echo "$as_me:$LINENO: result: yes" >&5
24932 $as_echo "yes" >&6; }
24933
24934 cat >>confdefs.h <<\_ACEOF
24935 #define HAVE_DEV_PTMX 1
24936 _ACEOF
24937
24938 else
24939 { $as_echo "$as_me:$LINENO: result: no" >&5
24940 $as_echo "no" >&6; }
24941 fi
24942
24943 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24944 $as_echo_n "checking for pid_t... " >&6; }
24945 if test "${ac_cv_type_pid_t+set}" = set; then
24946 $as_echo_n "(cached) " >&6
24947 else
24948 ac_cv_type_pid_t=no
24949 cat >conftest.$ac_ext <<_ACEOF
24950 /* confdefs.h. */
24951 _ACEOF
24952 cat confdefs.h >>conftest.$ac_ext
24953 cat >>conftest.$ac_ext <<_ACEOF
24954 /* end confdefs.h. */
24955 $ac_includes_default
24956 int
24957 main ()
24958 {
24959 if (sizeof (pid_t))
24960 return 0;
24961 ;
24962 return 0;
24963 }
24964 _ACEOF
24965 rm -f conftest.$ac_objext
24966 if { (ac_try="$ac_compile"
24967 case "(($ac_try" in
24968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24969 *) ac_try_echo=$ac_try;;
24970 esac
24971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24972 $as_echo "$ac_try_echo") >&5
24973 (eval "$ac_compile") 2>conftest.er1
24974 ac_status=$?
24975 grep -v '^ *+' conftest.er1 >conftest.err
24976 rm -f conftest.er1
24977 cat conftest.err >&5
24978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979 (exit $ac_status); } && {
24980 test -z "$ac_c_werror_flag" ||
24981 test ! -s conftest.err
24982 } && test -s conftest.$ac_objext; then
24983 cat >conftest.$ac_ext <<_ACEOF
24984 /* confdefs.h. */
24985 _ACEOF
24986 cat confdefs.h >>conftest.$ac_ext
24987 cat >>conftest.$ac_ext <<_ACEOF
24988 /* end confdefs.h. */
24989 $ac_includes_default
24990 int
24991 main ()
24992 {
24993 if (sizeof ((pid_t)))
24994 return 0;
24995 ;
24996 return 0;
24997 }
24998 _ACEOF
24999 rm -f conftest.$ac_objext
25000 if { (ac_try="$ac_compile"
25001 case "(($ac_try" in
25002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25003 *) ac_try_echo=$ac_try;;
25004 esac
25005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25006 $as_echo "$ac_try_echo") >&5
25007 (eval "$ac_compile") 2>conftest.er1
25008 ac_status=$?
25009 grep -v '^ *+' conftest.er1 >conftest.err
25010 rm -f conftest.er1
25011 cat conftest.err >&5
25012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013 (exit $ac_status); } && {
25014 test -z "$ac_c_werror_flag" ||
25015 test ! -s conftest.err
25016 } && test -s conftest.$ac_objext; then
25017 :
25018 else
25019 $as_echo "$as_me: failed program was:" >&5
25020 sed 's/^/| /' conftest.$ac_ext >&5
25021
25022 ac_cv_type_pid_t=yes
25023 fi
25024
25025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25026 else
25027 $as_echo "$as_me: failed program was:" >&5
25028 sed 's/^/| /' conftest.$ac_ext >&5
25029
25030
25031 fi
25032
25033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25034 fi
25035 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25036 $as_echo "$ac_cv_type_pid_t" >&6; }
25037 if test $ac_cv_type_pid_t = yes; then
25038 :
25039 else
25040
25041 cat >>confdefs.h <<_ACEOF
25042 #define pid_t int
25043 _ACEOF
25044
25045 fi
25046
25047
25048 for ac_header in vfork.h
25049 do
25050 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25052 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25053 $as_echo_n "checking for $ac_header... " >&6; }
25054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25055 $as_echo_n "(cached) " >&6
25056 fi
25057 ac_res=`eval 'as_val=${'$as_ac_Header'}
25058 $as_echo "$as_val"'`
25059 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25060 $as_echo "$ac_res" >&6; }
25061 else
25062 # Is the header compilable?
25063 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25064 $as_echo_n "checking $ac_header usability... " >&6; }
25065 cat >conftest.$ac_ext <<_ACEOF
25066 /* confdefs.h. */
25067 _ACEOF
25068 cat confdefs.h >>conftest.$ac_ext
25069 cat >>conftest.$ac_ext <<_ACEOF
25070 /* end confdefs.h. */
25071 $ac_includes_default
25072 #include <$ac_header>
25073 _ACEOF
25074 rm -f conftest.$ac_objext
25075 if { (ac_try="$ac_compile"
25076 case "(($ac_try" in
25077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25078 *) ac_try_echo=$ac_try;;
25079 esac
25080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25081 $as_echo "$ac_try_echo") >&5
25082 (eval "$ac_compile") 2>conftest.er1
25083 ac_status=$?
25084 grep -v '^ *+' conftest.er1 >conftest.err
25085 rm -f conftest.er1
25086 cat conftest.err >&5
25087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); } && {
25089 test -z "$ac_c_werror_flag" ||
25090 test ! -s conftest.err
25091 } && test -s conftest.$ac_objext; then
25092 ac_header_compiler=yes
25093 else
25094 $as_echo "$as_me: failed program was:" >&5
25095 sed 's/^/| /' conftest.$ac_ext >&5
25096
25097 ac_header_compiler=no
25098 fi
25099
25100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25101 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25102 $as_echo "$ac_header_compiler" >&6; }
25103
25104 # Is the header present?
25105 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25106 $as_echo_n "checking $ac_header presence... " >&6; }
25107 cat >conftest.$ac_ext <<_ACEOF
25108 /* confdefs.h. */
25109 _ACEOF
25110 cat confdefs.h >>conftest.$ac_ext
25111 cat >>conftest.$ac_ext <<_ACEOF
25112 /* end confdefs.h. */
25113 #include <$ac_header>
25114 _ACEOF
25115 if { (ac_try="$ac_cpp conftest.$ac_ext"
25116 case "(($ac_try" in
25117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25118 *) ac_try_echo=$ac_try;;
25119 esac
25120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25121 $as_echo "$ac_try_echo") >&5
25122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25123 ac_status=$?
25124 grep -v '^ *+' conftest.er1 >conftest.err
25125 rm -f conftest.er1
25126 cat conftest.err >&5
25127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); } >/dev/null && {
25129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25130 test ! -s conftest.err
25131 }; then
25132 ac_header_preproc=yes
25133 else
25134 $as_echo "$as_me: failed program was:" >&5
25135 sed 's/^/| /' conftest.$ac_ext >&5
25136
25137 ac_header_preproc=no
25138 fi
25139
25140 rm -f conftest.err conftest.$ac_ext
25141 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25142 $as_echo "$ac_header_preproc" >&6; }
25143
25144 # So? What about this header?
25145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25146 yes:no: )
25147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25148 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25150 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25151 ac_header_preproc=yes
25152 ;;
25153 no:yes:* )
25154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25155 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25156 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25157 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25159 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25161 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25163 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25165 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25166
25167 ;;
25168 esac
25169 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25170 $as_echo_n "checking for $ac_header... " >&6; }
25171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25172 $as_echo_n "(cached) " >&6
25173 else
25174 eval "$as_ac_Header=\$ac_header_preproc"
25175 fi
25176 ac_res=`eval 'as_val=${'$as_ac_Header'}
25177 $as_echo "$as_val"'`
25178 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25179 $as_echo "$ac_res" >&6; }
25180
25181 fi
25182 if test `eval 'as_val=${'$as_ac_Header'}
25183 $as_echo "$as_val"'` = yes; then
25184 cat >>confdefs.h <<_ACEOF
25185 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25186 _ACEOF
25187
25188 fi
25189
25190 done
25191
25192
25193
25194 for ac_func in fork vfork
25195 do
25196 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25197 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25198 $as_echo_n "checking for $ac_func... " >&6; }
25199 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25200 $as_echo_n "(cached) " >&6
25201 else
25202 cat >conftest.$ac_ext <<_ACEOF
25203 /* confdefs.h. */
25204 _ACEOF
25205 cat confdefs.h >>conftest.$ac_ext
25206 cat >>conftest.$ac_ext <<_ACEOF
25207 /* end confdefs.h. */
25208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25210 #define $ac_func innocuous_$ac_func
25211
25212 /* System header to define __stub macros and hopefully few prototypes,
25213 which can conflict with char $ac_func (); below.
25214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25215 <limits.h> exists even on freestanding compilers. */
25216
25217 #ifdef __STDC__
25218 # include <limits.h>
25219 #else
25220 # include <assert.h>
25221 #endif
25222
25223 #undef $ac_func
25224
25225 /* Override any GCC internal prototype to avoid an error.
25226 Use char because int might match the return type of a GCC
25227 builtin and then its argument prototype would still apply. */
25228 #ifdef __cplusplus
25229 extern "C"
25230 #endif
25231 char $ac_func ();
25232 /* The GNU C library defines this for functions which it implements
25233 to always fail with ENOSYS. Some functions are actually named
25234 something starting with __ and the normal name is an alias. */
25235 #if defined __stub_$ac_func || defined __stub___$ac_func
25236 choke me
25237 #endif
25238
25239 int
25240 main ()
25241 {
25242 return $ac_func ();
25243 ;
25244 return 0;
25245 }
25246 _ACEOF
25247 rm -f conftest.$ac_objext conftest$ac_exeext
25248 if { (ac_try="$ac_link"
25249 case "(($ac_try" in
25250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25251 *) ac_try_echo=$ac_try;;
25252 esac
25253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25254 $as_echo "$ac_try_echo") >&5
25255 (eval "$ac_link") 2>conftest.er1
25256 ac_status=$?
25257 grep -v '^ *+' conftest.er1 >conftest.err
25258 rm -f conftest.er1
25259 cat conftest.err >&5
25260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); } && {
25262 test -z "$ac_c_werror_flag" ||
25263 test ! -s conftest.err
25264 } && test -s conftest$ac_exeext && {
25265 test "$cross_compiling" = yes ||
25266 $as_test_x conftest$ac_exeext
25267 }; then
25268 eval "$as_ac_var=yes"
25269 else
25270 $as_echo "$as_me: failed program was:" >&5
25271 sed 's/^/| /' conftest.$ac_ext >&5
25272
25273 eval "$as_ac_var=no"
25274 fi
25275
25276 rm -rf conftest.dSYM
25277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25278 conftest$ac_exeext conftest.$ac_ext
25279 fi
25280 ac_res=`eval 'as_val=${'$as_ac_var'}
25281 $as_echo "$as_val"'`
25282 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25283 $as_echo "$ac_res" >&6; }
25284 if test `eval 'as_val=${'$as_ac_var'}
25285 $as_echo "$as_val"'` = yes; then
25286 cat >>confdefs.h <<_ACEOF
25287 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25288 _ACEOF
25289
25290 fi
25291 done
25292
25293 if test "x$ac_cv_func_fork" = xyes; then
25294 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25295 $as_echo_n "checking for working fork... " >&6; }
25296 if test "${ac_cv_func_fork_works+set}" = set; then
25297 $as_echo_n "(cached) " >&6
25298 else
25299 if test "$cross_compiling" = yes; then
25300 ac_cv_func_fork_works=cross
25301 else
25302 cat >conftest.$ac_ext <<_ACEOF
25303 /* confdefs.h. */
25304 _ACEOF
25305 cat confdefs.h >>conftest.$ac_ext
25306 cat >>conftest.$ac_ext <<_ACEOF
25307 /* end confdefs.h. */
25308 $ac_includes_default
25309 int
25310 main ()
25311 {
25312
25313 /* By Ruediger Kuhlmann. */
25314 return fork () < 0;
25315
25316 ;
25317 return 0;
25318 }
25319 _ACEOF
25320 rm -f conftest$ac_exeext
25321 if { (ac_try="$ac_link"
25322 case "(($ac_try" in
25323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25324 *) ac_try_echo=$ac_try;;
25325 esac
25326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25327 $as_echo "$ac_try_echo") >&5
25328 (eval "$ac_link") 2>&5
25329 ac_status=$?
25330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25332 { (case "(($ac_try" in
25333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25334 *) ac_try_echo=$ac_try;;
25335 esac
25336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25337 $as_echo "$ac_try_echo") >&5
25338 (eval "$ac_try") 2>&5
25339 ac_status=$?
25340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341 (exit $ac_status); }; }; then
25342 ac_cv_func_fork_works=yes
25343 else
25344 $as_echo "$as_me: program exited with status $ac_status" >&5
25345 $as_echo "$as_me: failed program was:" >&5
25346 sed 's/^/| /' conftest.$ac_ext >&5
25347
25348 ( exit $ac_status )
25349 ac_cv_func_fork_works=no
25350 fi
25351 rm -rf conftest.dSYM
25352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25353 fi
25354
25355
25356 fi
25357 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25358 $as_echo "$ac_cv_func_fork_works" >&6; }
25359
25360 else
25361 ac_cv_func_fork_works=$ac_cv_func_fork
25362 fi
25363 if test "x$ac_cv_func_fork_works" = xcross; then
25364 case $host in
25365 *-*-amigaos* | *-*-msdosdjgpp*)
25366 # Override, as these systems have only a dummy fork() stub
25367 ac_cv_func_fork_works=no
25368 ;;
25369 *)
25370 ac_cv_func_fork_works=yes
25371 ;;
25372 esac
25373 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25374 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25375 fi
25376 ac_cv_func_vfork_works=$ac_cv_func_vfork
25377 if test "x$ac_cv_func_vfork" = xyes; then
25378 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
25379 $as_echo_n "checking for working vfork... " >&6; }
25380 if test "${ac_cv_func_vfork_works+set}" = set; then
25381 $as_echo_n "(cached) " >&6
25382 else
25383 if test "$cross_compiling" = yes; then
25384 ac_cv_func_vfork_works=cross
25385 else
25386 cat >conftest.$ac_ext <<_ACEOF
25387 /* confdefs.h. */
25388 _ACEOF
25389 cat confdefs.h >>conftest.$ac_ext
25390 cat >>conftest.$ac_ext <<_ACEOF
25391 /* end confdefs.h. */
25392 /* Thanks to Paul Eggert for this test. */
25393 $ac_includes_default
25394 #include <sys/wait.h>
25395 #ifdef HAVE_VFORK_H
25396 # include <vfork.h>
25397 #endif
25398 /* On some sparc systems, changes by the child to local and incoming
25399 argument registers are propagated back to the parent. The compiler
25400 is told about this with #include <vfork.h>, but some compilers
25401 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25402 static variable whose address is put into a register that is
25403 clobbered by the vfork. */
25404 static void
25405 #ifdef __cplusplus
25406 sparc_address_test (int arg)
25407 # else
25408 sparc_address_test (arg) int arg;
25409 #endif
25410 {
25411 static pid_t child;
25412 if (!child) {
25413 child = vfork ();
25414 if (child < 0) {
25415 perror ("vfork");
25416 _exit(2);
25417 }
25418 if (!child) {
25419 arg = getpid();
25420 write(-1, "", 0);
25421 _exit (arg);
25422 }
25423 }
25424 }
25425
25426 int
25427 main ()
25428 {
25429 pid_t parent = getpid ();
25430 pid_t child;
25431
25432 sparc_address_test (0);
25433
25434 child = vfork ();
25435
25436 if (child == 0) {
25437 /* Here is another test for sparc vfork register problems. This
25438 test uses lots of local variables, at least as many local
25439 variables as main has allocated so far including compiler
25440 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25441 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25442 reuse the register of parent for one of the local variables,
25443 since it will think that parent can't possibly be used any more
25444 in this routine. Assigning to the local variable will thus
25445 munge parent in the parent process. */
25446 pid_t
25447 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25448 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25449 /* Convince the compiler that p..p7 are live; otherwise, it might
25450 use the same hardware register for all 8 local variables. */
25451 if (p != p1 || p != p2 || p != p3 || p != p4
25452 || p != p5 || p != p6 || p != p7)
25453 _exit(1);
25454
25455 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25456 from child file descriptors. If the child closes a descriptor
25457 before it execs or exits, this munges the parent's descriptor
25458 as well. Test for this by closing stdout in the child. */
25459 _exit(close(fileno(stdout)) != 0);
25460 } else {
25461 int status;
25462 struct stat st;
25463
25464 while (wait(&status) != child)
25465 ;
25466 return (
25467 /* Was there some problem with vforking? */
25468 child < 0
25469
25470 /* Did the child fail? (This shouldn't happen.) */
25471 || status
25472
25473 /* Did the vfork/compiler bug occur? */
25474 || parent != getpid()
25475
25476 /* Did the file descriptor bug occur? */
25477 || fstat(fileno(stdout), &st) != 0
25478 );
25479 }
25480 }
25481 _ACEOF
25482 rm -f conftest$ac_exeext
25483 if { (ac_try="$ac_link"
25484 case "(($ac_try" in
25485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25486 *) ac_try_echo=$ac_try;;
25487 esac
25488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25489 $as_echo "$ac_try_echo") >&5
25490 (eval "$ac_link") 2>&5
25491 ac_status=$?
25492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25494 { (case "(($ac_try" in
25495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25496 *) ac_try_echo=$ac_try;;
25497 esac
25498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25499 $as_echo "$ac_try_echo") >&5
25500 (eval "$ac_try") 2>&5
25501 ac_status=$?
25502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25503 (exit $ac_status); }; }; then
25504 ac_cv_func_vfork_works=yes
25505 else
25506 $as_echo "$as_me: program exited with status $ac_status" >&5
25507 $as_echo "$as_me: failed program was:" >&5
25508 sed 's/^/| /' conftest.$ac_ext >&5
25509
25510 ( exit $ac_status )
25511 ac_cv_func_vfork_works=no
25512 fi
25513 rm -rf conftest.dSYM
25514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25515 fi
25516
25517
25518 fi
25519 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25520 $as_echo "$ac_cv_func_vfork_works" >&6; }
25521
25522 fi;
25523 if test "x$ac_cv_func_fork_works" = xcross; then
25524 ac_cv_func_vfork_works=$ac_cv_func_vfork
25525 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25526 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25527 fi
25528
25529 if test "x$ac_cv_func_vfork_works" = xyes; then
25530
25531 cat >>confdefs.h <<\_ACEOF
25532 #define HAVE_WORKING_VFORK 1
25533 _ACEOF
25534
25535 else
25536
25537 cat >>confdefs.h <<\_ACEOF
25538 #define vfork fork
25539 _ACEOF
25540
25541 fi
25542 if test "x$ac_cv_func_fork_works" = xyes; then
25543
25544 cat >>confdefs.h <<\_ACEOF
25545 #define HAVE_WORKING_FORK 1
25546 _ACEOF
25547
25548 fi
25549
25550
25551 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25552 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25553 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25554 $as_echo_n "(cached) " >&6
25555 else
25556 cat >conftest.$ac_ext <<_ACEOF
25557 /* confdefs.h. */
25558 _ACEOF
25559 cat confdefs.h >>conftest.$ac_ext
25560 cat >>conftest.$ac_ext <<_ACEOF
25561 /* end confdefs.h. */
25562 #include <langinfo.h>
25563 int
25564 main ()
25565 {
25566 char* cs = nl_langinfo(CODESET);
25567 ;
25568 return 0;
25569 }
25570 _ACEOF
25571 rm -f conftest.$ac_objext conftest$ac_exeext
25572 if { (ac_try="$ac_link"
25573 case "(($ac_try" in
25574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25575 *) ac_try_echo=$ac_try;;
25576 esac
25577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25578 $as_echo "$ac_try_echo") >&5
25579 (eval "$ac_link") 2>conftest.er1
25580 ac_status=$?
25581 grep -v '^ *+' conftest.er1 >conftest.err
25582 rm -f conftest.er1
25583 cat conftest.err >&5
25584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585 (exit $ac_status); } && {
25586 test -z "$ac_c_werror_flag" ||
25587 test ! -s conftest.err
25588 } && test -s conftest$ac_exeext && {
25589 test "$cross_compiling" = yes ||
25590 $as_test_x conftest$ac_exeext
25591 }; then
25592 emacs_cv_langinfo_codeset=yes
25593 else
25594 $as_echo "$as_me: failed program was:" >&5
25595 sed 's/^/| /' conftest.$ac_ext >&5
25596
25597 emacs_cv_langinfo_codeset=no
25598 fi
25599
25600 rm -rf conftest.dSYM
25601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25602 conftest$ac_exeext conftest.$ac_ext
25603
25604 fi
25605 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25606 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25607 if test $emacs_cv_langinfo_codeset = yes; then
25608
25609 cat >>confdefs.h <<\_ACEOF
25610 #define HAVE_LANGINFO_CODESET 1
25611 _ACEOF
25612
25613 fi
25614
25615 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25616 $as_echo_n "checking for size_t... " >&6; }
25617 if test "${ac_cv_type_size_t+set}" = set; then
25618 $as_echo_n "(cached) " >&6
25619 else
25620 ac_cv_type_size_t=no
25621 cat >conftest.$ac_ext <<_ACEOF
25622 /* confdefs.h. */
25623 _ACEOF
25624 cat confdefs.h >>conftest.$ac_ext
25625 cat >>conftest.$ac_ext <<_ACEOF
25626 /* end confdefs.h. */
25627 $ac_includes_default
25628 int
25629 main ()
25630 {
25631 if (sizeof (size_t))
25632 return 0;
25633 ;
25634 return 0;
25635 }
25636 _ACEOF
25637 rm -f conftest.$ac_objext
25638 if { (ac_try="$ac_compile"
25639 case "(($ac_try" in
25640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25641 *) ac_try_echo=$ac_try;;
25642 esac
25643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25644 $as_echo "$ac_try_echo") >&5
25645 (eval "$ac_compile") 2>conftest.er1
25646 ac_status=$?
25647 grep -v '^ *+' conftest.er1 >conftest.err
25648 rm -f conftest.er1
25649 cat conftest.err >&5
25650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651 (exit $ac_status); } && {
25652 test -z "$ac_c_werror_flag" ||
25653 test ! -s conftest.err
25654 } && test -s conftest.$ac_objext; then
25655 cat >conftest.$ac_ext <<_ACEOF
25656 /* confdefs.h. */
25657 _ACEOF
25658 cat confdefs.h >>conftest.$ac_ext
25659 cat >>conftest.$ac_ext <<_ACEOF
25660 /* end confdefs.h. */
25661 $ac_includes_default
25662 int
25663 main ()
25664 {
25665 if (sizeof ((size_t)))
25666 return 0;
25667 ;
25668 return 0;
25669 }
25670 _ACEOF
25671 rm -f conftest.$ac_objext
25672 if { (ac_try="$ac_compile"
25673 case "(($ac_try" in
25674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25675 *) ac_try_echo=$ac_try;;
25676 esac
25677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25678 $as_echo "$ac_try_echo") >&5
25679 (eval "$ac_compile") 2>conftest.er1
25680 ac_status=$?
25681 grep -v '^ *+' conftest.er1 >conftest.err
25682 rm -f conftest.er1
25683 cat conftest.err >&5
25684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685 (exit $ac_status); } && {
25686 test -z "$ac_c_werror_flag" ||
25687 test ! -s conftest.err
25688 } && test -s conftest.$ac_objext; then
25689 :
25690 else
25691 $as_echo "$as_me: failed program was:" >&5
25692 sed 's/^/| /' conftest.$ac_ext >&5
25693
25694 ac_cv_type_size_t=yes
25695 fi
25696
25697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25698 else
25699 $as_echo "$as_me: failed program was:" >&5
25700 sed 's/^/| /' conftest.$ac_ext >&5
25701
25702
25703 fi
25704
25705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25706 fi
25707 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25708 $as_echo "$ac_cv_type_size_t" >&6; }
25709 if test $ac_cv_type_size_t = yes; then
25710
25711 cat >>confdefs.h <<_ACEOF
25712 #define HAVE_SIZE_T 1
25713 _ACEOF
25714
25715
25716 fi
25717
25718
25719 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
25720 $as_echo_n "checking for mbstate_t... " >&6; }
25721 if test "${ac_cv_type_mbstate_t+set}" = set; then
25722 $as_echo_n "(cached) " >&6
25723 else
25724 cat >conftest.$ac_ext <<_ACEOF
25725 /* confdefs.h. */
25726 _ACEOF
25727 cat confdefs.h >>conftest.$ac_ext
25728 cat >>conftest.$ac_ext <<_ACEOF
25729 /* end confdefs.h. */
25730 $ac_includes_default
25731 # include <wchar.h>
25732 int
25733 main ()
25734 {
25735 mbstate_t x; return sizeof x;
25736 ;
25737 return 0;
25738 }
25739 _ACEOF
25740 rm -f conftest.$ac_objext
25741 if { (ac_try="$ac_compile"
25742 case "(($ac_try" in
25743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25744 *) ac_try_echo=$ac_try;;
25745 esac
25746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25747 $as_echo "$ac_try_echo") >&5
25748 (eval "$ac_compile") 2>conftest.er1
25749 ac_status=$?
25750 grep -v '^ *+' conftest.er1 >conftest.err
25751 rm -f conftest.er1
25752 cat conftest.err >&5
25753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754 (exit $ac_status); } && {
25755 test -z "$ac_c_werror_flag" ||
25756 test ! -s conftest.err
25757 } && test -s conftest.$ac_objext; then
25758 ac_cv_type_mbstate_t=yes
25759 else
25760 $as_echo "$as_me: failed program was:" >&5
25761 sed 's/^/| /' conftest.$ac_ext >&5
25762
25763 ac_cv_type_mbstate_t=no
25764 fi
25765
25766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25767 fi
25768 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25769 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25770 if test $ac_cv_type_mbstate_t = yes; then
25771
25772 cat >>confdefs.h <<\_ACEOF
25773 #define HAVE_MBSTATE_T 1
25774 _ACEOF
25775
25776 else
25777
25778 cat >>confdefs.h <<\_ACEOF
25779 #define mbstate_t int
25780 _ACEOF
25781
25782 fi
25783
25784 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25785 $as_echo_n "checking for C restrict keyword... " >&6; }
25786 if test "${emacs_cv_c_restrict+set}" = set; then
25787 $as_echo_n "(cached) " >&6
25788 else
25789 cat >conftest.$ac_ext <<_ACEOF
25790 /* confdefs.h. */
25791 _ACEOF
25792 cat confdefs.h >>conftest.$ac_ext
25793 cat >>conftest.$ac_ext <<_ACEOF
25794 /* end confdefs.h. */
25795 void fred (int *restrict x);
25796 int
25797 main ()
25798 {
25799
25800 ;
25801 return 0;
25802 }
25803 _ACEOF
25804 rm -f conftest.$ac_objext
25805 if { (ac_try="$ac_compile"
25806 case "(($ac_try" in
25807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25808 *) ac_try_echo=$ac_try;;
25809 esac
25810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25811 $as_echo "$ac_try_echo") >&5
25812 (eval "$ac_compile") 2>conftest.er1
25813 ac_status=$?
25814 grep -v '^ *+' conftest.er1 >conftest.err
25815 rm -f conftest.er1
25816 cat conftest.err >&5
25817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25818 (exit $ac_status); } && {
25819 test -z "$ac_c_werror_flag" ||
25820 test ! -s conftest.err
25821 } && test -s conftest.$ac_objext; then
25822 emacs_cv_c_restrict=yes
25823 else
25824 $as_echo "$as_me: failed program was:" >&5
25825 sed 's/^/| /' conftest.$ac_ext >&5
25826
25827 cat >conftest.$ac_ext <<_ACEOF
25828 /* confdefs.h. */
25829 _ACEOF
25830 cat confdefs.h >>conftest.$ac_ext
25831 cat >>conftest.$ac_ext <<_ACEOF
25832 /* end confdefs.h. */
25833 void fred (int *__restrict x);
25834 int
25835 main ()
25836 {
25837
25838 ;
25839 return 0;
25840 }
25841 _ACEOF
25842 rm -f conftest.$ac_objext
25843 if { (ac_try="$ac_compile"
25844 case "(($ac_try" in
25845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25846 *) ac_try_echo=$ac_try;;
25847 esac
25848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25849 $as_echo "$ac_try_echo") >&5
25850 (eval "$ac_compile") 2>conftest.er1
25851 ac_status=$?
25852 grep -v '^ *+' conftest.er1 >conftest.err
25853 rm -f conftest.er1
25854 cat conftest.err >&5
25855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856 (exit $ac_status); } && {
25857 test -z "$ac_c_werror_flag" ||
25858 test ! -s conftest.err
25859 } && test -s conftest.$ac_objext; then
25860 emacs_cv_c_restrict=__restrict
25861 else
25862 $as_echo "$as_me: failed program was:" >&5
25863 sed 's/^/| /' conftest.$ac_ext >&5
25864
25865 emacs_cv_c_restrict=no
25866 fi
25867
25868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25869 fi
25870
25871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25872 fi
25873 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25874 $as_echo "$emacs_cv_c_restrict" >&6; }
25875 case "$emacs_cv_c_restrict" in
25876 yes) emacs_restrict=restrict;;
25877 no) emacs_restrict="";;
25878 *) emacs_restrict="$emacs_cv_c_restrict";;
25879 esac
25880 if test "$emacs_restrict" != __restrict; then
25881
25882 cat >>confdefs.h <<_ACEOF
25883 #define __restrict $emacs_restrict
25884 _ACEOF
25885
25886 fi
25887
25888 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25889 $as_echo_n "checking for C restricted array declarations... " >&6; }
25890 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25891 $as_echo_n "(cached) " >&6
25892 else
25893 cat >conftest.$ac_ext <<_ACEOF
25894 /* confdefs.h. */
25895 _ACEOF
25896 cat confdefs.h >>conftest.$ac_ext
25897 cat >>conftest.$ac_ext <<_ACEOF
25898 /* end confdefs.h. */
25899 void fred (int x[__restrict]);
25900 int
25901 main ()
25902 {
25903
25904 ;
25905 return 0;
25906 }
25907 _ACEOF
25908 rm -f conftest.$ac_objext
25909 if { (ac_try="$ac_compile"
25910 case "(($ac_try" in
25911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25912 *) ac_try_echo=$ac_try;;
25913 esac
25914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25915 $as_echo "$ac_try_echo") >&5
25916 (eval "$ac_compile") 2>conftest.er1
25917 ac_status=$?
25918 grep -v '^ *+' conftest.er1 >conftest.err
25919 rm -f conftest.er1
25920 cat conftest.err >&5
25921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922 (exit $ac_status); } && {
25923 test -z "$ac_c_werror_flag" ||
25924 test ! -s conftest.err
25925 } && test -s conftest.$ac_objext; then
25926 emacs_cv_c_restrict_arr=yes
25927 else
25928 $as_echo "$as_me: failed program was:" >&5
25929 sed 's/^/| /' conftest.$ac_ext >&5
25930
25931 emacs_cv_c_restrict_arr=no
25932 fi
25933
25934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25935 fi
25936 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25937 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25938 if test "$emacs_cv_c_restrict_arr" = yes; then
25939
25940 cat >>confdefs.h <<\_ACEOF
25941 #define __restrict_arr __restrict
25942 _ACEOF
25943
25944 fi
25945
25946
25947
25948 # Set up the CFLAGS for real compilation, so we can substitute it.
25949 CFLAGS="$REAL_CFLAGS"
25950 CPPFLAGS="$REAL_CPPFLAGS"
25951
25952 #### Find out which version of Emacs this is.
25953 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25954 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25955 if test x"${version}" = x; then
25956 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25957 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25958 { (exit 1); exit 1; }; }
25959 fi
25960 if test x"${version}" != x"$PACKAGE_VERSION"; then
25961 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25962 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25963 fi
25964
25965 ### Specify what sort of things we'll be editing into Makefile and config.h.
25966 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25967
25968
25969
25970
25971
25972
25973
25974
25975
25976
25977
25978
25979
25980
25981
25982
25983
25984
25985
25986
25987
25988
25989
25990
25991
25992
25993
25994
25995
25996
25997 ## Used in lwlib/Makefile.in.
25998
25999
26000
26001
26002
26003
26004
26005
26006
26007
26008
26009
26010
26011
26012
26013
26014 cat >>confdefs.h <<_ACEOF
26015 #define EMACS_CONFIGURATION "${canonical}"
26016 _ACEOF
26017
26018
26019 cat >>confdefs.h <<_ACEOF
26020 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26021 _ACEOF
26022
26023
26024 cat >>confdefs.h <<_ACEOF
26025 #define config_machfile "${machfile}"
26026 _ACEOF
26027
26028
26029 cat >>confdefs.h <<_ACEOF
26030 #define config_opsysfile "${opsysfile}"
26031 _ACEOF
26032
26033
26034 cat >>confdefs.h <<_ACEOF
26035 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
26036 _ACEOF
26037
26038
26039 cat >>confdefs.h <<_ACEOF
26040 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
26041 _ACEOF
26042
26043
26044 cat >>confdefs.h <<_ACEOF
26045 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
26046 _ACEOF
26047
26048
26049 XMENU_OBJ=
26050 XOBJ=
26051 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26052
26053 cat >>confdefs.h <<\_ACEOF
26054 #define HAVE_X_WINDOWS 1
26055 _ACEOF
26056
26057 XMENU_OBJ=xmenu.o
26058 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
26059 fi
26060
26061
26062
26063 WIDGET_OBJ=
26064 MOTIF_LIBW=
26065 if test "${USE_X_TOOLKIT}" != "none" ; then
26066 WIDGET_OBJ=widget.o
26067
26068 cat >>confdefs.h <<\_ACEOF
26069 #define USE_X_TOOLKIT 1
26070 _ACEOF
26071
26072 if test "${USE_X_TOOLKIT}" = "LUCID"; then
26073
26074 cat >>confdefs.h <<\_ACEOF
26075 #define USE_LUCID 1
26076 _ACEOF
26077
26078 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
26079
26080 cat >>confdefs.h <<\_ACEOF
26081 #define USE_MOTIF 1
26082 _ACEOF
26083
26084 MOTIF_LIBW=-lXm
26085 case "$opsys" in
26086 gnu-linux)
26087 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26088 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
26089 ;;
26090
26091 unixware)
26092 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26093 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26094 MOTIF_LIBW="MOTIF_LIBW -lXimp"
26095 ;;
26096
26097 aix4-2)
26098 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26099 MOTIF_LIBW="$MOTIF_LIBW -li18n"
26100 ;;
26101 esac
26102 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
26103 fi
26104 fi
26105
26106
26107 TOOLKIT_LIBW=
26108 case "$USE_X_TOOLKIT" in
26109 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
26110 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
26111 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
26112 esac
26113
26114
26115 if test "$USE_X_TOOLKIT" = "none"; then
26116 LIBXT_OTHER="\$(LIBXSM)"
26117 else
26118 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
26119 fi
26120
26121
26122 ## The X Menu stuff is present in the X10 distribution, but missing
26123 ## from X11. If we have X10, just use the installed library;
26124 ## otherwise, use our own copy.
26125 if test "${HAVE_X11}" = "yes" ; then
26126
26127 cat >>confdefs.h <<\_ACEOF
26128 #define HAVE_X11 1
26129 _ACEOF
26130
26131
26132 if test "$USE_X_TOOLKIT" = "none"; then
26133 OLDXMENU="\${oldXMenudir}libXMenu11.a"
26134 else
26135 OLDXMENU="\${lwlibdir}liblw.a"
26136 fi
26137 LIBXMENU="\$(OLDXMENU)"
26138 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
26139 else
26140 OLDXMENU=
26141 LIBXMENU="-lXMenu"
26142 LIBX_OTHER=
26143 fi
26144
26145 if test "$HAVE_GTK" = "yes"; then
26146 OLDXMENU=
26147 LIBXMENU=
26148 fi
26149
26150
26151
26152
26153
26154 if test "${HAVE_MENUS}" = "yes" ; then
26155
26156 cat >>confdefs.h <<\_ACEOF
26157 #define HAVE_MENUS 1
26158 _ACEOF
26159
26160 fi
26161 if test "${GNU_MALLOC}" = "yes" ; then
26162
26163 cat >>confdefs.h <<\_ACEOF
26164 #define GNU_MALLOC 1
26165 _ACEOF
26166
26167 fi
26168 if test "${REL_ALLOC}" = "yes" ; then
26169
26170 cat >>confdefs.h <<\_ACEOF
26171 #define REL_ALLOC 1
26172 _ACEOF
26173
26174 fi
26175
26176
26177 if test "$opsys" = "cygwin"; then
26178 CYGWIN_OBJ="sheap.o"
26179 ## Cygwin differs because of its unexec().
26180 PRE_ALLOC_OBJ=
26181 POST_ALLOC_OBJ="lastfile.o vm-limit.o"
26182 else
26183 CYGWIN_OBJ=
26184 PRE_ALLOC_OBJ=lastfile.o
26185 POST_ALLOC_OBJ="\$(vmlimitobj)"
26186 fi
26187
26188
26189
26190
26191
26192
26193
26194
26195 #### Report on what we decided to do.
26196 #### Report GTK as a toolkit, even if it doesn't use Xt.
26197 #### It makes printing result more understandable as using GTK sets
26198 #### toolkit_scroll_bars to yes by default.
26199 if test "${HAVE_GTK}" = "yes"; then
26200 USE_X_TOOLKIT=GTK
26201 fi
26202
26203 echo "
26204 Configured for \`${canonical}'.
26205
26206 Where should the build process find the source code? ${srcdir}
26207 What operating system and machine description files should Emacs use?
26208 \`${opsysfile}' and \`${machfile}'
26209 What compiler should emacs be built with? ${CC} ${CFLAGS}
26210 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26211 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26212 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26213 What window system should Emacs use? ${window_system}
26214 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26215
26216 if test -n "${x_includes}"; then
26217 echo " Where do we find X Windows header files? ${x_includes}"
26218 else
26219 echo " Where do we find X Windows header files? Standard dirs"
26220 fi
26221 if test -n "${x_libraries}"; then
26222 echo " Where do we find X Windows libraries? ${x_libraries}"
26223 else
26224 echo " Where do we find X Windows libraries? Standard dirs"
26225 fi
26226
26227 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26228 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26229 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26230 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26231 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26232 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26233 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26234 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26235 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26236 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26237 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26238
26239 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26240 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26241 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26242 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26243
26244 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26245 echo
26246
26247 if test $USE_XASSERTS = yes; then
26248 echo " Compiling with asserts turned on."
26249 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
26250 fi
26251
26252 echo
26253
26254 if test "$HAVE_NS" = "yes"; then
26255 echo
26256 echo "You must run \"make install\" in order to test the built application.
26257 The installed application will go to nextstep/Emacs.app and can be
26258 run or moved from there."
26259 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26260 echo "The application will be fully self-contained."
26261 else
26262 echo "The lisp resources for the application will be installed under ${prefix}.
26263 You may need to run \"make install\" with sudo. The application will fail
26264 to run if these resources are not installed."
26265 fi
26266 echo
26267 fi
26268
26269 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26270 echo "D-Bus integration has been tested for GNU/Linux only."
26271 echo
26272 fi
26273
26274
26275 # Remove any trailing slashes in these variables.
26276 test "${prefix}" != NONE &&
26277 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26278 test "${exec_prefix}" != NONE &&
26279 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26280
26281 # Now get this: Some word that is part of the ${srcdir} directory name
26282 # or the ${configuration} value might, just might, happen to be an
26283 # identifier like `sun4' or `i386' or something, and be predefined by
26284 # the C preprocessor to some helpful value like 1, or maybe the empty
26285 # string. Needless to say consequent macro substitutions are less
26286 # than conducive to the makefile finding the correct directory.
26287 cpp_undefs="`echo $srcdir $configuration $canonical unix |
26288 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26289 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26290
26291 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26292 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26293 ## from Makefile.c can correctly provide the arg `-traditional' to the
26294 ## C preprocessor.
26295
26296 cat >conftest.$ac_ext <<_ACEOF
26297 /* confdefs.h. */
26298 _ACEOF
26299 cat confdefs.h >>conftest.$ac_ext
26300 cat >>conftest.$ac_ext <<_ACEOF
26301 /* end confdefs.h. */
26302 yes..yes
26303 _ACEOF
26304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26305 $EGREP "yes..yes" >/dev/null 2>&1; then
26306 CPP_NEED_TRADITIONAL=no
26307 else
26308 CPP_NEED_TRADITIONAL=yes
26309 fi
26310 rm -f conftest*
26311
26312
26313 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"
26314
26315 ac_config_commands="$ac_config_commands default"
26316
26317 cat >confcache <<\_ACEOF
26318 # This file is a shell script that caches the results of configure
26319 # tests run on this system so they can be shared between configure
26320 # scripts and configure runs, see configure's option --config-cache.
26321 # It is not useful on other systems. If it contains results you don't
26322 # want to keep, you may remove or edit it.
26323 #
26324 # config.status only pays attention to the cache file if you give it
26325 # the --recheck option to rerun configure.
26326 #
26327 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26328 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26329 # following values.
26330
26331 _ACEOF
26332
26333 # The following way of writing the cache mishandles newlines in values,
26334 # but we know of no workaround that is simple, portable, and efficient.
26335 # So, we kill variables containing newlines.
26336 # Ultrix sh set writes to stderr and can't be redirected directly,
26337 # and sets the high bit in the cache file unless we assign to the vars.
26338 (
26339 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26340 eval ac_val=\$$ac_var
26341 case $ac_val in #(
26342 *${as_nl}*)
26343 case $ac_var in #(
26344 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26345 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26346 esac
26347 case $ac_var in #(
26348 _ | IFS | as_nl) ;; #(
26349 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26350 *) $as_unset $ac_var ;;
26351 esac ;;
26352 esac
26353 done
26354
26355 (set) 2>&1 |
26356 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26357 *${as_nl}ac_space=\ *)
26358 # `set' does not quote correctly, so add quotes (double-quote
26359 # substitution turns \\\\ into \\, and sed turns \\ into \).
26360 sed -n \
26361 "s/'/'\\\\''/g;
26362 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26363 ;; #(
26364 *)
26365 # `set' quotes correctly as required by POSIX, so do not add quotes.
26366 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26367 ;;
26368 esac |
26369 sort
26370 ) |
26371 sed '
26372 /^ac_cv_env_/b end
26373 t clear
26374 :clear
26375 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26376 t end
26377 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26378 :end' >>confcache
26379 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26380 if test -w "$cache_file"; then
26381 test "x$cache_file" != "x/dev/null" &&
26382 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26383 $as_echo "$as_me: updating cache $cache_file" >&6;}
26384 cat confcache >$cache_file
26385 else
26386 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26387 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26388 fi
26389 fi
26390 rm -f confcache
26391
26392 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26393 # Let make expand exec_prefix.
26394 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26395
26396 DEFS=-DHAVE_CONFIG_H
26397
26398 ac_libobjs=
26399 ac_ltlibobjs=
26400 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26401 # 1. Remove the extension, and $U if already installed.
26402 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26403 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26404 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26405 # will be set to the directory where LIBOBJS objects are built.
26406 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26407 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26408 done
26409 LIBOBJS=$ac_libobjs
26410
26411 LTLIBOBJS=$ac_ltlibobjs
26412
26413
26414
26415 : ${CONFIG_STATUS=./config.status}
26416 ac_write_fail=0
26417 ac_clean_files_save=$ac_clean_files
26418 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26419 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26420 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26421 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26422 #! $SHELL
26423 # Generated by $as_me.
26424 # Run this file to recreate the current configuration.
26425 # Compiler output produced by configure, useful for debugging
26426 # configure, is in config.log if it exists.
26427
26428 debug=false
26429 ac_cs_recheck=false
26430 ac_cs_silent=false
26431 SHELL=\${CONFIG_SHELL-$SHELL}
26432 _ACEOF
26433
26434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26435 ## --------------------- ##
26436 ## M4sh Initialization. ##
26437 ## --------------------- ##
26438
26439 # Be more Bourne compatible
26440 DUALCASE=1; export DUALCASE # for MKS sh
26441 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26442 emulate sh
26443 NULLCMD=:
26444 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26445 # is contrary to our usage. Disable this feature.
26446 alias -g '${1+"$@"}'='"$@"'
26447 setopt NO_GLOB_SUBST
26448 else
26449 case `(set -o) 2>/dev/null` in
26450 *posix*) set -o posix ;;
26451 esac
26452
26453 fi
26454
26455
26456
26457
26458 # PATH needs CR
26459 # Avoid depending upon Character Ranges.
26460 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26461 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26462 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26463 as_cr_digits='0123456789'
26464 as_cr_alnum=$as_cr_Letters$as_cr_digits
26465
26466 as_nl='
26467 '
26468 export as_nl
26469 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26470 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26471 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26472 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26473 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26474 as_echo='printf %s\n'
26475 as_echo_n='printf %s'
26476 else
26477 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26478 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26479 as_echo_n='/usr/ucb/echo -n'
26480 else
26481 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26482 as_echo_n_body='eval
26483 arg=$1;
26484 case $arg in
26485 *"$as_nl"*)
26486 expr "X$arg" : "X\\(.*\\)$as_nl";
26487 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26488 esac;
26489 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26490 '
26491 export as_echo_n_body
26492 as_echo_n='sh -c $as_echo_n_body as_echo'
26493 fi
26494 export as_echo_body
26495 as_echo='sh -c $as_echo_body as_echo'
26496 fi
26497
26498 # The user is always right.
26499 if test "${PATH_SEPARATOR+set}" != set; then
26500 PATH_SEPARATOR=:
26501 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26502 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26503 PATH_SEPARATOR=';'
26504 }
26505 fi
26506
26507 # Support unset when possible.
26508 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26509 as_unset=unset
26510 else
26511 as_unset=false
26512 fi
26513
26514
26515 # IFS
26516 # We need space, tab and new line, in precisely that order. Quoting is
26517 # there to prevent editors from complaining about space-tab.
26518 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26519 # splitting by setting IFS to empty value.)
26520 IFS=" "" $as_nl"
26521
26522 # Find who we are. Look in the path if we contain no directory separator.
26523 case $0 in
26524 *[\\/]* ) as_myself=$0 ;;
26525 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26526 for as_dir in $PATH
26527 do
26528 IFS=$as_save_IFS
26529 test -z "$as_dir" && as_dir=.
26530 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26531 done
26532 IFS=$as_save_IFS
26533
26534 ;;
26535 esac
26536 # We did not find ourselves, most probably we were run as `sh COMMAND'
26537 # in which case we are not to be found in the path.
26538 if test "x$as_myself" = x; then
26539 as_myself=$0
26540 fi
26541 if test ! -f "$as_myself"; then
26542 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26543 { (exit 1); exit 1; }
26544 fi
26545
26546 # Work around bugs in pre-3.0 UWIN ksh.
26547 for as_var in ENV MAIL MAILPATH
26548 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26549 done
26550 PS1='$ '
26551 PS2='> '
26552 PS4='+ '
26553
26554 # NLS nuisances.
26555 LC_ALL=C
26556 export LC_ALL
26557 LANGUAGE=C
26558 export LANGUAGE
26559
26560 # Required to use basename.
26561 if expr a : '\(a\)' >/dev/null 2>&1 &&
26562 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26563 as_expr=expr
26564 else
26565 as_expr=false
26566 fi
26567
26568 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26569 as_basename=basename
26570 else
26571 as_basename=false
26572 fi
26573
26574
26575 # Name of the executable.
26576 as_me=`$as_basename -- "$0" ||
26577 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26578 X"$0" : 'X\(//\)$' \| \
26579 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26580 $as_echo X/"$0" |
26581 sed '/^.*\/\([^/][^/]*\)\/*$/{
26582 s//\1/
26583 q
26584 }
26585 /^X\/\(\/\/\)$/{
26586 s//\1/
26587 q
26588 }
26589 /^X\/\(\/\).*/{
26590 s//\1/
26591 q
26592 }
26593 s/.*/./; q'`
26594
26595 # CDPATH.
26596 $as_unset CDPATH
26597
26598
26599
26600 as_lineno_1=$LINENO
26601 as_lineno_2=$LINENO
26602 test "x$as_lineno_1" != "x$as_lineno_2" &&
26603 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26604
26605 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26606 # uniformly replaced by the line number. The first 'sed' inserts a
26607 # line-number line after each line using $LINENO; the second 'sed'
26608 # does the real work. The second script uses 'N' to pair each
26609 # line-number line with the line containing $LINENO, and appends
26610 # trailing '-' during substitution so that $LINENO is not a special
26611 # case at line end.
26612 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26613 # scripts with optimization help from Paolo Bonzini. Blame Lee
26614 # E. McMahon (1931-1989) for sed's syntax. :-)
26615 sed -n '
26616 p
26617 /[$]LINENO/=
26618 ' <$as_myself |
26619 sed '
26620 s/[$]LINENO.*/&-/
26621 t lineno
26622 b
26623 :lineno
26624 N
26625 :loop
26626 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26627 t loop
26628 s/-\n.*//
26629 ' >$as_me.lineno &&
26630 chmod +x "$as_me.lineno" ||
26631 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26632 { (exit 1); exit 1; }; }
26633
26634 # Don't try to exec as it changes $[0], causing all sort of problems
26635 # (the dirname of $[0] is not the place where we might find the
26636 # original and so on. Autoconf is especially sensitive to this).
26637 . "./$as_me.lineno"
26638 # Exit status is that of the last command.
26639 exit
26640 }
26641
26642
26643 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26644 as_dirname=dirname
26645 else
26646 as_dirname=false
26647 fi
26648
26649 ECHO_C= ECHO_N= ECHO_T=
26650 case `echo -n x` in
26651 -n*)
26652 case `echo 'x\c'` in
26653 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26654 *) ECHO_C='\c';;
26655 esac;;
26656 *)
26657 ECHO_N='-n';;
26658 esac
26659 if expr a : '\(a\)' >/dev/null 2>&1 &&
26660 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26661 as_expr=expr
26662 else
26663 as_expr=false
26664 fi
26665
26666 rm -f conf$$ conf$$.exe conf$$.file
26667 if test -d conf$$.dir; then
26668 rm -f conf$$.dir/conf$$.file
26669 else
26670 rm -f conf$$.dir
26671 mkdir conf$$.dir 2>/dev/null
26672 fi
26673 if (echo >conf$$.file) 2>/dev/null; then
26674 if ln -s conf$$.file conf$$ 2>/dev/null; then
26675 as_ln_s='ln -s'
26676 # ... but there are two gotchas:
26677 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26678 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26679 # In both cases, we have to default to `cp -p'.
26680 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26681 as_ln_s='cp -p'
26682 elif ln conf$$.file conf$$ 2>/dev/null; then
26683 as_ln_s=ln
26684 else
26685 as_ln_s='cp -p'
26686 fi
26687 else
26688 as_ln_s='cp -p'
26689 fi
26690 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26691 rmdir conf$$.dir 2>/dev/null
26692
26693 if mkdir -p . 2>/dev/null; then
26694 as_mkdir_p=:
26695 else
26696 test -d ./-p && rmdir ./-p
26697 as_mkdir_p=false
26698 fi
26699
26700 if test -x / >/dev/null 2>&1; then
26701 as_test_x='test -x'
26702 else
26703 if ls -dL / >/dev/null 2>&1; then
26704 as_ls_L_option=L
26705 else
26706 as_ls_L_option=
26707 fi
26708 as_test_x='
26709 eval sh -c '\''
26710 if test -d "$1"; then
26711 test -d "$1/.";
26712 else
26713 case $1 in
26714 -*)set "./$1";;
26715 esac;
26716 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26717 ???[sx]*):;;*)false;;esac;fi
26718 '\'' sh
26719 '
26720 fi
26721 as_executable_p=$as_test_x
26722
26723 # Sed expression to map a string onto a valid CPP name.
26724 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26725
26726 # Sed expression to map a string onto a valid variable name.
26727 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26728
26729
26730 exec 6>&1
26731
26732 # Save the log message, to keep $[0] and so on meaningful, and to
26733 # report actual input values of CONFIG_FILES etc. instead of their
26734 # values after options handling.
26735 ac_log="
26736 This file was extended by emacs $as_me 24.0.50, which was
26737 generated by GNU Autoconf 2.62. Invocation command line was
26738
26739 CONFIG_FILES = $CONFIG_FILES
26740 CONFIG_HEADERS = $CONFIG_HEADERS
26741 CONFIG_LINKS = $CONFIG_LINKS
26742 CONFIG_COMMANDS = $CONFIG_COMMANDS
26743 $ $0 $@
26744
26745 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26746 "
26747
26748 _ACEOF
26749
26750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26751 # Files that config.status was made for.
26752 config_files="$ac_config_files"
26753 config_headers="$ac_config_headers"
26754 config_commands="$ac_config_commands"
26755
26756 _ACEOF
26757
26758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26759 ac_cs_usage="\
26760 \`$as_me' instantiates files from templates according to the
26761 current configuration.
26762
26763 Usage: $0 [OPTIONS] [FILE]...
26764
26765 -h, --help print this help, then exit
26766 -V, --version print version number and configuration settings, then exit
26767 -q, --quiet do not print progress messages
26768 -d, --debug don't remove temporary files
26769 --recheck update $as_me by reconfiguring in the same conditions
26770 --file=FILE[:TEMPLATE]
26771 instantiate the configuration file FILE
26772 --header=FILE[:TEMPLATE]
26773 instantiate the configuration header FILE
26774
26775 Configuration files:
26776 $config_files
26777
26778 Configuration headers:
26779 $config_headers
26780
26781 Configuration commands:
26782 $config_commands
26783
26784 Report bugs to <bug-autoconf@gnu.org>."
26785
26786 _ACEOF
26787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26788 ac_cs_version="\\
26789 emacs config.status 24.0.50
26790 configured by $0, generated by GNU Autoconf 2.62,
26791 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26792
26793 Copyright (C) 2008 Free Software Foundation, Inc.
26794 This config.status script is free software; the Free Software Foundation
26795 gives unlimited permission to copy, distribute and modify it."
26796
26797 ac_pwd='$ac_pwd'
26798 srcdir='$srcdir'
26799 INSTALL='$INSTALL'
26800 test -n "\$AWK" || AWK=awk
26801 _ACEOF
26802
26803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26804 # The default lists apply if the user does not specify any file.
26805 ac_need_defaults=:
26806 while test $# != 0
26807 do
26808 case $1 in
26809 --*=*)
26810 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26811 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26812 ac_shift=:
26813 ;;
26814 *)
26815 ac_option=$1
26816 ac_optarg=$2
26817 ac_shift=shift
26818 ;;
26819 esac
26820
26821 case $ac_option in
26822 # Handling of the options.
26823 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26824 ac_cs_recheck=: ;;
26825 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26826 $as_echo "$ac_cs_version"; exit ;;
26827 --debug | --debu | --deb | --de | --d | -d )
26828 debug=: ;;
26829 --file | --fil | --fi | --f )
26830 $ac_shift
26831 case $ac_optarg in
26832 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26833 esac
26834 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26835 ac_need_defaults=false;;
26836 --header | --heade | --head | --hea )
26837 $ac_shift
26838 case $ac_optarg in
26839 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26840 esac
26841 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26842 ac_need_defaults=false;;
26843 --he | --h)
26844 # Conflict between --help and --header
26845 { $as_echo "$as_me: error: ambiguous option: $1
26846 Try \`$0 --help' for more information." >&2
26847 { (exit 1); exit 1; }; };;
26848 --help | --hel | -h )
26849 $as_echo "$ac_cs_usage"; exit ;;
26850 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26851 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26852 ac_cs_silent=: ;;
26853
26854 # This is an error.
26855 -*) { $as_echo "$as_me: error: unrecognized option: $1
26856 Try \`$0 --help' for more information." >&2
26857 { (exit 1); exit 1; }; } ;;
26858
26859 *) ac_config_targets="$ac_config_targets $1"
26860 ac_need_defaults=false ;;
26861
26862 esac
26863 shift
26864 done
26865
26866 ac_configure_extra_args=
26867
26868 if $ac_cs_silent; then
26869 exec 6>/dev/null
26870 ac_configure_extra_args="$ac_configure_extra_args --silent"
26871 fi
26872
26873 _ACEOF
26874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26875 if \$ac_cs_recheck; then
26876 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26877 shift
26878 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26879 CONFIG_SHELL='$SHELL'
26880 export CONFIG_SHELL
26881 exec "\$@"
26882 fi
26883
26884 _ACEOF
26885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26886 exec 5>>config.log
26887 {
26888 echo
26889 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26890 ## Running $as_me. ##
26891 _ASBOX
26892 $as_echo "$ac_log"
26893 } >&5
26894
26895 _ACEOF
26896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26897 #
26898 # INIT-COMMANDS
26899 #
26900 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26901
26902 _ACEOF
26903
26904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26905
26906 # Handling of arguments.
26907 for ac_config_target in $ac_config_targets
26908 do
26909 case $ac_config_target in
26910 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26911 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26912 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26913 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26914 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26915 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26916 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26917 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26918 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26919 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26920 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26921 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26922 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26923
26924 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26925 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26926 { (exit 1); exit 1; }; };;
26927 esac
26928 done
26929
26930
26931 # If the user did not use the arguments to specify the items to instantiate,
26932 # then the envvar interface is used. Set only those that are not.
26933 # We use the long form for the default assignment because of an extremely
26934 # bizarre bug on SunOS 4.1.3.
26935 if $ac_need_defaults; then
26936 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26937 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26938 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26939 fi
26940
26941 # Have a temporary directory for convenience. Make it in the build tree
26942 # simply because there is no reason against having it here, and in addition,
26943 # creating and moving files from /tmp can sometimes cause problems.
26944 # Hook for its removal unless debugging.
26945 # Note that there is a small window in which the directory will not be cleaned:
26946 # after its creation but before its name has been assigned to `$tmp'.
26947 $debug ||
26948 {
26949 tmp=
26950 trap 'exit_status=$?
26951 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26952 ' 0
26953 trap '{ (exit 1); exit 1; }' 1 2 13 15
26954 }
26955 # Create a (secure) tmp directory for tmp files.
26956
26957 {
26958 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26959 test -n "$tmp" && test -d "$tmp"
26960 } ||
26961 {
26962 tmp=./conf$$-$RANDOM
26963 (umask 077 && mkdir "$tmp")
26964 } ||
26965 {
26966 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26967 { (exit 1); exit 1; }
26968 }
26969
26970 # Set up the scripts for CONFIG_FILES section.
26971 # No need to generate them if there are no CONFIG_FILES.
26972 # This happens for instance with `./config.status config.h'.
26973 if test -n "$CONFIG_FILES"; then
26974
26975
26976 ac_cr=' '
26977 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26978 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26979 ac_cs_awk_cr='\\r'
26980 else
26981 ac_cs_awk_cr=$ac_cr
26982 fi
26983
26984 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26985 _ACEOF
26986
26987
26988 {
26989 echo "cat >conf$$subs.awk <<_ACEOF" &&
26990 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26991 echo "_ACEOF"
26992 } >conf$$subs.sh ||
26993 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26994 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26995 { (exit 1); exit 1; }; }
26996 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26997 ac_delim='%!_!# '
26998 for ac_last_try in false false false false false :; do
26999 . ./conf$$subs.sh ||
27000 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27001 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27002 { (exit 1); exit 1; }; }
27003
27004 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
27005 break
27006 elif $ac_last_try; then
27007 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27008 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27009 { (exit 1); exit 1; }; }
27010 else
27011 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27012 fi
27013 done
27014 rm -f conf$$subs.sh
27015
27016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27017 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27018 _ACEOF
27019 sed -n '
27020 h
27021 s/^/S["/; s/!.*/"]=/
27022 p
27023 g
27024 s/^[^!]*!//
27025 :repl
27026 t repl
27027 s/'"$ac_delim"'$//
27028 t delim
27029 :nl
27030 h
27031 s/\(.\{148\}\).*/\1/
27032 t more1
27033 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27034 p
27035 n
27036 b repl
27037 :more1
27038 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27039 p
27040 g
27041 s/.\{148\}//
27042 t nl
27043 :delim
27044 h
27045 s/\(.\{148\}\).*/\1/
27046 t more2
27047 s/["\\]/\\&/g; s/^/"/; s/$/"/
27048 p
27049 b
27050 :more2
27051 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27052 p
27053 g
27054 s/.\{148\}//
27055 t delim
27056 ' <conf$$subs.awk | sed '
27057 /^[^""]/{
27058 N
27059 s/\n//
27060 }
27061 ' >>$CONFIG_STATUS || ac_write_fail=1
27062 rm -f conf$$subs.awk
27063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27064 _ACAWK
27065 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27066 for (key in S) S_is_set[key] = 1
27067 FS = "\a"
27068
27069 }
27070 {
27071 line = $ 0
27072 nfields = split(line, field, "@")
27073 substed = 0
27074 len = length(field[1])
27075 for (i = 2; i < nfields; i++) {
27076 key = field[i]
27077 keylen = length(key)
27078 if (S_is_set[key]) {
27079 value = S[key]
27080 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27081 len += length(value) + length(field[++i])
27082 substed = 1
27083 } else
27084 len += 1 + keylen
27085 }
27086
27087 print line
27088 }
27089
27090 _ACAWK
27091 _ACEOF
27092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27093 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27094 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27095 else
27096 cat
27097 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27098 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
27099 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
27100 { (exit 1); exit 1; }; }
27101 _ACEOF
27102
27103 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27104 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27105 # trailing colons and then remove the whole line if VPATH becomes empty
27106 # (actually we leave an empty line to preserve line numbers).
27107 if test "x$srcdir" = x.; then
27108 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27109 s/:*\$(srcdir):*/:/
27110 s/:*\${srcdir}:*/:/
27111 s/:*@srcdir@:*/:/
27112 s/^\([^=]*=[ ]*\):*/\1/
27113 s/:*$//
27114 s/^[^=]*=[ ]*$//
27115 }'
27116 fi
27117
27118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27119 fi # test -n "$CONFIG_FILES"
27120
27121 # Set up the scripts for CONFIG_HEADERS section.
27122 # No need to generate them if there are no CONFIG_HEADERS.
27123 # This happens for instance with `./config.status Makefile'.
27124 if test -n "$CONFIG_HEADERS"; then
27125 cat >"$tmp/defines.awk" <<\_ACAWK ||
27126 BEGIN {
27127 _ACEOF
27128
27129 # Transform confdefs.h into an awk script `defines.awk', embedded as
27130 # here-document in config.status, that substitutes the proper values into
27131 # config.h.in to produce config.h.
27132
27133 # Create a delimiter string that does not exist in confdefs.h, to ease
27134 # handling of long lines.
27135 ac_delim='%!_!# '
27136 for ac_last_try in false false :; do
27137 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27138 if test -z "$ac_t"; then
27139 break
27140 elif $ac_last_try; then
27141 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
27142 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
27143 { (exit 1); exit 1; }; }
27144 else
27145 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27146 fi
27147 done
27148
27149 # For the awk script, D is an array of macro values keyed by name,
27150 # likewise P contains macro parameters if any. Preserve backslash
27151 # newline sequences.
27152
27153 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27154 sed -n '
27155 s/.\{148\}/&'"$ac_delim"'/g
27156 t rset
27157 :rset
27158 s/^[ ]*#[ ]*define[ ][ ]*/ /
27159 t def
27160 d
27161 :def
27162 s/\\$//
27163 t bsnl
27164 s/["\\]/\\&/g
27165 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27166 D["\1"]=" \3"/p
27167 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27168 d
27169 :bsnl
27170 s/["\\]/\\&/g
27171 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27172 D["\1"]=" \3\\\\\\n"\\/p
27173 t cont
27174 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27175 t cont
27176 d
27177 :cont
27178 n
27179 s/.\{148\}/&'"$ac_delim"'/g
27180 t clear
27181 :clear
27182 s/\\$//
27183 t bsnlc
27184 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27185 d
27186 :bsnlc
27187 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27188 b cont
27189 ' <confdefs.h | sed '
27190 s/'"$ac_delim"'/"\\\
27191 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27192
27193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27194 for (key in D) D_is_set[key] = 1
27195 FS = "\a"
27196 }
27197 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27198 line = \$ 0
27199 split(line, arg, " ")
27200 if (arg[1] == "#") {
27201 defundef = arg[2]
27202 mac1 = arg[3]
27203 } else {
27204 defundef = substr(arg[1], 2)
27205 mac1 = arg[2]
27206 }
27207 split(mac1, mac2, "(") #)
27208 macro = mac2[1]
27209 if (D_is_set[macro]) {
27210 # Preserve the white space surrounding the "#".
27211 prefix = substr(line, 1, index(line, defundef) - 1)
27212 print prefix "define", macro P[macro] D[macro]
27213 next
27214 } else {
27215 # Replace #undef with comments. This is necessary, for example,
27216 # in the case of _POSIX_SOURCE, which is predefined and required
27217 # on some systems where configure will not decide to define it.
27218 if (defundef == "undef") {
27219 print "/*", line, "*/"
27220 next
27221 }
27222 }
27223 }
27224 { print }
27225 _ACAWK
27226 _ACEOF
27227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27228 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27229 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27230 { (exit 1); exit 1; }; }
27231 fi # test -n "$CONFIG_HEADERS"
27232
27233
27234 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27235 shift
27236 for ac_tag
27237 do
27238 case $ac_tag in
27239 :[FHLC]) ac_mode=$ac_tag; continue;;
27240 esac
27241 case $ac_mode$ac_tag in
27242 :[FHL]*:*);;
27243 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27244 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27245 { (exit 1); exit 1; }; };;
27246 :[FH]-) ac_tag=-:-;;
27247 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27248 esac
27249 ac_save_IFS=$IFS
27250 IFS=:
27251 set x $ac_tag
27252 IFS=$ac_save_IFS
27253 shift
27254 ac_file=$1
27255 shift
27256
27257 case $ac_mode in
27258 :L) ac_source=$1;;
27259 :[FH])
27260 ac_file_inputs=
27261 for ac_f
27262 do
27263 case $ac_f in
27264 -) ac_f="$tmp/stdin";;
27265 *) # Look for the file first in the build tree, then in the source tree
27266 # (if the path is not absolute). The absolute path cannot be DOS-style,
27267 # because $ac_f cannot contain `:'.
27268 test -f "$ac_f" ||
27269 case $ac_f in
27270 [\\/$]*) false;;
27271 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27272 esac ||
27273 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27274 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27275 { (exit 1); exit 1; }; };;
27276 esac
27277 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27278 ac_file_inputs="$ac_file_inputs '$ac_f'"
27279 done
27280
27281 # Let's still pretend it is `configure' which instantiates (i.e., don't
27282 # use $as_me), people would be surprised to read:
27283 # /* config.h. Generated by config.status. */
27284 configure_input='Generated from '`
27285 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27286 `' by configure.'
27287 if test x"$ac_file" != x-; then
27288 configure_input="$ac_file. $configure_input"
27289 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27290 $as_echo "$as_me: creating $ac_file" >&6;}
27291 fi
27292 # Neutralize special characters interpreted by sed in replacement strings.
27293 case $configure_input in #(
27294 *\&* | *\|* | *\\* )
27295 ac_sed_conf_input=`$as_echo "$configure_input" |
27296 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27297 *) ac_sed_conf_input=$configure_input;;
27298 esac
27299
27300 case $ac_tag in
27301 *:-:* | *:-) cat >"$tmp/stdin" \
27302 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27303 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27304 { (exit 1); exit 1; }; } ;;
27305 esac
27306 ;;
27307 esac
27308
27309 ac_dir=`$as_dirname -- "$ac_file" ||
27310 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27311 X"$ac_file" : 'X\(//\)[^/]' \| \
27312 X"$ac_file" : 'X\(//\)$' \| \
27313 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27314 $as_echo X"$ac_file" |
27315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27316 s//\1/
27317 q
27318 }
27319 /^X\(\/\/\)[^/].*/{
27320 s//\1/
27321 q
27322 }
27323 /^X\(\/\/\)$/{
27324 s//\1/
27325 q
27326 }
27327 /^X\(\/\).*/{
27328 s//\1/
27329 q
27330 }
27331 s/.*/./; q'`
27332 { as_dir="$ac_dir"
27333 case $as_dir in #(
27334 -*) as_dir=./$as_dir;;
27335 esac
27336 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27337 as_dirs=
27338 while :; do
27339 case $as_dir in #(
27340 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27341 *) as_qdir=$as_dir;;
27342 esac
27343 as_dirs="'$as_qdir' $as_dirs"
27344 as_dir=`$as_dirname -- "$as_dir" ||
27345 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27346 X"$as_dir" : 'X\(//\)[^/]' \| \
27347 X"$as_dir" : 'X\(//\)$' \| \
27348 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27349 $as_echo X"$as_dir" |
27350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27351 s//\1/
27352 q
27353 }
27354 /^X\(\/\/\)[^/].*/{
27355 s//\1/
27356 q
27357 }
27358 /^X\(\/\/\)$/{
27359 s//\1/
27360 q
27361 }
27362 /^X\(\/\).*/{
27363 s//\1/
27364 q
27365 }
27366 s/.*/./; q'`
27367 test -d "$as_dir" && break
27368 done
27369 test -z "$as_dirs" || eval "mkdir $as_dirs"
27370 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27371 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27372 { (exit 1); exit 1; }; }; }
27373 ac_builddir=.
27374
27375 case "$ac_dir" in
27376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27377 *)
27378 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27379 # A ".." for each directory in $ac_dir_suffix.
27380 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27381 case $ac_top_builddir_sub in
27382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27384 esac ;;
27385 esac
27386 ac_abs_top_builddir=$ac_pwd
27387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27388 # for backward compatibility:
27389 ac_top_builddir=$ac_top_build_prefix
27390
27391 case $srcdir in
27392 .) # We are building in place.
27393 ac_srcdir=.
27394 ac_top_srcdir=$ac_top_builddir_sub
27395 ac_abs_top_srcdir=$ac_pwd ;;
27396 [\\/]* | ?:[\\/]* ) # Absolute name.
27397 ac_srcdir=$srcdir$ac_dir_suffix;
27398 ac_top_srcdir=$srcdir
27399 ac_abs_top_srcdir=$srcdir ;;
27400 *) # Relative name.
27401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27402 ac_top_srcdir=$ac_top_build_prefix$srcdir
27403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27404 esac
27405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27406
27407
27408 case $ac_mode in
27409 :F)
27410 #
27411 # CONFIG_FILE
27412 #
27413
27414 case $INSTALL in
27415 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27416 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27417 esac
27418 _ACEOF
27419
27420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27421 # If the template does not know about datarootdir, expand it.
27422 # FIXME: This hack should be removed a few years after 2.60.
27423 ac_datarootdir_hack=; ac_datarootdir_seen=
27424
27425 ac_sed_dataroot='
27426 /datarootdir/ {
27427 p
27428 q
27429 }
27430 /@datadir@/p
27431 /@docdir@/p
27432 /@infodir@/p
27433 /@localedir@/p
27434 /@mandir@/p
27435 '
27436 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27437 *datarootdir*) ac_datarootdir_seen=yes;;
27438 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27439 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27440 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27441 _ACEOF
27442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27443 ac_datarootdir_hack='
27444 s&@datadir@&$datadir&g
27445 s&@docdir@&$docdir&g
27446 s&@infodir@&$infodir&g
27447 s&@localedir@&$localedir&g
27448 s&@mandir@&$mandir&g
27449 s&\\\${datarootdir}&$datarootdir&g' ;;
27450 esac
27451 _ACEOF
27452
27453 # Neutralize VPATH when `$srcdir' = `.'.
27454 # Shell code in configure.ac might set extrasub.
27455 # FIXME: do we really want to maintain this feature?
27456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27457 ac_sed_extra="$ac_vpsub
27458 $extrasub
27459 _ACEOF
27460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27461 :t
27462 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27463 s|@configure_input@|$ac_sed_conf_input|;t t
27464 s&@top_builddir@&$ac_top_builddir_sub&;t t
27465 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27466 s&@srcdir@&$ac_srcdir&;t t
27467 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27468 s&@top_srcdir@&$ac_top_srcdir&;t t
27469 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27470 s&@builddir@&$ac_builddir&;t t
27471 s&@abs_builddir@&$ac_abs_builddir&;t t
27472 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27473 s&@INSTALL@&$ac_INSTALL&;t t
27474 $ac_datarootdir_hack
27475 "
27476 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27477 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27478 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27479 { (exit 1); exit 1; }; }
27480
27481 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27482 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27483 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27484 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27485 which seems to be undefined. Please make sure it is defined." >&5
27486 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27487 which seems to be undefined. Please make sure it is defined." >&2;}
27488
27489 rm -f "$tmp/stdin"
27490 case $ac_file in
27491 -) cat "$tmp/out" && rm -f "$tmp/out";;
27492 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27493 esac \
27494 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27495 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27496 { (exit 1); exit 1; }; }
27497 ;;
27498 :H)
27499 #
27500 # CONFIG_HEADER
27501 #
27502 if test x"$ac_file" != x-; then
27503 {
27504 $as_echo "/* $configure_input */" \
27505 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27506 } >"$tmp/config.h" \
27507 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27508 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27509 { (exit 1); exit 1; }; }
27510 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27511 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27512 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27513 else
27514 rm -f "$ac_file"
27515 mv "$tmp/config.h" "$ac_file" \
27516 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27517 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27518 { (exit 1); exit 1; }; }
27519 fi
27520 else
27521 $as_echo "/* $configure_input */" \
27522 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27523 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27524 $as_echo "$as_me: error: could not create -" >&2;}
27525 { (exit 1); exit 1; }; }
27526 fi
27527 ;;
27528
27529 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27530 $as_echo "$as_me: executing $ac_file commands" >&6;}
27531 ;;
27532 esac
27533
27534
27535 case $ac_file$ac_mode in
27536 "default":C)
27537
27538 ### Make the necessary directories, if they don't exist.
27539 for dir in etc lisp ; do
27540 test -d ${dir} || mkdir ${dir}
27541 done
27542
27543 # Build src/Makefile from ${srcdir}/src/Makefile.c
27544 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27545 # This must be done after src/config.h is built, since we rely on that file.
27546
27547 echo creating src/epaths.h
27548 ${MAKE-make} epaths-force
27549
27550 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27551 # `..' to `. .' unless invoked with -traditional
27552
27553 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
27554 CPPFLAGS="$CPPFLAGS -traditional"
27555 fi
27556
27557 echo creating lib-src/Makefile
27558 ( cd lib-src
27559 rm -f junk.c junk1.c junk2.c
27560 sed -e '/start of cpp stuff/q' \
27561 < Makefile.c > junk1.c
27562 sed -e '1,/start of cpp stuff/d'\
27563 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27564 < Makefile.c > junk.c
27565 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27566 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27567 cat junk1.c junk2.c > Makefile.new
27568 rm -f junk.c junk1.c junk2.c
27569 chmod 444 Makefile.new
27570 mv -f Makefile.new Makefile
27571 )
27572
27573 echo creating src/Makefile
27574 ( cd src
27575 rm -f junk.c junk1.c junk2.c
27576 sed -e '/start of cpp stuff/q' \
27577 < Makefile.c > junk1.c
27578 sed -e '1,/start of cpp stuff/d'\
27579 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27580 < Makefile.c > junk.c
27581 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27582 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27583 cat junk1.c junk2.c > Makefile.new
27584 rm -f junk.c junk1.c junk2.c
27585 chmod 444 Makefile.new
27586 mv -f Makefile.new Makefile
27587 )
27588
27589 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
27590 echo creating src/.gdbinit
27591 echo source $srcdir/src/.gdbinit > src/.gdbinit
27592 fi
27593
27594 ;;
27595
27596 esac
27597 done # for ac_tag
27598
27599
27600 { (exit 0); exit 0; }
27601 _ACEOF
27602 chmod +x $CONFIG_STATUS
27603 ac_clean_files=$ac_clean_files_save
27604
27605 test $ac_write_fail = 0 ||
27606 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27607 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27608 { (exit 1); exit 1; }; }
27609
27610
27611 # configure is writing to config.log, and then calls config.status.
27612 # config.status does its own redirection, appending to config.log.
27613 # Unfortunately, on DOS this fails, as config.log is still kept open
27614 # by configure, so config.status won't be able to write to it; its
27615 # output is simply discarded. So we exec the FD to /dev/null,
27616 # effectively closing config.log, so it can be properly (re)opened and
27617 # appended to by config.status. When coming back to configure, we
27618 # need to make the FD available again.
27619 if test "$no_create" != yes; then
27620 ac_cs_success=:
27621 ac_config_status_args=
27622 test "$silent" = yes &&
27623 ac_config_status_args="$ac_config_status_args --quiet"
27624 exec 5>/dev/null
27625 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27626 exec 5>>config.log
27627 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27628 # would make configure fail if this is the last instruction.
27629 $ac_cs_success || { (exit 1); exit 1; }
27630 fi
27631 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27632 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27633 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
27634 fi
27635
27636